/* Matio selling site: redesign on the approved story structure.
 * Brand tokens shared with the product editor (calm, modern, no stock photos;
 * the avatar is the face of the brand). */
:root {
  --ink: #1f1b2e;
  --ink-soft: #2a2440;
  --muted: #6b6478;
  --muted2: #57506a;
  --primary: #6d4aef;
  --primary-dark: #5637d6;
  --primary-soft: #8f6bff;
  --lavender: #efeafe;
  --lavender-2: #f6f2ff;
  --amber: #ffb224;
  --page: #f8f8f8;
  --card: #fff;
  --border1: rgba(31, 27, 46, 0.08);
  --border2: rgba(31, 27, 46, 0.12);
  --good: #1e7d4f;
  --error: #b3261e;
  --shadow-1: 0 1px 2px rgba(31, 27, 46, 0.04), 0 8px 24px rgba(31, 27, 46, 0.05);
  --shadow-2: 0 2px 6px rgba(31, 27, 46, 0.06), 0 18px 44px rgba(109, 74, 239, 0.12);
  --grad-primary: linear-gradient(135deg, #6d4aef, #8f6bff);
  --radius: 20px;
  --font-head: 'Gabarito', sans-serif;
  --font-body: 'Schibsted Grotesk', system-ui, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font: 400 16px/1.6 var(--font-body);
  color: var(--ink);
  background: #fff;
}
h1, h2, h3, h4 { font-family: var(--font-head); letter-spacing: -0.02em; margin: 0; }
h2 { font-size: clamp(28px, 4vw, 42px); line-height: 1.12; }
h3 { font-size: 19px; }
p { margin: 0; }
a { text-decoration: none; color: inherit; }
img, svg, video { max-width: 100%; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; border-radius: 6px; }

section { padding: 92px 24px; max-width: 1180px; margin: 0 auto; }
.section-head { max-width: 760px; margin-bottom: 48px; }
.section-head p { margin-top: 14px; color: var(--muted); font-size: 18px; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font: 600 13px/1 var(--font-body);
  color: var(--primary-dark);
  background: var(--lavender);
  padding: 8px 14px;
  border-radius: 999px;
  margin-bottom: 18px;
}
.eyebrow::before {
  content: '';
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--primary);
}

/* ------------------------------------------------------------- reveal */
.reveal { opacity: 0; transform: translateY(14px); transition: opacity 0.45s ease, transform 0.45s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  * { animation: none !important; }
}

/* ------------------------------------------------------------------ nav */
.nav {
  position: sticky;
  top: 0;
  z-index: 20; /* site z-index ceiling: the Matio widget layers above this */
  display: flex;
  align-items: center;
  gap: 28px;
  padding: 14px 24px;
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: blur(14px) saturate(1.4);
  -webkit-backdrop-filter: blur(14px) saturate(1.4);
  border-bottom: 1px solid var(--border1);
}
.logo { display: flex; align-items: center; gap: 8px; font: 700 22px/1 var(--font-head); }
.nav-links { display: flex; gap: 24px; margin-left: auto; font-size: 15px; color: var(--muted2); }
.nav-links a { padding: 6px 2px; }
.nav-links a:hover { color: var(--ink); }
.nav-cta { display: flex; gap: 10px; margin-left: 8px; }

/* -------------------------------------------------------------- buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font: 600 15px/1 var(--font-body);
  border-radius: 12px;
  padding: 12px 20px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s, box-shadow 0.2s, transform 0.2s;
}
.btn.primary {
  background: var(--grad-primary);
  color: #fff;
  box-shadow: 0 4px 14px rgba(109, 74, 239, 0.28);
}
.btn.primary:hover { box-shadow: 0 6px 22px rgba(109, 74, 239, 0.38); transform: translateY(-1px); }
.btn.ghost { border-color: var(--border2); color: var(--ink); background: rgba(255, 255, 255, 0.85); }
.btn.ghost:hover { border-color: var(--primary); color: var(--primary-dark); }
.btn.lg { padding: 16px 28px; font-size: 17px; border-radius: 14px; }
.btn.inverse { background: #fff; color: var(--ink); }
.btn.inverse:hover { transform: translateY(-1px); box-shadow: 0 6px 22px rgba(0, 0, 0, 0.25); }
@media (prefers-reduced-motion: reduce) { .btn:hover { transform: none; } }

/* ----------------------------------------------------------------- hero */
.hero-wrap {
  background:
    radial-gradient(52% 60% at 18% 12%, var(--lavender) 0%, transparent 70%),
    radial-gradient(40% 48% at 88% 30%, rgba(255, 178, 36, 0.14) 0%, transparent 70%);
}
.hero {
  display: grid;
  grid-template-columns: 1.02fr 0.98fr;
  gap: 56px;
  align-items: center;
  padding-top: 68px;
  padding-bottom: 76px;
}
.hero h1 { font-size: clamp(38px, 5.6vw, 62px); line-height: 1.04; }
.hero h1 em { font-style: normal; color: var(--primary-dark); }
.hero .lede { margin: 22px 0 30px; font-size: 19px; color: var(--muted2); max-width: 32em; }
.cta-row { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }
.micro { margin-top: 16px; font-size: 13.5px; color: var(--muted); display: flex; flex-wrap: wrap; gap: 6px 18px; }
.micro span { display: inline-flex; align-items: center; gap: 7px; }
.micro svg { color: var(--primary-dark); flex: none; }

.hero-media { position: relative; }
.hero-media::before {
  content: '';
  position: absolute;
  inset: -8%;
  background: radial-gradient(50% 50% at 50% 50%, rgba(109, 74, 239, 0.16) 0%, transparent 70%);
  z-index: -1;
}
.video-frame {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border2);
  background: var(--ink);
  aspect-ratio: 16 / 10;
  box-shadow: var(--shadow-2);
}
.video-frame video { width: 100%; height: 100%; object-fit: cover; display: block; }
.video-placeholder {
  position: absolute;
  inset: 0;
  background: url('./poster.svg?v=2') center / cover no-repeat var(--ink);
}
.video-caption { margin-top: 14px; font-size: 13.5px; color: var(--muted); text-align: center; }

/* ---------------------------------------------------------- card layouts */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.card {
  background: var(--card);
  border: 1px solid var(--border1);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow-1);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.card:hover { transform: translateY(-2px); box-shadow: var(--shadow-2); }
@media (prefers-reduced-motion: reduce) { .card:hover { transform: none; } }
.card h3 { margin-bottom: 10px; }
.card p { color: var(--muted); font-size: 15px; }
.icon-chip {
  display: inline-flex;
  width: 40px;
  height: 40px;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  background: var(--lavender);
  color: var(--primary-dark);
  margin-bottom: 16px;
}

/* --------------------------------------------------------------- problem */
.turn {
  margin-top: 36px;
  border-left: 3px solid var(--amber);
  background: var(--lavender-2);
  border-radius: 0 16px 16px 0;
  padding: 22px 26px;
  font: 600 19px/1.5 var(--font-head);
  color: var(--ink);
  max-width: 46em;
}

/* -------------------------------------------------------------- contrast */
.contrast { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.contrast .card ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 13px; }
.contrast .card li { padding-left: 28px; position: relative; color: var(--muted2); font-size: 15px; }
.contrast .card li::before { position: absolute; left: 0; font-weight: 700; }
.contrast .tours { background: var(--page); box-shadow: none; }
.contrast .tours li::before { content: '✕'; color: var(--muted); }
.contrast .matio {
  border-color: transparent;
  background:
    linear-gradient(#fff, #fff) padding-box,
    var(--grad-primary) border-box;
  border: 1.5px solid transparent;
  box-shadow: var(--shadow-2);
}
.contrast .matio li::before { content: '✓'; color: var(--primary-dark); }

/* --------------------------------------------------------- how it works */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; counter-reset: step; }
.step { position: relative; }
.step-num {
  display: inline-flex;
  width: 38px;
  height: 38px;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  background: var(--grad-primary);
  color: #fff;
  font: 700 17px/1 var(--font-head);
  margin-bottom: 16px;
  box-shadow: 0 4px 12px rgba(109, 74, 239, 0.3);
}
.step::after {
  content: '';
  position: absolute;
  top: 47px;
  left: 66px;
  right: 12px;
  height: 2px;
  background: linear-gradient(90deg, rgba(109, 74, 239, 0.35), rgba(109, 74, 239, 0.06));
}
.step:last-child::after { display: none; }

/* ---------------------------------------------------------- benefits bento */
.bento { display: grid; grid-template-columns: repeat(6, 1fr); gap: 20px; }
.bento .card { display: flex; flex-direction: column; }
.bento .b-wide { grid-column: span 3; }
.bento .b-third { grid-column: span 2; }
.chart-card svg { margin-top: 18px; }
.chart-note { margin-top: 10px; font-size: 13px; color: var(--muted); }
.lang-bubbles { display: grid; gap: 12px; margin-top: 18px; }
.bubble {
  background: var(--lavender-2);
  border: 1px solid var(--border1);
  border-radius: 14px;
  padding: 13px 16px;
  display: flex;
  gap: 12px;
  align-items: center;
  font-size: 14.5px;
  color: var(--muted2);
}
.bubble .avatar-dot {
  flex: none;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--grad-primary);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
}
.bubble .lang-tag { margin-left: auto; font: 600 12px var(--font-mono); color: var(--primary-dark); }

/* ------------------------------------------------------------ objection */
.objection-list { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }

/* -------------------------------------------------------- founder note */
.founder {
  display: flex;
  gap: 26px;
  align-items: flex-start;
  background:
    radial-gradient(70% 120% at 100% 0%, rgba(109, 74, 239, 0.07) 0%, transparent 60%),
    var(--page);
  border: 1px solid var(--border1);
  border-radius: var(--radius);
  padding: 36px;
  max-width: 780px;
}
.founder-photo {
  flex: none;
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: var(--grad-primary);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font: 700 28px/1 var(--font-head);
  box-shadow: 0 6px 18px rgba(109, 74, 239, 0.3);
}
.founder p { color: var(--muted2); font-size: 16.5px; }
.founder .sig { margin-top: 14px; font-size: 14px; color: var(--muted); }
.founder a { color: var(--primary-dark); font-weight: 600; }

/* -------------------------------------------------------- email capture */
.email-capture { background: var(--lavender); max-width: none; }
.email-inner { max-width: 640px; margin: 0 auto; text-align: center; }
.email-form { display: flex; gap: 10px; margin-top: 24px; }
.email-form input {
  flex: 1;
  font: 400 16px var(--font-body);
  padding: 14px 16px;
  border: 1px solid var(--border2);
  border-radius: 12px;
  background: #fff;
}
.email-form input:focus { outline: 2px solid var(--primary); border-color: transparent; }
[data-form-note] { display: block; margin-top: 12px; font-size: 14px; min-height: 20px; }
[data-form-note][data-kind='error'] { color: var(--error); }
[data-form-note][data-kind='success'] { color: var(--good); }
[data-form-note][data-kind='progress'] { color: var(--muted); }

/* -------------------------------------------------------------- pricing */
.plans { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; align-items: stretch; }
.plans.teaser { grid-template-columns: repeat(3, 1fr); }
.plan { display: flex; flex-direction: column; gap: 13px; }
.plan .price { font: 700 40px/1 var(--font-head); }
.plan .price small { font: 500 15px/1 var(--font-body); color: var(--muted); }
.plan .price-was {
  font: 500 19px/1 var(--font-body);
  color: var(--muted);
  text-decoration: line-through;
  margin: 0 2px 0 8px;
}
.plan .per-note { font-size: 13px; color: var(--muted); min-height: 18px; }
.plan .quota-line { font-size: 14px; color: var(--muted2); font-style: italic; }
.plan ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 9px; font-size: 14.5px; color: var(--muted2); }
.plan li::before { content: '✓  '; color: var(--primary-dark); font-weight: 700; }
.plan .btn { margin-top: auto; }
.plan.popular {
  border-color: transparent;
  background:
    linear-gradient(#fff, #fff) padding-box,
    var(--grad-primary) border-box;
  border: 1.5px solid transparent;
  box-shadow: var(--shadow-2);
  position: relative;
}
.popular-tag {
  position: absolute;
  top: -13px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--grad-primary);
  color: #fff;
  font: 600 12px/1 var(--font-body);
  padding: 7px 14px;
  border-radius: 999px;
  white-space: nowrap;
}
.billing-toggle {
  display: inline-flex;
  border: 1px solid var(--border2);
  border-radius: 999px;
  padding: 4px;
  gap: 4px;
  margin-bottom: 36px;
  background: #fff;
}
.billing-toggle button {
  border: 0;
  background: transparent;
  font: 600 14px/1 var(--font-body);
  color: var(--muted2);
  padding: 10px 18px;
  border-radius: 999px;
  cursor: pointer;
}
.billing-toggle button[aria-pressed='true'] { background: var(--grad-primary); color: #fff; }

.reassurance { margin-top: 26px; display: flex; flex-wrap: wrap; gap: 8px 24px; font-size: 14px; color: var(--muted2); }
.reassurance span { display: inline-flex; align-items: center; gap: 7px; }
.reassurance svg { color: var(--primary-dark); flex: none; }
.roi-line { margin-top: 22px; font-size: 15px; color: var(--muted2); }

.matrix { width: 100%; border-collapse: collapse; font-size: 14.5px; }
.matrix th, .matrix td { padding: 12px 14px; text-align: left; border-bottom: 1px solid var(--border1); }
.matrix th[scope='col'] { font: 700 15px var(--font-head); }
.matrix td { color: var(--muted2); }
.matrix .yes { color: var(--primary-dark); font-weight: 700; }
.matrix-wrap { overflow-x: auto; }

/* ------------------------------------------------------------------ faq */
.faq-list { max-width: 760px; display: grid; gap: 10px; }
.faq-list details {
  background: var(--card);
  border: 1px solid var(--border1);
  border-radius: 14px;
  padding: 18px 22px;
}
.faq-list summary { font: 600 16px var(--font-head); cursor: pointer; }
.faq-list p { margin-top: 12px; color: var(--muted2); font-size: 15px; }

/* ------------------------------------------------------------ final CTA */
.final-cta { background: var(--ink); max-width: none; position: relative; overflow: hidden; }
.final-cta::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(45% 80% at 15% 0%, rgba(109, 74, 239, 0.4) 0%, transparent 60%),
    radial-gradient(35% 60% at 90% 100%, rgba(255, 178, 36, 0.12) 0%, transparent 60%);
  pointer-events: none;
}
.final-inner { position: relative; max-width: 720px; margin: 0 auto; text-align: center; color: #fff; }
.final-inner h2 { font-size: clamp(30px, 4.4vw, 46px); }
.final-inner p { margin: 16px 0 30px; color: rgba(255, 255, 255, 0.7); font-size: 17px; }
.final-inner .cta-row { justify-content: center; }
.final-inner .btn.ghost { background: transparent; color: #fff; border-color: rgba(255, 255, 255, 0.3); }
.final-inner .btn.ghost:hover { border-color: #fff; color: #fff; }

/* --------------------------------------------------------------- footer */
footer { border-top: 1px solid var(--border1); background: var(--page); }
.footer-inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: 44px 24px;
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: space-between;
  font-size: 14px;
  color: var(--muted);
  /* Keep the bottom-right corner free: the Matio widget owns that overlay
   * space (site layout contract from PB-41). No fixed site elements there. */
}
.footer-links { display: flex; gap: 18px; flex-wrap: wrap; }
.footer-links a:hover { color: var(--ink); }

/* ------------------------------------------------------- legal pages */
.legal { max-width: 760px; }
.legal h1 { font-size: clamp(30px, 4vw, 42px); margin-bottom: 8px; }
.legal .updated { color: var(--muted); font-size: 14px; margin-bottom: 32px; }
.legal h2 { font-size: 22px; margin: 36px 0 10px; }
.legal p, .legal li { color: var(--muted2); font-size: 15.5px; }
.legal ul { padding-left: 20px; }

/* ------------------------------------------------------------ responsive */
@media (max-width: 960px) {
  .hero { grid-template-columns: 1fr; gap: 36px; padding-top: 44px; }
  .grid-3, .objection-list, .contrast, .steps { grid-template-columns: 1fr 1fr; }
  .step::after { display: none; }
  .bento { grid-template-columns: 1fr 1fr; }
  .bento .b-wide, .bento .b-third { grid-column: span 1; }
  .plans, .plans.teaser { grid-template-columns: 1fr 1fr; }
  .nav-links { display: none; }
}
@media (max-width: 600px) {
  section { padding: 60px 20px; }
  .grid-3, .objection-list, .contrast, .steps, .bento, .plans, .plans.teaser { grid-template-columns: 1fr; }
  .email-form { flex-direction: column; }
  .founder { flex-direction: column; padding: 26px; }
  .btn.lg { width: 100%; }
  .cta-row { flex-direction: column; align-items: stretch; }
}
