/* ============================================================
   VENU AUTOMATION — Design System
   Palette: Ivory bg, Golden Ember accent, Verdant Green depth
   Type: Space Grotesk (display) + Inter (body/UI)
   ============================================================ */

:root {
  /* Brand colors (from Brand_Guidelines.pdf) */
  --ivory: #F7F3EC;
  --sand: #E7DCC7;
  --gold: #FBD001;
  --gold-deep: #E0BB00;
  --green: #1C4828;
  --green-deep: #123018;
  --charcoal: #25231F;
  --white: #FFFFFF;

  /* Functional aliases */
  --bg: var(--white);
  --bg-alt: var(--ivory);
  --bg-panel: var(--sand);
  --text: var(--charcoal);
  --text-soft: #5C584E;
  --accent: var(--gold);
  --brand: var(--green);
  --brand-deep: var(--green-deep);
  --line: #E7E2D6;

  /* Type — per Venu Automation Brand Guidelines */
  --font-display: "Plus Jakarta Sans", "Segoe UI", sans-serif;   /* Titles & headlines */
  --font-marketing: "Sora", "Segoe UI", sans-serif;               /* Marketing & campaign headlines */
  --font-body: "IBM Plex Sans", "Segoe UI", sans-serif;           /* Sub text & UI copy */

  /* Scale */
  --step-1: clamp(0.85rem, 0.8rem + 0.2vw, 0.95rem);
  --step0: clamp(1rem, 0.95rem + 0.25vw, 1.0625rem);
  --step1: clamp(1.15rem, 1.05rem + 0.4vw, 1.35rem);
  --step2: clamp(1.5rem, 1.3rem + 0.8vw, 1.9rem);
  --step3: clamp(2rem, 1.6rem + 1.6vw, 2.9rem);
  --step4: clamp(2.6rem, 1.9rem + 3vw, 4.4rem);

  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 22px;
  --max-w: 1240px;

  --shadow-sm: 0 1px 2px rgba(37,35,31,0.06), 0 1px 1px rgba(37,35,31,0.04);
  --shadow-md: 0 12px 32px -12px rgba(28,72,40,0.18);
  --shadow-gold: 0 10px 24px -8px rgba(251,208,1,0.45);

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; overflow-x: hidden; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; scroll-behavior: auto !important; }
}

body {
  margin: 0;
  overflow-x: hidden;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: var(--step0);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img, svg { display: block; max-width: 100%; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--brand-deep);
  line-height: 1.08;
  letter-spacing: -0.01em;
  margin: 0;
}

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

.wrap {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
}

::selection { background: var(--gold); color: var(--charcoal); }

:focus-visible {
  outline: 2.5px solid var(--green);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ---------- Eyebrow / labels ---------- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: var(--step-1);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--green);
}
.eyebrow::before {
  content: "";
  width: 18px;
  height: 2px;
  background: var(--gold);
  display: inline-block;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: var(--step0);
  padding: 13px 26px;
  border-radius: 999px;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), background 0.25s var(--ease), border-color .25s var(--ease);
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }

.btn-primary {
  background: var(--gold);
  color: var(--charcoal);
  box-shadow: var(--shadow-gold);
}
.btn-primary:hover { background: var(--gold-deep); transform: translateY(-2px); }

.btn-dark {
  background: var(--green);
  color: var(--white);
}
.btn-dark:hover { background: var(--green-deep); transform: translateY(-2px); }

.btn-ghost {
  background: transparent;
  color: var(--green);
  border-color: var(--line);
}
.btn-ghost:hover { border-color: var(--green); background: var(--ivory); }

.btn-text {
  padding: 8px 4px;
  color: var(--brand-deep);
  font-weight: 600;
  border-bottom: 1.5px solid var(--gold);
  border-radius: 0;
}
.btn-text:hover { color: var(--green); }

.btn-block { width: 100%; }
.btn-lg { padding: 15px 32px; font-size: var(--step1); }

/* ---------- Header / Nav ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255,255,255,0.86);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
}
.logo {
  display: flex;
  align-items: center;
  gap: 12px;
}
.logo-monogram {
  width: 40px;
  height: 30px;
  flex-shrink: 0;
}
.logo-word {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.2rem;
  letter-spacing: 0.01em;
  text-transform: uppercase;
  color: var(--brand-deep);
}
.logo-word .logo-word-sub {
  display: block;
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 0.56rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-soft);
  margin-top: 2px;
}
.logo--reverse .logo-word { color: var(--white); }
.logo--reverse .logo-word .logo-word-sub { color: #C9DACD; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 36px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-links a {
  font-weight: 500;
  font-size: 0.95rem;
  color: var(--text);
  position: relative;
  padding: 4px 0;
}
.nav-links a::after {
  content: "";
  position: absolute;
  left: 0; bottom: -3px;
  width: 0; height: 2px;
  background: var(--gold);
  transition: width 0.25s var(--ease);
}
.nav-links a:hover::after { width: 100%; }

.nav-actions { display: flex; align-items: center; gap: 14px; }
.nav-actions .btn { padding: 10px 20px; font-size: 0.92rem; }

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  width: 40px; height: 40px;
  padding: 8px;
}
.nav-toggle span {
  display: block;
  width: 100%; height: 2px;
  background: var(--brand-deep);
  margin: 5px 0;
  transition: all 0.3s var(--ease);
}
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding: 76px 0 40px;
  overflow: hidden;
}
.hero-pattern {
  position: absolute;
  top: -180px;
  right: -220px;
  width: 620px;
  height: 620px;
  opacity: 0.08;
  z-index: 0;
  pointer-events: none;
}
.hero-grid { position: relative; z-index: 1; }
.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 48px;
  align-items: center;
}
.hero-copy h1 {
  font-family: var(--font-marketing);
  font-size: var(--step4);
  margin: 18px 0 22px;
}
.hero-copy h1 .accent-underline {
  position: relative;
  white-space: nowrap;
}
.hero-copy h1 .accent-underline::after {
  content: "";
  position: absolute;
  left: 2px; right: 2px; bottom: 6px;
  height: 0.32em;
  background: var(--gold);
  z-index: -1;
  border-radius: 3px;
}
.hero-copy p.lead {
  font-size: var(--step1);
  color: var(--text-soft);
  max-width: 46ch;
  margin-bottom: 32px;
}
.hero-actions { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; }
.hero-note { font-size: 0.85rem; color: var(--text-soft); margin-top: 18px; }

.hero-stats {
  display: flex;
  gap: 34px;
  margin-top: 48px;
  padding-top: 28px;
  border-top: 1px solid var(--line);
}
.hero-stats div strong {
  display: block;
  font-family: var(--font-display);
  font-size: var(--step2);
  color: var(--brand-deep);
}
.hero-stats div span {
  font-size: 0.82rem;
  color: var(--text-soft);
}

/* Signature: automation thread diagram */
.thread-wrap {
  position: relative;
  aspect-ratio: 1 / 1;
  max-width: 520px;
  margin: 0 auto;
}
.thread-wrap svg { width: 100%; height: 100%; overflow: visible; }
.thread-path {
  fill: none;
  stroke: var(--sand);
  stroke-width: 2.5;
  stroke-linecap: round;
}
.thread-path.active {
  stroke: var(--gold);
  stroke-dasharray: 900;
  stroke-dashoffset: 900;
  animation: draw 2.6s var(--ease) forwards 0.3s;
}
@keyframes draw { to { stroke-dashoffset: 0; } }

.node {
  transform-origin: center;
  animation: pop 0.5s var(--ease) backwards;
}
.node circle.node-bg { fill: var(--white); stroke: var(--sand); stroke-width: 2; }
.node.lit circle.node-bg { stroke: var(--gold); }
.node text {
  font-family: var(--font-body);
  font-size: 10.5px;
  font-weight: 700;
  fill: var(--brand-deep);
}
@keyframes pop { from { opacity: 0; transform: scale(0.6);} to { opacity: 1; transform: scale(1);} }

.pulse-dot {
  fill: var(--gold);
  animation: pulse 2.2s ease-in-out infinite;
}
@keyframes pulse { 0%,100% { opacity: 0.35; r: 3;} 50% { opacity: 1; r: 5; } }

@media (prefers-reduced-motion: reduce) {
  .thread-path.active { stroke-dashoffset: 0; animation: none; }
  .node { animation: none; opacity: 1; }
  .pulse-dot { animation: none; opacity: 0.8; }
}

/* ---------- Trust / stats bar ---------- */
.stat-bar {
  background: var(--green);
  color: var(--white);
  padding: 30px 0;
}
.stat-bar .wrap {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 22px;
}
.stat-bar .stat { display: flex; align-items: baseline; gap: 10px; }
.stat-bar .stat strong { font-family: var(--font-display); font-size: var(--step2); color: var(--gold); }
.stat-bar .stat span { font-size: 0.88rem; color: #DCE7DE; }

/* ---------- Section shell ---------- */
.section { padding: 108px 0; }
.section-alt { background: var(--bg-alt); }
.section-head { max-width: 640px; margin-bottom: 56px; }
.section-head h2 { font-size: var(--step3); margin: 16px 0 14px; }
.section-head p { color: var(--text-soft); font-size: var(--step1); }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }

/* ---------- Feature grid ---------- */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.feature-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease), border-color .3s var(--ease);
}
.feature-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
  border-color: var(--sand);
}
.feature-icon {
  width: 46px; height: 46px;
  border-radius: 12px;
  background: var(--ivory);
  display: grid; place-items: center;
  margin-bottom: 20px;
}
.feature-icon svg { width: 22px; height: 22px; stroke: var(--green); }
.feature-card h3 { font-size: 1.18rem; margin-bottom: 10px; }
.feature-card p { color: var(--text-soft); font-size: 0.95rem; margin: 0; }

/* ---------- Steps (genuine sequence) ---------- */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  position: relative;
}
.step {
  position: relative;
  padding: 0 26px;
}
.step:first-child { padding-left: 0; }
.step:last-child { padding-right: 0; }
.step-num {
  font-family: var(--font-display);
  font-size: 2.6rem;
  color: var(--sand);
  -webkit-text-stroke: 1.5px var(--green);
  color: transparent;
  margin-bottom: 18px;
  display: block;
}
.step h3 { font-size: 1.15rem; margin-bottom: 10px; }
.step p { color: var(--text-soft); font-size: 0.95rem; }
.step-connector {
  position: absolute;
  top: 20px; right: -13px;
  width: 26px; height: 2px;
  background: var(--gold);
}

/* ---------- Why / split ---------- */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}
.why-list { list-style: none; padding: 0; margin: 28px 0 0; }
.why-list li {
  display: flex;
  gap: 16px;
  padding: 18px 0;
  border-top: 1px solid var(--line);
}
.why-list li:first-child { border-top: none; }
.why-num {
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--gold-deep);
  flex-shrink: 0;
}
.why-list h4 { font-size: 1.02rem; margin-bottom: 4px; color: var(--brand-deep); }
.why-list p { margin: 0; color: var(--text-soft); font-size: 0.92rem; }

.panel-card {
  background: var(--green);
  border-radius: var(--radius-lg);
  padding: 44px;
  position: relative;
  overflow: hidden;
  color: var(--white);
  min-height: 380px;
}
.panel-card::before {
  content: "";
  position: absolute;
  width: 260px; height: 260px;
  border-radius: 50%;
  background: var(--gold);
  opacity: 0.14;
  top: -80px; right: -80px;
}
.panel-quote {
  font-family: var(--font-marketing);
  font-size: var(--step2);
  line-height: 1.35;
  position: relative;
  z-index: 1;
}
.panel-attr { margin-top: 26px; font-size: 0.9rem; color: #C9DACD; position: relative; z-index: 1; }

/* ---------- CTA banner ---------- */
.cta-banner {
  background: var(--charcoal);
  border-radius: var(--radius-lg);
  padding: 64px 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
  position: relative;
  overflow: hidden;
}
.cta-banner::after {
  content: "";
  position: absolute;
  right: -60px; top: -60px;
  width: 220px; height: 220px;
  background: var(--gold);
  opacity: 0.12;
  border-radius: 50%;
}
.cta-banner h2 { font-family: var(--font-marketing); color: var(--white); font-size: var(--step3); max-width: 20ch; position: relative; z-index: 1;}
.cta-banner p { color: #C9C6BC; margin: 10px 0 0; position: relative; z-index: 1; }
.cta-actions { position: relative; z-index: 1; display: flex; gap: 14px; flex-wrap: wrap; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--ivory);
  border-top: 1px solid var(--line);
  padding: 68px 0 28px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr repeat(3, 1fr);
  gap: 40px;
  padding-bottom: 44px;
}
.footer-brand p { color: var(--text-soft); font-size: 0.92rem; max-width: 32ch; margin-top: 14px; }
.footer-col h5 {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.82rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--brand-deep);
  margin-bottom: 16px;
}
.footer-col ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 11px; }
.footer-col a { font-size: 0.92rem; color: var(--text-soft); }
.footer-col a:hover { color: var(--green); }
.footer-bottom {
  border-top: 1px solid var(--line);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 0.82rem;
  color: var(--text-soft);
}

/* ============================================================
   AUTH PAGES (signup / login)
   ============================================================ */
.auth-shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
}
.auth-panel {
  background: var(--green);
  color: var(--white);
  padding: 56px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  overflow: hidden;
}
.auth-panel-pattern {
  position: absolute;
  left: -120px;
  bottom: -140px;
  width: 480px;
  height: 480px;
  opacity: 0.5;
  z-index: 0;
}
.auth-panel-content { position: relative; z-index: 1; max-width: 420px; }
.auth-panel-content .eyebrow { color: var(--gold); }
.auth-panel-content .eyebrow::before { background: var(--white); }
.auth-panel-content h2 {
  font-family: var(--font-marketing);
  color: var(--white);
  font-size: var(--step3);
  margin: 18px 0 16px;
}
.auth-panel-content p { color: #D6E3D9; font-size: var(--step0); }
.auth-panel-content p.auth-panel-quote {
  margin-top: 28px;
  padding-left: 16px;
  border-left: 2px solid var(--gold);
  font-size: 0.9rem;
  line-height: 1.55;
  color: #B9CBBD;
}
.auth-panel-foot { position: relative; z-index: 1; font-size: 0.85rem; color: #B9CBBD; }

/* Login page: welcome block sits 20% of the screen height lower */
.auth-panel--low .auth-panel-content { margin-top: 20vh; }

/* Submit buttons on the signup / login forms are 25% shorter (58px -> 44px) */
.auth-form-wrap .btn-lg {
  height: 44px;
  padding: 0 28px;
  line-height: 1;
}

.auth-form-side {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 24px;
}
.auth-form-wrap { width: 100%; max-width: 400px; }
.auth-form-wrap .logo { margin-bottom: 40px; }
.auth-form-wrap h1 { font-size: var(--step3); margin-bottom: 8px; }
.auth-form-wrap p.sub { color: var(--text-soft); margin-bottom: 32px; }

.field { margin-bottom: 20px; }
.field label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--brand-deep);
  margin-bottom: 8px;
}
.field label .req { color: var(--gold-deep); }
/* All text inputs, the dropdown and the textarea share one width (100% of the
   form column) and one look. Heights are 15% shorter than the first version. */
.field input,
.field select,
.field textarea {
  display: block;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  margin: 0;
  padding: 0 16px;
  height: 40px;
  border: 1.5px solid var(--line);
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: 0.95rem;
  line-height: 1.4;
  background-color: var(--white);
  color: var(--text);
  transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
.field input::placeholder,
.field textarea::placeholder { color: #8C887D; opacity: 1; }
.field select {
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='9' viewBox='0 0 14 9' fill='none'%3E%3Cpath d='M1 1L7 7L13 1' stroke='%2325231F' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  background-size: 12px 8px;
  padding-right: 42px;
  cursor: pointer;
  text-overflow: ellipsis;
}
.field select option { color: var(--text); }
.field textarea {
  height: 88px;
  padding: 10px 16px;
  resize: vertical;
  min-height: 88px;
  line-height: 1.5;
}
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--green);
  box-shadow: 0 0 0 3px rgba(28,72,40,0.12);
}
.field-row { display: flex; align-items: center; justify-content: space-between; margin-bottom: 20px; }
.checkbox-row { display: flex; align-items: center; gap: 9px; font-size: 0.88rem; color: var(--text-soft); }
.checkbox-row input { width: 16px; height: 16px; accent-color: var(--green); }
.link-sm { font-size: 0.85rem; font-weight: 600; color: var(--green); border-bottom: 1.5px solid var(--gold); }

.divider {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 28px 0;
  color: var(--text-soft);
  font-size: 0.82rem;
}
.divider::before, .divider::after { content: ""; flex: 1; height: 1px; background: var(--line); }

.social-row { display: flex; gap: 12px; }
.btn-social {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 11px;
  border: 1.5px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--white);
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  transition: border-color .2s var(--ease), background .2s var(--ease);
}
.btn-social:hover { border-color: var(--green); background: var(--ivory); }

.auth-switch { text-align: center; margin-top: 28px; font-size: 0.92rem; color: var(--text-soft); }

/* ---------- Signup page: compact two-column form that fits one screen ---------- */
.auth-form-wrap--wide { max-width: 620px; }
.auth-form-wrap--wide .logo { margin-bottom: 20px; }
.auth-form-wrap--wide h1 { font-size: clamp(1.8rem, 1.4rem + 1vw, 2.3rem); margin-bottom: 6px; }
.auth-form-wrap--wide p.sub { margin-bottom: 18px; font-size: 0.95rem; }
.auth-form-wrap--wide .auth-switch { margin-top: 16px; }

.field-grid { display: grid; grid-template-columns: 1fr 1fr; column-gap: 16px; }
.field-grid .field { margin-bottom: 14px; min-width: 0; }
.field-grid .field label { margin-bottom: 6px; }
.field-grid .field--full { grid-column: 1 / -1; }

/* Narrow desktop windows and phones: one column */
@media (min-width: 941px) and (max-width: 1000px), (max-width: 600px) {
  .field-grid { grid-template-columns: 1fr; }
}

/* Short desktop screens (small laptops): tighten spacing so there is still no scroll */
@media (min-width: 941px) and (max-height: 760px) {
  .auth-form-side { padding-top: 16px; padding-bottom: 16px; }
  .auth-form-wrap--wide .logo { margin-bottom: 12px; }
  .auth-form-wrap--wide h1 { font-size: 1.7rem; }
  .auth-form-wrap--wide p.sub { margin-bottom: 12px; font-size: 0.9rem; line-height: 1.4; }
  .field-grid .field { margin-bottom: 10px; }
  .field-grid .field textarea { height: 64px; min-height: 64px; }
  .auth-form-wrap--wide .auth-switch { margin-top: 12px; }
}

/* After a successful submit: show only the logo + the confirmation */
.auth-form-wrap:has(.form-success:not([hidden])) .auth-heading,
.auth-form-wrap:has(.form-success:not([hidden])) .auth-switch { display: none; }
.auth-form-wrap:has(.form-success:not([hidden])) .logo { justify-content: center; margin-bottom: 0; }

/* Spam trap field: off-screen, not display:none (some bots skip display:none fields) */
.hp-field {
  position: absolute;
  left: -10000px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form-error {
  margin: 0 0 14px;
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  background: #FDF1EF;
  border: 1px solid #F0C9C2;
  color: #8A2A1E;
  font-size: 0.88rem;
  line-height: 1.45;
}
.form-error[hidden] { display: none; }
.btn[disabled] { opacity: 0.65; cursor: progress; transform: none; }

.form-success {
  text-align: center;
  padding: 36px 8px 12px;
  animation: pop 0.4s var(--ease);
}
.form-success-icon {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: var(--ivory);
  border: 1.5px solid var(--sand);
  display: grid;
  place-items: center;
  margin: 0 auto 20px;
}
.form-success-icon svg { width: 26px; height: 26px; }
.form-success h2 {
  font-family: var(--font-display);
  font-size: 1.35rem;
  margin-bottom: 10px;
}
.form-success p {
  color: var(--text-soft);
  font-size: 0.96rem;
  max-width: 34ch;
  margin: 0 auto;
  text-wrap: balance;
}

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 940px) {
  .nav-links { display: none; }
  .nav-toggle { display: block; }
  .hero-grid { grid-template-columns: 1fr; }
  .thread-wrap { max-width: 380px; margin-top: 20px; }
  .split { grid-template-columns: 1fr; }
  .panel-card { order: -1; }
  .steps { grid-template-columns: 1fr; gap: 36px; }
  .step { padding: 0; }
  .step-connector { display: none; }
  .auth-shell { grid-template-columns: 1fr; }
  .auth-panel { display: none; }
}

@media (max-width: 720px) {
  .section { padding: 76px 0; }
  .feature-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .cta-banner { padding: 44px 28px; flex-direction: column; align-items: flex-start; }
  .hero { padding: 40px 0 28px; }
  .hero-stats { gap: 22px; flex-wrap: wrap; }
  .nav-actions .btn-ghost { display: none; }
}

@media (max-width: 480px) {
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .wrap { padding: 0 18px; }
  .social-row { flex-direction: column; }
}

/* Mobile nav drawer */
.mobile-nav {
  position: fixed;
  inset: 76px 0 0 0;
  background: var(--white);
  z-index: 99;
  transform: translateX(100%);
  transition: transform 0.35s var(--ease);
  overflow-y: auto;
  padding: 20px 24px 40px;
}
.mobile-nav.open { transform: translateX(0); }
.mobile-nav ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; }
.mobile-nav a {
  display: block;
  padding: 18px 4px;
  border-bottom: 1px solid var(--line);
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--brand-deep);
}
.mobile-nav .mobile-actions { display: flex; flex-direction: column; gap: 12px; margin-top: 26px; }