/* ─── Shipworth landing — design tokens (shared with the product) ─────── */
.marketing-page {
  --bg: oklch(0.985 0.004 80);
  --bg-alt: oklch(0.965 0.006 78);
  --panel: #ffffff;
  --ink-100: oklch(0.18 0.005 80);
  --ink-90:  oklch(0.24 0.005 80);
  --ink-80:  oklch(0.32 0.005 80);
  --ink-60:  oklch(0.48 0.005 80);
  --ink-50:  oklch(0.58 0.005 80);
  --ink-40:  oklch(0.68 0.005 80);
  --ink-20:  oklch(0.86 0.004 80);
  --ink-12:  oklch(0.92 0.003 80);
  --ink-08:  oklch(0.95 0.003 80);
  --ink-04:  oklch(0.975 0.003 80);

  --accent: #6b8c21;
  --accent-ink: oklch(0.45 0.06 96);
  --accent-tint: color-mix(in oklch, var(--accent) 11%, var(--panel));
  --accent-tint-strong: color-mix(in oklch, var(--accent) 18%, var(--panel));

  --shipped: oklch(0.58 0.09 96);

  --shadow-sm: 0 1px 2px rgba(20, 18, 14, 0.04);
  --shadow-md: 0 4px 14px -6px rgba(20, 18, 14, 0.10), 0 2px 4px rgba(20, 18, 14, 0.04);
  --shadow-lg: 0 24px 60px -20px rgba(20, 18, 14, 0.20), 0 8px 18px -8px rgba(20, 18, 14, 0.08);
  --shadow-xl: 0 50px 110px -30px rgba(20, 18, 14, 0.34), 0 20px 50px -24px rgba(20, 18, 14, 0.20);

  --maxw: 1120px;
}

.marketing-page.dark {
  --bg: oklch(0.20 0.006 270);
  --bg-alt: oklch(0.235 0.007 270);
  --panel: oklch(0.255 0.007 270);
  --ink-100: oklch(0.97 0.004 80);
  --ink-90:  oklch(0.92 0.004 80);
  --ink-80:  oklch(0.84 0.004 80);
  --ink-60:  oklch(0.70 0.005 80);
  --ink-50:  oklch(0.62 0.005 80);
  --ink-40:  oklch(0.52 0.006 270);
  --ink-20:  oklch(0.38 0.008 270);
  --ink-12:  oklch(0.32 0.008 270);
  --ink-08:  oklch(0.29 0.008 270);
  --ink-04:  oklch(0.265 0.008 270);

  --accent: #a8bc5c;
  --accent-tint: color-mix(in oklch, var(--accent) 16%, var(--panel));
  --accent-tint-strong: color-mix(in oklch, var(--accent) 26%, var(--panel));

  --shadow-md: 0 4px 14px -6px rgba(0, 0, 0, 0.5), 0 2px 4px rgba(0, 0, 0, 0.3);
  --shadow-lg: 0 24px 60px -20px rgba(0, 0, 0, 0.6), 0 8px 18px -8px rgba(0, 0, 0, 0.4);
  --shadow-xl: 0 50px 110px -30px rgba(0, 0, 0, 0.7), 0 20px 50px -24px rgba(0, 0, 0, 0.5);
}

/* ─── base ────────────────────────────────────────────────────────── */
* { box-sizing: border-box; }

html {
  background: oklch(0.985 0.004 80);
  scroll-behavior: smooth;
}
body {
  min-width: 320px;
  margin: 0;
  background: oklch(0.985 0.004 80);
}

.marketing-page {
  min-height: 100vh;
  font-family: "Geist", ui-sans-serif, system-ui, -apple-system, "Helvetica Neue", sans-serif;
  background: var(--bg);
  color: var(--ink-100);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  font-feature-settings: "ss01", "cv11";
  transition: background 0.4s ease, color 0.4s ease;
}
button { font: inherit; color: inherit; }
input { font: inherit; color: inherit; }
a { color: inherit; text-decoration: none; }
::selection { background: color-mix(in oklch, var(--accent) 28%, transparent); }
.mono { font-family: "Geist Mono", ui-monospace, "SF Mono", Menlo, monospace; }

.wrap {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 40px;
  width: 100%;
}

.eyebrow {
  display: inline-block;
  font-family: "Geist Mono", ui-monospace, monospace;
  font-size: 12px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent);
}

/* ─── buttons ─────────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  border: 0;
  border-radius: 11px;
  font-size: 15px;
  font-weight: 500;
  cursor: pointer;
  white-space: nowrap;
  transition: transform 0.12s, background 0.15s, border-color 0.15s, box-shadow 0.15s;
}
.btn-primary {
  padding: 12px 20px;
  background: var(--ink-100);
  color: var(--bg);
}
.btn-primary:hover { box-shadow: var(--shadow-md); transform: translateY(-1px); }
.btn-primary:active { transform: translateY(0); }
.btn-ghost {
  padding: 12px 18px;
  background: transparent;
  border: 1px solid var(--ink-20);
  color: var(--ink-90);
}
.btn-ghost:hover { background: var(--ink-04); border-color: var(--ink-40); }
.btn-sm { padding: 9px 15px; font-size: 14px; border-radius: 9px; }

/* ─── nav ─────────────────────────────────────────────────────────── */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in oklch, var(--bg) 80%, transparent);
  backdrop-filter: saturate(150%) blur(18px);
  -webkit-backdrop-filter: saturate(150%) blur(18px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.25s, background 0.4s;
}
.nav.scrolled { border-bottom-color: var(--ink-12); }
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 66px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 16px;
  font-weight: 600;
  letter-spacing: -0.01em;
}
.brand-mark {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 8px;
  background: var(--ink-100);
  color: var(--bg);
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
}
.nav-links a {
  padding: 8px 14px;
  border-radius: 8px;
  font-size: 14.5px;
  font-weight: 500;
  color: var(--ink-60);
  transition: color 0.15s, background 0.15s;
}
.nav-links a:hover { color: var(--ink-100); background: var(--ink-08); }
.nav-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}
.theme-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border: 1px solid var(--ink-12);
  border-radius: 9px;
  background: var(--panel);
  color: var(--ink-60);
  cursor: pointer;
  transition: color 0.15s, border-color 0.15s, background 0.15s;
}
.theme-toggle:hover { color: var(--ink-100); border-color: var(--ink-40); }
.theme-toggle .sun { display: none; }
.marketing-page.dark .theme-toggle .sun { display: block; }
.marketing-page.dark .theme-toggle .moon { display: none; }

/* ─── hero ────────────────────────────────────────────────────────── */
.hero {
  padding: 96px 0 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  top: -200px;
  left: 50%;
  width: 900px;
  height: 600px;
  transform: translateX(-50%);
  background: radial-gradient(ellipse at center, var(--accent-tint-strong), transparent 65%);
  opacity: 0.7;
  pointer-events: none;
  z-index: -1;
}
.hero .eyebrow { margin-bottom: 22px; }
.hero h1 {
  font-size: clamp(38px, 6vw, 62px);
  line-height: 1.02;
  letter-spacing: -0.03em;
  font-weight: 600;
  margin: 0 auto 22px;
  max-width: 16ch;
  text-wrap: balance;
}
.hero h1 em {
  font-style: normal;
  color: var(--accent);
}
.hero-sub {
  font-size: clamp(17px, 2.2vw, 20px);
  color: var(--ink-60);
  max-width: 56ch;
  margin: 0 auto 34px;
  text-wrap: pretty;
}

/* email capture */
.signup-form {
  display: flex;
  gap: 8px;
  max-width: 440px;
  margin: 0 auto;
  padding: 6px;
  background: var(--panel);
  border: 1px solid var(--ink-12);
  border-radius: 14px;
  box-shadow: var(--shadow-md);
  transition: border-color 0.15s, box-shadow 0.15s;
}
.signup-form:focus-within {
  border-color: var(--accent);
  box-shadow: var(--shadow-md), 0 0 0 4px var(--accent-tint);
}
.signup-form input {
  flex: 1;
  min-width: 0;
  border: 0;
  outline: 0;
  background: transparent;
  padding: 0 14px;
  font-size: 15.5px;
}
.signup-form input::placeholder { color: var(--ink-50); }
.signup-note {
  margin: 16px 0 0;
  font-size: 13.5px;
  color: var(--ink-50);
}
.signup-success {
  display: none;
  max-width: 440px;
  margin: 0 auto;
  padding: 18px 22px;
  background: var(--accent-tint);
  border: 1px solid color-mix(in oklch, var(--accent) 30%, transparent);
  border-radius: 14px;
  color: var(--ink-90);
  font-size: 15px;
  align-items: center;
  justify-content: center;
  gap: 10px;
  animation: pop 0.3s cubic-bezier(0.2, 0.8, 0.3, 1);
}
.signup-success.show { display: flex; }
.signup-success svg { color: var(--accent); flex-shrink: 0; }
.signup-error {
  max-width: 440px;
  margin: 12px auto 0;
  color: #b42318;
  font-size: 13.5px;
  text-align: center;
}
@keyframes pop {
  from { transform: scale(0.96); opacity: 0; }
  to   { transform: scale(1); opacity: 1; }
}

/* ─── product shot / browser frame ────────────────────────────────── */
.shot {
  padding: 64px 0 96px;
  perspective: 1800px;
}
.browser {
  max-width: 1000px;
  margin: 0 auto;
  border-radius: 14px;
  overflow: hidden;
  background: var(--panel);
  border: 1px solid var(--ink-12);
  box-shadow: var(--shadow-xl);
}
.browser-bar {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 0 16px;
  height: 44px;
  background: var(--bg-alt);
  border-bottom: 1px solid var(--ink-12);
}
.browser-dots {
  display: flex;
  gap: 8px;
}
.browser-dots i {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--ink-20);
}
.browser-url {
  flex: 1;
  max-width: 340px;
  height: 26px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 0 14px;
  border-radius: 8px;
  background: var(--bg);
  border: 1px solid var(--ink-12);
  font-family: "Geist Mono", ui-monospace, monospace;
  font-size: 12.5px;
  color: var(--ink-50);
}
.browser-url svg { color: var(--shipped); }
.browser-shot {
  display: block;
  width: 100%;
  height: auto;
}

/* ─── sections ────────────────────────────────────────────────────── */
.section {
  padding: 96px 0;
}
.section-alt {
  background: var(--bg-alt);
  border-top: 1px solid var(--ink-12);
  border-bottom: 1px solid var(--ink-12);
}
.section-head {
  max-width: 600px;
  margin: 0 0 56px;
}
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head .eyebrow { margin-bottom: 16px; }
.section-head h2 {
  font-size: clamp(28px, 4vw, 40px);
  line-height: 1.1;
  letter-spacing: -0.025em;
  font-weight: 600;
  margin: 0 0 14px;
  text-wrap: balance;
}
.section-head p {
  font-size: 17px;
  color: var(--ink-60);
  margin: 0;
  text-wrap: pretty;
}

/* features 3-up */
.features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.feature {
  padding: 30px 28px 32px;
  background: var(--panel);
  border: 1px solid var(--ink-12);
  border-radius: 16px;
  transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
}
.feature:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: var(--ink-20);
}
.feature-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 11px;
  background: var(--accent-tint);
  color: var(--accent);
  margin-bottom: 20px;
}
.feature h3 {
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -0.01em;
  margin: 0 0 8px;
}
.feature p {
  margin: 0;
  font-size: 15px;
  color: var(--ink-60);
  line-height: 1.6;
}

/* how it works */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  counter-reset: step;
}
.step {
  position: relative;
  counter-increment: step;
}
.step-num {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid var(--ink-20);
  background: var(--panel);
  font-family: "Geist Mono", ui-monospace, monospace;
  font-size: 15px;
  font-weight: 500;
  color: var(--accent);
  margin-bottom: 20px;
}
.step h3 {
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -0.01em;
  margin: 0 0 8px;
}
.step p {
  margin: 0;
  font-size: 15px;
  color: var(--ink-60);
  line-height: 1.6;
}

/* ─── pricing ─────────────────────────────────────────────────────── */
.pricing {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  align-items: start;
}
.plan {
  display: flex;
  flex-direction: column;
  padding: 32px 28px;
  background: var(--panel);
  border: 1px solid var(--ink-12);
  border-radius: 18px;
  transition: transform 0.2s, box-shadow 0.2s;
}
.plan.featured {
  border-color: var(--accent);
  box-shadow: var(--shadow-lg);
  position: relative;
}
.plan-badge {
  position: absolute;
  top: -11px;
  left: 28px;
  font-family: "Geist Mono", ui-monospace, monospace;
  font-size: 10.5px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--accent);
  color: white;
}
.plan-name {
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.005em;
  margin: 0 0 4px;
}
.plan-tagline {
  font-size: 13.5px;
  color: var(--ink-50);
  margin: 0 0 22px;
  min-height: 38px;
}
.plan-price {
  display: flex;
  align-items: baseline;
  gap: 6px;
  margin-bottom: 22px;
}
.plan-price .amount {
  font-size: 40px;
  font-weight: 600;
  letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
}
.plan-price .period {
  font-size: 14px;
  color: var(--ink-50);
}
.plan .btn { width: 100%; margin-bottom: 24px; }
.plan-features {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.plan-features li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 14.5px;
  color: var(--ink-80);
}
.plan-features svg {
  flex-shrink: 0;
  margin-top: 3px;
  color: var(--accent);
}

/* ─── final cta ───────────────────────────────────────────────────── */
.cta {
  text-align: center;
  padding: 104px 0;
}
.cta h2 {
  font-size: clamp(30px, 4.5vw, 46px);
  line-height: 1.05;
  letter-spacing: -0.03em;
  font-weight: 600;
  margin: 0 auto 16px;
  max-width: 18ch;
  text-wrap: balance;
}
.cta p {
  font-size: 18px;
  color: var(--ink-60);
  margin: 0 auto 32px;
  max-width: 48ch;
}

/* ─── footer ──────────────────────────────────────────────────────── */
.footer {
  border-top: 1px solid var(--ink-12);
  padding: 56px 0 40px;
  background: var(--bg-alt);
}
.footer-top {
  display: flex;
  justify-content: space-between;
  gap: 48px;
  flex-wrap: wrap;
  margin-bottom: 48px;
}
.footer-brand { max-width: 280px; }
.footer-brand .brand { margin-bottom: 12px; }
.footer-brand p {
  font-size: 14px;
  color: var(--ink-50);
  margin: 0;
  line-height: 1.6;
}
.footer-cols {
  display: flex;
  gap: 64px;
  flex-wrap: wrap;
}
.footer-col h4 {
  font-family: "Geist Mono", ui-monospace, monospace;
  font-size: 11px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--ink-50);
  margin: 0 0 16px;
}
.footer-col ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 11px;
}
.footer-col a {
  font-size: 14.5px;
  color: var(--ink-60);
  transition: color 0.15s;
}
.footer-col a:hover { color: var(--ink-100); }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding-top: 28px;
  border-top: 1px solid var(--ink-12);
  font-size: 13px;
  color: var(--ink-50);
  flex-wrap: wrap;
}

/* ─── scroll reveal ───────────────────────────────────────────────── */
html.js .reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.6s cubic-bezier(0.2, 0.7, 0.3, 1), transform 0.6s cubic-bezier(0.2, 0.7, 0.3, 1);
}
html.js .reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html.js .reveal { opacity: 1; transform: none; transition: none; }

}

/* ─── responsive ──────────────────────────────────────────────────── */
@media (max-width: 900px) {
  .features, .steps, .pricing { grid-template-columns: 1fr; }
  .steps { gap: 28px; }
  .plan.featured { order: -1; }
  .nav-links { display: none; }
}
@media (max-width: 640px) {
  .wrap { padding: 0 22px; }
  .hero { padding-top: 64px; }
  .section { padding: 64px 0; }
  .signup-form { flex-direction: column; padding: 10px; }
  .signup-form .btn { width: 100%; }
  .footer-top { flex-direction: column; gap: 36px; }
}