/* Polaris Commerce — recreated from design_handoff_polaris_site (.dc.html files are canonical) */

:root {
  --paper: #faf7f2;
  --card: #fff;
  --ink: #1c1a16;
  --cobalt: #2b5cd9;
  --cobalt-hover: #2450bd;
  --cobalt-light: #7da2ff;
  --cobalt-light-2: #8fa8e8;
  --body-on-card: #3d3a33;
  --secondary: #6b655c;
  --muted: #9a9285;
  --disabled: #b5ad9e;
  --faint: #c4bcac;
  --dark-feature: #d8d3c8;
  --border: #e2dcd0;
  --divider: #efe9de;
  --gridline: #f2ede3;
  --mono: 'IBM Plex Mono', monospace;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  min-height: 100vh;
  background: var(--paper);
  font-family: 'Space Grotesk', sans-serif;
  color: var(--ink);
}

a { color: inherit; text-decoration: none; }
a:hover { color: var(--cobalt); }

button, input, textarea { font-family: 'Space Grotesk', sans-serif; }

/* Containers — handoff widths are content widths beside 32px side padding */
.shell      { max-width: 1184px; margin: 0 auto; padding: 0 32px; }
.shell-880  { max-width: 944px;  margin: 0 auto; padding: 0 32px; }
.shell-860  { max-width: 924px;  margin: 0 auto; padding: 0 32px; }

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

/* ---------- Nav ---------- */
.nav {
  max-width: 1184px;
  width: 100%;
  margin: 0 auto;
  padding: 20px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 9px;
  font-weight: 600;
  font-size: 16.5px;
}
.brand svg { width: 22px; height: 22px; flex: none; }
.nav-links {
  display: flex;
  gap: 28px;
  font-size: 14px;
  color: var(--secondary);
}
.nav-links a.active { color: var(--ink); font-weight: 600; }
.nav-cta {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--paper);
  background: var(--cobalt);
  padding: 10px 20px;
  border-radius: 99px;
  white-space: nowrap;
}
.nav-cta:hover { background: var(--cobalt-hover); color: var(--paper); }

/* ---------- Footer ---------- */
.footer {
  max-width: 1184px;
  margin: 64px auto 0;
  padding: 28px 32px 40px;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  width: 100%;
}
.footer-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: var(--secondary);
}
.footer-brand svg { width: 17px; height: 17px; flex: none; }
.footer-links {
  display: flex;
  gap: 24px;
  font-size: 13.5px;
  color: var(--secondary);
}

/* ---------- Dark CTA band ---------- */
.cta-section { margin-top: 88px; }
.cta-band {
  background: var(--ink);
  border-radius: 20px;
  padding: 56px 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
}
.cta-title {
  font-size: 30px;
  font-weight: 600;
  color: var(--paper);
  letter-spacing: -.02em;
  max-width: 440px;
  line-height: 1.2;
}
.cta-sub { font-size: 15px; color: var(--muted); margin-top: 10px; }
.cta-btn {
  font-size: 14.5px;
  font-weight: 600;
  color: var(--ink);
  background: var(--paper);
  border-radius: 99px;
  padding: 14px 28px;
  white-space: nowrap;
}
.cta-btn:hover { background: var(--cobalt); color: var(--paper); }

/* ---------- Home: hero + waitlist ---------- */
.hero { text-align: center; padding: 72px 32px 0; }
.hero h1 {
  font-weight: 600;
  font-size: 60px;
  line-height: 1.05;
  letter-spacing: -.025em;
  max-width: 760px;
  margin: 0 auto;
}
.hero h1 .accent { color: var(--cobalt); }
.hero-sub {
  font-size: 17px;
  line-height: 1.6;
  color: var(--secondary);
  max-width: 540px;
  margin: 20px auto 0;
}
.waitlist-row {
  display: flex;
  gap: 10px;
  justify-content: center;
  margin-top: 32px;
}
.waitlist-input {
  font-size: 14.5px;
  color: var(--ink);
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 99px;
  padding: 14px 22px;
  width: 316px;
  outline: none;
  box-shadow: 0 1px 2px rgba(28,26,22,.04);
}
.waitlist-input:focus { border-color: var(--cobalt); }
.waitlist-btn {
  font-size: 14.5px;
  font-weight: 600;
  color: var(--paper);
  background: var(--ink);
  border: none;
  border-radius: 99px;
  padding: 14px 26px;
  cursor: pointer;
}
.waitlist-btn:hover { background: var(--cobalt); }
.waitlist-joined {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 15px;
  font-weight: 500;
  color: var(--cobalt);
  background: rgba(43,92,217,.08);
  border: 1px solid rgba(43,92,217,.2);
  border-radius: 99px;
  padding: 14px 26px;
}
.waitlist-note { font-size: 12.5px; color: var(--muted); margin-top: 14px; }

/* ---------- Home: demo card ---------- */
.demo-shell { margin-top: 56px; }
.demo-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 14px;
  box-shadow: 0 24px 48px -24px rgba(28,26,22,.18);
  overflow: hidden;
}
.demo-head {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 14px 20px;
  border-bottom: 1px solid var(--divider);
}
.demo-dot { width: 9px; height: 9px; border-radius: 99px; background: var(--border); }
.demo-url { font-size: 12.5px; color: var(--muted); margin-left: 8px; }
.demo-conf {
  margin-left: auto;
  font-family: var(--mono);
  font-size: 11.5px;
  color: var(--cobalt);
}
.demo-grid { display: grid; grid-template-columns: 1fr 1fr 1fr; }
.demo-cell { padding: 24px 26px; border-right: 1px solid var(--divider); }
.demo-cell-label { font-size: 12.5px; color: var(--muted); }
.demo-cell-note { font-size: 12px; color: var(--muted); margin-top: 4px; }
.demo-big-price {
  font-size: 27px;
  color: var(--muted);
  text-decoration: line-through;
  margin-top: 6px;
}
.demo-big-note { font-size: 12px; color: var(--faint); margin-top: 4px; }
.demo-cell-match { background: rgba(43,92,217,.05); }
.demo-small-name { font-size: 12.5px; color: var(--cobalt); font-weight: 600; }
.demo-small-price { font-size: 27px; font-weight: 600; margin-top: 6px; }
.demo-cell-save {
  border-right: none;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.demo-save { font-size: 27px; font-weight: 600; color: var(--cobalt); margin-top: 6px; }
.demo-chips {
  display: flex;
  gap: 8px;
  padding: 14px 20px;
  border-top: 1px solid var(--divider);
}
.chip {
  font-size: 12px;
  border: 1px solid var(--border);
  color: var(--muted);
  background: transparent;
  border-radius: 99px;
  padding: 6px 13px;
  cursor: pointer;
}
.chip.active { border-color: var(--cobalt); color: var(--cobalt); }

/* ---------- Home: stats ---------- */
.stats-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 16px;
  margin-top: 16px;
}
.stat-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 22px 26px;
}
.stat-label {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .1em;
  color: var(--muted);
  text-transform: uppercase;
}
.stat-num { font-size: 30px; font-weight: 600; margin-top: 8px; }
.stat-num.accent { color: var(--cobalt); }

/* ---------- Home: how-it-works preview ---------- */
.how-preview { margin-top: 88px; }
.how-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 24px;
  margin-top: 12px;
}
.how-head h2 {
  font-weight: 600;
  font-size: 34px;
  letter-spacing: -.02em;
  margin: 0;
  max-width: 480px;
}
.how-link {
  font-size: 14px;
  font-weight: 500;
  color: var(--cobalt);
  white-space: nowrap;
}
.how-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 16px;
  margin-top: 32px;
}
.how-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 28px;
}
.how-num { font-family: var(--mono); font-size: 12px; color: var(--muted); }
.how-num.accent { color: var(--cobalt); }
.how-title { font-size: 18px; font-weight: 600; margin-top: 14px; }
.how-body { font-size: 14.5px; line-height: 1.6; color: var(--secondary); margin-top: 8px; }

/* ---------- How It Works page ---------- */
.page-header { padding-top: 64px; }
.page-header h1 {
  font-weight: 600;
  font-size: 48px;
  line-height: 1.08;
  letter-spacing: -.025em;
  max-width: 640px;
  margin: 16px 0 0;
}
.page-header .intro {
  font-size: 16.5px;
  line-height: 1.65;
  color: var(--secondary);
  max-width: 560px;
  margin: 18px 0 0;
}

.trace-shell { margin-top: 56px; }
.trace-scroll { overflow-x: auto; }
.trace-card {
  background-color: var(--card);
  border: 1px solid var(--border);
  border-radius: 20px;
  overflow: hidden;
  position: relative;
  height: 340px;
  min-width: 960px;
  background-image:
    linear-gradient(var(--gridline) 1px, transparent 1px),
    linear-gradient(90deg, var(--gridline) 1px, transparent 1px);
  background-size: 40px 40px;
}
.trace-svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.trace-node { position: absolute; border-radius: 8px; }
.trace-node-label { font-family: var(--mono); font-size: 11px; color: var(--muted); }
.trace-marketplace {
  left: 80px;
  top: 44px;
  background: var(--card);
  border: 1px solid var(--border);
  padding: 12px 16px;
  box-shadow: 0 4px 12px rgba(28,26,22,.06);
}
.trace-marketplace-price {
  font-size: 16px;
  color: var(--muted);
  text-decoration: line-through;
  margin-top: 2px;
}
.trace-match {
  left: 440px;
  top: 190px;
  background: rgba(43,92,217,.07);
  border: 1px solid rgba(43,92,217,.25);
  padding: 10px 14px;
}
.trace-match .trace-node-label { color: var(--cobalt); }
.trace-match-sub { font-size: 13px; color: var(--secondary); margin-top: 2px; }
.trace-direct {
  left: 740px;
  top: 100px;
  background: var(--ink);
  padding: 12px 16px;
  box-shadow: 0 10px 24px rgba(28,26,22,.2);
}
.trace-direct .trace-node-label { color: var(--cobalt-light-2); }
.trace-direct-price { font-size: 17px; color: var(--paper); margin-top: 2px; }
.trace-direct-price .pct { color: var(--cobalt-light); font-size: 12px; }

.steps-grid {
  margin-top: 72px;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 16px;
}
.step { border-top: 2px solid var(--ink); padding-top: 22px; }
.step.accent { border-top-color: var(--cobalt); }
.step-label { font-family: var(--mono); font-size: 12px; color: var(--muted); }
.step.accent .step-label { color: var(--cobalt); }
.step-title { font-size: 20px; font-weight: 600; margin-top: 12px; }
.step-body { font-size: 14.5px; line-height: 1.65; color: var(--secondary); margin-top: 10px; }

.why-section { margin-top: 80px; }
.why-section h2 { font-weight: 600; font-size: 30px; letter-spacing: -.02em; margin: 0; }
.why-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 28px;
}
.why-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 26px 28px;
}
.why-title { font-size: 16.5px; font-weight: 600; }
.why-body { font-size: 14.5px; line-height: 1.6; color: var(--secondary); margin-top: 8px; }

.cta-section-hiw { margin-top: 80px; }

/* ---------- Pricing ---------- */
.pricing-header { text-align: center; padding: 64px 32px 0; }
.pricing-header h1 {
  font-weight: 600;
  font-size: 48px;
  line-height: 1.08;
  letter-spacing: -.025em;
  margin: 16px auto 0;
  max-width: 600px;
}
.billing-toggle {
  display: inline-flex;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 99px;
  padding: 4px;
  margin-top: 30px;
  gap: 2px;
}
.billing-toggle button {
  font-size: 13.5px;
  font-weight: 600;
  border: none;
  border-radius: 99px;
  padding: 9px 20px;
  cursor: pointer;
  background: transparent;
  color: var(--secondary);
}
.billing-toggle button.active { background: var(--ink); color: var(--paper); }

.plans-grid {
  margin-top: 44px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  align-items: stretch;
}
.plan {
  border-radius: 18px;
  padding: 36px 34px;
  display: flex;
  flex-direction: column;
}
.plan-scout { background: var(--card); border: 1px solid var(--border); }
.plan-navigator {
  background: var(--ink);
  position: relative;
  box-shadow: 0 24px 48px -20px rgba(28,26,22,.35);
}
.plan-badge {
  position: absolute;
  top: -11px;
  left: 34px;
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: .08em;
  color: var(--paper);
  background: var(--cobalt);
  border-radius: 99px;
  padding: 4px 12px;
}
.plan-name { font-size: 17px; font-weight: 600; }
.plan-navigator .plan-name { color: var(--paper); }
.plan-for { font-size: 13.5px; color: var(--muted); margin-top: 4px; }
.plan-price-row {
  display: flex;
  align-items: baseline;
  gap: 6px;
  margin-top: 22px;
}
.plan-price { font-size: 44px; font-weight: 600; letter-spacing: -.02em; }
.plan-navigator .plan-price { color: var(--paper); }
.plan-price-note { font-size: 14px; color: var(--muted); }
.plan-features {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 26px;
  font-size: 14.5px;
  color: var(--body-on-card);
}
.plan-navigator .plan-features { color: var(--dark-feature); }
.plan-features > div { display: flex; gap: 10px; }
.plan-features .check { color: var(--cobalt); }
.plan-navigator .plan-features .check { color: var(--cobalt-light); }
.plan-features .excluded { color: var(--disabled); }
.plan-btn { margin-top: auto; padding-top: 28px; display: block; }
.plan-btn span {
  display: block;
  text-align: center;
  font-size: 14.5px;
  font-weight: 600;
  border-radius: 99px;
  padding: 12px 0;
}
.plan-scout .plan-btn span { color: var(--ink); border: 1.5px solid var(--ink); }
.plan-scout .plan-btn:hover { color: inherit; }
.plan-navigator .plan-btn span { color: var(--ink); background: var(--paper); }
.plan-navigator .plan-btn:hover span { background: var(--cobalt); color: var(--paper); }

.breakeven {
  text-align: center;
  font-size: 13px;
  color: var(--muted);
  margin-top: 22px;
}

.faq-section { margin-top: 72px; }
.faq-section h2 { font-weight: 600; font-size: 26px; letter-spacing: -.02em; margin: 0; }
.faq-list { margin-top: 20px; border-top: 1px solid var(--border); }
.faq-item { padding: 20px 4px; border-bottom: 1px solid var(--border); }
.faq-q { font-size: 15.5px; font-weight: 600; }
.faq-a { font-size: 14.5px; line-height: 1.6; color: var(--secondary); margin-top: 6px; }

/* ---------- Contact ---------- */
.page-flex { min-height: 100vh; display: flex; flex-direction: column; }
.page-flex .footer { margin-top: auto; }
.contact-grid {
  width: 100%;
  padding-top: 64px;
  padding-bottom: 48px;
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 56px;
  align-items: start;
}
.contact-grid h1 {
  font-weight: 600;
  font-size: 44px;
  line-height: 1.1;
  letter-spacing: -.025em;
  margin: 16px 0 0;
}
.contact-intro {
  font-size: 16px;
  line-height: 1.65;
  color: var(--secondary);
  margin: 16px 0 0;
  max-width: 380px;
}
.contact-cards {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-top: 32px;
}
.contact-email-card {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 16px 20px;
  font-size: 14.5px;
  font-weight: 500;
}
.contact-form-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 34px 36px;
  box-shadow: 0 20px 40px -24px rgba(28,26,22,.15);
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.field { display: flex; flex-direction: column; gap: 7px; }
.field label { font-size: 12.5px; font-weight: 600; color: var(--secondary); }
.field input,
.field textarea {
  font-size: 14px;
  color: var(--ink);
  background: var(--paper);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 12px 14px;
  outline: none;
}
.field textarea { resize: vertical; }
.field input:focus,
.field textarea:focus { border-color: var(--cobalt); }
.field-mt { margin-top: 14px; }
.topic-chips { display: flex; gap: 8px; flex-wrap: wrap; }
.topic-chips .chip { font-size: 12.5px; padding: 7px 14px; }
.send-btn {
  font-size: 14.5px;
  font-weight: 600;
  color: var(--paper);
  background: var(--ink);
  border: none;
  border-radius: 99px;
  padding: 13px 28px;
  margin-top: 20px;
  cursor: pointer;
  width: 100%;
}
.send-btn:hover { background: var(--cobalt); }
.form-success { text-align: center; padding: 60px 0; }
.form-success .check { font-size: 40px; color: var(--cobalt); }
.form-success .title { font-size: 20px; font-weight: 600; margin-top: 12px; }
.form-success .sub { font-size: 14.5px; color: var(--secondary); margin-top: 8px; }
.send-another {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--ink);
  background: transparent;
  border: 1.5px solid var(--ink);
  border-radius: 99px;
  padding: 10px 22px;
  margin-top: 24px;
  cursor: pointer;
}

[hidden] { display: none !important; }

/* ---------- Responsive (desktop is the design reference; mobile by judgment) ---------- */
@media (max-width: 880px) {
  .nav { flex-wrap: wrap; }
  .nav-links { order: 3; width: 100%; justify-content: center; padding-top: 6px; }

  .hero { padding-top: 48px; }
  .hero h1 { font-size: 40px; }
  .page-header h1, .pricing-header h1 { font-size: 36px; }
  .contact-grid h1 { font-size: 34px; }
  .how-head { flex-direction: column; align-items: flex-start; gap: 12px; }
  .how-head h2 { font-size: 28px; }
  .why-section h2 { font-size: 26px; }
  .cta-title { font-size: 26px; }
  .cta-band { padding: 40px 28px; }
  .cta-section, .how-preview { margin-top: 64px; }

  .waitlist-row { flex-wrap: wrap; padding: 0 8px; }
  .waitlist-input { width: 100%; max-width: 316px; }

  .demo-grid { grid-template-columns: 1fr; }
  .demo-cell { border-right: none; border-bottom: 1px solid var(--divider); }
  .demo-cell-save { border-bottom: none; }
  .stats-grid, .how-grid, .steps-grid, .why-grid, .plans-grid { grid-template-columns: 1fr; }
  .plans-grid { gap: 24px; }
  .contact-grid { grid-template-columns: 1fr; gap: 40px; }
  .form-row { grid-template-columns: 1fr; }
}
