/* wishhh — global styles
   Brand: wine #7D2E3F · champagne gold #C9A26B · cream #FAF6F1
   Breakpoints: 768 / 1024 (mobile-first) */

:root {
  --wine: #7D2E3F;
  --wine-dark: #5A1F2D;
  --wine-soft: #F3E6E8;
  --gold: #C9A26B;
  --gold-soft: #F6ECDC;
  --cream: #FAF6F1;
  --ink: #2A1A1F;
  --ink-2: #6E5F64;
  --ink-3: #9A8D91;
  --line: #EADFD8;
  --footer: #24151A;
  --white: #FFFFFF;

  --serif: Georgia, "Times New Roman", "Songti SC", serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "PingFang SC", "Noto Sans", sans-serif;

  --r-sm: 12px;
  --r: 16px;
  --r-lg: 24px;
  --shadow: 0 10px 30px rgba(42, 26, 31, .08);
  --shadow-lg: 0 24px 60px rgba(42, 26, 31, .28);
  --max: 1120px;
  --gutter: 16px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--serif); line-height: 1.2; margin: 0; }
p { margin: 0; }

.container { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.skip-link { position: absolute; left: -9999px; }
.skip-link:focus { left: 16px; top: 16px; z-index: 100; background: var(--white); padding: 8px 12px; border-radius: 8px; }

/* ---------- Brand wordmark ---------- */
.logo {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 700;
  font-size: 26px;
  letter-spacing: .5px;
  color: var(--wine);
  text-decoration: none;
  line-height: 1;
}

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, .92);
  backdrop-filter: saturate(1.4) blur(10px);
  -webkit-backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid var(--line);
}
.site-header .container { display: flex; align-items: center; height: 64px; gap: 20px; }
.nav { display: flex; gap: 16px; margin-right: auto; }
.nav a { color: var(--ink-2); text-decoration: none; font-size: 15px; padding: 6px 0; }
.nav a:hover { color: var(--wine); }
.nav a[aria-current] { color: var(--wine); font-weight: 600; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font: 600 15px/1 var(--sans);
  padding: 12px 20px;
  border-radius: 999px;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform .15s ease, background .15s ease, box-shadow .15s ease;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--wine); color: var(--white); }
.btn-primary:hover { background: var(--wine-dark); }
.btn-gold { background: linear-gradient(135deg, #DDBB86, var(--gold)); color: var(--ink); }
.btn-gold:hover { box-shadow: 0 6px 18px rgba(201, 162, 107, .4); }
.btn-outline { background: var(--white); color: var(--wine); border-color: #E2B9C2; }
.btn-outline:hover { background: var(--wine-soft); }
.btn-sm { padding: 10px 16px; font-size: 14px; }

/* Store badges */
.stores { display: flex; flex-wrap: wrap; gap: 12px; }
.store {
  display: inline-flex; align-items: center; gap: 10px;
  min-width: 168px; height: 52px; padding: 0 18px;
  background: #000; color: #fff; text-decoration: none;
  border: 1px solid rgba(255, 255, 255, .25);
  border-radius: 12px;
  transition: transform .15s ease, opacity .15s ease;
}
.store:hover { transform: translateY(-1px); }
.store svg { width: 22px; height: 22px; flex: none; fill: currentColor; }
.store span { display: flex; flex-direction: column; line-height: 1.1; }
.store small { font-size: 10px; letter-spacing: .3px; opacity: .85; }
.store strong { font-size: 17px; font-weight: 600; }
/* Official Google Play badge image: the artwork brings its own border and background. */
.store.store-badge { min-width: 0; flex: none; padding: 0; background: none; border: 0; border-radius: 9px; }
.store-badge img { display: block; height: 52px; width: auto; }
.store.is-disabled { opacity: .45; pointer-events: none; cursor: default; }
.stores.center { justify-content: center; }

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden;
  color: var(--white);
  background:
    radial-gradient(60% 80% at 80% 10%, rgba(201, 162, 107, .22), transparent 60%),
    radial-gradient(70% 70% at 10% 90%, rgba(141, 52, 72, .55), transparent 60%),
    linear-gradient(135deg, #2E1820 0%, #5A2232 55%, #8A3A4C 100%);
}
.hero .container {
  display: grid; gap: 48px; align-items: center;
  padding-top: 56px; padding-bottom: 64px;
}
.hero h1 { font-size: clamp(36px, 7vw, 60px); font-weight: 700; letter-spacing: -.5px; }
.hero h1 em { font-style: italic; color: #F0D9B5; }
.hero .lede { margin-top: 18px; font-size: 18px; color: rgba(255, 255, 255, .82); max-width: 34em; }
.hero .stores { margin-top: 28px; }
.hero .fineprint { margin-top: 14px; font-size: 13px; color: rgba(255, 255, 255, .6); }
.hero-visual { display: flex; justify-content: center; }

/* ---------- App screenshots (PNG/AVIF with the phone frame baked in) ---------- */
.shot { display: block; width: 280px; max-width: 100%; flex: none; }
.shot img { width: 100%; height: auto; filter: drop-shadow(0 24px 40px rgba(42, 26, 31, .28)); }
.hero .shot img { filter: drop-shadow(0 30px 60px rgba(0, 0, 0, .5)); }
.feature .shot { margin: 0 auto; width: 260px; }

/* ---------- Trust strip ---------- */
.trust { background: var(--white); border-bottom: 1px solid var(--line); }
.trust ul {
  list-style: none; margin: 0 auto; padding: 0;
  max-width: var(--max);
  display: grid; grid-template-columns: repeat(2, 1fr);
}
.trust li {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  padding: 14px 8px; font-size: 13px; color: var(--ink-2); text-align: center;
  border-right: 1px solid var(--line); border-bottom: 1px solid var(--line);
}
.trust li:nth-child(2n) { border-right: 0; }
.trust li:nth-child(n+3) { border-bottom: 0; }
.trust svg { width: 16px; height: 16px; flex: none; stroke: var(--wine); fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.trust strong { color: var(--wine); font-weight: 700; }

/* ---------- Sections ---------- */
.section { padding: 72px 0; }
.section-head { text-align: center; margin-bottom: 36px; }
.section-head h2 { font-size: clamp(26px, 4vw, 36px); color: var(--wine); }
.section-head p { margin-top: 8px; color: var(--ink-2); }
.eyebrow { font: 600 12px/1 var(--sans); letter-spacing: 2px; text-transform: uppercase; color: var(--gold); margin-bottom: 10px; display: block; }

/* Pillars */
.cards-3 { display: grid; gap: 16px; }
.card {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--r);
  padding: 28px 24px; box-shadow: var(--shadow);
}
.pillar { text-align: center; }
.pillar .icon {
  width: 52px; height: 52px; margin: 0 auto 14px; border-radius: 14px;
  display: grid; place-items: center; background: var(--wine-soft);
}
.pillar .icon svg { width: 26px; height: 26px; stroke: var(--wine); fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.pillar h3 { font-family: var(--sans); font-size: 18px; font-weight: 700; }
.pillar p { margin-top: 8px; color: var(--ink-2); font-size: 15px; }
.pillars-more { text-align: center; margin-top: 28px; }
.link-arrow { color: var(--wine); font-weight: 600; text-decoration: none; }
.link-arrow:hover { text-decoration: underline; }

/* Characters */
.chars {
  display: grid; grid-auto-flow: column; grid-auto-columns: 78%;
  gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory;
  padding: 4px var(--gutter) 16px; margin: 0 calc(var(--gutter) * -1);
  scrollbar-width: none;
}
.chars::-webkit-scrollbar { display: none; }
.char {
  scroll-snap-align: start;
  display: block; text-decoration: none; color: inherit;
  background: var(--white); border: 1px solid var(--line); border-radius: var(--r);
  overflow: hidden; box-shadow: var(--shadow);
  transition: transform .2s ease, box-shadow .2s ease;
}
.char:hover { transform: translateY(-3px); box-shadow: 0 16px 40px rgba(42, 26, 31, .14); }
.char-art { position: relative; aspect-ratio: 4 / 5; display: flex; align-items: flex-end; padding: 16px 18px; background: #1A1014; overflow: hidden; }
.char-art img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 20%; transition: transform .4s ease; }
.char-art::after { content: ""; position: absolute; inset: 45% 0 0; background: linear-gradient(transparent, rgba(16, 8, 12, .85)); }
.char:hover .char-art img { transform: scale(1.03); }
.char-art h3 { position: relative; z-index: 1; color: #fff; font-size: 20px; text-shadow: 0 2px 10px rgba(0, 0, 0, .45); }
.chars-cta { text-align: center; margin-top: 20px; }

/* Creator banner */
.creator {
  display: grid; gap: 20px; align-items: center;
  padding: 32px 28px; border-radius: var(--r-lg);
  color: #fff;
  background:
    radial-gradient(60% 120% at 100% 0%, rgba(201, 162, 107, .25), transparent 60%),
    linear-gradient(120deg, #3A1D27, #6A2636);
  box-shadow: var(--shadow);
}
.creator h2 { color: #F0D9B5; font-size: clamp(22px, 3.4vw, 30px); }
.creator p { margin-top: 8px; color: rgba(255, 255, 255, .8); }

/* Bottom CTA */
.cta { text-align: center; padding: 72px 0 80px; }
.cta h2 { color: var(--wine); font-size: clamp(26px, 4.4vw, 40px); margin-bottom: 24px; }
.cta p.fineprint { margin-top: 14px; font-size: 13px; color: var(--ink-3); }

/* ---------- Page head (inner pages) ---------- */
.page-head { text-align: center; padding: 56px 0 32px; }
.page-head h1 { color: var(--wine); font-size: clamp(30px, 5vw, 44px); }
.page-head p { margin: 10px auto 0; color: var(--ink-2); max-width: 40em; }
.page-head a { color: var(--wine); }

/* ---------- Features rows ---------- */
.feature { padding: 56px 0; }
.feature:nth-child(odd) { background: var(--white); }
.feature .container { display: grid; gap: 32px; align-items: center; }
.feature h2 { color: var(--wine); font-size: clamp(24px, 3.6vw, 34px); }
.feature-visual + div > p { margin-top: 12px; color: var(--ink-2); font-size: 17px; }
.feature ul { margin: 16px 0 0; padding: 0; list-style: none; display: grid; gap: 8px; }
.feature li { display: flex; gap: 10px; color: var(--ink); font-size: 15px; }
.feature li::before { content: "✦"; color: var(--gold); flex: none; }
.soon { font-size: 11px; font-weight: 700; letter-spacing: .5px; text-transform: uppercase; padding: 2px 8px; border-radius: 99px; background: var(--gold-soft); color: #8A6A3A; vertical-align: 2px; }

/* ---------- FAQ ---------- */
.faq { display: grid; gap: 12px; max-width: 820px; margin: 0 auto; }
.faq details {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--r);
  padding: 0 22px; scroll-margin-top: 88px;
}
.faq details[open] { box-shadow: var(--shadow); }
.faq details.highlight { border-color: #D9A3AF; }
.faq summary {
  list-style: none; cursor: pointer;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 18px 0; font-weight: 700; font-size: 16px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 20px; font-weight: 400; color: var(--ink-2); flex: none; }
.faq details[open] summary::after { content: "−"; }
.faq details.highlight summary { color: var(--wine); }
.faq .answer { border-top: 1px dashed var(--line); padding: 14px 0 20px; color: var(--ink-2); }
.faq .answer p + p, .faq .answer p + ol, .faq .answer ol + p { margin-top: 10px; }
.faq .answer ol { margin: 10px 0 0; padding-left: 20px; }
.faq .answer a { color: var(--wine); }
.faq .answer strong { color: var(--ink); }

.help-grid { display: grid; gap: 16px; max-width: 820px; margin: 40px auto 0; }
.help-grid h2 { font-family: var(--sans); font-size: 18px; color: var(--wine); }
.help-grid p { margin-top: 6px; color: var(--ink-2); font-size: 15px; }
.help-grid a:not(.btn) { color: var(--wine); }
.help-grid .btn { margin-top: 18px; }

/* ---------- Legal ---------- */
.legal { max-width: 780px; margin: 0 auto; padding: 0 var(--gutter) 80px; }
.legal .toc { background: var(--white); border: 1px solid var(--line); border-radius: var(--r); padding: 20px 24px; margin-bottom: 36px; }
.legal .toc b { display: block; margin-bottom: 8px; }
.legal .toc ol { margin: 0; padding-left: 20px; columns: 2 220px; column-gap: 24px; }
.legal .toc a { color: var(--wine); text-decoration: none; font-size: 15px; }
.legal .toc a:hover { text-decoration: underline; }
.legal section { scroll-margin-top: 88px; margin-bottom: 32px; }
.legal h3 { font-size: 22px; color: var(--wine); margin-bottom: 10px; }
.legal p, .legal li { color: var(--ink-2); }
.legal p + p { margin-top: 10px; }
.legal ul { padding-left: 20px; margin: 10px 0; }
.legal li + li { margin-top: 4px; }
.legal a:not(.btn) { color: var(--wine); }
.legal table { width: 100%; border-collapse: collapse; margin: 12px 0; font-size: 14px; background: var(--white); border-radius: var(--r-sm); overflow: hidden; }
.legal th, .legal td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
.legal th { background: var(--wine-soft); color: var(--wine); font-weight: 600; }
.legal .table-wrap { overflow-x: auto; }

/* ---------- Footer ---------- */
.site-footer { background: var(--footer); color: rgba(255, 255, 255, .85); padding: 40px 0 36px; font-size: 14px; }
.footer-top { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 28px; }
.footer-top .logo { color: #F0D9B5; font-size: 22px; margin-right: 12px; }
.footer-top a { text-decoration: none; }
.footer-top a:hover { color: #fff; text-decoration: underline; }
.footer-legal { margin-top: 20px; padding-top: 18px; border-top: 1px solid rgba(255, 255, 255, .1); color: rgba(255, 255, 255, .5); font-size: 12px; display: grid; gap: 4px; }

/* ---------- TODO overlay (append ?todo to any URL) ---------- */
.show-todo [data-todo] { outline: 2px dashed #E0367A !important; outline-offset: 2px; position: relative; }
.show-todo [data-todo]::after {
  content: "TODO · " attr(data-todo);
  position: absolute; left: 0; top: 0; transform: translateY(-100%); z-index: 40;
  max-width: 320px; padding: 3px 8px; border-radius: 4px;
  background: #E0367A; color: #fff; font: 600 11px/1.35 var(--sans); font-style: normal; text-align: left; text-transform: none; letter-spacing: 0;
  pointer-events: none; white-space: normal;
}

/* ---------- Responsive ---------- */
@media (max-width: 420px) {
  .site-header .container { gap: 12px; }
  .nav { gap: 12px; }
  .nav a { font-size: 14px; }
  .logo { font-size: 23px; }
  .store { min-width: 0; flex: 1 1 150px; }
}

@media (min-width: 768px) {
  :root { --gutter: 32px; }
  .site-header .container { height: 72px; gap: 32px; }
  .nav { gap: 28px; }
  .trust ul { grid-template-columns: repeat(4, 1fr); }
  .trust li { border-bottom: 0; font-size: 14px; }
  .trust li:nth-child(2n) { border-right: 1px solid var(--line); }
  .trust li:last-child { border-right: 0; }
  .cards-3 { grid-template-columns: repeat(3, 1fr); }
  .chars { grid-auto-flow: row; grid-template-columns: repeat(3, 1fr); overflow: visible; padding: 4px 0 0; margin: 0; }
  .creator { grid-template-columns: 1fr auto; padding: 36px 40px; }
  .feature .container { grid-template-columns: 300px 1fr; gap: 56px; }
  .feature:nth-child(even) .container { grid-template-columns: 1fr 300px; }
  .feature:nth-child(even) .feature-visual { order: 2; }
  .help-grid { grid-template-columns: 1fr 1fr; }
}

@media (min-width: 1024px) {
  .hero .shot { width: 300px; }
  .hero .container { grid-template-columns: 1.25fr 1fr; padding-top: 80px; padding-bottom: 88px; }
  .section { padding: 96px 0; }
  .feature { padding: 80px 0; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}

/* ---------- Single-page anchors ---------- */
main [id] { scroll-margin-top: 80px; }
#features .page-head h2 { color: var(--wine); font-size: clamp(28px, 4.6vw, 40px); }
