/* Legacy Loom. Cream paper, forest green, amber: the colours of the logo. */

:root {
  --paper: #fbf3e7;
  --paper-2: #f3e8d5;
  --paper-3: #e7d9c0;
  --card: #fffaf2;
  --ink: #0f2420;
  --ink-2: #4d5a52;
  --ink-3: #8a8c7c;
  --rule: #e8dcc6;
  --accent: #1c5047;
  --accent-2: #c76f14;
  --accent-soft: #e2ece5;
  --highlight: #c76f14;
  --gold: #d4ac70;
  --sage: #dfe9de;
  --sage-ink: #1c5047;
  --sky: #f6e3c7;
  --sky-ink: #9a5410;
  --sand: #efe2c8;
  --sand-ink: #7a5a1c;
  --ok: #2f7a55;
  --warn: #c76f14;
  --bad: #a83a2c;
  --glass: rgba(255, 250, 242, .8);
  --shadow-sm: 0 1px 2px rgba(15, 36, 32, .06);
  --shadow: 0 1px 2px rgba(15, 36, 32, .05), 0 8px 24px rgba(15, 36, 32, .07);
  --shadow-lg: 0 2px 6px rgba(15, 36, 32, .06), 0 30px 60px -20px rgba(15, 36, 32, .25);
  --radius: 16px;
  --radius-lg: 26px;
  --serif: Fraunces, Georgia, serif;
  --sans: Inter, system-ui, -apple-system, "Segoe UI", sans-serif;
  --nav-h: 64px;
  --bottom-bar: 0px;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper: #0c1916; --paper-2: #13241f; --paper-3: #1d332d; --card: #102019;
    --ink: #f5ecdf; --ink-2: #b9b6a6; --ink-3: #868b80; --rule: #22372f;
    --accent: #3e9a7d; --accent-2: #e39a45; --accent-soft: #173a31; --highlight: #eaa457; --gold: #d4ac70;
    --sage: #15302a; --sage-ink: #9fd6bf; --sky: #33250f; --sky-ink: #f0c084; --sand: #2b2414; --sand-ink: #ecd39f;
    --glass: rgba(16, 32, 25, .74);
    --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 8px 24px rgba(0, 0, 0, .3);
    --shadow-lg: 0 2px 6px rgba(0, 0, 0, .3), 0 30px 60px -20px rgba(0, 0, 0, .6);
  }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
html, body { margin: 0; }
body {
  background: var(--paper); color: var(--ink);
  font: 16px/1.6 var(--sans); letter-spacing: -.005em;
  padding-bottom: calc(110px + var(--bottom-bar)); overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, h4 { font-family: var(--serif); font-weight: 600; letter-spacing: -.02em; margin: 0; line-height: 1.15; }
h2 { font-size: 34px; }
h3 { font-size: 19px; margin-bottom: 6px; }
h4 { font-size: 20px; }
em { font-style: italic; }
a { color: var(--accent); text-decoration-thickness: 1px; text-underline-offset: 3px; }
code { background: var(--paper-2); padding: 1px 6px; border-radius: 5px; font-size: .88em; }
::selection { background: var(--accent-soft); }
.muted { color: var(--ink-2); }
.small { font-size: 14px; }
.hidden { display: none !important; }

/* Navigation: a floating pill on desktop, an app tab bar on phones */
.top { position: sticky; top: 0; z-index: 20; padding: 12px 16px 0; }
.nav-shell {
  max-width: 1080px; margin: 0 auto; height: var(--nav-h);
  display: flex; align-items: center; gap: 12px; padding: 0 10px 0 14px;
  background: var(--glass); backdrop-filter: saturate(1.4) blur(16px); -webkit-backdrop-filter: saturate(1.4) blur(16px);
  border: 1px solid var(--rule); border-radius: 999px; box-shadow: var(--shadow);
}
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); min-width: 0; flex: none; }
.brand svg { width: 36px; height: 36px; flex: none; }
.brand circle { fill: var(--accent); }
.brand path { stroke: var(--paper); stroke-width: 2.4; fill: none; stroke-linecap: round; }
.brand-text { display: grid; line-height: 1.15; min-width: 0; }
.brand-text strong { font-family: var(--serif); font-size: 19px; font-weight: 600; letter-spacing: -.02em; }
.brand-text span { font-size: 12px; color: var(--ink-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 210px; }

.tabs { display: flex; gap: 2px; margin: 0 auto; }
.tabs button {
  display: inline-flex; align-items: center; gap: 7px; border: 0; background: none; cursor: pointer;
  font: 500 14.5px var(--sans); color: var(--ink-2); padding: 8px 13px; border-radius: 999px; white-space: nowrap;
  transition: background .15s, color .15s;
}
.tabs button svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.tabs button:hover { color: var(--ink); background: var(--paper-2); }
.tabs button.active { background: var(--ink); color: var(--paper); }

.status-pill {
  display: inline-flex; align-items: center; gap: 8px; flex: none; border: 1px solid var(--rule); background: var(--card);
  border-radius: 999px; padding: 7px 12px; font: 500 13px var(--sans); color: var(--ink-2); cursor: pointer;
}
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--rule); flex: none; }
.dot.ok { background: var(--ok); box-shadow: 0 0 0 3px color-mix(in srgb, var(--ok) 20%, transparent); }
.dot.warn { background: var(--warn); } .dot.bad { background: var(--bad); }

main { max-width: 1080px; margin: 0 auto; padding: 28px 16px; }
.view { display: none; }
.view.active { display: block; animation: rise .3s ease; }
@keyframes rise { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.view-head { display: flex; justify-content: space-between; align-items: flex-end; flex-wrap: wrap; gap: 12px; margin: 8px 0 22px; }
.view-head p { margin: 4px 0 0; }
.lede { max-width: 640px; margin-top: -8px; font-size: 17px; }

/* Buttons and inputs */
button { font: inherit; }
.primary, .like-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 0; background: var(--accent); color: #fff;
  text-decoration: none; padding: 10px 18px; border-radius: 999px; font-weight: 600; cursor: pointer; font-size: 15px;
  transition: transform .15s, box-shadow .15s, background .15s;
}
.primary:hover, .like-btn:hover { transform: translateY(-1px); box-shadow: 0 8px 20px color-mix(in srgb, var(--accent) 35%, transparent); }
.primary:disabled { opacity: .5; cursor: default; transform: none; box-shadow: none; }
.big { padding: 14px 26px; font-size: 16px; }
.link { background: none; border: 0; color: var(--accent); cursor: pointer; padding: 6px 4px; font-weight: 500; text-decoration: none; }
.ghost {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px; text-decoration: none;
  background: var(--card); border: 1px solid var(--rule); color: var(--ink); padding: 8px 14px; border-radius: 999px;
  cursor: pointer; font-size: 14px; font-weight: 500; transition: border-color .15s, transform .15s;
}
.ghost:hover { border-color: var(--accent-2); transform: translateY(-1px); }
.ghost.big { padding: 13px 24px; font-size: 16px; }
.row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
input, select {
  font: inherit; color: var(--ink); background: var(--card); border: 1px solid var(--rule);
  border-radius: 12px; padding: 11px 13px; width: 100%; transition: border-color .15s, box-shadow .15s;
}
input:focus, select:focus { outline: none; border-color: var(--accent-2); box-shadow: 0 0 0 4px var(--accent-soft); }
.row input { flex: 1; width: auto; min-width: 0; }

.card { background: var(--card); border: 1px solid var(--rule); border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow-sm); margin-bottom: 16px; }
.fields { display: grid; gap: 14px; }
.fields label { display: grid; gap: 6px; font-weight: 500; font-size: 14px; }

/* Landing */
.hero { position: relative; text-align: center; padding: 40px 0 10px; }
.glow {
  position: absolute; inset: -120px -40vw auto; height: 620px; z-index: -1; pointer-events: none;
  background:
    radial-gradient(40% 50% at 50% 30%, color-mix(in srgb, var(--accent-2) 28%, transparent), transparent 70%),
    radial-gradient(30% 40% at 25% 55%, color-mix(in srgb, var(--sand) 90%, transparent), transparent 70%),
    radial-gradient(30% 40% at 78% 50%, color-mix(in srgb, var(--sky) 90%, transparent), transparent 70%);
  filter: blur(10px); opacity: .9;
}
.announce {
  display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink-2); font-size: 14px;
  background: var(--glass); border: 1px solid var(--rule); border-radius: 999px; padding: 5px 14px 5px 5px; box-shadow: var(--shadow-sm);
  backdrop-filter: blur(8px);
}
.announce:hover { color: var(--ink); }
.announce-tag { background: var(--ink); color: var(--paper); font-weight: 600; font-size: 12px; padding: 3px 10px; border-radius: 999px; }
.hero-title { font-size: clamp(44px, 8.4vw, 88px); line-height: 1.0; letter-spacing: -.035em; font-weight: 600; margin-top: 26px; }
.hero-title em { color: var(--highlight); font-weight: 400; }
.hero-sub { max-width: 580px; margin: 22px auto 0; font-size: clamp(17px, 2.1vw, 20px); color: var(--ink-2); line-height: 1.55; }
.hero-cta { display: flex; gap: 12px; justify-content: center; align-items: center; flex-wrap: wrap; margin-top: 30px; }

/* The product window */
.preview {
  margin: 56px auto 0; max-width: 900px; text-align: left; border-radius: 22px; overflow: hidden;
  background: var(--card); border: 1px solid var(--rule); box-shadow: var(--shadow-lg);
  transform: perspective(1600px) rotateX(4deg); transform-origin: top center;
}
.pv-bar { display: flex; align-items: center; gap: 7px; padding: 12px 16px; border-bottom: 1px solid var(--rule); background: var(--paper-2); }
.pv-bar span { width: 11px; height: 11px; border-radius: 50%; background: var(--paper-3); }
.pv-bar span:nth-child(1) { background: #e8806b; } .pv-bar span:nth-child(2) { background: #e9b85c; } .pv-bar span:nth-child(3) { background: #8fbf74; }
.pv-bar em { margin: 0 auto; font-style: normal; font-size: 12.5px; color: var(--ink-3); font-weight: 500; transform: translateX(-24px); }
.pv-body { display: grid; grid-template-columns: 230px 1fr; min-height: 300px; }
.pv-side { border-right: 1px solid var(--rule); padding: 12px; display: grid; gap: 4px; align-content: start; background: color-mix(in srgb, var(--paper) 60%, var(--card)); }
.pv-entry { display: grid; grid-template-columns: 40px 1fr; gap: 10px; align-items: center; padding: 10px; border-radius: 12px; }
.pv-entry.on { background: var(--accent-soft); }
.pv-date { text-align: center; line-height: 1; }
.pv-date b { display: block; font-family: var(--serif); font-size: 22px; color: var(--highlight); }
.pv-date span { font-size: 9.5px; letter-spacing: .08em; color: var(--ink-3); font-weight: 600; }
.pv-lines { display: grid; gap: 7px; }
.pv-lines i, .pv-q i, .mini-card i { display: block; height: 8px; border-radius: 4px; background: var(--paper-3); }
.pv-main { padding: 26px; display: grid; gap: 16px; align-content: start; }
.pv-q { justify-self: end; width: 46%; background: var(--accent); padding: 14px 16px; border-radius: 16px 16px 4px 16px; }
.pv-q i { background: rgba(255, 255, 255, .55); }
.pv-a { width: 82%; border: 1px solid var(--rule); border-radius: 16px 16px 16px 4px; padding: 16px; display: grid; gap: 14px; background: var(--card); }
.pv-cite { display: inline-flex; align-items: center; gap: 8px; font-size: 12.5px; color: var(--ink-2); }
.pv-cite b { display: inline-grid; place-items: center; width: 22px; height: 20px; border-radius: 6px; background: var(--accent); color: #fff; font-size: 11px; }
.pv-player { display: flex; align-items: center; gap: 12px; border-radius: 999px; background: var(--paper-2); padding: 8px 16px 8px 8px; }
.pv-play { width: 30px; height: 30px; border-radius: 50%; background: var(--accent); flex: none; position: relative; }
.pv-play::before { content: ""; position: absolute; left: 12px; top: 9px; border-left: 9px solid #fff; border-top: 6px solid transparent; border-bottom: 6px solid transparent; }
.pv-wave { flex: 1; display: flex; align-items: center; justify-content: space-between; gap: 3px; height: 28px; }
.pv-wave span { flex: 1; max-width: 4px; border-radius: 2px; background: var(--accent-2); opacity: .8; animation: pulse-bar 2.4s ease-in-out infinite; }
.pv-wave span:nth-child(odd) { animation-delay: -.8s; } .pv-wave span:nth-child(3n) { animation-delay: -1.6s; }
.pv-wave span:nth-child(n+11) { background: var(--paper-3); }
@keyframes pulse-bar { 0%, 100% { transform: scaleY(.75); } 50% { transform: scaleY(1); } }
.pv-player em { font-style: normal; font-size: 12px; color: var(--ink-3); font-variant-numeric: tabular-nums; }

/* How it works */
.how { margin-top: 110px; scroll-margin-top: 100px; }
.kicker { font-size: 12.5px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--accent); margin: 0 0 10px; }
.section-title { font-size: clamp(30px, 4.6vw, 46px); line-height: 1.08; letter-spacing: -.03em; max-width: 680px; margin: 0 auto; }
.section-title em, .panel h3 em { color: var(--highlight); font-weight: 400; }
.steps-row { list-style: none; padding: 0; margin: 40px 0 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; text-align: left; }
.steps-row li { background: var(--card); border: 1px solid var(--rule); border-radius: var(--radius-lg); padding: 26px; box-shadow: var(--shadow-sm); }
.step-icon { display: inline-grid; place-items: center; width: 46px; height: 46px; border-radius: 14px; background: var(--accent-soft); color: var(--accent); margin-bottom: 18px; }
.step-icon svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.steps-row h4 { margin-bottom: 6px; }
.steps-row p, .panel p { margin: 0; color: var(--ink-2); font-size: 15.5px; }

/* Coloured feature panels */
.panels { display: grid; grid-template-columns: 1.3fr 1fr; gap: 16px; margin-top: 16px; text-align: left; }
.panel { border-radius: var(--radius-lg); padding: 30px; display: grid; gap: 22px; overflow: hidden; min-height: 300px; align-content: space-between; }
.panel h3 { font-size: 28px; letter-spacing: -.025em; margin-bottom: 8px; }
.panel .kicker { margin-bottom: 8px; }
.panel-a { grid-row: span 2; background: var(--sand); }
.panel-a .kicker, .panel-a h3 em { color: var(--sand-ink); }
.panel-b { background: var(--sage); }
.panel-b .kicker, .panel-b h3 em { color: var(--sage-ink); }
.panel-c { background: var(--sky); }
.panel-c .kicker, .panel-c h3 em { color: var(--sky-ink); }
.panel-art { display: flex; justify-content: center; align-items: flex-end; }
.card-stack { position: relative; width: min(300px, 90%); height: 230px; }
.mini-card {
  position: absolute; inset: 20px 0 0 30px; background: var(--card); border-radius: 16px; padding: 22px; display: grid; gap: 10px;
  align-content: start; box-shadow: var(--shadow-lg); transform: rotate(2deg);
}
.mini-card.back { inset: 0 30px 20px 0; transform: rotate(-4deg); background: color-mix(in srgb, var(--card) 70%, var(--sand)); box-shadow: var(--shadow); }
.mini-card b { display: block; width: 60%; height: 14px; border-radius: 4px; background: var(--accent-2); margin-bottom: 6px; }
.mini-qr {
  position: absolute; right: 18px; bottom: 18px; width: 46px; height: 46px; border-radius: 6px;
  background:
    linear-gradient(90deg, var(--ink) 33%, transparent 33% 66%, var(--ink) 66%) 0 0 / 100% 33% no-repeat,
    linear-gradient(90deg, transparent 33%, var(--ink) 33% 66%, transparent 66%) 0 50% / 100% 33% no-repeat,
    linear-gradient(90deg, var(--ink) 66%, transparent 66%) 0 100% / 100% 33% no-repeat;
  opacity: .85;
}
.mini-timeline { position: relative; width: 100%; height: 70px; }
.mini-timeline::before { content: ""; position: absolute; left: 0; right: 0; top: 34px; height: 2px; background: color-mix(in srgb, var(--sage-ink) 35%, transparent); }
.mini-timeline span { position: absolute; top: 26px; width: 18px; height: 18px; border-radius: 50%; background: var(--card); border: 4px solid var(--sage-ink); }
.mini-timeline span:nth-child(1) { left: 6%; } .mini-timeline span:nth-child(2) { left: 32%; } .mini-timeline span:nth-child(3) { left: 58%; } .mini-timeline span:nth-child(4) { left: 86%; background: var(--sage-ink); }
.mini-heat { display: grid; grid-template-columns: repeat(8, 1fr); gap: 5px; width: 100%; }
.mini-heat span { aspect-ratio: 1; border-radius: 6px; background: var(--sky-ink); }

.promise { margin: 110px auto 0; max-width: 760px; }
.promise blockquote { margin: 0; font-family: var(--serif); font-size: clamp(26px, 3.6vw, 38px); line-height: 1.25; letter-spacing: -.02em; font-style: italic; }
.promise blockquote::before { content: "\201C"; display: block; font-size: 72px; line-height: .6; color: var(--highlight); margin-bottom: 14px; }
.promise figcaption { margin-top: 18px; font-size: 14px; color: var(--ink-2); }
.stack { list-style: none; padding: 0; margin: 40px auto 20px; display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.stack li { font-size: 13.5px; font-weight: 500; color: var(--ink-2); border: 1px solid var(--rule); border-radius: 999px; padding: 6px 14px; background: var(--card); }

/* Ask */
.ask-intro { text-align: center; padding: 34px 0 10px; }
.ask-intro h2 { font-size: clamp(32px, 5vw, 46px); letter-spacing: -.03em; }
.ask-intro > p { margin: 10px auto 0; max-width: 520px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin-top: 22px; }
.thread { display: grid; gap: 18px; margin: 16px auto 100px; max-width: 760px; }
.q { justify-self: end; background: var(--accent); color: #fff; padding: 11px 17px; border-radius: 20px 20px 6px 20px; max-width: 80%; box-shadow: var(--shadow-sm); }
.a { background: var(--card); border: 1px solid var(--rule); border-radius: 20px 20px 20px 6px; padding: 18px 20px; box-shadow: var(--shadow); max-width: 100%; }
.a .steps { font-size: 12.5px; color: var(--ink-2); margin-bottom: 10px; display: flex; flex-wrap: wrap; gap: 6px; }
.a .steps span { background: var(--paper-2); padding: 3px 10px; border-radius: 999px; }
.a .body { white-space: pre-wrap; font-size: 16.5px; line-height: 1.65; }
.a .body.thinking::after { content: ""; display: inline-block; width: 8px; height: 17px; background: var(--accent-2); margin-left: 3px; vertical-align: -3px; border-radius: 2px; animation: blink 1s steps(2) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.cite {
  display: inline-flex; align-items: center; justify-content: center; min-width: 22px; height: 20px; padding: 0 6px;
  font: 600 11.5px var(--sans); border-radius: 6px; border: 0; background: var(--accent-soft); color: var(--accent);
  cursor: pointer; vertical-align: 1px; margin: 0 1px; transition: background .15s, color .15s;
}
.cite:hover { background: var(--accent); color: #fff; }
.sources { margin-top: 14px; border-top: 1px dashed var(--rule); padding-top: 12px; display: grid; gap: 8px; }
.source { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; }
.source.cited .num { background: var(--accent); color: #fff; }
.source .num { flex: none; min-width: 22px; text-align: center; border-radius: 6px; background: var(--paper-2); font-weight: 600; font-size: 12px; padding: 1px 4px; margin-top: 2px; }
.source p { margin: 0; color: var(--ink-2); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.source button { flex: none; }
.a .actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 14px; }
.ask-her { margin-top: 12px; padding: 11px 14px; border-radius: 12px; background: var(--accent-soft); font-size: 15px; }
.error { color: var(--bad); }
.ask-form {
  position: fixed; left: 50%; transform: translateX(-50%); bottom: calc(16px + var(--bottom-bar)); z-index: 15;
  width: min(760px, calc(100% - 32px)); display: flex; gap: 8px; background: var(--glass);
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--rule); border-radius: 999px; padding: 6px; box-shadow: var(--shadow-lg);
}
.ask-form input { border: 0; background: transparent; border-radius: 999px; box-shadow: none; }
.ask-form input:focus { box-shadow: none; }
body.player-open .ask-form { bottom: calc(104px + var(--bottom-bar)); }
body:not(.on-ask) .ask-form, body.empty-archive .ask-form { display: none; }

/* Archive: entries carry their date the way a journal does */
.memo-list { display: grid; gap: 12px; }
.memo {
  display: grid; grid-template-columns: 64px 1fr auto; gap: 18px; align-items: center;
  background: var(--card); border: 1px solid var(--rule); border-radius: var(--radius); padding: 16px 18px; box-shadow: var(--shadow-sm);
  transition: box-shadow .2s, transform .2s, border-color .2s;
}
.memo:hover { box-shadow: var(--shadow); transform: translateY(-1px); border-color: var(--paper-3); }
.date { text-align: center; line-height: 1.05; border-right: 1px solid var(--rule); padding-right: 14px; }
.date b { display: block; font-family: var(--serif); font-size: 32px; font-weight: 600; color: var(--highlight); letter-spacing: -.03em; }
.date span { display: block; font-size: 11px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); }
.memo .open { cursor: pointer; min-width: 0; }
.memo h3 { font-size: 19px; margin: 0; overflow-wrap: anywhere; }
.memo .meta { font-size: 13px; color: var(--ink-2); display: flex; flex-wrap: wrap; gap: 4px 10px; margin-top: 4px; align-items: center; }
.memo .summary { margin: 8px 0 0; font-size: 14.5px; color: var(--ink-2); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.memo-side { display: grid; justify-items: center; gap: 8px; }
.badge { font-size: 11.5px; font-weight: 600; padding: 2px 9px; border-radius: 999px; background: var(--paper-2); color: var(--ink-2); text-transform: capitalize; }
.badge.recipe { background: var(--sage); color: var(--sage-ink); }
.badge.story { background: var(--accent-soft); color: var(--accent); }
.badge.advice { background: var(--sky); color: var(--sky-ink); }
.play {
  width: 44px; height: 44px; border-radius: 50%; border: 0; background: var(--accent); cursor: pointer; flex: none; position: relative;
  box-shadow: 0 6px 14px color-mix(in srgb, var(--accent) 35%, transparent); transition: transform .15s;
}
.play:hover { transform: scale(1.06); }
.play::before { content: ""; position: absolute; left: 17px; top: 13px; border-left: 13px solid #fff; border-top: 9px solid transparent; border-bottom: 9px solid transparent; }
.play.playing::before { left: 15px; top: 14px; width: 4px; height: 16px; border: 0; background: #fff; box-shadow: 9px 0 0 #fff; }
.stars { display: flex; gap: 1px; }
.stars button { border: 0; background: none; cursor: pointer; font-size: 18px; color: var(--paper-3); padding: 0 1px; line-height: 1; transition: transform .1s; }
.stars button:hover { transform: scale(1.2); }
.stars button.on { color: var(--warn); }
.stars-label { font-size: 11px; color: var(--ink-3); text-align: center; }
.progress { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--warn); margin-top: 6px; }
.spinner { width: 14px; height: 14px; border: 2px solid var(--rule); border-top-color: var(--accent); border-radius: 50%; animation: spin 1s linear infinite; flex: none; display: inline-block; }
@keyframes spin { to { transform: rotate(360deg); } }
.empty { text-align: center; padding: 56px 16px; color: var(--ink-2); border: 1px dashed var(--rule); border-radius: var(--radius-lg); background: color-mix(in srgb, var(--card) 50%, transparent); }

/* Memo detail */
.back { margin-bottom: 6px; padding-left: 0; }
.detail-head { display: flex; gap: 16px; align-items: flex-start; margin: 8px 0 18px; }
.detail-head h2 { overflow-wrap: anywhere; font-size: clamp(28px, 4.4vw, 40px); }
.detail-head p { margin: 6px 0 0; }
.facts { display: flex; flex-wrap: wrap; gap: 6px; margin: 12px 0; }
.facts span { font-size: 13px; background: var(--paper-2); border-radius: 999px; padding: 3px 11px; }
.quote { font-family: var(--serif); font-size: 22px; font-style: italic; border-left: 3px solid var(--accent); padding: 2px 0 2px 18px; margin: 16px 0; line-height: 1.4; }
.transcript { display: grid; gap: 2px; }
.seg { display: grid; grid-template-columns: 54px 1fr; gap: 10px; padding: 7px 10px; border-radius: 10px; cursor: pointer; transition: background .15s; }
.seg:hover { background: var(--paper-2); }
.seg.now { background: var(--accent-soft); }
.seg time { font-size: 12px; color: var(--ink-3); font-variant-numeric: tabular-nums; padding-top: 3px; }
.recipe-box ul, .recipe-box ol { padding-left: 20px; margin: 6px 0 12px; }
.danger { color: var(--bad); }

/* Add */
.add-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.add-grid .card { padding: 30px; margin: 0; }
.drop { display: block; cursor: pointer; border-style: dashed; border-width: 2px; text-align: center; transition: border-color .15s, background .15s; }
.drop.over, .drop:hover { border-color: var(--accent-2); background: color-mix(in srgb, var(--accent-soft) 50%, var(--card)); }
.drop input { display: none; }
.drop .like-btn { margin-top: 10px; }
.rec { display: inline-flex; align-items: center; gap: 10px; border: 1px solid var(--rule); background: var(--card); color: var(--ink); padding: 13px 22px; border-radius: 999px; font-weight: 600; cursor: pointer; margin-top: 8px; }
.rec span { width: 14px; height: 14px; border-radius: 50%; background: var(--bad); }
.rec.on { border-color: var(--bad); }
.rec.on span { border-radius: 3px; animation: pulse 1.2s ease infinite; }
@keyframes pulse { 50% { opacity: .4; } }
.rec-time { font-variant-numeric: tabular-nums; color: var(--ink-2); min-height: 1.5em; }
.upload-form { margin-top: 16px; }
.upload-form .fields { grid-template-columns: repeat(3, 1fr); margin: 14px 0; }
.pending { display: flex; flex-wrap: wrap; gap: 6px; }
.pending span { background: var(--paper-2); border-radius: 999px; padding: 3px 11px; font-size: 13px; }
.upload-log { display: grid; gap: 8px; margin-top: 14px; }
.upload-log p { margin: 0; font-size: 14px; display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }

/* Recipes */
.recipe-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); gap: 16px; }
.recipe-card { background: var(--card); border: 1px solid var(--rule); border-radius: var(--radius-lg); padding: 22px; box-shadow: var(--shadow-sm); position: relative; overflow: hidden; }
.recipe-card::before { content: ""; position: absolute; inset: 0 0 auto; height: 6px; background: linear-gradient(90deg, var(--accent), var(--gold), var(--accent-2)); }
.recipe-card h3 { color: var(--ink); font-size: 22px; }
.recipe-card ul { padding-left: 18px; margin: 10px 0; font-size: 14.5px; }

/* Timeline */
.timeline { list-style: none; padding: 0; margin: 0; position: relative; }
.timeline::before { content: ""; position: absolute; left: 78px; top: 8px; bottom: 8px; width: 2px; background: var(--rule); }
.timeline li { display: grid; grid-template-columns: 62px 1fr; gap: 38px; margin-bottom: 26px; position: relative; }
.timeline li::before { content: ""; position: absolute; left: 72px; top: 9px; width: 14px; height: 14px; border-radius: 50%; background: var(--accent); border: 3px solid var(--paper); box-shadow: 0 0 0 1px var(--rule); }
.timeline .yr { font-family: var(--serif); font-weight: 700; text-align: right; color: var(--highlight); font-size: 18px; }
.timeline h3 { cursor: pointer; font-size: 21px; }
.timeline p { margin: 4px 0 0; color: var(--ink-2); font-size: 15px; }

/* Planner */
.meter { height: 10px; background: var(--paper-2); border-radius: 999px; overflow: hidden; margin: 12px 0; }
.meter div { height: 100%; background: linear-gradient(90deg, var(--accent-2), var(--accent)); border-radius: 999px; }
.best { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 10px; margin: 14px 0; }
.slot { background: var(--card); border: 1px solid var(--rule); border-radius: 14px; padding: 14px; }
.slot:first-child { border-color: var(--accent); background: var(--accent-soft); }
.slot strong { display: block; font-family: var(--serif); font-size: 18px; }
.slot .pct { font-size: 30px; font-weight: 700; color: var(--accent); font-family: var(--serif); letter-spacing: -.03em; }
.heat { display: grid; gap: 3px; font-size: 11px; overflow-x: auto; }
.heat div { border-radius: 5px; min-height: 24px; display: flex; align-items: center; justify-content: center; }
.heat .lbl { color: var(--ink-2); justify-content: flex-start; }
.bars { display: grid; gap: 8px; }
.bar { display: grid; grid-template-columns: 110px 1fr 44px; gap: 10px; align-items: center; font-size: 14px; }
.bar .track { height: 8px; background: var(--paper-2); border-radius: 999px; overflow: hidden; }
.bar .fill { height: 100%; background: var(--accent-2); border-radius: 999px; }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 16px; }
.qlist { list-style: none; padding: 0; margin: 14px 0 0; display: grid; gap: 8px; }
.qlist li { display: flex; gap: 10px; align-items: flex-start; }
.qlist li.done span { text-decoration: line-through; color: var(--ink-3); }
.qlist input { width: auto; margin-top: 6px; accent-color: var(--accent); }
.qlist span { flex: 1; }
table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
td, th { text-align: left; padding: 8px 6px; border-bottom: 1px solid var(--rule); }
th { color: var(--ink-2); font-weight: 500; }
.table-wrap { max-height: 340px; overflow: auto; margin-top: 10px; }
.status-table td:first-child { font-weight: 600; white-space: nowrap; }
.status-table td { vertical-align: top; }
.status-table .dot { display: inline-block; margin-right: 6px; }

/* Player */
.player {
  position: fixed; left: 50%; transform: translateX(-50%); bottom: calc(14px + var(--bottom-bar)); z-index: 16;
  width: min(900px, calc(100% - 24px)); background: var(--glass); backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px);
  border: 1px solid var(--rule); border-radius: 22px; display: flex; gap: 14px; align-items: center; padding: 10px 16px 10px 10px;
  box-shadow: var(--shadow-lg);
}
.player-main { flex: 1; min-width: 0; }
.player-title { display: flex; gap: 10px; align-items: baseline; font-size: 14px; }
.player-title strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.caption { margin: 2px 0 4px; font-family: var(--serif); font-size: 16px; font-style: italic; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-height: 1.4em; }
#seek { padding: 0; accent-color: var(--accent); border: 0; background: none; box-shadow: none; }

.site-foot { max-width: 1080px; margin: 60px auto 0; padding: 22px 16px 8px; border-top: 1px solid var(--rule); color: var(--ink-2); font-size: 14px; display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.site-foot p { margin: 0; max-width: 560px; }
body.on-ask:not(.empty-archive) .site-foot { margin-bottom: 70px; }

.toast { position: fixed; top: 16px; left: 50%; transform: translate(-50%, -90px); background: var(--ink); color: var(--paper); padding: 11px 18px; border-radius: 12px; transition: transform .25s; z-index: 30; max-width: calc(100% - 32px); box-shadow: var(--shadow-lg); }
.toast.show { transform: translate(-50%, 0); }

/* Tablet */
@media (max-width: 1000px) {
  .tabs button span { display: none; }
  .tabs button { padding: 9px 11px; }
  .tabs button.active span { display: inline; }
}

/* Phone: the nav becomes a bottom tab bar, like a native app */
@media (max-width: 720px) {
  :root { --nav-h: 56px; --bottom-bar: 68px; }
  h2 { font-size: 28px; }
  .top { padding: 8px 10px 0; }
  .nav-shell { padding: 0 8px 0 10px; justify-content: space-between; }
  .brand svg { width: 32px; height: 32px; }
  .brand-text strong { font-size: 17px; }
  .brand-text span { max-width: 150px; }
  .status-pill { padding: 6px 10px; }
  .status-pill span:last-child { display: none; }
  .tabs {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 25; margin: 0; height: var(--bottom-bar);
    padding: 6px 6px calc(6px + env(safe-area-inset-bottom)); justify-content: space-around;
    background: var(--glass); backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px); border-top: 1px solid var(--rule);
  }
  .tabs .nav-extra { display: none; }
  .tabs button, .tabs button.active { flex-direction: column; gap: 3px; padding: 6px 4px; font-size: 11px; border-radius: 12px; flex: 1; background: none; color: var(--ink-3); }
  .tabs button span, .tabs button.active span { display: inline; }
  .tabs button svg { width: 22px; height: 22px; }
  .tabs button.active { color: var(--accent); }
  .tabs button.active svg { stroke-width: 2.2; }
  main { padding: 18px 14px; }
  .hero { padding-top: 22px; }
  .hero-title { margin-top: 20px; }
  .hero-cta .big { width: 100%; }
  .preview { margin-top: 40px; transform: none; border-radius: 18px; }
  .pv-body { grid-template-columns: 1fr; }
  .pv-side { display: none; }
  .pv-main { padding: 18px; }
  .pv-q { width: 64%; }
  .pv-a { width: 92%; }
  .how, .promise { margin-top: 72px; }
  .steps-row, .panels, .add-grid, .split, .upload-form .fields { grid-template-columns: 1fr; }
  .panel-a { grid-row: auto; }
  .panel { padding: 24px; min-height: 0; }
  .card-stack { height: 200px; }
  .memo { grid-template-columns: 48px 1fr; gap: 12px; padding: 14px; }
  .date { padding-right: 10px; }
  .date b { font-size: 26px; }
  .memo-side { grid-column: 1 / -1; display: flex; justify-content: space-between; align-items: center; border-top: 1px solid var(--rule); padding-top: 10px; }
  .memo-side .play { width: 38px; height: 38px; }
  .memo-side .play::before { left: 15px; top: 11px; border-left-width: 11px; border-top-width: 8px; border-bottom-width: 8px; }
  .stars-wrap { display: flex; align-items: center; gap: 8px; }
  .timeline::before { left: 54px; }
  .timeline li { grid-template-columns: 42px 1fr; gap: 30px; }
  .timeline li::before { left: 48px; }
  .bar { grid-template-columns: 80px 1fr 40px; }
  .q { max-width: 90%; }
  .player { border-radius: 18px; }
  .site-foot { flex-direction: column; }
  .add-grid .card { padding: 22px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .preview { transform: none; }
}
.empty-start { display: grid; justify-items: center; gap: 14px; margin-top: 8px; } .empty-start p { margin: 0; max-width: 440px; color: var(--ink-2); }

/* Marketing site: nav, docs, FAQ, support */
body.site { padding-bottom: 0; }
.site-links { display: flex; gap: 2px; margin: 0 auto; }
.site-links a { color: var(--ink-2); text-decoration: none; font-weight: 500; font-size: 15px; padding: 8px 14px; border-radius: 999px; transition: background .15s, color .15s; }
.site-links a:hover { color: var(--ink); background: var(--paper-2); }
.site-links a.on { color: var(--ink); background: var(--paper-2); }
.nav-actions { display: flex; align-items: center; gap: 8px; flex: none; }
.nav-actions .like-btn { padding: 9px 18px; font-size: 14.5px; }
.menu-btn { display: none; width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--rule); background: var(--card); cursor: pointer; position: relative; }
.menu-btn span { position: absolute; left: 12px; right: 12px; height: 2px; background: var(--ink); border-radius: 2px; transition: transform .2s; }
.menu-btn span:first-child { top: 15px; }
.menu-btn span:last-child { top: 22px; }
.menu-btn[aria-expanded="true"] span:first-child { transform: translateY(3.5px) rotate(45deg); }
.menu-btn[aria-expanded="true"] span:last-child { transform: translateY(-3.5px) rotate(-45deg); }

.landing { max-width: 1080px; }
.cta-band {
  margin: 110px 0 20px; padding: 56px 28px; border-radius: 32px; text-align: center; color: #fbf6ec;
  background: radial-gradient(60% 120% at 50% 0%, #1c5047, #0a1f1b);
  box-shadow: var(--shadow-lg);
}
.cta-band h3 { font-size: clamp(30px, 4.4vw, 44px); letter-spacing: -.03em; margin: 0; }
.cta-band p { max-width: 540px; margin: 14px auto 0; opacity: .85; font-size: 17px; }
.cta-band .hero-cta { margin-top: 26px; }
.cta-band .ghost { background: transparent; color: #fbf6ec; border-color: rgba(255, 255, 255, .3); }

.page-title { font-size: clamp(38px, 6vw, 60px); letter-spacing: -.035em; line-height: 1.04; margin: 0; }
.page-title em { color: var(--highlight); font-weight: 400; }
.page-lede { font-size: 19px; color: var(--ink-2); margin: 16px 0 36px; max-width: 620px; }
.narrow { max-width: 760px; padding-top: 48px; }
.sub-title { font-size: 28px; margin: 48px 0 16px; }

.doc-wrap { display: grid; grid-template-columns: 210px 1fr; gap: 56px; padding-top: 48px; align-items: start; }
.doc-toc { position: sticky; top: 100px; display: grid; gap: 2px; }
.doc-toc a { color: var(--ink-2); text-decoration: none; font-size: 14.5px; padding: 6px 12px; border-radius: 10px; }
.doc-toc a:hover { color: var(--ink); background: var(--paper-2); }
.prose { min-width: 0; max-width: 740px; }
.prose p, .prose li { font-size: 16.5px; line-height: 1.75; }
.prose ul, .prose ol { padding-left: 22px; }
.doc-section { padding-top: 26px; margin-top: 22px; border-top: 1px solid var(--rule); scroll-margin-top: 96px; }
.doc-section h2 { font-size: 30px; margin-bottom: 12px; }
.doc-section h4 { font-size: 19px; margin: 22px 0 6px; }
.flow { counter-reset: f; list-style: none; padding: 0 !important; display: grid; gap: 12px; }
.flow li { counter-increment: f; position: relative; padding: 14px 16px 14px 56px; background: var(--card); border: 1px solid var(--rule); border-radius: 14px; }
.flow li::before { content: counter(f); position: absolute; left: 16px; top: 15px; width: 26px; height: 26px; border-radius: 50%; background: var(--accent-soft); color: var(--accent); display: grid; place-items: center; font-weight: 700; font-size: 13px; }
.callout { margin: 18px 0; padding: 16px 18px; border-radius: 14px; background: var(--sand); color: var(--ink); font-size: 15.5px; line-height: 1.65; }
pre { background: #0f2420; color: #fbf0e3; padding: 18px 20px; border-radius: 14px; overflow-x: auto; font-size: 13.5px; line-height: 1.7; }
pre code { background: none; padding: 0; color: inherit; font-size: inherit; }
.table-scroll { overflow-x: auto; border: 1px solid var(--rule); border-radius: 14px; background: var(--card); }
.doc-table td, .doc-table th { padding: 11px 14px; vertical-align: top; font-size: 14.5px; }
.doc-table tr:last-child td { border-bottom: 0; }
.doc-table th { background: var(--paper-2); }

.faq { display: grid; gap: 10px; }
.faq-item { background: var(--card); border: 1px solid var(--rule); border-radius: 16px; padding: 0 20px; transition: box-shadow .2s; }
.faq-item[open] { box-shadow: var(--shadow); }
.faq-item summary { cursor: pointer; list-style: none; padding: 18px 30px 18px 0; font-family: var(--serif); font-size: 19px; font-weight: 600; letter-spacing: -.015em; position: relative; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; position: absolute; right: 0; top: 14px; font: 400 24px var(--sans); color: var(--accent); transition: transform .2s; }
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item p { margin: 0 0 18px; color: var(--ink-2); font-size: 16px; line-height: 1.7; }

.status-card h3 { margin: 0; }
.status-list { list-style: none; padding: 0; margin: 16px 0 0; display: grid; gap: 10px; }
.status-list li { display: grid; grid-template-columns: auto 150px 1fr; gap: 12px; align-items: center; font-size: 15px; }
.status-list li .muted { font-size: 14px; overflow-wrap: anywhere; }
.support-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin: 48px 0 20px; }
.support-card { display: grid; gap: 6px; align-content: start; text-decoration: none; color: var(--ink); background: var(--card); border: 1px solid var(--rule); border-radius: 20px; padding: 22px; transition: transform .2s, box-shadow .2s, border-color .2s; }
.support-card:hover { transform: translateY(-2px); box-shadow: var(--shadow); border-color: var(--accent-2); }
.support-card p { margin: 0; color: var(--ink-2); font-size: 14.5px; }
.support-card span { color: var(--accent); font-weight: 600; font-size: 14px; margin-top: 8px; }

.site-foot-wide { display: grid; grid-template-columns: 1fr auto; gap: 40px; padding: 40px 16px 48px; margin-top: 80px; }
.foot-brand strong { font-family: var(--serif); font-size: 20px; color: var(--ink); }
.foot-brand p { margin: 6px 0 0; max-width: 320px; }
.foot-cols { display: flex; gap: 56px; }
.foot-cols div { display: grid; gap: 8px; align-content: start; }
.foot-cols h5 { margin: 0 0 4px; font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); font-family: var(--sans); }
.foot-cols a { color: var(--ink-2); text-decoration: none; font-size: 14.5px; }
.foot-cols a:hover { color: var(--accent); }

@media (max-width: 900px) {
  .doc-wrap { grid-template-columns: 1fr; gap: 0; }
  .doc-toc { position: static; display: flex; overflow-x: auto; gap: 6px; padding-bottom: 8px; margin-bottom: 8px; scrollbar-width: none; }
  .doc-toc .kicker { display: none; }
  .doc-toc a { white-space: nowrap; border: 1px solid var(--rule); border-radius: 999px; padding: 6px 12px; }
}
@media (max-width: 720px) {
  body.site { --bottom-bar: 0px; }
  .menu-btn { display: block; }
  .site-links { display: none; position: absolute; top: calc(var(--nav-h) + 16px); left: 10px; right: 10px; flex-direction: column; gap: 2px; padding: 10px; background: var(--card); border: 1px solid var(--rule); border-radius: 20px; box-shadow: var(--shadow-lg); }
  .site-links.open { display: flex; }
  .site-links a { padding: 12px 16px; font-size: 16px; }
  .nav-actions .like-btn { padding: 8px 14px; font-size: 14px; }
  .narrow, .doc-wrap { padding-top: 28px; }
  .page-lede { font-size: 17px; }
  .status-list li { grid-template-columns: auto 1fr; }
  .status-list li .muted { grid-column: 2; }
  .support-grid { grid-template-columns: 1fr; }
  .site-foot-wide { grid-template-columns: 1fr; }
  .foot-cols { gap: 28px; flex-wrap: wrap; }
  .cta-band { margin-top: 72px; padding: 40px 20px; border-radius: 24px; }
}

/* A blurred parent traps position: fixed children, so on phones the app header drops the blur and the tab bar can sit at the bottom. */
@media (max-width: 720px) {
  body:not(.site) .nav-shell { backdrop-filter: none; -webkit-backdrop-filter: none; background: var(--card); }
}

/* Landing preview: a labelled picture of how an answer works */
.preview-wrap { margin: 56px auto 0; max-width: 900px; }
.preview-wrap .preview { margin: 0; }
.preview-wrap figcaption { margin-top: 18px; font-size: 14px; color: var(--ink-3); }
.pv-label { margin: 4px 10px 8px; font-size: 11px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); }
.pv-text { display: grid; line-height: 1.3; min-width: 0; }
.pv-text strong { font-size: 13.5px; color: var(--ink); }
.pv-text span { font-size: 12px; color: var(--ink-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pv-date span { text-transform: uppercase; }
.pv-q { width: auto; max-width: 62%; color: #fff; font-size: 15px; line-height: 1.45; }
.pv-a { width: auto; max-width: 86%; }
.pv-a p { margin: 0; font-size: 15px; line-height: 1.6; color: var(--ink); }
.pv-chip { display: inline-grid; place-items: center; min-width: 22px; height: 20px; padding: 0 5px; border-radius: 6px; background: var(--accent-soft); color: var(--accent); font-size: 11.5px; font-weight: 600; vertical-align: 1px; }
.pv-cite span { font-size: 13px; }
.pv-player em { font-style: italic; font-family: var(--serif); font-size: 14px; color: var(--ink-2); }
@media (max-width: 720px) {
  .preview-wrap { margin-top: 40px; }
  .pv-q { max-width: 85%; }
  .pv-a { max-width: 100%; }
}

/* Brand */
.brand-mark { width: 40px; height: 40px; border-radius: 12px; flex: none; object-fit: cover; box-shadow: 0 0 0 1px var(--rule); background: #fbf0e3; }
.brand-text strong .loom { color: var(--highlight); font-size: inherit; display: inline; max-width: none; overflow: visible; letter-spacing: inherit; }
.hero-mark { display: block; width: 112px; height: 112px; margin: 0 auto 22px; border-radius: 30px; object-fit: cover; background: #fbf0e3; box-shadow: var(--shadow-lg), 0 0 0 1px var(--rule); }
.tagline { font-size: 12px !important; letter-spacing: .14em; text-transform: uppercase; color: var(--highlight); font-weight: 600; margin: 8px 0 0 !important; }
.cta-band .like-btn { background: var(--accent-2); }
.cta-band .like-btn:hover { box-shadow: 0 8px 20px rgba(199, 111, 20, .4); }
.announce-tag { background: var(--accent); color: #fbf0e3; }
.tabs button.active { background: var(--accent); color: #fbf0e3; }
.pv-q { background: var(--accent); }
.pv-cite b { background: var(--accent-2); }
.mini-card b { background: var(--accent-2); }
.panel-c .mini-heat span { background: var(--accent-2); }
.glow {
  background:
    radial-gradient(40% 50% at 50% 30%, color-mix(in srgb, var(--gold) 45%, transparent), transparent 70%),
    radial-gradient(30% 40% at 22% 55%, color-mix(in srgb, var(--accent-soft) 95%, transparent), transparent 70%),
    radial-gradient(30% 40% at 80% 50%, color-mix(in srgb, var(--sky) 95%, transparent), transparent 70%);
}
@media (max-width: 720px) {
  .brand-mark { width: 34px; height: 34px; border-radius: 10px; }
  .hero-mark { width: 88px; height: 88px; border-radius: 24px; }
  .tabs button.active { background: none; color: var(--accent); }
}

/* Guide */
.guide-what { margin-bottom: 36px; background: var(--accent-soft); border-color: transparent; }
.guide-what h3 { margin-bottom: 8px; }
.guide-what p { margin: 0; font-size: 16.5px; line-height: 1.7; }
.guide-steps { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.guide-step { display: grid; grid-template-columns: 48px 1fr; gap: 18px; background: var(--card); border: 1px solid var(--rule); border-radius: 22px; padding: 24px 24px 18px; box-shadow: var(--shadow-sm); }
.guide-n { width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center; background: var(--accent); color: #fbf0e3; font: 700 18px var(--serif); }
.guide-step h2 { font-size: 24px; margin: 8px 0 10px; }
.guide-step p, .guide-step li { font-size: 16.5px; line-height: 1.7; }
.guide-step p { margin: 0 0 12px; }
.guide-step ul, .guide-step ol { padding-left: 20px; margin: 0 0 12px; }
.tip { background: var(--sky); border-radius: 12px; padding: 12px 14px; font-size: 15px !important; }
.tabs-explained { list-style: none; padding: 0 !important; display: grid; gap: 8px; }
.tabs-explained li { display: grid; grid-template-columns: 100px 1fr; gap: 12px; padding: 10px 14px; border-radius: 12px; background: var(--paper-2); }
.tabs-explained strong { color: var(--accent); }
.examples { list-style: none; padding: 0 !important; display: grid; gap: 6px; }
.examples li { font-family: var(--serif); font-style: italic; font-size: 18px; color: var(--ink); }
.guide-check { margin-top: 36px; border: 2px dashed var(--gold); background: color-mix(in srgb, var(--sky) 40%, var(--card)); }
.guide-check h2 { font-size: 26px; margin-bottom: 6px; }
.guide-check li { margin: 6px 0; font-size: 16px; }
.app-help { font-size: 14px; color: var(--ink-2); }
@media (max-width: 720px) {
  .guide-step { grid-template-columns: 1fr; gap: 4px; padding: 20px; }
  .guide-n { width: 38px; height: 38px; font-size: 16px; }
  .tabs-explained li { grid-template-columns: 1fr; gap: 2px; }
}

/* Space switcher: the friend's archive or the open sandbox */
.space-bar { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin: 0 0 8px; }
.space-switch { display: inline-flex; padding: 4px; border-radius: 999px; background: var(--paper-2); border: 1px solid var(--rule); flex: none; }
.space-switch button { border: 0; background: none; cursor: pointer; padding: 7px 16px; border-radius: 999px; font: 600 14px var(--sans); color: var(--ink-2); transition: background .15s, color .15s; }
.space-switch button.on { background: var(--card); color: var(--ink); box-shadow: var(--shadow-sm); }
body.space-try .space-switch button.on { background: var(--accent-2); color: #fff; }
.space-note { margin: 0; font-size: 14px; color: var(--ink-2); flex: 1; min-width: 220px; }
.link.inline { padding: 0; font: inherit; font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
body.space-try .space-note { color: var(--sky-ink); }
body.space-try .nav-shell { border-color: color-mix(in srgb, var(--accent-2) 45%, var(--rule)); }
.lock-card { display: none; text-align: center; padding: 36px 24px; background: var(--accent-soft); border-color: transparent; }
.lock-card p { max-width: 460px; margin: 8px auto 18px; }
body.locked .lock-card { display: block; }
body.locked #view-add .add-grid, body.locked #uploadForm, body.locked #uploadLog { display: none; }
@media (max-width: 720px) {
  .space-bar { gap: 8px; }
  .space-switch { width: 100%; }
  .space-switch button { flex: 1; padding: 9px 8px; }
  .space-note { min-width: 0; font-size: 13.5px; }
}

/* Space switch in the serif voice of the headlines */
.space-switch button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; font: 600 16px var(--serif); letter-spacing: -.01em; padding: 8px 18px; }
.space-switch button em { font-style: italic; font-weight: 400; color: var(--highlight); }
.space-switch button svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; opacity: .75; }
.space-switch button.on svg { opacity: 1; }
body.space-try .space-switch button.on em { color: #fff3e2; }
.space-note { font-size: 14.5px; line-height: 1.5; }
.opening { display: inline-flex; align-items: center; gap: 10px; margin: 0; }

/* Ratings shape the call planner, so on the protected archive only an unlocked device sees them. */
body.locked:not(.space-try) .stars-wrap, body.locked:not(.space-try) #view-memo .card:has(.stars) { display: none; }
body.locked:not(.space-try) .memo-side { border-top: 0; padding-top: 0; }

/* Hearts anyone can give */
.heart { display: inline-flex; align-items: center; gap: 6px; border: 1px solid var(--rule); background: var(--card); color: var(--ink-2); border-radius: 999px; padding: 5px 11px 5px 9px; font: 500 12.5px var(--sans); cursor: pointer; transition: transform .15s, border-color .15s, color .15s; white-space: nowrap; }
.heart svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linejoin: round; transition: transform .2s; }
.heart:hover { border-color: #d9534f; color: #b8322c; }
.heart.on { color: #b8322c; border-color: color-mix(in srgb, #d9534f 40%, var(--rule)); background: color-mix(in srgb, #d9534f 8%, var(--card)); }
.heart.on svg { fill: #d9534f; stroke: #d9534f; animation: beat .35s ease; }
@keyframes beat { 50% { transform: scale(1.3); } }
.love-row { margin: 4px 0 16px; }
.love-row .heart { font-size: 14px; padding: 8px 16px 8px 13px; }
.love-row .heart svg { width: 19px; height: 19px; }

/* Landing: live recipe cards from the real archive */
.live-count { font-size: 14px !important; font-weight: 600; color: var(--sand-ink) !important; margin-top: 10px !important; }
.live-count:empty { display: none; }
.panel-link { display: inline-block; margin-top: 12px; font-weight: 600; color: var(--sand-ink); text-decoration: none; border-bottom: 1.5px solid currentColor; padding-bottom: 1px; }
.live-stack { position: relative; width: min(340px, 100%); padding: 18px 0 6px 22px; }
.live-card {
  position: relative; display: block; text-decoration: none; color: var(--ink); text-align: left;
  background: #fffaf2; border-radius: 18px; padding: 22px 22px 18px; box-shadow: var(--shadow-lg);
  transform: rotate(1.5deg); transition: transform .3s ease;
  background-image: linear-gradient(transparent 31px, rgba(199, 111, 20, .08) 32px);
  background-size: 100% 32px;
}
.live-card:hover { transform: rotate(0deg) translateY(-3px); }
.live-card.back { position: absolute; inset: 0 30px 40px 0; transform: rotate(-5deg); background: #f6ead6; box-shadow: var(--shadow); padding: 18px 20px; }
.live-card.back h4 { opacity: .7; }
.live-kicker { display: block; font-size: 11px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: #c76f14; }
.live-card h4 { font-family: var(--serif); font-size: 26px; line-height: 1.1; margin: 6px 0 10px; color: #0f2420; }
.live-card ul { list-style: none; padding: 0; margin: 0 0 12px; display: grid; gap: 3px; }
.live-card li { font-size: 14px; color: #3d4a43; padding-left: 14px; position: relative; }
.live-card li::before { content: ""; position: absolute; left: 0; top: 9px; width: 5px; height: 5px; border-radius: 50%; background: #c76f14; }
.live-card li.more { color: #8a8c7c; font-style: italic; }
.live-card li.more::before { display: none; }
.live-tip { margin: 0 0 14px !important; font-family: var(--serif); font-style: italic; font-size: 16px !important; line-height: 1.4; color: #0f2420 !important; border-left: 3px solid #c76f14; padding-left: 12px; }
.live-foot { display: flex; align-items: center; gap: 12px; border-top: 1px dashed #e0cfb1; padding-top: 12px; }
.live-foot img { width: 64px; height: 64px; background: #fff; border-radius: 8px; padding: 4px; }
.live-foot span { font-size: 13px; font-weight: 600; color: #1c5047; }
@media (max-width: 720px) {
  .live-stack { padding-left: 14px; }
  .live-card h4 { font-size: 22px; }
}
.tts-limit { flex-basis: 100%; margin: 4px 0 0; font-size: 14px; color: var(--ink-2); background: var(--sky); border-radius: 10px; padding: 9px 12px; }
