/* ---------- tokens ---------- */
:root {
  --bg:        #F2EEE5;
  --bg-deep:   #EBE6DA;
  --card:      #FDFBF7;
  --ink:       #22231E;
  --ink-soft:  #55564E;
  --ink-mute:  #8E8F85;
  --sage:      #6F8355;
  --sage-ink:  #FDFBF7;
  --sage-tint: rgba(111,131,85,0.10);
  --amber:     #B8823A;
  --line:      rgba(34,35,30,0.10);
  --shadow:    0 1px 2px rgba(34,35,30,0.04), 0 8px 28px rgba(34,35,30,0.06);
  --glass:     rgba(253,251,247,0.78);

  --display: "Noto Serif", Georgia, serif;
  --body: "Plus Jakarta Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --pad: clamp(20px, 5vw, 32px);
  --maxw: 1080px;
}
[data-theme="dark"] {
  --bg:        #191A17;
  --bg-deep:   #141512;
  --card:      #232420;
  --ink:       #F1EEE4;
  --ink-soft:  rgba(241,238,228,0.70);
  --ink-mute:  rgba(241,238,228,0.42);
  --sage:      #A3BC80;
  --sage-ink:  #1B1D18;
  --sage-tint: rgba(163,188,128,0.13);
  --amber:     #DDA45E;
  --line:      rgba(241,238,228,0.12);
  --shadow:    0 1px 2px rgba(0,0,0,0.30), 0 10px 32px rgba(0,0,0,0.34);
  --glass:     rgba(35,36,32,0.76);
}

/* ---------- base ---------- */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  transition: background-color .35s ease, color .35s ease;
}
a { color: inherit; }
img { max-width: 100%; display: block; }
:focus-visible { outline: 2px solid var(--sage); outline-offset: 3px; border-radius: 6px; }

.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding-left: var(--pad); padding-right: var(--pad); }

/* ---------- floating nav (echoes the in-app bar) ---------- */
.topbar {
  position: fixed; top: 14px; left: 0; right: 0; z-index: 60;
  display: flex; justify-content: center;
  padding: 0 14px;
  pointer-events: none;
}
.topbar__inner {
  pointer-events: auto;
  width: 100%; max-width: 660px;
  display: flex; align-items: center; justify-content: space-between; gap: 14px;
  padding: 9px 10px 9px 20px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--glass);
  -webkit-backdrop-filter: blur(18px) saturate(150%);
  backdrop-filter: blur(18px) saturate(150%);
  box-shadow: var(--shadow);
}
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .topbar__inner { background: var(--card); }
}
.mark {
  font-family: var(--display); font-style: italic; font-weight: 600;
  font-size: 21px; letter-spacing: -0.01em; text-decoration: none;
}
.topbar__right { display: flex; align-items: center; gap: 6px; }

.themetoggle {
  width: 46px; height: 27px; border-radius: 999px; padding: 3px;
  border: 1px solid var(--line); background: var(--sage-tint);
  cursor: pointer; display: flex; align-items: center;
  transition: background-color .25s ease;
}
.themetoggle__dot {
  width: 19px; height: 19px; border-radius: 50%;
  background: var(--ink-mute);
  transition: transform .28s cubic-bezier(.4,1.3,.5,1), background-color .25s ease;
}
[data-theme="dark"] .themetoggle { background: var(--sage); }
[data-theme="dark"] .themetoggle__dot { transform: translateX(19px); background: var(--card); }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: var(--body); font-size: 15px; font-weight: 600;
  padding: 11px 20px; border-radius: 999px;
  text-decoration: none; border: 1px solid transparent; cursor: pointer;
  transition: transform .18s ease, opacity .18s ease, background-color .25s ease;
}
.btn--fill { background: var(--sage); color: var(--sage-ink); }
.btn--fill:hover { transform: translateY(-1px); opacity: .92; }
.btn--line { background: transparent; color: var(--ink); border-color: var(--line); }
.btn--line:hover { background: var(--sage-tint); }
.btn--sm { padding: 9px 17px; font-size: 14px; }

/* ---------- section header pattern (kicker / italic title / subtitle) ---------- */
.kicker {
  font-size: 12.5px; font-weight: 500; letter-spacing: 0.14em;
  color: var(--ink-mute); margin: 0 0 10px;
}
.title {
  font-family: var(--display); font-style: italic; font-weight: 600;
  font-size: clamp(34px, 5.6vw, 52px); line-height: 1.06; letter-spacing: -0.015em;
  margin: 0 0 12px;
}
.subtitle { color: var(--ink-soft); font-size: 17px; margin: 0; max-width: 46ch; }

.section { padding: clamp(72px, 11vw, 128px) 0; }
.section--tint { background: var(--bg-deep); transition: background-color .35s ease; }
@media (max-width: 600px) {
  .hero { padding-top: 104px; }
  .section { padding: 56px 0; }
}

/* ---------- hero ---------- */
.hero { padding: 132px 0 clamp(60px, 9vw, 96px); }
.hero__grid { display: grid; grid-template-columns: 1fr; gap: clamp(44px, 6vw, 64px); align-items: center; }
@media (min-width: 900px) { .hero__grid { grid-template-columns: 1.03fr 0.97fr; } }

.hero__h1 {
  font-family: var(--display); font-style: italic; font-weight: 600;
  font-size: clamp(42px, 7.4vw, 74px); line-height: 1.02; letter-spacing: -0.02em;
  margin: 0 0 20px;
}
.hero__lede { font-size: clamp(17px, 2vw, 19.5px); color: var(--ink-soft); max-width: 44ch; margin: 0 0 30px; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.hero__note { font-size: 14px; color: var(--ink-mute); margin: 18px 0 0; }

/* ---------- capture demo ---------- */
.capture {
  background: var(--card); border: 1px solid var(--line); border-radius: 26px;
  padding: clamp(20px, 3.5vw, 28px); box-shadow: var(--shadow);
  position: relative; overflow: hidden;
}
.capture__eyebrow {
  font-size: 12px; letter-spacing: 0.12em; color: var(--ink-mute); margin: 0 0 22px;
  display: flex; justify-content: space-between; align-items: center;
}
.capture__try {
  background: none; border: none; padding: 0; margin: 0;
  font-family: inherit; font-size: inherit; letter-spacing: inherit; color: inherit;
  cursor: pointer; transition: color .18s ease;
}
.capture__try:hover { color: var(--sage); }
.capture__q { font-family: var(--display); font-size: 20px; margin: 0 0 14px; }
.rating { display: grid; grid-template-columns: repeat(10, 1fr); gap: 5px; margin: 0 0 28px; }
.rating__btn {
  aspect-ratio: 1 / 1.12; border: none; border-radius: 12px; cursor: pointer;
  font-family: var(--body); font-size: clamp(12px, 1.6vw, 15px); font-weight: 500;
  color: var(--ink); background: var(--sage-tint);
  display: flex; align-items: center; justify-content: center;
  transition: transform .22s cubic-bezier(.4,1.4,.5,1), background-color .22s ease, color .22s ease;
}
.rating__btn:hover { transform: translateY(-2px); }
.rating__btn[aria-pressed="true"] {
  background: var(--sage); color: var(--sage-ink); transform: translateY(-5px) scale(1.06);
  box-shadow: 0 6px 16px var(--sage-tint);
}
.moment {
  display: block; width: 100%; border: 1px solid var(--line); border-radius: 16px;
  padding: 14px 16px; min-height: 92px; color: var(--ink); font-size: 16px;
  line-height: 1.5; font-family: var(--body); background: transparent; resize: none;
}
.moment::placeholder { color: var(--ink-mute); }
.capture__foot { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-top: 16px; }
.capture__timer { font-size: 13px; color: var(--ink-mute); }
.send {
  width: 46px; height: 46px; border-radius: 50%; border: none; flex: none;
  background: var(--sage); color: var(--sage-ink); font-size: 19px; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: transform .2s ease;
}
.send:hover { transform: scale(1.06); }

.hofpop {
  position: absolute; left: 0; right: 0; bottom: 0;
  background: var(--sage); color: var(--sage-ink);
  font-size: 15px; font-weight: 600; text-align: center; padding: 15px;
  transform: translateY(100%); transition: transform .4s cubic-bezier(.2,1,.3,1);
}
.hofpop.is-on { transform: translateY(0); }

/* ---------- entry cards ---------- */
.cards { display: grid; gap: 14px; margin-top: 44px; }
@media (min-width: 760px) { .cards { grid-template-columns: 1fr 1fr; } }
.entry {
  background: var(--card); border: 1px solid var(--line); border-radius: 20px;
  padding: 20px 22px; box-shadow: var(--shadow);
}
.entry__top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.entry__date { font-size: 14px; color: var(--ink-mute); display: flex; align-items: center; gap: 9px; }
.entry__rating { font-family: var(--display); font-size: 21px; font-weight: 600; }
.entry__text { margin: 0; font-size: 16px; line-height: 1.55; }
.entry__tags { display: flex; gap: 16px; justify-content: flex-end; margin-top: 14px; font-size: 13.5px; font-weight: 600; }
.tag--hof { color: var(--amber); display: flex; align-items: center; gap: 6px; }
.tag--lore { color: var(--sage); display: flex; align-items: center; gap: 6px; }
.ico { width: 14px; height: 14px; flex: none; }

/* ---------- two-up explainer ---------- */
.duo { display: grid; gap: 20px; margin-top: 44px; }
@media (min-width: 760px) { .duo { grid-template-columns: 1fr 1fr; gap: 26px; } }
.panel { border: 1px solid var(--line); border-radius: 22px; padding: clamp(22px, 3vw, 30px); background: var(--card); box-shadow: var(--shadow); }
.panel__name { font-family: var(--display); font-style: italic; font-weight: 600; font-size: 27px; margin: 0 0 4px; }
.panel__how { font-size: 13px; letter-spacing: 0.1em; color: var(--ink-mute); margin: 0 0 14px; }
.panel__body { margin: 0; color: var(--ink-soft); font-size: 16px; }

/* ---------- facts list ---------- */
.facts { list-style: none; padding: 0; margin: 40px 0 0; display: grid; gap: 0; max-width: 720px; }
.facts li {
  display: flex; gap: 16px; align-items: baseline;
  padding: 17px 0; border-top: 1px solid var(--line); font-size: 16.5px; color: var(--ink-soft);
}
.facts li:last-child { border-bottom: 1px solid var(--line); }
.facts b { color: var(--ink); font-weight: 600; flex: none; min-width: 148px; }
@media (max-width: 560px) {
  .facts li { flex-direction: column; gap: 4px; }
  .facts b { min-width: 0; }
}

/* ---------- closing ---------- */
.close { text-align: center; }
.close .subtitle { margin-left: auto; margin-right: auto; }
.close__actions { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin-top: 30px; }
.close__status {
  display: inline-flex; align-items: center; gap: 9px; margin-top: 26px;
  font-size: 14px; color: var(--ink-mute);
}
.dot { width: 7px; height: 7px; border-radius: 50%; background: var(--sage); flex: none; }

/* ---------- footer ---------- */
.foot { border-top: 1px solid var(--line); padding: 34px 0 44px; }
.foot__row { display: flex; flex-wrap: wrap; gap: 18px; justify-content: space-between; align-items: center; }
.foot__links { display: flex; flex-wrap: wrap; gap: 22px; font-size: 15px; }
.foot__links a { color: var(--ink-soft); text-decoration: none; }
.foot__links a:hover { color: var(--sage); }
.foot__legal { font-size: 14px; color: var(--ink-mute); }

/* ---------- motion ---------- */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity .7s ease, transform .7s cubic-bezier(.2,.8,.3,1); }
.reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation: none !important; transition-duration: .01ms !important; }
  .reveal { opacity: 1; transform: none; }
}

/* ---------- simple centered page (e.g. confirmed) ---------- */
.simple {
  min-height: 60vh; padding-top: 132px; padding-bottom: 100px;
  display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center;
}
.simple .title { margin-bottom: 14px; }

/* ---------- long-form legal content (privacy, terms) ---------- */
.legal { padding-top: clamp(90px, 10vw, 132px); padding-bottom: 80px; }
.legal__title {
  font-family: var(--display); font-style: italic; font-weight: 600;
  font-size: clamp(34px, 5.6vw, 52px); line-height: 1.08; letter-spacing: -0.015em;
  margin: 0 0 8px;
}
.legal__meta { font-size: 14px; color: var(--ink-mute); margin: 0 0 40px; }
.legal__intro {
  background: var(--card); border: 1px solid var(--line); border-radius: 20px;
  padding: clamp(20px, 3vw, 28px); margin: 0 0 40px; box-shadow: var(--shadow);
}
.legal__intro p { margin: 0 0 14px; color: var(--ink-soft); line-height: 1.65; }
.legal__intro p:last-child { margin-bottom: 0; }
.legal h2 {
  font-family: var(--display); font-style: italic; font-weight: 600;
  font-size: 24px; color: var(--ink); margin: 40px 0 12px;
}
.legal p { color: var(--ink-soft); line-height: 1.65; margin: 0 0 14px; font-size: 16px; }
.legal ul { margin: 0 0 14px; padding-left: 22px; color: var(--ink-soft); line-height: 1.65; }
.legal li { margin-bottom: 8px; }
.legal strong { color: var(--ink); font-weight: 600; }
.legal a { color: var(--sage); text-decoration: underline; text-underline-offset: 3px; }
.legal .callout {
  background: var(--card); border: 1px solid var(--line); border-left: 4px solid var(--sage);
  border-radius: 16px; padding: clamp(20px, 3vw, 26px); margin: 32px 0;
}
.legal .callout h2 { margin-top: 0; }
.legal .contact {
  display: inline-block; background: var(--card); border: 1px solid var(--line);
  border-radius: 14px; padding: 16px 20px; margin: 0 0 14px;
}
.legal .contact a { font-weight: 600; }
.legal hr { border: none; border-top: 1px solid var(--line); margin: 48px 0; }
.legal .fine { font-size: 14px; color: var(--ink-mute); }

/* ---------- faq (support) ---------- */
.faq { margin-top: 8px; }
.faq__item { border-top: 1px solid var(--line); padding: 22px 0; }
.faq__item:last-child { border-bottom: 1px solid var(--line); }
.faq__q { font-family: var(--display); font-weight: 600; font-size: 18px; margin: 0 0 8px; color: var(--ink); }
.faq__a { margin: 0; color: var(--ink-soft); font-size: 16px; line-height: 1.6; }
.faq__a a { color: var(--sage); text-decoration: underline; text-underline-offset: 3px; }
