/* site.css - THE stylesheet of www.deseretsingles.com (redesign, 2026-10-28: Mark - "I hate our website. Completely
   redesign it from the ground up").

   ONE HOME. Every public page links this file and carries no <style> of its own; the header, footer and script tags
   around each page are written by Docs/website/build_site.py, and one_rule.py rule_website_one_look checks both.
   Before this file, each of ~30 pages carried its own copy of the nav, footer and styles, in three unrelated looks
   (a neon-orange homepage, peach-gradient guides, dark legal pages).

   THE LOOK IS THE APP STORE LISTING'S (Docs/AppStore/ds_store_panorama.py, the set Mark approved 2026-10-14): warm
   paper, a soft periwinkle band with butter-yellow words on it (Mark, 2026-10-08: "i don't like the navy look, it's
   to in your face. Choose a color that young people would like"), heavy rounded headlines, handwritten accents, and
   real app screens. Every visitor the site sends to a store lands on that listing, so the two look like one brand.
   The band is a shade deeper than the store's #7389DC so white text on it passes contrast (4.5:1); the colored
   headline words are the store's, darkened where needed to stay readable (3:1 at headline size). */

:root {
  --paper: #F6F2E9;          /* CREAM - the store set, the emails and the app's ground */
  --paper-2: #EFE8D9;
  --card: #FFFFFF;
  --ink: #26335E;            /* body text, 10.9:1 on paper */
  --ink-2: #4A5B85;          /* INK2 - secondary text, 6.0:1 */
  --line: rgba(38, 51, 94, .12);
  --blue: #2C64E0;           /* the logo's blue - the one action color */
  --blue-d: #1F4FBF;
  --band: #5A6FD0;           /* the store's periwinkle band, deepened for white text */
  --band-d: #4A5EBE;
  --butter: #FFE27A;         /* words on the band */
  --gold: #EDB73C;           /* underlines, stars, small marks */
  --rose: #B5476A;           /* "Likes You." */
  --teal: #1F7A69;           /* "What Matters." (store #2E9C89, darkened) */
  --sky: #3F6FB0;            /* "Real People." (store #5B8CC4, darkened) */
  --coral: #D2502F;          /* SafeDate(TM) (store #EF6C4D, darkened) */
  --r: 22px;
  --r-lg: 32px;
  --wrap: 1140px;
  --shadow: 0 18px 40px -22px rgba(38, 51, 94, .45);
  --display: 'Nunito', ui-rounded, system-ui, -apple-system, 'Segoe UI', sans-serif;
  --hand: 'Caveat', 'Bradley Hand', cursive;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 80px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition: none !important; animation: none !important; } }
html, body { overflow-x: hidden; }
@supports (overflow: clip) { html, body { overflow-x: clip; } }
body {
  font-family: var(--display);
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink);
  background-color: var(--paper);
  /* the store set's paper grain, drawn by the browser (no image to download) */
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .24 0 0 0 0 .2 0 0 0 0 .12 0 0 0 .07 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg, video { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
button { font: inherit; }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; border-radius: 6px; }
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 760px; }
.skip { position: absolute; left: -999px; top: 8px; z-index: 100; background: var(--card); padding: 10px 16px; border-radius: 12px; font-weight: 800; }
.skip:focus { left: 12px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------------------------------------------------------------- type */
h1, h2, h3, .display { font-family: var(--display); font-weight: 900; letter-spacing: -.02em; line-height: 1.04; color: var(--ink); text-wrap: balance; }
h1 { font-size: clamp(2.5rem, 7.2vw, 4.6rem); }
h2 { font-size: clamp(1.9rem, 4.6vw, 3rem); }
h3 { font-size: 1.3rem; line-height: 1.2; letter-spacing: -.01em; font-weight: 800; }
p { text-wrap: pretty; }
.hand { font-family: var(--hand); font-weight: 700; letter-spacing: 0; line-height: 1; font-size: clamp(1.7rem, 4vw, 2.4rem); color: var(--ink-2); display: block; transform: rotate(-2deg); transform-origin: left; }
.kicker { display: inline-block; font-weight: 800; font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; color: var(--band-d); margin-bottom: 14px; }
.lede { font-size: clamp(1.08rem, 2.2vw, 1.25rem); color: var(--ink-2); max-width: 38rem; }
.c-rose { color: var(--rose); } .c-teal { color: var(--teal); } .c-sky { color: var(--sky); } .c-coral { color: var(--coral); } .c-blue { color: var(--blue); }
.tm { font-size: .45em; vertical-align: super; letter-spacing: 0; }
/* the gold hand-drawn underline from the store set */
.uline { background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 14' preserveAspectRatio='none'%3E%3Cpath d='M3 9c40-6 90-8 194-3' fill='none' stroke='%23EDB73C' stroke-width='5' stroke-linecap='round'/%3E%3C/svg%3E") bottom left / 100% .32em no-repeat; padding-bottom: .1em; }
.spark { position: absolute; pointer-events: none; color: var(--ink-2); font-family: var(--display); font-weight: 900; line-height: 1; user-select: none; }
.spark.c-coral { color: var(--coral); }

/* ---------------------------------------------------------------- buttons (one line, always - Mark 2026-09-14) */
.btn, .btn-primary {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  white-space: nowrap; font-weight: 800; font-size: 1.02rem; line-height: 1;
  padding: 16px 26px; border-radius: 999px; text-decoration: none; border: 2px solid transparent; cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease, background-color .15s ease;
  background: var(--blue); color: #fff; box-shadow: 0 12px 26px -12px rgba(44, 100, 224, .7);
}
.btn:hover, .btn-primary:hover { background: var(--blue-d); transform: translateY(-1px); }
.btn:active, .btn-primary:active { transform: translateY(1px) scale(.98); }
.btn-quiet { background: transparent; color: var(--ink); border-color: var(--line); box-shadow: none; }
.btn-quiet:hover { background: var(--card); border-color: rgba(38, 51, 94, .25); }
.btn-butter { background: var(--butter); color: var(--ink); box-shadow: 0 12px 26px -14px rgba(20, 20, 60, .6); }
.btn-butter:hover { background: #FFEA99; }
.btn-light { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .55); box-shadow: none; }
.btn-light:hover { background: rgba(255, 255, 255, .12); }
.btn-sm { padding: 11px 18px; font-size: .92rem; }
.btn svg { width: 1.15em; height: 1.15em; flex: none; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.link { color: var(--blue); font-weight: 800; text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 3px; }
.link:hover { color: var(--blue-d); }

/* ---------------------------------------------------------------- header */
.sh { position: sticky; top: 0; z-index: 50; background: rgba(246, 242, 233, .86); -webkit-backdrop-filter: saturate(1.4) blur(14px); backdrop-filter: saturate(1.4) blur(14px); border-bottom: 1px solid var(--line); }
.sh-in { display: flex; align-items: center; gap: 16px; height: 68px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 900; font-size: 1.22rem; letter-spacing: -.02em; white-space: nowrap; color: var(--ink); }
.brand img { width: 38px; height: 38px; border-radius: 10px; box-shadow: 0 4px 12px -4px rgba(44, 100, 224, .45); }
.sh-nav { display: flex; gap: 4px; margin-left: auto; }
.sh-nav a { text-decoration: none; font-weight: 700; font-size: .96rem; color: var(--ink-2); padding: 8px 12px; border-radius: 999px; white-space: nowrap; }
.sh-nav a:hover, .sh-nav a[aria-current] { color: var(--ink); background: rgba(38, 51, 94, .07); }
.sh .btn { margin-left: 8px; }
.sh-menu { display: none; position: relative; }
.sh-menu summary { list-style: none; cursor: pointer; width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; color: var(--ink); }
.sh-menu summary::-webkit-details-marker { display: none; }
.sh-menu summary:hover { background: rgba(38, 51, 94, .07); }
.sh-menu svg { width: 24px; height: 24px; }
.sh-menu .x { display: none; }
.sh-menu[open] .x { display: block; } .sh-menu[open] .bars { display: none; }
.sh-drop { position: absolute; right: 0; top: 52px; width: min(300px, calc(100vw - 32px)); background: var(--card); border-radius: var(--r); box-shadow: 0 24px 60px -20px rgba(38, 51, 94, .5); padding: 10px; display: grid; }
.sh-drop a { text-decoration: none; font-weight: 800; padding: 13px 14px; border-radius: 14px; }
.sh-drop a:hover { background: var(--paper); }
@media (max-width: 900px) {
  .sh-nav { display: none; }
  .sh .btn { margin-left: auto; }
  .sh-menu { display: block; }
}
@media (max-width: 400px) {
  .brand span { font-size: 1.05rem; }
  .brand img { width: 34px; height: 34px; }
  .sh .btn { padding: 10px 14px; font-size: .88rem; }
  .sh-in { gap: 8px; }
}

/* ---------------------------------------------------------------- sections */
.sec { padding: clamp(64px, 9vw, 112px) 0; position: relative; }
.sec-tight { padding: clamp(40px, 6vw, 72px) 0; }
.sec-head { max-width: 46rem; margin-bottom: clamp(32px, 5vw, 56px); }
.sec-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.sec-head.center .hand { transform-origin: center; }
.sec-head p { margin-top: 16px; color: var(--ink-2); font-size: 1.1rem; }
.alt { background-color: var(--paper-2); }

/* the periwinkle band - the store set's colored panels */
.band { background: var(--band); color: #fff; position: relative; overflow: hidden; }
.band h1, .band h2, .band h3 { color: #fff; }
.band .hand { color: #fff; opacity: .92; }
.band .butter { color: var(--butter); }
.band p { color: rgba(255, 255, 255, .92); }
.band::before { content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .5;
  background: radial-gradient(60% 80% at 100% 0%, rgba(255, 255, 255, .18), transparent 60%), radial-gradient(50% 70% at 0% 100%, rgba(20, 30, 90, .25), transparent 60%); }
.band > * { position: relative; }
.band .link { color: var(--butter); }

/* ---------------------------------------------------------------- phones and polaroids */
.phone { position: relative; width: 100%; max-width: 280px; aspect-ratio: 1320 / 2868; border-radius: 40px; background: #fff; padding: 8px; box-shadow: 0 40px 70px -34px rgba(38, 51, 94, .6), 0 0 0 1px rgba(38, 51, 94, .08); }
.phone img { width: 100%; height: 100%; object-fit: cover; object-position: top; border-radius: 33px; }
.phone.tilt-l { transform: rotate(-5deg); } .phone.tilt-r { transform: rotate(4deg); }
.polaroid { background: #fff; padding: 9px 9px 34px; border-radius: 4px; box-shadow: 0 22px 40px -22px rgba(38, 51, 94, .55); width: 168px; position: relative; }
.polaroid img { aspect-ratio: 1; object-fit: cover; width: 100%; border-radius: 2px; }
.polaroid figcaption { position: absolute; bottom: 6px; left: 0; right: 0; text-align: center; font-family: var(--hand); font-weight: 700; font-size: 1.2rem; color: var(--ink-2); }
.polaroid::before { content: ""; position: absolute; top: -11px; left: 50%; width: 74px; height: 22px; transform: translateX(-50%) rotate(-3deg); background: rgba(255, 226, 122, .85); border-radius: 2px; }

/* ---------------------------------------------------------------- homepage hero */
.hero { padding: clamp(28px, 5vw, 64px) 0 clamp(56px, 8vw, 96px); position: relative; }
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 40px; align-items: center; }
.hero h1 { font-size: clamp(3rem, 8.4vw, 5.6rem); line-height: .98; margin: 6px 0 22px; }
.hero h1 .c-blue { display: block; }
.hero .lede { margin-bottom: 30px; }
.hero-proof { display: flex; flex-wrap: wrap; gap: 10px 18px; margin-top: 22px; color: var(--ink-2); font-weight: 700; font-size: .95rem; }
.hero-proof span { display: inline-flex; align-items: center; gap: 7px; white-space: nowrap; }
.hero-proof svg { width: 18px; height: 18px; color: var(--teal); }
.hero-art { position: relative; height: clamp(440px, 52vw, 600px); }
.hero-art .phone { position: absolute; width: 56%; max-width: 300px; }
.hero-art .p1 { left: 4%; top: 6%; transform: rotate(-6deg); z-index: 2; }
.hero-art .p2 { right: 2%; top: 0; transform: rotate(5deg); }
.hero-art .polaroid { position: absolute; z-index: 3; }
.hero-art .pol1 { left: -7%; bottom: -4%; transform: rotate(-8deg); width: 150px; }
.hero-art .pol2 { right: 0; bottom: 6%; transform: rotate(7deg); width: 150px; }
.hero-art .pol2 img { object-position: 50% 22%; }
.hero-art .s1 { top: 0; left: 46%; font-size: 2.4rem; }
.hero-art .s2 { bottom: 34%; right: -2%; font-size: 1.8rem; }
.hero-art .s3 { top: 40%; left: -4%; font-size: 1.5rem; }
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; gap: 12px; }
  .hero-art { height: 500px; max-width: 460px; width: 100%; margin: 0 auto; }
}
@media (max-width: 480px) {
  .hero-art { height: 440px; }
  .hero-art .polaroid { width: 128px; }
  .hero-art .pol2 { width: 116px; }
}

/* trust row */
.trust { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.trust > div { background: var(--card); border-radius: var(--r); padding: 22px 20px; box-shadow: var(--shadow); }
.trust b { display: block; font-weight: 900; font-size: 1.08rem; line-height: 1.25; margin: 12px 0 6px; }
.trust p { font-size: .95rem; color: var(--ink-2); line-height: 1.5; }
.ico { width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; background: #E9EDFB; color: var(--band-d); }
.ico svg { width: 24px; height: 24px; }
.ico.rose { background: #F7E5EC; color: var(--rose); } .ico.teal { background: #E1F1ED; color: var(--teal); } .ico.coral { background: #FBE7E1; color: var(--coral); }
@media (max-width: 900px) { .trust { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) {
  .trust { grid-template-columns: 1fr; gap: 10px; }
  .trust > div { display: grid; grid-template-columns: 46px 1fr; column-gap: 14px; padding: 16px; }
  .trust .ico { grid-row: span 2; }
  .trust b { margin: 0 0 2px; }
}

/* feature cards - one per store panel: words on one side, the phone rising from the card's bottom edge */
.feature { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(24px, 5vw, 64px); align-items: center; border-radius: 40px; overflow: hidden; background: #E9EDFB; padding: 0 clamp(24px, 5vw, 64px); }
.feature + .feature { margin-top: 22px; }
.feature-text { padding: clamp(36px, 5vw, 64px) 0; }
.feature.flip .feature-art { order: -1; }
.feature-art { align-self: end; position: relative; height: clamp(400px, 40vw, 470px); display: flex; justify-content: center; }
.feature-art .phone { max-width: 280px; position: absolute; top: 44px; }
.feature-art .phone.tilt-l { transform: rotate(-4deg); } .feature-art .phone.tilt-r { transform: rotate(4deg); }
.feature-art .chip-stack { position: absolute; right: 0; top: 34%; display: grid; gap: 10px; justify-items: end; z-index: 2; }
.feature h2 { margin: 8px 0 18px; }
.feature p { color: var(--ink-2); font-size: 1.1rem; }
.ticks { list-style: none; padding: 0; margin: 22px 0 0; display: grid; gap: 12px; }
.ticks li { display: flex; gap: 12px; align-items: flex-start; font-weight: 700; }
.ticks svg { width: 22px; height: 22px; flex: none; margin-top: 2px; color: var(--teal); }
.chip { display: inline-flex; align-items: center; gap: 8px; background: var(--card); border-radius: 999px; padding: 9px 16px; font-weight: 800; font-size: .92rem; white-space: nowrap; box-shadow: 0 10px 24px -14px rgba(38, 51, 94, .55); color: var(--ink); }
.chip svg { width: 16px; height: 16px; color: var(--teal); }
.chip.ring { outline: 3px solid var(--coral); outline-offset: 3px; }
@media (max-width: 860px) {
  .feature { grid-template-columns: 1fr; gap: 0; border-radius: 32px; }
  .feature.flip .feature-art { order: 0; }
  .feature-text { padding-bottom: 8px; }
  .feature-art { height: 340px; }
  .feature-art .phone { max-width: 250px; top: 26px; }
  .feature-art .chip-stack { right: -4px; top: 30%; }
}

/* steps */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; counter-reset: s; }
.step { background: var(--card); border-radius: var(--r-lg); padding: 28px 26px 30px; box-shadow: var(--shadow); position: relative; }
.step::before { counter-increment: s; content: counter(s); display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--butter); font-weight: 900; font-size: 1.3rem; margin-bottom: 18px; }
.step h3 { margin-bottom: 8px; }
.step p { color: var(--ink-2); font-size: 1rem; }
.band .step { color: var(--ink); } .band .step h3 { color: var(--ink); } .band .step p { color: var(--ink-2); }
@media (max-width: 860px) { .steps { grid-template-columns: 1fr; } }

/* the free-for-life band */
.free { text-align: center; }
.free h2 { font-size: clamp(2.6rem, 7vw, 4.6rem); line-height: 1; margin: 10px 0 18px; }
.free p { max-width: 36rem; margin: 0 auto 30px; font-size: 1.15rem; }
.free .btn-row { justify-content: center; }
.free .s1 { top: 18%; left: 8%; font-size: 2.2rem; color: var(--butter); }
.free .s2 { bottom: 16%; right: 9%; font-size: 1.8rem; color: #fff; }

/* founder note */
.founder-quote { display: grid; grid-template-columns: auto 1fr; gap: 28px; align-items: center; background: var(--card); border-radius: var(--r-lg); padding: clamp(24px, 4vw, 44px); box-shadow: var(--shadow); max-width: 900px; margin: 0 auto; }
.founder-quote img { width: 104px; height: 104px; border-radius: 26px; }
.founder-quote blockquote { font-size: clamp(1.12rem, 2.2vw, 1.32rem); font-weight: 700; line-height: 1.5; }
.founder-quote cite { display: block; margin-top: 12px; font-style: normal; font-family: var(--hand); font-size: 1.6rem; color: var(--ink-2); }
@media (max-width: 600px) { .founder-quote { grid-template-columns: 1fr; text-align: center; } .founder-quote img { margin: 0 auto; } }

/* questions */
.faq { max-width: 780px; margin: 0 auto; display: grid; gap: 12px; }
.faq details { background: var(--card); border-radius: 18px; box-shadow: 0 10px 24px -18px rgba(38, 51, 94, .5); }
.faq summary { list-style: none; cursor: pointer; padding: 20px 56px 20px 22px; font-weight: 800; font-size: 1.06rem; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; position: absolute; right: 22px; top: 50%; width: 12px; height: 12px; margin-top: -8px; border-right: 3px solid var(--band); border-bottom: 3px solid var(--band); transform: rotate(45deg); transition: transform .2s ease; }
.faq details[open] summary::after { transform: rotate(-135deg); margin-top: -2px; }
.faq details p { padding: 0 22px 22px; color: var(--ink-2); }

/* closing call to action */
.closer { text-align: center; }
.closer h2 { font-size: clamp(2.4rem, 6.4vw, 4.2rem); margin: 8px 0 16px; }
.closer p { color: var(--ink-2); max-width: 34rem; margin: 0 auto 28px; font-size: 1.12rem; }
.closer .btn-row { justify-content: center; }
.stores { display: flex; justify-content: center; flex-wrap: wrap; gap: 8px 20px; margin-top: 20px; font-weight: 700; font-size: .95rem; color: var(--ink-2); }
.stores a { color: var(--ink-2); white-space: nowrap; }

/* ---------------------------------------------------------------- inner pages (guides, about, legal, features)
   Built from the homepage's own parts (Mark, 2026-10-28: "First page is good. The others suck"): every page opens
   with a tinted card like the homepage's feature cards, the app rising from its bottom edge; the reading column has an
   "On this page" list beside it (Headspace's article pages do the same), one wide app card part-way down, and the
   periwinkle free-for-life band at the end. */
.t-blue { background: #E9EDFB; } .t-rose { background: #F8E9EE; } .t-teal { background: #E2F0EB; }
.t-coral { background: #FBE9E2; } .t-sky { background: #E5ECF8; } .t-butter { background: #FFF4CC; }
.ph-sec { padding: clamp(14px, 3vw, 32px) 0 0; }
.ph { min-height: clamp(320px, 32vw, 420px); position: relative; }
.ph .feature-text { padding: clamp(34px, 5vw, 64px) 0; }
.ph h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); margin: 4px 0 16px; }
.ph .lede { color: var(--ink-2); }
.ph.solo { grid-template-columns: 1fr; min-height: 0; }
.ph.solo .feature-text { max-width: 820px; }
.ph .spark { font-size: 2.2rem; }
.ph .s1 { top: 22%; right: 7%; color: var(--coral); } .ph .s2 { top: 52%; right: 15%; font-size: 1.5rem; }
@media (max-width: 860px) {
  .ph .feature-text { padding-bottom: 6px; }
  .ph .feature-art { height: 250px; }
  .ph .spark { display: none; }
}

/* the reading column and the "On this page" list beside it (written by build_site.py from the page's h2 ids) */
.layout { display: grid; grid-template-columns: minmax(0, 1fr) 270px; gap: clamp(32px, 5vw, 80px); align-items: start; padding-top: clamp(36px, 5vw, 60px); }
.layout > .prose { grid-column: 1; grid-row: 1; max-width: 720px; }
.side { grid-column: 2; grid-row: 1; position: sticky; top: 92px; display: grid; gap: 16px; }
.toc { max-height: calc(100vh - 290px); overflow-y: auto; overscroll-behavior: contain; background: var(--card); border-radius: var(--r); padding: 18px 12px 12px; box-shadow: 0 12px 30px -22px rgba(38, 51, 94, .6); }
.toc-t { font-size: .72rem; font-weight: 900; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-2); margin: 0 10px 8px; }
.toc ol, .toc-m ol { list-style: none; padding: 0; display: grid; gap: 1px; }
.toc a, .toc-m a { display: block; text-decoration: none; font-weight: 700; font-size: .9rem; line-height: 1.35; color: var(--ink-2); padding: 7px 10px; border-radius: 10px; }
.toc a:hover, .toc-m a:hover { background: var(--paper); color: var(--ink); }
.toc-m { display: none; }
.side-card { background: var(--band); color: #fff; border-radius: var(--r); padding: 20px; display: grid; gap: 12px; justify-items: start; position: relative; overflow: hidden; }
.side-card img { border-radius: 12px; }
.side-card p { font-size: .94rem; color: rgba(255, 255, 255, .9); line-height: 1.45; }
.side-card b { display: block; color: #fff; font-size: 1.05rem; font-weight: 900; }
.side-card .btn { background: var(--butter); color: var(--ink); box-shadow: none; }
@media (max-width: 1000px) {
  .layout { grid-template-columns: 1fr; padding-top: 22px; gap: 22px; }
  .layout > .prose { grid-row: 2; }
  .side { position: static; grid-column: 1; grid-row: 1; }
  .toc, .side-card { display: none; }
  .toc-m { display: block; background: var(--card); border-radius: 18px; box-shadow: 0 10px 24px -20px rgba(38, 51, 94, .55); }
  .toc-m summary { list-style: none; cursor: pointer; padding: 15px 18px; font-weight: 900; position: relative; }
  .toc-m summary::-webkit-details-marker { display: none; }
  .toc-m summary::after { content: ""; position: absolute; right: 20px; top: 50%; width: 9px; height: 9px; margin-top: -7px; border-right: 3px solid var(--band); border-bottom: 3px solid var(--band); transform: rotate(45deg); }
  .toc-m[open] summary::after { transform: rotate(-135deg); margin-top: -2px; }
  .toc-m ol { padding: 0 8px 10px; }
}

/* the app card part-way down a guide (build_site.py writes it: <!--site:appcard NAME-->) */
.prose > .appcard { margin: 2.4em 0; }
.appcard { display: grid; grid-template-columns: 1fr 190px; gap: 18px; align-items: center; border-radius: var(--r-lg); overflow: hidden; padding-left: clamp(20px, 4vw, 32px); }
.appcard-text { padding: 26px 0; }
.appcard .hand { font-size: 1.5rem; }
.appcard-h { font-family: var(--display); font-weight: 900; font-size: clamp(1.6rem, 3.6vw, 2rem); letter-spacing: -.02em; line-height: 1.05; margin: 2px 0 10px; }
.prose .appcard p { font-size: 1rem; color: var(--ink-2); margin-bottom: 12px; }
.appcard-art { align-self: end; height: 230px; position: relative; }
.appcard .phone { position: absolute; top: 24px; left: 8px; width: 168px; padding: 6px; border-radius: 28px; transform: rotate(4deg); }
.appcard .phone img { border-radius: 23px; }
@media (max-width: 520px) { .appcard { grid-template-columns: 1fr 112px; gap: 8px; } .appcard .phone { width: 128px; } .appcard-art { height: 210px; } }

/* long-form reading */
.prose { max-width: 720px; padding-bottom: clamp(64px, 9vw, 112px); }
.layout { padding-bottom: clamp(64px, 9vw, 112px); }
.layout > .prose { padding-bottom: 0; }
.prose > * + * { margin-top: 1.05em; }
.prose h2 { font-size: clamp(1.5rem, 3.4vw, 1.95rem); margin-top: 1.9em; line-height: 1.15; scroll-margin-top: 90px; }
.prose > h2::before { content: ""; display: block; width: 40px; height: 6px; border-radius: 3px; background: var(--gold); margin-bottom: 16px; }
.prose > h2:first-child { margin-top: 0; }
.prose > .faq { margin-top: 1em; }
.prose h3 { margin-top: 1.6em; }
.prose h2 + *, .prose h3 + * { margin-top: .6em; }
.prose p, .prose li { font-size: 1.08rem; color: #34416B; line-height: 1.72; }
.prose ul, .prose ol { padding-left: 1.3em; display: grid; gap: .45em; }
.prose strong { color: var(--ink); }
.prose :is(p, li, td) a:not(.btn) { color: var(--blue); font-weight: 700; text-decoration: underline; text-decoration-thickness: 1.5px; text-underline-offset: 3px; }
.prose table { width: 100%; border-collapse: collapse; background: var(--card); border-radius: var(--r); overflow: hidden; box-shadow: var(--shadow); font-size: .98rem; }
.prose th, .prose td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
.prose th { background: #E9EDFB; font-weight: 800; }
.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.areas { display: flex; flex-wrap: wrap; gap: 8px; }
.areas span { background: var(--card); border-radius: 999px; padding: 8px 15px; font-size: .92rem; font-weight: 800; white-space: nowrap; box-shadow: 0 6px 16px -12px rgba(38, 51, 94, .6); }
/* the comparison table on the "choosing an app" guide */
.cmp { overflow-x: auto; -webkit-overflow-scrolling: touch; background: var(--card); border-radius: var(--r); box-shadow: var(--shadow); }
.cmp table { width: 100%; min-width: 560px; border-collapse: collapse; font-size: .95rem; box-shadow: none; }
.cmp th, .cmp td { padding: 13px 12px; text-align: center; border-bottom: 1px solid var(--line); background: none; }
.cmp tr:last-child td { border-bottom: 0; }
.cmp th { font-weight: 900; font-size: .85rem; }
.cmp th:first-child, .cmp td:first-child { text-align: left; font-weight: 700; color: var(--ink); }
.cmp thead th:nth-child(2) { color: var(--blue); }
.cmp .y { color: var(--teal); font-weight: 900; } .cmp .m { color: var(--ink-2); } .cmp .n { color: #B9BFD0; }
.soon { display: inline-block; background: #FFF1C2; color: #7A5A00; font-size: .7rem; font-weight: 800; padding: 2px 8px; border-radius: 8px; line-height: 1.3; white-space: nowrap; }
.prose .legend { font-size: .88rem; color: var(--ink-2); }
.cmp-note { display: none; }
@media (max-width: 560px) {
  .cmp { overflow-x: visible; }
  .cmp table { min-width: 0; font-size: .78rem; }
  .cmp th, .cmp td { padding: 9px 4px; }
  .cmp th:first-child, .cmp td:first-child { padding-left: 10px; line-height: 1.3; }
  .cmp thead th { font-size: .7rem; line-height: 1.15; }
  .cmp th:not(:first-child), .cmp td:not(:first-child) { width: 18%; }
  .cmp-note { display: block; font-size: .8rem; color: var(--ink-2); font-weight: 700; text-align: center; }
}
.box { background: var(--card); border-radius: var(--r); padding: 24px 24px 22px; box-shadow: var(--shadow); }
.prose .box h2 { margin-top: 0; }
.pills { display: flex; flex-wrap: wrap; gap: 8px; }
.pills a { background: var(--paper); border-radius: 999px; padding: 9px 16px; font-size: .95rem; font-weight: 800; color: var(--ink) !important; text-decoration: none !important; white-space: nowrap; border: 1px solid var(--line); }
.pills a:hover { border-color: var(--band); color: var(--band-d) !important; }
.box { border-radius: var(--r-lg); }
.prose > .box { padding: 26px; }
.prose .fine { font-size: .92rem; color: var(--ink-2); }

/* the features page: one feature card per group, the list of what is in it beside the app */
.fstack { display: grid; gap: 22px; padding: clamp(28px, 4vw, 48px) 0 clamp(64px, 9vw, 112px); }
.flist { list-style: none; padding: 0; margin: 22px 0 0; display: grid; grid-template-columns: 1fr 1fr; gap: 16px 22px; }
.flist li { font-size: .97rem; color: var(--ink-2); line-height: 1.5; }
.flist b { display: block; color: var(--ink); font-size: 1.03rem; font-weight: 900; margin-bottom: 2px; }
.flist a { color: var(--blue); font-weight: 800; }
@media (max-width: 560px) { .flist { grid-template-columns: 1fr; } }

/* the founder's letter */
.letter { max-width: 760px; margin: clamp(32px, 5vw, 56px) auto clamp(64px, 9vw, 112px); background: var(--card); border-radius: 6px; padding: clamp(32px, 6vw, 64px); box-shadow: 0 30px 60px -36px rgba(38, 51, 94, .55); position: relative; }
.letter::before { content: ""; position: absolute; top: -12px; left: 50%; width: 120px; height: 26px; transform: translateX(-50%) rotate(-2deg); background: rgba(255, 226, 122, .9); border-radius: 2px; }
.letter .seal { width: 64px; height: 64px; border-radius: 16px; margin-bottom: 22px; }
.letter p { font-size: clamp(1.1rem, 2.2vw, 1.28rem); line-height: 1.75; color: var(--ink); }
.letter p + p { margin-top: 1em; }
.letter .founder-sign { font-family: var(--hand); font-size: 2.4rem; color: var(--band-d); margin-top: .5em; line-height: 1; }

/* the pricing page: the plans are drawn from membership_prices() by the page's own script */
.plans { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; margin: 8px 0 22px; }
.plan { display: flex; flex-direction: column; gap: 14px; justify-content: space-between; background: var(--paper); border-radius: var(--r); padding: 22px; }
.plan .name { font-weight: 900; font-size: 1.15rem; color: var(--ink); }
.plan .badge { display: inline-block; margin-left: 8px; background: var(--butter); color: var(--ink); font-size: .74rem; font-weight: 900; padding: 3px 10px; border-radius: 999px; vertical-align: 2px; white-space: nowrap; }
.plan .note { font-size: .9rem; color: var(--ink-2); margin-top: 2px; }
.plan .price { font-weight: 900; font-size: 2rem; letter-spacing: -.02em; color: var(--ink); white-space: nowrap; line-height: 1; }
.plan .per { font-size: .9rem; font-weight: 700; color: var(--ink-2); letter-spacing: 0; }
#plans-note { color: var(--ink-2); }
.free-now { background: var(--butter); border-radius: var(--r); padding: 18px 22px; font-weight: 700; color: var(--ink); }
@media (max-width: 560px) { .plans { grid-template-columns: 1fr; } }

/* the legal pages (text generated by Docs/build_legal.py): one sheet, the sections divided by hairlines */
.doc-meta { color: var(--ink-2); font-weight: 700; font-size: .95rem; }
.sheet { background: var(--card); border-radius: var(--r-lg); padding: clamp(24px, 4.5vw, 52px); box-shadow: 0 24px 50px -36px rgba(38, 51, 94, .55); }
.sheet .doc-section + .doc-section { border-top: 1px solid var(--line); margin-top: 30px; padding-top: 30px; }
.prose .sheet h2 { margin: 0 0 .6em; font-size: clamp(1.2rem, 2.6vw, 1.45rem); scroll-margin-top: 90px; }
.prose .sheet p { font-size: 1.02rem; }
.prose .sheet p + p { margin-top: .85em; }
.contact-block { margin-top: 34px; background: var(--paper); border-radius: var(--r); padding: 24px; }

/* events (written by website/api/events.js into events-shell.html) */
.ev-page { padding-top: clamp(32px, 5vw, 64px); }
.prose .kicker { font-size: .78rem; color: var(--band-d); line-height: 1.4; margin-bottom: 0; }
.prose .lede { font-size: clamp(1.08rem, 2.2vw, 1.2rem); color: var(--ink-2); }
.ev-page > h1 { font-size: clamp(2.2rem, 5.6vw, 3.4rem); margin-top: 0; }
.ev-page > .lede { margin-top: .5em; }
.ev-page > .ev-cta { margin-top: 1.4em; }
.ev-crumb { font-size: .92rem; font-weight: 700; color: var(--ink-2); margin-bottom: 14px; }
.ev-crumb a { color: var(--blue); text-decoration: none; }
.ev-cta { display: flex; flex-wrap: wrap; gap: 12px 16px; align-items: center; margin: 8px 0 34px; }
.ev-alt { font-weight: 800; color: var(--blue); white-space: nowrap; }
.ev-group { margin: 36px 0 12px; font-size: 1.45rem; }
.ev-list { display: grid; gap: 12px; }
.ev-card { display: flex; gap: 16px; align-items: flex-start; background: var(--card); border-radius: 20px; padding: 16px 18px; text-decoration: none; box-shadow: 0 10px 24px -18px rgba(38, 51, 94, .55); transition: transform .15s ease, box-shadow .15s ease; }
.ev-card:hover { transform: translateY(-2px); box-shadow: 0 18px 32px -18px rgba(38, 51, 94, .55); }
.ev-date { flex: 0 0 58px; text-align: center; background: #E9EDFB; border-radius: 14px; padding: 7px 0; line-height: 1.05; }
.ev-date .m { display: block; font-size: .72rem; font-weight: 900; letter-spacing: .1em; text-transform: uppercase; color: var(--band-d); }
.ev-date .d { display: block; font-size: 1.6rem; font-weight: 900; color: var(--ink); }
.ev-body { min-width: 0; }
.ev-title { font-weight: 800; font-size: 1.05rem; line-height: 1.3; color: var(--ink); }
.ev-meta { font-size: .95rem; color: var(--ink-2); margin-top: 3px; }
.ev-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.ev-tag { font-size: .8rem; font-weight: 800; background: var(--paper); border-radius: 999px; padding: 3px 11px; white-space: nowrap; }
.ev-facts { background: var(--card); border-radius: var(--r); padding: 20px 22px; margin-bottom: 26px; display: grid; gap: 12px; box-shadow: var(--shadow); }
.ev-facts b { display: block; font-size: .74rem; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-2); }
.ev-facts a, .ev-desc a { color: var(--blue); font-weight: 700; text-decoration: underline; word-break: break-word; }
.ev-note { font-size: .92rem; color: var(--ink-2); margin-top: 30px; }
.ev-empty { background: var(--card); border-radius: var(--r); padding: 24px; color: var(--ink-2); }
/* the "Coming up" strip is drawn by ds-events.js (its one home); the homepage hides its section when there are none */
.home-events:not(:has(.dse)) { display: none; }
.home-events .dse { margin: 0; }

/* ---------------------------------------------------------------- footer */
.sf { background: #1E2A52; color: rgba(255, 255, 255, .78); padding: 64px 0 40px; margin-top: 0; font-size: .95rem; }
.sf a { color: rgba(255, 255, 255, .86); text-decoration: none; }
.sf a:hover { color: #fff; text-decoration: underline; }
.sf-top { display: grid; grid-template-columns: 1.3fr repeat(4, 1fr); gap: 32px; }
.sf-brand .brand { color: #fff; }
.sf-brand p { margin-top: 14px; max-width: 22rem; line-height: 1.55; }
.sf-heart { color: var(--gold); font-weight: 900; letter-spacing: .08em; text-transform: uppercase; font-size: .8rem; margin-top: 18px; }
.sf h3 { color: #fff; font-size: .82rem; letter-spacing: .14em; text-transform: uppercase; margin-bottom: 14px; font-weight: 900; }
.sf ul { list-style: none; padding: 0; display: grid; gap: 9px; }
.sf-bottom { margin-top: 48px; padding-top: 24px; border-top: 1px solid rgba(255, 255, 255, .12); display: flex; flex-wrap: wrap; gap: 14px 24px; align-items: center; justify-content: space-between; font-size: .84rem; color: rgba(255, 255, 255, .62); }
.sf-lang:empty { display: none; }
@media (max-width: 960px) { .sf-top { grid-template-columns: 1fr 1fr; } .sf-brand { grid-column: 1 / -1; } }
@media (max-width: 420px) { .sf-top { grid-template-columns: 1fr; } }

/* the 404 page */
.lost { text-align: center; padding: clamp(64px, 12vw, 140px) 0; }
.lost h1 { margin: 8px 0 16px; }
.lost .hand { transform-origin: center; }
.lost p { color: var(--ink-2); margin: 0 auto 28px; max-width: 30rem; }
.lost .btn-row { justify-content: center; }

@media print {
  .sh, .sf, .side, .free, .skip { display: none !important; }
  body { background: #fff; }
}
