/* Splitzy website. Colours follow the app's "Mint" theme (android/app/src/main/java/com/kshitij/splitzy/ui/theme/Color.kt).
   No web fonts, no third-party requests: everything here is served from this site. */

:root {
  color-scheme: light dark;
  --bg: #F4F7F5;
  --surface: #FFFFFF;
  --surface-2: #EDF1EF;
  --tile: #E4ECE8;
  --text: #10231B;
  --text-2: #3E5A4D;
  --muted: #5B6B63;
  --line: #DCE6E1;
  --primary: #0B7A55;
  --on-primary: #FFFFFF;
  --primary-c: #DDEBE4;
  --on-primary-c: #0B6B4B;
  --owed-c: #E8F4EE;
  --on-owed: #0B7A55;
  --owe-c: #FBEFE6;
  --on-owe: #A44A0C;
  --accent: #F5B57A;
  --band-1: #17573F;
  --band-2: #0D3526;
  --band-text: #FFFFFF;
  --band-muted: #CFE5DA;
  --band-card: rgba(255, 255, 255, .07);
  --band-line: rgba(255, 255, 255, .15);
  --shadow: 0 1px 2px rgba(16, 35, 27, .06), 0 8px 24px rgba(16, 35, 27, .08);
  --shadow-lg: 0 2px 6px rgba(16, 35, 27, .08), 0 30px 60px -12px rgba(16, 35, 27, .25);
  --radius: 1.25rem;
  --wrap: 72rem;
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0C1512;
    --surface: #15211C;
    --surface-2: #111C18;
    --tile: #1D2C26;
    --text: #E6F0EB;
    --text-2: #C3D2CA;
    --muted: #9DB0A7;
    --line: #26372F;
    --primary: #48D597;
    --on-primary: #062117;
    --primary-c: #163A2B;
    --on-primary-c: #6BE3AE;
    --owed-c: #163A2B;
    --on-owed: #6BE3AE;
    --owe-c: #3A2614;
    --on-owe: #F5B57A;
    --band-1: #12261E;
    --band-2: #0A1410;
    --band-muted: #B5C4BC;
    --band-card: rgba(72, 213, 151, .05);
    --band-line: rgba(72, 213, 151, .16);
    --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 8px 24px rgba(0, 0, 0, .25);
    --shadow-lg: 0 2px 6px rgba(0, 0, 0, .3), 0 30px 60px -12px rgba(0, 0, 0, .6);
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 5rem; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0; background: var(--bg); color: var(--text); font-family: var(--font); font-size: 1.0625rem; line-height: 1.6;
  overflow-wrap: break-word;
}
.i { width: 1.25em; height: 1.25em; flex: none; }
img, svg { max-width: 100%; display: block; }
a { color: var(--primary); text-underline-offset: .18em; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--primary); outline-offset: 3px; border-radius: .375rem; }
h1, h2, h3 { line-height: 1.15; letter-spacing: -.02em; margin: 0; text-wrap: balance; }
p { margin: 0; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 1.25rem; }
@media (min-width: 48rem) { .wrap { padding: 0 2rem; } }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 1rem; top: -4rem; background: var(--primary); color: var(--on-primary); padding: .5rem 1rem;
  border-radius: .5rem; z-index: 10; }
.skip:focus { top: 1rem; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 5; background: color-mix(in srgb, var(--bg) 86%, transparent);
  -webkit-backdrop-filter: saturate(1.4) blur(12px); backdrop-filter: saturate(1.4) blur(12px);
  border-bottom: 1px solid color-mix(in srgb, var(--line) 70%, transparent); }
.site-header .wrap { display: flex; align-items: center; gap: 1rem; min-height: 4rem; }
.brand { display: inline-flex; align-items: center; gap: .625rem; color: var(--text); text-decoration: none; font-weight: 800;
  font-size: 1.125rem; letter-spacing: -.01em; }
.brand img { width: 2rem; height: 2rem; border-radius: .5rem; }
.nav { margin-left: auto; display: flex; align-items: center; gap: .25rem; }
.nav a { color: var(--text-2); text-decoration: none; font-size: .9375rem; font-weight: 600; padding: .5rem .75rem;
  border-radius: 999px; }
.nav a:hover { background: var(--tile); color: var(--text); }
.nav a[aria-current="page"] { background: var(--tile); color: var(--text); }
@media (max-width: 26rem) { .nav a { padding: .5rem .5rem; font-size: .875rem; white-space: nowrap; } }
@media (max-width: 52rem) { .nav .section-link { display: none; } }

/* Shared bits */
.eyebrow { display: inline-flex; align-items: center; gap: .5rem; font-size: .8125rem; font-weight: 700; letter-spacing: .06em;
  text-transform: uppercase; color: var(--primary); }
.section { padding: 5rem 0; }
@media (min-width: 60rem) { .section { padding: 7rem 0; } }
.section.flush { padding-top: 0; }
.section-head { max-width: 40rem; margin-bottom: 3rem; }
.section-head h2 { font-size: clamp(1.75rem, 1.2rem + 2.2vw, 2.75rem); margin-top: .75rem; }
.section-head p { color: var(--text-2); margin-top: 1rem; font-size: 1.125rem; }

/* Hero */
.hero { position: relative; overflow: hidden; padding: 3.5rem 0 4.5rem; }
.hero::before { content: ""; position: absolute; inset: -20% -10% auto auto; width: 60rem; height: 60rem; pointer-events: none;
  background: radial-gradient(closest-side, color-mix(in srgb, var(--primary-c) 90%, transparent), transparent); opacity: .9; }
.hero .wrap { position: relative; display: grid; gap: 3.5rem; align-items: center; }
@media (min-width: 60rem) { .hero { padding: 5rem 0 6rem; } .hero .wrap { grid-template-columns: 1.1fr .9fr; gap: 4rem; } }
.hero-app { display: flex; align-items: center; gap: .875rem; margin-bottom: 1.75rem; }
.hero-app img { width: 3.5rem; height: 3.5rem; border-radius: 1rem; box-shadow: var(--shadow); }
.hero-app strong { display: block; font-size: 1.125rem; letter-spacing: -.01em; }
.hero-app span { color: var(--muted); font-size: .9375rem; }
.hero h1 { font-size: clamp(2.375rem, 1.4rem + 4.4vw, 4.25rem); font-weight: 800; letter-spacing: -.03em; line-height: 1.05; }
.hero h1 em { font-style: normal; color: var(--primary); }
.lede { margin-top: 1.5rem; font-size: clamp(1.125rem, 1rem + .5vw, 1.3125rem); color: var(--text-2); max-width: 34rem; }
.cta { display: flex; flex-wrap: wrap; align-items: center; gap: .75rem; margin-top: 2rem; }
.store-soon { display: inline-flex; align-items: center; gap: .75rem; padding: .75rem 1.25rem .75rem 1rem; border-radius: 1rem;
  background: var(--text); color: var(--bg); }
.store-soon svg { width: 1.5rem; height: 1.5rem; flex: none; }
.store-soon small { display: block; font-size: .75rem; opacity: .75; line-height: 1.2; }
.store-soon b { display: block; font-size: 1.0625rem; line-height: 1.25; }
.button-ghost { display: inline-flex; align-items: center; gap: .375rem; padding: .875rem 1.125rem; border-radius: 1rem;
  font-weight: 700; text-decoration: none; color: var(--primary); }
.button-ghost:hover { background: var(--tile); }
.facts { display: flex; flex-wrap: wrap; gap: .5rem 1.25rem; margin: 2.25rem 0 0; padding: 0; list-style: none; color: var(--text-2);
  font-size: .9375rem; font-weight: 600; }
.facts li { display: inline-flex; align-items: center; gap: .4rem; }
.facts svg { width: 1.1rem; height: 1.1rem; color: var(--primary); flex: none; }

/* Hero illustration: a settle-up card drawn in HTML (not a screenshot). */
.hero-visual { position: relative; justify-self: center; width: min(24rem, 100%); }
.mock { border-radius: 1.75rem; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-lg);
  padding: 1.5rem; }
.mock-head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.mock-head b { font-size: 1.25rem; letter-spacing: -.01em; }
.mock-head span { font-size: .8125rem; font-weight: 700; color: var(--muted); }
.mock-label { margin-top: 1.25rem; font-size: .75rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
  color: var(--muted); }
.rows { list-style: none; margin: .5rem 0 0; padding: 0; display: grid; gap: .5rem; }
.rows li { display: flex; align-items: center; gap: .75rem; padding: .625rem .75rem; border-radius: .875rem;
  background: var(--surface-2); font-size: .9375rem; }
.rows li span:not(.av) { flex: 1; min-width: 0; }
.rows li small { display: block; color: var(--muted); font-size: .8125rem; }
.rows li b { white-space: nowrap; }
.av { display: grid; place-items: center; width: 2.25rem; height: 2.25rem; border-radius: 50%; flex: none; font-weight: 800;
  font-size: .875rem; background: var(--primary-c); color: var(--on-primary-c); }
.av-b { background: #FBE3EC; color: #8E2750; }
.av-c { background: #E3E8FB; color: #2A3F8E; }
@media (prefers-color-scheme: dark) { .av-b { background: #55243B; color: #FFD9E6; } .av-c { background: #273A6E; color: #D9E1FF; } }
.owed { color: var(--on-owed); }
.owe { color: var(--on-owe); }
.mock-pay { margin-top: 1rem; display: flex; align-items: center; gap: .75rem; padding: .875rem 1rem; border-radius: 1rem;
  background: var(--owed-c); color: var(--on-owed); font-weight: 700; font-size: .9375rem; }
.mock-pay svg { width: 1.25rem; height: 1.25rem; flex: none; }
.mock-note { margin-top: .75rem; text-align: center; color: var(--muted); font-size: .8125rem; }
.chip-float { position: absolute; top: -1rem; right: -.75rem; display: flex; align-items: center; gap: .4rem; padding: .5rem .75rem;
  border-radius: 999px; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); font-size: .8125rem;
  font-weight: 700; color: var(--text); }
.chip-float svg { width: 1rem; height: 1rem; color: var(--primary); }

/* Strip of split types */
.types { border-block: 1px solid var(--line); background: var(--surface); padding: 1.5rem 0; }
.types .wrap { display: flex; flex-wrap: wrap; align-items: center; gap: .75rem 1.5rem; }
.types p { font-weight: 700; color: var(--muted); font-size: .8125rem; letter-spacing: .06em; text-transform: uppercase; }
.types ul { display: flex; flex-wrap: wrap; gap: .5rem; margin: 0; padding: 0; list-style: none; }
.types li { padding: .3rem .75rem; border-radius: 999px; background: var(--tile); color: var(--text-2); font-size: .875rem;
  font-weight: 600; }

/* How it works */
.steps { display: grid; gap: 1.25rem; counter-reset: step; list-style: none; margin: 0; padding: 0; }
@media (min-width: 60rem) { .steps { grid-template-columns: repeat(3, 1fr); gap: 1.5rem; } }
.step { position: relative; display: flex; flex-direction: column; padding: 1.75rem; border-radius: var(--radius); background: var(--surface);
  border: 1px solid var(--line); box-shadow: var(--shadow); }
.step::before { counter-increment: step; content: counter(step); display: grid; place-items: center; width: 2.25rem; height: 2.25rem;
  border-radius: .75rem; background: var(--primary); color: var(--on-primary); font-weight: 800; margin-bottom: 1.25rem; }
.step h3 { font-size: 1.3125rem; }
.step p { color: var(--text-2); margin-top: .625rem; }

/* Data band */
.band { position: relative; overflow: hidden; background: linear-gradient(160deg, var(--band-1), var(--band-2)); color: var(--band-text); }
.band::after { content: ""; position: absolute; right: -12rem; top: -12rem; width: 36rem; height: 36rem; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(107, 227, 174, .18), transparent); pointer-events: none; }
.band .wrap { position: relative; z-index: 1; }
.band .eyebrow { color: var(--accent); }
.band .section-head p { color: var(--band-muted); }
.band a { color: #FFFFFF; }
@media (prefers-color-scheme: dark) { .band a { color: var(--primary); } }
.modes { display: grid; gap: 1rem; margin-bottom: 3rem; }
@media (min-width: 48rem) { .modes { grid-template-columns: 1fr 1fr; gap: 1.25rem; } }
.mode { padding: 1.75rem; border-radius: var(--radius); background: var(--band-card); border: 1px solid var(--band-line); }
.mode h3 { font-size: clamp(1.25rem, 1rem + 1vw, 1.5rem); }
.mode .tag { display: inline-block; margin-bottom: .75rem; font-size: .75rem; font-weight: 800; letter-spacing: .06em;
  text-transform: uppercase; color: var(--accent); }
.mode p { margin-top: .5rem; color: var(--band-muted); }
.mode ul { margin: .75rem 0 0; padding-left: 1.2rem; color: var(--band-muted); }
.mode li + li { margin-top: .25rem; }
.grid { display: grid; gap: 1rem; list-style: none; margin: 0; padding: 0; }
@media (min-width: 40rem) { .grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 64rem) { .grid { grid-template-columns: repeat(3, 1fr); gap: 1.25rem; } }
.card { padding: 1.5rem; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); }
.card h3 { font-size: 1.125rem; margin-top: 1rem; letter-spacing: -.01em; }
.card p { color: var(--text-2); margin-top: .5rem; font-size: 1rem; }
.icon { display: grid; place-items: center; width: 2.75rem; height: 2.75rem; border-radius: .875rem; background: var(--primary-c);
  color: var(--on-primary-c); }
.icon svg { width: 1.375rem; height: 1.375rem; }
.band .card { background: var(--band-card); border-color: var(--band-line); }
.band .card p { color: var(--band-muted); }
.band .icon { background: rgba(107, 227, 174, .16); color: #D2F5E4; }
.band .more { margin-top: 2.5rem; color: var(--band-muted); }

/* Features */
.features .card { box-shadow: var(--shadow); }

/* FAQ */
.faq-layout { display: grid; gap: 2rem; }
@media (min-width: 60rem) { .faq-layout { grid-template-columns: .8fr 1.2fr; gap: 4rem; align-items: start; }
  .faq-layout .section-head { position: sticky; top: 7rem; } }
.faq-layout .section-head { margin-bottom: 0; }
.faq { display: grid; gap: .75rem; }
.faq details { border-radius: 1rem; background: var(--surface); border: 1px solid var(--line); }
.faq details[open] { box-shadow: var(--shadow); }
.faq summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 1rem; align-items: center;
  padding: 1.125rem 1.25rem; font-weight: 700; font-size: 1.0625rem; border-radius: 1rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; flex: none; width: .625rem; height: .625rem; border-right: 2px solid var(--muted);
  border-bottom: 2px solid var(--muted); transform: rotate(45deg) translate(-2px, -2px); transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(-135deg) translate(-2px, -2px); }
@media (prefers-reduced-motion: reduce) { .faq summary::after { transition: none; } }
.faq .answer { padding: 0 1.25rem 1.25rem; color: var(--text-2); }
.faq .answer p + p { margin-top: .75rem; }

/* Closing */
.closing { text-align: center; padding: 5rem 0; }
.closing img { width: 4.5rem; height: 4.5rem; border-radius: 1.25rem; margin: 0 auto 1.5rem;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, .18), 0 20px 40px -10px rgba(0, 0, 0, .5); }
.closing h2 { font-size: clamp(1.75rem, 1.2rem + 2.2vw, 2.75rem); }
.closing p { color: var(--band-muted); margin: 1rem auto 0; max-width: 34rem; font-size: 1.125rem; }

/* Legal pages (privacy, delete-account): generated from website/legal/*.md by website/legal/build.py */
.legal { max-width: 46rem; margin: 0 auto; padding: 2.5rem 1.25rem 4rem; }
.legal h1 { font-size: clamp(2rem, 1.5rem + 2vw, 2.75rem); font-weight: 800; letter-spacing: -.03em; }
.legal h2 { font-size: 1.375rem; margin: 2.5rem 0 .75rem; }
.legal h3 { font-size: 1.125rem; margin: 1.75rem 0 .5rem; letter-spacing: -.01em; }
.legal p, .legal ul, .legal ol { margin: .75rem 0 0; }
.legal ul, .legal ol { padding-left: 1.4rem; }
.legal li + li { margin-top: .375rem; }
.legal .meta { color: var(--muted); font-size: .9375rem; margin-top: .5rem; }
.legal blockquote { margin: 1.5rem 0; padding: 1rem 1.25rem; background: var(--primary-c); color: var(--text); border-radius: 1rem; }
.legal blockquote p:first-child { margin-top: 0; }
.legal code { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: .9em; background: var(--tile);
  padding: .05em .3em; border-radius: .3em; }
.table { max-width: 100%; overflow-x: auto; margin-top: 1rem; }
.legal table { border-collapse: collapse; width: 100%; font-size: .9375rem; background: var(--surface); border: 1px solid var(--line);
  border-radius: .75rem; overflow: hidden; }
.legal th, .legal td { text-align: left; vertical-align: top; padding: .625rem .75rem; border-bottom: 1px solid var(--line); }
.legal th { background: var(--surface-2); font-weight: 700; }
.legal tr:last-child td { border-bottom: 0; }
/* Very narrow screens: each table row becomes a small block (label above its explanation). */
@media (max-width: 30rem) {
  .legal table, .legal thead, .legal tbody, .legal tr, .legal th, .legal td { display: block; width: 100%; }
  .legal thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .legal tr { padding: .5rem 0; border-bottom: 1px solid var(--line); }
  .legal td { border: 0; padding: .125rem .75rem; }
  .legal td:first-child { font-weight: 700; }
}

/* Footer */
.site-footer { border-top: 1px solid var(--line); background: var(--surface); padding: 3rem 0 2.5rem; font-size: .9375rem;
  color: var(--text-2); }
.footer-grid { display: grid; gap: 2rem; }
@media (min-width: 48rem) { .footer-grid { grid-template-columns: 1.4fr 1fr 1fr; } }
.site-footer h2 { font-size: .8125rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); margin-bottom: .75rem; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .4rem; }
.site-footer .maker { display: flex; gap: .875rem; align-items: flex-start; max-width: 24rem; }
.site-footer .maker svg { width: 2.25rem; height: 2.25rem; flex: none; }
.site-footer .fine { margin-top: 2.5rem; padding-top: 1.5rem; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap;
  justify-content: space-between; gap: .5rem 1.5rem; color: var(--muted); font-size: .875rem; }
.turtle-shell { fill: #0B5A4F; }
.turtle-core { fill: #F5C451; }
@media (prefers-color-scheme: dark) { .turtle-shell { fill: #8FD9CB; } }
