@import url("tokens/fonts.css");
@import url("tokens/colors.css");
@import url("tokens/typography.css");
@import url("tokens/spacing.css");
@import url("tokens/elevation.css");
@import url("tokens/motion.css");

*, *::before, *::after { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--surface-page);
  color: var(--neutral-600);
  font-family: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 15px;
  line-height: 1.68;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  color: var(--text-heading);
  font-weight: 700;
  letter-spacing: -0.018em;
  line-height: 1.15;
  margin: 0;
  text-wrap: pretty;
}

h1 { font-size: 34px; font-weight: 800; }
h2 { font-size: 26px; }
h3 { font-size: 19px; letter-spacing: -0.012em; }
h4 { font-size: 15px; letter-spacing: -0.005em; }

p { margin: 0; }
p + p { margin-top: 14px; }

a { color: var(--green-600); text-decoration: none; }
a:hover { color: var(--green-700); text-decoration: underline; }

strong { color: var(--text-heading); font-weight: 600; }

code, .mono {
  font-family: "JetBrains Mono", ui-monospace, Menlo, monospace;
  font-size: 0.92em;
}

.brand-green { color: var(--text-brand); }

/* ── Layout ─────────────────────────────────── */
.wrap { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.section { padding: 72px 0; }
.section--sunken { background: var(--surface-sunken); }
.section--inverse { background: var(--surface-inverse); color: var(--text-on-inverse-muted); }
.section--inverse h1, .section--inverse h2, .section--inverse h3, .section--inverse h4 { color: var(--text-on-inverse); }
.section--inverse a { color: var(--green-300); }
.section--inverse .btn--primary { color: var(--text-on-brand); }
.section--inverse .btn--secondary { color: #fff; border-color: var(--border-inverse); }

.stack { display: grid; gap: 16px; }
.stack--lg { gap: 44px; }
.stack--sm { gap: 8px; }

.grid { display: grid; gap: 20px; grid-template-columns: 1fr; }
.measure { max-width: 68ch; }

/* ── Header ─────────────────────────────────── */
.site-header {
  border-bottom: 1px solid var(--border-subtle);
  background: var(--surface-page);
  position: sticky;
  top: 0;
  z-index: 900;
  transform: translateY(0);
  transition: transform 320ms cubic-bezier(.16,1,.3,1), box-shadow 180ms ease;
}
.site-header.is-hidden { transform: translateY(-100%); }
.site-header.is-stuck { box-shadow: var(--shadow-sm, 0 2px 8px rgba(18,48,29,.08)); }
@media (prefers-reduced-motion: reduce) {
  .site-header { transition: none; }
}
.site-header__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 24px;
  padding: 14px 20px;
  max-width: 1200px;
  margin: 0 auto;
}
.logo {
  font-size: 26px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--text-heading);
}
.logo:hover { text-decoration: none; }
.site-nav { display: flex; flex-wrap: wrap; gap: 4px 20px; align-items: center; margin-left: auto; }
.site-nav a {
  color: var(--neutral-600);
  font-size: 14px;
  font-weight: 600;
  padding: 6px 0;
}
.site-nav a:hover { color: var(--green-600); text-decoration: none; }
.site-nav a[aria-current="page"] { color: var(--text-brand); }
.site-header__spacer { display: none; }

/* ── Buttons ────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 22px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: -0.005em;
  cursor: pointer;
  transition: background-color 180ms cubic-bezier(.16,1,.3,1), border-color 180ms, color 180ms;
}
.btn:hover { text-decoration: none; }
.btn--primary { background: var(--action-primary); color: var(--text-on-brand); }
.btn--primary:hover { background: var(--action-primary-hover); color: var(--text-on-brand); }
.btn--primary:active { background: var(--action-primary-active); }
.btn--secondary { background: transparent; border-color: var(--action-secondary-border); color: var(--text-heading); }
.btn--secondary:hover { background: var(--action-secondary-hover-bg); border-color: var(--border-brand); color: var(--green-700); }
.btn:focus-visible { outline: 3px solid var(--focus-ring); outline-offset: 1px; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

/* ── Eyebrow + section heading ──────────────── */
.eyebrow {
  display: block;
  color: var(--text-eyebrow);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 10px;
}
.eyebrow::after {
  content: "";
  display: block;
  width: 28px;
  height: 1px;
  background: var(--copper-300);
  margin-top: 8px;
}
.lede { font-size: 17px; line-height: 1.7; color: var(--neutral-600); max-width: 48ch; text-wrap: pretty; }

/* ── Cards ──────────────────────────────────── */
.card {
  background: var(--surface-card);
  border: 1px solid var(--border-subtle);
  border-radius: 16px;
  padding: 22px;
  box-shadow: var(--shadow-xs, 0 1px 2px rgba(18,48,29,.06));
}
.card h3 { margin-bottom: 8px; }
.card--inverse {
  background: var(--surface-inverse-raised);
  border-color: var(--border-inverse);
  color: var(--text-on-inverse-muted);
}

.badge {
  display: inline-block;
  justify-self: start;
  width: max-content;
  border-radius: 999px;
  padding: 4px 12px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.badge--live { background: var(--status-success-bg); color: var(--status-success-fg); }
.badge--dev { background: var(--status-warning-bg); color: var(--status-warning-fg); }

/* ── Feature lists ──────────────────────────── */
.featurelist { list-style: none; margin: 0; padding: 0; display: grid; gap: 18px; }
.featurelist > li { border-top: 1px solid var(--border-subtle); padding-top: 16px; }
.featurelist strong { display: block; font-size: 15px; margin-bottom: 4px; }

.bullets { margin: 0; padding-left: 20px; display: grid; gap: 8px; }
.bullets li::marker { color: var(--green-400); }

/* ── Placeholder for real screenshots ───────── */
.shot {
  border: 1px dashed var(--border-default);
  border-radius: 12px;
  background:
    repeating-linear-gradient(135deg, var(--neutral-100) 0 8px, var(--neutral-50) 8px 16px);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 20px;
  color: var(--text-muted);
  font-size: 13px;
  font-weight: 600;
  min-height: 220px;
}

/* ── Legal / long-form pages ────────────────── */
.doc { max-width: 74ch; }
.doc h2 { font-size: 21px; margin-top: 36px; }
.doc h3 { font-size: 16px; margin-top: 24px; }
.doc p, .doc ul, .doc ol { margin-top: 12px; }
.doc ul, .doc ol { padding-left: 22px; display: grid; gap: 6px; }
.doc dl { margin: 12px 0 0; display: grid; gap: 10px; }
.doc dt { color: var(--text-heading); font-weight: 600; }
.fill {
  background: var(--copper-100);
  color: var(--copper-700);
  border-radius: 4px;
  padding: 0 5px;
  font-weight: 600;
  font-size: 0.95em;
}

/* ── Footer ─────────────────────────────────── */
.site-footer { background: var(--surface-inverse); color: var(--text-on-inverse-muted); padding: 44px 0 32px; }
.site-footer h4 { color: var(--text-on-inverse); font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase; margin-bottom: 12px; }
.site-footer a { color: rgba(255,255,255,.78); font-size: 14px; }
.site-footer a:hover { color: #fff; }
.footer-grid { display: grid; gap: 32px; grid-template-columns: 1fr; }
.footer-links { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.site-footer .logo { color: var(--text-on-inverse); }
.footer-legal {
  margin-top: 32px;
  padding-top: 20px;
  border-top: 1px solid var(--border-inverse);
  font-size: 13px;
  display: grid;
  gap: 6px;
}

/* ── Responsive ─────────────────────────────── */
@media (min-width: 700px) {
  .logo { font-size: 30px; }
  h1 { font-size: 44px; }
  h2 { font-size: 32px; }
  .section { padding: 104px 0; }
  .grid--2 { grid-template-columns: repeat(2, 1fr); }
  .featurelist { grid-template-columns: repeat(2, 1fr); gap: 18px 32px; }
  .footer-grid { grid-template-columns: 1.4fr 1fr 1fr; }
}
@media (min-width: 1000px) {
  h1 { font-size: 52px; }
  .section { padding: 136px 0; }
  .grid--3 { grid-template-columns: repeat(3, 1fr); }
  .split { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 48px; align-items: start; }
  .footer-grid { grid-template-columns: 1.6fr 1fr 1fr 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; }
}

/* ── Pricing ────────────────────────────────── */
.billing-switch {
  display: inline-flex;
  gap: 4px;
  padding: 4px;
  border: 1px solid var(--border-subtle);
  border-radius: 999px;
  background: var(--surface-sunken);
  align-self: start;
  justify-self: start;
  width: max-content;
  max-width: 100%;
  flex-wrap: wrap;
}
.billing-switch__opt {
  border-radius: 999px;
  padding: 8px 18px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-muted);
}
.billing-switch__opt--on { background: var(--surface-card); color: var(--text-heading); box-shadow: var(--shadow-xs, 0 1px 2px rgba(18,48,29,.06)); }

.card--plan { padding: 28px; gap: 20px; }
.plan__name { font-size: 24px; }
.plan__price { font-size: 40px; font-weight: 800; letter-spacing: -0.025em; color: var(--text-heading); line-height: 1.1; }
.plan__price--tbd { font-size: 26px; color: var(--text-muted); font-weight: 700; }
.plan__per { font-size: 15px; font-weight: 600; color: var(--text-muted); letter-spacing: 0; }
.plan__note { font-size: 13px; color: var(--text-muted); margin-top: 8px; }
.plan__grouphead {
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  border-top: 1px solid var(--border-subtle);
  padding-top: 14px;
}
.checklist { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; font-size: 14px; }
.checklist > li { padding-left: 24px; position: relative; }
.checklist > li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 7px;
  width: 12px;
  height: 7px;
  border-left: 2px solid var(--green-500);
  border-bottom: 2px solid var(--green-500);
  transform: rotate(-45deg);
}
.checklist--dev > li { color: var(--text-muted); }
.checklist--dev > li::before {
  width: 10px;
  height: 10px;
  border: 1px solid var(--border-default);
  border-radius: 999px;
  transform: none;
  top: 8px;
}

.shot-img {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  box-shadow: var(--shadow-xs, 0 1px 2px rgba(18,48,29,.06));
}

/* ── Logo lockup ────────────────────────────── */
.logo-lockup { display: grid; grid-template-columns: max-content; justify-items: start; gap: 0; justify-self: start; }
.logo-tagline {
  display: block;
  margin-top: 2px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .01em;
  color: #C0342B;
  transform-origin: left top;
  animation: taglinePop 520ms cubic-bezier(.16,1,.3,1) 260ms both;
}
@keyframes taglinePop {
  0% { opacity: 0; transform: scale(.7) translateY(-4px); }
  60% { opacity: 1; transform: scale(1.06) translateY(0); }
  100% { opacity: 1; transform: scale(1) translateY(0); }
}
@media (prefers-reduced-motion: reduce) { .logo-tagline { animation: none; } }
.site-footer .logo-tagline { color: #E8776C; }

/* ── Image zoom ─────────────────────────────── */
.media { overflow: hidden; }
.media image-slot {
  display: block;
  transition: transform 600ms var(--ease-out, cubic-bezier(.16,1,.3,1));
  will-change: transform;
}
.media:hover image-slot { transform: scale(1.03); }
.media--zoom image-slot { animation: slowZoom 12s ease-in-out infinite alternate; }
@keyframes slowZoom { from { transform: scale(1); } to { transform: scale(1.035); } }
@media (prefers-reduced-motion: reduce) {
  .media image-slot, .media--zoom image-slot { animation: none; transition: none; }
  .media:hover image-slot { transform: none; }
}

.tag-soon { display: inline-block; white-space: nowrap; font-size: 10px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; padding: 2px 7px; border-radius: 999px; background: var(--status-warning-bg, #FCF2DC); color: var(--status-warning-fg, #8F600C); margin-left: 6px; }


/* ── Custom cursor ──────────────────────────── */
html.has-custom-cursor,
html.has-custom-cursor body,
html.has-custom-cursor a,
html.has-custom-cursor button,
html.has-custom-cursor .btn,
html.has-custom-cursor label,
html.has-custom-cursor summary,
html.has-custom-cursor [role="button"] { cursor: none; }
html.has-custom-cursor input,
html.has-custom-cursor textarea,
html.has-custom-cursor select { cursor: auto; }

.cursor-canvas {
  position: fixed;
  top: 0;
  left: 0;
  pointer-events: none;
  z-index: 9999;
  opacity: 0;
  mix-blend-mode: difference;
  transition: opacity 200ms ease;
}

@media (hover: none), (prefers-reduced-motion: reduce) {
  .cursor-canvas { display: none; }
  html.has-custom-cursor, html.has-custom-cursor body { cursor: auto; }
}
