/* Trovee landing page. Same tokens as the app (src/theme.ts): warm cream,
   charcoal ink, leaf green, marigold, Fraunces for display. Mobile first —
   nearly every visitor arrives from a phone. */

@font-face { font-family: Fraunces; font-weight: 600; font-display: swap; src: url(assets/fraunces-600.ttf) format("truetype"); }
@font-face { font-family: Fraunces; font-weight: 700; font-display: swap; src: url(assets/fraunces-700.ttf) format("truetype"); }

:root {
  --cream: #F4EFE6;
  --card: #FBF8F2;
  --ink: #262320;
  --ink60: rgba(38, 35, 32, 0.66);
  --ink12: rgba(38, 35, 32, 0.12);
  --beige: #E6D8C6;
  --green: #7CAB55;
  --green-deep: #5F9140;
  --green-ink: #4C7A30;      /* green that passes contrast as TEXT on cream */
  --gold: #DFA63A;
  --marigold: #E5AF2B;
  --band: #5F9140;           /* the privacy band */
  --on-band: #FBF8F2;
  --shadow: 0 24px 60px -24px rgba(38, 35, 32, 0.35);
  --display: Fraunces, "Iowan Old Style", Georgia, serif;
  --body: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root {
    --cream: #1C1915;
    --card: #282420;
    --ink: #F2EDE4;
    --ink60: rgba(242, 237, 228, 0.68);
    --ink12: rgba(242, 237, 228, 0.14);
    --beige: #3A342D;
    --green-ink: #9CCB74;
    --band: #35522A;
    --shadow: 0 24px 60px -24px rgba(0, 0, 0, 0.7);
  }
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--cream); color: var(--ink); font: 17px/1.6 var(--body); overflow-x: hidden; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--green-ink); text-underline-offset: 3px; }
h1, h2, h3 { font-family: var(--display); font-weight: 700; letter-spacing: -0.02em; line-height: 1.08; margin: 0; }
h1 em, h2 em { font-style: normal; color: var(--green-ink); }
p { margin: 0 0 1em; }
ul, ol { margin: 0; padding: 0; list-style: none; }

.wrap { width: min(1120px, 100% - 40px); margin-inline: auto; }
.wrap.narrow { width: min(720px, 100% - 40px); }
.center { text-align: center; }
.sr, .skip:not(:focus) { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip:focus { position: fixed; top: 8px; left: 8px; z-index: 99; background: var(--ink); color: var(--cream); padding: 10px 14px; border-radius: 10px; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; border-radius: 6px; }

/* ── buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; font: 600 16px/1 var(--body); text-decoration: none;
  padding: 14px 22px; border-radius: 999px; border: 1.5px solid transparent; cursor: pointer; transition: transform .15s ease, box-shadow .15s ease, background .15s; white-space: nowrap; }
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn-sm { padding: 10px 16px; font-size: 14.5px; }
.btn-lg { padding: 17px 26px; font-size: 17px; }
.btn-ink { background: var(--ink); color: var(--cream); }
.btn-green { background: var(--green-deep); color: #FBF8F2; }
.btn-ghost { border-color: var(--ink12); color: var(--ink); background: transparent; }
.btn-ghost:hover { background: var(--card); }

/* ── nav */
.nav { position: sticky; top: 0; z-index: 20; background: color-mix(in srgb, var(--cream) 86%, transparent); backdrop-filter: saturate(1.4) blur(14px); -webkit-backdrop-filter: saturate(1.4) blur(14px); border-bottom: 1px solid var(--ink12); }
.nav-in { width: min(1120px, 100% - 40px); margin-inline: auto; height: 64px; display: flex; align-items: center; gap: 24px; }
.nav nav { display: none; gap: 26px; margin-left: auto; }
.nav nav a { color: var(--ink); text-decoration: none; font-weight: 500; font-size: 15.5px; opacity: .8; }
.nav nav a:hover { opacity: 1; }
.nav .btn { margin-left: auto; }
.logo { font: 700 25px/1 var(--display); letter-spacing: -0.03em; color: var(--ink); text-decoration: none; display: inline-flex; align-items: baseline; }
.dot { width: 7px; height: 7px; border-radius: 50%; background: var(--gold); margin-left: 2px; display: inline-block; }
@media (min-width: 860px) { .nav nav { display: flex; } .nav .btn { margin-left: 0; } }

/* ── hero */
.hero { padding: 44px 0 0; overflow: hidden; }
.hero-in { width: min(1120px, 100% - 40px); margin-inline: auto; display: grid; gap: 36px; align-items: center; }
h1 { font-size: clamp(40px, 9.2vw, 74px); }
.sub { font-size: clamp(17px, 2.2vw, 20px); color: var(--ink60); max-width: 34em; margin: 20px 0 28px; }
.pill { display: inline-flex; align-items: center; gap: 9px; background: var(--card); border: 1px solid var(--ink12); padding: 7px 14px; border-radius: 999px; font-size: 14px; font-weight: 600; margin-bottom: 20px; }
.pulse { width: 9px; height: 9px; border-radius: 50%; background: var(--green-deep); box-shadow: 0 0 0 0 rgba(95,145,64,.6); animation: pulse 2s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 9px rgba(95,145,64,0); } 100% { box-shadow: 0 0 0 0 rgba(95,145,64,0); } }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; }
.fine { font-size: 13.5px; color: var(--ink60); margin: 14px 0 0; }

.hero-art { position: relative; height: 470px; margin: 0 -20px; }
.blob { position: absolute; left: 50%; bottom: -120px; width: 620px; height: 620px; transform: translateX(-50%); border-radius: 50%; background: radial-gradient(closest-side, var(--beige), transparent 72%); }
.phone { position: relative; width: 250px; border-radius: 42px; padding: 9px; background: #1b1917; box-shadow: var(--shadow), inset 0 0 0 1.5px rgba(255,255,255,.08); }
.phone img { border-radius: 33px; width: 100%; }
.phone-hero { position: absolute; left: 50%; top: 10px; transform: translateX(-30%) rotate(4deg); width: 258px; }
.hero-ill { position: absolute; left: 50%; bottom: 0; height: 290px; width: auto; transform: translateX(-98%); filter: drop-shadow(0 14px 18px rgba(38,35,32,.18)); }

@media (min-width: 900px) {
  .hero { padding-top: 72px; }
  .hero-in { grid-template-columns: 1.05fr .95fr; gap: 24px; }
  .hero-art { height: 640px; margin: 0; }
  .phone-hero { width: 320px; top: 0; transform: translateX(-18%) rotate(4deg); }
  .phone-hero.phone { border-radius: 52px; padding: 11px; } .phone-hero img { border-radius: 42px; }
  .hero-ill { height: 400px; transform: translateX(-94%); }
}

/* ── strip */
.strip { border-block: 1px solid var(--ink12); background: var(--card); margin-top: -1px; }
.strip ul { width: min(1120px, 100% - 40px); margin-inline: auto; display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 26px; padding: 18px 0; font: 600 16px/1.2 var(--display); color: var(--ink60); }
.strip li:not(:last-child)::after { content: "✦"; margin-left: 26px; color: var(--gold); font-size: 12px; vertical-align: 2px; }

/* ── sections */
.section { padding: 84px 0; }
.section-card { background: var(--card); border-block: 1px solid var(--ink12); }
.eyebrow { font: 700 13px/1 var(--body); letter-spacing: .12em; text-transform: uppercase; color: var(--green-ink); margin: 0 0 14px; }
h2 { font-size: clamp(32px, 6vw, 52px); margin-bottom: 18px; }
h3 { font-size: clamp(23px, 3.4vw, 30px); margin-bottom: 12px; }
.lede { font-size: 19px; color: var(--ink60); max-width: 36em; }
.lede.center { margin-inline: auto; }

.ticks li { position: relative; padding-left: 30px; margin: 10px 0; }
.ticks li::before { content: ""; position: absolute; left: 0; top: .32em; width: 19px; height: 19px; border-radius: 50%; background: var(--green-deep)
  url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5.5 10.5l3 3 6-7' fill='none' stroke='%23FBF8F2' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/100% no-repeat; }

.tag { display: inline-block; font: 700 12.5px/1 var(--body); letter-spacing: .04em; padding: 7px 11px; border-radius: 999px; margin-bottom: 14px; }
.tag-green { background: color-mix(in srgb, var(--green) 24%, transparent); color: var(--green-ink); }
.tag-gold { background: color-mix(in srgb, var(--gold) 30%, transparent); color: var(--ink); }

/* ── feature rows */
.feature { display: grid; gap: 34px; align-items: center; padding: 46px 0; border-top: 1px solid var(--ink12); }
.feature:first-of-type { border-top: 0; padding-top: 30px; }
.feature-copy p { color: var(--ink60); }
.feature-art { display: flex; justify-content: center; position: relative; }
.feature-art::before { content: ""; position: absolute; inset: 8% 6%; border-radius: 40px; background: var(--card); border: 1px solid var(--ink12); z-index: 0; }
.section-card .feature-art::before { background: var(--cream); }
.feature-art .phone { z-index: 1; transform: rotate(-2.5deg); }
.flip .feature-art .phone { transform: rotate(2.5deg); }
.duo { padding-right: 60px; }
.duo .phone-back { position: absolute; right: calc(50% - 170px); top: 44px; z-index: 0; transform: rotate(7deg) scale(.9); filter: brightness(.96); }
@media (min-width: 860px) {
  .feature { grid-template-columns: 1fr 1fr; gap: 60px; padding: 70px 0; }
  .flip .feature-copy { order: 2; }
  .phone { width: 290px; }
  .duo .phone-back { right: calc(50% - 215px); }
}

/* ── steps */
.steps { display: grid; gap: 18px; margin-top: 34px; counter-reset: s; }
.steps li { background: var(--cream); border: 1px solid var(--ink12); border-radius: 22px; padding: 26px; }
.steps .n { display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--marigold); color: #262320; font: 700 19px/1 var(--display); margin-bottom: 16px; }
.steps p { color: var(--ink60); margin: 0; }
.steps h3 { font-size: 23px; }
@media (min-width: 800px) { .steps { grid-template-columns: repeat(3, 1fr); } }

/* ── two-column blocks */
.two { display: grid; gap: 40px; align-items: center; }
.two .btn { margin-top: 26px; white-space: normal; text-align: center; line-height: 1.25; }
.seller-art img, .privacy-art img, .founder-art img { margin-inline: auto; max-height: 420px; width: auto; filter: drop-shadow(0 16px 20px rgba(38,35,32,.16)); }
@media (min-width: 860px) { .two { grid-template-columns: 1.1fr .9fr; gap: 70px; } .two > .privacy-art, .two > .founder-art { order: 0; } .section-green .two, .founder { grid-template-columns: .85fr 1.15fr; } }

/* ── privacy band */
.section-green { background: var(--band); color: var(--on-band); }
.on-dark { color: var(--on-band); }
.eyebrow.on-dark { color: #D7EBC4; }
.privacy-art { background: var(--on-band); border-radius: 32px; padding: 26px 20px 0; max-width: 380px; margin-inline: auto; overflow: hidden; }
.privacy-art img { filter: none; }
.promises { display: grid; gap: 22px; margin-top: 28px; }
.promises h3 { font-size: 21px; margin-bottom: 4px; color: var(--on-band); }
.promises p { margin: 0; color: rgba(251,248,242,.82); }
@media (min-width: 640px) { .promises { grid-template-columns: 1fr 1fr; gap: 28px 34px; } }

/* ── pricing */
.plans { display: grid; gap: 18px; margin-top: 44px; align-items: start; }
.plan { position: relative; background: var(--card); border: 1px solid var(--ink12); border-radius: 26px; padding: 30px 26px; }
.plan h3 { font-size: 24px; }
.price { font: 700 46px/1 var(--display); letter-spacing: -0.03em; margin: 14px 0 6px; }
.price span { font: 500 16px/1 var(--body); color: var(--ink60); letter-spacing: 0; }
.price-alt { font-size: 14.5px; color: var(--ink60); margin: 0 0 8px; }
.plan .ticks { margin-top: 18px; font-size: 16px; }
.plan-plus { border-color: var(--green-deep); box-shadow: 0 0 0 1px var(--green-deep); }
.plan-pro { border-color: var(--gold); box-shadow: 0 0 0 1px var(--gold), var(--shadow); }
.badge { position: absolute; top: -13px; right: 22px; background: var(--gold); color: #262320; font: 700 12.5px/1 var(--body); padding: 7px 12px; border-radius: 999px; }
@media (min-width: 900px) { .plans { grid-template-columns: repeat(3, 1fr); } }

/* ── founder */
.founder p { color: var(--ink60); }
.founder .sig { color: var(--ink); font-weight: 600; margin-top: 22px; }

/* ── faq */
details { border-bottom: 1px solid var(--ink12); }
details:first-of-type { border-top: 1px solid var(--ink12); margin-top: 34px; }
summary { list-style: none; cursor: pointer; padding: 21px 40px 21px 0; font: 600 20px/1.3 var(--display); position: relative; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; position: absolute; right: 4px; top: 50%; transform: translateY(-52%); font: 400 28px/1 var(--body); color: var(--green-ink); transition: transform .2s; }
details[open] summary::after { transform: translateY(-52%) rotate(45deg); }
details p { color: var(--ink60); padding: 0 8px 22px 0; margin: 0; }

/* ── get / waitlist */
.get { background: var(--card); border-top: 1px solid var(--ink12); }
.get-ill { height: 190px; width: auto; margin: 0 auto 18px; }
.waitlist { margin-top: 30px; text-align: left; }
.row { display: flex; flex-direction: column; gap: 10px; }
.row-sub { margin-top: 10px; }
.waitlist input, .waitlist select { width: 100%; font: 500 17px/1.2 var(--body); color: var(--ink); background: var(--cream); border: 1.5px solid var(--ink12); border-radius: 16px; padding: 16px 18px; appearance: none; -webkit-appearance: none; min-width: 0; }
.waitlist select { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5 8l5 5 5-5' fill='none' stroke='%237a746c' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; background-size: 20px; padding-right: 44px; }
.waitlist input::placeholder { color: var(--ink60); }
.waitlist input:focus, .waitlist select:focus { outline: none; border-color: var(--green-deep); box-shadow: 0 0 0 4px color-mix(in srgb, var(--green) 28%, transparent); }
.waitlist .btn { border-radius: 16px; padding: 17px 24px; }
.waitlist .btn[disabled] { opacity: .6; cursor: progress; transform: none; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-note { min-height: 1.6em; margin: 14px 0 0; font-weight: 600; text-align: center; }
.form-note.ok { color: var(--green-ink); }
.form-note.err { color: #C4573A; }
.waitlist .fine { text-align: center; }
.waitlist.done .row, .waitlist.done .fine { display: none; }
@media (min-width: 640px) { .row { flex-direction: row; } .row .btn { flex: none; } .row-sub select { flex: 1.4; } .row-sub input { flex: 1; } }

/* ── footer */
.foot { padding: 46px 0 34px; border-top: 1px solid var(--ink12); }
.foot-in { display: grid; gap: 26px; }
.foot p { color: var(--ink60); font-size: 15px; margin: 10px 0 0; }
.foot nav { display: flex; flex-wrap: wrap; gap: 10px 24px; }
.foot nav a { color: var(--ink); text-decoration: none; font-weight: 500; font-size: 15.5px; opacity: .8; }
.foot nav a:hover { opacity: 1; text-decoration: underline; }
.copy { width: min(1120px, 100% - 40px); margin: 30px auto 0; font-size: 13px !important; }
@media (min-width: 760px) { .foot-in { grid-template-columns: 1fr auto; align-items: start; } }

/* ── gentle reveal; off for people who ask for less motion */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .reveal { opacity: 1; transform: none; transition: none; } .pulse { animation: none; } .btn { transition: none; } }

/* ── dark mode: the illustrations are drawn in black ink, so give them light to stand on */
@media (prefers-color-scheme: dark) {
  .seller-art, .founder-art { background: #F4EFE6; border-radius: 32px; padding: 26px 20px 0; max-width: 400px; margin-inline: auto; overflow: hidden; }
  .seller-art img, .founder-art img { filter: none; }
  .hero-ill, .get-ill { filter: drop-shadow(0 0 1.5px rgba(251,248,242,.95)) drop-shadow(0 0 1.5px rgba(251,248,242,.95)); }
}

/* ── mobile menu */
.menu-btn { display: inline-grid; gap: 5px; place-content: center; width: 44px; height: 44px; margin-left: 4px; border-radius: 12px; border: 1.5px solid var(--ink12); background: transparent; cursor: pointer; padding: 0; }
.menu-btn span { display: block; width: 18px; height: 2px; border-radius: 2px; background: var(--ink); transition: transform .2s, opacity .2s; }
.nav.open .menu-btn span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav.open .menu-btn span:nth-child(2) { opacity: 0; }
.nav.open .menu-btn span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
@media (max-width: 859px) {
  .nav.open nav { display: flex; flex-direction: column; gap: 0; position: absolute; left: 0; right: 0; top: 64px; margin: 0; padding: 6px 20px 14px; background: var(--cream); border-bottom: 1px solid var(--ink12); box-shadow: var(--shadow); }
  .nav.open nav a { padding: 15px 2px; font-size: 18px; opacity: 1; border-top: 1px solid var(--ink12); }
  .nav.open nav a:first-child { border-top: 0; }
}
@media (min-width: 860px) { .menu-btn { display: none; } }

/* ── how it works, with the photo */
.how { display: grid; gap: 34px; align-items: center; }
.how-photo { position: relative; margin: 0 auto; max-width: 420px; transform: rotate(-2deg); }
.how-photo img { border-radius: 28px; box-shadow: var(--shadow); border: 6px solid var(--cream); }
.how-photo figcaption { position: absolute; left: 18px; bottom: 20px; display: inline-flex; align-items: center; gap: 8px; background: rgba(251,248,242,.94); color: #262320; font: 700 13.5px/1 var(--body); padding: 10px 14px; border-radius: 999px; box-shadow: 0 6px 18px rgba(0,0,0,.18); }
.how .steps { grid-template-columns: 1fr; margin-top: 26px; }
.how .steps li { display: grid; grid-template-columns: 40px 1fr; column-gap: 16px; padding: 20px 22px; }
.how .steps .n { margin: 0; grid-row: span 2; }
.how .steps h3 { margin-bottom: 4px; }
@media (min-width: 900px) { .how { grid-template-columns: .9fr 1.1fr; gap: 70px; } }

/* ── official badge + QR */
.badge-link { display: inline-block; margin-top: 8px; border-radius: 12px; }
.badge-link img { height: 60px; width: auto; }
.qr { display: none; }
@media (min-width: 900px) and (hover: hover) {
  .qr { display: inline-flex; align-items: center; gap: 18px; text-align: left; margin-top: 26px; padding: 14px 20px 14px 14px; background: var(--cream); border: 1px solid var(--ink12); border-radius: 22px; }
  .qr img { background: #FBF8F2; border-radius: 12px; padding: 8px; width: 116px; height: 116px; }
  .qr p { margin: 0; color: var(--ink60); font-size: 15px; max-width: 15em; }
  .qr strong { color: var(--ink); }
}

/* ── sticky bar on phones */
.stick { position: fixed; z-index: 30; left: 12px; right: 12px; bottom: calc(12px + env(safe-area-inset-bottom)); display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 10px 10px 18px; border-radius: 999px; background: var(--ink); color: var(--cream); box-shadow: 0 14px 34px -10px rgba(0,0,0,.55); transform: translateY(140%); transition: transform .3s ease; }
.stick.show { transform: none; }
.stick p { margin: 0; display: grid; line-height: 1.2; font-size: 15px; }
.stick span { font-size: 12.5px; opacity: .72; }
@media (min-width: 860px) { .stick { display: none !important; } }
@media (prefers-reduced-motion: reduce) { .stick, .menu-btn span { transition: none; } }
