/*
  Drop Pod Studios site styles. Shared by every page, including the list viewer in /l/.
  No external fonts, images or scripts. Light and dark follow the system setting.
  Design notes (taste-skill house rules): one family, five sizes, one accent, flat colour,
  surfaces separated by tone steps (no hairlines, gradients or resting shadows).
*/

/* ---------- Tokens ---------- */
:root {
  color-scheme: light dark;

  --ground: #F5F5F2;          /* page */
  --field: #E9E9E4;           /* one tone step: bands, boxes */
  --field-2: #DEDED8;         /* second step: code, progress track, hover */
  --ink: #141517;
  --ink-soft: #45484D;        /* secondary notes only (8.4:1 on ground) */
  --accent: #B83D0C;          /* heat-shield orange: actions and links (5.6:1 on ground) */
  --accent-hover: #963009;
  --on-accent: #FFFFFF;
  --invert-ground: #141517;   /* the dark band */
  --invert-ink: #F5F5F2;
  --invert-soft: #B5B8BD;
  --note: #FBE3D3;            /* "AI-drafted" notice */

  /* Item states (Yeetlist's own colours, same in light and dark) */
  --st-done: #34C759;
  --st-na: #FF3B30;
  --st-unsure: #8E8E93;
  --st-open: #C7C7CC;

  /* Messages mock-up (an interface fragment, data-ui) */
  --bubble-in: #E3E3E6;
  --bubble-in-text: #000000;
  --bubble-card: #FFFFFF;
  --bubble-cap: #F1F1F4;
  --bubble-line: #E0E0E4;

  --font: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    "Helvetica Neue", Arial, sans-serif;

  /* Five sizes */
  --t-display: clamp(2.5rem, 1.2rem + 5.6vw, 5.75rem);
  --t-head: clamp(1.75rem, 1.25rem + 2.1vw, 2.75rem);
  --t-statement: clamp(1.2rem, 1.05rem + 0.6vw, 1.5rem);
  --t-body: 1.125rem;
  --t-small: 0.9375rem;

  --wrap: 1200px;
  --gutter: 20px;
  --section: clamp(72px, 5rem + 6vw, 168px);
  --radius: 20px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --ground: #0F1012;
    --field: #1A1B1E;
    --field-2: #26282C;
    --ink: #F2F2EE;
    --ink-soft: #ABAEB4;
    --accent: #FF7A45;
    --accent-hover: #FF9A70;
    --on-accent: #141517;
    --invert-ground: #F2F2EE;
    --invert-ink: #141517;
    --invert-soft: #45484D;
    --note: #3A2116;

    --bubble-in: #2A2A2E;
    --bubble-in-text: #FFFFFF;
    --bubble-card: #1E1E22;
    --bubble-cap: #29292E;
    --bubble-line: #34343A;
  }
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--ground);
  color: var(--ink);
  font-family: var(--font);
  font-size: var(--t-body);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
[hidden] { display: none !important; }
img, svg { display: block; max-width: 100%; }
a { color: var(--accent); text-underline-offset: 0.18em; text-decoration-thickness: 1.5px; }
a:hover { color: var(--accent-hover); }
h1, h2, h3 { margin: 0 0 0.5em; line-height: 1.08; letter-spacing: -0.025em; text-wrap: balance; }
h1 { font-size: var(--t-display); letter-spacing: -0.04em; line-height: 0.98; }
h2 { font-size: var(--t-head); }
h3 { font-size: var(--t-body); letter-spacing: -0.01em; line-height: 1.3; }
p { margin: 0 0 1em; }
p, li, dd { max-width: 70ch; }
strong { font-weight: 650; }
::selection { background: var(--accent); color: var(--on-accent); }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 6px; }

.sr-only {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: var(--gutter); top: -100px; z-index: 10;
  padding: 10px 16px; border-radius: 999px;
  background: var(--accent); color: var(--on-accent); font-weight: 600; text-decoration: none;
}
.skip-link:focus { top: 12px; color: var(--on-accent); }
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
@media (min-width: 720px) { :root { --gutter: 32px; } }
.svg-sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

/* ---------- Header ---------- */
.site-header { background: var(--ground); }
.header-inner {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  min-height: 72px;
}
.brand {
  display: inline-flex; align-items: center; gap: 10px;
  color: var(--ink); font-weight: 700; font-size: var(--t-body); letter-spacing: -0.015em;
  text-decoration: none; white-space: nowrap;
}
.brand:hover { color: var(--ink); }
.brand svg { width: 30px; height: 30px; flex: none; }
.site-nav ul { display: flex; gap: 2px; margin: 0; padding: 0; list-style: none; }
.site-nav a {
  display: inline-block; padding: 8px 12px; border-radius: 999px;
  color: var(--ink); font-size: var(--t-small); font-weight: 500; text-decoration: none;
}
.site-nav a:hover { background: var(--field); color: var(--ink); }
.site-nav a[aria-current="page"] { background: var(--field); font-weight: 650; }
@media (max-width: 479px) {
  .header-inner { flex-wrap: wrap; gap: 4px 12px; padding-top: 12px; padding-bottom: 10px; min-height: 0; }
  .site-nav { width: 100%; margin-left: -12px; }
}

/* ---------- Buttons ---------- */
.button {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 12px 24px; border: 0; border-radius: 999px;
  background: var(--accent); color: var(--on-accent);
  font: inherit; font-size: var(--t-small); font-weight: 650; line-height: 1.2;
  text-align: center; text-decoration: none; cursor: pointer;
}
.button:hover { background: var(--accent-hover); color: var(--on-accent); }
.button:active { transform: translateY(1px); }
.button-secondary { background: var(--field-2); color: var(--ink); }
.button-secondary:hover { background: var(--field); color: var(--ink); }
.button-lg { min-height: 52px; padding: 14px 28px; }
.button svg { width: 18px; height: 18px; flex: none; }
.store-badge { display: inline-block; border-radius: 10px; }
.store-badge img { height: 54px; width: auto; }
.store-badge:hover { opacity: 0.85; }

/* ---------- Home: studio hero ---------- */
.studio-hero { padding: clamp(48px, 2rem + 6vw, 128px) 0 clamp(56px, 3rem + 5vw, 120px); }
.studio-hero h1 { max-width: 11.5em; margin-bottom: 0.35em; }
.statement { font-size: var(--t-statement); line-height: 1.4; max-width: 34em; margin-bottom: 1.6em; }
.facts {
  display: grid; gap: 6px; margin: clamp(40px, 2rem + 3vw, 72px) 0 0; padding: 0;
  grid-template-columns: 1fr; max-width: 30rem;
}
.facts div { padding: 12px 18px; border-radius: 14px; background: var(--field); }
.facts dt { font-size: var(--t-small); color: var(--ink-soft); margin-bottom: 2px; }
.facts dd { margin: 0; font-weight: 600; overflow-wrap: anywhere; }
@media (min-width: 900px) {
  .facts { grid-template-columns: 1fr 1fr 1fr 1.3fr; max-width: none; }
  .facts div { padding: 16px 20px; }
}

/* ---------- Home: Yeetlist band ---------- */
.app-band { background: var(--field); padding: var(--section) 0; }
.app-grid { display: grid; gap: 48px; align-items: center; }
@media (min-width: 900px) { .app-grid { grid-template-columns: 1.05fr 0.95fr; gap: 72px; } }
.app-id { display: flex; align-items: center; gap: 18px; margin-bottom: 28px; }
.app-icon { width: 88px; height: 88px; border-radius: 20px; flex: none; }
.app-id p { margin: 0; color: var(--ink-soft); font-size: var(--t-small); }
.app-id strong { display: block; color: var(--ink); font-size: var(--t-statement); letter-spacing: -0.015em; }
.app-band h2 { max-width: 13em; }
.app-band .statement { margin-bottom: 1.4em; }
.cta-row { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 20px; margin-top: 8px; }
.cta-note { margin: 0; color: var(--ink-soft); font-size: var(--t-small); }

.feature-list {
  display: grid; gap: 28px 48px; margin: clamp(56px, 3rem + 3vw, 96px) 0 0; padding: 0; list-style: none;
}
@media (min-width: 720px) { .feature-list { grid-template-columns: repeat(2, 1fr); } }
.feature-list h3 { margin-bottom: 0.3em; }
.feature-list p { margin: 0; }

/* ---------- Messages mock-up (interface fragment) ---------- */
.chat-mock {
  display: flex; flex-direction: column; gap: 8px;
  max-width: 400px; width: 100%; margin: 0 auto;
  padding: 24px 18px; border-radius: 32px;
  background: var(--ground);
  font-size: 0.97rem; line-height: 1.35;
}
.msg { max-width: 78%; padding: 8px 14px; border-radius: 20px; }
.msg-in { align-self: flex-start; background: var(--bubble-in); color: var(--bubble-in-text); border-bottom-left-radius: 6px; }
.ld-bubble {
  align-self: flex-end; width: 84%; overflow: hidden;
  border: 1px solid var(--bubble-line); border-radius: 20px; /* data-ui: Messages bubble outline; taste-skill-ignore */
  background: var(--bubble-card); color: var(--ink);
}
.ld-bubble-body { padding: 14px 16px 10px; }
.ld-title { margin: 0 0 8px; font-weight: 700; font-size: 1.05rem; }
.ld-count { margin: 6px 0 8px; color: var(--ink-soft); font-size: 0.85rem; }
.ld-items { margin: 0; padding: 0; list-style: none; }
.ld-items li { display: flex; align-items: center; gap: 10px; padding: 5px 0; }
.ld-items .status-icon { width: 20px; height: 20px; }
.ld-more { margin: 4px 0 0 30px; color: var(--ink-soft); font-size: 0.85rem; }
.ld-caption {
  padding: 8px 16px; background: var(--bubble-cap);
  color: var(--ink-soft); font-size: 0.8rem;
}
.ld-caption strong { color: var(--ink); font-weight: 600; }
.chat-mock .progress { background: var(--bubble-line); }

/* ---------- Shared: progress bar & status icons ---------- */
.progress { height: 8px; overflow: hidden; border-radius: 999px; background: var(--field-2); }
.progress-fill { height: 100%; width: 0; border-radius: inherit; background: var(--accent); }
.progress-fill.w-50 { width: 50%; }
.status-icon { flex: none; width: 24px; height: 24px; }
.is-done .item-text, .is-na .item-text {
  text-decoration: line-through; text-decoration-thickness: 1.5px; color: var(--ink-soft);
}

/* ---------- Home: privacy band ---------- */
.dark-band { background: var(--invert-ground); color: var(--invert-ink); padding: var(--section) 0; }
.dark-band a { color: var(--invert-ink); }
.dark-band a:hover { color: var(--invert-soft); }
.split { display: grid; gap: 32px; }
@media (min-width: 900px) { .split { grid-template-columns: 1fr 1fr; gap: 72px; align-items: start; } }
.dark-band h2 { margin: 0; max-width: 10em; }
.dark-band p { font-size: var(--t-statement); line-height: 1.45; }
.dark-band p.small { font-size: var(--t-body); color: var(--invert-soft); }

/* ---------- Prose pages (privacy, support, 404) ---------- */
.page { padding: clamp(40px, 2rem + 4vw, 96px) 0 var(--section); }
.prose > * { max-width: 46rem; }
.prose h1 { font-size: clamp(2.5rem, 1.6rem + 3.6vw, 4.25rem); margin-bottom: 0.3em; }
.prose h2 { font-size: clamp(1.4rem, 1.2rem + 0.8vw, 1.75rem); margin-top: 2.2em; scroll-margin-top: 16px; }
.prose h3 { margin-top: 1.8em; scroll-margin-top: 16px; }
.prose ul, .prose ol { padding-left: 1.3em; margin: 0 0 1em; }
.prose li { margin: 0.4em 0; }
.prose .lead { font-size: var(--t-statement); line-height: 1.45; }
.prose .meta { color: var(--ink-soft); font-size: var(--t-small); }
.prose code { padding: 0.1em 0.35em; border-radius: 6px; background: var(--field-2); font-size: 0.9em; }
.summary-box { margin: 28px 0 8px; padding: 22px 26px; border-radius: var(--radius); background: var(--field); }
.summary-box p:last-child, .summary-box ul:last-child { margin-bottom: 0; }
.draft-note { margin: 0 0 32px; padding: 14px 20px; border-radius: 14px; background: var(--note); font-size: var(--t-small); }
.draft-note p { margin: 0; }
.toc { margin: 32px 0; padding: 22px 26px; border-radius: var(--radius); background: var(--field); }
.toc h2 { margin: 0 0 10px; font-size: var(--t-body); letter-spacing: -0.01em; }
.toc ol { margin: 0; columns: 1; }
.toc li { margin: 0 0 0.45em; }
@media (min-width: 720px) { .toc ol { columns: 2; column-gap: 40px; } .toc li { break-inside: avoid; } }
.contact-card { margin-top: 56px; padding: 28px; border-radius: var(--radius); background: var(--field); }
.contact-card h2 { margin-top: 0; }
.contact-card p:last-child { margin-bottom: 0; }
.notfound-links { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }

/* ---------- Footer ---------- */
.site-footer { background: var(--field); padding: clamp(56px, 3rem + 4vw, 112px) 0 40px; font-size: var(--t-small); }
.site-footer .footer-name {
  margin: 0 0 32px; font-size: var(--t-display); font-weight: 700;
  letter-spacing: -0.045em; line-height: 0.95;
}
.footer-grid { display: grid; gap: 20px 48px; align-items: end; }
@media (min-width: 720px) { .footer-grid { grid-template-columns: 1fr auto; } }
.site-footer p { margin: 0 0 6px; }
.site-footer ul { display: flex; flex-wrap: wrap; gap: 4px 22px; margin: 0; padding: 0; list-style: none; }
.site-footer a { color: var(--ink); }
.site-footer a:hover { color: var(--accent); }
.legal { margin-top: 24px !important; max-width: 75ch; color: var(--ink-soft); }

/* ---------- List viewer (l/index.html) ---------- */
.viewer-main { max-width: 620px; margin: 0 auto; padding: 24px var(--gutter) 72px; }
.list-card { padding: 26px 22px 22px; border-radius: var(--radius); background: var(--field); }
@media (min-width: 480px) { .list-card { padding: 32px 32px 26px; } }
.list-card h1 { font-size: clamp(1.75rem, 1.4rem + 1.5vw, 2.4rem); overflow-wrap: anywhere; letter-spacing: -0.03em; }
.progress-row { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 12px; margin-bottom: 8px; }
.progress-label { margin: 0; font-weight: 650; }
.breakdown { margin: 0; color: var(--ink-soft); font-size: var(--t-small); }
.items { margin: 16px 0 0; padding: 0; list-style: none; }
.items li { display: flex; align-items: flex-start; gap: 12px; padding: 11px 0; border-bottom: 1px solid var(--field-2); } /* data-ui list rows */
.items li:last-child { border-bottom: 0; }
.items .status-icon { margin-top: 1px; }
.item-text { min-width: 0; overflow-wrap: anywhere; white-space: pre-line; }
.item-text.is-blank { color: var(--ink-soft); font-style: italic; }
.empty-note { margin: 16px 0 0; color: var(--ink-soft); }
.list-footer {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px;
  margin-top: 12px; padding-top: 16px;
}
.updated { margin: 0; color: var(--ink-soft); font-size: var(--t-small); }
.copy-status { flex-basis: 100%; margin: 0; min-height: 1.6em; color: var(--ink-soft); font-size: var(--t-small); }
.copy-status:empty { min-height: 0; }
.state-card { text-align: center; padding: 40px 24px; }
.state-card h1 { font-size: 1.75rem; }
.state-card p { color: var(--ink-soft); }
.state-card p:last-child { margin-bottom: 0; }
.card { border-radius: var(--radius); background: var(--field); }
.viewer-cta { margin-top: 28px; text-align: center; }
.viewer-cta p { margin-bottom: 16px; }
.viewer-note { margin: 28px 0 0; color: var(--ink-soft); font-size: var(--t-small); text-align: center; }

/* ---------- Sample/test page ---------- */
.sample-links { padding-left: 1.2em; }
.sample-links li { margin: 0.8em 0; }

/* ---------- Motion & print ---------- */
@keyframes rise { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
  .studio-hero h1, .studio-hero .statement, .studio-hero .button, .facts div {
    animation: rise 0.6s cubic-bezier(0.2, 0.7, 0.2, 1) both;
  }
  .studio-hero .statement { animation-delay: 0.08s; }
  .studio-hero .button { animation-delay: 0.16s; }
  .facts div:nth-child(1) { animation-delay: 0.24s; }
  .facts div:nth-child(2) { animation-delay: 0.30s; }
  .facts div:nth-child(3) { animation-delay: 0.36s; }
  .facts div:nth-child(4) { animation-delay: 0.42s; }
  .store-badge:active, .site-nav a:active { transform: translateY(1px); }
  .button, .site-nav a, .store-badge { transition: background-color 0.15s ease, color 0.15s ease, opacity 0.15s ease, transform 0.1s ease; }
}
@media print {
  .site-header, .site-footer, .viewer-cta, .list-footer button, .skip-link { display: none !important; }
  body { background: #fff; color: #000; }
}
