/* =============================================================
   1. Tokens
   ============================================================= */
:root {
  --navy: #14213D;
  --navy-2: #1B2B4F;
  --navy-3: #22355F;
  --ivory: #FAF8F4;
  --sand: #EFEBE3;
  --paper: #FFFFFF;
  --ink: #14213D;
  --ink-mute: #4F5A73;
  --coral: #FF5A36;
  --coral-dark: #D9401E;
  --blue: #2E6BFF;
  --line: rgba(20, 33, 61, 0.12);
  --line-light: rgba(250, 248, 244, 0.14);
  --display: "Sora", "Segoe UI", system-ui, sans-serif;
  --sans: "Manrope", "Segoe UI", system-ui, sans-serif;
  --radius: 20px;
  --gutter: clamp(20px, 4vw, 40px);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

/* =============================================================
   2. Reset & base
   ============================================================= */
*, *::before, *::after { box-sizing: border-box; margin: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 84px; }
body {
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--ivory);
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
img, svg { display: block; max-width: 100%; }
button { font: inherit; color: inherit; cursor: pointer; border: 0; background: none; }
a { color: inherit; text-decoration: none; }
ul, ol { padding: 0; list-style: none; }
p { text-wrap: pretty; }
h1, h2, h3 { font-family: var(--display); text-wrap: balance; line-height: 1.05; letter-spacing: -0.03em; }
::selection { background: var(--coral); color: var(--ivory); }
:focus-visible { outline: 3px solid var(--coral); outline-offset: 3px; border-radius: 6px; }

/* =============================================================
   3. Utilities
   ============================================================= */
.container { width: min(1200px, 100%); margin-inline: auto; padding-inline: var(--gutter); }
.skip-link {
  position: fixed; top: -100px; left: 1rem; z-index: 9999;
  padding: .6rem 1rem; background: var(--ivory); color: var(--navy);
  border-radius: 8px; font-weight: 700;
}
.skip-link:focus { top: 1rem; }
.accent-text { color: var(--coral); }

/* =============================================================
   4. Components
   ============================================================= */
.logo { display: inline-flex; align-items: flex-start; gap: 1px; color: var(--ivory); }
.logo-word { font-family: var(--display); font-weight: 800; font-size: 28px; letter-spacing: -0.06em; line-height: 1; }
.logo-waves { width: 15px; height: 15px; color: var(--coral); transform: rotate(-35deg); margin-top: -3px; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  min-height: 52px; padding: 0 26px; border-radius: 999px;
  font-family: var(--display); font-weight: 700; font-size: 16px; letter-spacing: -0.01em;
  transition: transform .4s var(--ease-out), background-color .3s, color .3s, box-shadow .4s var(--ease-out);
}
.btn:hover { transform: translateY(-2px); }
.btn-sm { min-height: 44px; padding: 0 20px; font-size: 15px; }
.btn-accent { background: var(--coral); color: var(--navy); box-shadow: 0 10px 30px -12px rgba(255, 90, 54, .7); }
.btn-accent:hover { background: #FF7352; box-shadow: 0 16px 36px -12px rgba(255, 90, 54, .8); }
.btn-ghost { border: 1.5px solid var(--line-light); color: var(--ivory); }
.btn-ghost:hover { border-color: var(--ivory); }
.btn-ghost-dark { border: 1.5px solid var(--line); color: var(--navy); }
.btn-ghost-dark:hover { border-color: var(--navy); }

.eyebrow {
  font-family: var(--display); font-weight: 700; font-size: 13px;
  letter-spacing: .14em; text-transform: uppercase; color: var(--coral-dark);
  margin-bottom: 14px;
}
.section-dark .eyebrow, .hero .eyebrow { color: var(--coral); }
.section-title { font-size: clamp(32px, 5vw, 56px); font-weight: 800; max-width: 18ch; }

/* =============================================================
   5. Nav
   ============================================================= */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  transition: background-color .4s, box-shadow .4s, backdrop-filter .4s;
}
.nav.is-solid { background: rgba(20, 33, 61, .92); box-shadow: 0 1px 0 var(--line-light); }
@supports (backdrop-filter: blur(10px)) {
  .nav.is-solid { background: rgba(20, 33, 61, .78); backdrop-filter: blur(14px); }
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; height: 76px; }
.nav-links { display: none; gap: 30px; font-weight: 600; font-size: 15px; color: rgba(250,248,244,.82); }
.nav-links a { position: relative; padding: 6px 0; }
.nav-links a::after {
  content: ""; position: absolute; left: 0; bottom: 0; height: 2px; width: 100%;
  background: var(--coral); transform: scaleX(0); transform-origin: left;
  transition: transform .4s var(--ease-out);
}
.nav-links a:hover { color: var(--ivory); }
.nav-links a:hover::after { transform: scaleX(1); }

/* =============================================================
   6. Sections
   ============================================================= */
/* Hero */
.hero {
  position: relative; isolation: isolate; overflow: hidden;
  background: var(--navy); color: var(--ivory);
  padding: 130px 0 90px;
  min-height: 100svh; display: flex; align-items: center;
}
.hero-gradient {
  position: absolute; inset: -10%; z-index: -1; pointer-events: none;
  background:
    radial-gradient(circle 520px at var(--mx, 70%) var(--my, 40%), rgba(255, 90, 54, .42) 0%, transparent 60%),
    radial-gradient(circle 700px at calc(var(--mx, 70%) - 35%) calc(var(--my, 40%) + 30%), rgba(46, 107, 255, .30) 0%, transparent 60%),
    var(--navy);
  filter: blur(30px);
  transition: background-position .3s;
}
.hero-gradient-soft { opacity: .6; }
.hero-grid { display: grid; gap: 56px; align-items: center; }
.kicker {
  display: inline-flex; align-items: center; gap: 10px; flex-wrap: wrap;
  font-size: 14px; font-weight: 600; color: rgba(250,248,244,.85);
  padding: 8px 16px; border: 1px solid var(--line-light); border-radius: 999px;
  margin-bottom: 26px;
}
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--coral); box-shadow: 0 0 0 0 rgba(255,90,54,.6); animation: pulse 2.4s infinite; }
.hero-title { font-size: clamp(42px, 7.2vw, 88px); font-weight: 800; letter-spacing: -0.045em; max-width: 12ch; }
.hero-sub { margin-top: 24px; font-size: clamp(17px, 1.6vw, 20px); color: rgba(250,248,244,.84); max-width: 34rem; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 34px; }
.hero-points { display: flex; flex-wrap: wrap; gap: 10px 22px; margin-top: 34px; font-size: 15px; font-weight: 600; color: rgba(250,248,244,.75); }
.hero-points li { display: flex; align-items: center; gap: 8px; }
.hero-points li::before { content: ""; width: 16px; height: 16px; border-radius: 50%; background: var(--coral) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4.5 8.2l2.3 2.3 4.7-5' fill='none' stroke='%2314213D' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/100% no-repeat; flex: none; }

/* Demo phone */
.hero-demo { position: relative; display: flex; flex-direction: column; align-items: center; justify-self: center; padding-bottom: 8px; }
.phone {
  position: relative; width: 272px; height: 548px; border-radius: 44px;
  background: #0B1428; padding: 12px;
  box-shadow: 0 0 0 2px rgba(250,248,244,.12), 0 40px 80px -30px rgba(0,0,0,.7), 0 0 120px -30px rgba(255,90,54,.45);
}
.phone-notch { position: absolute; top: 20px; left: 50%; width: 88px; height: 24px; margin-left: -44px; border-radius: 20px; background: #0B1428; z-index: 3; }
.phone-screen { position: relative; height: 100%; border-radius: 34px; overflow: hidden; background: var(--ivory); color: var(--navy); }
.screen-idle, .screen-menu { position: absolute; inset: 0; transition: opacity .6s var(--ease-out), transform .6s var(--ease-out); }
.screen-idle {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 22px;
  text-align: center; font-family: var(--display); font-weight: 700; font-size: 18px; line-height: 1.3;
  background: var(--navy-2); color: var(--ivory);
  opacity: 0; pointer-events: none;
}
.idle-waves { width: 70px; height: 70px; color: var(--coral); transform: rotate(-90deg); animation: waves 1.8s ease-in-out infinite; }
.screen-menu { padding: 64px 20px 20px; }
.screen-tag { display: inline-block; font-size: 11px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--coral-dark); background: rgba(255,90,54,.12); padding: 4px 10px; border-radius: 999px; }
.screen-venue { margin-top: 12px; font-family: var(--display); font-weight: 800; font-size: 26px; letter-spacing: -0.03em; line-height: 1.1; }
.screen-hello { margin-top: 6px; font-size: 14px; color: var(--ink-mute); }
.screen-actions { margin-top: 22px; display: grid; gap: 10px; }
.screen-actions li {
  display: flex; align-items: center; gap: 12px;
  padding: 11px 12px; border-radius: 16px; background: var(--paper);
  box-shadow: 0 1px 0 var(--line), 0 8px 20px -14px rgba(20,33,61,.4);
  font-weight: 700; font-size: 15px;
}
.screen-actions li:first-child { background: var(--navy); color: var(--ivory); }
.sa-icon { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 11px; background: rgba(255,90,54,.14); color: var(--coral-dark); flex: none; }
.screen-actions li:first-child .sa-icon { background: var(--coral); color: var(--navy); }
.sa-icon svg { width: 18px; height: 18px; }

/* When JS is ready the demo starts idle */
.is-ready .hero-demo:not(.is-tapped) .screen-idle { opacity: 1; pointer-events: auto; }
.is-ready .hero-demo:not(.is-tapped) .screen-menu { opacity: 0; transform: translateY(16px); }

.sticker {
  position: absolute; right: -26px; bottom: 64px; z-index: 4;
  width: 124px; height: 124px; border-radius: 50%;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px;
  background: var(--paper); color: var(--navy); border: 4px solid var(--navy);
  box-shadow: 0 0 0 6px rgba(255,90,54,.0), 0 18px 40px -16px rgba(0,0,0,.6);
  transition: transform .5s var(--ease-out), box-shadow .5s var(--ease-out);
}
.hero-demo.is-tapped .sticker { transform: translate(40px, 40px) scale(.78) rotate(-8deg); }
.sticker:hover { transform: scale(1.05) rotate(-4deg); box-shadow: 0 0 0 8px rgba(255,90,54,.35), 0 18px 40px -16px rgba(0,0,0,.6); }
.sticker-word { font-family: var(--display); font-weight: 800; font-size: 22px; letter-spacing: -0.06em; line-height: 1; }
.sticker-sub { font-size: 11px; font-weight: 700; color: var(--coral-dark); }
.is-ready .hero-demo:not(.is-tapped) .sticker { animation: ping 2.2s var(--ease-out) infinite; }
.demo-hint { margin-top: 40px; font-size: 14px; font-weight: 600; color: rgba(250,248,244,.7); min-height: 1.6em; }

/* Generic section */
.section { padding: clamp(80px, 11vw, 140px) 0; }
.section-dark { position: relative; isolation: isolate; overflow: hidden; background: var(--navy); color: var(--ivory); }
.section-soft { background: var(--sand); }

/* Steps */
.steps { display: grid; gap: 20px; margin-top: 56px; counter-reset: s; }
.step { padding: 34px 30px; border-radius: var(--radius); background: var(--paper); border: 1px solid var(--line); transition: transform .5s var(--ease-out), box-shadow .5s var(--ease-out); }
.step:hover { transform: translateY(-4px); box-shadow: 0 24px 50px -30px rgba(20,33,61,.45); }
.step-num { display: block; font-family: var(--display); font-weight: 800; font-size: 44px; letter-spacing: -0.04em; color: var(--coral); line-height: 1; }
.step h3 { margin-top: 26px; font-size: 24px; }
.step p { margin-top: 12px; color: var(--ink-mute); }

/* Features */
.features { display: grid; gap: 18px; margin-top: 56px; }
.feature { padding: 32px 28px; border-radius: var(--radius); background: var(--navy-2); border: 1px solid var(--line-light); }
.feature h3 { font-size: 22px; }
.feature p { margin-top: 12px; color: rgba(250,248,244,.78); }
.feature-accent { background: var(--coral); color: var(--navy); border-color: transparent; }
.feature-accent p { color: rgba(20,33,61,.86); }

/* Sectors */
.sectors { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 48px; }
.sectors li {
  font-family: var(--display); font-weight: 700; font-size: clamp(17px, 2vw, 22px); letter-spacing: -0.02em;
  padding: 16px 26px; border-radius: 999px; background: var(--paper); border: 1.5px solid var(--line);
  transition: background-color .3s, color .3s, border-color .3s;
}
.sectors li:hover { background: var(--navy); color: var(--ivory); border-color: var(--navy); }

/* Why */
.why { display: grid; gap: 40px; }
.why-list { display: grid; gap: 0; border-top: 1px solid var(--line); }
.why-list li { padding: 22px 0; border-bottom: 1px solid var(--line); color: var(--ink-mute); font-size: 18px; }
.why-list strong { color: var(--navy); font-family: var(--display); font-weight: 700; }

/* Plans */
.plans { display: grid; gap: 20px; margin-top: 56px; }
.plan { position: relative; display: flex; flex-direction: column; padding: 38px 32px; border-radius: 26px; background: var(--paper); border: 1px solid var(--line); }
.plan h3 { font-size: 28px; }
.plan-price { margin-top: 6px; font-weight: 700; color: var(--coral-dark); }
.plan ul { margin: 26px 0 32px; display: grid; gap: 12px; flex-grow: 1; }
.plan li { display: flex; gap: 12px; align-items: flex-start; }
.plan li::before { content: ""; margin-top: 7px; width: 10px; height: 10px; border-radius: 50%; background: var(--coral); flex: none; }
.plan-featured { background: var(--navy); color: var(--ivory); border-color: var(--navy); }
.plan-featured .plan-price { color: var(--coral); }
.plan-badge { align-self: flex-start; margin-bottom: 16px; font-size: 12px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; background: var(--coral); color: var(--navy); padding: 6px 12px; border-radius: 999px; }
.plans-note { margin-top: 28px; color: var(--ink-mute); max-width: 44rem; }

/* FAQ */
.faq-wrap { display: grid; gap: 40px; }
.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  list-style: none; cursor: pointer; position: relative;
  padding: 24px 48px 24px 0; font-family: var(--display); font-weight: 700; font-size: 19px; letter-spacing: -0.02em;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; position: absolute; right: 4px; top: 50%; width: 22px; height: 22px; margin-top: -11px;
  background:
    linear-gradient(var(--coral-dark), var(--coral-dark)) center/14px 2.5px no-repeat,
    linear-gradient(var(--coral-dark), var(--coral-dark)) center/2.5px 14px no-repeat;
  transition: transform .4s var(--ease-out);
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding: 0 0 24px; color: var(--ink-mute); max-width: 40rem; }

/* Contact */
.contact-grid { display: grid; gap: 48px; align-items: start; }
.contact-sub { margin-top: 20px; font-size: 18px; color: rgba(250,248,244,.82); max-width: 30rem; }
.contact-mail {
  display: inline-block; margin-top: 30px; font-family: var(--display); font-weight: 800;
  font-size: clamp(24px, 3.4vw, 38px); letter-spacing: -0.03em; color: var(--ivory);
  background: linear-gradient(var(--coral), var(--coral)) left bottom/0% 3px no-repeat;
  transition: background-size .5s var(--ease-out); padding-bottom: 4px;
}
.contact-mail:hover { background-size: 100% 3px; }
.form { display: grid; gap: 16px; padding: 32px; border-radius: 26px; background: var(--ivory); color: var(--navy); }
.form label { display: grid; gap: 6px; font-weight: 700; font-size: 15px; }
.optional { font-weight: 500; color: var(--ink-mute); }
.form input {
  font: inherit; font-weight: 500; min-height: 50px; padding: 0 16px; border-radius: 14px;
  border: 1.5px solid rgba(20,33,61,.22); background: var(--paper); color: var(--navy);
  transition: border-color .3s, box-shadow .3s;
}
.form input:focus { outline: none; border-color: var(--navy); box-shadow: 0 0 0 4px rgba(255,90,54,.25); }
.form input[aria-invalid="true"] { border-color: var(--coral-dark); }
.form .btn { margin-top: 6px; width: 100%; }
.form-msg { min-height: 1.5em; font-size: 15px; font-weight: 600; }
.form-msg.is-error { color: var(--coral-dark); }

/* Contact lines & socials */
.contact-lines { display: grid; gap: 6px; margin-top: 30px; justify-items: start; }
.contact-lines .contact-mail { margin-top: 0; }
.contact-social { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.contact-social a {
  display: inline-flex; align-items: center; gap: 10px; min-height: 48px; padding: 0 18px;
  border-radius: 999px; border: 1.5px solid var(--line-light); color: var(--ivory); font-weight: 700;
  transition: border-color .3s, background-color .3s;
}
.contact-social a:hover { border-color: var(--coral); background: rgba(255,90,54,.12); }
.contact-social svg, .footer-social svg { width: 20px; height: 20px; flex: none; }
.section-title-stack { max-width: 22ch; }
.section-title-stack span { display: block; }
.accent-dark { color: var(--coral-dark); }

/* Footer */
.footer { background: #0E1830; color: rgba(250,248,244,.72); padding: 44px 0; font-size: 15px; }
.footer-inner { display: flex; flex-wrap: wrap; gap: 20px 40px; align-items: center; justify-content: space-between; }
.footer-social { display: flex; flex-wrap: wrap; gap: 12px 24px; font-weight: 600; }
.footer-social a { display: inline-flex; align-items: center; gap: 8px; }
.footer-social a:hover { color: var(--coral); }

/* =============================================================
   7. Effects
   ============================================================= */
.reveal { transition: opacity .8s var(--ease-out), transform .8s var(--ease-out); }
.js-reveal .reveal:not(.is-in) { opacity: 0; transform: translateY(24px); }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(255,90,54,.55); } 70% { box-shadow: 0 0 0 10px rgba(255,90,54,0); } 100% { box-shadow: 0 0 0 0 rgba(255,90,54,0); } }
@keyframes ping { 0%, 100% { box-shadow: 0 0 0 0 rgba(255,90,54,.55), 0 18px 40px -16px rgba(0,0,0,.6); } 60% { box-shadow: 0 0 0 18px rgba(255,90,54,0), 0 18px 40px -16px rgba(0,0,0,.6); } }
@keyframes waves { 0%, 100% { opacity: .55; transform: rotate(-90deg) scale(.94); } 50% { opacity: 1; transform: rotate(-90deg) scale(1.04); } }

/* =============================================================
   8. Responsive
   ============================================================= */
@media (min-width: 720px) {
  .steps { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .features { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .plans { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 960px) {
  .nav-links { display: flex; }
  .hero-grid { grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); }
  .features { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .why, .faq-wrap { grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 64px; }
  .contact-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 64px; }
}
@media (max-width: 539px) {
  .kicker { font-size: 13px; padding: 7px 14px; }
  .hero-demo.is-tapped .sticker { transform: translate(14px, 52px) scale(.72) rotate(-8deg); }
  .nav .btn-sm { padding: 0 16px; font-size: 14px; }
  .sticker { right: -8px; width: 108px; height: 108px; }
  .sticker-word { font-size: 19px; }
  .phone { width: 264px; height: 548px; }
  .screen-menu { padding-top: 56px; }
  .screen-actions li { font-size: 14px; }
  .demo-hint { margin-top: 56px; }
  .form { padding: 24px 20px; }
}

/* =============================================================
   9. Reduced motion (only intrusive loops)
   ============================================================= */
@media (prefers-reduced-motion: reduce) {
  .dot, .idle-waves, .is-ready .hero-demo:not(.is-tapped) .sticker { animation: none; }
  html { scroll-behavior: auto; }
}

/* Legal pages & consent */
.check { display: flex !important; grid-template-columns: none; align-items: flex-start; gap: 10px !important; font-weight: 500 !important; font-size: 14px !important; line-height: 1.5; }
.check input { width: 20px; height: 20px; min-height: 0; margin-top: 1px; accent-color: var(--coral-dark); flex: none; }
.check a, .footer-copy a, .footer-legal a { text-decoration: underline; text-underline-offset: 3px; }
.footer-legal { display: flex; gap: 20px; }
.legal-page { background: var(--ivory); }
.legal-top { background: var(--navy); }
.legal-top-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 76px; }
.legal { max-width: 760px; padding-block: 64px 96px; }
.legal h1 { font-size: clamp(34px, 5vw, 52px); font-weight: 800; }
.legal-date { margin-top: 10px; color: var(--ink-mute); font-size: 15px; }
.legal h2 { margin-top: 44px; font-size: 22px; letter-spacing: -0.02em; }
.legal p, .legal ul { margin-top: 14px; color: var(--ink-mute); }
.legal ul { list-style: disc; padding-left: 22px; display: grid; gap: 8px; }
.legal strong { color: var(--navy); }
.legal a { color: var(--coral-dark); text-decoration: underline; text-underline-offset: 3px; }
.legal mark { background: rgba(255,90,54,.18); color: var(--navy); padding: 0 4px; border-radius: 4px; }
