/* Talli landing, built on the apple.com page system (the /apple skill, references/apple-com.md, measured 2026-11-21):
   semibold display type that tightens as it grows, sentence-case labels, 48 tall pill buttons, 980/692 content widths,
   28 radius cards, white and #f5f5f7 sections, spacing instead of rules. Talli keeps its own blue bands and halftone art.
   Colours come from tokens.css (canonical plus Talli's blue). Only the band colours below are landing-only. System font. */
:root {
  --band: #2F6FB0;                       /* full-bleed sections, white text on it is 5.2:1 */
  --band-sub: #dbe8f6;
  --band-art: #a9cdef;
  --band-card: color-mix(in srgb, #fff 10%, var(--band));
  --frame: #5B9BD5;
  --btn: #2F6FB0;
  --ring: color-mix(in srgb, #5B9BD5 30%, transparent);
  --l-bg: var(--color-bg, #fff);
  --l-surface: var(--color-bg2, #f5f5f7);
  --l-line: var(--color-hairline, #e5e5ea);
  --l-text: var(--color-text, #1d1d1f);
  --l-sub: var(--color-secondary, rgba(60, 60, 67, .68));
  --l-link: var(--bulb-deep, #2F6FB0);
  --display: "SF Pro Display", -apple-system, BlinkMacSystemFont, "Helvetica Neue", Helvetica, Arial, sans-serif;
  /* the space scale, plus 64 and 96 for section rhythm only */
  --sp-1: 4px; --sp-2: 8px; --sp-3: 12px; --sp-4: 16px; --sp-5: 24px; --sp-6: 32px; --sp-7: 48px; --sp-8: 64px; --sp-9: 96px;
  --wrap: 980px;                          /* apple.com content width; 692 on medium, full minus 20 margins on small */
  --r-card: 28px;
  --r-inner: 16px;
  --r-pill: 980px;
  --r-icon: 22.5%;
  --motion: .24s cubic-bezier(.4, 0, .6, 1);
  --scan: repeating-linear-gradient(to bottom, #000 0 1.5px, transparent 1.5px 3px);
  /* film grain: white fractal noise over every blue surface */
  --grain: 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='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 .28 0 0 0 -.06'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
@media (prefers-color-scheme: dark) {
  :root { --band: #1f5390; --band-art: #7fb0e3; --frame: #2F6FB0; --btn: #2F6FB0; }
}

/* Glyph art: each glyph (art/*.svg) is a mask, cut into scanlines and tinted with --band-art */
.art { position: relative; overflow: hidden; background: var(--grain), var(--band); }
.art::before {
  content: ""; position: absolute; inset: 0; background: var(--band-art);
  -webkit-mask: var(--img) center / var(--fit, 46%) no-repeat, var(--scan); -webkit-mask-composite: source-in;
  mask: var(--img) center / var(--fit, 46%) no-repeat, var(--scan); mask-composite: intersect;
}
/* Halftone paintings (art/*.png): the dot mask fills the box, no scanlines */
/* App screenshots in the art boxes: a phone peeking up from the bottom */
.shot::before { display: none; }
.shot img { position: absolute; left: 50%; top: 12%; width: 50%; height: auto; translate: -50% 0; border-radius: 34px; border: 7px solid #0b0b0d;
  box-shadow: 0 0 0 1.5px rgb(255 255 255 / .18), 0 28px 70px rgb(0 0 0 / .45); }   /* a dark bezel so the light screens read as phones */
.frow:nth-child(2) .shot img { top: 30%; }   /* Messages: the list is short, show its top and let the tile cut the empty rest */
.pic::before { -webkit-mask: var(--img) center / cover no-repeat; mask: var(--img) center / cover no-repeat; }
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: var(--font); font-size: 17px; line-height: 24px; letter-spacing: -.022em; color: var(--l-text); background: var(--l-bg); -webkit-font-smoothing: antialiased; }
a { color: inherit; }
code { font-size: .9em; padding: 2px 6px; border-radius: 6px; background: var(--l-surface); }
.wrap { max-width: calc(var(--wrap) + 40px); margin: 0 auto; padding: 0 20px; }
.center { text-align: center; }

/* Type: apple.com's scale. Display face from 20 up, semibold, tracking tightens as size grows. */
h1, h2, h3, .eyebrow, .label, .nav-brand { font-family: var(--display); }
h1, h2, h3 { text-wrap: balance; font-weight: 600; }
.mark-i { display: block; width: 56px; height: 56px; margin: 0 auto var(--sp-4); background: var(--frame); -webkit-mask: url(mark.svg) center / contain no-repeat; mask: url(mark.svg) center / contain no-repeat; }
.hero-h1 { font-size: 80px; line-height: 84px; letter-spacing: -.015em; max-width: 920px; margin: 0 auto; }
h2 { font-size: 80px; line-height: 84px; letter-spacing: -.015em; }
h3 { font-size: 28px; line-height: 32px; letter-spacing: .007em; }
/* the section label above a headline ("Keep the tally") */
.eyebrow { font-size: 28px; line-height: 32px; font-weight: 600; letter-spacing: .007em; margin-bottom: var(--sp-3); }
/* the small label inside a card */
.label { font-size: 17px; line-height: 24px; font-weight: 600; letter-spacing: -.022em; color: var(--l-sub); margin-bottom: var(--sp-2); }

/* Buttons: pills, 48 tall, 17 px, one primary per group */
.btn { white-space: nowrap; height: 48px; padding: 0 var(--sp-5); border-radius: var(--r-pill); display: inline-flex; align-items: center; font: 400 17px/1 var(--font); letter-spacing: -.022em; text-decoration: none; border: 1px solid transparent; transition: background var(--motion), color var(--motion), border-color var(--motion); }
.btn-solid { background: var(--btn); color: #fff; }
.btn-solid:hover { background: color-mix(in srgb, var(--btn) 88%, #fff); }
.btn-ghost { background: transparent; color: var(--l-link); border-color: var(--l-link); }
.btn-ghost:hover { background: var(--l-link); color: var(--l-bg); }
a:focus-visible, button:focus-visible { outline: 4px solid var(--ring); outline-offset: 2px; }

/* Nav: apple.com's local nav. Name on the left, links and one small pill on the right, frosted. */
.nav { position: sticky; top: 0; z-index: 10; display: flex; align-items: center; gap: var(--sp-5); height: 56px; padding: 0 max(20px, calc((100% - var(--wrap)) / 2)); background: color-mix(in srgb, var(--l-bg) 80%, transparent); backdrop-filter: saturate(180%) blur(20px); -webkit-backdrop-filter: saturate(180%) blur(20px); border-bottom: 1px solid var(--l-line); }
.nav-brand { order: -1; margin-right: auto; display: flex; align-items: center; gap: var(--sp-2); font-size: 21px; line-height: 24px; font-weight: 600; letter-spacing: .011em; text-decoration: none; }
.nav-brand img { width: 28px; height: 28px; border-radius: var(--r-icon); }
.nav-links { display: flex; gap: var(--sp-5); }
.nav-links a, .nav-get { font-size: 14px; line-height: 20px; letter-spacing: -.016em; text-decoration: none; color: var(--l-sub); transition: color var(--motion); }
.nav-links a:hover, .nav-get:hover { color: var(--l-text); }
.nav-end { display: flex; align-items: center; gap: var(--sp-5); }
.nav .btn { height: 32px; padding: 0 var(--sp-3); font-size: 14px; letter-spacing: -.016em; }

.hero { padding: var(--sp-9) 0 var(--sp-8); }
/* The app behind the hero (Joshua 2026-11-01): three live panels, faded into the page, parallax in landing.js. */
.hero { position: relative; isolation: isolate; overflow: hidden; min-height: calc(100svh - 56px); display: grid; align-items: center; --money: #2d9e5f; }
.hero-copy { position: relative; z-index: 2; will-change: transform, opacity; }
.hero::before { content: ""; position: absolute; z-index: 1; inset: 0; pointer-events: none; background: radial-gradient(ellipse 40% 48% at 50% 50%, var(--hero-bg) 25%, transparent 100%); }
/* the hero warms into the blue band below instead of ending on a hard black edge */
.hero { --hero-bg: color-mix(in srgb, var(--band) 16%, var(--l-bg)); background: linear-gradient(var(--hero-bg), color-mix(in srgb, var(--band) 40%, var(--l-bg)) 75%, var(--band)); }
.hero::after { content: ""; position: absolute; z-index: 1; left: 0; right: 0; bottom: 0; height: 45%; pointer-events: none; background: linear-gradient(transparent, color-mix(in srgb, var(--band) 40%, transparent) 55%, var(--band)); }
.hero-demo { position: absolute; z-index: 0; inset: 0; display: grid; grid-template-columns: 300px 300px; justify-content: space-between; align-items: end; padding: 0 24px; pointer-events: none; opacity: .85;
  -webkit-mask-image: linear-gradient(transparent, #000 20%, #000 75%, transparent); mask-image: linear-gradient(transparent, #000 20%, #000 75%, transparent);
  transform: translate3d(0, var(--py, 0), 0); will-change: transform; }
.hero-demo .app { border-radius: 28px; background: var(--l-bg); border: 1px solid var(--l-line); box-shadow: 0 24px 60px rgba(0,0,0,.08); overflow: hidden; }
.hero-demo .app:nth-child(2) { display: none; }  /* Status lives in the band below; Home left, Messages right frame the copy */
.hero-demo .app:nth-child(1) { transform: translateY(16%) rotate(-3deg); } .hero-demo .app:nth-child(3) { transform: translateY(26%) rotate(3deg); }
.app-tabs { display: flex; gap: 2px; margin: var(--sp-4); padding: 2px; border-radius: 999px; background: var(--l-surface); }
.app-tabs span { flex: 1; height: 30px; display: grid; place-items: center; border-radius: 999px; font: 500 13px var(--font); color: var(--l-sub); }
.app-tabs .on { background: var(--l-bg); color: var(--l-text); }
.app-pane { padding: var(--sp-2) var(--sp-5) var(--sp-5); min-height: 320px; display: grid; gap: var(--sp-3); align-content: start; text-align: left; }
.app-pane small { font-size: 12px; text-transform: uppercase; letter-spacing: .06em; color: var(--l-sub); }
.app-pane .big { display: flex; align-items: flex-start; gap: 4px; font: 700 60px/1 var(--font); letter-spacing: -.035em; font-variant-numeric: tabular-nums; color: var(--l-text); }
.app-pane .cur { font-size: .5em; color: var(--money); }
.app-pane .one { color: var(--l-sub); font-size: 15px; margin: 0; }
.app-pane .act { height: 44px; display: grid; place-items: center; border-radius: 999px; background: var(--btn); color: #fff; font: 600 16px var(--font); transition: background .3s, color .3s; }
.app-pane .act.on { background: var(--l-surface); color: var(--l-text); }
.app-pane .fold { border-top: 1px solid var(--l-line); padding-top: var(--sp-3); display: flex; justify-content: space-between; font-size: 14px; color: var(--l-text); }
.app-pane .fold span:last-child { color: var(--l-sub); }
.app-pane .meter { height: 8px; border-radius: 999px; background: var(--l-surface); overflow: hidden; }
.app-pane .meter b { display: block; height: 100%; width: 0; background: var(--frame); transition: width 1.6s cubic-bezier(.22,1,.36,1); }
.app-pane .msg { border-top: 1px solid var(--l-line); padding-top: var(--sp-3); display: grid; gap: 4px; opacity: 0; transform: translateY(10px); transition: opacity .5s, transform .5s; }
.app-pane .msg.in { opacity: 1; transform: none; }
.app-pane .msg b { font-size: 14px; font-weight: 600; color: var(--l-text); } .app-pane .msg span { font-size: 12px; color: var(--l-sub); }
@media (prefers-color-scheme: dark) { .hero { --money: #4ade80; } }
@media (max-width: 1399px) { .hero-demo { grid-template-columns: minmax(0, 340px); justify-content: center; opacity: .6; } .hero-demo .app:not(:first-child) { display: none; } .hero-demo .app:first-child { transform: translateY(22%); } .hero-copy { align-self: start; padding-top: 3vh; } }
.hero-copy .eyebrow { margin-bottom: var(--sp-4); }
/* intro copy: 21 px, the most a paragraph gets */
.lead, .body { text-wrap: pretty; max-width: 692px; font-size: 21px; line-height: 28px; letter-spacing: .011em; color: var(--l-sub); }
.lead { margin: var(--sp-5) auto 0; }
.cta { display: flex; flex-wrap: wrap; gap: var(--sp-4); margin-top: var(--sp-6); }
.center .cta { justify-content: center; }
.fine { margin-top: var(--sp-4); font-size: 14px; line-height: 20px; letter-spacing: -.016em; color: var(--l-sub); }

/* The blue stage behind the open data terminal */
.stage { position: relative; overflow: hidden; border-radius: var(--r-card); background: var(--grain), var(--band); padding: clamp(24px, 6vw, 96px) var(--sp-4); }
.stage-art { position: absolute; inset: 0; background: none; --fit: 110%; }

/* The blue band: full bleed. The tally over the section head, three feature rows, then a grid of cards. */
.band { background: var(--grain), var(--band); color: #fff; overflow: hidden; padding-bottom: var(--sp-9); }
.band .label { color: var(--band-sub); }
.band-head { text-align: center; }
.band-art { aspect-ratio: 19 / 10; max-height: 86vh; width: 100%; background: none; }
/* fade the art into the band so the heading over its foot stays readable */
.band-art::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to bottom, transparent 40%, var(--band) 88%); }
.band-copy { position: relative; margin-top: -8vw; padding: 0 20px var(--sp-9); }
.band-copy h2 { font-size: 96px; line-height: 100px; }
.band-copy p:last-child { margin: var(--sp-5) auto 0; max-width: 692px; font-size: 21px; line-height: 28px; letter-spacing: .011em; color: var(--band-sub); }
.frows, .cells { max-width: calc(var(--wrap) + 40px); margin: 0 auto; padding: 0 20px; display: grid; gap: var(--sp-3); }
.frow { display: grid; grid-template-columns: 1fr 1fr; align-items: center; border-radius: var(--r-card); overflow: hidden; background: var(--band-card); }
.frow .art { aspect-ratio: 1; background: var(--grain), color-mix(in srgb, #fff 4%, var(--band)); }
.frow:nth-child(even) .art { order: 2; }
.frow > div:not(.art) { padding: var(--sp-7); }
.frow h3 { font-size: 40px; line-height: 44px; letter-spacing: 0; }
.frow p:last-child { margin-top: var(--sp-4); color: var(--band-sub); }
.cells { grid-template-columns: repeat(3, 1fr); margin-top: var(--sp-3); }
.cell { padding: var(--sp-6); border-radius: var(--r-card); background: var(--band-card); }
.cell p:last-child { margin-top: var(--sp-3); color: var(--band-sub); }

/* Plain sections alternate white and the grey surface, as apple.com does */
.sec { padding: var(--sp-9) 0; }
.body { margin-top: var(--sp-5); }
.center .body { margin-left: auto; margin-right: auto; }
.term-stage { margin-top: var(--sp-7); }
.term-stage .stage-art { --fit: 58%; }
.term { position: relative; max-width: 680px; margin: 0 auto; text-align: left; border-radius: var(--r-inner); background: var(--l-bg); padding: var(--sp-5); }
.term pre { font: 13px/20px ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: 0; overflow-x: auto; }
.term .dim { color: var(--l-sub); }
.term figcaption { margin-top: var(--sp-3); font-size: 14px; line-height: 20px; color: var(--l-sub); }
/* three cards, each with its own glyph */
.prods { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--sp-5); margin-top: var(--sp-7); text-align: left; }
.prod { display: grid; align-content: start; gap: var(--sp-2); }
.prod-art { margin: 0 0 var(--sp-4); aspect-ratio: 3 / 2; border-radius: var(--r-card); }
.prod .label { margin-bottom: 0; }
.prod p:not(.label) { color: var(--l-sub); }
.prod a { color: var(--l-link); text-decoration: none; }
.prod a:hover { text-decoration: underline; }
.plats { background: var(--l-surface); }
.plat-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--sp-5); margin-top: var(--sp-7); }
.plat-row > div { padding: var(--sp-7) var(--sp-6); border-radius: var(--r-card); background: var(--l-bg); display: flex; flex-direction: column; align-items: center; gap: var(--sp-2); }
.plat-row .btn { margin-top: auto; }
.plat-row small { font-size: 14px; line-height: 20px; letter-spacing: -.016em; color: var(--l-sub); }
.plat-row b { font-family: var(--display); font-weight: 600; font-size: 40px; line-height: 44px; }
.plat-row p { color: var(--l-sub); margin-bottom: var(--sp-5); }

/* Footer: apple.com's grey directory, small type, then the engraved band of Talli's things and one fine line */
.foot { text-align: center; padding: var(--sp-8) 20px var(--sp-5); background: var(--l-surface); overflow: hidden; }
.foot-top { max-width: var(--wrap); margin: 0 auto; display: flex; flex-wrap: wrap; justify-content: space-between; gap: var(--sp-7); text-align: left; }
.foot-brand { display: grid; gap: var(--sp-2); align-content: start; }
.foot-brand img { border-radius: var(--r-icon); }
.foot-brand b { font-family: var(--display); font-weight: 600; font-size: 21px; line-height: 24px; letter-spacing: .011em; }
.foot-brand p { color: var(--l-sub); font-size: 14px; line-height: 20px; }
.foot-cols { display: flex; flex-wrap: wrap; gap: var(--sp-8); }
.foot-cols div { display: grid; gap: var(--sp-2); align-content: start; }
.foot-cols .label { font-size: 12px; line-height: 16px; letter-spacing: -.01em; color: var(--l-text); margin-bottom: 0; }
.foot-cols a { color: var(--l-sub); text-decoration: none; font-size: 12px; line-height: 16px; letter-spacing: -.01em; }
.foot-cols a:hover { color: var(--l-text); text-decoration: underline; }
.word-band { color: var(--frame); position: relative; width: 100vw; margin: var(--sp-6) 0 0 calc(50% - 50vw); height: clamp(120px, 16vw, 220px); }
.word-canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: none; }
.word-band.live .word-canvas { display: block; }
.legal { margin-top: var(--sp-2); font-size: 12px; line-height: 16px; letter-spacing: -.01em; color: var(--l-sub); text-wrap: balance; }
.legal a { color: inherit; }

.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity .6s cubic-bezier(0, 0, .2, 1), transform .6s cubic-bezier(0, 0, .2, 1); }
.js .reveal.in { opacity: 1; transform: none; }

/* apple.com's medium step: 692 wide, every headline one size down */
@media (max-width: 1068px) {
  :root { --wrap: 692px; }
  .hero-h1, h2 { font-size: 64px; line-height: 68px; letter-spacing: -.009em; }
  .band-copy h2 { font-size: 80px; line-height: 84px; }
  .eyebrow { font-size: 24px; line-height: 28px; }
  .frow { grid-template-columns: 1fr; }
  .frow:nth-child(even) .art { order: 0; }
  .frow .art { aspect-ratio: 3 / 2; }
  .frow > div:not(.art) { padding: var(--sp-6); }
  .frow h3 { font-size: 32px; line-height: 36px; }
  .cells { grid-template-columns: 1fr 1fr; }
  .prods, .plat-row { grid-template-columns: 1fr; }
  .plat-row { max-width: 480px; margin-left: auto; margin-right: auto; }
}
/* apple.com's small step: the phone */
@media (max-width: 734px) {
  .nav-links, .nav-get { display: none; }
  .term { padding: var(--sp-4); }
  .prod-art { aspect-ratio: 5 / 2; --fit: 30%; border-radius: var(--r-inner); }   /* glyph tiles: a banner on a phone, not a square block */
  .term pre { font-size: 11.5px; line-height: 18px; white-space: pre-wrap; overflow-wrap: anywhere; }  /* no sideways scroll on a phone */
  .hero { padding-top: var(--sp-8); }
  /* on a phone the panel sits below the copy, never under it */
  .hero-copy { padding-top: var(--sp-6); }
  .hero-demo { opacity: 1; padding: 0 20px; } .hero-demo .app:first-child { transform: translateY(34%); }   /* the Home card shows its number, not just its tabs */
  .hero-h1, h2 { font-size: 40px; line-height: 44px; letter-spacing: 0; }
  .band-copy h2 { font-size: 48px; line-height: 52px; letter-spacing: -.003em; }
  .band-copy { margin-top: 0; padding-bottom: var(--sp-7); }
  .band { padding-bottom: var(--sp-8); }
  .eyebrow { font-size: 21px; line-height: 24px; letter-spacing: .011em; }
  .lead, .body, .band-copy p:last-child { font-size: 19px; line-height: 24px; letter-spacing: .012em; }
  h3, .frow h3 { font-size: 24px; line-height: 28px; letter-spacing: .009em; }
  .cells { grid-template-columns: 1fr; }
  .cell, .frow > div:not(.art) { padding: var(--sp-5); }
  .band-art { aspect-ratio: 4 / 3; }
  .sec { padding: var(--sp-8) 0; }
  .plat-row b { font-size: 32px; line-height: 36px; }
  .word-band { height: 140px; }
  .foot-cols { gap: var(--sp-6); }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .btn, .nav-links a, .nav-get { transition: none; }
}

/* Real screens over the platform row: phone, Mac, phone */
.shots { display: flex; justify-content: center; align-items: flex-end; gap: var(--sp-5); margin: var(--sp-8) auto var(--sp-7); }
.shot img { display: block; width: 100%; height: auto; border: 1px solid var(--l-line); box-shadow: 0 24px 60px rgba(0,0,0,.1); }
.shot.phone { width: 200px; } .shot.phone img { border-radius: 28px; }
.shot.mac { width: 520px; } .shot.mac img { border-radius: 12px; }
@media (max-width: 760px) { .shots { gap: var(--sp-3); } .shot.mac { display: none; } .shot.phone { width: 44%; } }
