/* Torero Town website — shared by index.html and download.html. */
:root {
  --bg: #fbfaf8; --surface: #ffffff; --ink: #1d1d1f; --ink-2: #55595f; --ink-3: #8a8f98;
  --line: #ebe8e3; --accent: #1d1d1f; --accent-ink: #ffffff; --soft: #f3f1ed;
  --ok: #1f7a4d; --warn-bg: #fff4e5; --warn-ink: #8a4b00; --err-bg: #fdecec; --err-ink: #a12622;
  --tag-due: #c2410c; --tag-soon: #a16207; --tag-ok: #15803d;
  --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");
  --plus: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 4v16M4 12h16' stroke='black' stroke-width='2.2' stroke-linecap='round'/%3E%3C/svg%3E");
  --radius: 14px; --shadow: 0 1px 2px rgba(0,0,0,.04), 0 8px 30px rgba(0,0,0,.06);
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #111112; --surface: #1a1a1c; --ink: #f2f2f3; --ink-2: #b4b6bb; --ink-3: #8a8d93;
    --line: #2a2a2d; --accent: #f2f2f3; --accent-ink: #111112; --soft: #202023;
    --ok: #4ade80; --warn-bg: #2a2111; --warn-ink: #f5c26b; --err-bg: #2b1515; --err-ink: #f19a96;
    --tag-due: #fb923c; --tag-soon: #facc15; --tag-ok: #4ade80;
    --shadow: 0 1px 2px rgba(0,0,0,.3), 0 8px 30px rgba(0,0,0,.35);
  }
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 16px/1.6 -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif; -webkit-font-smoothing: antialiased; }
a { color: inherit; }
.wrap { max-width: 1040px; margin: 0 auto; padding: 0 24px; }
.narrow { max-width: 640px; }
.mute { color: var(--ink-2); } .faint { color: var(--ink-3); } .small { font-size: 14px; }
h1, h2, h3 { letter-spacing: -0.02em; line-height: 1.15; margin: 0; }
.serif { font-family: "Instrument Serif", Georgia, "Times New Roman", serif; font-weight: 400; letter-spacing: -0.01em; }

/* nav */
nav.top { position: sticky; top: 0; z-index: 10; background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid transparent; }
nav.top.scrolled { border-bottom-color: var(--line); }
nav.top .wrap { display: flex; align-items: center; gap: 24px; height: 72px; }
.brand { font-weight: 700; font-size: 21px; letter-spacing: -0.02em; text-decoration: none; display: flex; align-items: center; gap: 9px; }
.logo { display: inline-flex; flex: none; }
.logo img { display: block; }
nav.top .links { display: flex; gap: 22px; margin-left: auto; font-size: 15px; }
nav.top .links a { text-decoration: none; color: var(--ink-2); }
nav.top .links a:hover { color: var(--ink); }
@media (max-width: 720px) { nav.top .links { display: none; } nav.top .btn { margin-left: auto; } }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 12px 20px; border-radius: 11px; border: 1px solid transparent; background: var(--accent); color: var(--accent-ink); font: 600 15px/1.2 inherit; font-family: inherit; text-decoration: none; cursor: pointer; transition: transform .08s ease, opacity .15s ease; }
.btn:hover { opacity: .88; } .btn:active { transform: translateY(1px); }
.btn.lg { padding: 15px 26px; font-size: 16px; border-radius: 12px; }
.btn.ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn.ghost:hover { border-color: var(--ink-3); opacity: 1; }
.btn.sm { padding: 8px 14px; font-size: 14px; border-radius: 9px; }
.btn[disabled] { opacity: .5; cursor: default; }

/* app line icons — same paths as src/components/Icons.tsx */
.shot aside svg, .feature .ic svg { fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

/* hero */
.hero { padding: 88px 0 40px; text-align: center; }
.eyebrow { display: inline-block; font-size: 13px; font-weight: 600; color: var(--ink-2); background: var(--soft); border: 1px solid var(--line); padding: 5px 12px; border-radius: 999px; }
.hero h1 { font-size: clamp(42px, 7vw, 76px); margin: 22px auto 0; max-width: 900px; }
.hero p.lede { font-size: clamp(17px, 2vw, 20px); color: var(--ink-2); max-width: 620px; margin: 22px auto 0; }
.hero .cta { margin-top: 34px; display: flex; flex-direction: column; align-items: center; gap: 12px; }
.hero p.lede strong { color: var(--ink); font-weight: 600; }

/* product mock */
.shot { margin: 56px auto 0; max-width: 880px; background: var(--surface); border: 1px solid var(--line); border-radius: 18px; box-shadow: var(--shadow); overflow: hidden; text-align: left; }
.shot .bar { display: flex; gap: 7px; padding: 14px 16px; border-bottom: 1px solid var(--line); }
.shot .bar i { width: 11px; height: 11px; border-radius: 50%; background: var(--line); }
.shot .body { display: grid; grid-template-columns: 190px 1fr; min-height: 330px; }
.shot aside { border-right: 1px solid var(--line); padding: 18px 12px; font-size: 14px; }
.shot aside div { display: flex; align-items: center; gap: 9px; padding: 7px 10px; border-radius: 8px; color: var(--ink-2); }
.shot aside svg { width: 16px; height: 16px; flex: none; }
.shot aside div.on { background: var(--soft); color: var(--ink); font-weight: 600; }
.shot aside div.app-brand { gap: 8px; padding: 0 10px 14px; color: var(--ink); font-size: 15px; font-weight: 700; letter-spacing: -0.01em; }
.shot aside .gear { margin-top: 114px; }
.shot main { padding: 22px 26px; }
.shot h4 { margin: 0 0 4px; font-size: 20px; letter-spacing: -0.01em; }
.shot .group { margin-top: 18px; font-size: 12px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-3); }
.item { display: flex; align-items: center; gap: 12px; padding: 11px 0; border-bottom: 1px solid var(--line); font-size: 15px; }
.item .dot { width: 8px; height: 8px; border-radius: 50%; flex: none; }
.item .when { margin-left: auto; font-size: 13px; color: var(--ink-3); white-space: nowrap; }
.item .src { font-size: 12px; color: var(--ink-3); border: 1px solid var(--line); border-radius: 6px; padding: 1px 6px; }
@media (max-width: 720px) { .shot .body { grid-template-columns: 1fr; } .shot aside { display: none; } .item .src { display: none; } }

/* sections */
section { padding: 88px 0; }
section.alt { background: var(--soft); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-head { max-width: 640px; }
.section-head h2 { font-size: clamp(32px, 4.5vw, 46px); }
.section-head p { font-size: 18px; color: var(--ink-2); margin: 14px 0 0; }
.kicker { font-size: 13px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 12px; }

.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 44px; }
.feature { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.feature .ic { width: 40px; height: 40px; border-radius: 11px; background: var(--soft); border: 1px solid var(--line); display: grid; place-items: center; color: var(--ink); }
.feature .ic svg { width: 20px; height: 20px; }
.feature h3 { font-size: 19px; margin-top: 18px; }
.feature p { margin: 8px 0 0; color: var(--ink-2); font-size: 15px; }
@media (max-width: 820px) { .features { grid-template-columns: 1fr; } }

.steps { display: grid; grid-template-columns: repeat(3, 1fr); margin: 44px 0 0; padding: 0; list-style: none; background: var(--surface); border: 1px solid var(--line); border-radius: 18px; box-shadow: var(--shadow); overflow: hidden; }
.steps li { padding: 28px; border-left: 1px solid var(--line); }
.steps li:first-child { border-left: 0; }
.steps .num { width: 30px; height: 30px; border-radius: 50%; background: var(--soft); border: 1px solid var(--line); display: grid; place-items: center; font-size: 14px; font-weight: 700; }
.steps h3 { font-size: 19px; margin-top: 16px; }
.steps p { margin: 8px 0 0; color: var(--ink-2); font-size: 15px; }
@media (max-width: 820px) { .steps { grid-template-columns: 1fr; } .steps li { border-left: 0; border-top: 1px solid var(--line); } .steps li:first-child { border-top: 0; } }

/* pricing */
.price-card { max-width: 480px; margin: 44px auto 0; background: var(--surface); border: 1px solid var(--line); border-radius: 20px; box-shadow: var(--shadow); padding: 34px; }
.price-card .amt { font-size: 56px; font-weight: 700; letter-spacing: -0.03em; line-height: 1; }
.price-card .per { font-size: 17px; color: var(--ink-2); font-weight: 500; letter-spacing: 0; }
.price-card ul { padding: 0; margin: 22px 0; list-style: none; }
.price-card li { padding: 7px 0 7px 28px; position: relative; color: var(--ink-2); font-size: 15px; }
.price-card li::before { content: "✓"; position: absolute; left: 2px; color: var(--ok); font-weight: 700; }
form.get { display: flex; flex-direction: column; gap: 10px; }
form.get label { font-size: 14px; font-weight: 600; }
input[type=email], input[type=tel] { width: 100%; padding: 13px 14px; font: inherit; font-size: 16px; color: var(--ink); background: var(--bg); border: 1px solid var(--line); border-radius: 11px; outline: none; }
input[type=email]:focus, input[type=tel]:focus { border-color: var(--ink-3); box-shadow: 0 0 0 4px color-mix(in srgb, var(--ink) 8%, transparent); }
.hint { font-size: 13px; color: var(--ink-3); margin: 2px 0 0; }
.notice { display: none; padding: 12px 14px; border-radius: 11px; font-size: 14px; margin-top: 14px; }
.notice.warn { background: var(--warn-bg); color: var(--warn-ink); }
.notice.err { background: var(--err-bg); color: var(--err-ink); }
.notice.show { display: block; }

/* why not just ask AI */
.why { display: grid; grid-template-columns: 1fr 1fr; gap: 24px 64px; align-items: start; }

.why-points { list-style: none; margin: 0; padding: 0; }
.why-points li { padding: 22px 0; border-top: 1px solid var(--line); }
.why-points li:first-child { border-top: 0; padding-top: 6px; }
.why-points h3 { font-size: 18px; }
.why-points p { margin: 6px 0 0; color: var(--ink-2); font-size: 15px; }
.why-foot { grid-column: 1 / -1; margin: 40px 0 0; padding-top: 24px; border-top: 1px solid var(--line); font-size: 14px; color: var(--ink-3); }
@media (max-width: 820px) { .why { grid-template-columns: 1fr; gap: 8px; } }

/* faq — Apple's pattern: centered heading, full-width rows, one answer open at a time */
.faq-head { max-width: 720px; margin: 0 auto; text-align: center; }
.faq { max-width: 820px; margin: 40px auto 0; border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; font-weight: 600; font-size: 17px; line-height: 1.4; list-style: none; display: flex; justify-content: space-between; align-items: flex-start; gap: 20px; padding: 20px 4px; }
.faq summary:hover { color: var(--ink-2); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; flex: none; width: 13px; height: 13px; margin-top: 5px; background: currentColor; transition: transform .2s ease; -webkit-mask: var(--plus) center / contain no-repeat; mask: var(--plus) center / contain no-repeat; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details > *:not(summary) { padding: 0 44px 22px 4px; margin: 0; }
.faq p { color: var(--ink-2); }
.faq p + p { padding-top: 12px; }
@media (max-width: 600px) { .faq summary { font-size: 16px; } .faq details > *:not(summary) { padding-right: 24px; } }

footer.site { padding: 40px 0 56px; border-top: 1px solid var(--line); font-size: 14px; color: var(--ink-3); }
footer.site .foot-brand { display: inline-flex; align-items: center; gap: 7px; }
footer.site .wrap { display: flex; flex-wrap: wrap; gap: 12px 24px; justify-content: space-between; }

/* download page */
.flow { padding: 64px 0 80px; }
.flow h1 { font-size: clamp(36px, 5vw, 52px); }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; box-shadow: var(--shadow); padding: 28px; margin-top: 28px; }
.stepcard { display: grid; grid-template-columns: 34px 1fr; gap: 14px; padding: 22px 0; border-bottom: 1px solid var(--line); }
.stepcard:last-child { border-bottom: 0; padding-bottom: 4px; }
.stepcard:first-child { padding-top: 4px; }
.num { width: 30px; height: 30px; border-radius: 50%; background: var(--soft); border: 1px solid var(--line); display: grid; place-items: center; font-size: 14px; font-weight: 700; }
.stepcard.done .num { background: var(--ok); border-color: var(--ok); color: #fff; }
.stepcard.done .num { font-size: 0; }
.stepcard.done .num::after { content: ""; display: block; width: 14px; height: 14px; background: #fff; -webkit-mask: var(--check) center / contain no-repeat; mask: var(--check) center / contain no-repeat; }
/* the step to do next, once the ones above it are ticked */
.stepcard.now .num { border-color: var(--ink); color: var(--ink); }
.stepcard.now h3 { color: var(--ink); }
.stepcard h3 { font-size: 18px; margin-top: 3px; }
.stepcard p { margin: 6px 0 0; color: var(--ink-2); font-size: 15px; }
.stepcard .actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: 14px; }
.spinner { width: 18px; height: 18px; border: 2px solid var(--line); border-top-color: var(--ink); border-radius: 50%; animation: spin .8s linear infinite; display: inline-block; vertical-align: -4px; margin-right: 8px; }
@keyframes spin { to { transform: rotate(360deg); } }
kbd { font: 600 12px/1 ui-monospace, SFMono-Regular, Menlo, monospace; background: var(--soft); border: 1px solid var(--line); border-bottom-width: 2px; border-radius: 5px; padding: 2px 5px; }
[hidden] { display: none !important; }

/* privacy summary on the home page (#privacy, linked from the app) */
.privacy-points { list-style: none; margin: 32px 0 0; padding: 0; max-width: 720px; }
.privacy-points li { padding: 12px 0 12px 28px; position: relative; color: var(--ink-2); border-top: 1px solid var(--line); }
.privacy-points li:first-child { border-top: 0; }
.privacy-points li::before { content: "✓"; position: absolute; left: 2px; color: var(--ok); font-weight: 700; }
.privacy-links { margin: 24px 0 0; font-size: 15px; color: var(--ink-3); }
.privacy-links a { color: var(--ink); font-weight: 600; }

/* subscribe form: terms agreement */
form.get label.agree, form.get label.opt { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; font-weight: 400; color: var(--ink-2); 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; }
.textopt[hidden] { display: none; }
input[type=tel]:disabled { opacity: .45; cursor: not-allowed; }
.fine { font-size: 12px; line-height: 1.45; color: var(--ink-3); margin: 0; }

footer.site .foot-links a { color: inherit; }

/* legal pages (privacy.html, terms.html) */
nav.top .links a[aria-current] { color: var(--ink); font-weight: 600; }
.legal { padding: 56px 0 88px; }
.legal h1 { font-size: clamp(36px, 5vw, 52px); margin-top: 6px; }
.legal .meta { font-size: 14px; color: var(--ink-3); margin: 10px 0 28px; }
.legal h2 { font-size: 22px; margin: 44px 0 10px; scroll-margin-top: 90px; }
.legal p, .legal li { color: var(--ink-2); }
.legal p { margin: 0 0 14px; }
.legal ul { padding-left: 22px; margin: 0 0 14px; }
.legal li { margin: 6px 0; }
.legal strong { color: var(--ink); }
.legal code { font: 13px/1.4 ui-monospace, SFMono-Regular, Menlo, monospace; background: var(--soft); border: 1px solid var(--line); border-radius: 6px; padding: 1px 5px; overflow-wrap: anywhere; }
.legal .summary, .legal .callout { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 24px 10px; margin: 28px 0; }
.legal .summary h2, .legal .callout h2 { margin-top: 0; font-size: 20px; }
.legal .callout { border-color: var(--ink-3); }
.legal table.data { width: 100%; border-collapse: collapse; margin: 8px 0 14px; font-size: 15px; }
.legal table.data th, .legal table.data td { text-align: left; vertical-align: top; padding: 12px 10px; border-top: 1px solid var(--line); }
.legal table.data th { font-size: 13px; text-transform: uppercase; letter-spacing: .05em; color: var(--ink-3); border-top: 0; }
.legal table.data td:first-child { font-weight: 600; color: var(--ink); width: 32%; }
.legal details.scopes { border: 1px solid var(--line); border-radius: 12px; padding: 12px 16px; margin: 10px 0 14px; }
.legal details.scopes summary { cursor: pointer; font-weight: 600; color: var(--ink); }
.legal details.scopes ul { margin-top: 12px; }
@media (max-width: 600px) {
  .legal table.data, .legal table.data tbody, .legal table.data tr, .legal table.data td { display: block; width: 100%; }
  .legal table.data thead { display: none; }
  .legal table.data td:first-child { width: 100%; padding-bottom: 0; border-top: 1px solid var(--line); }
  .legal table.data td + td { border-top: 0; padding-top: 4px; }
}

/* "Get Torero Town" sheet (free): email + terms, then the download and the Canvas sign-in run side by side */
.btn.wide { width: 100%; }
dialog.sheet { width: min(460px, calc(100vw - 32px)); max-height: calc(100vh - 32px); overflow: auto; margin: auto; padding: 30px; border: 1px solid var(--line); border-radius: 20px; background: var(--surface); color: var(--ink); box-shadow: var(--shadow); }
dialog.sheet::backdrop { background: rgba(0, 0, 0, .4); }
dialog.sheet h2 { font-size: 26px; letter-spacing: -0.02em; line-height: 1.2; margin: 0 0 6px; }
dialog.sheet .x { position: absolute; top: 12px; right: 12px; width: 34px; height: 34px; border: 0; border-radius: 9px; background: transparent; color: var(--ink-3); font: 400 24px/1 inherit; cursor: pointer; }
dialog.sheet .x:hover { background: var(--soft); color: var(--ink); }
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(--ink-2); }
ol.progress li b { display: block; font-size: 16px; font-weight: 600; color: var(--ink-3); }
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[hidden] { display: none; }
ol.progress li > span .btn { margin-top: 8px; }
ol.progress li::before { content: ""; position: absolute; left: 0; top: 1px; width: 22px; height: 22px; border-radius: 50%; border: 2px solid var(--line); box-sizing: border-box; }
ol.progress li.now::before { border-color: var(--ink); border-right-color: transparent; animation: tt-spin 0.9s linear infinite; }
ol.progress li.done::before { content: "✓"; display: grid; place-items: center; border-color: var(--ok); background: var(--ok); color: var(--surface); font-size: 12px; font-weight: 800; }
@keyframes tt-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { ol.progress li.now::before { animation: none; border-right-color: var(--ink); } }
