/* balencr's website: the home page and the legal pages. Brand colours and the app's
   Instrument Serif; body text in the phone's or computer's own font, so the site loads
   nothing from anyone else. */
@font-face {
  font-family: "Instrument Serif";
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url("/fonts/instrument-serif-italic.ttf") format("truetype");
}

:root {
  --bg: #FAF7F2; --elev: #FFFFFF; --sunken: #F2EEE6; --ink: #15140F; --soft: #3A372E; --mute: #6F6B64;
  --line: #E5DFD3; --lime: #D9E34A; --limeink: #1A2A00; --link: #5F7600; --danger: #B3261E;
  --night: #15140F; --night-ink: #F7F3EA; --night-mute: rgba(247, 243, 234, .68); --night-line: rgba(247, 243, 234, .14);
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --serif: "Instrument Serif", Georgia, "Times New Roman", serif;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0F0E0B; --elev: #1A1915; --sunken: #211F1A; --ink: #F7F3EA; --soft: #D9D4C9; --mute: #A8A39A;
    --line: #2E2B25; --link: #E2EC4C; --danger: #FF8A7A;
    color-scheme: dark;
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 16.5px/1.65 var(--sans); }
a { color: var(--link); text-underline-offset: 3px; }
a[href^="mailto:"] { overflow-wrap: anywhere; } /* SUPPORT_EMAIL may be too long for a phone */
/* A keyboard focus ring set off from the element, so it shows on light buttons in dark mode too */
:focus-visible { outline: 2px solid var(--link); outline-offset: 2px; }
.night :focus-visible, .plan.plus :focus-visible { outline-color: var(--lime); }
img, svg { max-width: 100%; }
.wrap { max-width: 1080px; margin: 0 auto; padding-inline: 20px; }

/* ---------- header and footer ---------- */
.site-h { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-block: 18px; }
/* Header and footer links get 44px-tall tap areas; the negative margins keep the layout. */
.brand { display: inline-flex; align-items: center; gap: 10px; color: inherit; text-decoration: none; padding-block: 8px; margin-block: -8px; }
.brand svg { width: 24px; height: 29px; flex-shrink: 0; }
.brand b { font: italic 400 27px/1 var(--serif); letter-spacing: -.01em; }
.nav { display: flex; align-items: center; gap: 22px; font-size: 15px; }
.nav a { color: inherit; opacity: .78; text-decoration: none; padding: 10px 6px; margin: -10px -6px; }
.nav a:hover { opacity: 1; }
@media (max-width: 640px) { .nav .wide { display: none; } }

.site-f { border-top: 1px solid var(--line); padding-block: 28px 44px; font-size: 14px; color: var(--mute); }
.site-f nav { display: flex; flex-wrap: wrap; gap: 0 22px; margin: -10px 0 -3px; }
.site-f nav a { display: inline-flex; align-items: center; min-height: 44px; color: var(--soft); }
.site-f p { margin: 4px 0; }
.more a { padding-block: 13px; } /* a link on its own line: a 44px tap area */

/* ---------- legal pages ---------- */
.doc { max-width: 720px; margin: 0 auto; padding: 8px 20px 64px; }
.doc h1 { font: 600 34px/1.15 var(--sans); letter-spacing: -.02em; margin: 26px 0 6px; text-wrap: balance; }
.doc .updated { color: var(--mute); font-size: 14px; margin: 0 0 26px; }
.doc h2 { font-size: 19px; line-height: 1.3; margin: 40px 0 10px; padding-top: 22px; border-top: 1px solid var(--line); text-wrap: balance; }
.doc h3 { font-size: 16.5px; margin: 22px 0 6px; }
.doc ul { padding-left: 20px; }
.doc li { margin: 7px 0; }
.doc .box { margin: 18px 0; padding: 16px 20px; border-radius: 18px; background: var(--sunken); }
.doc .box p { margin: 0; }
.doc .box ul { margin: 6px 0 0; }
.doc table { width: 100%; border-collapse: collapse; font-size: 15px; }
.doc .scroll { overflow-x: auto; }
.doc th, .doc td { text-align: left; vertical-align: top; padding: 10px 12px 10px 0; border-bottom: 1px solid var(--line); }
.doc th { font-weight: 600; }

/* the deletion form */
.doc form { margin: 16px 0; }
.doc label { display: block; font-weight: 600; margin: 0 0 6px; }
.doc input { width: 100%; max-width: 320px; font: inherit; padding: 11px 13px; border: 1px solid var(--mute); border-radius: 12px; background: var(--elev); color: var(--ink); }
.doc button { display: block; margin-top: 12px; font: inherit; font-weight: 600; padding: 11px 20px; border: 0; border-radius: 12px; background: var(--ink); color: var(--bg); cursor: pointer; }
.doc button.danger { background: var(--danger); color: var(--bg); }
.doc button:disabled { opacity: .5; cursor: default; }
.status { margin: 12px 0 0; }
.status.error { color: var(--danger); }

/* ---------- home ---------- */
.night { background: radial-gradient(90% 70% at 85% 0%, rgba(217, 227, 74, .16), transparent 60%), var(--night); color: var(--night-ink); }
.night a, .plan.plus a { color: var(--lime); }
.night .brand, .night .nav a { color: var(--night-ink); }
.hero { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: 48px; align-items: center; padding-block: 48px 92px; }
@media (max-width: 860px) { .hero { grid-template-columns: minmax(0, 1fr); gap: 40px; padding-block: 24px 64px; } }
.eyebrow { margin: 0; font-size: 13px; font-weight: 600; letter-spacing: .09em; text-transform: uppercase; color: var(--night-mute); }
.hero h1 { font: italic 400 clamp(54px, 9vw, 100px)/.95 var(--serif); letter-spacing: -.02em; margin: 14px 0 22px; text-wrap: balance; }
.hero h1 em { color: var(--lime); }
.lead { margin: 0; font-size: 18.5px; line-height: 1.6; color: var(--night-mute); max-width: 46ch; }
.cta { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: 30px; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 52px; padding: 0 22px; border-radius: 16px; font-weight: 600; font-size: 16px; text-decoration: none; }
.btn.lime { background: var(--lime); color: var(--limeink); }
.night .btn.lime { color: var(--limeink); }
.btn.line { color: var(--night-ink); box-shadow: inset 0 0 0 1px var(--night-line); }
.btn[aria-disabled="true"] { cursor: default; }
.soon { margin: 12px 0 0; font-size: 14px; color: var(--night-mute); }

/* the app peeking out of the hero */
.peek { position: relative; display: grid; gap: 14px; max-width: 420px; justify-self: center; width: 100%; }
.peek-card { position: relative; overflow: hidden; padding: 22px 24px; border-radius: 28px; color: #15140F; background: linear-gradient(160deg, #FFFFFF, #F3EFE5); box-shadow: 0 30px 60px -30px rgba(0, 0, 0, .6); }
.peek-card .sun { position: absolute; right: -46px; top: -56px; width: 150px; height: 150px; border-radius: 50%; background: radial-gradient(circle at 30% 72%, #F2F8A8 0%, #D9E34A 45%, #A5BD00 100%); }
.peek-card small { position: relative; display: block; font-size: 14px; color: #6F6B64; font-weight: 500; }
.peek-card .amt { position: relative; display: block; margin-top: 4px; font-size: 44px; font-weight: 700; letter-spacing: -.045em; line-height: 1.05; font-variant-numeric: tabular-nums; }
.peek-card .per { position: relative; margin: 2px 0 0; font-size: 15px; color: #5F7600; font-weight: 600; }
.peek-bar { position: relative; display: flex; gap: 4px; height: 8px; margin: 18px 0 14px; }
.peek-bar i { display: block; border-radius: 99px; background: #15140F; }
.peek-bar i + i { background: #D9E34A; }
.peek-card p { position: relative; margin: 0; font-size: 14.5px; line-height: 1.5; color: #3A372E; text-wrap: pretty; }
.peek-quick { display: flex; align-items: center; gap: 12px; padding: 14px 18px; border-radius: 20px; background: rgba(247, 243, 234, .08); box-shadow: inset 0 0 0 1px var(--night-line); font-size: 15px; color: var(--night-ink); }
.peek-quick svg { width: 20px; height: 20px; flex-shrink: 0; color: var(--lime); }
.peek-quick b { white-space: nowrap; }
.peek-quick span { color: var(--night-mute); }

.sec { padding-block: 76px; }
.sec h2 { font: 600 clamp(28px, 4vw, 40px)/1.12 var(--sans); letter-spacing: -.025em; margin: 0 0 12px; text-wrap: balance; }
.sec h2 em { font: italic 400 1.12em/1 var(--serif); letter-spacing: -.01em; }
.sec .sub { margin: 0 0 34px; color: var(--mute); font-size: 17.5px; max-width: 58ch; }
.night .sec .sub, .night .sub { color: var(--night-mute); }
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr)); gap: 14px; }
/* ten cards: five a row on a wide screen, so none sits alone */
.cards.ten { grid-template-columns: repeat(auto-fit, minmax(min(100%, 180px), 1fr)); }
/* ...but where three would fit (608–801px, plus room for a desktop scrollbar), the tenth
   would sit alone: two a row there */
@media (min-width: 608px) and (max-width: 820px) { .cards.ten { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.card { padding: 22px; border-radius: 22px; background: var(--elev); box-shadow: 0 0 0 1px var(--line); }
.card h3 { margin: 0 0 6px; font-size: 17px; line-height: 1.3; }
.card p { margin: 0; color: var(--mute); font-size: 15.5px; line-height: 1.55; }
.card .dot { display: block; width: 10px; height: 10px; margin-bottom: 16px; border-radius: 50%; background: var(--lime); box-shadow: 0 0 0 4px rgba(217, 227, 74, .22); }
.night .card { background: rgba(247, 243, 234, .06); box-shadow: inset 0 0 0 1px var(--night-line); }
.night .card p { color: var(--night-mute); }
.plus-tag { display: inline-block; margin-bottom: 12px; padding: 4px 10px; border-radius: 99px; background: var(--lime); color: var(--limeink); font-size: 12.5px; font-weight: 700; letter-spacing: .02em; }

/* pricing */
.plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: 16px; align-items: stretch; }
.plan { display: flex; flex-direction: column; padding: 28px; border-radius: 26px; background: var(--elev); box-shadow: 0 0 0 1px var(--line); }
.plan h3 { margin: 0; font-size: 18px; }
.plan .price { margin: 12px 0 2px; font-size: 44px; font-weight: 700; letter-spacing: -.04em; line-height: 1.05; font-variant-numeric: tabular-nums; }
.plan .price small { font-size: 16px; font-weight: 500; letter-spacing: 0; color: var(--mute); }
.plan .alt { margin: 0; color: var(--mute); font-size: 15px; }
.plan ul { margin: 18px 0 0; padding: 0; list-style: none; display: grid; gap: 9px; font-size: 15.5px; }
.plan li { display: flex; gap: 10px; align-items: flex-start; }
.plan li::before { content: ""; flex-shrink: 0; width: 8px; height: 8px; margin-top: 9px; border-radius: 50%; background: var(--lime); }
.plan.plus { background: var(--night); color: var(--night-ink); box-shadow: 0 0 0 1px rgba(217, 227, 74, .35); }
.plan.plus .price small, .plan.plus .alt { color: var(--night-mute); }
.plan .fine { margin: auto 0 0; padding-top: 20px; font-size: 13.5px; color: var(--mute); }
.plan.plus .fine { color: var(--night-mute); }

/* privacy promises */
.promises { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); gap: 22px 28px; margin: 0; padding: 0; list-style: none; }
.promises li { padding-top: 16px; border-top: 2px solid var(--ink); }
.promises b { display: block; font-size: 17px; margin-bottom: 4px; }
.promises span { color: var(--mute); font-size: 15.5px; }
.contact { display: grid; gap: 6px; font-size: 17px; }
