/* ============================================================
   TradeShow Buddy — marketing site
   Direction: warm editorial SaaS, emerald brand, light theme,
   real depth + character. Not a template.
   ============================================================ */

:root {
  /* palette — warm paper + emerald + terracotta */
  --bg: #f5f2ea;
  --surface: #ffffff;
  --surface-2: #efeadd;
  --ink: #15211b;
  --ink-soft: #43534a;
  --muted: #6d7c72;
  --brand: #1c7a4d;
  --brand-dark: #115c39;
  --brand-light: #e2f1e8;
  --accent: #e0733a;
  --accent-soft: #fae4d6;
  --line: rgba(21, 33, 27, 0.10);
  --line-strong: rgba(21, 33, 27, 0.16);

  /* type */
  --font-display: "Bricolage Grotesque", "Inter", system-ui, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, sans-serif;
  --text-hero: clamp(2.75rem, 1.1rem + 6.6vw, 6rem);
  --text-h2: clamp(2rem, 1.2rem + 2.6vw, 3.25rem);
  --text-h3: clamp(1.15rem, 1rem + 0.5vw, 1.4rem);
  --text-lede: clamp(1.05rem, 0.98rem + 0.4vw, 1.25rem);

  /* space + shape */
  --space-section: clamp(4.5rem, 3rem + 6vw, 9rem);
  --radius: 18px;
  --radius-lg: 28px;
  --radius-pill: 999px;
  --maxw: 1180px;

  --shadow-sm: 0 1px 2px rgba(21, 33, 27, 0.06), 0 4px 14px rgba(21, 33, 27, 0.05);
  --shadow-md: 0 10px 30px rgba(21, 33, 27, 0.10), 0 2px 8px rgba(21, 33, 27, 0.06);
  --shadow-lg: 0 30px 70px rgba(17, 92, 57, 0.18), 0 8px 24px rgba(21, 33, 27, 0.10);

  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--ink);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3 { font-family: var(--font-display); line-height: 1.05; letter-spacing: -0.02em; font-weight: 700; }

a { color: inherit; text-decoration: none; }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}

/* ---------- shared bits ---------- */
.eyebrow {
  font-family: var(--font-body);
  font-size: 0.78rem; font-weight: 600; letter-spacing: 0.16em;
  text-transform: uppercase; color: var(--brand);
}
.ink-accent { color: var(--brand); font-style: italic; }

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 0.5rem; font-family: var(--font-body); font-weight: 600;
  font-size: 0.95rem; padding: 0.7rem 1.25rem; border-radius: var(--radius-pill);
  border: 1.5px solid transparent; cursor: pointer; transition: transform .25s var(--ease), background .2s, box-shadow .25s, color .2s;
  white-space: nowrap;
}
.btn--lg { padding: 0.95rem 1.7rem; font-size: 1.02rem; }
.btn--solid { background: var(--brand); color: #fff; box-shadow: var(--shadow-sm); }
.btn--solid:hover { background: var(--brand-dark); transform: translateY(-2px); box-shadow: var(--shadow-md); }
.btn--ghost { background: transparent; color: var(--ink); border-color: var(--line-strong); }
.btn--ghost:hover { background: var(--ink); color: var(--bg); transform: translateY(-2px); }

/* ============ NAV ============ */
.nav {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; gap: 1.5rem;
  max-width: var(--maxw); margin: 0 auto; padding: 1rem 1.5rem;
  width: 100%;
}
.nav::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: color-mix(in oklab, var(--bg) 78%, transparent);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent; transition: border-color .3s;
}
.nav.is-stuck::before { border-bottom-color: var(--line); }

.brand { display: flex; align-items: center; gap: 0.6rem; font-family: var(--font-display); font-weight: 700; font-size: 1.1rem; }
.brand__mark { display: inline-flex; filter: drop-shadow(0 3px 6px rgba(17,92,57,.25)); }
.brand__name { letter-spacing: -0.02em; }

.nav__links { display: flex; gap: 1.6rem; margin-left: auto; }
.nav__links a { font-size: 0.95rem; color: var(--ink-soft); font-weight: 500; position: relative; }
.nav__links a::after {
  content: ""; position: absolute; left: 0; bottom: -4px; height: 2px; width: 0;
  background: var(--brand); transition: width .25s var(--ease);
}
.nav__links a:hover { color: var(--ink); }
.nav__links a:hover::after { width: 100%; }

.nav__cta { margin-left: 0.5rem; }

.nav__burger { display: none; flex-direction: column; gap: 5px; background: none; border: 0; cursor: pointer; padding: 6px; margin-left: auto; }
.nav__burger span { width: 24px; height: 2px; background: var(--ink); border-radius: 2px; transition: transform .3s, opacity .2s; }
.nav__burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav__burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav__burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ============ HERO ============ */
.hero {
  position: relative;
  max-width: var(--maxw); margin: 0 auto;
  padding: clamp(2.5rem, 1rem + 6vw, 6rem) 1.5rem clamp(3rem, 2rem + 4vw, 6rem);
  display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 2.5rem; align-items: center;
}
.hero__grain {
  position: absolute; inset: 0; z-index: 0; pointer-events: none; opacity: 0.5;
  background:
    radial-gradient(40% 50% at 78% 18%, rgba(28,122,77,.12), transparent 70%),
    radial-gradient(35% 40% at 90% 80%, rgba(224,115,58,.10), transparent 70%);
}
.hero__copy { position: relative; z-index: 1; }
.hero__title { font-size: var(--text-hero); font-weight: 800; margin: 1rem 0 1.25rem; }
.hero__sub { font-size: var(--text-lede); color: var(--ink-soft); max-width: 33ch; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 0.8rem; margin: 2rem 0 1rem; }
.hero__note { font-size: 0.85rem; color: var(--muted); }

/* phone */
.hero__device { position: relative; z-index: 1; display: flex; justify-content: center; }
.device__glow {
  position: absolute; inset: 8% 14%; z-index: 0; border-radius: 50%;
  background: radial-gradient(circle, rgba(28,122,77,.30), transparent 65%); filter: blur(40px);
}
.phone {
  position: relative; z-index: 1; width: clamp(240px, 78%, 310px); aspect-ratio: 300 / 620;
  background: #0f1713; border-radius: 42px; padding: 11px;
  box-shadow: var(--shadow-lg); transform: rotate(2deg);
  transition: transform .5s var(--ease);
}
.hero__device:hover .phone { transform: rotate(0deg) translateY(-4px); }
.phone__notch { position: absolute; top: 16px; left: 50%; transform: translateX(-50%); width: 38%; height: 22px; background: #0f1713; border-radius: 0 0 14px 14px; z-index: 3; }
.phone__screen { width: 100%; height: 100%; background: var(--bg); border-radius: 32px; overflow: hidden; }

.app { padding: 2.4rem 0.95rem 1rem; height: 100%; position: relative; }
.app__eyebrow { font-size: 0.55rem; font-weight: 700; letter-spacing: 0.14em; color: var(--accent); }
.app__show { font-family: var(--font-display); font-size: 1.25rem; font-weight: 800; margin: 0.15rem 0 0.6rem; }
.app__stats { display: flex; gap: 0.4rem; margin-bottom: 1rem; }
.pill { font-size: 0.62rem; font-weight: 600; padding: 0.25rem 0.55rem; border-radius: var(--radius-pill); background: var(--surface-2); color: var(--ink-soft); }
.pill--brand { background: var(--brand-light); color: var(--brand-dark); }

.lead { display: flex; align-items: center; gap: 0.55rem; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 0.55rem 0.6rem; margin-bottom: 0.5rem; box-shadow: var(--shadow-sm); }
.ava { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; font-size: 0.62rem; font-weight: 700; color: #fff; flex-shrink: 0; }
.ava--a { background: #1c7a4d; } .ava--b { background: #e0733a; } .ava--c { background: #3b6ea5; }
.lead__body { display: flex; flex-direction: column; line-height: 1.2; flex: 1; min-width: 0; }
.lead__body strong { font-size: 0.72rem; }
.lead__body span { font-size: 0.6rem; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tag { font-size: 0.52rem; font-weight: 700; padding: 0.2rem 0.4rem; border-radius: 6px; background: var(--surface-2); color: var(--ink-soft); flex-shrink: 0; }
.tag--ai { background: var(--brand-light); color: var(--brand-dark); }
.tag--star { background: var(--accent-soft); color: #b4521f; }

.app__feed { display: flex; align-items: center; gap: 0.4rem; font-size: 0.62rem; color: var(--ink-soft); background: var(--surface-2); border-radius: 10px; padding: 0.5rem 0.6rem; margin-top: 0.3rem; }
.app__feed .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--brand); box-shadow: 0 0 0 0 rgba(28,122,77,.5); animation: ping 1.8s infinite; }
@keyframes ping { 0% { box-shadow: 0 0 0 0 rgba(28,122,77,.5); } 70% { box-shadow: 0 0 0 7px rgba(28,122,77,0); } 100% { box-shadow: 0 0 0 0 rgba(28,122,77,0); } }
.app__fab { position: absolute; right: 0.95rem; bottom: 0.9rem; width: 42px; height: 42px; border-radius: 50%; background: var(--brand); color: #fff; border: 0; font-size: 1.5rem; line-height: 1; box-shadow: var(--shadow-md); }

/* ============ STRIP ============ */
.strip {
  max-width: var(--maxw); margin: 0 auto; padding: 1.5rem;
  display: flex; flex-wrap: wrap; align-items: baseline; gap: 0.5rem 1.2rem;
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
}
.strip > p { font-family: var(--font-display); font-weight: 600; color: var(--muted); }
.strip__list { display: flex; flex-wrap: wrap; gap: 0.7rem; list-style: none; }
.strip__list li { font-family: var(--font-display); font-weight: 700; font-size: clamp(1.1rem, 0.9rem + 1vw, 1.7rem); color: var(--ink); }
.strip__list li[aria-hidden] { color: var(--brand); }

/* ============ SECTIONS ============ */
.section { max-width: var(--maxw); margin: 0 auto; padding: var(--space-section) 1.5rem; }
.section--alt { max-width: none; background: var(--surface); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section--alt > * { max-width: var(--maxw); margin-left: auto; margin-right: auto; }
.section__head { max-width: 36rem; margin-bottom: 3rem; }
.section__head h2 { font-size: var(--text-h2); margin: 0.8rem 0 0.7rem; }
.section__lede { font-size: var(--text-lede); color: var(--ink-soft); }

/* ============ BENTO ============ */
.bento { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 1.6rem; box-shadow: var(--shadow-sm);
  transition: transform .3s var(--ease), box-shadow .3s, border-color .3s;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: var(--line-strong); }
.card__icon { font-size: 1.7rem; margin-bottom: 0.8rem; }
.card h3 { font-size: var(--text-h3); margin-bottom: 0.5rem; }
.card p { color: var(--ink-soft); font-size: 0.97rem; }
.card--lg { grid-row: span 2; display: flex; flex-direction: column; }
.card--lg .card__icon { font-size: 2.2rem; }
.card--wide { grid-column: span 2; }
.card--brand { background: linear-gradient(150deg, var(--brand) 0%, var(--brand-dark) 100%); color: #fff; border-color: transparent; }
.card--brand h3, .card--brand p { color: #fff; }
.card--brand p { opacity: 0.92; }
.card--accent { background: var(--accent-soft); border-color: transparent; }

/* ============ STEPS ============ */
.steps { list-style: none; display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; counter-reset: s; }
.step { position: relative; padding: 2rem 1.5rem; background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius-lg); }
.section--alt .step { background: var(--bg); }
.step__num { font-family: var(--font-display); font-weight: 800; font-size: 2.4rem; color: var(--brand); opacity: 0.35; display: block; margin-bottom: 0.5rem; }
.step h3 { font-size: var(--text-h3); margin-bottom: 0.4rem; }
.step p { color: var(--ink-soft); font-size: 0.97rem; }

/* ============ SPLIT (for teams) ============ */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: center; }
.split__copy h2 { font-size: var(--text-h2); margin: 0.8rem 0 1rem; }
.split__copy > p { color: var(--ink-soft); font-size: var(--text-lede); margin-bottom: 1.4rem; }
.ticks { list-style: none; margin: 0 0 1.8rem; display: grid; gap: 0.7rem; }
.ticks li { position: relative; padding-left: 1.9rem; color: var(--ink-soft); }
.ticks li::before {
  content: "✓"; position: absolute; left: 0; top: 1px;
  width: 1.3rem; height: 1.3rem; background: var(--brand-light); color: var(--brand-dark);
  border-radius: 50%; display: grid; place-items: center; font-size: 0.72rem; font-weight: 700;
}

.split__visual { display: flex; justify-content: center; }
.mini-map {
  position: relative; width: 100%; max-width: 420px; aspect-ratio: 4 / 3;
  background:
    linear-gradient(var(--line) 1px, transparent 1px) 0 0 / 100% 22%,
    linear-gradient(90deg, var(--line) 1px, transparent 1px) 0 0 / 22% 100%,
    var(--surface-2);
  border: 1px solid var(--line-strong); border-radius: var(--radius-lg); box-shadow: var(--shadow-md);
}
.booth {
  position: absolute; transform: translate(-50%, -50%);
  width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center;
  font-size: 0.7rem; font-weight: 700; color: #fff; background: var(--ink-soft);
  border: 2px solid var(--surface); box-shadow: var(--shadow-sm);
}
.booth--done { background: var(--brand); }
.booth--mine { background: var(--accent); }
.mini-map__label { position: absolute; left: 12px; bottom: 10px; font-size: 0.72rem; font-weight: 600; color: var(--ink-soft); background: var(--surface); padding: 0.25rem 0.6rem; border-radius: var(--radius-pill); box-shadow: var(--shadow-sm); }

/* ============ PRICING ============ */
.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.2rem; align-items: start; }
.plan { position: relative; background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 2rem 1.6rem; display: flex; flex-direction: column; gap: 1rem; }
.plan--featured { background: var(--ink); color: var(--bg); border-color: var(--ink); transform: translateY(-10px); box-shadow: var(--shadow-lg); }
.plan--featured ul li { color: rgba(245,242,234,.85); }
.plan__badge { position: absolute; top: -12px; left: 1.6rem; background: var(--accent); color: #fff; font-size: 0.7rem; font-weight: 700; padding: 0.25rem 0.7rem; border-radius: var(--radius-pill); }
.plan h3 { font-size: 1.4rem; }
.plan__price { font-family: var(--font-display); font-weight: 800; font-size: 2.2rem; line-height: 1; }
.plan__price span { display: block; font-family: var(--font-body); font-size: 0.78rem; font-weight: 500; color: var(--muted); margin-top: 0.3rem; }
.plan--featured .plan__price span { color: rgba(245,242,234,.6); }
.plan ul { list-style: none; display: grid; gap: 0.55rem; flex: 1; }
.plan ul li { position: relative; padding-left: 1.4rem; font-size: 0.93rem; color: var(--ink-soft); }
.plan ul li::before { content: "✓"; position: absolute; left: 0; color: var(--brand); font-weight: 700; }
.plan--featured ul li::before { color: #6bd49b; }
.plan .btn { width: 100%; }

/* ============ CTA / EARLY ACCESS ============ */
.cta { padding: var(--space-section) 1.5rem; background: linear-gradient(160deg, var(--brand) 0%, var(--brand-dark) 100%); color: #fff; }
.cta__inner { max-width: 640px; margin: 0 auto; text-align: center; }
.cta__inner h2 { font-size: var(--text-h2); margin-bottom: 0.8rem; }
.cta__inner > p { font-size: var(--text-lede); opacity: 0.92; margin-bottom: 2rem; }
.cta__form { display: flex; gap: 0.6rem; max-width: 480px; margin: 0 auto; flex-wrap: wrap; }
.cta__form input {
  flex: 1; min-width: 200px; padding: 0.95rem 1.2rem; border-radius: var(--radius-pill);
  border: 1.5px solid rgba(255,255,255,.3); background: rgba(255,255,255,.12); color: #fff; font-size: 1rem; font-family: var(--font-body);
}
.cta__form input::placeholder { color: rgba(255,255,255,.65); }
.cta__form input:focus { outline: none; border-color: #fff; background: rgba(255,255,255,.2); }
.cta__form .btn--solid { background: #fff; color: var(--brand-dark); }
.cta__form .btn--solid:hover { background: var(--accent-soft); }
.cta__ok { margin-top: 1.2rem; font-weight: 600; }
.cta__fine { margin-top: 1.2rem; font-size: 0.82rem; opacity: 0.7; }

/* ============ FAQ ============ */
.faq { max-width: 760px; display: grid; gap: 0.7rem; }
.faq details { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 0.3rem 1.3rem; transition: border-color .2s; }
.faq details[open] { border-color: var(--line-strong); box-shadow: var(--shadow-sm); }
.faq summary { cursor: pointer; padding: 1.05rem 0; font-family: var(--font-display); font-weight: 600; font-size: 1.08rem; 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: "+"; font-size: 1.5rem; color: var(--brand); transition: transform .25s var(--ease); font-family: var(--font-body); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding: 0 0 1.1rem; color: var(--ink-soft); }

/* ============ FOOTER ============ */
.footer { max-width: var(--maxw); margin: 0 auto; padding: 3.5rem 1.5rem; text-align: center; display: grid; gap: 1rem; justify-items: center; }
.footer__brand { display: flex; align-items: center; gap: 0.55rem; font-family: var(--font-display); font-weight: 700; font-size: 1.15rem; }
.footer__tag { font-family: var(--font-display); font-style: italic; color: var(--muted); }
.footer__links { display: flex; flex-wrap: wrap; gap: 1.3rem; justify-content: center; }
.footer__links a { color: var(--ink-soft); font-size: 0.92rem; }
.footer__links a:hover { color: var(--brand); }
.footer__fine { font-size: 0.82rem; color: var(--muted); border-top: 1px solid var(--line); padding-top: 1.3rem; width: 100%; max-width: var(--maxw); }

/* ============ REVEAL ANIMATION ============ */
[data-reveal] { opacity: 0; transform: translateY(24px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
[data-reveal].is-in { opacity: 1; transform: none; }
[data-reveal-delay="1"] { transition-delay: .08s; }
[data-reveal-delay="2"] { transition-delay: .16s; }

/* ============ RESPONSIVE ============ */
@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; }
  .hero__device { order: -1; margin-bottom: 1rem; }
  .phone { transform: rotate(0); }
  .split { grid-template-columns: 1fr; gap: 2rem; }
  .bento { grid-template-columns: repeat(2, 1fr); }
  .card--lg { grid-row: auto; }
  .card--wide { grid-column: span 2; }
  .steps { grid-template-columns: 1fr; }
  .plans { grid-template-columns: 1fr; }
  .plan--featured { transform: none; }

  .nav__links, .nav__cta { display: none; }
  .nav__burger { display: flex; }
  .nav.is-open .nav__links {
    display: flex; flex-direction: column; gap: 1.2rem;
    position: absolute; top: 100%; left: 0; right: 0; margin: 0;
    background: var(--surface); padding: 1.5rem; border-bottom: 1px solid var(--line); box-shadow: var(--shadow-md);
  }
}

@media (max-width: 560px) {
  .bento { grid-template-columns: 1fr; }
  .card--wide { grid-column: auto; }
  .nav { gap: 1rem; }
  .hero__cta { flex-direction: column; align-items: stretch; }
  .hero__cta .btn { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; }
  [data-reveal] { opacity: 1; transform: none; transition: none; }
  .app__feed .dot { animation: none; }
  .btn:hover, .card:hover, .phone { transform: none !important; }
}
