/* Quillbook site. Palette is the Quillsail "Tidewater" direction; the app uses the same colours. */
@font-face { font-family: "Schibsted Grotesk"; src: url(/fonts/schibsted.woff2) format("woff2"); font-weight: 400 800; font-display: swap; }
@font-face { font-family: "DM Mono"; src: url(/fonts/dmmono-400.woff2) format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "DM Mono"; src: url(/fonts/dmmono-500.woff2) format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Nastaliq"; src: url(/fonts/nastaliq-sub.woff2) format("woff2"); font-display: swap; }

:root {
  --paper: #F7F7F4; --paper-2: #EDEEE9; --card: #FFFFFF; --ink: #0E1116; --ink-2: #4A515C; --line: rgba(14, 17, 22, .12);
  --tide: #16716B; --deep: #0B3B40; --glass: #D7EFEA; --in: #138A6B; --out: #E2552A; --coral: #FF6B3D;
  --sans: "Schibsted Grotesk", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: "DM Mono", ui-monospace, Menlo, monospace;
  --max: 1160px; --gutter: clamp(16px, 4vw, 40px);
}
@media (prefers-color-scheme: dark) {
  :root:not(.fixed) { --paper: #0F1416; --paper-2: #161C1F; --card: #1A2124; --ink: #E9ECEC; --ink-2: #A5ADB3; --line: rgba(233, 236, 236, .14); --tide: #5FC9B6; --in: #45C9A5; --out: #FF8A66; }
}
* { 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(--tide); text-underline-offset: 3px; }
img { display: block; max-width: 100%; height: auto; }
:focus-visible { outline: 3px solid var(--coral); outline-offset: 3px; border-radius: 4px; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
h1, h2, h3 { font-weight: 750; letter-spacing: -.03em; line-height: 1.08; margin: 0; text-wrap: balance; }

/* Top bar */
.bar { position: sticky; top: 0; z-index: 10; background: color-mix(in srgb, var(--paper) 86%, transparent); backdrop-filter: blur(16px) saturate(170%); -webkit-backdrop-filter: blur(16px) saturate(170%); border-bottom: 1px solid var(--line); }
.bar .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 64px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font-weight: 750; font-size: 1.125rem; letter-spacing: -.02em; }
.brand img { width: 32px; height: 32px; border-radius: 8px; box-shadow: 0 0 0 1px var(--line); }
.bar nav { display: flex; align-items: center; gap: clamp(12px, 2.4vw, 28px); font-size: .9375rem; }
.bar nav a { color: var(--ink-2); text-decoration: none; }
.bar nav a:hover { color: var(--ink); }
.bar nav a.get { color: #fff; background: #16716B; padding: 8px 16px; border-radius: 999px; font-weight: 600; }
.bar nav a.get:hover { background: var(--deep); color: #fff; }
@media (max-width: 680px) { .bar nav a:not(.get) { display: none; } }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 22px; border-radius: 999px; font: 600 1rem var(--sans); border: 0; cursor: pointer; text-decoration: none; transition: transform .1s ease-out, background-color .15s; }
.btn:active { transform: scale(.97); }
.btn-coral { background: var(--coral); color: #15100D; }
.btn-coral:hover { background: #FF8158; }
.btn-tide { background: #16716B; color: #fff; }
.btn-tide:hover { background: #0B3B40; }
.soon { display: inline-flex; align-items: center; gap: 8px; min-height: 48px; padding: 0 18px; border-radius: 999px; font-size: .9375rem; box-shadow: inset 0 0 0 1px rgba(215, 239, 234, .4); color: #D7EFEA; }

/* Hero: a cash-book page, in the app's deep tide */
.hero { --rule: rgba(215, 239, 234, .07); color: #F2FAF8; background: repeating-linear-gradient(to bottom, transparent 0 39px, var(--rule) 39px 40px), #0B3B40; overflow: hidden; }
.hero .wrap { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(28px, 5vw, 72px); align-items: center; padding-top: clamp(40px, 7vw, 88px); padding-bottom: clamp(40px, 7vw, 88px); }
.hero h1 { font-size: clamp(2.5rem, 5.6vw, 4.5rem); font-weight: 800; letter-spacing: -.04em; line-height: 1.01; }
.hero h1 span { color: #7FDCCB; }
.hero p.lead { font-size: clamp(1.0625rem, 1.5vw, 1.25rem); line-height: 1.5; margin: 20px 0 28px; color: #CFE6E1; max-width: 32em; }
.actions { display: flex; flex-wrap: wrap; gap: 10px; }
@media (max-width: 880px) { .hero .wrap { grid-template-columns: minmax(0, 1fr); } }

/* The live demo: one book on two phones */
.demo { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(10px, 2vw, 22px); align-items: start; }
.who { font-size: .875rem; color: #BCD9D3; margin: 0 0 8px; line-height: 1.3; }
.who b { color: #fff; font-weight: 650; display: block; }
.ph { container-type: inline-size; background: #05181B; border-radius: 30px; padding: 7px; box-shadow: 0 30px 60px -28px rgba(0, 0, 0, .7), inset 0 0 0 1px rgba(255, 255, 255, .1); }
.scr { background: #F7F7F4; color: #0E1116; border-radius: 24px; overflow: hidden; height: 112cqw; display: flex; flex-direction: column; font-size: 4.4cqw; line-height: 1.3; }
.scr h3 { font-size: 1em; font-weight: 650; letter-spacing: -.01em; padding: 1em 1em .6em; line-height: 1.2; }
.bal { margin: 0 .6em; padding: .8em .9em; border-radius: 1em; color: #fff; background: linear-gradient(150deg, #16716B, #0B3B40); }
.bal small { display: block; font-size: .78em; opacity: .85; }
.bal output { display: block; font: 500 1.75em/1.2 var(--mono); letter-spacing: -.03em; }
.rows { list-style: none; margin: .6em 0 0; padding: 0 .6em; flex: 1; overflow: hidden; }
.rows li { display: flex; justify-content: space-between; gap: .6em; padding: .55em .7em; background: #fff; border-radius: .7em; margin-bottom: .35em; font-size: .86em; }
.rows li span:first-child { min-width: 0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.rows li i { display: block; font-style: normal; color: #6B717B; font-size: .84em; }
.rows b { font: 500 1em var(--mono); white-space: nowrap; letter-spacing: -.02em; }
.rows .in b { color: #138A6B; }
.rows .out b { color: #E2552A; }
.rows .new { animation: arrive .42s cubic-bezier(.22, 1, .36, 1); }
@keyframes arrive { from { opacity: 0; transform: translateY(-.8em); background: #D7EFEA; } }
.keys { display: flex; gap: .4em; padding: .5em .6em .7em; }
.keys button { flex: 1; min-width: 0; border: 0; border-radius: 99em; padding: .6em .2em; font: 600 .88em var(--sans); color: #fff; cursor: pointer; transition: transform .1s ease-out; }
.keys button:active { transform: scale(.96); }
.keys .i { background: #138A6B; }
.keys .o { background: #E2552A; }
.synced { padding: .6em .9em .85em; font-size: .78em; color: #6B717B; text-align: center; }
.hint { grid-column: 1 / -1; margin: 6px 0 0; font-size: .9375rem; color: #BCD9D3; }

/* Feature bands, each next to the real screen */
.band { padding: clamp(56px, 8vw, 104px) 0; }
.band + .band { border-top: 1px solid var(--line); }
.feature { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); gap: clamp(32px, 7vw, 96px); align-items: center; }
.feature.flip { grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); }
.feature.flip .shot { order: -1; }
h2 { font-size: clamp(2rem, 4.2vw, 3.25rem); font-weight: 780; letter-spacing: -.035em; }
.feature p.lead { font-size: 1.1875rem; line-height: 1.5; margin: 16px 0 24px; color: var(--ink-2); max-width: 34em; }
.facts { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); max-width: 38em; }
.facts li { padding: 12px 0; border-bottom: 1px solid var(--line); }
.facts b { font-weight: 650; }
.shot { justify-self: center; width: min(320px, 76vw); border-radius: 30px; padding: 7px; background: #05181B; box-shadow: 0 40px 70px -40px rgba(11, 59, 64, .7); }
.shot img { border-radius: 24px; width: 100%; }
@media (max-width: 760px) { .feature, .feature.flip { grid-template-columns: minmax(0, 1fr); } .feature.flip .shot { order: 0; } }

/* Roles: real rules from the app */
.roles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 16px; overflow: hidden; margin-top: 8px; max-width: 42em; }
.roles div { background: var(--card); padding: 14px 16px; font-size: .9375rem; line-height: 1.45; color: var(--ink-2); }
.roles b { display: block; color: var(--ink); font-weight: 650; font-size: 1rem; margin-bottom: 2px; }
.note { margin: 14px 0 0; font-size: .9375rem; color: var(--ink-2); max-width: 42em; }
@media (max-width: 480px) { .roles { grid-template-columns: minmax(0, 1fr); } }

/* Urdu */
.urdu { background: #0B3B40; color: #F2FAF8; }
.urdu .feature { grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); }
.urdu h2 span { font-family: "Nastaliq", serif; font-weight: 500; letter-spacing: 0; color: #7FDCCB; font-size: 1.05em; line-height: 1; padding-inline: .08em; }
.urdu p.lead { color: #CFE6E1; }
.pair { display: flex; gap: 14px; justify-content: center; }
.pair .shot { width: min(240px, 44vw); background: #05181B; }
@media (max-width: 760px) { .urdu .feature { grid-template-columns: minmax(0, 1fr); } }

/* Trust */
.trust { background: var(--paper-2); }
.trust ul { list-style: none; margin: 32px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px clamp(24px, 4vw, 48px); }
.trust li { border-top: 2px solid var(--tide); padding-top: 12px; }
.trust h3 { font-size: 1.125rem; letter-spacing: -.015em; line-height: 1.25; margin-bottom: 6px; }
.trust p { margin: 0; color: var(--ink-2); font-size: 1rem; line-height: 1.5; }
@media (max-width: 820px) { .trust ul { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .trust ul { grid-template-columns: minmax(0, 1fr); } }

/* Questions */
.faq { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: clamp(24px, 5vw, 64px); }
.faq details { border-bottom: 1px solid var(--line); }
.faq details:first-child { border-top: 1px solid var(--line); }
.faq summary { cursor: pointer; padding: 16px 0; font-weight: 650; font-size: 1.0625rem; }
.faq details p { margin: 0 0 18px; color: var(--ink-2); }
@media (max-width: 760px) { .faq { grid-template-columns: minmax(0, 1fr); } }

/* Closing and footer */
.close { background: #16716B; color: #fff; }
.close .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px; padding-top: 48px; padding-bottom: 48px; }
.close h2 { font-size: clamp(1.75rem, 3.4vw, 2.5rem); max-width: 18em; }
.close .btn { background: #fff; color: #0B3B40; }
.close p { margin: 8px 0 0; color: #D7EFEA; }
footer { padding: 32px 0 40px; font-size: .9375rem; color: var(--ink-2); }
footer .wrap { display: flex; flex-wrap: wrap; gap: 12px 24px; justify-content: space-between; }
footer nav { display: flex; flex-wrap: wrap; gap: 8px 20px; }
footer a { color: var(--ink-2); }

/* Text pages: privacy, terms, delete account, invites */
.page { max-width: 720px; margin: 0 auto; padding: clamp(32px, 6vw, 64px) var(--gutter) 64px; }
.page h1 { font-size: clamp(2.125rem, 5vw, 3.25rem); font-weight: 800; letter-spacing: -.035em; margin-bottom: 12px; }
.page h2 { font-size: 1.375rem; font-weight: 700; letter-spacing: -.02em; margin: 36px 0 8px; line-height: 1.2; }
.page li { margin: 8px 0; }
.page ul, .page ol { padding-inline-start: 22px; }
.muted { color: var(--ink-2); font-size: .9375rem; }
.card { background: var(--card); border-radius: 18px; padding: 20px 22px; margin: 16px 0; box-shadow: 0 0 0 1px var(--line); }
.card h2:first-child { margin-top: 0; }
.invite { text-align: start; }
.invite h1 { margin-bottom: 8px; }
