/* ============================================================
   TAG — premium ecommerce SaaS site · BASE
   Warm near-white canvas, warm near-black ink, amber accent.
   Inter Tight headlines / Inter body / JetBrains Mono code.
   ============================================================ */

:root {
  /* light surfaces */
  --bg: oklch(0.992 0.003 80);
  --bg-soft: oklch(0.975 0.007 78);
  --bg-kraft: oklch(0.957 0.014 76);
  --surface: #ffffff;

  /* ink */
  --ink: oklch(0.205 0.013 55);
  --ink-2: oklch(0.44 0.012 58);
  --ink-3: oklch(0.605 0.010 62);
  --ink-4: oklch(0.72 0.008 65);

  /* hairlines */
  --line: oklch(0.905 0.006 75);
  --line-2: oklch(0.945 0.005 76);

  /* brand amber */
  --amber: oklch(0.705 0.155 58);
  --amber-deep: oklch(0.545 0.15 50);
  --amber-soft: oklch(0.945 0.05 70);
  --amber-soft-2: oklch(0.90 0.075 68);
  --amber-line: oklch(0.85 0.09 65);

  /* states */
  --green: oklch(0.64 0.135 150);
  --green-soft: oklch(0.93 0.06 150);
  --blue: oklch(0.62 0.11 235);

  /* dark tokens (used inside .dark sections) */
  --d-bg: oklch(0.165 0.009 58);
  --d-bg-2: oklch(0.205 0.011 56);
  --d-bg-3: oklch(0.255 0.013 56);
  --d-ink: oklch(0.975 0.005 80);
  --d-ink-2: oklch(0.76 0.009 70);
  --d-ink-3: oklch(0.60 0.009 66);
  --d-line: oklch(1 0 0 / 0.10);
  --d-line-2: oklch(1 0 0 / 0.06);
  --d-amber: oklch(0.80 0.15 66);

  --font: 'Inter', system-ui, -apple-system, sans-serif;
  --display: 'Inter Tight', 'Inter', system-ui, sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, monospace;

  --r-sm: 12px;
  --r-md: 18px;
  --r-lg: 24px;
  --r-xl: 32px;
  --r-pill: 999px;

  --sh-sm: 0 1px 2px rgba(34,26,14,0.05), 0 2px 8px -3px rgba(34,26,14,0.07);
  --sh-md: 0 2px 4px rgba(34,26,14,0.03), 0 18px 40px -22px rgba(34,26,14,0.22);
  --sh-lg: 0 1px 0 rgba(255,255,255,0.8) inset, 0 30px 70px -34px rgba(46,30,12,0.30);
  --sh-float: 0 40px 90px -40px rgba(46,30,12,0.38), 0 8px 24px -16px rgba(46,30,12,0.20);

  --maxw: 1200px;
  --pad: 28px;
  --ease: cubic-bezier(.2,.7,.2,1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
html, body { margin: 0; padding: 0; }
body {
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
  line-height: 1.5;
}
button { font: inherit; color: inherit; cursor: pointer; border: 0; background: none; }
input { font: inherit; color: inherit; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4, h5, p { margin: 0; }
img, svg { display: block; max-width: 100%; }
::selection { background: var(--amber-soft-2); color: var(--ink); }

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 var(--pad); }
.wrap-wide { max-width: 1320px; margin: 0 auto; padding: 0 var(--pad); }

/* type helpers */
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--mono); font-size: 11.5px; font-weight: 500;
  letter-spacing: 0.16em; text-transform: uppercase; color: var(--amber-deep);
}
.eyebrow .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--amber); }
h1, h2, h3 { font-family: var(--display); letter-spacing: -0.04em; line-height: 1.0; font-weight: 800; }
.accent { color: var(--amber-deep); }
.lede { color: var(--ink-2); }

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  border-radius: var(--r-pill); font-weight: 600; font-size: 15px;
  font-family: var(--display); letter-spacing: -0.01em;
  padding: 13px 22px; transition: transform .18s var(--ease), box-shadow .18s var(--ease), background .18s, color .18s, border-color .18s;
  white-space: nowrap; position: relative;
}
.btn .arr { transition: transform .2s var(--ease); }
.btn:hover .arr { transform: translateX(4px); }
.btn-primary {
  background: var(--ink); color: var(--bg);
  box-shadow: var(--sh-sm);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: var(--sh-md); }
.btn-amber {
  background: var(--amber); color: oklch(0.24 0.04 50);
  box-shadow: 0 1px 0 rgba(255,255,255,0.4) inset, 0 10px 24px -10px var(--amber);
}
.btn-amber:hover { background: oklch(0.73 0.16 60); transform: translateY(-2px); box-shadow: 0 1px 0 rgba(255,255,255,0.4) inset, 0 16px 30px -12px var(--amber); }
.btn-ghost {
  background: var(--surface); color: var(--ink);
  border: 1px solid var(--line); box-shadow: var(--sh-sm);
}
.btn-ghost:hover { transform: translateY(-2px); box-shadow: var(--sh-md); border-color: var(--line); }
.btn-lg { padding: 16px 28px; font-size: 16px; }
.btn-shopify { background: #5E8E3E; color: #fff; box-shadow: 0 10px 24px -12px #5E8E3E; }
.btn-shopify:hover { background: #527d36; transform: translateY(-2px); }

/* dark-section button overrides */
.dark .btn-primary { background: var(--d-amber); color: oklch(0.22 0.04 50); box-shadow: 0 12px 30px -12px var(--d-amber); }
.dark .btn-primary:hover { background: oklch(0.84 0.15 68); }
.dark .btn-ghost { background: rgba(255,255,255,0.06); color: var(--d-ink); border-color: var(--d-line); box-shadow: none; }
.dark .btn-ghost:hover { background: rgba(255,255,255,0.12); }

/* ============================================================
   NAV
   ============================================================ */
.nav {
  position: sticky; top: 0; z-index: 60;
  background: oklch(0.992 0.003 80 / 0.72);
  backdrop-filter: blur(18px) saturate(150%);
  -webkit-backdrop-filter: blur(18px) saturate(150%);
  border-bottom: 1px solid transparent;
  transition: border-color .25s, background .25s;
}
.nav.scrolled { border-bottom-color: var(--line); background: oklch(0.992 0.003 80 / 0.85); }
.nav-inner {
  max-width: 1280px; margin: 0 auto; padding: 14px var(--pad);
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
}
.brand { display: flex; align-items: center; gap: 10px; }
.tag-mark { width: 34px; height: 17px; flex: none; }
.tag-word {
  font-family: var(--display); font-weight: 800; font-size: 22px;
  letter-spacing: -0.05em; line-height: 1; color: var(--ink);
  display: inline-flex; align-items: baseline;
}
.tag-word .dot { color: var(--amber-deep); }
.nav-links { display: flex; align-items: center; gap: 4px; }
.nav-links a {
  font-size: 14px; font-weight: 500; color: var(--ink-2); white-space: nowrap;
  padding: 9px 13px; border-radius: var(--r-pill); transition: color .15s, background .15s;
}
.nav-links a:hover { color: var(--ink); background: var(--bg-kraft); }
.nav-actions { display: flex; align-items: center; gap: 10px; }
.nav-actions .btn { padding: 10px 18px; font-size: 14px; }
.nav-menu-btn { display: none; }

/* ============================================================
   SECTION SCAFFOLD
   ============================================================ */
.section { padding: 120px 0; position: relative; }
.section.tight { padding: 96px 0; }
.band-kraft { background: var(--bg-kraft); }
.band-soft { background: var(--bg-soft); }
.dark { background: var(--d-bg); color: var(--d-ink); }
.dark .eyebrow { color: var(--d-amber); }
.dark .lede { color: var(--d-ink-2); }

.section-head { max-width: 680px; }
.section-head.center { margin: 0 auto; text-align: center; }
.section-head h2 {
  font-size: clamp(34px, 4.4vw, 54px); line-height: 1.0; margin-top: 16px;
  text-wrap: balance;
}
.dark .section-head h2 { color: var(--d-ink); }
.section-head p {
  font-size: 18px; line-height: 1.55; color: var(--ink-2); margin-top: 18px;
  max-width: 56ch; text-wrap: pretty;
}
.section-head.center p { margin-left: auto; margin-right: auto; }
.dark .section-head p { color: var(--d-ink-2); }

/* ============================================================
   HERO
   ============================================================ */
.hero { position: relative; padding: 72px 0 96px; overflow: hidden; }
.hero-wash {
  position: absolute; top: -120px; left: 0; right: 0; height: 900px; z-index: 0;
  pointer-events: none; opacity: 0.9;
  background:
    radial-gradient(38% 30% at 78% 6%, var(--amber-soft), transparent 70%),
    radial-gradient(34% 26% at 14% 0%, oklch(0.95 0.03 95), transparent 72%);
  -webkit-mask-image: linear-gradient(180deg, #000 50%, transparent 100%);
  mask-image: linear-gradient(180deg, #000 50%, transparent 100%);
}
.hero-grid {
  position: relative; z-index: 2;
  display: grid; grid-template-columns: 1.02fr 0.98fr; gap: 56px; align-items: center;
}
.hero-pill {
  display: inline-flex; align-items: center; gap: 10px;
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--r-pill); padding: 6px 14px 6px 7px;
  font-size: 13px; color: var(--ink-2); box-shadow: var(--sh-sm);
}
.hero-pill .tag-chip {
  font-size: 10px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase;
  background: var(--amber-soft); color: var(--amber-deep);
  padding: 4px 9px; border-radius: var(--r-pill);
}
.hero h1 {
  font-size: clamp(44px, 5.8vw, 78px); line-height: 0.98; letter-spacing: -0.045em;
  margin-top: 24px; text-wrap: balance; color: var(--ink);
}
.hero .lede { font-size: 19px; line-height: 1.55; max-width: 46ch; margin-top: 24px; text-wrap: pretty; }
.hero-actions { display: flex; gap: 12px; margin-top: 34px; flex-wrap: wrap; }
.hero-trust { margin-top: 44px; }
.hero-trust .tlabel {
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--ink-4); margin-bottom: 16px;
}
.logo-row { display: flex; align-items: center; gap: 26px; flex-wrap: wrap; }
.logo-row .plogo { color: var(--ink-3); opacity: 0.85; transition: opacity .2s, color .2s; }
.logo-row .plogo:hover { opacity: 1; color: var(--ink); }

/* platform wordmark (monochrome) */
.plogo { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; font-size: 16px; letter-spacing: -0.02em; font-family: var(--display); }
.plogo svg { width: 19px; height: 19px; flex: none; }

/* ---- hero mockup: layered checkout + dashboard ---- */
.hero-stage { position: relative; min-height: 520px; }
.float { will-change: transform; }

.checkout-card {
  position: absolute; left: 0; top: 40px; width: 340px; z-index: 3;
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--r-lg); box-shadow: var(--sh-float);
  overflow: hidden;
}
.co-head { padding: 16px 18px; border-bottom: 1px solid var(--line-2); display: flex; align-items: center; justify-content: space-between; }
.co-head .store { display: flex; align-items: center; gap: 9px; font-weight: 700; font-size: 13.5px; font-family: var(--display); letter-spacing: -0.01em; }
.co-head .store .favi { width: 22px; height: 22px; border-radius: 7px; background: linear-gradient(140deg, var(--ink), oklch(0.35 0.02 60)); display: grid; place-items: center; color: #fff; font-size: 11px; font-weight: 800; }
.co-head .lock { font-size: 11px; color: var(--ink-3); display: flex; align-items: center; gap: 5px; font-family: var(--mono); }
.co-body { padding: 16px 18px; }
.co-line { display: flex; align-items: center; gap: 12px; padding: 9px 0; }
.co-line .thumb { width: 40px; height: 40px; border-radius: 9px; background: var(--bg-kraft); border: 1px solid var(--line-2); flex: none; display: grid; place-items: center; color: var(--ink-3); }
.co-line .nm { font-size: 13px; font-weight: 600; }
.co-line .meta { font-size: 11px; color: var(--ink-3); }
.co-line .price { margin-left: auto; font-size: 13px; font-weight: 600; font-family: var(--mono); }

.protect-row {
  margin: 12px 0; padding: 13px 14px; border-radius: var(--r-md);
  border: 1.5px solid var(--amber-line); background: var(--amber-soft);
  display: flex; align-items: center; gap: 12px; transition: all .3s var(--ease);
}
.protect-row.off { border-color: var(--line); background: var(--bg-soft); }
.protect-ck {
  width: 22px; height: 22px; border-radius: 7px; flex: none; position: relative;
  background: var(--amber); border: 1px solid var(--amber-deep);
  display: grid; place-items: center; transition: all .3s var(--ease);
}
.protect-row.off .protect-ck { background: var(--surface); border-color: var(--ink-4); }
.protect-ck svg { stroke: oklch(0.26 0.05 50); stroke-width: 3.2; transition: opacity .2s, transform .3s var(--ease); }
.protect-row.off .protect-ck svg { opacity: 0; transform: scale(.5); }
.protect-txt .pt { font-size: 13px; font-weight: 700; font-family: var(--display); letter-spacing: -0.01em; }
.protect-txt .ps { font-size: 11px; color: var(--ink-3); margin-top: 1px; }
.protect-price { margin-left: auto; font-size: 13px; font-weight: 700; font-family: var(--mono); color: var(--amber-deep); transition: opacity .2s; }
.protect-row.off .protect-price { color: var(--ink-3); }

.co-total { border-top: 1px solid var(--line-2); padding-top: 13px; display: flex; align-items: center; justify-content: space-between; }
.co-total .l { font-size: 13px; color: var(--ink-2); font-weight: 600; }
.co-total .v { font-size: 19px; font-weight: 800; font-family: var(--display); letter-spacing: -0.02em; }
.co-pay { margin-top: 14px; width: 100%; padding: 13px; border-radius: var(--r-pill); background: var(--ink); color: var(--bg); font-weight: 600; font-size: 14px; font-family: var(--display); display: flex; align-items: center; justify-content: center; gap: 8px; }

/* dashboard revenue panel behind/right */
.dash-mini {
  position: absolute; right: 0; bottom: 24px; width: 320px; z-index: 2;
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--r-lg); box-shadow: var(--sh-float); padding: 18px;
}
.dash-mini .dh { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.dash-mini .dh .t { font-size: 12.5px; font-weight: 700; font-family: var(--display); letter-spacing: -0.01em; display: flex; align-items: center; gap: 8px; }
.dash-mini .dh .live { font-family: var(--mono); font-size: 10px; letter-spacing: 0.08em; color: var(--green); display: flex; align-items: center; gap: 5px; }
.dash-mini .dh .live .ld { width: 6px; height: 6px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 3px var(--green-soft); animation: livepulse 2s ease-in-out infinite; }
@keyframes livepulse { 0%,100%{opacity:1;} 50%{opacity:.4;} }
.dm-stat { margin-bottom: 14px; }
.dm-stat .dl { font-size: 11px; color: var(--ink-3); font-weight: 500; }
.dm-stat .dv { font-size: 26px; font-weight: 800; font-family: var(--display); letter-spacing: -0.03em; margin-top: 2px; }
.dm-stat .dv .pos { color: var(--green); font-size: 13px; font-weight: 700; margin-left: 6px; }
.dm-spark { height: 44px; margin-top: 6px; }
.dm-spark svg { width: 100%; height: 100%; }

/* revenue chip that flies from checkout to dashboard */
.rev-chip {
  position: absolute; z-index: 9; left: 150px; top: 250px;
  background: var(--ink); color: var(--bg);
  font-family: var(--mono); font-size: 12px; font-weight: 600;
  padding: 8px 13px; border-radius: var(--r-pill); box-shadow: var(--sh-md);
  display: flex; align-items: center; gap: 7px; pointer-events: none;
  opacity: 0; transform: translateY(8px) scale(.9);
}
.rev-chip .pdot { width: 7px; height: 7px; border-radius: 50%; background: var(--green); }
.rev-chip.fly { animation: revFly 1.5s var(--ease) forwards; }
@keyframes revFly {
  0% { opacity: 0; transform: translate(0,8px) scale(.9); }
  18% { opacity: 1; transform: translate(0,0) scale(1); }
  70% { opacity: 1; transform: translate(120px,-130px) scale(1); }
  100% { opacity: 0; transform: translate(150px,-170px) scale(.85); }
}

/* ============================================================
   LOGO STRIP (trust)
   ============================================================ */
.trust { padding: 40px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--surface); }
.trust .tlabel { text-align: center; font-family: var(--mono); font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-4); margin-bottom: 26px; }
.trust-row { display: flex; align-items: center; justify-content: center; gap: 44px; flex-wrap: wrap; }
.trust-row .plogo { font-size: 18px; color: var(--ink-3); }
.trust-row .plogo svg { width: 22px; height: 22px; }

/* ============================================================
   FOOTER
   ============================================================ */
footer { background: var(--bg-kraft); border-top: 1px solid var(--line); padding: 72px 0 40px; }
.foot-grid { display: grid; grid-template-columns: 1.8fr 1fr 1fr 1fr 1fr; gap: 40px; }
.foot-brand .tag-word { font-size: 26px; }
.foot-brand .foot-mark { display: flex; align-items: center; gap: 10px; margin-bottom: 18px; }
.foot-brand p { font-size: 13.5px; color: var(--ink-3); line-height: 1.6; max-width: 30ch; }
.foot-brand .badges { display: flex; gap: 8px; margin-top: 20px; }
.foot-badge { font-family: var(--mono); font-size: 10.5px; color: var(--ink-3); border: 1px solid var(--line); border-radius: var(--r-pill); padding: 5px 11px; }
footer h5 { font-family: var(--mono); font-size: 11px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-4); margin-bottom: 16px; }
footer ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 11px; }
footer ul a { font-size: 14px; color: var(--ink-2); transition: color .15s; }
footer ul a:hover { color: var(--amber-deep); }
.foot-bottom { max-width: var(--maxw); margin: 48px auto 0; padding: 24px var(--pad) 0; border-top: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; font-size: 12.5px; color: var(--ink-3); }
.foot-bottom .links { display: flex; gap: 20px; }

/* ============================================================
   REVEAL / MOTION
   ============================================================ */
@media (prefers-reduced-motion: no-preference) {
  .reveal { opacity: 0; transform: translateY(26px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
  .reveal.in { opacity: 1; transform: none; }
  .reveal.d1 { transition-delay: .08s; }
  .reveal.d2 { transition-delay: .16s; }
  .reveal.d3 { transition-delay: .24s; }
  .reveal.d4 { transition-delay: .32s; }
}
body.reduce-motion .float { transform: none !important; }
body.reduce-motion .rev-chip { display: none; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1080px) {
  .hero-grid { grid-template-columns: 1fr; gap: 64px; }
  .hero-stage { min-height: 480px; max-width: 460px; }
  .nav-links { display: none; }
}
@media (max-width: 900px) {
  .foot-grid { grid-template-columns: 1.4fr 1fr 1fr; gap: 32px; }
  .section { padding: 88px 0; }
}
@media (max-width: 560px) {
  :root { --pad: 20px; }
  .hero h1 { font-size: 40px; }
  .hero-stage { min-height: 440px; }
  .checkout-card { width: 290px; }
  .dash-mini { width: 250px; right: -8px; }
  .nav-actions .btn:not(.btn-amber):not(.btn-primary) { display: none; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
  .foot-bottom { flex-direction: column; gap: 14px; text-align: center; }
  .trust-row { gap: 26px; }
}
