/* ========================================================================
   DesignMentor — landing page styles
   Light-first, Fathom-inspired periwinkle. Clean, friendly, modern.
   Dark mode ships as an optional toggle (see [data-theme="dark"] below).
   ===================================================================== */

:root {
  /* Surfaces — warm off-white, Fathom-style */
  --bg:        #f7f8f7;
  --bg-2:      #eff0f3;
  --surface:   #ffffff;
  --surface-2: rgba(132, 107, 255, 0.07);
  --border:    rgba(24, 27, 25, 0.10);
  --border-2:  rgba(132, 107, 255, 0.34);

  /* Text */
  --text:  #181b19;
  --muted: #5b625d;
  --faint: #8a908c;

  /* Periwinkle purple system (Fathom) */
  --p-400: #7358f2; /* readable accent for text/icons on light */
  --p-500: #846bff; /* brand fill */
  --p-600: #6f57f0;
  --p-700: #5f45e0;
  --p-800: #5138c9;

  --grad: linear-gradient(135deg, #9580ff 0%, #846bff 100%);
  --grad-soft: linear-gradient(135deg, #a99bff, #846bff);

  --glow: rgba(132, 107, 255, 0.34);

  --radius: 16px;
  --radius-sm: 11px;
  --maxw: 1160px;

  --shadow-lg: 0 30px 60px -30px rgba(95, 69, 224, 0.35);
  --shadow-card: 0 14px 40px -24px rgba(24, 27, 25, 0.20);

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

* { box-sizing: border-box; margin: 0; padding: 0; }

/* Ensure the [hidden] attribute always wins over component display rules
   (e.g. .btn { display: inline-flex }), so JS-toggled auth controls hide. */
[hidden] { display: none !important; }

html { scroll-behavior: smooth; scroll-padding-top: 90px; }

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  letter-spacing: -0.01em;
}

h1, h2, h3, h4 {
  font-family: 'Poppins', 'Inter', sans-serif;
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: -0.03em;
}

a { color: inherit; text-decoration: none; }
em { font-style: normal; color: var(--p-400); }

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
.narrow { max-width: 760px; }

/* ============ Ambient background ============ */
.bg-aurora {
  position: fixed; inset: 0; z-index: -2; pointer-events: none;
  background:
    radial-gradient(50% 42% at 14% 0%, rgba(132, 107, 255, 0.12), transparent 70%),
    radial-gradient(42% 44% at 90% 6%, rgba(149, 128, 255, 0.11), transparent 68%),
    radial-gradient(60% 50% at 50% 100%, rgba(132, 107, 255, 0.07), transparent 72%);
}
.bg-grid { display: none; }

/* ============ Buttons ============ */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: inherit; font-size: 15px; font-weight: 550;
  padding: 11px 20px; border-radius: 10px; border: 1px solid transparent;
  cursor: pointer; transition: transform .25s var(--ease), box-shadow .25s var(--ease), background .25s, border-color .25s;
  white-space: nowrap; color: var(--text);
}
.btn svg { transition: transform .25s var(--ease); }
.btn-lg { padding: 15px 28px; font-size: 16px; border-radius: 12px; }
.btn-block { width: 100%; }

.btn-primary {
  background: var(--grad);
  color: #fff;
  box-shadow: 0 8px 22px -10px var(--glow), inset 0 1px 0 rgba(255,255,255,.28);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 14px 32px -12px var(--glow), inset 0 1px 0 rgba(255,255,255,.32); }
.btn-primary:hover svg { transform: translateX(3px); }

.btn-glass {
  background: var(--surface);
  border-color: var(--border-2);
  backdrop-filter: blur(12px);
}
.btn-glass:hover { transform: translateY(-2px); background: var(--surface-2); border-color: var(--p-500); }

.btn-ghost { background: transparent; color: var(--muted); }
.btn-ghost:hover { color: var(--text); }

/* ============ Nav ============ */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  transition: background .3s, border-color .3s, backdrop-filter .3s;
  border-bottom: 1px solid transparent;
}
.nav.scrolled {
  background: rgba(247, 248, 247, 0.82);
  backdrop-filter: blur(18px) saturate(1.4);
  border-bottom-color: var(--border);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-family: 'Poppins'; font-weight: 600; font-size: 18px; letter-spacing: -0.02em; }
.brand-mark { display: grid; place-items: center; filter: drop-shadow(0 2px 8px var(--glow)); }

.nav-links { display: flex; gap: 34px; }
.nav-links a { color: var(--muted); font-size: 15px; font-weight: 450; transition: color .2s; position: relative; }
.nav-links a:hover { color: var(--text); }
.nav-links a::after { content: ''; position: absolute; left: 0; bottom: -6px; width: 0; height: 2px; background: var(--grad); border-radius: 2px; transition: width .25s var(--ease); }
.nav-links a:hover::after { width: 100%; }

.nav-actions { display: flex; align-items: center; gap: 10px; }

.nav-burger { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 8px; }
.nav-burger span { width: 22px; height: 2px; background: var(--text); border-radius: 2px; transition: .3s var(--ease); }
.nav-burger[aria-expanded="true"] span:first-child { transform: translateY(3.5px) rotate(45deg); }
.nav-burger[aria-expanded="true"] span:last-child { transform: translateY(-3.5px) rotate(-45deg); }

.nav-mobile {
  display: none; flex-direction: column; gap: 6px; padding: 12px 24px 22px;
  background: rgba(247, 248, 247, 0.97); backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--border);
  max-height: 0; overflow: hidden; transition: max-height .35s var(--ease);
}
.nav-mobile a { color: var(--muted); padding: 12px 4px; border-bottom: 1px solid var(--border); font-size: 16px; }
.nav-mobile .btn { margin-top: 12px; }

/* ============ Reveal animation ============ */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.reveal[data-delay="1"] { transition-delay: .1s; }
.reveal[data-delay="2"] { transition-delay: .2s; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } html { scroll-behavior: auto; } }

/* ============ Shared section ============ */
.section { padding: 110px 0; position: relative; }
.section-head { max-width: 640px; margin: 0 auto 60px; text-align: center; }
.section-head h2 { font-size: clamp(30px, 4.4vw, 46px); margin-bottom: 16px; }
.section-head p { color: var(--muted); font-size: 18px; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 13px; font-weight: 550; letter-spacing: .04em; text-transform: uppercase;
  color: var(--p-400);
  padding: 6px 13px; border-radius: 999px;
  background: rgba(168, 139, 250, 0.1); border: 1px solid var(--border-2);
  margin-bottom: 20px;
}
.eyebrow .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--p-400); box-shadow: 0 0 10px var(--p-400); animation: pulse 2s infinite; }
@keyframes pulse { 0%,100%{opacity:1} 50%{opacity:.4} }

.glass {
  background: var(--surface);
  border: 1px solid var(--border);
  backdrop-filter: blur(14px);
  box-shadow: var(--shadow-card);
}
.grad { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* ============ Hero ============ */
.hero { padding: 150px 0 90px; position: relative; }
.hero-inner { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 56px; align-items: center; }
.hero-copy h1 { font-size: clamp(42px, 6vw, 68px); margin-bottom: 24px; font-weight: 700; }
.lead { font-size: 19px; color: var(--muted); max-width: 520px; margin-bottom: 34px; }
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 40px; }

.hero-trust { display: flex; align-items: center; gap: 14px; }
.hero-trust p { font-size: 14.5px; color: var(--muted); }
.hero-trust strong { color: var(--text); font-weight: 600; }
.avatars { display: flex; }
.avatars span {
  width: 34px; height: 34px; border-radius: 50%; margin-left: -10px;
  border: 2px solid var(--bg); background: var(--grad);
}
.avatars span:first-child { margin-left: 0; }
.avatars span:nth-child(2) { background: linear-gradient(135deg,#b6a6ff,#846bff); }
.avatars span:nth-child(3) { background: linear-gradient(135deg,#8f9bff,#5f45e0); }
.avatars span:nth-child(4) { background: linear-gradient(135deg,#a99bff,#6f57f0); }

/* Chat mockup */
.hero-visual { position: relative; }

/* "Example" handwritten annotation pointing at the mockup */
.chat-example-label {
  position: absolute; top: -78px; left: 4px; z-index: 5;
  color: var(--p-500); pointer-events: none;
}
.ex-text {
  font-family: 'Caveat', cursive; font-weight: 700; font-size: 31px;
  display: inline-block; transform: rotate(-7deg); line-height: 1;
}
.ex-arrow { display: block; margin: -2px 0 0 46px; }
@media (max-width: 940px) {
  .chat-example-label { top: -52px; }
  .ex-text { font-size: 25px; }
  .ex-arrow { width: 34px; height: 40px; margin-left: 40px; }
}
.chat-card { border-radius: var(--radius); padding: 0; overflow: hidden; position: relative; z-index: 2; }
.chat-head { display: flex; align-items: center; gap: 12px; padding: 18px 20px; border-bottom: 1px solid var(--border); background: rgba(132,107,255,0.04); }
.chat-ava { width: 38px; height: 38px; border-radius: 12px; background: var(--grad); display: grid; place-items: center; box-shadow: 0 4px 14px -4px var(--glow); }
.chat-name { font-weight: 600; font-size: 15px; font-family: 'Poppins'; }
.chat-status { font-size: 12.5px; color: var(--muted); display: flex; align-items: center; gap: 6px; }
.live-dot { width: 7px; height: 7px; border-radius: 50%; background: #4ade80; box-shadow: 0 0 8px #4ade80; }

.chat-body { padding: 20px; display: flex; flex-direction: column; gap: 14px; }
.msg { max-width: 90%; padding: 13px 16px; border-radius: 16px; font-size: 14.5px; line-height: 1.55; }
.msg p + p { margin-top: 8px; }
.msg-user { align-self: flex-end; background: var(--grad); color: #fff; border-bottom-right-radius: 5px; box-shadow: 0 8px 22px -10px var(--glow); }
.msg-attach { margin-top: 8px; font-size: 12.5px; background: rgba(255,255,255,.18); padding: 5px 10px; border-radius: 8px; display: inline-block; }
.msg-bot { align-self: flex-start; background: var(--surface-2); border: 1px solid var(--border); border-bottom-left-radius: 5px; }
.msg-bot ul { margin: 8px 0; padding-left: 18px; display: flex; flex-direction: column; gap: 6px; }
.msg-bot li { font-size: 13.8px; color: var(--muted); }
.msg-bot li strong { color: var(--text); }

.chat-input { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 4px 16px 16px; padding: 12px 12px 12px 18px; border-radius: 14px; background: rgba(132,107,255,.055); border: 1px solid var(--border); }
.chat-input span { color: var(--faint); font-size: 14px; }
.chat-send { width: 36px; height: 36px; border: none; border-radius: 10px; background: var(--grad); color: #fff; display: grid; place-items: center; cursor: pointer; transition: transform .2s var(--ease); }
.chat-send:hover { transform: scale(1.08); }

.glow-blob { position: absolute; width: 420px; height: 420px; border-radius: 50%; background: radial-gradient(circle, var(--glow), transparent 62%); filter: blur(50px); top: -60px; right: -80px; z-index: 1; animation: float 8s ease-in-out infinite; }
@keyframes float { 0%,100%{ transform: translateY(0) } 50%{ transform: translateY(-24px) } }

/* ============ Proof ============ */
.proof { padding: 30px 0 40px; }
.proof-label { text-align: center; color: var(--faint); font-size: 13px; letter-spacing: .06em; text-transform: uppercase; margin-bottom: 24px; }
.proof-logos { display: flex; flex-wrap: wrap; justify-content: center; gap: 20px 52px; }
.proof-logos span { font-family: 'Poppins'; font-weight: 600; font-size: 22px; color: var(--faint); opacity: .7; transition: color .25s, opacity .25s; letter-spacing: -.02em; }
.proof-logos span:hover { color: var(--text); opacity: 1; }

/* ============ Empathy ============ */
.empathy { padding: 70px 0 30px; text-align: center; }
.empathy h2 { font-size: clamp(28px, 4vw, 42px); margin-bottom: 20px; }
.empathy p { color: var(--muted); font-size: 19px; }

/* ============ Features ============ */
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.feature-card { border-radius: var(--radius); padding: 30px 28px; transition: transform .35s var(--ease), border-color .35s, box-shadow .35s; }
.feature-card:hover { transform: translateY(-6px); border-color: var(--border-2); box-shadow: 0 30px 60px -30px rgba(124,58,237,.5); }
.f-icon { width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center; font-size: 24px; background: rgba(168,139,250,.1); border: 1px solid var(--border); margin-bottom: 20px; }
.feature-card h3 { font-size: 21px; margin-bottom: 10px; }
.feature-card p { color: var(--muted); font-size: 15.5px; }

/* ============ Steps ============ */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; counter-reset: step; }
.step { position: relative; padding: 34px 28px; border-radius: var(--radius); border: 1px solid var(--border); background: var(--surface); }
.step-num { font-family: 'Poppins'; font-size: 44px; font-weight: 700; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; display: block; margin-bottom: 14px; }
.step h3 { font-size: 20px; margin-bottom: 8px; }
.step p { color: var(--muted); font-size: 15.5px; }

/* ============ Testimonials ============ */
.quotes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.quote { border-radius: var(--radius); padding: 30px 28px; transition: transform .3s var(--ease); }
.quote:hover { transform: translateY(-5px); }
.quote blockquote { font-size: 17px; line-height: 1.55; margin-bottom: 22px; color: var(--text); }
.quote figcaption { display: flex; align-items: center; gap: 11px; color: var(--muted); font-size: 14.5px; }
.q-ava { width: 36px; height: 36px; border-radius: 50%; background: var(--grad); display: grid; place-items: center; font-weight: 600; color: #fff; font-size: 15px; }

/* ============ Pricing ============ */
.plans { display: grid; grid-template-columns: repeat(2, minmax(0, 380px)); gap: 24px; justify-content: center; }
.plan { border-radius: var(--radius); padding: 34px 30px; position: relative; transition: transform .35s var(--ease), border-color .35s; }
.plan:hover { transform: translateY(-5px); }
.plan h3 { font-size: 22px; margin-bottom: 6px; }
.plan-sub { color: var(--muted); font-size: 14.5px; margin-bottom: 22px; }
.price { display: flex; align-items: baseline; gap: 6px; margin-bottom: 6px; }
.price .amt { font-family: 'Poppins'; font-size: 46px; font-weight: 700; letter-spacing: -.03em; }
.price .per { color: var(--muted); font-size: 16px; }
.price-note { color: var(--p-400); font-size: 14px; margin-bottom: 20px; font-weight: 500; }
.plan .btn { margin: 20px 0 24px; }
.plan-feats { list-style: none; display: flex; flex-direction: column; gap: 13px; }
.plan-feats li { position: relative; padding-left: 28px; color: var(--muted); font-size: 15px; }
.plan-feats li::before { content: ''; position: absolute; left: 0; top: 3px; width: 18px; height: 18px; border-radius: 50%; background: var(--grad); -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23000' d='M9 16.2l-3.5-3.5-1.4 1.4L9 19 20 8l-1.4-1.4z'/%3E%3C/svg%3E") center/14px no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23000' d='M9 16.2l-3.5-3.5-1.4 1.4L9 19 20 8l-1.4-1.4z'/%3E%3C/svg%3E") center/14px no-repeat; }

.plan-featured { border-color: var(--border-2); background: linear-gradient(180deg, rgba(132,107,255,.10), var(--surface)); box-shadow: 0 30px 60px -32px rgba(132,107,255,.45); }
.plan-badge { position: absolute; top: -13px; left: 50%; transform: translateX(-50%); background: var(--grad); color: #fff; font-size: 12.5px; font-weight: 600; padding: 6px 16px; border-radius: 999px; white-space: nowrap; box-shadow: 0 8px 20px -6px var(--glow); }
.pricing-foot { text-align: center; color: var(--faint); font-size: 13.5px; margin-top: 34px; }

/* ============ FAQ ============ */
.faq { display: flex; flex-direction: column; gap: 12px; }
.faq-item { border: 1px solid var(--border); border-radius: var(--radius-sm); background: var(--surface); overflow: hidden; transition: border-color .25s; }
.faq-item[open] { border-color: var(--border-2); }
.faq-item summary { list-style: none; cursor: pointer; padding: 20px 24px; font-family: 'Poppins'; font-weight: 500; font-size: 17px; display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.faq-item summary::-webkit-details-marker { display: none; }
.chev { width: 12px; height: 12px; border-right: 2px solid var(--p-400); border-bottom: 2px solid var(--p-400); transform: rotate(45deg); transition: transform .3s var(--ease); flex-shrink: 0; margin-right: 4px; }
.faq-item[open] .chev { transform: rotate(-135deg); }
.faq-item p { padding: 0 24px 22px; color: var(--muted); font-size: 15.5px; }

/* ============ Final CTA ============ */
.final-cta { padding: 40px 0 120px; }
.cta-card { border-radius: 28px; padding: 70px 40px; text-align: center; position: relative; overflow: hidden; border-color: var(--border-2); background: linear-gradient(180deg, rgba(132,107,255,.12), var(--surface)); }
.cta-card h2 { font-size: clamp(30px, 4.6vw, 48px); margin-bottom: 16px; position: relative; z-index: 2; }
.cta-card > p { color: var(--muted); font-size: 18px; max-width: 520px; margin: 0 auto 30px; position: relative; z-index: 2; }
.cta-card .btn { position: relative; z-index: 2; }
.cta-card .cta-fine { margin: 28px 0 0; font-size: 13.5px; color: var(--faint); }
.glow-blob-cta { top: auto; bottom: -180px; left: 50%; transform: translateX(-50%); right: auto; width: 560px; height: 360px; opacity: .7; }

/* ============ Footer ============ */
.footer { border-top: 1px solid var(--border); padding: 64px 0 34px; background: rgba(255,255,255,.55); }
.footer-inner { display: flex; justify-content: space-between; gap: 48px; flex-wrap: wrap; margin-bottom: 46px; }
.footer-brand { max-width: 280px; }
.footer-brand p { color: var(--muted); font-size: 14.5px; margin-top: 14px; }
.footer-cols { display: flex; gap: 64px; flex-wrap: wrap; }
.footer-cols h4 { font-size: 13px; text-transform: uppercase; letter-spacing: .05em; color: var(--faint); margin-bottom: 16px; font-family: 'Inter'; font-weight: 600; }
.footer-cols a { display: block; color: var(--muted); font-size: 15px; padding: 6px 0; transition: color .2s; }
.footer-cols a:hover { color: var(--text); }
.footer-bottom { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding-top: 26px; border-top: 1px solid var(--border); }
.footer-bottom p { color: var(--faint); font-size: 13.5px; }

/* ============ Chat launcher ============ */
.chat-launcher {
  position: fixed; bottom: 26px; right: 26px; z-index: 90;
  width: 60px; height: 60px; border-radius: 50%; border: none; cursor: pointer;
  background: var(--grad); color: #fff; display: grid; place-items: center;
  box-shadow: 0 12px 34px -8px var(--glow), inset 0 1px 0 rgba(255,255,255,.3);
  transition: transform .3s var(--ease);
  animation: launcher-in .6s var(--ease) .8s both;
}
.chat-launcher:hover { transform: scale(1.1) rotate(8deg); }
@keyframes launcher-in { from { transform: scale(0); } to { transform: scale(1); } }

/* ============ Legal pages ============ */
.legal { padding: 150px 0 100px; }
.legal-head { max-width: 760px; margin: 0 auto 44px; }
.legal-head .eyebrow { margin-bottom: 22px; }
.legal-head h1 { font-size: clamp(34px, 5vw, 52px); margin-bottom: 14px; }
.legal-head .updated { color: var(--faint); font-size: 14.5px; }
.legal-body { max-width: 760px; margin: 0 auto; }
.legal-body h2 { font-size: 22px; margin: 40px 0 12px; }
.legal-body h3 { font-size: 17px; margin: 24px 0 8px; }
.legal-body p, .legal-body li { color: var(--muted); font-size: 16px; line-height: 1.7; }
.legal-body p { margin-bottom: 14px; }
.legal-body ul { margin: 0 0 16px; padding-left: 22px; display: flex; flex-direction: column; gap: 8px; }
.legal-body a { color: var(--p-400); text-decoration: underline; text-underline-offset: 3px; }
.legal-toc { margin: 30px 0 44px; padding: 22px 26px; border-radius: var(--radius-sm); border: 1px solid var(--border); background: var(--surface); }
.legal-toc h4 { font-size: 13px; text-transform: uppercase; letter-spacing: .05em; color: var(--faint); margin-bottom: 12px; font-family: 'Inter'; font-weight: 600; }
.legal-toc ol { padding-left: 20px; display: flex; flex-direction: column; gap: 7px; }
.legal-toc a { color: var(--muted); font-size: 15px; text-decoration: none; }
.legal-toc a:hover { color: var(--p-400); }
.legal-note { margin-top: 44px; padding: 18px 22px; border-radius: var(--radius-sm); border: 1px dashed var(--border-2); background: var(--surface); color: var(--faint); font-size: 14.5px; }

/* ============ Contact ============ */
.contact { padding: 150px 0 100px; }
.contact-head { max-width: 620px; margin: 0 auto 40px; text-align: center; }
.contact-head .eyebrow { margin-bottom: 22px; }
.contact-head h1 { font-size: clamp(34px, 5vw, 52px); margin-bottom: 16px; }
.contact-head p { color: var(--muted); font-size: 18px; }
.contact-card {
  position: relative; max-width: 620px; margin: 0 auto; padding: clamp(26px, 5vw, 44px);
  border-radius: var(--radius); border: 1px solid var(--border);
  background: var(--surface); box-shadow: var(--shadow-card);
}
.contact-form { display: flex; flex-direction: column; gap: 20px; }
.field { display: flex; flex-direction: column; gap: 8px; }
.field label { font-size: 14px; font-weight: 550; color: var(--text); }
.field input, .field textarea {
  width: 100%; font-family: inherit; font-size: 16px; color: var(--text); letter-spacing: -0.01em;
  background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius-sm);
  padding: 13px 15px; transition: border-color .2s, box-shadow .2s;
}
.field textarea { min-height: 150px; line-height: 1.6; resize: vertical; }
.field input::placeholder, .field textarea::placeholder { color: var(--faint); }
.field input:focus, .field textarea:focus {
  outline: none; border-color: var(--p-500); box-shadow: 0 0 0 3px rgba(132, 107, 255, 0.16);
}
/* Honeypot — hidden from humans, catches bots */
.contact-hp { position: absolute; left: -9999px; opacity: 0; height: 0; overflow: hidden; }
.form-note { text-align: center; font-size: 13.5px; color: var(--faint); margin-top: 2px; }
.form-status { text-align: center; font-size: 15px; padding: 12px 16px; border-radius: var(--radius-sm); }
.form-status.is-success { color: var(--p-400); background: rgba(132, 107, 255, 0.08); border: 1px solid var(--border-2); }
.form-status.is-error { color: #d6455f; background: rgba(214, 69, 95, 0.08); border: 1px solid rgba(214, 69, 95, 0.3); }

/* ============ Theme toggle button ============ */
.theme-toggle {
  width: 40px; height: 40px; border-radius: 12px; cursor: pointer;
  background: var(--surface-2); border: 1px solid var(--border);
  color: var(--muted); display: grid; place-items: center;
  transition: color .2s, border-color .2s, background .2s, transform .2s var(--ease);
}
.theme-toggle:hover { color: var(--text); border-color: var(--border-2); transform: translateY(-1px); }
.theme-toggle .ico-sun { display: none; }
.theme-toggle .ico-moon { display: block; }
:root[data-theme="dark"] .theme-toggle .ico-sun { display: block; }
:root[data-theme="dark"] .theme-toggle .ico-moon { display: none; }

/* ============ DARK THEME (optional toggle) ============ */
:root[data-theme="dark"] {
  --bg:        #0b0912;
  --bg-2:      #12101c;
  --surface:   #16131f;
  --surface-2: rgba(149, 128, 255, 0.10);
  --border:    rgba(149, 128, 255, 0.16);
  --border-2:  rgba(149, 128, 255, 0.32);

  --text:  #edeaf7;
  --muted: #a49cb8;
  --faint: #766f88;

  --p-400: #a99bff; /* lighter accent for contrast on dark */

  --glow: rgba(132, 107, 255, 0.5);

  --shadow-card: 0 24px 60px -30px rgba(0, 0, 0, 0.8);
}
:root[data-theme="dark"] .bg-aurora {
  background:
    radial-gradient(48% 40% at 18% 0%, rgba(115, 88, 242, 0.30), transparent 70%),
    radial-gradient(40% 44% at 88% 8%, rgba(149, 128, 255, 0.20), transparent 68%),
    radial-gradient(60% 50% at 50% 100%, rgba(95, 69, 224, 0.18), transparent 72%);
}
:root[data-theme="dark"] .bg-grid {
  background-image:
    linear-gradient(rgba(149, 128, 255, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(149, 128, 255, 0.05) 1px, transparent 1px);
}
/* Restore the dark surfaces on the components with hardcoded light literals */
:root[data-theme="dark"] .nav.scrolled { background: rgba(11, 9, 18, 0.78); }
:root[data-theme="dark"] .nav-mobile { background: rgba(11, 9, 18, 0.97); }
:root[data-theme="dark"] .footer { background: rgba(8, 6, 14, 0.5); }
:root[data-theme="dark"] .chat-head { background: rgba(255, 255, 255, 0.02); }
:root[data-theme="dark"] .chat-input { background: rgba(255, 255, 255, 0.03); }
:root[data-theme="dark"] .btn-glass { background: rgba(255, 255, 255, 0.04); }
:root[data-theme="dark"] .btn-glass:hover { background: rgba(255, 255, 255, 0.09); }

/* ============ Responsive ============ */
@media (max-width: 940px) {
  .hero-inner { grid-template-columns: 1fr; gap: 84px; }
  .hero-visual { max-width: 460px; }
  .feature-grid, .steps, .quotes { grid-template-columns: 1fr 1fr; }
  .nav-links { display: none; }
}
@media (max-width: 720px) {
  body { font-size: 16px; }
  .section { padding: 80px 0; }
  .nav-actions .btn-ghost { display: none; }
  .nav-burger { display: flex; }
  .nav-mobile.open { display: flex; max-height: 420px; }
  .feature-grid, .steps, .quotes, .plans { grid-template-columns: 1fr; }
  .plans { max-width: 400px; margin: 0 auto; }
  .hero { padding: 128px 0 60px; }
  .hero-cta .btn { flex: 1; }
  .cta-card { padding: 50px 24px; }
  .footer-inner { flex-direction: column; gap: 32px; }
}
