/* Reseller Tool — marketing site. Uses the app's shadcn tokens (neutral, light +
   dark) so it matches the product UI. Hand-written, zero-framework, SEO-friendly. */

:root {
  --radius: 0.625rem;
  --background: oklch(1 0 0);
  --foreground: oklch(0.145 0 0);
  --card: oklch(1 0 0);
  --card-foreground: oklch(0.145 0 0);
  --primary: oklch(0.205 0 0);
  --primary-foreground: oklch(0.985 0 0);
  --secondary: oklch(0.97 0 0);
  --muted: oklch(0.97 0 0);
  --muted-foreground: oklch(0.556 0 0);
  --accent: oklch(0.97 0 0);
  --border: oklch(0.922 0 0);
  --ring: oklch(0.708 0 0);
  --shadow: 0 1px 2px oklch(0 0 0 / .05), 0 12px 30px -14px oklch(0 0 0 / .22);
  --shadow-sm: 0 1px 2px oklch(0 0 0 / .05), 0 6px 16px -10px oklch(0 0 0 / .16);
  --maxw: 1140px;
}
.dark {
  --background: oklch(0.145 0 0);
  --foreground: oklch(0.985 0 0);
  --card: oklch(0.205 0 0);
  --card-foreground: oklch(0.985 0 0);
  --primary: oklch(0.922 0 0);
  --primary-foreground: oklch(0.205 0 0);
  --secondary: oklch(0.269 0 0);
  --muted: oklch(0.269 0 0);
  --muted-foreground: oklch(0.708 0 0);
  --accent: oklch(0.269 0 0);
  --border: oklch(1 0 0 / 12%);
  --ring: oklch(0.556 0 0);
  --shadow: 0 1px 2px oklch(0 0 0 / .4), 0 12px 30px -14px oklch(0 0 0 / .5);
  --shadow-sm: 0 1px 2px oklch(0 0 0 / .35), 0 6px 16px -10px oklch(0 0 0 / .4);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--background);
  color: var(--foreground);
  font-family: "Hanken Grotesk", ui-sans-serif, system-ui, sans-serif;
  font-size: 17px; line-height: 1.6;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
  transition: background .2s ease, color .2s ease;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

h1, h2, h3 { font-family: "Fraunces", Georgia, serif; font-weight: 600; line-height: 1.08; letter-spacing: -.01em; margin: 0; color: var(--foreground); }
h1 { font-size: clamp(2.6rem, 6vw, 4.4rem); }
h2 { font-size: clamp(2rem, 4vw, 3rem); }
h3 { font-size: 1.35rem; line-height: 1.2; }
p { margin: 0; }

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
.eyebrow { font-size: .78rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--muted-foreground); }
.lead { font-size: clamp(1.05rem, 1.6vw, 1.28rem); color: var(--muted-foreground); }
.muted { color: var(--muted-foreground); }
.center { text-align: center; }

/* Buttons */
.btn { display: inline-flex; align-items: center; gap: .5rem; font-weight: 600; font-size: .98rem; padding: .8rem 1.4rem; border-radius: calc(var(--radius) + 2px); border: 1px solid transparent; cursor: pointer; transition: transform .12s ease, box-shadow .12s ease, background .12s ease, opacity .12s ease; }
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--primary); color: var(--primary-foreground); box-shadow: var(--shadow-sm); }
.btn-primary:hover { opacity: .9; }
.btn-ghost { background: transparent; color: var(--foreground); border-color: var(--border); }
.btn-ghost:hover { background: var(--accent); }
.btn-lg { padding: 1rem 1.7rem; font-size: 1.05rem; }

/* Header */
header.site { position: sticky; top: 0; z-index: 50; backdrop-filter: saturate(1.4) blur(10px); background: color-mix(in oklab, var(--background) 84%, transparent); border-bottom: 1px solid var(--border); }
.nav { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.brand { display: inline-flex; align-items: center; gap: .6rem; font-family: "Fraunces", serif; font-weight: 600; font-size: 1.22rem; }
.brand .dot { width: 26px; height: 26px; border-radius: 8px; background: var(--primary); display: grid; place-items: center; color: var(--primary-foreground); font-size: .9rem; }
.nav-links { display: flex; align-items: center; gap: 1.6rem; }
.nav-links a { font-size: .96rem; color: var(--muted-foreground); font-weight: 500; }
.nav-links a:hover { color: var(--foreground); }
.nav-cta { display: flex; align-items: center; gap: .6rem; }
.icon-btn { width: 38px; height: 38px; border-radius: 999px; border: 1px solid var(--border); background: transparent; color: var(--muted-foreground); cursor: pointer; display: grid; place-items: center; }
.nav-toggle { display: none; color: var(--foreground); }
.nav-mobile { display: none; }
.icon-btn:hover { color: var(--foreground); background: var(--accent); }
.icon-btn .moon { display: none; } .dark .icon-btn .sun { display: none; } .dark .icon-btn .moon { display: block; }

/* Sections */
section { padding: clamp(56px, 8vw, 104px) 0; }
.section-head { max-width: 660px; margin: 0 auto 56px; text-align: center; }
.section-head .lead { margin-top: 1rem; }

/* Hero */
.hero { padding-top: clamp(48px, 7vw, 86px); padding-bottom: clamp(40px, 6vw, 72px); }
.hero-grid { display: grid; gap: 40px; }
.hero h1 { margin-top: 1.1rem; max-width: 15ch; }
.hero .lead { margin-top: 1.4rem; max-width: 54ch; }
.hero-cta { display: flex; flex-wrap: wrap; gap: .9rem; margin-top: 2rem; }
.hero-trust { margin-top: 1.4rem; font-size: .9rem; color: var(--muted-foreground); display: flex; gap: 1.2rem; flex-wrap: wrap; }

/* App mock */
.mock { background: var(--card); border: 1px solid var(--border); border-radius: calc(var(--radius) + 6px); box-shadow: var(--shadow); overflow: hidden; }
.mock-bar { display: flex; align-items: center; gap: .5rem; padding: 12px 14px; border-bottom: 1px solid var(--border); background: var(--muted); }
.mock-bar i { width: 11px; height: 11px; border-radius: 50%; background: var(--border); display: inline-block; }
.mock-tag { margin-left: auto; font-size: .76rem; color: var(--muted-foreground); }
.mock-body { padding: 18px; display: grid; gap: 10px; }
.mock-card { border: 1px solid var(--border); border-radius: var(--radius); padding: 14px; background: var(--card); }
.mock-stat { font-family: "Fraunces", serif; font-size: 1.6rem; }
.mock-line { display: grid; grid-template-columns: 1fr auto auto; gap: 14px; align-items: center; padding: 9px 12px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--card); font-size: .9rem; }
.mock-line.head { background: var(--muted); color: var(--muted-foreground); font-size: .72rem; text-transform: uppercase; letter-spacing: .06em; border: none; padding: 5px 12px; }
.mock-line .mg { font-weight: 600; }
.mock-line .mg.low { color: oklch(0.62 0.16 50); }
.mbtn { margin-top: 4px; width: 100%; border: none; background: var(--primary); color: var(--primary-foreground); font-weight: 600; padding: 11px; border-radius: var(--radius); font-family: inherit; font-size: .92rem; cursor: default; }

/* Grids / cards */
.grid { display: grid; gap: 22px; }
.g-2 { grid-template-columns: repeat(2, 1fr); }
.g-3 { grid-template-columns: repeat(3, 1fr); }
.card { background: var(--card); border: 1px solid var(--border); border-radius: calc(var(--radius) + 4px); padding: 26px; box-shadow: var(--shadow-sm); }
.card .ico { width: 42px; height: 42px; border-radius: 11px; background: var(--muted); color: var(--foreground); display: grid; place-items: center; margin-bottom: 16px; font-size: 1.2rem; }
.card h3 { margin-bottom: .5rem; }
.card p { color: var(--muted-foreground); font-size: .98rem; }

/* Inverted band (primary) */
.band { background: var(--primary); color: var(--primary-foreground); border-radius: calc(var(--radius) + 14px); padding: clamp(36px, 5vw, 60px); }
.band h2 { color: var(--primary-foreground); }
.metrics { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 12px; }
.metric .n { font-family: "Fraunces", serif; font-size: clamp(2.4rem, 4vw, 3.4rem); line-height: 1; }
.metric .l { opacity: .75; margin-top: .4rem; font-size: .96rem; }

/* Steps */
.steps { display: grid; gap: 22px; grid-template-columns: repeat(3, 1fr); }
.step .num { font-family: "Fraunces", serif; font-size: 1.1rem; border: 1px solid var(--border); width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; margin-bottom: 14px; }

/* Pricing */
.tiers { display: grid; gap: 22px; grid-template-columns: repeat(3, 1fr); align-items: start; }
.tier { background: var(--card); border: 1px solid var(--border); border-radius: calc(var(--radius) + 4px); padding: 28px; box-shadow: var(--shadow-sm); }
.tier.pop { border-color: var(--foreground); box-shadow: var(--shadow); position: relative; }
.tier.pop .tag { position: absolute; top: -12px; left: 28px; background: var(--primary); color: var(--primary-foreground); font-size: .72rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; padding: 4px 12px; border-radius: 999px; }
.price { font-family: "Fraunces", serif; font-size: 2.6rem; margin: 8px 0 2px; }
.price span { font-size: 1rem; color: var(--muted-foreground); font-family: "Hanken Grotesk", sans-serif; }
.tier ul { list-style: none; padding: 0; margin: 18px 0 22px; display: grid; gap: 10px; }
.tier li { display: flex; gap: .6rem; font-size: .96rem; color: var(--muted-foreground); }
.tier li::before { content: "✓"; color: var(--foreground); font-weight: 700; }

/* FAQ */
.faq { max-width: 760px; margin: 0 auto; }
.faq details { border-bottom: 1px solid var(--border); padding: 18px 0; }
.faq summary { cursor: pointer; font-weight: 600; font-size: 1.06rem; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 1rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--muted-foreground); font-size: 1.4rem; line-height: 1; }
.faq details[open] summary::after { content: "–"; }
.faq p { margin-top: 12px; color: var(--muted-foreground); }

/* CTA */
.cta-box { background: var(--primary); color: var(--primary-foreground); border-radius: calc(var(--radius) + 14px); padding: clamp(40px, 6vw, 72px); text-align: center; }
.cta-box h2 { color: var(--primary-foreground); max-width: 18ch; margin: 0 auto; }
.cta-box .lead { color: var(--primary-foreground); opacity: .8; margin: 1rem auto 2rem; max-width: 46ch; }
.cta-box .btn-primary { background: var(--background); color: var(--foreground); }

/* Prose */
.prose { max-width: 760px; margin: 0 auto; }
.prose h2 { font-size: 1.7rem; margin: 36px 0 12px; }
.prose h3 { margin: 24px 0 8px; }
.prose p, .prose li { color: var(--muted-foreground); margin: 0 0 14px; }
.prose ul { padding-left: 1.2rem; }
.prose a { color: var(--foreground); text-decoration: underline; text-underline-offset: 3px; }

/* Footer */
footer.site { border-top: 1px solid var(--border); background: var(--muted); padding: 56px 0 36px; }
.foot-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 30px; }
.foot-col h4 { font-size: .82rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted-foreground); margin: 0 0 14px; }
.foot-col a { display: block; color: var(--muted-foreground); font-size: .95rem; padding: 4px 0; }
.foot-col a:hover { color: var(--foreground); }
.foot-bottom { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-top: 40px; padding-top: 22px; border-top: 1px solid var(--border); color: var(--muted-foreground); font-size: .88rem; flex-wrap: wrap; }

@media (max-width: 880px) {
  .g-3, .g-2, .steps, .tiers, .metrics { grid-template-columns: 1fr; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
  .nav-links { display: none; }
  .hide-mobile { display: none; }
  .nav-toggle { display: grid; }
  /* Full-width drawer BELOW the header bar. .nav-mobile is a flex child of the .nav row, so without
     breaking it out it renders as a narrow column overlapping the hero — anchor it to the sticky
     header (position: sticky is a positioned containing block) and span edge-to-edge. */
  .nav-mobile.open {
    position: absolute; top: 100%; left: 0; right: 0; z-index: 50;
    display: flex; flex-direction: column; gap: .15rem;
    padding: 10px 24px 20px; background: var(--background);
    border-bottom: 1px solid var(--border); box-shadow: var(--shadow);
    max-height: calc(100dvh - 68px); overflow-y: auto;
  }
  .nav-mobile a { padding: .8rem .15rem; color: var(--foreground); font-weight: 500; font-size: 1.05rem; }
  .nav-mobile .btn { margin-top: .5rem; justify-content: center; padding: .9rem 1.4rem; }
}
@media (max-width: 460px) {
  .wrap { padding: 0 16px; }
  .nav-cta { gap: .4rem; }
}
@media (min-width: 881px) {
  .hero-grid { grid-template-columns: 1.05fr .95fr; align-items: center; }
}
