/* Torero Town — torerotown.com home page (index.html only; the other pages use style.css).
   One centered column, the way Wispr Flow and Granola build theirs: a short headline with one italic
   word, one pill button, the product right under it, then sections that alternate ground and paper.
   Tan and dark follow the system; the interface fragments use the app's own tokens (src/app/globals.css).
   The product window and the streak cards are built, not screenshots, so a visitor can click them. */

:root {
  color-scheme: light dark;
  --bg: #efe8dc;          /* ground */
  --paper: #f9f5ee;       /* the alternate band and cards */
  --surface: #e8e0d1;     /* a tone step: chips, tracks, the frame behind fragments */
  --line: #ddd4c4;        /* hairlines on cards */
  --ink: #221d17;
  --muted: #534b41;
  --accent: #221d17;      /* the one accent is ink: buttons are ink on tan, bone on dark */
  --accent-ink: #fffdf9;
  /* the app's three urgency inks and its class dot colours, used only inside the interface fragments */
  --due: #c2410c; --soon: #a16207; --ok: #15803d;
  --stage-panel: #fffdf9; --stage-soft: #efe8dc; --stage-line: #e3dacb; --stage-active: #fffdf9;
  --flame: #f97316; --flame-ink: #c2410c;
  --c1: #a855f7; --c2: #eab308; --c3: #14b8a6; --c4: #ec4899; --c5: #3b82f6; --c6: #f97316; /* taste-skill-ignore */
  --mark: #fde68a;        /* the highlighter behind a found date */

  --font-display: "Instrument Serif", Georgia, "Times New Roman", serif;
  --font-text: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;

  --step-small: 14px;
  --step-body: 17px;
  --step-lead: clamp(1.125rem, 1rem + 0.5vw, 1.3125rem);     /* 18–21px */
  --step-head: clamp(2.125rem, 1.4rem + 2.6vw, 3.5rem);      /* 34–56px */
  --step-display: clamp(3rem, 1.6rem + 5.2vw, 5.5rem);       /* 48–88px */

  --wrap: 1200px;
  --narrow: 760px;
  --radius: 20px;
  --pill: 999px;
  --section: clamp(80px, 9vw, 128px);

  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-soft: cubic-bezier(0.33, 1, 0.68, 1);
  --t-hover: 160ms;
  --t-ui: 260ms;
  --t-reveal: 800ms;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0b0b0c;
    --paper: #141415;
    --surface: #1f1f21;
    --line: #2a2a2d;
    --ink: #f2efe9;
    --muted: #b3aea5;
    --accent: #f2efe9;
    --accent-ink: #0b0b0c;
    --due: #fb923c; --soon: #facc15; --ok: #4ade80;
    --stage-panel: #18181a; --stage-soft: #222224; --stage-line: #2a2927; --stage-active: #242426;
    --flame-ink: #fb923c;
    --mark: #6b5a12;
  }
}

.c1 { --c: var(--c1); } .c2 { --c: var(--c2); } .c3 { --c: var(--c3); } .c4 { --c: var(--c4); } .c5 { --c: var(--c5); } .c6 { --c: var(--c6); }

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--font-text); font-size: var(--step-body); line-height: 1.5; font-kerning: normal; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
h1, h2, h3, h4 { margin: 0; font-weight: 400; }
h1, h2 { font-family: var(--font-display); letter-spacing: -0.015em; text-wrap: balance; }
h1 em, h2 em { font-style: italic; }
h1 { font-size: var(--step-display); line-height: 0.98; }
h2 { font-size: var(--step-head); line-height: 1.04; }
h3 { font-size: 20px; font-weight: 600; letter-spacing: -0.01em; line-height: 1.3; }
p { margin: 0; }
a { color: inherit; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; margin: 0; cursor: pointer; }
img, picture { display: block; max-width: 100%; height: auto; }
em { font-style: italic; }
.small { font-size: var(--step-small); }
.muted { color: var(--muted); }
.link-plain { text-decoration: underline; text-underline-offset: 0.18em; text-decoration-thickness: 0.07em; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
.skip { position: absolute; left: 16px; top: -60px; padding: 10px 14px; background: var(--accent); color: var(--accent-ink); border-radius: 10px; z-index: 100; }
.skip:focus { top: 16px; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.wrap.narrow { max-width: var(--narrow); }
main > section { padding: var(--section) 0; }
main > section.alt { background: var(--paper); }
.sub { max-width: 58ch; margin: 20px auto 0; color: var(--muted); font-size: var(--step-lead); line-height: 1.5; text-align: center; }
main > section .wrap > h2 { text-align: center; max-width: 20ch; margin-left: auto; margin-right: auto; }

/* buttons: pills, ink on tan */
.button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 0 20px; border-radius: var(--pill); background: var(--accent); color: var(--accent-ink); font-weight: 600; font-size: 15px; letter-spacing: -0.005em; text-decoration: none; white-space: nowrap; transition: transform var(--t-hover) var(--ease-out), opacity var(--t-hover) ease; }
.button:hover { opacity: .9; }
.button:active { transform: scale(0.97); }
.button.big { min-height: 56px; padding: 0 28px; font-size: 17px; }
.button.wide { width: 100%; }
.plain { color: var(--muted); text-decoration: none; font-weight: 500; font-size: 15px; }
.plain:hover { color: var(--ink); }

/* ---------- strip and nav ---------- */
.strip { text-align: center; font-size: 14px; padding: 9px 20px; color: var(--muted); background: var(--paper); border-bottom: 1px solid var(--line); } /* taste-skill-ignore: the Granola/Wispr mold Ryan asked for sets its cards in 1px hairlines on cream */
.strip span { color: var(--ink); }
.strip a { color: var(--ink); font-weight: 600; text-decoration: none; margin-left: 6px; }
.strip a:hover { text-decoration: underline; text-underline-offset: 0.18em; }
.nav { position: sticky; top: 0; z-index: 20; background: color-mix(in srgb, var(--bg) 82%, transparent); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); }
.nav .wrap { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; height: 72px; }
.wordmark { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; font-size: 20px; letter-spacing: -0.02em; text-decoration: none; }
.wordmark img { width: 34px; height: auto; }
.nav .links { display: flex; gap: 28px; justify-content: center; }
.nav .links a { color: var(--muted); text-decoration: none; font-weight: 500; font-size: 15px; transition: color var(--t-hover) ease; }
.nav .links a:hover { color: var(--ink); }
.nav .acts { display: flex; justify-content: flex-end; align-items: center; gap: 20px; }

/* ---------- hero: the first screen, whole. The words sit in the middle and the strip at its foot ---------- */
:root { --chrome: 112px; } /* the news strip and the nav above the hero */
main > section.hero { display: flex; flex-direction: column; min-height: calc(100vh - var(--chrome)); min-height: calc(100svh - var(--chrome)); padding: 24px 0 0; text-align: center; }
.hero > .wrap { margin: auto; padding-top: 24px; padding-bottom: 24px; }
.hero h1 { max-width: 12ch; margin: 0 auto; }
.hero .lede { max-width: 50ch; margin: 24px auto 0; font-size: var(--step-lead); color: var(--muted); line-height: 1.5; }
.cta { display: flex; flex-direction: column; align-items: center; gap: 14px; margin-top: 32px; }
.cta .under { font-size: var(--step-small); color: var(--muted); }
.cta .under a { color: var(--ink); }

/* the demo, the way Wispr shows one message moving through its stages: one class at a time, the syllabus
   sentence as written, the parts it reads tagged one by one, then the clean row it becomes */
.demo { position: relative; max-width: 820px; margin: 36px auto 0; display: flex; flex-direction: column; gap: 14px; padding: 22px 24px 24px; border-radius: 24px; background: var(--paper); border: 1px solid var(--line); text-align: left; } /* taste-skill-ignore: the Granola/Wispr mold Ryan asked for sets its cards in 1px hairlines on cream */
.demo .picks { display: flex; gap: 6px; flex-wrap: wrap; font-size: 13px; }
.demo .cls { display: inline-flex; align-items: center; gap: 8px; padding: 6px 11px; border-radius: 9px; border: 1px solid var(--stage-line); background: var(--stage-panel); font-weight: 500; color: var(--muted); white-space: nowrap; transition: background-color var(--t-ui) ease, color var(--t-ui) ease, border-color var(--t-ui) ease; } /* taste-skill-ignore: the Granola/Wispr mold Ryan asked for sets its cards in 1px hairlines on cream */
.demo .cls.on { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.demo .cls .dot { background: var(--c); }
.demo .src { height: 228px; border-radius: 14px; background: var(--stage-panel); border: 1px solid var(--stage-line); padding: 14px 18px 16px; font-size: 13px; position: relative; overflow: hidden; transition: opacity 220ms ease; } /* taste-skill-ignore: the Granola/Wispr mold Ryan asked for sets its cards in 1px hairlines on cream */
.demo .src.out { opacity: 0; }
.demo .dochead { display: flex; justify-content: space-between; gap: 10px; font-size: 11px; color: var(--muted); border-bottom: 1px solid var(--stage-line); padding-bottom: 10px; margin-bottom: 12px; } /* taste-skill-ignore: the Granola/Wispr mold Ryan asked for sets its cards in 1px hairlines on cream */
.demo .dochead .file { font-weight: 600; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.demo .dochead .where { white-space: nowrap; }
.demo .ln { display: block; height: 9px; border-radius: 4px; background: var(--stage-soft); margin: 10px 0; }
.demo .sent { font-size: 17px; line-height: 2.4; color: var(--ink); margin: 6px 0 8px; }
.demo .k { position: relative; color: inherit; background: linear-gradient(var(--mark), var(--mark)) no-repeat 0 100% / 0% 100%; border-radius: 3px; padding: 2px 3px; margin: -2px -3px; transition: background-size 500ms var(--ease-out); -webkit-box-decoration-break: clone; box-decoration-break: clone; } /* taste-skill-ignore: the Granola/Wispr mold Ryan asked for sets its cards in 1px hairlines on cream */
.demo .k::after { content: attr(data-k); position: absolute; left: 0; top: calc(100% + 3px); font-size: 10px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; line-height: 1; color: var(--ink); white-space: nowrap; opacity: 0; transform: translateY(-3px); transition: opacity 320ms var(--ease-out), transform 320ms var(--ease-out); }
.demo .k.on { background-size: 100% 100%; }
.demo .k.on::after { opacity: 1; transform: none; }
.demo .k.old::after { color: var(--muted); }
.demo .k.old { text-decoration: line-through; text-decoration-color: var(--muted); }
.demo .k.old.on { background-size: 0 100%; color: var(--muted); }
.demo .res { height: 94px; border-radius: 14px; background: var(--stage-panel); border: 1px solid var(--stage-line); padding: 4px 16px 6px; font-size: 13px; transition: opacity 300ms ease; }
.demo[data-phase="0"] .res, .demo[data-phase="1"] .res { opacity: 0; } /* taste-skill-ignore: the Granola/Wispr mold Ryan asked for sets its cards in 1px hairlines on cream */
.demo .res .row { border-top: 0; opacity: 0; transform: translateY(-6px); transition: opacity 420ms var(--ease-out), transform 420ms var(--ease-out); }
.demo .res .row.on { opacity: 1; transform: none; }
.demo .res .row .t { font-size: 14px; font-weight: 500; }
.demo .rem { display: flex; align-items: center; gap: 8px; margin: 2px 0 4px; padding: 7px 10px; height: 34px; opacity: 0; overflow: hidden; border-radius: 8px; background: var(--surface); color: var(--muted); font-size: 11.5px; line-height: 1.3; transition: opacity 380ms var(--ease-out); }
.demo .rem.on { opacity: 1; }
.demo .rem b { color: var(--ink); font-weight: 600; }
.demo .rem i { width: 6px; height: 6px; border-radius: 50%; background: var(--ink); flex: none; }

/* the marquee: where it looks. Four identical sets slide one set-width and start over, so the loop never shows
   a seam; the fade sits on the still container, not on the moving track */
.marquee { margin-top: auto; padding: 8px 0 clamp(28px, 4vh, 48px); overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 15%, #000 85%, transparent); mask-image: linear-gradient(90deg, transparent, #000 15%, #000 85%, transparent); } /* taste-skill-ignore: the fade at the strip's edges, a mask, not a fill */
.marquee .track { display: flex; width: max-content; padding: 24px 0 6px; }
.marquee .set { display: flex; gap: 44px; padding-right: 44px; }
.marquee .track span { position: relative; font-size: 15px; font-weight: 500; color: var(--muted); white-space: nowrap; padding: 2px 7px; margin: -2px -7px; border-radius: 7px; transition: background-color 320ms ease, color 320ms ease; }
.marquee .track span.lit { background: var(--mark); color: var(--ink); font-weight: 600; }
.marquee .track span.lit::after { content: "Found it"; position: absolute; left: 50%; top: -19px; transform: translateX(-50%); font-size: 10px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--ink); white-space: nowrap; animation: tt-found 2s var(--ease-out) both; }
@keyframes tt-found { 0% { opacity: 0; transform: translate(-50%, 4px); } 15%, 80% { opacity: 1; transform: translate(-50%, 0); } 100% { opacity: 0; } }
.marquee .track span::before { content: ""; position: absolute; left: -26px; top: 50%; width: 5px; height: 5px; border-radius: 50%; background: var(--line); transform: translateY(-50%); }
.marquee .cap { margin-top: 14px; text-align: center; font-size: 13px; color: var(--muted); }
@media (prefers-reduced-motion: no-preference) { .js .marquee .track { animation: tt-marquee 40s linear infinite; } }
@keyframes tt-marquee { to { transform: translateX(-25%); } }

/* ---------- product tabs: a working window ---------- */
.tabs { display: inline-flex; gap: 4px; padding: 4px; margin: 28px auto 0; border-radius: var(--pill); background: var(--surface); }
.product .wrap { display: flex; flex-direction: column; align-items: center; }
.product .sub { margin-top: 20px; }
.tabs button { min-height: 40px; padding: 0 18px; border-radius: var(--pill); font-weight: 500; font-size: 15px; color: var(--muted); transition: background-color var(--t-hover) ease, color var(--t-hover) ease; }
.tabs button:hover { color: var(--ink); }
.tabs button[aria-selected="true"] { background: var(--accent); color: var(--accent-ink); }
.frame { position: relative; width: 100%; max-width: 1080px; height: 560px; margin-top: 28px; border-radius: var(--radius); overflow: hidden; background: var(--stage-soft); border: 1px solid color-mix(in srgb, var(--ink) 14%, var(--line)); box-shadow: 0 1px 2px rgba(0,0,0,.05), 0 24px 60px -24px rgba(0,0,0,.35), 0 48px 120px -48px rgba(0,0,0,.25); display: grid; grid-template-columns: 196px 1fr; text-align: left; font-size: 13px; } /* taste-skill-ignore: the window floats off the ground, which on tan is the same tone as its sidebar */
@media (prefers-color-scheme: dark) { .frame { box-shadow: 0 1px 2px rgba(0,0,0,.4), 0 24px 60px -24px rgba(0,0,0,.8); } } /* taste-skill-ignore: same shadow, darker ground */
.frame .side { display: flex; flex-direction: column; gap: 2px; padding: 18px 12px; border-right: 1px solid var(--stage-line); background: var(--stage-soft); } /* taste-skill-ignore: the Granola/Wispr mold Ryan asked for sets its cards in 1px hairlines on cream */
.frame .brand { display: flex; align-items: center; gap: 8px; font-weight: 700; font-size: 14px; letter-spacing: -0.01em; padding: 4px 8px 16px; }
.frame .brand img { width: 24px; height: auto; }
.frame .si { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 9px; font-weight: 500; color: var(--muted); text-align: left; width: 100%; transition: background-color var(--t-hover) ease, color var(--t-hover) ease; }
.frame .si:hover { color: var(--ink); }
.frame .si.on { background: var(--stage-panel); color: var(--ink); box-shadow: 0 1px 2px rgba(0,0,0,.06); } /* taste-skill-ignore: the window's selected tab, as the app draws it */
.frame .si svg { width: 16px; height: 16px; flex: none; }
.frame .brand small { display: block; font-size: 10.5px; font-weight: 400; color: var(--muted); margin-top: 1px; }
.frame .brand > div { display: flex; flex-direction: column; }
.frame .sem { display: flex; flex-direction: column; gap: 1px; margin: auto 0; padding: 18px 0; }
.frame .sh { font-size: 10px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); padding: 0 10px 6px; }
.frame .sc { display: flex; align-items: center; gap: 9px; width: 100%; padding: 6px 10px; border-radius: 8px; font-size: 12.5px; color: var(--muted); text-align: left; transition: background-color var(--t-hover) ease, color var(--t-hover) ease; }
.frame .sc span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.frame .sc .dot { background: var(--c); }
.frame .sc:hover { color: var(--ink); }
.frame .sc.on { background: var(--stage-panel); color: var(--ink); font-weight: 600; box-shadow: 0 1px 2px rgba(0,0,0,.06); } /* taste-skill-ignore: the window's selected class, as the app draws it */
.frame .sfoot { display: flex; flex-direction: column; gap: 1px; padding: 0; }
.frame .sfoot .si { font-size: 12.5px; padding: 6px 10px; }
.frame .screen { position: relative; padding: 22px 26px; overflow: hidden; }
.frame .screen.classes { overflow-y: auto; scrollbar-width: thin; }
.frame .screen[hidden] { display: none; }
@media (prefers-reduced-motion: no-preference) { .js .frame .screen { animation: tt-rise 360ms var(--ease-out) both; } }
.frame .shead { display: flex; align-items: baseline; gap: 16px; margin-bottom: 14px; }
.frame .shead h3 { font-size: 26px; font-weight: 700; letter-spacing: -0.03em; line-height: 1.1; }
.frame .shead h3 em { font-family: var(--font-display); font-weight: 400; font-size: 30px; }
.frame .shead .meta { margin-left: auto; font-size: 12px; color: var(--muted); white-space: nowrap; }
.frame .box { background: var(--stage-panel); border: 1px solid var(--stage-line); border-radius: 14px; padding: 4px 16px 8px; } /* taste-skill-ignore: the Granola/Wispr mold Ryan asked for sets its cards in 1px hairlines on cream */
.frame .box .row { padding: 7px 0; }
.frame .row .t { font-size: 13.5px; }
.frame .row.gone { opacity: .35; }
.frame .row.gone .t { text-decoration: line-through; }
.frame .nr { position: relative; flex: none; font-size: 11px; color: var(--muted); border: 1px solid var(--stage-line); border-radius: var(--pill); padding: 3px 9px; margin-left: 8px; } /* taste-skill-ignore: the Granola/Wispr mold Ryan asked for sets its cards in 1px hairlines on cream */
.frame .nr:hover { color: var(--ink); }
.frame .menu { position: absolute; right: 0; top: calc(100% + 4px); z-index: 2; min-width: 160px; padding: 4px; border-radius: 10px; background: var(--stage-panel); border: 1px solid var(--stage-line); box-shadow: 0 10px 24px -8px rgba(0,0,0,.3); text-align: left; } /* taste-skill-ignore: the Granola/Wispr mold Ryan asked for sets its cards in 1px hairlines on cream */
.frame .menu[hidden] { display: none; }
.frame .menu button { display: block; width: 100%; padding: 6px 9px; border-radius: 7px; font-size: 12px; color: var(--ink); text-align: left; }
.frame .menu button:hover { background: var(--stage-soft); }
.frame .ring { width: 16px; height: 16px; border-radius: 50%; border: 1.5px solid var(--muted); flex: none; margin-left: 8px; transition: background-color var(--t-hover) ease, border-color var(--t-hover) ease; }
.frame .ring:hover { border-color: var(--ink); }
.frame .ring.on { background: var(--ok); border-color: var(--ok); -webkit-mask: none; }
.frame .ring.on::after { content: ""; display: block; width: 100%; height: 100%; background: #fff; -webkit-mask: var(--check) center / 11px no-repeat; mask: var(--check) center / 11px no-repeat; }
.frame .stats { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 14px; }
/* classes */
.frame .chips { display: none; flex-wrap: wrap; gap: 6px; margin-bottom: 18px; } /* the sidebar lists the classes on desktop, as the app does; the chips stand in for it on a phone */
.frame .chip { display: inline-flex; align-items: center; gap: 7px; padding: 6px 11px; border-radius: 9px; border: 1px solid var(--stage-line); background: var(--stage-panel); font-size: 12.5px; font-weight: 500; color: var(--muted); transition: background-color var(--t-hover) ease, color var(--t-hover) ease; } /* taste-skill-ignore: the Granola/Wispr mold Ryan asked for sets its cards in 1px hairlines on cream */
.frame .chip:hover { color: var(--ink); }
.frame .chip[aria-pressed="true"] { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.frame .chip .dot { background: var(--c); }
.frame .screen.classes { background: radial-gradient(640px 240px at 18% -30px, color-mix(in srgb, var(--c) 38%, transparent), transparent 72%), linear-gradient(to bottom, color-mix(in srgb, var(--c) 14%, transparent), color-mix(in srgb, var(--c) 8%, transparent) 420px, color-mix(in srgb, var(--c) 8%, transparent)); transition: background 500ms ease; } /* taste-skill-ignore: the class page's wash, as the app draws it (classWashVars) */
.frame .screen.classes .box { background: linear-gradient(to bottom, color-mix(in srgb, var(--c) 9%, var(--stage-panel)), color-mix(in srgb, var(--c) 4%, var(--stage-panel)) 120px); border-color: color-mix(in srgb, var(--c) 28%, var(--stage-line)); } /* taste-skill-ignore: the class page's boxes, tinted as the app tints them */
.frame .screen.classes .oc { border-color: color-mix(in srgb, var(--c) 40%, var(--stage-line)); color: var(--ink); } /* taste-skill-ignore: the class page's Open in Canvas, edged in the class color */
.frame .chead h4 .dot { box-shadow: 0 0 0 3px color-mix(in srgb, var(--c) 25%, transparent); } /* taste-skill-ignore: the class dot, with its halo */
.frame .chead { display: flex; align-items: flex-start; gap: 16px; }
.frame .chead h4 { display: flex; align-items: center; gap: 10px; font-size: 24px; font-weight: 700; letter-spacing: -0.03em; line-height: 1.15; }
.frame .chead h4 .dot { width: 10px; height: 10px; background: var(--c); }
.frame .chead .meta { font-size: 12.5px; color: var(--muted); margin-top: 3px; }
.frame .oc { margin-left: auto; flex: none; font-size: 12px; font-weight: 500; padding: 6px 11px; border-radius: 8px; border: 1px solid var(--stage-line); background: var(--stage-panel); } /* taste-skill-ignore: the Granola/Wispr mold Ryan asked for sets its cards in 1px hairlines on cream */
.frame .dots { display: flex; gap: 5px; margin-top: 14px; }
.frame .dots i { width: 10px; height: 10px; border-radius: 50%; border: 1.5px solid color-mix(in srgb, var(--ink) 34%, transparent); background: color-mix(in srgb, var(--c) 10%, transparent); transition: background-color 400ms ease, border-color 400ms ease; } /* taste-skill-ignore: the dots still to turn in, outlined so they read on tan */
.frame .dots i.on { background: var(--c); border-color: var(--c); }
.frame .dots i.late { border-color: var(--due); background: color-mix(in srgb, var(--due) 14%, transparent); }
.frame .dotline { font-size: 12.5px; margin-top: 8px; color: var(--muted); } .frame .dotline b { color: var(--ink); font-weight: 600; } .frame .dotline .late { color: var(--due); font-weight: 600; }
.frame .glance { margin-top: 16px; padding: 14px 18px 6px; }
.frame .glance h5 { font-size: 17px; font-weight: 700; letter-spacing: -0.02em; margin: 0 0 6px; }
.frame .glance dl { display: grid; grid-template-columns: 1fr 1fr; column-gap: 28px; margin: 0; }
.frame .glance div { display: grid; grid-template-columns: 92px 1fr; gap: 10px; padding: 8px 0; border-top: 1px solid var(--stage-line); font-size: 13px; } /* taste-skill-ignore: the Granola/Wispr mold Ryan asked for sets its cards in 1px hairlines on cream */
.frame .glance dt { color: var(--muted); } .frame .glance dd { margin: 0; }
.frame .glance .wide { grid-column: 1 / -1; }
.frame .cbox { margin-top: 12px; padding: 12px 18px 8px; }
.frame .cbox h5 .more { margin-left: auto; font-style: normal; font-weight: 500; font-size: 12px; color: var(--muted); }
.frame .cbox .legend { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 6px; margin: 0; padding-bottom: 8px; border-bottom: 1px solid var(--stage-line); font-size: 11px; color: var(--muted); } /* taste-skill-ignore: the Granola/Wispr mold Ryan asked for sets its cards in 1px hairlines on cream */
.frame .cbox .legend i { width: 7px; height: 7px; border-radius: 50%; margin-left: 6px; }
.frame .cbox .legend .t1 { background: #c0262d; } .frame .cbox .legend .t2 { background: #c2410c; } .frame .cbox .legend .t3 { background: #a16207; } .frame .cbox .legend .t4 { background: #2f6fd0; } /* taste-skill-ignore: the app's grade-share tier colors (src/app/globals.css) */
.frame .cbox .r.dim { opacity: .55; }
.frame .cbox .today { display: flex; align-items: center; gap: 10px; padding: 10px 0 2px; font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--due); }
.frame .cbox .today::after { content: ""; flex: 1; height: 1px; background: color-mix(in srgb, var(--due) 40%, transparent); } /* taste-skill-ignore: the app's own Today line (ClassSyllabus.tsx) */
.frame .cbox h5 { display: flex; align-items: baseline; gap: 8px; font-size: 15px; font-weight: 700; letter-spacing: -0.02em; margin: 0 0 4px; }
.frame .cbox h5 span { font-size: 12px; font-weight: 400; color: var(--muted); }
.frame .cbox .r { display: grid; grid-template-columns: 78px 78px 1fr auto; gap: 10px; align-items: center; padding: 6px 0; border-top: 1px solid var(--stage-line); font-size: 12.5px; } /* taste-skill-ignore: the Granola/Wispr mold Ryan asked for sets its cards in 1px hairlines on cream */
.frame .cbox .r > span:first-child { color: var(--muted); }
.frame .cbox .r .t { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.frame .cbox .r .done { color: var(--ok); font-size: 11.5px; font-weight: 600; }
.frame .cbox .an { padding: 6px 0; border-top: 1px solid var(--stage-line); font-size: 12.5px; } /* taste-skill-ignore: the Granola/Wispr mold Ryan asked for sets its cards in 1px hairlines on cream */
.frame .cbox .an b { display: block; font-weight: 600; }
.frame .cbox .an span { display: block; color: var(--muted); font-size: 11.5px; margin-top: 1px; }
/* events */
.frame .range { display: flex; gap: 14px; font-size: 14px; font-weight: 500; color: var(--muted); }
.frame .range button { padding: 2px 0; border-bottom: 2px solid transparent; }
.frame .range button.on { color: var(--ink); border-color: var(--ink); }
.frame .cc { flex: none; font-size: 12px; font-weight: 600; padding: 7px 11px; border-radius: 8px; background: var(--ink); color: var(--paper); }
.frame .lanes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.frame .lh { display: flex; align-items: baseline; gap: 6px; font-size: 19px; font-weight: 700; letter-spacing: -0.02em; }
.frame .lh span { font-size: 13px; font-weight: 500; color: var(--muted); }
.frame .lh em { margin-left: auto; font-style: normal; font-size: 12px; font-weight: 500; color: var(--muted); }
.frame .ls { font-size: 12.5px; color: var(--muted); margin: 2px 0 8px; padding-bottom: 10px; border-bottom: 1px solid var(--stage-line); } /* taste-skill-ignore: the Granola/Wispr mold Ryan asked for sets its cards in 1px hairlines on cream */
.frame .ev { padding: 9px 0; border-bottom: 1px solid var(--stage-line); } /* taste-skill-ignore: the Granola/Wispr mold Ryan asked for sets its cards in 1px hairlines on cream */
.frame .ev .day { font-size: 10px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin-bottom: 4px; }
.frame .et { display: flex; align-items: flex-start; gap: 8px; }
.frame .et b { font-size: 13.5px; font-weight: 500; line-height: 1.3; }
.frame .ew { display: block; font-size: 12px; color: var(--muted); margin-top: 3px; } .frame .ew b { color: var(--ink); font-weight: 600; }
.frame .tags { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 6px; }
.frame .cal { margin-left: auto; flex: none; width: 24px; height: 24px; border-radius: 6px; background: var(--muted); opacity: .6; -webkit-mask: var(--cal-plus) center / 16px no-repeat; mask: var(--cal-plus) center / 16px no-repeat; transition: opacity var(--t-hover) ease, background-color var(--t-hover) ease, transform 120ms var(--ease-out); }
.frame .cal:hover { opacity: 1; }
.frame .cal:active { transform: scale(.9); }
.frame .cal.on { opacity: 1; background: var(--ok); -webkit-mask-image: var(--cal-check); mask-image: var(--cal-check); }
:root { --cal-plus: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='5' width='18' height='16' rx='2'/%3E%3Cpath d='M8 3v4M16 3v4M3 10h18M12 13v6M9 16h6'/%3E%3C/svg%3E"); --cal-check: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='5' width='18' height='16' rx='2'/%3E%3Cpath d='M8 3v4M16 3v4M3 10h18M9 15.5l2 2 4-4'/%3E%3C/svg%3E"); }
.frame .toast { position: absolute; left: 50%; bottom: 18px; transform: translate(-50%, 12px); opacity: 0; padding: 9px 14px; border-radius: var(--pill); background: var(--ink); color: var(--paper); font-size: 12.5px; font-weight: 500; white-space: nowrap; pointer-events: none; transition: opacity var(--t-ui) var(--ease-out), transform var(--t-ui) var(--ease-out); }
.frame .toast.on { opacity: 1; transform: translate(-50%, 0); }
.panes { max-width: 60ch; margin-top: 24px; text-align: center; color: var(--muted); min-height: 4.5em; }
.panes p b { color: var(--ink); font-weight: 600; }
.panes p[hidden] { display: none; }
@media (prefers-reduced-motion: no-preference) { .js .panes p { animation: tt-rise 360ms var(--ease-out) both; } }

/* ---------- before it's due: the reminders at their moments, pinned while the page scrolls through ---------- */
.js main > section.remind { padding: 0; height: 280vh; }
.remind .pin { position: sticky; top: 0; min-height: 100vh; display: flex; align-items: flex-start; padding: clamp(80px, 16vh, 160px) 0 32px; }
.js .remind .pin { height: 100vh; min-height: 0; }
.remind .pin .wrap { max-height: 100%; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 520px); gap: 40px clamp(48px, 7vw, 112px); align-items: start; }
.remind .say { padding-top: 12px; }
.remind .say h2 { text-align: left; max-width: 14ch; }
.remind .say .sub { margin: 20px 0 0; text-align: left; }
.chat { display: flex; flex-direction: column; gap: 6px; width: 100%; max-width: 520px; min-height: 380px; margin: 0; text-align: left; }
.chat .msg { display: flex; flex-direction: column; align-items: flex-start; opacity: 0; transform: translateY(12px); transition: opacity 420ms var(--ease-out), transform 420ms var(--ease-out); }
.chat .msg.on { opacity: 1; transform: none; }
.chat .msg.me { align-items: flex-end; }
.chat .msg time { align-self: center; font-size: 11px; color: var(--muted); margin: 8px 0 6px; }
.chat .msg p { margin: 0; max-width: 86%; padding: 12px 16px; border-radius: 20px 20px 20px 6px; background: var(--surface); color: var(--ink); font-size: 16px; line-height: 1.45; }
.chat .msg.me p { border-radius: 20px 20px 6px 20px; background: var(--ink); color: var(--paper); }
.banner { width: 100%; max-width: 440px; display: flex; align-items: flex-start; gap: 10px; padding: 12px 14px; border-radius: 16px; background: var(--stage-panel); border: 1px solid var(--stage-line); box-shadow: 0 10px 28px -16px rgba(0,0,0,.35); font-size: 13px; line-height: 1.35; } /* taste-skill-ignore: the Granola/Wispr mold Ryan asked for sets its cards in 1px hairlines on cream */
.banner img { width: 28px; height: auto; margin-top: 2px; }
.banner > div { min-width: 0; }
.banner b { display: block; font-weight: 600; }
.banner span { display: block; color: var(--ink); }
.banner p { margin: 1px 0 0; color: var(--muted); }
.banner small { margin-left: auto; color: var(--muted); font-size: 11px; }
.bubble { width: 100%; max-width: 440px; }
.bubble time { display: block; text-align: center; font-size: 11px; color: var(--muted); margin-bottom: 8px; }
.bubble p { margin: 0; padding: 14px 18px; border-radius: 22px 22px 22px 6px; background: var(--surface); color: var(--ink); font-size: 16px; line-height: 1.45; }
.dueBox { width: 100%; max-width: 440px; border-radius: 16px; background: var(--stage-panel); border: 1px solid var(--stage-line); padding: 12px 18px 10px; font-size: 13px; } /* taste-skill-ignore: the Granola/Wispr mold Ryan asked for sets its cards in 1px hairlines on cream */
.dueBox .h { margin: 0 0 2px; font-weight: 700; font-size: 14px; letter-spacing: -0.01em; }
.dueBox .row { border-top: 0; }
.dueBox .row .w.ok { color: var(--ok); }
.dueBox .row.done .t { color: var(--muted); }
.dueBox .from { margin: 0; padding-top: 6px; border-top: 1px solid var(--stage-line); font-size: 11.5px; color: var(--muted); } /* taste-skill-ignore: the Granola/Wispr mold Ryan asked for sets its cards in 1px hairlines on cream */
.dueBox .stk { display: flex; align-items: center; gap: 6px; margin: 2px 0 2px; font-size: 12px; font-weight: 600; color: #f97316; } /* taste-skill-ignore: the app's own streak color (src/lib/streakSteps.ts) */
.remind .what { max-width: 62ch; margin: 24px auto 0; text-align: center; font-size: 14px; color: var(--muted); line-height: 1.5; }

/* ---------- the streak climb: pinned while the page scrolls past, the streak growing with the scroll ---------- */
.js main > section.streak { padding: 0; height: 300vh; }
.streak .pin { position: sticky; top: 0; min-height: 100vh; display: flex; align-items: center; padding: 72px 0 32px; }
.js .streak .pin { height: 100vh; min-height: 0; }
.streak .pin .wrap { max-height: 100%; }
.streak .hint { text-align: center; font-size: 13px; color: var(--muted); margin-top: 18px; }
.ladder { max-width: 980px; margin: 36px auto 0; }
.rungs { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; list-style: none; margin: 0 0 24px; padding: 0; position: relative; }
.rungs::before { content: ""; position: absolute; left: 7%; right: 7%; top: 13px; height: 2px; background: var(--line); }
.rungs button { position: relative; display: flex; flex-direction: column; align-items: center; gap: 8px; width: 100%; padding: 0 0 4px; color: var(--muted); font-size: 13px; transition: color var(--t-hover) ease; }
.rungs button::before { content: ""; width: 28px; height: 28px; border-radius: 50%; background: var(--bg); border: 2px solid var(--line); transition: border-color var(--t-ui) ease, background-color var(--t-ui) ease, transform var(--t-ui) var(--ease-out); }
.alt .rungs button::before { background: var(--paper); }
.rungs button b { display: block; font-weight: 600; color: var(--ink); font-size: 13px; }
.rungs button span { display: block; font-size: 12px; }
.rungs button:hover { color: var(--ink); }
.rungs button.done::before { background: var(--lv); border-color: var(--lv); }
.rungs button { cursor: pointer; }
.rungs button[aria-pressed="true"]::before { background: var(--lv); border-color: var(--lv); transform: scale(1.25); box-shadow: 0 0 0 4px color-mix(in srgb, var(--lv) 25%, transparent); } /* taste-skill-ignore: the halo on the milestone the cards are on */
.rungs button[aria-pressed="true"] span { color: var(--lv); font-weight: 600; }
.climb { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.ladder .what { text-align: center; color: var(--muted); margin: 22px auto 0; max-width: 54ch; min-height: 3em; }
.ladder .what b { color: var(--ink); font-weight: 600; }

/* the Home stat card, at each of its seven steps (src/components/HomeStats.tsx, docs/HOME-STREAK-STEPS.md) */
@property --tt-angle { syntax: "<angle>"; initial-value: 0deg; inherits: false; }
.stat { --lv: #a8a29e; --g1: var(--lv); --g2: var(--lv); --g3: var(--lv); --g4: var(--lv); position: relative; padding: 1.5px; border-radius: 16px; background: var(--stage-line); transition: background 500ms ease, box-shadow 500ms ease, padding 300ms ease; font-family: var(--font-text); color: var(--ink); text-align: left; } /* taste-skill-ignore: the app's own streak card, reproduced from src/app/globals.css */
.stat .in { position: relative; overflow: hidden; border-radius: 14.5px; background: var(--stage-panel); padding: 16px 20px 14px; }
.stat .in::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: radial-gradient(70% 90% at 100% 0%, color-mix(in srgb, var(--lv) var(--wash, 0%), transparent), transparent 62%); transition: opacity 500ms ease; } /* taste-skill-ignore: the app's own streak card, reproduced from src/app/globals.css */
.stat .top { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.stat .lbl { font-size: 11px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.stat .tag { margin-left: auto; font-size: 10.5px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; padding: 3px 9px; border-radius: var(--pill); color: var(--lv); background: color-mix(in srgb, var(--lv) 12%, transparent); border: 0; }
.stat .tag:empty { display: none; }
.stat .flame { width: 20px; height: 20px; flex: none; color: #a8a29e; transform-origin: 50% 90%; transition: color 400ms ease; }
.stat .flame svg { width: 100%; height: 100%; display: block; }
.stat .num { display: flex; align-items: baseline; gap: 8px; margin-top: 8px; font-variant-numeric: tabular-nums; }
.stat .num b { font-size: 40px; font-weight: 600; letter-spacing: -0.03em; line-height: 1; transition: color 400ms ease; }
.stat .num span { font-size: 18px; font-weight: 500; }
.stat .bar { display: flex; gap: 4px; height: 8px; margin-top: 12px; }
.stat .bar i { flex: 1; border-radius: 4px; background: var(--stage-line); }
.stat .bar.merged { gap: 0; }
.stat .bar.merged i { border-radius: 0; } .stat .bar.merged i:first-child { border-radius: 4px 0 0 4px; } .stat .bar.merged i:last-child { border-radius: 0 4px 4px 0; }
.stat .bar .full { flex: 1; position: relative; border-radius: var(--pill); background: linear-gradient(90deg, #f5a524, #f97316, #ef4444, #d946ef, #8b5cf6, #1f51ff, #22d3ee, #1f51ff, #8b5cf6, #d946ef, #ef4444, #f97316, #f5a524); background-size: 200% 100%; overflow: hidden; height: 12px; margin-top: -2px; } /* taste-skill-ignore: the app's own streak card, reproduced from src/app/globals.css */
.stat .bar .full::after { content: ""; position: absolute; inset: 0 auto 0 0; width: 33%; background: linear-gradient(90deg, rgba(255,255,255,0), rgba(255,255,255,.25) 30%, rgba(255,255,255,.75) 50%, rgba(255,255,255,.25) 70%, rgba(255,255,255,0)); transform: translateX(-100%); } /* taste-skill-ignore: the app's own streak card, reproduced from src/app/globals.css */
.stat .ft { display: flex; justify-content: space-between; gap: 12px; margin-top: 10px; font-size: 12px; color: var(--muted); }
.stat .ft .goal { color: var(--lv); text-align: right; }
.stat[data-step="cold"] .ft .goal, .stat[data-step="lit"] .ft .goal { color: var(--muted); }
/* lit: the flame takes the color */
.stat:not([data-step="cold"]) .flame { color: var(--lv); }
/* warm: wash, colored number */
.stat[data-step="warm"], .stat[data-step="outlined"], .stat[data-step="glowing"], .stat[data-step="charged"], .stat[data-step="neon"] { --wash: 12%; }
.stat[data-step="warm"] .num b, .stat[data-step="outlined"] .num b { color: var(--lv); }
/* outlined */
.stat[data-step="outlined"] { --wash: 17%; background: var(--lv); box-shadow: 0 0 0 3px color-mix(in srgb, var(--lv) 10%, transparent); } /* taste-skill-ignore: the app's own streak card, reproduced from src/app/globals.css */
/* glowing: every color climbed */
.stat[data-step="glowing"], .stat[data-step="charged"] { --wash: 17%; background: linear-gradient(135deg, var(--g1), var(--g2), var(--g3), var(--g4)); box-shadow: 0 0 22px color-mix(in srgb, var(--lv) 30%, transparent); } /* taste-skill-ignore: the app's own streak card, reproduced from src/app/globals.css */
.stat[data-step="glowing"] .num b, .stat[data-step="charged"] .num b, .stat[data-step="neon"] .num b, .stat[data-step="neon"] .tag, .stat[data-step="neon"] .ft .goal { background-image: linear-gradient(90deg, var(--g1), var(--g2), var(--g3), var(--g4)); background-size: 200% 100%; -webkit-background-clip: text; background-clip: text; color: transparent; } /* taste-skill-ignore: the app's own streak card, reproduced from src/app/globals.css */
.stat[data-step="glowing"] .flame, .stat[data-step="charged"] .flame, .stat[data-step="neon"] .flame { filter: drop-shadow(0 0 4px color-mix(in srgb, var(--lv) 70%, transparent)); } /* taste-skill-ignore: the app's own streak card, reproduced from src/app/globals.css */
/* charged: a neon band runs the outline */
.stat[data-step="charged"] { padding: 2px; background: conic-gradient(from var(--tt-angle), transparent 0 62%, #1f51ff 78%, transparent 92%), linear-gradient(135deg, var(--g1), var(--g2), var(--g3), var(--g4)); } /* taste-skill-ignore: the app's own streak card, reproduced from src/app/globals.css */
/* neon */
.stat[data-step="neon"] { --g1: #f5a524; --g2: #ef4444; --g3: #d946ef; --g4: #1f51ff; padding: 2px; background: conic-gradient(from var(--tt-angle), #f5a524, #f97316, #ef4444, #d946ef, #8b5cf6, #1f51ff, #22d3ee, #1f51ff, #8b5cf6, #d946ef, #ef4444, #f97316, #f5a524); box-shadow: 0 0 18px rgba(31,81,255,.45), 0 0 48px rgba(217,70,239,.22); } /* taste-skill-ignore: the app's own streak card, reproduced from src/app/globals.css */
.stat[data-step="neon"] .num b, .stat[data-step="neon"] .tag, .stat[data-step="neon"] .ft .goal { background-image: linear-gradient(90deg, #f5a524, #f97316, #ef4444, #d946ef, #8b5cf6, #1f51ff, #22d3ee, #1f51ff, #8b5cf6, #d946ef, #ef4444, #f97316, #f5a524); } /* taste-skill-ignore: the app's own streak card, reproduced from src/app/globals.css */
.stat[data-step="neon"] .flame { color: #1f51ff; filter: drop-shadow(0 0 6px rgba(31,81,255,.8)); } /* taste-skill-ignore: the app's own streak card, reproduced from src/app/globals.css */
.stat[data-step="neon"] .in::before { content: ""; position: absolute; left: -25%; right: -25%; top: -50%; height: 100%; opacity: .6; filter: blur(24px); pointer-events: none; background: radial-gradient(40% 60% at 30% 50%, rgba(217,70,239,.25), transparent 70%), radial-gradient(40% 60% at 70% 50%, rgba(31,81,255,.3), transparent 70%); } /* taste-skill-ignore: the app's own streak card, reproduced from src/app/globals.css */
.stat .sparks { position: absolute; width: 0; height: 0; }
.stat .sparks i { position: absolute; bottom: 4px; left: 0; width: 4px; height: 4px; border-radius: 50%; background: #9fd0ff; opacity: 0; }
.stat .sparks i:nth-child(1) { --dx: -8px; } .stat .sparks i:nth-child(2) { --dx: -3px; } .stat .sparks i:nth-child(3) { --dx: 2px; } .stat .sparks i:nth-child(4) { --dx: 7px; } .stat .sparks i:nth-child(5) { --dx: 11px; }
@media (prefers-reduced-motion: no-preference) {
  .stat:not([data-step="cold"]) .flame { animation: tt-flicker 1.6s ease-in-out infinite; }
  .stat[data-step="charged"] { animation: tt-spin 4.8s linear infinite, tt-breathe-c 4.8s ease-in-out infinite; }
  .stat[data-step="charged"] .num b { animation: tt-flow 4.8s linear infinite; }
  .stat[data-step="neon"] { animation: tt-spin 2.4s linear infinite, tt-breathe 2.4s ease-in-out infinite; }
  .stat[data-step="neon"] .num b, .stat[data-step="neon"] .tag, .stat[data-step="neon"] .ft .goal, .stat .bar .full { animation: tt-flow 2.4s linear infinite; }
  .stat .bar .full::after { animation: tt-ripple 12s cubic-bezier(0.45, 0, 0.25, 1) infinite; }
  .stat[data-step="neon"] .in::before { animation: tt-aurora 4.8s ease-in-out infinite; }
  .stat[data-step="neon"] .sparks i { animation: tt-spark 1.2s ease-out infinite; }
  .stat .sparks i:nth-child(2) { animation-delay: .24s; } .stat .sparks i:nth-child(3) { animation-delay: .48s; } .stat .sparks i:nth-child(4) { animation-delay: .72s; } .stat .sparks i:nth-child(5) { animation-delay: .96s; }
}
@keyframes tt-spin { to { --tt-angle: 360deg; } }
@keyframes tt-flow { from { background-position: 0% 50%; } to { background-position: 200% 50%; } }
@keyframes tt-ripple { 0% { transform: translateX(-100%); } 10%, 100% { transform: translateX(300%); } }
@keyframes tt-breathe { 0%, 100% { box-shadow: 0 0 18px rgba(31,81,255,.45), 0 0 48px rgba(217,70,239,.22); } 50% { box-shadow: 0 0 28px rgba(31,81,255,.7), 0 0 80px rgba(217,70,239,.38); } } /* taste-skill-ignore: the app's own streak card, reproduced from src/app/globals.css */
@keyframes tt-breathe-c { 0%, 100% { box-shadow: 0 0 12px color-mix(in srgb, var(--lv) 45%, transparent); } 50% { box-shadow: 0 0 26px color-mix(in srgb, var(--lv) 60%, transparent), 0 0 44px color-mix(in srgb, var(--lv) 25%, transparent); } } /* taste-skill-ignore: the app's own streak card, reproduced from src/app/globals.css */
@keyframes tt-spark { 0% { transform: translate(0, 0) scale(1); opacity: 0; } 15% { opacity: 1; } 100% { transform: translate(var(--dx), -26px) scale(.3); opacity: 0; } }
@keyframes tt-aurora { 0%, 100% { transform: translateX(-12%); } 50% { transform: translateX(12%); } }
@keyframes tt-flicker { 0%, 100% { transform: scale(1); filter: brightness(1); } 50% { transform: scale(1.06) translateY(-0.5px); filter: brightness(1.15); } }
/* the small pair on the Home screen in the window */
.frame .stat .in { padding: 12px 16px 12px; }
.frame .stat .num b { font-size: 30px; }
.frame .stat .num span { font-size: 15px; }

/* ---------- cards ---------- */
.cards { display: grid; gap: 20px; margin-top: 44px; }
.cards.three { grid-template-columns: repeat(3, 1fr); }
.cards.two { grid-template-columns: 1fr 1fr; }
.card { display: flex; flex-direction: column; border-radius: var(--radius); background: var(--paper); border: 1px solid var(--line); overflow: hidden; } /* taste-skill-ignore: the Granola/Wispr mold Ryan asked for sets its cards in 1px hairlines on cream */
.alt .card { background: var(--bg); }
.card .art { display: flex; align-items: center; justify-content: center; min-height: 220px; padding: 22px; background: var(--surface); }
.card .art.shot { padding: 0; background: var(--surface); align-items: center; }
.card .art.shot img { width: 100%; }
.card h3 { padding: 20px 22px 0; }
.card p { padding: 8px 22px 22px; color: var(--muted); font-size: 15px; line-height: 1.5; }

/* ---------- privacy, questions, the end ---------- */
.privacy .wrap { display: flex; flex-direction: column; align-items: center; }
.pcards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; width: 100%; margin-top: 44px; }
.pcard { padding: 26px 26px 24px; border-radius: var(--radius); background: var(--paper); border: 1px solid var(--line); } /* taste-skill-ignore: the Granola/Wispr mold Ryan asked for sets its cards in 1px hairlines on cream */
.pcard h3 { font-size: 19px; }
.pcard p { margin-top: 10px; color: var(--muted); font-size: 15px; line-height: 1.55; }
.pcard p + p { margin-top: 8px; }
.plinks { margin-top: 28px; color: var(--muted); }
.plinks a { color: var(--ink); }
@media (prefers-reduced-motion: no-preference) {
  /* each block's lines rise after the block, one after the other */
  .js .pcard > * { opacity: 0; transform: translateY(10px); transition: opacity 520ms var(--ease-out), transform 620ms var(--ease-out); }
  .js .pcard > h3 { transition-delay: calc(var(--i, 0) * 180ms + 220ms); }
  .js .pcard > p { transition-delay: calc(var(--i, 0) * 180ms + 360ms); }
  .js .pcard > p + p { transition-delay: calc(var(--i, 0) * 180ms + 500ms); }
  .js .pcard.is-in > * { opacity: 1; transform: none; }
}

.faq .qs { margin-top: 36px; border-top: 1px solid var(--line); } /* taste-skill-ignore: the Granola/Wispr mold Ryan asked for sets its cards in 1px hairlines on cream */
.faq details { border-bottom: 1px solid var(--line); } /* taste-skill-ignore: the Granola/Wispr mold Ryan asked for sets its cards in 1px hairlines on cream */
.faq summary { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 18px 0; font-size: 18px; font-weight: 500; cursor: pointer; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; flex: none; width: 12px; height: 12px; background: linear-gradient(var(--ink), var(--ink)) center / 12px 1.5px no-repeat, linear-gradient(var(--ink), var(--ink)) center / 1.5px 12px no-repeat; transition: transform var(--t-ui) var(--ease-out); } /* taste-skill-ignore: the Granola/Wispr mold Ryan asked for sets its cards in 1px hairlines on cream */
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding: 0 0 18px; color: var(--muted); line-height: 1.55; max-width: 64ch; }
.faq details p + p { margin-top: -6px; }
.faq details p a { color: var(--ink); }

.end .wrap { text-align: center; display: flex; flex-direction: column; align-items: center; }
.end p { margin-top: 20px; max-width: 46ch; color: var(--muted); font-size: var(--step-lead); }
.totop { margin-top: 48px; font-size: var(--step-small); color: var(--muted); text-decoration: none; }
.totop:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 0.18em; }

/* ---------- footer ---------- */
.foot { background: var(--paper); border-top: 1px solid var(--line); padding: 56px 0 32px; font-size: 15px; } /* taste-skill-ignore: the Granola/Wispr mold Ryan asked for sets its cards in 1px hairlines on cream */
.foot .cols { display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: 32px; }
.foot .about p { margin-top: 14px; color: var(--muted); max-width: 36ch; line-height: 1.5; }
.foot h4 { font-size: 12px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin-bottom: 12px; }
.foot .cols a:not(.wordmark) { display: block; color: var(--ink); text-decoration: none; padding: 4px 0; }
.foot .cols a:not(.wordmark):hover { text-decoration: underline; text-underline-offset: 0.18em; }
.foot .legal { margin-top: 40px; padding-top: 20px; border-top: 1px solid var(--line); color: var(--muted); font-size: 13px; } /* taste-skill-ignore: the Granola/Wispr mold Ryan asked for sets its cards in 1px hairlines on cream */
.foot .legal a { color: var(--muted); }

/* ---------- interface fragments (data-ui): the app's own look, at the app's own size ---------- */
[data-ui] { font-family: var(--font-text); color: var(--ink); -webkit-font-smoothing: antialiased; }
[data-ui] .dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--c, var(--muted)); flex: none; }
[data-ui] .row { display: flex; align-items: center; gap: 10px; padding: 8px 0; border-top: 1px solid var(--stage-line); font-size: 13px; } /* taste-skill-ignore: the Granola/Wispr mold Ryan asked for sets its cards in 1px hairlines on cream */
[data-ui] .grp + .row, [data-ui] .colhead + .row { border-top: 0; }
[data-ui] .row .t { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
[data-ui] .row .c { color: var(--muted); font-size: 11px; white-space: nowrap; }
[data-ui] .row .w { margin-left: auto; font-size: 12px; font-weight: 500; white-space: nowrap; color: var(--ink); }
[data-ui] .row .w.due { color: var(--due); }
[data-ui] .row .w.soon { color: var(--soon); text-decoration: underline dotted; text-underline-offset: 3px; }
[data-ui] .row .ring { width: 14px; height: 14px; border-radius: 50%; border: 1.5px solid var(--muted); flex: none; }
[data-ui] .grp { font-size: 10px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); padding: 10px 0 2px; }
[data-ui] .grp.due { color: var(--due); } [data-ui] .grp.soon { color: var(--soon); }
[data-ui] .grp span { font-weight: 400; letter-spacing: 0; text-transform: none; font-size: 11px; margin-left: 6px; }
[data-ui] .tag { display: inline-block; font-size: 11px; font-weight: 600; letter-spacing: .02em; padding: 1px 7px; border-radius: 6px; border: 1px solid var(--stage-line); color: var(--muted); white-space: nowrap; } /* taste-skill-ignore: the Granola/Wispr mold Ryan asked for sets its cards in 1px hairlines on cream */
[data-ui] .tag.home { color: var(--ok); border-color: color-mix(in srgb, var(--ok) 55%, transparent); }
[data-ui] .tag.pts, [data-ui] .tag.hw { color: var(--soon); border-color: color-mix(in srgb, var(--soon) 55%, transparent); }
[data-ui] .tag.major { color: #c2410c; border-color: color-mix(in srgb, #c2410c 55%, transparent); } /* taste-skill-ignore: the app's grade-share tier color */
[data-ui] .tag.exam { color: #c0262d; border-color: color-mix(in srgb, #c0262d 55%, transparent); }
[data-ui] .tag.light { color: #2f6fd0; border-color: color-mix(in srgb, #2f6fd0 55%, transparent); }
@media (prefers-color-scheme: dark) { [data-ui] .tag.exam { color: #f87171; } [data-ui] .tag.light { color: #60a5fa; } }

/* a notification, an email, a text */
[data-ui] .notice { border-radius: 14px; padding: 10px 12px; font-size: 12px; background: var(--stage-active); border: 1px solid var(--stage-line); box-shadow: 0 8px 24px -10px rgba(0,0,0,.35); display: grid; grid-template-columns: 32px 1fr; gap: 4px 10px; align-items: center; } /* taste-skill-ignore: the Granola/Wispr mold Ryan asked for sets its cards in 1px hairlines on cream */
[data-ui] .notice img { width: 32px; height: 32px; border-radius: 8px; }
[data-ui] .notice b { display: block; font-weight: 600; font-size: 12px; }
[data-ui] .notice span { display: block; color: var(--muted); font-size: 11px; line-height: 1.35; }
[data-ui] .notice.sms { grid-template-columns: 1fr; background: #3a86f7; color: #fff; border: 0; border-radius: 16px 16px 4px 16px; }
[data-ui] .notice.sms span { color: rgba(255,255,255,.85); }
[data-ui] .notice.sms .k { color: rgba(255,255,255,.7); }
[data-ui] .notice[hidden] { display: none; }

/* the Get sheet and the Canvas screen, as evidence in the how-it-works cards */
.frag { width: 100%; max-width: 280px; background: var(--stage-panel); border: 1px solid var(--stage-line); border-radius: 14px; padding: 14px; font-size: 13px; display: flex; flex-direction: column; gap: 8px; } /* taste-skill-ignore: the Granola/Wispr mold Ryan asked for sets its cards in 1px hairlines on cream */
.frag .lbl { font-size: 12px; font-weight: 600; }
.frag .field { height: 36px; border-radius: 9px; background: var(--stage-soft); padding: 0 10px; display: flex; align-items: center; color: var(--muted); font-size: 12px; }
.frag .chk { display: flex; gap: 8px; align-items: flex-start; font-size: 11px; color: var(--muted); line-height: 1.35; }
.frag .chk i { width: 14px; height: 14px; border-radius: 4px; background: var(--ink); flex: none; margin-top: 1px; }
.frag .btn, .canvas .btn { height: 36px; border-radius: 9px; background: var(--ink); color: var(--paper); display: flex; align-items: center; justify-content: center; font-weight: 600; font-size: 12px; }
.canvas { width: 100%; max-width: 300px; background: var(--stage-panel); border: 1px solid var(--stage-line); border-radius: 14px; padding: 14px; display: grid; grid-template-columns: 1fr auto; gap: 10px 14px; align-items: center; font-size: 12px; } /* taste-skill-ignore: the Granola/Wispr mold Ryan asked for sets its cards in 1px hairlines on cream */
.canvas .url { grid-column: 1 / -1; font-size: 11px; color: var(--muted); background: var(--stage-soft); border-radius: 8px; padding: 6px 10px; }
.canvas b { display: block; font-size: 14px; }
.canvas span { color: var(--muted); font-size: 11px; line-height: 1.35; }
.canvas .btn { padding: 0 14px; background: #d64000; color: #fff; }
/* a small piece of the app */
.mini { width: 100%; max-width: 340px; background: var(--stage-panel); border: 1px solid var(--stage-line); border-radius: 14px; padding: 6px 14px 8px; font-size: 13px; } /* taste-skill-ignore: the Granola/Wispr mold Ryan asked for sets its cards in 1px hairlines on cream */
.mini .ask { display: flex; gap: 6px; margin-top: 10px; }
.mini .ask span { font-size: 11px; font-weight: 600; padding: 4px 10px; border-radius: 8px; border: 1px solid var(--stage-line); color: var(--muted); } /* taste-skill-ignore: the Granola/Wispr mold Ryan asked for sets its cards in 1px hairlines on cream */
.mini .ask span:first-child { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.mini.ev { padding: 12px 14px; }
.mini .lane + .lane { margin-top: 10px; }
.mini .lh { font-size: 10px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.mini .lh span { font-weight: 400; letter-spacing: 0; }
.mini .e { padding: 6px 0 0; }
.mini .e b { display: block; font-weight: 600; font-size: 13px; line-height: 1.3; }
.mini .e span { display: block; font-size: 11px; color: var(--muted); margin: 2px 0 4px; }
.mini .e .tag { display: inline-block; margin-top: 2px; }
.mini .ch { padding-top: 8px; }
.mini .ch b { display: block; font-size: 16px; font-weight: 700; letter-spacing: -0.01em; }
.mini .ch span { display: block; font-size: 11px; color: var(--muted); margin-top: 2px; }
.mini .dots { display: flex; gap: 5px; margin-top: 10px; }
.mini .dots i { width: 9px; height: 9px; border-radius: 50%; border: 1.5px solid color-mix(in srgb, var(--ink) 34%, transparent); } /* taste-skill-ignore: the dots still to turn in, outlined so they read on tan */
.mini .dots i.on { background: var(--c); border-color: var(--c); }
.mini .dots i.late { border-color: var(--due); }
.mini .dotline { font-size: 11px; margin-top: 8px; } .mini .dotline b { font-weight: 600; } .mini .dotline .late { color: var(--due); font-weight: 600; }
.mini .syl { margin-top: 10px; font-size: 11px; }
.mini .syl .r { display: grid; grid-template-columns: 64px auto 1fr; gap: 8px; align-items: center; padding: 6px 0; border-top: 1px solid var(--stage-line); } /* taste-skill-ignore: the Granola/Wispr mold Ryan asked for sets its cards in 1px hairlines on cream */
.mini .syl .r > span:first-child { color: var(--muted); }
.mini .syl .r > span:last-child { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* ---------- the Get sheet (a real overlay) ---------- */
dialog.sheet { width: min(460px, calc(100vw - 32px)); max-height: calc(100vh - 32px); overflow: auto; margin: auto; padding: 30px; border: 0; border-radius: var(--radius); background: var(--paper); color: var(--ink); box-shadow: 0 24px 60px -20px rgba(0,0,0,.45); /* taste-skill-ignore: a dialog floats */ overscroll-behavior: contain; }
dialog.sheet::backdrop { background: rgba(0, 0, 0, .45); }
dialog.sheet h2 { font-family: var(--font-text); font-weight: 700; font-size: 24px; letter-spacing: -0.02em; line-height: 1.15; margin: 0 0 6px; text-align: left; } /* the site's sans, like the nav: the display serif read wrong on the sheet (Ryan) */
dialog.sheet .x { position: absolute; top: 12px; right: 12px; width: 36px; height: 36px; border-radius: 10px; color: var(--muted); font-size: 24px; line-height: 1; }
dialog.sheet .x:hover { background: var(--surface); color: var(--ink); }
form.get { display: flex; flex-direction: column; gap: 10px; }
form.get .rows { display: contents; } /* the email's label and box keep the form's gap; hidden on a phone */
form.get .rows[hidden] { display: none; }
form.get label { font-size: 14px; font-weight: 600; }
form.get input[type=email], form.get input[type=tel] { width: 100%; min-height: 48px; padding: 12px 14px; font-size: 16px; color: var(--ink); background: var(--surface); border: 0; border-radius: 12px; outline: none; }
form.get input:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
form.get label.agree, form.get label.opt { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; font-weight: 400; color: var(--muted); line-height: 1.45; }
form.get label.agree input, form.get label.opt input { margin: 3px 0 0; width: 16px; height: 16px; flex: none; accent-color: var(--accent); }
form.get label.agree a { color: var(--ink); }
.textopt { display: flex; flex-direction: column; gap: 8px; margin-top: 4px; }
form.get input[type=tel]:disabled { opacity: .45; cursor: not-allowed; }
.fine { font-size: 13px; line-height: 1.45; color: var(--muted); margin: 0; }
.fine a { color: var(--muted); }
.hint { font-size: 13px; color: var(--muted); margin: 2px 0 0; }
dialog .notice { display: none; padding: 12px 14px; border-radius: 12px; font-size: 14px; margin-top: 14px; }
dialog .notice.warn { background: var(--surface); color: var(--ink); }
dialog .notice.show { display: block; }
ol.progress { list-style: none; margin: 20px 0 6px; padding: 0; }
ol.progress li { position: relative; padding: 0 0 20px 36px; font-size: 14px; color: var(--muted); }
ol.progress li b { display: block; font-size: 16px; font-weight: 600; color: var(--muted); }
ol.progress li.now b, ol.progress li.done b { color: var(--ink); }
ol.progress li > span { display: block; margin-top: 2px; }
ol.progress li > span .button { margin-top: 8px; min-height: 40px; }
ol.progress li::before { content: ""; position: absolute; left: 0; top: 1px; width: 22px; height: 22px; border-radius: 50%; background: var(--surface); }
ol.progress li.now::before { background: var(--ink); }
ol.progress li.done::before { background: var(--ok); -webkit-mask: var(--check) center / 14px no-repeat; mask: var(--check) center / 14px no-repeat; }
:root { --check: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M4.5 12.5 9.5 17.5 19.5 7' fill='none' stroke='black' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); }
@media (prefers-reduced-motion: no-preference) { ol.progress li.now::before { animation: tt-pulse-dot 1.4s ease-in-out infinite alternate; } }
@keyframes tt-pulse-dot { from { transform: scale(0.85); } to { transform: scale(1); } }

/* ---------- motion (content stays visible without JavaScript) ---------- */
@media (prefers-reduced-motion: no-preference) {
  .js [data-rise] { opacity: 0; transform: translateY(16px); animation: tt-rise var(--t-reveal) var(--ease-out) forwards; animation-delay: calc(var(--i, 0) * 110ms + 80ms); }
  .js [data-reveal] { opacity: 0; transform: translateY(20px); transition: opacity 700ms var(--ease-out), transform 800ms var(--ease-out); transition-delay: calc(var(--i, 0) * 90ms); }
  .js [data-reveal].is-in { opacity: 1; transform: none; }
  /* the Set up cards flip open one after the other, each with its piece of interface rising inside */
  .js .how .card[data-reveal] { transform: perspective(1400px) rotateX(-18deg) translateY(40px); transform-origin: 50% 0; transition-duration: 800ms, 900ms; transition-delay: calc(var(--i, 0) * 260ms); }
  .js .how .card[data-reveal].is-in { transform: none; }
  .js .how .card .art > * { opacity: 0; transform: translateY(14px); transition: opacity 520ms var(--ease-out) calc(var(--i, 0) * 260ms + 380ms), transform 620ms var(--ease-out) calc(var(--i, 0) * 260ms + 380ms); }
  .js .how .card.is-in .art > * { opacity: 1; transform: none; }
}
@keyframes tt-rise { to { opacity: 1; transform: none; } }

/* ---------- narrower screens ---------- */
@media (max-width: 1000px) {
  .cards.three { grid-template-columns: 1fr; max-width: 560px; margin-left: auto; margin-right: auto; }
  .pcards { grid-template-columns: 1fr; max-width: 560px; margin-left: auto; margin-right: auto; }
  .demo { grid-template-columns: 1fr 1fr; }
  .frame { grid-template-columns: 1fr; height: auto; min-height: 0; }
  .frame .side { display: none; }
  .frame .chips { display: flex; }
  .frame .two { grid-template-columns: 1fr; }
  .frame .lanes { grid-template-columns: 1fr; gap: 16px; }
  .rungs { grid-template-columns: repeat(4, 1fr); gap: 10px 6px; }
  .rungs::before { display: none; }
  .climb { grid-template-columns: 1fr; max-width: 520px; margin: 0 auto; }
  .remind .pin .wrap { grid-template-columns: 1fr; gap: 28px; justify-items: center; }
  .remind .say { padding-top: 0; text-align: center; }
  .remind .say h2 { text-align: center; max-width: 20ch; }
  .remind .say .sub { margin: 16px auto 0; text-align: center; }
}
@media (max-width: 720px) {
  :root { --section: 96px; --chrome: 124px; }
  .wrap { padding: 0 20px; }
  .nav .wrap { grid-template-columns: 1fr auto; height: 64px; }
  .nav .links, .nav .acts .plain { display: none; }
  .strip { font-size: 13px; }
  .strip a { display: block; margin: 2px 0 0; }
  .hero h1 { max-width: none; }
  .sub { margin-top: 16px; }
  /* the demo on a phone: the sentence and the row, nothing else */
  .demo { padding: 18px 16px; gap: 14px; }
  .demo .picks, .demo .dochead, .demo .ln { display: none; }
  .demo .src { height: auto; min-height: 120px; padding: 6px 14px; }
  .demo .res { height: auto; }
  .demo .sent { font-size: 17px; line-height: 1.7; margin: 6px 0; }
  .demo .row .c, .dueBox .row .c { display: none; }
  /* the window on a phone: Home is the due list, Classes is the header and At a glance */
  .frame .stats, .frame .cbox, .frame .dotline { display: none; }
  .frame .chips { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin: 0 -14px 14px; padding: 0 14px; }
  .frame .chips::-webkit-scrollbar { display: none; }
  .frame .chip { white-space: nowrap; }
  .streak .pin, .remind .pin { padding: 64px 0 16px; }
  .remind .sub { display: none; }
  .chat { min-height: 0; }
  .chat .msg p { max-width: 92%; font-size: 15px; }
  /* the streak on a phone: one card */
  .ladder .what, .rungs, #stkB { display: none; }
  .ladder { margin-top: 28px; }
  .climb { grid-template-columns: 1fr; max-width: 400px; margin: 0 auto; }
  .frame { font-size: 12.5px; }
  .frame .screen { padding: 16px 14px; }
  .frame .shead { flex-wrap: wrap; gap: 8px 12px; }
  .frame .shead .meta { display: none; }
  .frame .row .c { display: none; }
  .frame .glance dl { grid-template-columns: 1fr; }
  .frame .chead .oc { display: none; }
  .frame .cc { display: none; }
  .tabs button { padding: 0 14px; font-size: 14px; }
  .panes { min-height: 0; }
  .foot .cols { grid-template-columns: 1fr; gap: 24px; }
  .mini .row .c { display: none; }
}

/* ---------- a phone gets the first screen only ----------
   The news strip, the nav (wordmark and Get), the headline, the line under it, the button and the strip of places,
   then the legal line. Everything else is for a laptop: a phone can't run the app, and Ryan wants the small screen
   to say one thing. A phone is a narrow screen, or a touch screen with no hover up to tablet width (so a phone held
   sideways still gets the short page; an iPad gets the full one). */
@media (max-width: 720px), ((hover: none) and (pointer: coarse) and (max-width: 1000px)) {
  main > section:not(.hero) { display: none; }
  main > section.hero { min-height: calc(100vh - var(--chrome)); min-height: calc(100svh - var(--chrome)); }
  .marquee .cap { display: block; }
  .foot { padding: 20px 0 28px; }
  .foot .cols { display: none; }
  .foot .legal { margin-top: 0; padding-top: 0; border-top: 0; text-align: center; }
}
