/* Brin — shared styles.
   App-surface tokens are the real values from HomeStyle in the iOS app and
   stay light in both page themes, because Brin is a light app. */
:root {
  --forest: #1D322A; --forest-soft: #274236;
  --paper: #EDF0EB; --surface: #F8FAF6;
  --ink: #17221D; --ink-soft: #4E5E55; --ink-faint: #7A8A81;
  --sage: #9CB29A; --moss: #4F7A5E; --amber: #C08A43; --amber-soft: #E5C08E;
  --rule: rgba(23,34,29,0.12);
  --light: #EEF1E9; --light-soft: rgba(238,241,233,0.66);
  --serif: "Newsreader", Georgia, "Times New Roman", serif;
  --sans: "IBM Plex Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;

  --app-canvas: #F4F2EE; --app-card: #FFFFFF; --app-inset: #F0EDE7;
  --app-ink: #1F2429; --app-ink-soft: #5C656D; --app-muted: #636C74;  /* the app ships #707981, which is 4.43:1 on white
                            and just misses AA; nudged for the web mockups only */
  --app-sage: #4E9A88; --app-sand: #B9823D; --app-slate: #6F87A0;
  --app-hair: rgba(0,0,0,0.07); --app-reading: rgba(31,36,41,0.75);
  --app-sans: -apple-system, BlinkMacSystemFont, "SF Pro Text", "IBM Plex Sans", sans-serif;
  --app-serif: ui-serif, "New York", "Newsreader", Georgia, serif;
  --app-mono: ui-monospace, "SF Mono", SFMono-Regular, Menlo, monospace;

  box-sizing: border-box;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper: #121A16; --surface: #1A2520; --ink: #E9EFEA; --ink-soft: #A9B8AF; --ink-faint: #7D8E85;
    --rule: rgba(233,239,234,0.12); --forest: #0F1914; --forest-soft: #1B2B24; --moss: #7BA78A;
  }
}
:root[data-theme="dark"] {
  --paper: #121A16; --surface: #1A2520; --ink: #E9EFEA; --ink-soft: #A9B8AF; --ink-faint: #7D8E85;
  --rule: rgba(233,239,234,0.12); --forest: #0F1914; --forest-soft: #1B2B24; --moss: #7BA78A;
}
*, *::before, *::after { box-sizing: inherit; }
html { scroll-padding-top: calc(env(safe-area-inset-top, 0px) + 12px); scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 17px/1.55 var(--sans); -webkit-font-smoothing: antialiased; }
svg { max-width: 100%; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--amber); outline-offset: 3px; border-radius: 6px; }

.container { max-width: 1120px; margin: 0 auto; padding: 0 24px; }
.dark { background: var(--forest); color: var(--light); }
section { padding: 96px 0; }
.big { font-family: var(--serif); font-weight: 500; letter-spacing: -0.025em;
       font-size: clamp(38px, 5.4vw, 66px); line-height: 1.02; margin: 0; text-wrap: balance; }
.say { font-size: 19px; color: var(--ink-soft); margin: 18px 0 0; max-width: 42ch; }
.dark .say { color: var(--light-soft); }
h3 { font-family: var(--serif); font-weight: 500; font-size: clamp(22px, 2.6vw, 30px); line-height: 1.15; margin: 0 0 8px; text-wrap: balance; }
p { margin: 0 0 16px; }
.lede { font-size: 20px; color: var(--ink-soft); max-width: 60ch; }

/* Nav */
.nav { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; padding: 22px 0 0; }
.wordmark { display: inline-flex; align-items: center; gap: 10px; font-family: var(--serif);
            font-size: 27px; font-weight: 500; line-height: 1; text-decoration: none; margin-right: auto; }
.wordmark img { width: 36px; height: 36px; border-radius: 9px; object-fit: cover; flex: none; }
.wordmark span { transform: translateY(1px); }
.nav .links { display: flex; gap: 16px; flex-wrap: wrap; font-size: 15px; }
.nav .links a { text-decoration: none; opacity: 0.72; }
.nav .links a:hover, .nav .links a[aria-current="page"] { opacity: 1; }
.nav .pill { font-size: 15px; font-weight: 500; text-decoration: none; padding: 8px 15px;
             border: 1px solid rgba(238,241,233,0.3); border-radius: 999px; }

/* Page header */
.masthead { padding: 0 0 72px; }
.eyebrow { font-size: 12px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase;
           color: var(--sage); margin: 56px 0 14px; }

/* Cards */
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; }
.card { background: var(--surface); border: 1px solid var(--rule); border-radius: 18px; padding: 22px; }
.card h4 { font-size: 16px; font-weight: 600; margin: 0 0 6px; }
.card p { font-size: 14.5px; color: var(--ink-soft); margin: 0; }
.dark .card { background: var(--forest-soft); border-color: rgba(238,241,233,0.12); }
.dark .card p { color: var(--light-soft); }

/* Dark sections inherit ink colours meant for the light ground, which put
   #4E5E55 text on #1D322A — about 2:1, unreadable. Everything that carries
   copy or a border inside .dark needs its own value. */
.dark .lede, .dark td.detail { color: var(--light-soft); }
.dark p { color: rgba(238,241,233,0.82); }
.dark th { color: var(--sage); }
.dark th, .dark td { border-color: rgba(238,241,233,0.14); }
.dark td:first-child { color: var(--light); }
.dark .quote { color: var(--light); border-left-color: var(--amber-soft); }
.dark strong { color: var(--light); }

/* Rule block */
.flow { background: var(--forest-soft); color: var(--light); border-radius: 16px; padding: 22px;
        font-family: var(--app-mono); font-size: 13.5px; line-height: 1.95; margin: 0; overflow-x: auto; }
.flow .yes { color: var(--sage); }
.flow .no { color: #E2A27A; }

/* Table */
.scroll { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: 15px; }
th, td { text-align: left; padding: 11px 16px 11px 0; border-bottom: 1px solid var(--rule); vertical-align: top; }
th { font-size: 11.5px; letter-spacing: 0.07em; text-transform: uppercase; color: var(--ink-faint); font-weight: 600; }
td:first-child { font-weight: 500; white-space: nowrap; padding-right: 24px; }
td.detail { color: var(--ink-soft); }

/* Quote */
.quote { border-left: 3px solid var(--amber); padding: 4px 0 4px 18px; margin: 28px 0;
         font-family: var(--serif); font-size: clamp(20px, 2.6vw, 26px); line-height: 1.3; max-width: 46ch; }

/* App surfaces */
.app { background: var(--app-canvas); color: var(--app-ink); font-family: var(--app-sans); }
.app-card { background: var(--app-card); border-radius: 20px; padding: 16px; box-shadow: 0 4px 14px rgba(0,0,0,0.045); }
.app-eyebrow { font: 700 11.5px/1.25 var(--app-sans); letter-spacing: 0.08em; text-transform: uppercase; color: var(--app-muted); }
/* The app's sand is #B9823D, 3.32:1 on white. Darkened for the web only. */
.app-eyebrow.moving { color: #98682A; }
.app-lead { font-family: var(--app-serif); font-weight: 400; font-size: 22px; line-height: 1.17; color: var(--app-ink); margin: 9px 0 0; }
.app-note { font-size: 11.5px; line-height: 1.45; color: var(--app-muted); }
.app-num { font: 500 29px/1 var(--app-sans); font-variant-numeric: tabular-nums; }
.app-rule { height: 1px; background: var(--app-hair); margin: 13px 0; border: 0; }
.head-row { display: flex; align-items: baseline; gap: 10px; }
.head-row .app-eyebrow:last-child { margin-left: auto; text-align: right; }
.ev { display: flex; align-items: baseline; gap: 8px; font-size: 11.5px; margin-top: 7px; }
.ev .ar { width: 13px; font: 600 11.5px/1 var(--app-sans); color: #98682A; flex: none; }
.ev .ch { margin-left: auto; font: 11px var(--app-mono); font-variant-numeric: tabular-nums; color: var(--app-ink-soft); }
.ev .ch.soft { font-family: var(--app-sans); color: var(--app-muted); }
/* The app's sage is #4E9A88, 3.33:1 on white. Darkened for the web only. */
.strength { font: 600 11.5px var(--app-sans); color: #397A69; margin-top: 9px; }

/* Phone */
.phone { width: 100%; max-width: 340px; background: #0E1512; border-radius: 44px; padding: 10px;
         box-shadow: 0 50px 90px -40px rgba(20,36,29,0.5); }
.screen { border-radius: 35px; padding: 8px 12px 18px; overflow: hidden; position: relative; }
.status { display: flex; justify-content: space-between; padding: 6px 8px 10px; font: 600 12px var(--app-sans); color: var(--app-ink); }
.status .sig { display: flex; align-items: flex-end; gap: 2px; }
.status .sig b { width: 3px; background: var(--app-ink); border-radius: 1px; display: block; }
.fade { position: absolute; left: 0; right: 0; bottom: 0; height: 56px;
        background: linear-gradient(to bottom, rgba(244,242,238,0), var(--app-canvas)); pointer-events: none; }
.split { display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 56px; align-items: center; }

/* Next / footer */
.next { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.next a { font-size: 15px; text-decoration: none; padding: 11px 18px; border: 1px solid var(--rule); border-radius: 999px; }
.dark .next a { border-color: rgba(238,241,233,0.25); }
.next a:hover { background: var(--surface); }
/* var(--surface) is near-white, so on a dark section a hovered link put
   #EEF1E9 text on #F8FAF6 — 1.09:1, i.e. blank. */
.dark .next a:hover { background: rgba(238,241,233,0.12); border-color: rgba(238,241,233,0.45); }
footer { border-top: 1px solid var(--rule); padding: 26px 0 44px; font-size: 14px; color: var(--ink-faint); }
footer .container { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; }

@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
@media (max-width: 900px) { .split { grid-template-columns: minmax(0,1fr); gap: 40px; } }
@media (max-width: 620px) {
  .container { padding: 0 16px; }
  section { padding: 64px 0; }
  .masthead { padding-bottom: 48px; }
  .nav { gap: 12px; }
  .nav .links { gap: 12px; font-size: 14px; order: 3; width: 100%; }
}

/* Real screenshots, in a frame */
.shot { width: 100%; max-width: 330px; background: #0E1512; border-radius: 44px; padding: 10px;
        box-shadow: 0 50px 90px -40px rgba(20,36,29,0.5); margin: 0; }
/* height:auto is load-bearing: the intrinsic width/height attributes are
   there to reserve space before the image loads, and without this the
   attribute height wins over the fluid width and the screen stretches. */
.shot img { display: block; width: 100%; height: auto; border-radius: 35px; }
.shot-wrap { display: flex; flex-direction: column; align-items: center; gap: 14px; margin: 0; }
.shot-wrap figcaption { font-size: 13.5px; color: var(--ink-faint); text-align: center; max-width: 30ch; }
.dark .shot-wrap figcaption { color: var(--light-soft); }
@media (max-width: 900px) { .shot-wrap { margin: 0 auto; } }

/* A hero screen shows its top and fades out; a full phone is too tall to
   sit beside a headline without pushing it off the first screen. */
.shot.crop { position: relative; }
.shot.crop img { height: 470px; object-fit: cover; object-position: top; }
.shot.crop::after { content: ""; position: absolute; left: 10px; right: 10px; bottom: 10px; height: 130px;
                    border-radius: 0 0 35px 35px; pointer-events: none;
                    background: linear-gradient(to bottom, rgba(29,50,42,0), #1D322A 88%); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .shot.crop::after { background: linear-gradient(to bottom, rgba(15,25,20,0), #0F1914 88%); } }
:root[data-theme="dark"] .shot.crop::after { background: linear-gradient(to bottom, rgba(15,25,20,0), #0F1914 88%); }
/* Policy pages */
.policy { max-width: 920px; }
.policy h3 { margin-top: 64px; }
.policy h3:first-child { margin-top: 0; }
.policy a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.policy-list { margin: 20px 0 28px; padding-left: 1.4rem; font-size: 1.05rem; line-height: 1.75; }
.policy-list li + li { margin-top: 8px; }
footer a { color: inherit; }


/* Skip link: off-screen until focused. */
.skip { position: absolute; left: -9999px; top: 0; z-index: 10;
        background: var(--light); color: var(--forest); padding: 12px 18px;
        border-radius: 0 0 10px 0; font-weight: 500; text-decoration: none; }
.skip:focus { left: 0; }

@media (max-width: 760px) {
  /* Eight links wrapped to three rows and pushed the page down. One scrolling
     row keeps them all reachable without a menu to open. */
  .nav .links { flex-wrap: nowrap; overflow-x: auto; -webkit-overflow-scrolling: touch;
                scrollbar-width: none; margin: 0 -16px; padding: 2px 16px 6px; }
  .nav .links::-webkit-scrollbar { display: none; }
  .nav .links a { white-space: nowrap; }
}


ul.plain { margin: 0 0 20px; padding-left: 20px; max-width: 58ch; }
ul.plain li { margin-bottom: 7px; }
.dark ul.plain li { color: var(--light-soft); }

/* 2026 site refinement: one stable visual system, tighter hierarchy and less chrome. */
:root:not([data-theme="dark"]) {
  --paper: #F4F3EF; --surface: #FFFFFF; --ink: #17221D; --ink-soft: #4E5E55; --ink-faint: #738078;
  --rule: rgba(23,34,29,0.12); --forest: #192D25; --forest-soft: #243B31; --moss: #4F7A5E;
}
body { background: var(--paper); }
.container { max-width: 1160px; padding-left: 28px; padding-right: 28px; }
header.dark { background: radial-gradient(circle at 78% 18%, #29473A 0, var(--forest) 38%, #14241D 100%); }
section { padding: 84px 0; }
.nav { gap: 22px; padding-top: 25px; }
.nav .links { gap: 22px; font-size: 14px; }
.card { border-radius: 22px; padding: 24px; }
.section-label { margin: 0 0 14px; color: var(--moss); font-size: 12px; font-weight: 600;
                 letter-spacing: .12em; text-transform: uppercase; }
.dark .section-label { color: var(--sage); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.herolink.primary { background: var(--light); color: var(--forest); border-color: var(--light); }
.herolink.primary:hover { background: #fff; border-color: #fff; }
.principles { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 1px;
              margin-top: 42px; border: 1px solid var(--rule); border-radius: 22px; overflow: hidden; background: var(--rule); }
.principles > div { padding: 30px; background: rgba(255,255,255,.76); }
.principles strong { display: block; margin-bottom: 9px; font: 500 26px/1.1 var(--serif); }
.principles p { color: var(--ink-soft); margin: 0; font-size: 15px; }
.feature-list .card { height: 100%; transition: transform .18s ease, border-color .18s ease, background .18s ease; }
.feature-list a:hover .card { transform: translateY(-2px); background: rgba(255,255,255,.08); }
.hero-grid { min-height: 650px; padding-top: 20px; padding-bottom: 68px !important; }
.versus { margin-top: 48px; }
.masthead .big { max-width: 17ch; }

/* Score-versus-evidence comparison */
.versus { display: grid; grid-template-columns: minmax(0, .78fr) minmax(0, 1.22fr);
          gap: 18px; max-width: 920px; margin: 48px auto 0; align-items: stretch; }
.panel { min-width: 0; min-height: 390px; padding: 30px; border: 1px solid var(--rule);
         border-radius: 24px; overflow: hidden; }
.panel .who { display: block; margin-bottom: 24px; font-size: 12px; font-weight: 600;
              letter-spacing: .1em; text-transform: uppercase; }
.panel.them { display: flex; flex-direction: column; align-items: center; background: #ECEDEA;
              color: #667069; text-align: center; }
.panel.them .who { align-self: flex-start; }
.panel.them > p { margin: 14px 0 0; color: #707872; font-size: 15px; }
.ring { position: relative; width: min(210px, 72%); aspect-ratio: 1; margin: auto; color: #89918C; }
.ring svg { display: block; width: 100%; height: 100%; }
.ring > span { position: absolute; inset: 0; display: grid; place-items: center;
               font: 500 48px/1 var(--sans); color: #59625D; }
.panel.us { background: var(--app-canvas); }
.panel.us .who { color: var(--app-muted); }
.panel.us .app-card { min-height: 278px; padding: 24px; }
.fig { display: flex; justify-content: space-between; align-items: end; gap: 20px; margin-top: 30px; }
.unit { margin-left: 4px; color: var(--app-muted); font-size: 13px; }
.range { margin-top: 6px; color: var(--app-muted); font-size: 12px; }
.rate { display: flex; flex-direction: column; align-items: flex-end; text-align: right; }
.rate b { color: #98682A; font: 600 24px/1 var(--app-sans); }
.rate span { margin-top: 5px; color: var(--app-muted); font-size: 11px; }
.tag { display: flex; align-items: center; gap: 8px; margin-top: 10px; color: var(--app-ink-soft); font-size: 12px; }
.tag i { width: 8px; height: 8px; border-radius: 50%; background: #98682A; flex: none; }

@media (max-width: 760px) {
  .container { padding-left: 18px; padding-right: 18px; }
  section { padding: 58px 0; }
  .hero-grid { min-height: auto; padding-top: 12px; padding-bottom: 54px !important; }
  .hero .shot-wrap { display: none; }
  .hero h1 { font-size: clamp(54px, 17vw, 76px); }
  .principles { grid-template-columns: 1fr; }
  .principles > div { padding: 24px; }
  .nav .links { gap: 18px; }
  .versus { grid-template-columns: 1fr; }
  .panel { min-height: 0; padding: 24px 20px; }
  .ring { width: 150px; margin: 12px auto; }
  .panel.us .app-card { padding: 18px; }
}

/* Feature pages pair the product screen with its explanation instead of
   spending a full-width section on a single phone. */
.feature-page > .container {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 350px;
  column-gap: 68px;
  row-gap: 0;
  align-items: start;
}
.feature-page .split { display: contents; }
.feature-page .split > div { grid-column: 1; }
.feature-page .shot-wrap {
  grid-column: 2;
  grid-row: 1 / span 3;
  position: sticky;
  top: 28px;
}
.feature-page > .container > h3 {
  grid-column: 1;
  margin-top: 0 !important;
}
.feature-page .split + h3 { margin-top: 42px !important; }
.feature-page .feature-rows { grid-column: 1; }

/* A compact feature index replaces rigid card rows. Items keep their natural
   height, while the shared rules give the section a deliberate rhythm. */
.feature-rows {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: 34px;
  row-gap: 0;
  margin-top: 16px;
}
.feature-rows .card {
  min-height: 0;
  padding: 19px 0 22px;
  background: transparent;
  border: 0;
  border-top: 1px solid var(--rule);
  border-radius: 0;
}
.feature-rows .card h4 { font-size: 17px; }
.feature-rows .card p { max-width: 40ch; font-size: 15px; line-height: 1.58; }
.dark .feature-rows .card {
  background: transparent;
  border-color: rgba(238,241,233,.17);
}
.feature-list-section .feature-rows { margin-top: 24px; }

@media (max-width: 900px) {
  .feature-page > .container { display: block; }
  .feature-page .split { display: grid; }
  .feature-page .shot-wrap { position: static; margin: 38px auto 0; }
  .feature-page > .container > h3,
  .feature-page .split + h3 { margin-top: 52px !important; }
}

@media (max-width: 620px) {
  .feature-rows { grid-template-columns: 1fr; }
  .feature-rows .card { padding: 17px 0 20px; }
  .wordmark { gap: 8px; font-size: 25px; }
  .wordmark img { width: 32px; height: 32px; border-radius: 8px; }
}
