:root {
  --bg: #fafaf9;
  --surface: #ffffff;
  --text: #111111;
  --text-sec: #525252;
  --text-ter: #737373;
  --sep: #e7e5e4;
  --accent: #043615;
  --accent-dark: #02260f;
  --shadow-sm: 0 1px 2px rgba(0,0,0,.04);
  --shadow-md: 0 8px 24px rgba(0,0,0,.06), 0 2px 6px rgba(0,0,0,.04);
  --shadow-lg: 0 24px 64px rgba(0,0,0,.08), 0 8px 24px rgba(0,0,0,.05);
  --radius: 16px;
  --radius-lg: 24px;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--text);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* --- Nav --- */
.nav {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid rgba(0, 0, 0, .04);
}
/* Blur lives on a pseudo-element so `.nav` itself doesn't become the
   containing block for position:fixed children (backdrop-filter would
   trap the mobile menu panel inside the header's 64px box). */
.nav::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(250, 250, 249, .86);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  z-index: -1;
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
}

.logo-mark {
  width: 28px;
  height: 28px;
  border-radius: 7px;
  background: var(--accent);
  color: #fff;
  display: grid;
  place-items: center;
  font-family: 'Fraunces', serif;
  font-style: italic;
  font-weight: 400;
  font-size: 17px;
  line-height: 1;
}

.logo-text {
  font-weight: 700;
  font-size: 17px;
  letter-spacing: -.01em;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
}

.nav-links a:not(.btn) {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-sec);
}

.nav-links a:not(.btn):hover { color: var(--text); }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 18px;
  border-radius: 10px;
  font-weight: 600;
  font-size: 14px;
  line-height: 1;
  transition: transform .08s ease, background .15s ease, box-shadow .15s ease;
  cursor: pointer;
  border: 0;
}

.btn-primary {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 1px 2px rgba(0, 208, 132, .35);
}

.btn-primary:hover { background: var(--accent-dark); transform: translateY(-1px); }

.btn-ghost {
  background: transparent;
  color: var(--text);
}

.btn-ghost:hover { background: rgba(0, 0, 0, .04); }

.btn-lg {
  padding: 14px 22px;
  font-size: 15px;
  border-radius: 12px;
}

/* --- Hero --- */
.hero {
  padding: 96px 0 0;
  position: relative;
  text-align: center;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(1200px 600px at 50% 0%, rgba(0, 208, 132, .10), transparent 60%),
    radial-gradient(800px 600px at 100% 10%, rgba(91, 91, 241, .05), transparent 60%);
  pointer-events: none;
}

.hero-copy-wrap {
  position: relative;
  max-width: 780px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
}

.eyebrow {
  display: inline-block;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--accent);
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(0, 208, 132, .1);
}

.hero-copy-wrap h1 {
  font-size: clamp(40px, 5.6vw, 64px);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -.03em;
  margin: 20px 0 18px;
}

.h1-sub {
  display: inline-block;
  font-size: 0.72em;
  font-weight: 700;
  color: var(--text-sec);
  letter-spacing: -.025em;
  white-space: nowrap;
  margin-top: 4px;
}

.lede {
  font-size: 19px;
  color: var(--text-sec);
  max-width: 620px;
  margin: 0 0 32px;
}

.hero-cta {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 28px;
  justify-content: center;
}

.hero-badges {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
  font-size: 13px;
  color: var(--text-ter);
  justify-content: center;
}

.hero-badges li {
  position: relative;
  padding-left: 16px;
}

.hero-badges li::before {
  content: "";
  position: absolute;
  left: 0; top: 50%;
  width: 6px; height: 6px;
  margin-top: -3px;
  border-radius: 50%;
  background: var(--accent);
}

/* --- Hero media (full-width composition) --- */
.hero-media {
  position: relative;
  margin: 64px auto 0;
  max-width: 1040px;
  padding: 0 24px;
}

.screenshot {
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}

.screenshot img {
  display: block;
  width: 100%;
  height: auto;
}

/* --- Dashboard screenshot wrapper --- */
.screenshot-1 { padding: 0; }
.screenshot-1 .ph-top {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 12px 14px;
  border-bottom: 1px solid var(--sep);
  background: #fafafa;
}
.ph-dot { width: 10px; height: 10px; border-radius: 50%; background: #e5e5e5; }
.ph-dot:nth-child(1) { background: #ff5f57; }
.ph-dot:nth-child(2) { background: #febc2e; }
.ph-dot:nth-child(3) { background: #28c840; }
.ph-title {
  margin-left: 12px;
  font-size: 12px;
  color: var(--text-ter);
  font-family: ui-monospace, monospace;
}
.ph-body { padding: 28px; }
.ph-kpi-label { font-size: 11px; font-weight: 500; color: var(--text-sec); letter-spacing: .08em; text-transform: uppercase; }
.ph-kpi-value { font-size: 44px; font-weight: 700; letter-spacing: -.02em; margin: 6px 0 4px; font-variant-numeric: tabular-nums; }
.ph-kpi-delta { font-size: 14px; color: #16a34a; font-weight: 600; }
.ph-chart {
  margin-top: 20px;
  height: 140px;
  background:
    linear-gradient(180deg, rgba(0, 208, 132, .2), rgba(0, 208, 132, 0) 80%),
    repeating-linear-gradient(90deg, transparent 0 24px, rgba(0,0,0,.04) 24px 25px);
  clip-path: polygon(0 80%, 6% 70%, 12% 75%, 18% 55%, 25% 60%, 32% 45%, 40% 50%, 48% 32%, 56% 40%, 64% 25%, 72% 30%, 80% 15%, 88% 20%, 94% 10%, 100% 18%, 100% 100%, 0% 100%);
  border-radius: 10px;
}

/* --- Placeholder mobile --- */
.placeholder-mobile {
  aspect-ratio: 9 / 19;
  padding: 24px 16px 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.ph-m-header { font-size: 28px; font-weight: 700; letter-spacing: -.02em; }
.ph-m-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 4px rgba(0, 208, 132, .2);
  margin-top: 6px;
}
.ph-m-big { font-size: 52px; font-weight: 700; letter-spacing: -.03em; margin-top: auto; font-variant-numeric: tabular-nums; }
.ph-m-sub { font-size: 13px; color: var(--text-ter); margin-bottom: 10px; }
.ph-m-bars {
  height: 60px;
  background: repeating-linear-gradient(90deg,
    var(--accent) 0 6px,
    transparent 6px 9px,
    rgba(0,208,132,.5) 9px 15px,
    transparent 15px 18px
  );
  border-radius: 4px;
  margin-top: auto;
  opacity: .85;
}
.ph-m-area {
  height: 90px;
  margin-top: auto;
  background: linear-gradient(180deg, rgba(0, 208, 132, .25), rgba(0, 208, 132, 0) 90%);
  clip-path: polygon(0 70%, 10% 60%, 22% 65%, 35% 40%, 48% 50%, 60% 30%, 72% 35%, 84% 15%, 100% 25%, 100% 100%, 0% 100%);
  border-radius: 10px;
}

.screenshot-1 {
  position: relative;
  width: 100%;
  z-index: 1;
}

/* --- Floating data cards (overlapping dashboard) --- */
.float-card {
  position: absolute;
  background: #fff;
  border-radius: 16px;
  box-shadow:
    0 30px 60px rgba(0, 0, 0, .10),
    0 8px 20px rgba(0, 0, 0, .06);
  padding: 16px 18px;
  z-index: 3;
  font-family: 'Inter', sans-serif;
}

.float-live {
  top: 42%;
  left: -6%;
  width: 200px;
}

.float-pages {
  top: 8%;
  right: -6%;
  width: 260px;
}

.fc-head {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: .08em;
  color: var(--text-sec);
}

.fc-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 0 4px rgba(34, 197, 94, .18);
}

.fc-big {
  font-size: 44px;
  font-weight: 800;
  letter-spacing: -.03em;
  line-height: 1;
  margin: 10px 0 2px;
  font-variant-numeric: tabular-nums;
}

.fc-sub {
  font-size: 12px;
  color: var(--text-ter);
  margin-bottom: 12px;
}

.fc-bars {
  display: flex;
  align-items: flex-end;
  gap: 3px;
  height: 32px;
}
.fc-bars span {
  flex: 1;
  background: rgba(34, 197, 94, .25);
  border-radius: 2px;
}
.fc-bars span:nth-child(1) { height: 30%; }
.fc-bars span:nth-child(2) { height: 45%; }
.fc-bars span:nth-child(3) { height: 20%; }
.fc-bars span:nth-child(4) { height: 65%; }
.fc-bars span:nth-child(5) { height: 40%; }
.fc-bars span:nth-child(6) { height: 55%; }
.fc-bars span:nth-child(7) { height: 80%; }
.fc-bars span:nth-child(8) { height: 35%; }
.fc-bars span:nth-child(9) { height: 60%; }
.fc-bars span:nth-child(10) { height: 75%; }
.fc-bars span:nth-child(11) { height: 50%; }
.fc-bars span:nth-child(12) { height: 90%; }
.fc-bars span:nth-child(13) { height: 70%; }
.fc-bars span:nth-child(14) { height: 85%; }
.fc-bars span:nth-child(15) { background: #22c55e; height: 100%; }

.fc-title {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-sec);
  text-transform: uppercase;
  letter-spacing: .08em;
  margin-bottom: 10px;
}

.fc-list { list-style: none; padding: 0; margin: 0; }
.fc-list li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 6px 0;
  font-size: 13px;
  color: var(--text);
}
.fc-list li + li { border-top: 1px solid var(--sep); }
.fc-list li span {
  font-family: ui-monospace, monospace;
  color: var(--text-sec);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 12px;
}
.fc-list li strong {
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

/* Prevent horizontal scroll from floating elements, but let shadows spill down */
body { overflow-x: hidden; }

/* --- Benefits section --- */
.benefits {
  padding: 120px 0 80px;
  background: var(--bg);
}

.section-head {
  max-width: 640px;
  margin: 0 auto 56px;
  text-align: center;
}

.section-head h2 {
  font-size: clamp(28px, 3.5vw, 40px);
  font-weight: 800;
  letter-spacing: -.025em;
  line-height: 1.1;
  margin: 16px 0 14px;
}

.section-lede {
  font-size: 17px;
  color: var(--text-sec);
  margin: 0;
}

.benefits-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.benefit-card {
  background: var(--surface);
  border: 1px solid var(--sep);
  border-radius: var(--radius);
  padding: 28px 24px;
  transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease;
}

.benefit-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  border-color: rgba(0, 208, 132, .25);
}

.benefit-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: rgba(0, 208, 132, .1);
  color: var(--accent);
  margin-bottom: 18px;
}

.benefit-card h3 {
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -.01em;
  margin: 0 0 10px;
}

.benefit-card p {
  font-size: 14px;
  color: var(--text-sec);
  line-height: 1.55;
  margin: 0;
}

@media (max-width: 1000px) {
  .benefits-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 560px) {
  .benefits-grid { grid-template-columns: 1fr; }
  .benefits { padding: 80px 0 40px; }
}

/* --- Steps section --- */
.steps {
  padding: 80px 0 120px;
  background: var(--bg);
}

.steps-grid {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  counter-reset: step;
}

.step-card {
  background: var(--surface);
  border: 1px solid var(--sep);
  border-radius: var(--radius-lg);
  padding: 28px 26px 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  position: relative;
}

.step-num {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: var(--accent);
  color: #fff;
  display: grid;
  place-items: center;
  font-weight: 700;
  font-size: 15px;
  margin-bottom: 14px;
  font-family: 'Fraunces', serif;
  font-style: italic;
  box-shadow: 0 4px 10px rgba(0, 208, 132, .3);
}

.step-card h3 {
  font-size: 19px;
  font-weight: 700;
  letter-spacing: -.01em;
  margin: 0 0 10px;
}

.step-card p {
  font-size: 14px;
  color: var(--text-sec);
  line-height: 1.55;
  margin: 0 0 22px;
}

.step-card code {
  background: rgba(0,0,0,.05);
  padding: 1px 6px;
  border-radius: 4px;
  font-family: ui-monospace, 'JetBrains Mono', monospace;
  font-size: 12px;
}

.step-visual {
  margin-top: auto;
  margin-left: -26px;
  margin-right: -26px;
  margin-bottom: -1px;
  padding: 20px 22px 22px;
  border-top: 1px solid var(--sep);
  background: linear-gradient(180deg, #fafafa, #f3f3f2);
}

/* Step 1 — signup preview */
.step-signup {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.input-row {
  display: flex;
  flex-direction: column;
  gap: 2px;
  background: #fff;
  border: 1px solid var(--sep);
  border-radius: 8px;
  padding: 8px 12px;
}
.input-label {
  font-size: 10px;
  color: var(--text-ter);
  text-transform: uppercase;
  letter-spacing: .08em;
  font-weight: 500;
}
.input-value {
  font-size: 13px;
  color: var(--text);
  font-weight: 500;
}
.step-btn {
  background: var(--accent);
  color: #fff;
  text-align: center;
  padding: 10px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 13px;
  margin-top: 4px;
}

/* Step 2 — code preview */
.step-code { padding: 0; background: #1a1a1a; color: #eee; }
.code-dots {
  display: flex;
  gap: 6px;
  padding: 10px 14px;
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.code-dots span {
  width: 10px; height: 10px;
  border-radius: 50%;
}
.code-dots span:nth-child(1) { background: #ff5f57; }
.code-dots span:nth-child(2) { background: #febc2e; }
.code-dots span:nth-child(3) { background: #28c840; }
.step-code pre {
  margin: 0;
  padding: 14px 16px 20px;
  font-size: 11px;
  line-height: 1.5;
  color: #eee;
  font-family: ui-monospace, 'JetBrains Mono', monospace;
  overflow-x: auto;
}
.step-code code { background: transparent; padding: 0; color: inherit; }

/* Step 3 — data preview */
.step-preview { padding-bottom: 0; }
.preview-label {
  font-size: 10px;
  color: var(--text-ter);
  text-transform: uppercase;
  letter-spacing: .08em;
  font-weight: 500;
}
.preview-value {
  font-size: 36px;
  font-weight: 800;
  letter-spacing: -.025em;
  line-height: 1;
  margin: 4px 0;
  font-variant-numeric: tabular-nums;
}
.preview-delta {
  font-size: 12px;
  color: #16a34a;
  font-weight: 600;
  margin-bottom: 14px;
}
.preview-chart {
  height: 70px;
  background:
    linear-gradient(180deg, rgba(0, 208, 132, .35), rgba(0, 208, 132, 0) 90%);
  clip-path: polygon(0 70%, 8% 60%, 18% 65%, 28% 40%, 38% 50%, 50% 25%, 62% 35%, 74% 18%, 86% 28%, 100% 12%, 100% 100%, 0% 100%);
  border-top-left-radius: 8px;
  border-top-right-radius: 8px;
}

@media (max-width: 900px) {
  .steps-grid { grid-template-columns: 1fr; max-width: 480px; margin: 0 auto; }
}

/* --- Pricing --- */
.pricing {
  padding: 120px 0 100px;
  background: var(--bg);
}

.pricing-layout {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 24px;
  align-items: start;
  max-width: 1200px;
  margin: 0 auto;
}

.pricing-intro {
  padding: 32px 16px 0 0;
}
.pricing-intro .eyebrow {
  display: inline-block;
  margin-bottom: 18px;
}
.pricing-intro h2 {
  font-size: clamp(30px, 3.6vw, 44px);
  font-weight: 800;
  letter-spacing: -.03em;
  line-height: 1.05;
  margin: 0 0 20px;
}
.pricing-intro p {
  font-size: 16px;
  color: var(--text-sec);
  line-height: 1.65;
  margin: 0 0 28px;
  max-width: 360px;
}

.price-card {
  position: relative;
  border-radius: var(--radius-lg);
  padding: 40px 32px 32px;
  display: flex;
  flex-direction: column;
  min-height: 560px;
}

.price-card-dark {
  background: #043615;
  color: #fff;
  box-shadow: 0 30px 80px rgba(4, 54, 21, .25);
}

.price-card-light {
  background: var(--surface);
  border: 1px solid var(--sep);
  margin-top: 48px;
  box-shadow: var(--shadow-md);
}

.price-card-head {
  text-align: center;
  margin-bottom: 28px;
}
.price-card-head h3 {
  font-family: 'Fraunces', serif;
  font-style: italic;
  font-weight: 400;
  font-size: 28px;
  letter-spacing: -.01em;
  margin: 0;
}

.price-tag-big {
  text-align: center;
  margin-bottom: 44px;
  position: relative;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  gap: 2px;
}
.price-sup {
  font-family: 'Fraunces', serif;
  font-weight: 400;
  font-size: 28px;
  line-height: 1;
  margin-top: 14px;
  opacity: .7;
}
.price-big {
  font-family: 'Fraunces', serif;
  font-weight: 400;
  font-size: 110px;
  line-height: 1;
  letter-spacing: -.04em;
}
.price-big-word {
  font-size: 72px;
}
.price-sub {
  font-family: 'Fraunces', serif;
  font-weight: 400;
  font-style: italic;
  font-size: 18px;
  line-height: 1;
  margin-top: 14px;
  opacity: .6;
  align-self: flex-end;
  margin-bottom: 18px;
}

.price-features-v2 {
  list-style: none;
  padding: 0;
  margin: 0 0 32px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  flex: 1;
}
.price-features-v2 li {
  font-size: 15px;
  font-family: 'Fraunces', serif;
  font-style: italic;
  text-align: center;
  opacity: .9;
}
.price-card-dark .price-features-v2 li {
  color: #fff;
}
.price-card-light .price-features-v2 li {
  color: var(--text);
}
.price-features-v2 li.feat-off {
  opacity: .32;
  text-decoration: line-through;
}

.price-cta {
  width: 100%;
  margin-top: auto;
  border-radius: 8px;
}

.btn-inverse {
  background: #fff;
  color: #043615;
}
.btn-inverse:hover {
  background: #fafafa;
  transform: translateY(-1px);
}

@media (max-width: 980px) {
  .pricing-layout { grid-template-columns: 1fr; gap: 32px; max-width: 520px; }
  .pricing-intro { padding: 0; text-align: center; }
  .pricing-intro p { margin-left: auto; margin-right: auto; }
  .price-card-light { margin-top: 0; }
  .price-card { min-height: auto; }
}

/* --- Order form --- */
.order {
  padding: 80px 0 120px;
  background: var(--bg);
}

.order-inner {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 48px;
  align-items: start;
  max-width: 1040px;
  margin: 0 auto;
}

.order-copy h2 {
  font-size: clamp(26px, 3.2vw, 36px);
  font-weight: 800;
  letter-spacing: -.025em;
  line-height: 1.1;
  margin: 16px 0 14px;
}

.order-copy p {
  font-size: 16px;
  color: var(--text-sec);
  line-height: 1.6;
  margin: 0 0 20px;
}

.order-bullets {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.order-bullets li {
  position: relative;
  padding-left: 24px;
  font-size: 14px;
  color: var(--text-sec);
}

.order-bullets li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--accent);
  font-weight: 800;
}

.order-included {
  margin-top: 28px;
  padding-top: 24px;
  border-top: 1px solid var(--sep);
}
.order-included h3 {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--text-sec);
  margin: 0 0 12px;
}
.order-included ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 14px;
  color: var(--text-sec);
}
.order-included li { padding-left: 18px; position: relative; }
.order-included li::before {
  content: "•";
  position: absolute;
  left: 4px;
  top: 0;
  color: var(--accent);
  font-weight: 700;
}

.order-form {
  background: var(--surface);
  border: 1px solid var(--sep);
  border-radius: var(--radius-lg);
  padding: 28px 26px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.order-form label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-sec);
  letter-spacing: .02em;
}

.order-form label.full { grid-column: span 2; }

.order-form input,
.order-form select,
.order-form textarea {
  font-family: 'Inter', sans-serif;
  font-size: 15px;
  font-weight: 500;
  color: var(--text);
  background: #fafafa;
  border: 1px solid var(--sep);
  border-radius: 10px;
  padding: 10px 12px;
  transition: border-color .15s ease, background .15s ease;
}

.order-form input:focus,
.order-form select:focus,
.order-form textarea:focus {
  outline: none;
  border-color: var(--accent);
  background: #fff;
}

.order-form textarea { resize: vertical; min-height: 80px; }

.order-form button {
  grid-column: span 2;
  width: 100%;
  margin-top: 8px;
}

.order-legal {
  grid-column: span 2;
  text-align: center;
  font-size: 12px;
  color: var(--text-ter);
  margin: 4px 0 0;
}

@media (max-width: 800px) {
  .order-inner { grid-template-columns: 1fr; }
  .order-form { grid-template-columns: 1fr; }
  .order-form label.full { grid-column: span 1; }
  .order-form button, .order-legal { grid-column: span 1; }
}

/* --- Footer --- */
.footer {
  padding: 40px 0;
  border-top: 1px solid var(--sep);
  background: var(--bg);
  font-size: 13px;
  color: var(--text-ter);
}
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}
.footer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
}
.footer-logo-mark {
  width: 22px;
  height: 22px;
  border-radius: 5px;
  background: var(--accent);
  color: #fff;
  display: grid;
  place-items: center;
  font-family: 'Fraunces', serif;
  font-style: italic;
  font-weight: 400;
  font-size: 14px;
  line-height: 1;
}
.footer-links {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
}
.footer-links a {
  color: var(--text-ter);
  transition: color .15s ease;
}
.footer-links a:hover { color: var(--text); }
.footer-lang {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--text-ter);
  margin-left: 12px;
  padding-left: 12px;
  border-left: 1px solid var(--sep);
}
.footer-lang a {
  color: var(--text-ter);
  text-decoration: none;
  transition: color .15s ease;
}
.footer-lang a:hover { color: var(--text); }
.footer-lang a.active {
  color: var(--text);
  font-weight: 600;
  pointer-events: none;
}
.footer-lang .sep { color: var(--sep); }
@media (max-width: 480px) {
  .footer-inner { flex-direction: column; text-align: center; }
  .footer-lang { margin-left: 0; padding-left: 0; border-left: 0; }
}

/* --- Legal pages (terms, privacy) --- */
.legal {
  padding: 80px 0 100px;
  background: var(--bg);
}
.legal-content {
  max-width: 720px;
  margin: 0 auto;
}
.legal-content .eyebrow { margin-bottom: 14px; }
.legal-content h1 {
  font-size: clamp(32px, 4.2vw, 48px);
  font-weight: 800;
  letter-spacing: -.025em;
  line-height: 1.1;
  margin: 16px 0 8px;
}
.legal-meta {
  color: var(--text-ter);
  font-size: 14px;
  margin: 0 0 48px;
}
.legal-content h2 {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -.015em;
  margin: 44px 0 12px;
}
.legal-content h3 {
  font-size: 16px;
  font-weight: 700;
  margin: 24px 0 8px;
  color: var(--text);
}
.legal-content p,
.legal-content li {
  font-size: 16px;
  color: var(--text-sec);
  line-height: 1.7;
}
.legal-content p { margin: 0 0 14px; }
.legal-content ul,
.legal-content ol {
  margin: 0 0 16px;
  padding-left: 22px;
}
.legal-content li { margin-bottom: 6px; }
.legal-content a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.legal-content strong { color: var(--text); }
.legal-content code {
  background: rgba(0,0,0,.05);
  padding: 1px 6px;
  border-radius: 5px;
  font-family: ui-monospace, monospace;
  font-size: 14px;
}
.legal-content .legal-contact {
  background: var(--surface);
  border: 1px solid var(--sep);
  border-radius: var(--radius);
  padding: 24px 26px;
  margin-top: 40px;
}
.legal-content .legal-contact h2 { margin-top: 0; }

/* --- Waitlist form (shared on /app/ and /wordpress/) --- */
.waitlist {
  display: flex;
  flex-direction: column;
  gap: 14px;
  max-width: 460px;
}
.waitlist-row {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.waitlist-row input[type=email] {
  flex: 1;
  min-width: 220px;
  padding: 12px 14px;
  border: 1px solid var(--sep);
  border-radius: 10px;
  background: #fff;
  font: inherit;
  font-size: 15px;
  color: var(--text);
  transition: border-color .15s ease;
}
.waitlist-row input[type=email]:focus {
  outline: none;
  border-color: var(--accent);
}
.waitlist-row input[type=email]:disabled {
  background: #f5f5f4;
  color: var(--text-ter);
  cursor: not-allowed;
}
.waitlist-coming {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(0, 208, 132, .1);
  color: var(--accent);
  padding: 5px 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  margin-bottom: 14px;
}
.waitlist-coming::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
}
.waitlist-status {
  font-size: 13px;
  padding: 10px 14px;
  border-radius: 8px;
  margin: 0;
  line-height: 1.5;
}
.waitlist-status.error {
  background: rgba(220, 38, 38, .08);
  color: #b91c1c;
}
.waitlist-status.success {
  background: rgba(0, 208, 132, .1);
  color: #166534;
}
.waitlist-note {
  font-size: 12px;
  color: var(--text-ter);
  margin: 0;
}

/* --- Platforms grid --- */
.platforms {
  padding: 80px 0 80px;
  background: #fbfbfa;
}
.platforms-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 14px;
}
.platform-card {
  background: var(--surface);
  border: 1px solid var(--sep);
  border-radius: 14px;
  padding: 22px 14px 18px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  text-align: center;
  transition: border-color .15s ease, transform .08s ease, box-shadow .15s ease;
  color: var(--text);
}
a.platform-card {
  position: relative;
}
a.platform-card::after {
  content: "→";
  position: absolute;
  top: 10px;
  right: 12px;
  font-size: 12px;
  color: var(--text-ter);
  opacity: .6;
}
.platform-card:hover {
  border-color: rgba(4, 54, 21, .15);
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}
.platform-logo {
  width: 44px;
  height: 44px;
  border-radius: 11px;
  display: grid;
  place-items: center;
  color: #fff;
}
.platform-logo svg {
  width: 24px;
  height: 24px;
  display: block;
}
.platform-name {
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  letter-spacing: -.005em;
}
.platform-note {
  font-size: 11px;
  color: var(--text-ter);
  font-weight: 500;
  letter-spacing: .02em;
}
/* brand tiles */
.plat-wp { background: #21759b; }
.plat-sh { background: #95bf47; }
.plat-wb { background: #146ef5; }
.plat-sq { background: #121212; }
.plat-wx { background: #0c6efc; }
.plat-gh { background: #15171a; }
.plat-fr { background: #0055ff; }
.plat-nx { background: #000; }
.plat-rc { background: #20232a; color: #61dafb; }
.plat-hm { background: #e34f26; }

@media (max-width: 900px) {
  .platforms-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 560px) {
  .platforms-grid { grid-template-columns: repeat(2, 1fr); }
}

/* --- Logos / social proof --- */
.logos {
  padding: 24px 0 80px;
  border-top: 1px solid var(--sep);
  margin-top: 40px;
}

.logos-eyebrow {
  text-align: center;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-ter);
  margin: 0 0 32px;
  padding-top: 48px;
}

.logos-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 48px;
  flex-wrap: wrap;
  row-gap: 28px;
}

.logo-mark-wm {
  color: #9a9a97;
  font-size: 22px;
  line-height: 1;
  text-decoration: none;
  transition: color .15s ease, opacity .15s ease;
  white-space: nowrap;
  display: inline-flex;
  align-items: baseline;
}

.logo-mark-wm:hover { color: var(--text); }

.logo-detox {
  font-family: 'Inter', sans-serif;
  font-weight: 300;
  letter-spacing: .18em;
  text-transform: lowercase;
  font-size: 20px;
}

.logo-nygaard {
  font-family: 'Fraunces', serif;
  font-weight: 400;
  font-size: 23px;
  letter-spacing: -.01em;
}
.logo-nygaard em {
  font-style: italic;
  font-weight: 400;
  margin-left: 4px;
}

.logo-pictofy {
  font-family: 'Inter', sans-serif;
  font-weight: 700;
  letter-spacing: -.03em;
  font-size: 24px;
}
.logo-pictofy .dot {
  color: var(--accent);
  margin-left: 1px;
}

.logo-sundhelhed {
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  letter-spacing: -.015em;
  font-size: 22px;
}
.logo-sundhelhed::before {
  content: "♡";
  margin-right: 6px;
  font-size: 18px;
  color: inherit;
}

.logo-adnovation {
  font-family: 'Inter', sans-serif;
  font-weight: 800;
  letter-spacing: -.02em;
  font-size: 22px;
  text-transform: uppercase;
}

.logo-krogh {
  font-family: 'Fraunces', serif;
  font-style: italic;
  font-weight: 400;
  font-size: 24px;
  letter-spacing: -.015em;
}
.logo-krogh .tld {
  font-family: 'Inter', sans-serif;
  font-style: normal;
  font-weight: 500;
  font-size: 18px;
  margin-left: 2px;
  opacity: .7;
}

@media (max-width: 700px) {
  .logos-row { gap: 32px; }
  .logo-mark-wm { font-size: 18px; }
}

/* --- Burger + slide-in menu (mobile) --- */
.nav-burger {
  display: none;
  background: transparent;
  border: 0;
  padding: 8px;
  margin: -8px;
  cursor: pointer;
  flex-direction: column;
  gap: 5px;
  position: relative;
  z-index: 70;
  -webkit-tap-highlight-color: transparent;
}
.nav-burger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform .24s ease, opacity .2s ease;
  transform-origin: center;
}
body.nav-open .nav-burger span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
body.nav-open .nav-burger span:nth-child(2) { opacity: 0; }
body.nav-open .nav-burger span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.nav-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, .35);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: 50;
  opacity: 0;
  visibility: hidden;
  transition: opacity .28s ease, visibility 0s linear .28s;
}
body.nav-open .nav-backdrop {
  opacity: 1;
  visibility: visible;
  transition: opacity .28s ease;
}

/* Lift the header (and therefore its fixed child panel) above the
   backdrop. Without this, the sticky header's stacking context traps
   the panel below the backdrop and nothing visible slides in. */
body.nav-open .nav { z-index: 60; }

/* --- Responsive --- */
@media (max-width: 900px) {
  .nav-burger { display: flex; }

  .nav-links {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    width: min(85vw, 360px);
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    gap: 0;
    padding: 96px 24px 40px;
    background: var(--bg);
    border-left: 1px solid var(--sep);
    box-shadow: -20px 0 60px rgba(0, 0, 0, .08);
    transform: translateX(100%);
    transition: transform .32s cubic-bezier(.32, .72, 0, 1);
    z-index: 60;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }
  body.nav-open .nav-links { transform: translateX(0); }

  .nav-links a:not(.btn) {
    display: block;
    padding: 16px 0;
    font-size: 18px;
    font-weight: 500;
    color: var(--text);
    border-top: 1px solid var(--sep);
  }
  /* No top border on the very first link — avoids a stray ruler between
     the panel's top padding and the first item. */
  .nav-links a:not(.btn):first-of-type { border-top: 0; }
  .nav-links a.nav-current { color: var(--accent); font-weight: 700; }

  .nav-links .btn {
    width: 100%;
    justify-content: center;
    padding: 14px 20px;
    font-size: 15px;
  }
  .nav-links .btn-ghost { margin-top: 24px; }
  .nav-links .btn-primary { margin-top: 8px; }

  body.nav-open { overflow: hidden; }

  .hero { padding: 64px 0 0; }
  .hero-media { margin-top: 48px; }
  .float-live { left: -2%; top: auto; bottom: -10%; width: 160px; }
  .float-pages { right: -2%; top: -6%; width: 200px; }
  .float-live .fc-big { font-size: 32px; }
  .float-live .fc-bars { height: 24px; }
  main { padding-bottom: 80px; }
}
