/* Quillfee site. Plum and saffron, the same palette as the app. */
@font-face { font-family: "Schibsted Grotesk"; src: url(/fonts/schibsted.woff2) format("woff2"); font-weight: 400 800; font-display: swap; }
@font-face { font-family: "Nastaliq"; src: url(/fonts/nastaliq-sub.woff2) format("woff2"); font-display: swap; }

:root {
  --paper: #FAF5F8; --paper-2: #F2E8EF; --card: #FFFFFF; --ink: #22131F; --ink-2: #5E4B59; --line: rgba(34, 19, 31, .12);
  --plum: #6A2C5F; --plum-deep: #4A1E42; --on-plum: #FFF6FB; --saffron: #F0A92B; --on-saffron: #2B1A00; --paid: #1B8A5A; --due: #D4433B; --link: #6A2C5F;
  --sans: "Schibsted Grotesk", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --max: 1120px; --gutter: clamp(16px, 4vw, 40px);
}
@media (prefers-color-scheme: dark) {
  :root { --paper: #150E14; --paper-2: #1E1520; --card: #24192A; --ink: #F3E9F0; --ink-2: #C3B1BE; --line: rgba(243, 233, 240, .14); --plum: #7E3A72; --plum-deep: #2E1229; --paid: #4CC38A; --due: #FF7A70; --link: #E7A6D9; }
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 80px; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 1.0625rem/1.6 var(--sans); -webkit-font-smoothing: antialiased; overflow-wrap: break-word; }
a { color: var(--link); text-underline-offset: 3px; }
img { display: block; max-width: 100%; height: auto; }
:focus-visible { outline: 3px solid var(--saffron); outline-offset: 3px; border-radius: 4px; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
h1, h2, h3 { font-weight: 760; letter-spacing: -.025em; line-height: 1.1; margin: 0; text-wrap: balance; }
[lang="ur"] { font-family: "Nastaliq", serif; line-height: 2; }

/* Top bar: a plum band, like the app's header */
.bar { position: sticky; top: 0; z-index: 10; background: var(--plum); color: var(--on-plum); }
.bar .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 68px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: inherit; text-decoration: none; font-weight: 760; font-size: 1.375rem; }
.brand img { width: 40px; height: 40px; border-radius: 10px; box-shadow: 0 0 0 1px rgba(255, 255, 255, .25); }
.bar nav { display: flex; align-items: center; gap: clamp(12px, 2.4vw, 26px); font-size: .9375rem; }
.bar nav a { color: rgba(255, 246, 251, .82); text-decoration: none; }
.bar nav a:hover { color: #fff; }
.bar nav a.get { color: var(--on-saffron); background: var(--saffron); padding: 8px 16px; border-radius: 10px; font-weight: 650; }
@media (max-width: 680px) { .bar nav a:not(.get) { display: none; } }

/* Buttons: square-ish, like the app */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 22px; border-radius: 12px; font: 650 1rem var(--sans); border: 0; cursor: pointer; text-decoration: none; transition: transform .1s ease-out, filter .15s; }
.btn:active { transform: scale(.97); }
.btn-saffron { background: var(--saffron); color: var(--on-saffron); }
.btn-plum { background: var(--plum); color: var(--on-plum); }
.btn:hover { filter: brightness(1.06); }

/* Hero */
.hero { background: var(--plum); color: var(--on-plum); padding: clamp(40px, 7vw, 88px) 0 clamp(48px, 8vw, 96px); }
.hero .wrap { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(32px, 6vw, 72px); align-items: center; }
.kicker { margin: 0 0 14px; font-size: .9375rem; font-weight: 600; color: var(--saffron); }
.hero h1 { font-size: clamp(2.4rem, 6vw, 4.2rem); }
.lead { font-size: 1.1875rem; margin: 18px 0 0; max-width: 34em; }
.hero .lead { color: rgba(255, 246, 251, .86); }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 18px; margin-top: 28px; }
.soon { font-size: .9375rem; color: rgba(255, 246, 251, .75); }
@media (max-width: 860px) { .hero .wrap { grid-template-columns: 1fr; } }

/* Hero demo */
.demo { display: grid; gap: 12px; justify-items: center; }
.phone { width: min(340px, 100%); background: var(--paper); color: var(--ink); border-radius: 26px; padding: 12px; box-shadow: 0 30px 60px rgba(20, 0, 15, .35); position: relative; overflow: hidden; }
.band-top { background: var(--plum-deep); color: var(--on-plum); border-radius: 16px; padding: 14px 16px; display: grid; gap: 6px; }
.band-top small { opacity: .8; font-size: .8125rem; }
.band-top b { font-size: 1.25rem; }
.meter { height: 8px; border-radius: 4px; background: rgba(255, 255, 255, .2); overflow: hidden; }
.meter i { display: block; height: 100%; background: var(--saffron); transition: width .4s ease; }
.list { list-style: none; margin: 10px 0 0; padding: 0; display: grid; gap: 8px; }
.list li { display: grid; grid-template-columns: 38px 1fr auto; gap: 10px; align-items: center; background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 8px 10px; }
.list b { display: block; font-size: .9375rem; }
.list small { color: var(--ink-2); font-size: .8125rem; }
.av { width: 38px; height: 38px; border-radius: 10px; background: var(--paper-2); color: var(--plum); display: grid; place-items: center; font-weight: 700; font-size: .8125rem; }
.list button { min-height: 40px; padding: 0 12px; border-radius: 10px; border: 0; background: var(--saffron); color: var(--on-saffron); font: 650 .875rem var(--sans); cursor: pointer; }
.list li.paid button { background: transparent; color: var(--paid); cursor: default; }
.receipt { position: absolute; inset: auto 12px 12px; background: var(--card); border: 2px dashed var(--line); border-radius: 14px; padding: 14px 16px; display: grid; gap: 4px; box-shadow: 0 10px 30px rgba(0, 0, 0, .15); animation: up .3s ease-out; }
.receipt[hidden] { display: none; }
.receipt output { color: var(--ink-2); font-size: .9375rem; }
.stamp { position: absolute; top: 12px; inset-inline-end: 14px; border: 3px solid var(--paid); color: var(--paid); font-weight: 800; padding: 2px 10px; border-radius: 8px; transform: rotate(-10deg); }
@keyframes up { from { transform: translateY(20px); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .receipt { animation: none; } .meter i { transition: none; } html { scroll-behavior: auto; } }
.hint { margin: 0; font-size: .9375rem; color: rgba(255, 246, 251, .78); }

/* Sections */
.band { padding: clamp(48px, 8vw, 96px) 0; border-bottom: 1px solid var(--line); }
.band h2 { font-size: clamp(1.8rem, 4vw, 2.6rem); }
.feature { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(28px, 6vw, 72px); align-items: center; }
.feature.flip > :first-child { order: 2; }
.shot { justify-self: center; width: min(300px, 100%); }
.shot img { border-radius: 24px; border: 1px solid var(--line); box-shadow: 0 20px 50px rgba(74, 30, 66, .18); }
@media (max-width: 820px) { .feature { grid-template-columns: 1fr; } .feature.flip > :first-child { order: 0; } }
.facts { list-style: none; padding: 0; margin: 24px 0 0; display: grid; gap: 12px; }
.facts li { padding-inline-start: 18px; border-inline-start: 4px solid var(--saffron); }
.steps ol { list-style: none; counter-reset: s; padding: 0; margin: 28px 0 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; }
.steps li { counter-increment: s; background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 20px; }
.steps li::before { content: counter(s); display: grid; place-items: center; width: 36px; height: 36px; border-radius: 10px; background: var(--plum); color: var(--on-plum); font-weight: 760; margin-bottom: 12px; }
.steps b { display: block; margin-bottom: 4px; }
.roles { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 12px; margin-top: 24px; }
.roles div { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 14px 16px; font-size: .9375rem; color: var(--ink-2); }
.roles b { display: block; color: var(--plum); font-size: 1rem; }
@media (prefers-color-scheme: dark) { .roles b { color: var(--link); } }
.note { color: var(--ink-2); font-size: .9375rem; margin-top: 18px; }
.urdu { background: var(--paper-2); }
.trust ul { list-style: none; padding: 0; margin: 28px 0 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 24px 32px; }
.trust h3 { font-size: 1.125rem; margin-bottom: 6px; }
.trust p { margin: 0; color: var(--ink-2); }
.faq { display: grid; grid-template-columns: .7fr 1.3fr; gap: 32px; }
@media (max-width: 820px) { .faq { grid-template-columns: 1fr; } }
details { border-bottom: 1px solid var(--line); padding: 14px 0; }
summary { cursor: pointer; font-weight: 650; min-height: 32px; }
details p { color: var(--ink-2); margin: 10px 0 0; }
.close { background: var(--plum); color: var(--on-plum); padding: clamp(48px, 7vw, 80px) 0; }
.close .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px; }
.close h2 { font-size: clamp(1.6rem, 3.6vw, 2.3rem); }
.close p { margin: 8px 0 0; color: rgba(255, 246, 251, .82); }

/* Text pages */
.page { max-width: 760px; margin: 0 auto; padding: clamp(32px, 6vw, 64px) var(--gutter) 72px; }
.page h1 { font-size: clamp(2rem, 5vw, 2.8rem); margin-bottom: 12px; }
.page h2 { font-size: 1.375rem; margin: 36px 0 10px; }
.page li { margin: 6px 0; }
.muted { color: var(--ink-2); font-size: .9375rem; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 20px 22px; margin: 20px 0; }

/* Footer */
.foot { background: var(--plum-deep); color: rgba(255, 246, 251, .82); padding: 48px 0 28px; }
.foot a { color: inherit; }
.foot .brand { color: #fff; }
.foot-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 28px; }
@media (max-width: 720px) { .foot-grid { grid-template-columns: 1fr; } }
.foot h3 { font-size: .9375rem; color: #fff; margin-bottom: 8px; }
.foot ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; }
.foot-brand p { margin: 10px 0 0; max-width: 28em; }
.foot-base { margin: 32px 0 0; font-size: .875rem; opacity: .7; }
