/* ==========================================================================
   Decifile marketing website — shared stylesheet (used by every page)
   Sections: 1 tokens · 2 base · 3 layout · 4 header/nav · 5 buttons · 6 hero
            7 sections · 8 components · 9 pricing · 10 forms · 11 footer · 12 responsive
   ========================================================================== */

/* 1. TOKENS ---------------------------------------------------------------- */
:root {
  --indigo-900: #1B1470;
  --indigo-700: #2F25B3;
  --indigo-600: #3B2FD9;
  --indigo-400: #7C74FF;
  --indigo-100: #E6E4FD;
  --indigo-50:  #F0EFFE;
  --teal-600:   #0FA88C;
  --teal-500:   #14C8A8;
  --teal-100:   #D9F7F1;
  --teal-50:    #EAFBF8;
  --ink:        #0F1226;
  --ink-2:      #3A3F5C;
  --muted:      #6B7194;
  --line:       #E6E8F2;
  --line-2:     #D9DCEC;
  --bg:         #F7F8FC;
  --white:      #FFFFFF;
  --amber:      #F5A524;
  --amber-50:   #FEF3DC;
  --red:        #E5484D;
  --red-50:     #FDEBEC;

  --font-display: "Plus Jakarta Sans", "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;

  --r-sm: 8px;
  --r-md: 12px;
  --r-lg: 20px;
  --shadow-sm: 0 1px 2px rgba(15, 18, 38, .06);
  --shadow-md: 0 12px 32px -12px rgba(15, 18, 38, .18);
  --shadow-lg: 0 30px 70px -24px rgba(47, 37, 179, .35), 0 8px 24px -12px rgba(15, 18, 38, .18);
  --header-h: 68px;
  --container: 1200px;
}

/* 2. BASE ------------------------------------------------------------------ */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink-2);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}
img, svg { max-width: 100%; display: block; }
a { color: var(--indigo-600); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3, h4 { font-family: var(--font-display); color: var(--ink); margin: 0; line-height: 1.12; letter-spacing: -0.025em; }
h1 { font-size: clamp(2.5rem, 5.4vw, 4.25rem); font-weight: 800; letter-spacing: -0.025em; }
h2 { font-size: clamp(1.9rem, 3.4vw, 2.75rem); font-weight: 800; }
h3 { font-size: 1.25rem; font-weight: 700; letter-spacing: -0.015em; }
h4 { font-size: 1rem; font-weight: 700; letter-spacing: -0.01em; }
p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }
:focus-visible { outline: 3px solid var(--indigo-400); outline-offset: 2px; border-radius: 6px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: 12px; top: -60px; background: var(--ink); color: #fff; padding: 10px 14px; border-radius: 8px; z-index: 200; }
.skip-link:focus { top: 12px; text-decoration: none; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { animation: none !important; transition: none !important; } }

/* 3. LAYOUT ---------------------------------------------------------------- */
.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 32px; }
.frame { width: 100%; } /* full width: no side lines or section dividers */
.section { padding: 96px 0; }
.section-tight { padding: 64px 0; }
.section-head { max-width: 680px; margin-bottom: 56px; }
.section-head p { margin-top: 16px; font-size: 1.125rem; color: var(--muted); }
.lead { font-size: 1.1875rem; line-height: 1.55; color: var(--ink-2); max-width: 56ch; }
.eyebrow { font-family: var(--font-display); font-weight: 700; font-size: .9375rem; color: var(--indigo-600); margin-bottom: 14px; display: block; }
.muted { color: var(--muted); }
.center { text-align: center; margin-left: auto; margin-right: auto; }
.stack > * + * { margin-top: 16px; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; }
.split { grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: 48px; }
.split.reverse { grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); }
.split.reverse .split-media { order: -1; }
.split-media img { display: block; width: 100%; height: auto; mix-blend-mode: multiply;
  -webkit-mask-image: linear-gradient(to right, transparent, #000 6%, #000 94%, transparent), linear-gradient(to bottom, transparent, #000 6%, #000 94%, transparent);
  mask-image: linear-gradient(to right, transparent, #000 6%, #000 94%, transparent), linear-gradient(to bottom, transparent, #000 6%, #000 94%, transparent);
  -webkit-mask-composite: source-in; mask-composite: intersect; }
.split-text .lead { margin-top: 18px; }
.check-list { margin-top: 24px; display: grid; gap: 12px; }
.check-list li { position: relative; padding-left: 30px; }
.check-list li::before {
  content: ""; position: absolute; left: 0; top: 4px; width: 18px; height: 18px; border-radius: 50%;
  background: var(--teal-100) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 18 18'%3E%3Cpath d='M5 9.2l2.6 2.6L13 6.4' fill='none' stroke='%230FA88C' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/18px no-repeat;
}

/* 4. HEADER / NAV ---------------------------------------------------------- */
.announce { background: var(--ink); color: #D9DCEC; font-size: .875rem; text-align: center; padding: 9px 16px; }
.announce a { color: #fff; font-weight: 600; text-decoration: underline; text-underline-offset: 3px; margin-left: 6px; }
.site-header { position: relative; z-index: 100; background: rgba(255, 255, 255, .92); backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid transparent; transition: border-color .2s, box-shadow .2s; }
.site-header.scrolled { border-bottom-color: var(--line); box-shadow: 0 6px 20px -16px rgba(15, 18, 38, .4); }
.site-header .bar { height: var(--header-h); display: flex; align-items: center; gap: 28px; }
.brand { display: inline-flex; align-items: center; }
.brand img { height: 30px; width: auto; }
.brand:hover { text-decoration: none; }
.main-nav { display: flex; align-items: center; gap: 4px; margin-left: 8px; }
.nav-item { position: relative; }
.nav-link {
  display: inline-flex; align-items: center; gap: 6px; padding: 10px 14px; border-radius: 999px; background: none; border: 0; cursor: pointer;
  font: 600 .9375rem var(--font-body); color: var(--ink); text-decoration: none;
}
.nav-link:hover, .nav-item.open > .nav-link, .nav-link.active { background: var(--bg); text-decoration: none; }
.nav-link .chev { width: 10px; height: 10px; transition: transform .2s; }
.nav-item.open .chev { transform: rotate(180deg); }
.mega {
  position: absolute; left: -16px; top: calc(100% + 10px); min-width: 560px; background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg);
  box-shadow: var(--shadow-md); padding: 20px; display: none; grid-template-columns: 1fr 1fr; gap: 4px 12px;
}
.nav-item.open > .mega { display: grid; }
.mega.narrow { min-width: 340px; grid-template-columns: 1fr; }
.mega a { display: block; padding: 12px 14px; border-radius: var(--r-md); color: var(--ink); text-decoration: none; }
.mega a:hover { background: var(--bg); }
.mega a strong { display: block; font-family: var(--font-display); font-size: .9375rem; }
.mega a span { display: block; font-size: .8125rem; color: var(--muted); line-height: 1.4; margin-top: 2px; }
.nav-cta { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.menu-toggle { display: none; margin-left: auto; width: 44px; height: 44px; border: 1px solid var(--line); background: #fff; border-radius: 12px; cursor: pointer; }
.menu-toggle span { display: block; width: 18px; height: 2px; background: var(--ink); margin: 4px auto; border-radius: 2px; }

/* 5. BUTTONS --------------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 12px 22px; border-radius: 999px; border: 1px solid transparent;
  font: 700 .9375rem var(--font-body); cursor: pointer; text-decoration: none; transition: background .15s, border-color .15s, transform .15s; white-space: nowrap;
}
.btn:hover { text-decoration: none; }
.btn-primary { background: var(--indigo-600); color: #fff; }
.btn-primary:hover { background: var(--indigo-700); }
.btn-dark { background: var(--ink); color: #fff; }
.btn-dark:hover { background: #232848; }
.btn-ghost { background: #fff; color: var(--ink); border-color: var(--line-2); }
.btn-ghost:hover { border-color: var(--ink); }
.btn-teal { background: var(--teal-500); color: var(--ink); }
.btn-teal:hover { background: #2AD8B9; }
.btn-lg { padding: 15px 28px; font-size: 1rem; }
.btn-sm { padding: 8px 16px; font-size: .875rem; }
.btn-block { width: 100%; }
.link-arrow { font-weight: 700; display: inline-flex; gap: 6px; align-items: center; }
.link-arrow::after { content: "\2192"; transition: transform .15s; }
.link-arrow:hover::after { transform: translateX(3px); }
.link-arrow:hover { text-decoration: none; }

/* 6. HERO ------------------------------------------------------------------ */
.hero { position: relative; overflow: hidden; padding: 88px 0 104px; }
.hero::before {
  content: ""; position: absolute; right: 0; top: 0; width: 62%; height: 100%; background: url("../images/hero-ribbon.webp") right center/cover no-repeat; pointer-events: none;
  -webkit-mask-image: linear-gradient(to right, transparent 0, #000 45%), linear-gradient(to bottom, transparent 0, #000 10%, #000 70%, transparent 100%);
  mask-image: linear-gradient(to right, transparent 0, #000 45%), linear-gradient(to bottom, transparent 0, #000 10%, #000 70%, transparent 100%);
  -webkit-mask-composite: source-in; mask-composite: intersect;
}
.hero .container { position: relative; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 56px; align-items: center; }
.hero h1 { max-width: 12ch; }
.hero .lead { margin-top: 24px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.hero-note { margin-top: 16px; font-size: .875rem; color: var(--muted); }
.page-hero { padding: 80px 0 64px; }
.page-hero h1 { font-size: clamp(2.25rem, 4.6vw, 3.5rem); max-width: 18ch; }
.page-hero .lead { margin-top: 20px; }

/* The signature element: the 3-line "decode" card */
.decode-card { background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--shadow-lg); overflow: hidden; max-width: 470px; margin-left: auto; }
.decode-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 20px; border-bottom: 1px solid var(--line); background: var(--bg); font-size: .8125rem; color: var(--muted); }
.decode-head b { color: var(--ink); font-family: var(--font-display); font-size: .9375rem; }
.decode-row { display: grid; grid-template-columns: 12px 1fr; gap: 14px; padding: 18px 20px; border-bottom: 1px solid var(--line); }
.decode-row:last-child { border-bottom: 0; }
.decode-row .dot { width: 10px; height: 10px; border-radius: 50%; margin-top: 7px; }
.decode-row h4 { font-size: .9375rem; margin-bottom: 4px; }
.decode-row p { font-size: .9375rem; line-height: 1.5; }
.decode-row .num { font-family: var(--font-display); font-weight: 800; color: var(--ink); }
.dot-indigo { background: var(--indigo-600); } .dot-amber { background: var(--amber); } .dot-teal { background: var(--teal-500); }
.pill { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border-radius: 999px; font-size: .75rem; font-weight: 700; background: var(--bg); color: var(--ink-2); }
.pill-teal { background: var(--teal-100); color: #0A7F69; }
.pill-amber { background: var(--amber-50); color: #8A5A00; }
.pill-red { background: var(--red-50); color: #B3262B; }
.pill-indigo { background: var(--indigo-50); color: var(--indigo-700); }
.pill-dark { background: var(--ink); color: #fff; }
.spark { width: 100%; height: 40px; margin-top: 10px; }

/* 7. SECTIONS -------------------------------------------------------------- */
.band-dark { background: var(--ink); color: #C9CCE0; }
.band-dark h2, .band-dark h3, .band-dark h4 { color: #fff; }
.band-dark .section-head p, .band-dark .muted { color: #A7ACC9; }
.band-dark .eyebrow { color: #9A93FF; }
.band-soft { background: var(--bg); }
.cells { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.cell { padding: 32px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); background: #fff; }
.cell .icon { width: 44px; height: 44px; border-radius: 12px; background: var(--indigo-50); display: grid; place-items: center; margin-bottom: 20px; }
.cell .icon svg { width: 22px; height: 22px; stroke: var(--indigo-600); fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.cell .icon.teal { background: var(--teal-50); } .cell .icon.teal svg { stroke: var(--teal-600); }
.cell .icon.amber { background: var(--amber-50); } .cell .icon.amber svg { stroke: #B77700; }
.cell h3 { margin-bottom: 8px; }
.cell p { color: var(--muted); }
.cell .tag { margin-top: 16px; }
.band-dark .cells { border-color: #272B4A; }
.band-dark .cell { background: transparent; border-color: #272B4A; }
.band-dark .cell p { color: #A7ACC9; }
.band-dark .cell .icon { background: #1C2042; } .band-dark .cell .icon svg { stroke: #9A93FF; }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; counter-reset: step; border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; background: #fff; }
.step { padding: 32px; border-right: 1px solid var(--line); counter-increment: step; }
.step:last-child { border-right: 0; }
.step::before { content: counter(step); display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--indigo-600); color: #fff; font: 800 .9375rem var(--font-display); margin-bottom: 20px; }
.step h3 { margin-bottom: 8px; }
.step p { color: var(--muted); }
.facts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; }
.fact { padding: 32px; border-right: 1px solid #272B4A; }
.fact:last-child { border-right: 0; }
.fact b { display: block; font: 800 1.75rem var(--font-display); color: #fff; letter-spacing: -0.02em; margin-bottom: 6px; }
.fact span { color: #A7ACC9; font-size: .9375rem; }
.audience { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0; border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; }
.audience > div { padding: 36px; border-bottom: 1px solid var(--line); border-right: 1px solid var(--line); background: #fff; scroll-margin-top: 100px; }
.audience > div:nth-child(2n) { border-right: 0; }
.audience > div:nth-last-child(-n+2) { border-bottom: 0; }
.audience h3 { margin-bottom: 8px; }
.cta-band { text-align: center; padding: 96px 0; background: radial-gradient(900px 300px at 50% 120%, var(--indigo-100), transparent 70%), var(--bg); }
.cta-band h2 { max-width: 18ch; margin: 0 auto; }
.cta-band p { margin: 18px auto 0; max-width: 48ch; color: var(--muted); font-size: 1.125rem; }
.cta-band .hero-actions { justify-content: center; }
.prose { max-width: 760px; }
.prose h2 { font-size: 1.5rem; margin: 40px 0 12px; letter-spacing: -0.02em; }
.prose h3 { margin: 28px 0 8px; }
.prose p, .prose ul, .prose ol { margin-top: 12px; }
.prose ul { list-style: disc; padding-left: 22px; } .prose ol { padding-left: 22px; }
.prose li + li { margin-top: 6px; }
.callout { border: 1px solid var(--amber); background: var(--amber-50); border-radius: var(--r-md); padding: 14px 18px; color: #6B4600; font-size: .9375rem; margin-top: 20px; }

/* 8. COMPONENTS ------------------------------------------------------------ */
.faq { max-width: 820px; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; list-style: none; padding: 22px 0; font: 700 1.0625rem var(--font-display); color: var(--ink); display: flex; justify-content: space-between; gap: 16px; align-items: center; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 1.5rem; font-weight: 400; color: var(--muted); transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding: 0 40px 22px 0; color: var(--ink-2); }
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--r-lg); background: #fff; }
.compare { width: 100%; border-collapse: collapse; min-width: 720px; font-size: .9375rem; }
.compare th, .compare td { padding: 16px 20px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; }
.compare thead th { font-family: var(--font-display); color: var(--ink); background: var(--bg); position: sticky; top: 0; }
.compare tbody th { font-weight: 600; color: var(--ink); width: 34%; }
.compare tr:last-child td, .compare tr:last-child th { border-bottom: 0; }
.compare .yes { color: var(--teal-600); font-weight: 700; } .compare .no { color: var(--line-2); }
.compare .group th { background: var(--bg); font: 800 .8125rem var(--font-display); color: var(--muted); }
.team-note { display: flex; gap: 16px; align-items: flex-start; }
.stat-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }

/* 9. PRICING --------------------------------------------------------------- */
.billing-toggle { display: inline-flex; padding: 4px; background: var(--bg); border: 1px solid var(--line); border-radius: 999px; margin-bottom: 40px; }
.billing-toggle button { border: 0; background: none; padding: 9px 20px; border-radius: 999px; font: 700 .875rem var(--font-body); color: var(--muted); cursor: pointer; }
.billing-toggle button[aria-pressed="true"] { background: #fff; color: var(--ink); box-shadow: var(--shadow-sm); }
.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; align-items: stretch; }
.plan { border: 1px solid var(--line); border-radius: var(--r-lg); padding: 32px; background: #fff; display: flex; flex-direction: column; }
.plan.featured { border: 2px solid var(--indigo-600); box-shadow: var(--shadow-md); position: relative; }
.plan.featured .badge { position: absolute; top: -13px; left: 28px; }
.plan h3 { font-size: 1.125rem; }
.plan .price { margin: 18px 0 4px; font: 800 2.75rem var(--font-display); color: var(--ink); letter-spacing: -0.03em; }
.plan .price small { font: 600 .9375rem var(--font-body); color: var(--muted); letter-spacing: 0; margin-left: 4px; }
.plan .blurb { color: var(--muted); min-height: 48px; }
.plan .check-list { margin: 24px 0 28px; flex: 1; font-size: .9375rem; }
.price-note { font-size: .875rem; color: var(--muted); margin-top: 16px; }

/* 10. FORMS ---------------------------------------------------------------- */
.form { display: grid; gap: 18px; }
.field label { display: block; font-weight: 600; font-size: .875rem; color: var(--ink); margin-bottom: 6px; }
.field input, .field select, .field textarea {
  width: 100%; padding: 12px 14px; border: 1px solid var(--line-2); border-radius: 10px; font: 400 1rem var(--font-body); color: var(--ink); background: #fff;
}
.field textarea { min-height: 140px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 0; border-color: var(--indigo-600); box-shadow: 0 0 0 4px var(--indigo-100); }
.field .hint { font-size: .8125rem; color: var(--muted); margin-top: 6px; }
.form-success { display: none; padding: 16px 18px; border-radius: var(--r-md); background: var(--teal-50); border: 1px solid var(--teal-500); color: #0A6B58; font-weight: 600; }
.form-success.show { display: block; }
.contact-card { border: 1px solid var(--line); border-radius: var(--r-lg); padding: 32px; background: #fff; }
.contact-list li { padding: 16px 0; border-bottom: 1px solid var(--line); }
.contact-list li:last-child { border-bottom: 0; }
.contact-list b { display: block; color: var(--ink); font-family: var(--font-display); }

/* 11. FOOTER --------------------------------------------------------------- */
.site-footer { border-top: 1px solid var(--line); background: #fff; }
.footer-grid { display: grid; grid-template-columns: 1.4fr repeat(4, 1fr); gap: 32px; padding: 64px 0 40px; }
.footer-grid h4 { font-size: .9375rem; margin-bottom: 14px; }
.footer-grid li + li { margin-top: 10px; }
.footer-grid a { color: var(--ink-2); font-size: .9375rem; }
.footer-brand img { height: 30px; width: auto; margin-bottom: 16px; }
.footer-brand p { color: var(--muted); font-size: .9375rem; max-width: 30ch; }
.footer-legal { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; padding: 24px 0 40px; border-top: 1px solid var(--line); font-size: .8125rem; color: var(--muted); }
.footer-legal p { max-width: 70ch; }

/* 12. RESPONSIVE ----------------------------------------------------------- */
@media (max-width: 1080px) {
  .hero-grid, .grid-2, .split, .split.reverse { grid-template-columns: 1fr; gap: 48px; }
  .decode-card { margin: 0; max-width: 520px; }
  .hero::before { width: 120%; right: -40%; opacity: .5; }
  .split.reverse .split-media { order: 0; }
  .cells { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: repeat(3, 1fr); }
  .footer-brand { grid-column: 1 / -1; }
  .facts { grid-template-columns: repeat(2, 1fr); }
  .fact:nth-child(2) { border-right: 0; } .fact:nth-child(-n+2) { border-bottom: 1px solid #272B4A; }
}
@media (max-width: 900px) {
  .menu-toggle { display: block; }
  .nav-cta { display: none; }
  .main-nav {
    display: none; position: absolute; left: 0; right: 0; top: var(--header-h); flex-direction: column; align-items: stretch; gap: 0; margin: 0;
    background: #fff; border-bottom: 1px solid var(--line); padding: 8px 20px 24px; max-height: calc(100vh - var(--header-h)); overflow-y: auto;
  }
  .site-header.menu-open .main-nav { display: flex; }
  .nav-link { width: 100%; justify-content: space-between; border-radius: 10px; padding: 14px 12px; }
  .mega, .mega.narrow { position: static; min-width: 0; box-shadow: none; border: 0; padding: 0 0 8px 8px; grid-template-columns: 1fr; }
  .main-nav .mobile-cta { display: grid; gap: 10px; margin-top: 16px; }
  .plans { grid-template-columns: 1fr; max-width: 520px; margin: 0 auto; }
  .steps { grid-template-columns: 1fr; }
  .step { border-right: 0; border-bottom: 1px solid var(--line); } .step:last-child { border-bottom: 0; }
  .grid-3 { grid-template-columns: 1fr; }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 901px) { .main-nav .mobile-cta { display: none; } }
@media (max-width: 640px) {
  .container { padding: 0 20px; }
  .frame { border-left: 0; border-right: 0; }
  .section { padding: 64px 0; }
  .hero { padding: 56px 0 72px; }
  .cells { grid-template-columns: 1fr; }
  .audience { grid-template-columns: 1fr; }
  .audience > div { border-right: 0; } .audience > div:nth-last-child(2) { border-bottom: 1px solid var(--line); }
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
  .facts { grid-template-columns: 1fr; } .fact { border-right: 0; border-bottom: 1px solid #272B4A; } .fact:last-child { border-bottom: 0; }
  .btn-lg { padding: 14px 22px; }
  .hero-actions .btn { flex: 1 1 100%; }
}

/* Hero illustration floating over the sample card */
.hero-visual { position: relative; padding-bottom: 210px; }
.hero-float { position: absolute; z-index: 2; right: 0; bottom: 4px; width: 56%; max-width: 300px; height: auto; pointer-events: none; filter: drop-shadow(0 18px 24px rgba(59,47,217,.18)); }
@media (max-width: 960px) { .hero-visual { padding-bottom: 190px; } .hero-float { right: 0; bottom: 0; width: 56%; } }

/* ---- v2: whole header block (announce + nav) stays fixed while scrolling ---- */
#site-header { position: sticky; top: 0; z-index: 100; }
@media (min-width: 981px) { .announce { padding: 7px 16px; } }
/* ---- v2: custom select arrow, a little inside the border ---- */
select, .field select { -webkit-appearance: none; appearance: none; padding-right: 40px; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8' fill='none' stroke='%236B7194' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M1 1.5l5 5 5-5'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 16px center; background-size: 12px 8px; }
.muted-legal { margin-top: 6px; max-width: 80ch; }

/* ---- v2: product tour, blog, changelog, cookie banner ---- */
.tour-tabs { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 28px; }
.tour-tabs button { border: 1px solid var(--line-2); background: #fff; border-radius: 999px; padding: 9px 18px; font: 600 .9375rem var(--font-body); color: var(--ink); cursor: pointer; }
.tour-tabs button[aria-selected="true"] { background: var(--indigo-600); border-color: var(--indigo-600); color: #fff; }
.tour-panel { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 48px; align-items: center; }
.tour-panel[hidden] { display: none; }
.tour-copy h2 { font-size: 1.75rem; margin-bottom: 12px; }
.mock { border: 1px solid var(--line); border-radius: 14px; background: #fff; box-shadow: 0 30px 60px -36px rgba(15, 18, 38, .4); overflow: hidden; }
.mock-bar { display: flex; gap: 6px; padding: 10px 14px; border-bottom: 1px solid var(--line); background: var(--bg); }
.mock-bar i { width: 9px; height: 9px; border-radius: 50%; background: var(--line-2); }
.mock-body { padding: 20px; display: grid; gap: 12px; }
.m-status { padding: 12px 14px; border: 1px solid var(--line); border-radius: 10px; } .m-status b { display: block; color: var(--ink); } .m-status span { color: var(--muted); font-size: .9rem; }
.m-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; } .m-grid > div { border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; } .m-grid small { display: block; color: var(--muted); font-size: .8rem; } .m-grid b { font-family: var(--font-display); color: var(--ink); font-size: 1.25rem; }
.m-row { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; color: var(--ink); font-weight: 500; } .m-row em { margin-left: auto; font-style: normal; color: var(--muted); font-size: .85rem; white-space: nowrap; }
.dot { width: 9px; height: 9px; border-radius: 50%; flex: none; } .dot.red { background: #E5484D; } .dot.amber { background: #F5A524; } .dot.green { background: #14C8A8; }
.m-score { font: 800 3rem var(--font-display); color: var(--ink); } .m-score small { font-size: 1.25rem; color: var(--muted); }
.demo-cta { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-top: 40px; }
.blog-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.blog-card { display: flex; flex-direction: column; gap: 10px; padding: 28px; border: 1px solid var(--line); border-radius: 14px; background: #fff; color: inherit; transition: border-color .15s, transform .15s; align-items: flex-start; }
.blog-card:hover { border-color: var(--indigo-400); transform: translateY(-2px); text-decoration: none; } .blog-card h3 { font-size: 1.25rem; } .blog-card p { color: var(--muted); }
.link-arrow { font-weight: 600; color: var(--indigo-600); }
.newsletter { display: flex; gap: 32px; align-items: center; justify-content: space-between; flex-wrap: wrap; }
.nl-form { display: flex; gap: 10px; flex-wrap: wrap; } .nl-form input { padding: 12px 14px; border: 1px solid var(--line-2); border-radius: 10px; font: 400 1rem var(--font-body); min-width: 260px; }
.log { display: flex; gap: 12px; align-items: baseline; padding: 14px 0; border-bottom: 1px solid var(--line); } .log .pill { flex: none; min-width: 74px; justify-content: center; }
.steps-list { counter-reset: s; display: grid; gap: 16px; max-width: 720px; padding: 0; list-style: none; } .steps-list li { counter-increment: s; padding-left: 52px; position: relative; } .steps-list li::before { content: counter(s); position: absolute; left: 0; top: -2px; width: 34px; height: 34px; border-radius: 50%; background: var(--indigo-50); color: var(--indigo-600); font: 700 1rem var(--font-display); display: grid; place-items: center; }
.calc { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 32px; align-items: center; padding: 32px; border: 1px solid var(--line); border-radius: 16px; background: #fff; }
.calc input[type=range] { width: 100%; accent-color: var(--indigo-600); } .calc .big { font: 800 2.5rem var(--font-display); color: var(--ink); }
.pay-strip { display: flex; flex-wrap: wrap; gap: 8px 12px; align-items: center; justify-content: center; color: var(--muted); }
.cookie { position: fixed; left: 16px; right: 16px; bottom: 16px; max-width: 640px; margin: 0 auto; z-index: 300; background: var(--ink); color: #D9DCEC; border-radius: 14px; padding: 16px 18px; display: flex; gap: 16px; align-items: center; flex-wrap: wrap; box-shadow: 0 20px 50px -20px rgba(0,0,0,.5); font-size: .9375rem; }
.cookie p { flex: 1 1 260px; } .cookie a { color: #fff; text-decoration: underline; } .cookie .btn { height: 38px; padding: 0 16px; font-size: .9rem; }
@media (max-width: 860px) { .tour-panel, .calc, .blog-grid { grid-template-columns: 1fr; gap: 24px; } }
.page-hero + .section { padding-top: 24px; }

/* ---- v5: hero without side visual; Untitled-UI style mega menu ---- */
.hero-grid { grid-template-columns: 1fr; }
.mega { left: -24px; padding: 8px; gap: 0; grid-template-columns: none; min-width: 0; width: max-content; max-width: min(860px, 94vw); overflow: hidden; }
.nav-item.open > .mega { display: flex; }
.mega-col { padding: 16px 12px; min-width: 290px; }
.mega-col h6 { margin: 0 0 8px 10px; font: 600 .75rem var(--font-body); color: var(--muted); letter-spacing: .02em; }
.mega a { display: flex; gap: 12px; align-items: flex-start; padding: 10px; }
.mega a > span { display: block; margin: 0; }
.mega a em { display: block; font-style: normal; font-size: .8125rem; color: var(--muted); line-height: 1.4; margin-top: 1px; }
.mega a strong { display: block; }
.tile { flex: none; width: 36px; height: 36px; border-radius: 8px; border: 1px solid var(--line); background: #fff; display: grid; place-items: center; box-shadow: 0 1px 2px rgba(16,24,40,.05); }
.tile svg { width: 18px; height: 18px; fill: none; stroke: var(--indigo-600, #3B2FD9); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.mega a:hover .tile { border-color: var(--indigo-600, #3B2FD9); }
.mega-feature { flex-direction: column; gap: 6px; width: 260px; margin: 8px; padding: 16px !important; background: var(--bg); border-radius: var(--r-md); }
.mega-feature img { width: 100%; height: 120px; object-fit: contain; margin-bottom: 4px; }
.mega-feature b { font-size: .875rem; color: var(--indigo-600, #3B2FD9); margin-top: 4px; }
.mega-feature:hover { background: #eef0fb; }
@media (max-width: 900px) {
  .mega, .nav-item.open > .mega { width: auto; max-width: none; flex-direction: column; padding: 0 0 8px; }
  .mega-col { min-width: 0; padding: 8px 0; } .mega-feature { display: none !important; }
}
.btn, .menu-toggle, .nav-link { border-radius: 0 !important; }
