/* Marketing homepage — Concept C ("Show the Dashboard"), Chapel Green palette.
   oklch is the source of truth per the design handoff; the hex values in the
   handoff's token table are approximations and are not used here. */

:root {
  --brand: oklch(0.47 0.09 155);
  --brand-hover: oklch(0.4 0.09 155);
  --brand-text: oklch(0.43 0.09 155);
  --brand-link-hover: oklch(0.33 0.08 155);

  --ink: oklch(0.25 0.03 155);
  --ink-hover: oklch(0.19 0.03 155);
  --ink-card: oklch(0.31 0.03 155);
  --ink-card-border: oklch(0.4 0.03 155);
  --mint-on-dark: oklch(0.78 0.1 150);

  --text: oklch(0.26 0.025 150);
  --text-2: oklch(0.45 0.02 150);
  --text-muted: oklch(0.57 0.02 150);
  --on-dark: oklch(0.95 0.012 130);
  --on-dark-2: oklch(0.82 0.016 130);

  --white: oklch(1 0 0);
  --band: oklch(0.978 0.01 130);
  --surface: oklch(0.958 0.012 130);
  --sidebar: oklch(0.968 0.012 130);
  --mint: oklch(0.945 0.026 145);
  --mint-border: oklch(0.89 0.03 145);
  --border: oklch(0.9 0.014 135);
  --border-strong: oklch(0.82 0.02 135);
  --hatch-line: oklch(0.91 0.018 135);

  --gutter: clamp(20px, 4vw, 40px);
  --section-y: clamp(56px, 6vw, 88px);
  --cta-y: clamp(44px, 5vw, 68px);
  --col-gap: clamp(32px, 4vw, 56px);

  --sans: 'Plus Jakarta Sans', Helvetica, Arial, sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, Menlo, monospace;
}

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

html {
  /* Anchors sit under the sticky header without this offset. */
  scroll-behavior: smooth;
  scroll-padding-top: 84px;
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; animation: none !important; }
}

body {
  margin: 0;
  background: var(--white);
  color: var(--text);
  font-family: var(--sans);
  letter-spacing: -0.011em;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, p { margin: 0; }
img { max-width: 100%; display: block; }

a { color: var(--brand-text); text-decoration: none; }
a:hover { color: var(--brand-link-hover); text-decoration: underline; }

/* The prototype specified no focus states; the handoff asks for a visible ring
   on every interactive element. */
a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 2px;
  border-radius: 4px;
}

.wrap { max-width: 1200px; margin: 0 auto; padding-inline: var(--gutter); }
.section { padding-block: var(--section-y); }
.band { background: var(--band); }
.rule-top { border-top: 1px solid var(--border); }
.rule-bottom { border-bottom: 1px solid var(--border); }

.mono-eyebrow {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  color: var(--brand-text);
}

h1, h2 { text-wrap: pretty; }
.h1 { font-size: clamp(40px, 4.6vw, 60px); font-weight: 800; line-height: 1.03; letter-spacing: -0.035em; }
.h2 { font-size: clamp(30px, 3.2vw, 42px); font-weight: 700; line-height: 1.08; letter-spacing: -0.03em; }
.h2-sm { font-size: clamp(28px, 3vw, 38px); font-weight: 700; line-height: 1.1; letter-spacing: -0.03em; }
.h2-xs { font-size: clamp(26px, 2.7vw, 34px); font-weight: 700; letter-spacing: -0.03em; }
.lead { font-size: clamp(17px, 1.35vw, 19px); line-height: 1.55; color: var(--text-2); text-wrap: pretty; }
.body { font-size: 17px; line-height: 1.6; color: var(--text-2); text-wrap: pretty; }

/* Every unfilled image slot uses the same hatch treatment. */
.hatch {
  background-color: var(--surface);
  background-image: repeating-linear-gradient(135deg, var(--hatch-line) 0 1px, transparent 1px var(--hatch-period, 12px));
}
.hatch-caption {
  font-family: var(--mono);
  font-size: 12px;
  line-height: 1.7;
  color: var(--text-muted);
  text-align: center;
}

/* ------------------------------------------------------------------ buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: inherit;
  font-size: 16px;
  font-weight: 600;
  letter-spacing: inherit;
  padding: 15px 24px;
  border-radius: 11px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background-color 150ms ease, border-color 150ms ease;
  text-decoration: none;
}
.btn:hover { text-decoration: none; }
.btn-primary { background: var(--brand); color: oklch(0.98 0.01 130); }
.btn-primary:hover { background: var(--brand-hover); color: oklch(0.98 0.01 130); }
.btn-outline { background: var(--white); border-color: var(--border); color: var(--text); }
.btn-outline:hover { border-color: var(--border-strong); color: var(--text); }
.btn-outline-mint { background: var(--white); border-color: var(--mint-border); color: var(--text); }
.btn-outline-mint:hover { border-color: var(--border-strong); color: var(--text); }
.btn-sm { font-size: 14.5px; padding: 11px 18px; border-radius: 9px; }

/* -------------------------------------------------------------------- header */
.site-head {
  position: sticky;
  top: 0;
  z-index: 40;
  background: oklch(1 0 0 / 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.head-inner { display: flex; align-items: center; gap: 28px; padding-block: 16px; }
.logo { display: flex; align-items: center; gap: 10px; margin-right: auto; color: var(--text); }
.logo:hover { text-decoration: none; color: var(--text); }
.logo-mark { width: 28px; height: 28px; border-radius: 9px; background: var(--brand); flex: none; }
.logo-word { font-size: 19px; font-weight: 700; }
.head-nav { display: flex; align-items: center; gap: 24px; }
.head-nav a { font-size: 15px; font-weight: 500; color: var(--text-2); }
.head-actions { display: flex; align-items: center; gap: 10px; }
.head-login { font-size: 15px; font-weight: 600; color: var(--text-2); }
.btn-head {
  background: var(--ink);
  color: var(--on-dark);
  font-size: 15px;
  font-weight: 600;
  padding: 10px 18px;
  border-radius: 10px;
}
.btn-head:hover { background: var(--ink-hover); color: var(--on-dark); }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 4px;
  width: 20px;
  background: none;
  border: 0;
  padding: 14px 0;
  cursor: pointer;
}
.nav-toggle i { height: 2px; background: var(--text); display: block; }
.mobile-menu { display: none; }

/* ---------------------------------------------------------------------- hero */
.hero { background: var(--band); border-bottom: 1px solid var(--border); }
.hero-inner {
  display: flex;
  flex-wrap: wrap;
  gap: var(--col-gap);
  padding-top: clamp(44px, 6vw, 76px);
}
.hero-copy { flex: 1 1 400px; min-width: 320px; padding-bottom: clamp(44px, 6vw, 76px); }
.pill {
  display: inline-block;
  background: var(--mint);
  color: var(--brand-text);
  font-size: 13px;
  font-weight: 600;
  padding: 6px 12px;
  border-radius: 7px;
}
.hero h1 { margin-top: 20px; }
.hero .lead { margin-top: 18px; max-width: 30em; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.reassure {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 14px;
  margin-top: 22px;
  font-size: 14px;
  color: var(--text-muted);
}
.reassure .sep { opacity: 0.6; }

/* The frame deliberately bleeds off the bottom edge of the hero band. */
.hero-shot { flex: 1 1 480px; min-width: 380px; display: flex; align-items: flex-end; }
.frame {
  width: 100%;
  background: var(--white);
  border: 1px solid var(--border);
  border-bottom: none;
  border-radius: 16px 16px 0 0;
  padding: 12px 12px 0;
  box-shadow: 0 -2px 60px -30px oklch(0.3 0.03 155 / 0.5);
}
.frame-chrome { display: flex; gap: 7px; align-items: center; padding: 4px 6px 12px; }
.frame-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--border); flex: none; }
.frame-url {
  flex: 1;
  height: 24px;
  margin-left: 8px;
  border-radius: 7px;
  background: var(--surface);
  font-family: var(--mono);
  font-size: 11px;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  padding: 0 10px;
  overflow: hidden;
  white-space: nowrap;
}
.frame-body { display: flex; gap: 12px; height: 360px; overflow: hidden; }
.frame-side {
  width: 168px;
  flex: none;
  background: var(--sidebar);
  border-top-left-radius: 10px;
  padding: 14px 12px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.frame-side .label {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.09em;
  color: var(--text-muted);
  padding: 0 6px 4px;
}
.frame-side .item { font-size: 14px; color: var(--text-2); padding: 9px 10px; }
.frame-side .item.active {
  background: var(--mint);
  color: var(--brand-text);
  font-weight: 600;
  border-radius: 7px;
}
.frame-side .item.settings { margin-top: auto; font-size: 13px; color: var(--text-muted); }
.frame-main {
  flex: 1;
  border-top-right-radius: 10px;
  display: grid;
  place-items: center;
  padding: 20px;
}

/* ---------------------------------------------------------------- logo strip */
.strip-inner { display: flex; flex-wrap: wrap; align-items: center; gap: 18px 32px; padding-block: 26px; }
.strip-label { font-size: 14px; color: var(--text-muted); flex: none; }
.strip-logos { display: flex; flex: 1 1 400px; gap: 14px; }
.strip-logos div { flex: 1; height: 34px; border-radius: 7px; --hatch-period: 11px; }

/* ----------------------------------------------------------- product section */
.split-head { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 20px 40px; }
.split-head > .col-a { flex: 1 1 480px; }
.split-head > .col-b { flex: 1 1 340px; margin: 0; }
.split-head h2 { margin-top: 14px; }

.tabs { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 32px; }
.tab {
  font-family: inherit;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: inherit;
  padding: 10px 18px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--white);
  color: var(--text-2);
  cursor: pointer;
  transition: background-color 150ms ease, color 150ms ease, border-color 150ms ease;
}
.tab[aria-selected="true"] { background: var(--brand); border-color: var(--brand); color: oklch(0.98 0.01 130); }

.panel {
  margin-top: 20px;
  background: var(--band);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: clamp(16px, 2vw, 24px);
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}
.panel-card { background: var(--white); border: 1px solid var(--border); border-radius: 14px; padding: 18px; }
.panel-list { flex: 1 1 440px; min-width: 320px; }
.panel-form { flex: 1 1 300px; min-width: 280px; }
.panel-list-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
.panel-title { font-size: 17px; font-weight: 700; }
.btn-add {
  background: var(--brand);
  color: oklch(0.98 0.01 130);
  font-size: 14px;
  font-weight: 600;
  padding: 9px 15px;
  border-radius: 8px;
}
.btn-add:hover { background: var(--brand-hover); color: oklch(0.98 0.01 130); }
.rows { display: grid; gap: 10px; }
.row {
  background: var(--band);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 13px 15px;
  display: flex;
  gap: 13px;
  align-items: center;
}
.row .thumb { width: 42px; height: 42px; border-radius: 7px; --hatch-period: 9px; flex: none; }
.row .meat { flex: 1; min-width: 0; }
.row .title { font-size: 15px; font-weight: 600; }
.row .meta { font-size: 13.5px; color: var(--text-muted); margin-top: 2px; }
.tag { font-size: 12px; font-weight: 600; padding: 5px 10px; border-radius: 6px; flex: none; }
.tag-on { background: var(--mint); color: var(--brand-text); }
.tag-off { background: var(--surface); color: var(--text-muted); }
.row .edit { font-size: 14px; font-weight: 600; color: var(--brand-text); flex: none; }

.form-caption { font-size: 13.5px; color: var(--text-muted); margin-top: 3px; }
.fields { display: grid; gap: 12px; margin-top: 18px; }
.field-label { font-size: 12.5px; font-weight: 600; color: var(--text-2); margin-bottom: 5px; }
/* Decorative only — these are divs, never focusable or submittable. */
.field-input { height: 38px; border: 1px solid var(--border); border-radius: 8px; background: var(--band); }
.form-actions { display: flex; gap: 10px; margin-top: 4px; }
.form-actions span {
  font-size: 14px;
  font-weight: 600;
  padding: 10px 18px;
  border-radius: 8px;
}
.form-save { background: var(--brand); color: oklch(0.98 0.01 130); }
.form-preview { border: 1px solid var(--border); color: var(--text-2); }

/* -------------------------------------------------------------- dark band */
.dark { background: var(--ink); color: var(--on-dark); }
.dark-inner { display: flex; flex-wrap: wrap; gap: var(--col-gap); }
.dark-col { flex: 1 1 380px; min-width: 300px; }
.dark .mono-eyebrow { color: var(--mint-on-dark); }
.dark h2 { margin-top: 14px; }
.dark p { font-size: 17px; line-height: 1.6; color: var(--on-dark-2); margin-top: 16px; max-width: 26em; text-wrap: pretty; }
.stats { display: flex; gap: 28px; margin-top: 30px; flex-wrap: wrap; }
.stat-figure { font-size: 30px; font-weight: 700; letter-spacing: -0.03em; }
.stat-caption { font-size: 13.5px; color: var(--on-dark-2); margin-top: 2px; }
.dark-cards { display: grid; gap: 12px; align-content: start; }
.dark-card { background: var(--ink-card); border: 1px solid var(--ink-card-border); border-radius: 12px; padding: 18px 20px; }
.dark-card h3 { font-size: 16px; font-weight: 600; }
.dark-card p { font-size: 14.5px; line-height: 1.55; color: var(--on-dark-2); margin-top: 4px; max-width: none; }

/* --------------------------------------------------------------- designs */
.designs-head { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 16px 40px; }
.designs-head .col-a { flex: 1 1 420px; }
.designs-head .col-b { flex: 1 1 320px; margin: 0; font-size: 16.5px; line-height: 1.6; color: var(--text-2); }
.design-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; margin-top: 30px; }
.design-card { border: 1px solid var(--border); border-radius: 14px; overflow: hidden; }
.design-shot {
  height: 190px;
  display: grid;
  place-items: center;
  font-family: var(--mono);
  font-size: 11px;
  color: var(--text-muted);
}
.design-cap { padding: 14px 16px; display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.design-name { font-size: 15.5px; font-weight: 600; }
.design-desc { font-size: 13.5px; color: var(--text-muted); }

/* --------------------------------------------------------------- pricing */
.pricing-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 12px 18px; }
.tbd-note {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--text-muted);
  border: 1px dashed var(--border-strong);
  border-radius: 7px;
  padding: 5px 11px;
}
.price-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 14px; margin-top: 28px; }
.price-card { background: var(--white); border: 1px solid var(--border); border-radius: 14px; padding: 24px; display: flex; flex-direction: column; }
.price-card.featured { border: 2px solid var(--brand); box-shadow: 0 20px 50px -35px oklch(0.3 0.05 155 / 0.6); }
.price-name-row { display: flex; align-items: center; gap: 8px; }
.price-name { font-size: 17px; font-weight: 700; }
.chip-popular {
  background: var(--mint);
  color: var(--brand-text);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.05em;
  padding: 4px 8px;
  border-radius: 5px;
}
.price-amount { display: flex; align-items: baseline; gap: 4px; margin-top: 10px; }
.price-amount .num { font-size: 38px; font-weight: 700; letter-spacing: -0.03em; }
.price-amount .per { font-size: 14px; color: var(--text-muted); }
.price-features { display: grid; gap: 8px; margin-top: 18px; font-size: 14.5px; color: var(--text-2); list-style: none; padding: 0; }
.price-card .btn { margin-top: 22px; width: 100%; }
.price-card .btn:not(.btn-primary) { padding: 11px; }

/* ------------------------------------------------------------------- faq */
.faq-inner { display: flex; flex-wrap: wrap; gap: var(--col-gap); }
.faq-col { flex: 1 1 480px; min-width: 320px; }
.faq-col h2 { margin-bottom: 20px; }
.faq-item { border-top: 1px solid var(--border); }
.faq-q {
  width: 100%;
  display: flex;
  align-items: baseline;
  gap: 14px;
  padding: 16px 0;
  background: none;
  border: 0;
  font-family: inherit;
  letter-spacing: inherit;
  text-align: left;
  cursor: pointer;
  color: inherit;
}
.faq-q .q { flex: 1; font-size: 16.5px; font-weight: 600; }
.faq-q .sign { font-size: 19px; color: var(--brand-text); line-height: 1; }
/* Height is animated via a grid row rather than display, so it can transition. */
.faq-a { display: grid; grid-template-rows: 0fr; transition: grid-template-rows 200ms ease; }
.faq-item.open .faq-a { grid-template-rows: 1fr; }
.faq-a > div { overflow: hidden; }
.faq-a p { font-size: 15.5px; line-height: 1.6; color: var(--text-2); max-width: 44em; padding-bottom: 16px; }

.quotes-col { flex: 1 1 320px; min-width: 280px; }
.quotes-note { font-family: var(--mono); font-size: 11px; color: var(--text-muted); margin-bottom: 14px; }
.quotes { display: grid; gap: 12px; }
.quote { border: 1px solid var(--border); border-radius: 13px; padding: 18px; }
.quote p { font-size: 15.5px; line-height: 1.55; color: var(--text-2); }
.quote-by { display: flex; align-items: center; gap: 10px; margin-top: 14px; }
.quote-avatar { width: 34px; height: 34px; border-radius: 50%; background: var(--surface); flex: none; }
.quote-name { font-size: 13.5px; color: var(--text-muted); }

/* ------------------------------------------------------------- closing cta */
.cta-band { background: var(--mint); border-top: 1px solid var(--mint-border); }
.cta-inner { display: flex; flex-wrap: wrap; align-items: center; gap: 24px; padding-block: var(--cta-y); }
.cta-copy { flex: 1 1 420px; }
.cta-copy h2 { letter-spacing: -0.032em; }
.cta-copy p { font-size: 16.5px; color: var(--text-2); margin-top: 10px; }
.cta-actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------------------------------------------------------------- footer */
.site-foot { background: var(--white); }
.foot-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 20px 40px;
  align-items: center;
  padding-block: 36px;
  border-top: 1px solid var(--border);
}
.foot-logo { display: flex; align-items: center; gap: 9px; margin-right: auto; color: var(--text); }
.foot-logo:hover { text-decoration: none; color: var(--text); }
.foot-logo .logo-mark { width: 22px; height: 22px; border-radius: 7px; }
.foot-logo .logo-word { font-size: 16px; }
.foot-nav { display: flex; flex-wrap: wrap; gap: 12px 24px; font-size: 14px; }
.foot-nav a { color: var(--text-muted); }
.copyright { font-family: var(--mono); font-size: 11px; color: var(--text-muted); }

/* --------------------------------------------------------------- responsive
   The layout reflows continuously via flex-wrap + clamp; these rules cover the
   390pt mobile spec below ~640px. */
@media (max-width: 860px) {
  .head-nav, .head-login { display: none; }
  .nav-toggle { display: flex; }
  .mobile-menu[hidden] { display: none; }
  .mobile-menu {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 8px 0 20px;
    border-top: 1px solid var(--border);
  }
  .mobile-menu a {
    font-size: 16px;
    font-weight: 500;
    color: var(--text-2);
    padding: 14px 4px;
    min-height: 48px;
    display: flex;
    align-items: center;
  }
}

@media (max-width: 640px) {
  html { scroll-padding-top: 72px; }
  .h1 { font-size: 33px; line-height: 1.05; }
  .hero .lead { font-size: 16px; }
  /* Full-width stacked CTAs, 48px minimum tap targets. */
  .cta-row { flex-direction: column; gap: 10px; }
  .cta-row .btn { width: 100%; min-height: 48px; }
  .reassure .hide-sm { display: none; }
  .btn { min-height: 48px; }
  .head-inner { gap: 12px; }

  /* The dashboard preview crops to the list view on mobile. */
  .frame-side { display: none; }
  .frame-body { height: 260px; }
  .panel { padding: 14px; border-radius: 13px; }
  .panel-card { padding: 14px; border-radius: 13px; }
  .tabs { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; }
  .tabs::-webkit-scrollbar { display: none; }
  .tab { flex: none; min-height: 48px; }
  .nav-toggle { min-height: 48px; justify-content: center; }
  .row .edit { display: none; }

  .h2, .h2-sm, .h2-xs { font-size: 24px; }
  .body, .dark p { font-size: 15px; }
  .stats { gap: 20px; }

  .cta-inner { text-align: center; }
  .cta-actions { width: 100%; flex-direction: column; }
  .cta-actions .btn { width: 100%; }
  .foot-inner { flex-direction: column; align-items: flex-start; }
  .foot-logo { margin-right: 0; }
}
