/* ============================================================================
   NotInMyCloud — bespoke design system (no framework, no CDN).
   Art direction: premium security/guardian. Deep navy, electric indigo,
   guardian teal. Space Grotesk (display) + Inter (body), self-hosted.
   WCAG AA verified token pairs in BOTH themes. Mobile-first, responsive.
   ========================================================================== */

/* ---- Reset ---------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
img, svg, picture { display: block; max-width: 100%; }
button, input, textarea, select { font: inherit; color: inherit; }
a { color: inherit; text-decoration: none; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 6px; }

/* ---- Design tokens : LIGHT (default) -------------------------------------- */
:root {
  --bg:        #F4F6FB;
  --bg-2:      #E9EEF8;
  --surface:   #FFFFFF;
  --surface-2: #EEF2FA;
  --border:    #D8E0EF;
  --border-2:  #C6D1E6;

  --heading:   #0F1526;   /* near-black navy */
  --text:      #333B52;   /* body ~11:1 on white */
  --muted:     #4E566E;   /* ~7.7:1 on white */

  --brand:     #4F46E5;   /* indigo — fills */
  --brand-2:   #7C3AED;   /* violet — gradient end */
  --link:      #4338CA;   /* indigo-700 text on light ~8.4:1 */
  --teal:      #0D9488;
  --teal-text: #0F766E;   /* teal-700 text on light ~5.5:1 */
  --amber:     #B45309;   /* amber-700 text on light ~5.1:1 */
  --danger:    #B91C1C;   /* sale ribbon — white text 5.9:1 */

  --grad-brand:  linear-gradient(120deg, #4F46E5 0%, #7C3AED 100%);
  --grad-teal:   linear-gradient(120deg, #0D9488 0%, #4F46E5 100%);
  --grad-hero:   radial-gradient(1200px 600px at 78% -10%, rgba(99,102,241,.18), transparent 60%),
                 radial-gradient(900px 500px at 8% 8%, rgba(13,148,136,.14), transparent 55%);
  --grad-band:   linear-gradient(125deg, #131A34 0%, #1E1B4B 45%, #0E2A3A 100%);

  --focus:     #4338CA;
  --shadow-sm: 0 1px 2px rgba(15,21,38,.06), 0 2px 8px rgba(15,21,38,.05);
  --shadow-md: 0 8px 24px rgba(15,21,38,.10), 0 2px 6px rgba(15,21,38,.06);
  --shadow-lg: 0 24px 60px rgba(15,21,38,.16), 0 8px 24px rgba(15,21,38,.10);
  --ring-glow: 0 0 0 1px rgba(79,70,229,.12);

  --header-bg: rgba(255,255,255,.82);
  --chip-bg:   #EEF2FA;
  --chip-ink:  #333B52;

  --maxw: 1200px;
  --radius: 18px;
  --radius-sm: 12px;
}

/* ---- Design tokens : DARK ------------------------------------------------- */
html[data-theme="dark"] {
  --bg:        #090D1A;
  --bg-2:      #0C1224;
  --surface:   #131A2E;
  --surface-2: #0F1728;
  --border:    #24304C;
  --border-2:  #2E3A5A;

  --heading:   #F3F6FC;
  --text:      #C7CFE0;   /* ~11:1 on #131A2E */
  --muted:     #96A0BC;   /* ~6.6:1 on #131A2E */

  --brand:     #6366F1;
  --brand-2:   #8B5CF6;
  --link:      #A5B4FC;   /* indigo-300 on dark — high contrast */
  --teal:      #2DD4BF;
  --teal-text: #5EEAD4;
  --amber:     #FBBF24;
  --danger:    #EF4444;

  --grad-brand:  linear-gradient(120deg, #4F46E5 0%, #7C3AED 100%);
  --grad-teal:   linear-gradient(120deg, #0D9488 0%, #4F46E5 100%);
  --grad-hero:   radial-gradient(1200px 600px at 78% -10%, rgba(99,102,241,.26), transparent 60%),
                 radial-gradient(900px 500px at 8% 8%, rgba(45,212,191,.14), transparent 55%);
  --grad-band:   linear-gradient(125deg, #10162B 0%, #1E1B4B 50%, #06222E 100%);

  --focus:     #A5B4FC;
  --shadow-sm: 0 1px 2px rgba(0,0,0,.4), 0 2px 10px rgba(0,0,0,.35);
  --shadow-md: 0 10px 30px rgba(0,0,0,.5), 0 2px 8px rgba(0,0,0,.4);
  --shadow-lg: 0 28px 70px rgba(0,0,0,.6), 0 10px 30px rgba(0,0,0,.5);
  --ring-glow: 0 0 0 1px rgba(129,140,248,.2);

  --header-bg: rgba(9,13,26,.72);
  --chip-bg:   #0F1728;
  --chip-ink:  #C7CFE0;
}

/* ---- Base ---------------------------------------------------------------- */
body {
  font-family: 'Inter', system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  font-size: 1.0625rem;         /* 17px */
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  transition: background-color .3s ease, color .25s ease;
}
h1, h2, h3, h4, .display {
  font-family: 'Space Grotesk', 'Inter', system-ui, sans-serif;
  color: var(--heading);
  line-height: 1.08;
  letter-spacing: -0.02em;
  font-weight: 700;
  overflow-wrap: break-word;
}
p { overflow-wrap: break-word; }
strong { color: var(--heading); font-weight: 600; }

/* ---- Layout -------------------------------------------------------------- */
.container { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: clamp(1.15rem, 4vw, 2.5rem); }
.section { padding-block: clamp(3.5rem, 7vw, 6.5rem); position: relative; }
.section--tight { padding-block: clamp(2.5rem, 5vw, 4rem); }
.eyebrow {
  display: inline-flex; align-items: center; gap: .5rem;
  font-family: 'Space Grotesk', sans-serif;
  font-size: .8125rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase;
  color: var(--teal-text);
}
.eyebrow::before { content: ""; width: 22px; height: 2px; background: currentColor; border-radius: 2px; display: inline-block; }
.section-head { max-width: 46rem; margin-inline: auto; text-align: center; margin-bottom: clamp(2rem, 4vw, 3.25rem); }
.section-head h2 { font-size: clamp(1.9rem, 1.35rem + 2.3vw, 2.95rem); margin-top: .75rem; }
.section-head p { margin-top: 1rem; font-size: clamp(1.05rem, 1rem + .35vw, 1.2rem); color: var(--muted); }

/* ---- Buttons ------------------------------------------------------------- */
.btn {
  --_pad-y: .82rem; --_pad-x: 1.5rem;
  display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
  font-family: 'Space Grotesk', sans-serif; font-weight: 600; font-size: 1rem;
  padding: var(--_pad-y) var(--_pad-x); border-radius: 999px; border: 1.5px solid transparent;
  cursor: pointer; text-align: center; line-height: 1.1;
  transition: transform .18s ease, box-shadow .22s ease, background-color .2s ease, border-color .2s ease, color .2s ease;
  will-change: transform;
}
.btn:active { transform: translateY(1px) scale(.99); }
.btn-primary { color: #fff; background: var(--grad-brand); box-shadow: 0 10px 24px -8px rgba(79,70,229,.6); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 16px 32px -10px rgba(79,70,229,.72); }
.btn-ghost { color: var(--link); background: transparent; border-color: var(--border-2); }
.btn-ghost:hover { border-color: var(--brand); background: color-mix(in srgb, var(--brand) 8%, transparent); transform: translateY(-2px); }
.btn-lg { --_pad-y: 1rem; --_pad-x: 2rem; font-size: 1.06rem; }
.btn-block { width: 100%; }

/* ---- Header / nav -------------------------------------------------------- */
.site-header {
  position: sticky; top: 0; z-index: 60;
  background: var(--header-bg); backdrop-filter: saturate(180%) blur(16px);
  -webkit-backdrop-filter: saturate(180%) blur(16px);
  border-bottom: 1px solid transparent; transition: border-color .3s ease, box-shadow .3s ease;
}
.site-header.scrolled { border-bottom-color: var(--border); box-shadow: var(--shadow-sm); }
.nav { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding-block: .85rem; }
.brand { display: inline-flex; align-items: center; gap: .6rem; font-family: 'Space Grotesk', sans-serif; font-weight: 700; font-size: 1.22rem; color: var(--heading); letter-spacing: -.01em; }
.brand .mark { width: 34px; height: 38px; flex: none; }
.brand b { color: var(--brand); font-weight: 700; }
html[data-theme="dark"] .brand b { color: var(--link); }
.nav-links { display: none; align-items: center; gap: .4rem; }
.nav-links a { padding: .5rem .8rem; border-radius: 10px; font-weight: 500; font-size: .98rem; color: var(--muted); transition: color .18s ease, background-color .18s ease; }
.nav-links a:hover { color: var(--heading); background: var(--surface-2); }
.nav-actions { display: flex; align-items: center; gap: .5rem; }

.theme-toggle {
  display: inline-flex; align-items: center; justify-content: center; gap: .4rem;
  height: 42px; padding-inline: .55rem; min-width: 42px;
  background: var(--surface); border: 1.5px solid var(--border-2); border-radius: 999px;
  color: var(--muted); cursor: pointer; font-size: .85rem; font-weight: 500; line-height: 1;
  transition: border-color .2s, color .2s, background-color .2s;
}
.theme-toggle:hover { border-color: var(--brand); color: var(--heading); }
.theme-toggle .toggle-icon { width: 1.15em; height: 1.15em; flex: none; }
.theme-toggle .toggle-label { display: none; }

.nav-cta { display: none; }

.hamburger {
  display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; border-radius: 12px; border: 1.5px solid var(--border-2);
  background: var(--surface); color: var(--heading); cursor: pointer;
}
.hamburger svg { width: 22px; height: 22px; }

/* mobile drawer */
.mobile-drawer {
  position: fixed; inset: 0 0 0 auto; width: min(84vw, 340px); z-index: 80;
  background: var(--surface); border-left: 1px solid var(--border);
  box-shadow: var(--shadow-lg);
  transform: translateX(100%); transition: transform .32s cubic-bezier(.4,0,.2,1);
  padding: 1.15rem; display: flex; flex-direction: column; gap: .35rem;
  overflow-y: auto;
}
.mobile-drawer.open { transform: translateX(0); }
.mobile-drawer .drawer-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: .75rem; }
.mobile-drawer a.drawer-link { padding: .85rem .9rem; border-radius: 12px; font-weight: 600; font-size: 1.05rem; color: var(--heading); }
.mobile-drawer a.drawer-link:hover { background: var(--surface-2); }
.mobile-drawer .btn { margin-top: .75rem; }
.drawer-close { width: 42px; height: 42px; border-radius: 10px; border: 1.5px solid var(--border-2); background: var(--surface); color: var(--heading); cursor: pointer; display: inline-flex; align-items: center; justify-content: center; }
.scrim { position: fixed; inset: 0; background: rgba(6,10,20,.55); backdrop-filter: blur(2px); z-index: 70; opacity: 0; visibility: hidden; transition: opacity .3s ease, visibility .3s ease; }
.scrim.open { opacity: 1; visibility: visible; }

/* ---- Hero ---------------------------------------------------------------- */
.hero { position: relative; overflow: hidden; padding-top: clamp(2.5rem, 6vw, 5rem); padding-bottom: clamp(3rem, 6vw, 5.5rem); background: var(--grad-hero), var(--bg); }
.hero-grid { display: grid; gap: clamp(2.5rem, 5vw, 4rem); align-items: center; }
.hero-copy { max-width: 40rem; }
.hero .kicker { color: var(--muted); }
.hero h1 { font-size: clamp(2.35rem, 1.5rem + 3.7vw, 4rem); margin: 1rem 0 1.15rem; }
.hero h1 .hl { background: var(--grad-brand); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; color: var(--brand); }
.hero-lead { font-size: clamp(1.1rem, 1rem + .6vw, 1.32rem); color: var(--text); max-width: 36rem; }
.hero-cta { display: flex; flex-wrap: wrap; gap: .85rem; margin-top: 1.9rem; }
.hero-note { margin-top: 1.1rem; font-size: .92rem; color: var(--muted); display: inline-flex; align-items: center; gap: .5rem; }
.hero-note svg { width: 1.05em; height: 1.05em; color: var(--teal-text); flex: none; }

/* hero visual (SVG guardian) */
.hero-visual { position: relative; display: grid; place-items: center; min-height: 320px; }
.hero-visual .shield-wrap { position: relative; width: min(100%, 420px); aspect-ratio: 1 / 1; }
.hero-visual svg.guardian { width: 100%; height: 100%; overflow: visible; }
.ring { transform-origin: 50% 50%; }
.ring-1 { animation: spin 40s linear infinite; }
.ring-2 { animation: spin 60s linear infinite reverse; }
.pulse-dot { animation: pulse 3.2s ease-in-out infinite; }
.pulse-dot.d2 { animation-delay: .8s; } .pulse-dot.d3 { animation-delay: 1.6s; } .pulse-dot.d4 { animation-delay: 2.4s; }
.float-chip { position: absolute; display: inline-flex; align-items: center; gap: .4rem; padding: .45rem .7rem; border-radius: 999px; font-size: .8125rem; font-weight: 600; font-family: 'Space Grotesk', sans-serif; background: var(--surface); color: var(--heading); border: 1px solid var(--border); box-shadow: var(--shadow-md); }
.float-chip .x { color: var(--danger); font-weight: 700; }
.float-chip.c1 { top: 6%; left: -4%; animation: floaty 6s ease-in-out infinite; }
.float-chip.c2 { top: 44%; right: -8%; animation: floaty 7s ease-in-out infinite .6s; }
.float-chip.c3 { bottom: 6%; left: 2%; animation: floaty 6.5s ease-in-out infinite 1.2s; }

@keyframes spin { to { transform: rotate(360deg); } }
@keyframes pulse { 0%,100% { opacity: .35; } 50% { opacity: 1; } }
@keyframes floaty { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }

/* ---- Trust strip --------------------------------------------------------- */
.trust { border-block: 1px solid var(--border); background: var(--surface); }
.trust-inner { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem 1.5rem; padding-block: 1.4rem; }
.trust-item { display: flex; align-items: center; gap: .7rem; font-weight: 600; font-size: .95rem; color: var(--heading); }
.trust-item svg { width: 1.5rem; height: 1.5rem; flex: none; color: var(--teal-text); }

/* ---- Feature / step / card grids ---------------------------------------- */
.grid { display: grid; gap: clamp(1rem, 2.4vw, 1.6rem); }
.grid-3 { grid-template-columns: 1fr; }
.grid-2 { grid-template-columns: 1fr; }

.card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: clamp(1.4rem, 2.4vw, 1.9rem); box-shadow: var(--shadow-sm);
  transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
  position: relative; overflow: hidden;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: var(--border-2); }
.card .ico { width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center; background: var(--surface-2); border: 1px solid var(--border); margin-bottom: 1.1rem; }
.card .ico svg { width: 26px; height: 26px; color: var(--brand); }
html[data-theme="dark"] .card .ico svg { color: var(--link); }
.card h3 { font-size: 1.24rem; margin-bottom: .55rem; }
.card p { color: var(--muted); font-size: 1rem; }

/* how it works (numbered) */
.steps { counter-reset: step; }
.step { position: relative; padding-left: 0; }
.step .num { display: inline-grid; place-items: center; width: 46px; height: 46px; border-radius: 14px; background: var(--grad-brand); color: #fff; font-family: 'Space Grotesk', sans-serif; font-weight: 700; font-size: 1.2rem; margin-bottom: 1rem; box-shadow: 0 8px 20px -8px rgba(79,70,229,.6); }
.step h3 { font-size: 1.22rem; margin-bottom: .5rem; }
.step p { color: var(--muted); }

/* ---- Problem section ----------------------------------------------------- */
.threats { background: var(--surface-2); }
.threat-grid { display: grid; grid-template-columns: 1fr; gap: 1rem; }
.threat { display: flex; gap: .9rem; align-items: flex-start; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 1.1rem 1.2rem; }
.threat .dot { width: 40px; height: 40px; border-radius: 11px; display: grid; place-items: center; flex: none; background: color-mix(in srgb, var(--danger) 12%, var(--surface)); }
.threat .dot svg { width: 22px; height: 22px; color: var(--danger); }
.threat h4 { font-size: 1.06rem; margin-bottom: .2rem; color: var(--heading); }
.threat p { color: var(--muted); font-size: .96rem; }

/* ---- Comparison ---------------------------------------------------------- */
.compare { display: grid; grid-template-columns: 1fr; gap: 1.25rem; }
.compare .col { border-radius: var(--radius); padding: clamp(1.5rem, 3vw, 2.1rem); border: 1px solid var(--border); }
.compare .col.self { background: var(--surface-2); }
.compare .col.hosted { background: var(--surface); box-shadow: var(--shadow-md); border-color: var(--border-2); position: relative; }
.compare .col h3 { font-size: 1.3rem; margin-bottom: .3rem; }
.compare .col .col-sub { color: var(--muted); font-size: .95rem; margin-bottom: 1.1rem; }
.compare ul { list-style: none; padding: 0; display: grid; gap: .7rem; }
.compare li { display: flex; gap: .65rem; align-items: flex-start; font-size: .98rem; color: var(--text); }
.compare li svg { width: 1.35rem; height: 1.35rem; flex: none; margin-top: .1rem; }
.compare li.yes svg { color: var(--teal-text); }
.compare li.no svg { color: var(--muted); }
.tag-best { position: absolute; top: -.8rem; right: 1.3rem; background: var(--grad-teal); color: #fff; font-family: 'Space Grotesk', sans-serif; font-size: .78rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; padding: .35rem .8rem; border-radius: 999px; box-shadow: var(--shadow-sm); }

/* ---- Pricing ------------------------------------------------------------- */
.pricing { background: var(--surface-2); }
.sale-banner { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: .6rem; max-width: 40rem; margin: 0 auto clamp(1.6rem, 3vw, 2.4rem); padding: .8rem 1.2rem; border-radius: 999px; background: var(--grad-band); color: #fff; text-align: center; box-shadow: var(--shadow-md); }
.sale-banner .spark { color: #FDE68A; }
.sale-banner b { color: #fff; font-family: 'Space Grotesk', sans-serif; letter-spacing: .02em; }
.plans { display: grid; grid-template-columns: 1fr; gap: 1.25rem; align-items: stretch; }
.plan { position: relative; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: clamp(1.5rem, 3vw, 2rem); box-shadow: var(--shadow-sm); display: flex; flex-direction: column; overflow: hidden; transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease; }
.plan:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.plan.featured { border-color: var(--brand); box-shadow: var(--shadow-lg); }
.plan.featured::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 4px; background: var(--grad-brand); }
.plan .plan-flag { position: absolute; top: 1.15rem; right: 1.15rem; font-family: 'Space Grotesk', sans-serif; font-size: .78rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: #fff; background: var(--grad-brand); padding: .3rem .65rem; border-radius: 999px; }
.plan .plan-name { font-family: 'Space Grotesk', sans-serif; font-weight: 700; font-size: 1.35rem; color: var(--heading); }
.plan .plan-term { color: var(--muted); font-size: .92rem; margin-bottom: 1rem; }
.price-row { display: flex; align-items: baseline; gap: .5rem; flex-wrap: wrap; }
.price-old { color: var(--muted); text-decoration: line-through; font-size: 1.05rem; }
.price-now { font-family: 'Space Grotesk', sans-serif; font-weight: 700; font-size: 2.6rem; color: var(--heading); line-height: 1; }
.price-per { color: var(--muted); font-size: .95rem; }
.price-save { display: inline-block; margin-top: .55rem; font-size: .85rem; font-weight: 600; color: var(--teal-text); background: color-mix(in srgb, var(--teal) 10%, var(--surface)); border: 1px solid color-mix(in srgb, var(--teal) 26%, transparent); padding: .22rem .6rem; border-radius: 999px; }
.plan ul.feat { list-style: none; padding: 0; margin: 1.3rem 0 1.5rem; display: grid; gap: .6rem; }
.plan ul.feat li { display: flex; gap: .55rem; align-items: flex-start; font-size: .96rem; color: var(--text); }
.plan ul.feat li svg { width: 1.2rem; height: 1.2rem; flex: none; margin-top: .18rem; color: var(--teal-text); }
.plan .btn { margin-top: auto; }
.plan-foot { text-align: center; color: var(--muted); font-size: .92rem; margin-top: 1.6rem; }

/* ---- FAQ ----------------------------------------------------------------- */
.faq-wrap { max-width: 52rem; margin-inline: auto; display: grid; gap: .8rem; }
.faq-item { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-sm); overflow: hidden; transition: border-color .2s ease, box-shadow .2s ease; }
.faq-item[open] { border-color: var(--border-2); box-shadow: var(--shadow-sm); }
.faq-item summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 1.1rem 1.25rem; font-family: 'Space Grotesk', sans-serif; font-weight: 600; font-size: 1.06rem; color: var(--heading); }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary .chev { width: 1.4rem; height: 1.4rem; flex: none; color: var(--muted); transition: transform .25s ease; }
.faq-item[open] summary .chev { transform: rotate(180deg); color: var(--brand); }
html[data-theme="dark"] .faq-item[open] summary .chev { color: var(--link); }
.faq-body { padding: 0 1.25rem 1.25rem; color: var(--muted); font-size: 1rem; line-height: 1.7; }
.faq-body a { color: var(--link); font-weight: 500; overflow-wrap: anywhere; word-break: break-word; text-decoration: underline; text-underline-offset: 2px; }
.faq-body p + p { margin-top: .7rem; }

/* ---- CTA band ------------------------------------------------------------ */
.cta-band { background: var(--grad-band); border-radius: clamp(20px, 4vw, 34px); padding: clamp(2.4rem, 5vw, 4rem); text-align: center; position: relative; overflow: hidden; box-shadow: var(--shadow-lg); }
.cta-band::after { content: ""; position: absolute; inset: 0; background: radial-gradient(600px 300px at 80% 0%, rgba(45,212,191,.22), transparent 60%); pointer-events: none; }
.cta-band h2 { color: #fff; font-size: clamp(1.8rem, 1.3rem + 2.2vw, 2.8rem); position: relative; }
.cta-band p { color: #D7DCF0; margin: .9rem auto 1.8rem; max-width: 34rem; position: relative; font-size: 1.1rem; }
.cta-band .btn-primary { position: relative; background: #fff; color: #3730A3; box-shadow: 0 12px 30px -10px rgba(0,0,0,.5); }
.cta-band .btn-primary:hover { background: #F5F3FF; }
.cta-band .cta-mini { position: relative; color: #C7CCE6; font-size: .9rem; margin-top: 1rem; }

/* ---- Footer -------------------------------------------------------------- */
.site-footer { background: var(--bg-2); border-top: 1px solid var(--border); padding-block: clamp(2.5rem, 4vw, 3.5rem) 2rem; }
.footer-grid { display: grid; grid-template-columns: 1fr; gap: 2rem; }
.footer-brand .brand { margin-bottom: .9rem; }
.footer-brand p { color: var(--muted); font-size: .95rem; max-width: 24rem; }
.footer-col h4 { font-family: 'Space Grotesk', sans-serif; font-size: .82rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin-bottom: .9rem; }
.footer-col a { display: block; padding: .3rem 0; color: var(--text); font-size: .97rem; }
.footer-col a:hover { color: var(--link); }
.footer-bottom { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem; margin-top: 2.5rem; padding-top: 1.5rem; border-top: 1px solid var(--border); }
.footer-bottom p { color: var(--muted); font-size: .9rem; }
.footer-badges { display: flex; flex-wrap: wrap; gap: .6rem; }
.badge { display: inline-flex; align-items: center; gap: .4rem; font-size: .82rem; font-weight: 600; color: var(--muted); background: var(--surface); border: 1px solid var(--border); border-radius: 999px; padding: .35rem .7rem; }
.badge svg { width: 1rem; height: 1rem; color: var(--teal-text); }

/* ---- Modal --------------------------------------------------------------- */
.modal { position: fixed; inset: 0; z-index: 100; display: none; place-items: center; padding: 1.25rem; background: rgba(6,10,20,.62); backdrop-filter: blur(4px); }
.modal.open { display: grid; }
.modal-card { background: var(--surface); border: 1px solid var(--border-2); border-radius: 20px; max-width: 30rem; width: 100%; padding: 2rem; text-align: center; box-shadow: var(--shadow-lg); position: relative; animation: pop .28s cubic-bezier(.34,1.56,.64,1); }
@keyframes pop { from { opacity: 0; transform: translateY(10px) scale(.97); } to { opacity: 1; transform: none; } }
.modal-card .mico { width: 60px; height: 60px; margin: 0 auto 1rem; border-radius: 16px; display: grid; place-items: center; background: var(--grad-brand); box-shadow: 0 12px 26px -10px rgba(79,70,229,.6); }
.modal-card .mico svg { width: 30px; height: 30px; color: #fff; }
.modal-card h3 { font-size: 1.4rem; margin-bottom: .6rem; }
.modal-card p { color: var(--muted); }
.modal-card .hl { color: var(--teal-text); font-weight: 600; }
.modal-close { position: absolute; top: .7rem; right: .7rem; width: 40px; height: 40px; border-radius: 10px; border: 1px solid var(--border); background: var(--surface); color: var(--muted); font-size: 1.4rem; line-height: 1; cursor: pointer; display: grid; place-items: center; }
.modal-close:hover { color: var(--heading); border-color: var(--border-2); }

/* ---- Back to top --------------------------------------------------------- */
.to-top { position: fixed; right: 1.2rem; bottom: 1.2rem; z-index: 55; width: 48px; height: 48px; border-radius: 14px; border: 1px solid var(--border-2); background: var(--surface); color: var(--heading); box-shadow: var(--shadow-md); cursor: pointer; display: grid; place-items: center; opacity: 0; visibility: hidden; transform: translateY(10px); transition: opacity .25s ease, transform .25s ease, visibility .25s ease; }
.to-top.show { opacity: 1; visibility: visible; transform: none; }
.to-top svg { width: 22px; height: 22px; }

/* ---- Utilities ----------------------------------------------------------- */
.skip-link { position: absolute; left: -9999px; top: 0; z-index: 200; background: var(--brand); color: #fff; padding: .7rem 1.1rem; border-radius: 0 0 10px 0; font-weight: 600; }
.skip-link:focus { left: 0; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.footer-mark { position: absolute; width: 0; height: 0; overflow: hidden; clip: rect(0 0 0 0); opacity: 0; pointer-events: none; }

/* reveal-on-scroll */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s ease, transform .7s cubic-bezier(.2,.7,.3,1); }
.reveal.in { opacity: 1; transform: none; }
.reveal.d1 { transition-delay: .08s; } .reveal.d2 { transition-delay: .16s; } .reveal.d3 { transition-delay: .24s; }

/* ---- Responsive ---------------------------------------------------------- */
@media (min-width: 560px) {
  .trust-inner { grid-template-columns: repeat(4, 1fr); }
  .theme-toggle .toggle-label { display: inline; }
}
@media (min-width: 720px) {
  .grid-2 { grid-template-columns: repeat(2, 1fr); }
  .threat-grid { grid-template-columns: repeat(2, 1fr); }
  .compare { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1.6fr 1fr 1fr; }
}
@media (min-width: 940px) {
  .nav-links { display: flex; }
  .nav-cta { display: inline-flex; }
  .hamburger { display: none; }
  .grid-3 { grid-template-columns: repeat(3, 1fr); }
  .plans { grid-template-columns: repeat(3, 1fr); }
  .hero-grid { grid-template-columns: 1.05fr .95fr; }
}

/* ---- Reduced motion ------------------------------------------------------ */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  .reveal { opacity: 1; transform: none; }
}
