/* ============================================================
   ISSULOGIX Books — marketing site
   Follows DESIGN_SYSTEM_RULES.md: CSS variables only, Apple
   aesthetic (squircles, glass, soft shadows), fluid type,
   reduced-motion safe. Brand palette from PROMPT.md.
   ============================================================ */

:root {
  /* Brand — accent matched to the ISSULOGIX Books logo (indigo→azure
     interlinked-rings gradient). Navy stays as the dark neutral. */
  --color-primary:      #0D1B2A;   /* deep navy (dark neutral) */
  --color-primary-rgb:  13, 27, 42;
  --color-accent:       #5B7CE0;   /* logo indigo (solid accent) */
  --color-accent-rgb:   91, 124, 224;
  --color-accent-2:     #7BA8F0;   /* logo azure (gradient end) */
  --color-danger:       #E63946;

  /* Neutrals */
  --color-bg:           #F5F0EB;   /* warm off-white */
  --color-bg-card:      #FFFFFF;
  --color-bg-alt:       #ECE6DE;
  --color-text:         #1A1A2E;
  --color-text-muted:   #5A5F6E;
  --color-text-rgb:     26, 26, 46;
  --color-text-inverse: #F5F0EB;

  /* Glass */
  --glass-bg-light:     rgba(255, 255, 255, 0.72);
  --glass-border-light: rgba(255, 255, 255, 0.55);

  /* Shadows */
  --shadow-sm:   0 1px 4px rgba(13,27,42,0.06), 0 2px 8px rgba(13,27,42,0.04);
  --shadow-md:   0 4px 16px rgba(13,27,42,0.08), 0 8px 32px rgba(13,27,42,0.06);
  --shadow-lg:   0 8px 32px rgba(13,27,42,0.12), 0 24px 64px rgba(13,27,42,0.08);
  --shadow-float:0 16px 64px rgba(13,27,42,0.18), 0 4px 16px rgba(13,27,42,0.12);

  /* Easing */
  --ease-smooth: cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --ease-out:    cubic-bezier(0.16, 1, 0.3, 1);

  /* Type scale (fluid) */
  --text-display: clamp(2.5rem, 6vw, 5rem);
  --text-h1:      clamp(2rem, 4.5vw, 3.5rem);
  --text-h2:      clamp(1.6rem, 3.2vw, 2.6rem);
  --text-h3:      clamp(1.15rem, 2vw, 1.4rem);
  --text-body:    clamp(1rem, 1.1vw, 1.125rem);

  --font-display: 'Plus Jakarta Sans', system-ui, sans-serif;
  --font-body:    'DM Sans', system-ui, sans-serif;
  --font-mono:    'DM Mono', ui-monospace, monospace;

  --radius:   18px;
  --radius-lg:28px;
  --maxw:     1200px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --color-bg:           #0A0F18;
    --color-bg-card:      #111827;
    --color-bg-alt:       #0E1420;
    --color-text:         #F5F0EB;
    --color-text-rgb:     245, 240, 235;
    --color-text-muted:   #9AA0AE;
    --glass-bg-light:     rgba(20, 28, 42, 0.62);
    --glass-border-light: rgba(255, 255, 255, 0.10);
  }
}

/* ─── Reset / 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: var(--text-body);
  line-height: 1.7;
  color: var(--color-text);
  background: var(--color-bg);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
h1, h2, h3 { font-family: var(--font-display); line-height: 1.12; letter-spacing: -0.02em; margin: 0; }
p { margin: 0; }
a { color: inherit; text-decoration: none; }
img, svg { max-width: 100%; display: block; }
button { font-family: inherit; cursor: pointer; }

.container { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: clamp(1.1rem, 4vw, 3rem); }
@media (min-width: 1536px) { :root { --maxw: 1320px; } }

.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;
}
.skip-link:focus {
  position: fixed; top: 12px; left: 12px; width: auto; height: auto; z-index: 10000;
  clip: auto; padding: 10px 16px; background: var(--color-primary);
  color: #fff; border-radius: 10px;
}
.grad-text {
  background: linear-gradient(100deg, var(--color-accent), var(--color-accent-2));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}

/* ─── Scroll progress bar ──────────────────────────────────── */
#scroll-progress-bar {
  position: fixed; top: 0; left: 0; width: 0%; height: 3px;
  background: linear-gradient(90deg, var(--color-accent), var(--color-accent-2), var(--color-accent));
  z-index: 9999; transition: width 0.1s linear, opacity 0.3s ease; opacity: 0;
  border-radius: 0 2px 2px 0; box-shadow: 0 0 8px rgba(var(--color-accent-rgb), 0.6);
}
#scroll-progress-bar.visible { opacity: 1; }

/* ─── Buttons ──────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  font-family: var(--font-display); font-weight: 600; font-size: .98rem;
  padding: .72rem 1.4rem; border-radius: 999px; border: 1px solid transparent;
  min-height: 46px; transition: transform .35s var(--ease-spring), box-shadow .35s var(--ease-smooth), background .25s, color .25s;
  white-space: nowrap;
}
.btn-lg { padding: .95rem 1.9rem; font-size: 1.05rem; min-height: 54px; }
.btn-block { width: 100%; }
.btn-primary { background: linear-gradient(120deg, var(--color-accent), var(--color-accent-2)); color: #ffffff; box-shadow: 0 8px 24px rgba(var(--color-accent-rgb),0.35); }
.btn-ghost { background: transparent; color: var(--color-text); border-color: rgba(var(--color-text-rgb), 0.18); }
@media (hover: hover) {
  .btn-primary:hover { transform: translateY(-2px) scale(1.02); box-shadow: 0 12px 32px rgba(var(--color-accent-rgb),0.45); }
  .btn-ghost:hover { border-color: var(--color-accent); color: var(--color-accent); transform: translateY(-2px); }
}
.btn:focus-visible { outline: 3px solid rgba(var(--color-accent-rgb),0.5); outline-offset: 2px; }

.glass {
  background: var(--glass-bg-light);
  -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px);
  border: 1px solid var(--glass-border-light);
  box-shadow: var(--shadow-md);
}
.eyebrow {
  display: inline-block; font-family: var(--font-display); font-weight: 600;
  font-size: .8rem; letter-spacing: .14em; text-transform: uppercase;
  color: var(--color-accent); margin-bottom: .9rem;
}

/* ─── Navbar ───────────────────────────────────────────────── */
.navbar { position: sticky; top: 0; z-index: 1000; transition: background .4s var(--ease-smooth), box-shadow .4s, backdrop-filter .4s; }
.navbar.scrolled {
  background: var(--glass-bg-light);
  -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px);
  box-shadow: var(--shadow-sm); border-bottom: 1px solid var(--glass-border-light);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; height: 80px; }
.brand { display: inline-flex; align-items: center; gap: .6rem; font-family: var(--font-display); }
.brand-mark { border-radius: 9px; flex-shrink: 0; }
/* The logo PNG is a full lockup (rings + wordmark). Used standalone in the
   nav + footer — no separate text span beside it. object-fit keeps the
   392×308 aspect ratio crisp at any height. */
.brand-logo-only { gap: 0; }
.brand-lockup { width: auto; height: 52px; object-fit: contain; }
.brand-lockup-footer { height: 64px; }
.brand-text { font-weight: 600; font-size: 1.05rem; letter-spacing: -0.01em; }
.brand-text strong { font-weight: 800; }
.nav-menu { display: flex; align-items: center; gap: 1.6rem; }
.nav-menu > a:not(.btn) { font-family: var(--font-display); font-weight: 500; font-size: .95rem; color: var(--color-text); transition: color .2s; }
.nav-menu > a:not(.btn):hover { color: var(--color-accent); }
.nav-toggle { display: none; flex-direction: column; gap: 5px; width: 44px; height: 44px; align-items: center; justify-content: center; background: transparent; border: 0; }
.nav-toggle span { width: 22px; height: 2px; background: var(--color-text); border-radius: 2px; transition: transform .3s, opacity .3s; }

@media (max-width: 1023px) {
  .nav-toggle { display: flex; }
  .nav-menu {
    position: fixed; inset: 80px 0 auto 0; flex-direction: column; align-items: stretch;
    gap: .4rem; padding: 1.2rem clamp(1.1rem,4vw,3rem) 1.8rem;
    background: var(--glass-bg-light); -webkit-backdrop-filter: blur(22px); backdrop-filter: blur(22px);
    border-bottom: 1px solid var(--glass-border-light); box-shadow: var(--shadow-md);
    transform: translateY(-12px); opacity: 0; pointer-events: none; transition: opacity .3s, transform .3s;
  }
  .nav-menu.open { transform: translateY(0); opacity: 1; pointer-events: auto; }
  .nav-menu > a:not(.btn) { padding: .7rem .2rem; border-bottom: 1px solid rgba(var(--color-text-rgb),0.07); }
  .nav-menu .btn { margin-top: .4rem; }
  .nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
}

/* ─── Hero ─────────────────────────────────────────────────── */
.hero { position: relative; overflow: hidden; padding: clamp(3rem, 8vw, 6rem) 0 clamp(3.5rem, 9vw, 7rem); }
.hero-bg {
  position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(60% 50% at 15% 10%, rgba(var(--color-accent-rgb),0.16), transparent 70%),
    radial-gradient(55% 50% at 95% 25%, rgba(var(--color-primary-rgb),0.10), transparent 70%);
}
/* Monst-style organic blob behind the hero art + a faint dot pattern, for a
   richer SaaS feel without changing any content. Decorative + aria-hidden. */
.hero-bg::before {
  content: ""; position: absolute; top: -8%; right: -6%;
  width: 46vw; height: 46vw; max-width: 640px; max-height: 640px;
  background: radial-gradient(circle at 30% 30%, rgba(var(--color-accent-rgb),0.22), rgba(var(--color-accent-rgb),0.05) 60%, transparent 72%);
  border-radius: 42% 58% 63% 37% / 41% 44% 56% 59%;
  filter: blur(6px); animation: blobFloat 14s var(--ease-smooth) infinite alternate;
}
.hero-bg::after {
  content: ""; position: absolute; bottom: 6%; left: 4%;
  width: 180px; height: 180px; opacity: .5;
  background-image: radial-gradient(rgba(var(--color-accent-rgb),0.35) 1.5px, transparent 1.6px);
  background-size: 16px 16px;
}
@keyframes blobFloat {
  from { transform: translateY(0) rotate(0deg); border-radius: 42% 58% 63% 37% / 41% 44% 56% 59%; }
  to   { transform: translateY(-18px) rotate(8deg); border-radius: 58% 42% 38% 62% / 55% 38% 62% 45%; }
}
@media (prefers-reduced-motion: reduce) { .hero-bg::before { animation: none; } }
.hero-inner { display: grid; grid-template-columns: 1fr; gap: clamp(2.5rem, 5vw, 4rem); align-items: center; }
@media (min-width: 1024px) { .hero-inner { grid-template-columns: 1.05fr 0.95fr; } }
.hero-copy h1 { font-size: var(--text-display); font-weight: 800; margin: 0 0 1.1rem; }
.hero-sub { font-size: clamp(1.05rem, 1.4vw, 1.25rem); color: var(--color-text-muted); max-width: 38ch; margin-bottom: 1.8rem; }
.hero-cta { display: flex; flex-wrap: wrap; gap: .8rem; margin-bottom: 1.6rem; }
.hero-trust { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: .4rem 1.4rem; color: var(--color-text-muted); font-weight: 500; font-size: .95rem; }
.hero-trust li { color: var(--color-text); }

.hero-art { position: relative; min-height: 320px; }
.hero-card { border-radius: var(--radius-lg); padding: 1.5rem 1.6rem; }
.hero-card .hc-row { display: flex; justify-content: space-between; align-items: center; }
.hc-head { font-family: var(--font-display); font-weight: 800; letter-spacing: .04em; color: var(--color-primary); margin-bottom: 1rem; }
.hc-pill { font-size: .7rem; font-weight: 700; letter-spacing: .08em; background: rgba(var(--color-accent-rgb),0.16); color: #3a52b0; padding: .25rem .7rem; border-radius: 999px; }
.hc-line { display: flex; justify-content: space-between; font-size: .95rem; color: var(--color-text-muted); padding: .42rem 0; border-bottom: 1px dashed rgba(var(--color-text-rgb),0.1); }
.hc-line.hc-vat { color: var(--color-text); }
.hc-total { margin-top: .9rem; font-family: var(--font-display); font-weight: 800; font-size: 1.2rem; color: var(--color-primary); }
.hero-card-2 { position: absolute; right: -4%; bottom: -8%; width: 60%; min-width: 220px; padding: 1.2rem 1.3rem; }
.hc-mini { font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; color: var(--color-text-muted); }
.hc-big { font-family: var(--font-display); font-weight: 800; font-size: 1.5rem; color: var(--color-primary); margin: .2rem 0 .9rem; }
.hc-bars { display: flex; align-items: flex-end; gap: 6px; height: 54px; }
.hc-bars i { flex: 1; height: var(--h); background: linear-gradient(var(--color-accent), var(--color-accent-2)); border-radius: 4px 4px 0 0; }
@media (max-width: 1023px) { .hero-art { display: none; } }

/* ─── Trust strip ──────────────────────────────────────────── */
.strip { border-block: 1px solid rgba(var(--color-text-rgb),0.08); background: var(--color-bg-alt); }
.strip-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: .6rem 1rem; padding: 1.1rem 0; font-family: var(--font-display); }
.strip-inner span:first-child { color: var(--color-text-muted); font-size: .9rem; }
.strip-inner strong { font-weight: 700; }
.strip-inner .dot { color: var(--color-accent); }

/* ─── Sections ─────────────────────────────────────────────── */
.section { padding: clamp(3.5rem, 8vw, 8rem) 0; }
.section-alt { background: var(--color-bg-alt); position: relative; overflow: hidden; }
/* Monst-style faint gradient blob drifting behind alternating sections. */
.section-alt::before {
  content: ""; position: absolute; z-index: 0; pointer-events: none;
  top: -120px; left: -120px; width: 380px; height: 380px;
  background: radial-gradient(circle, rgba(var(--color-accent-rgb),0.10), transparent 70%);
  border-radius: 50%;
}
.section-alt > .container { position: relative; z-index: 1; }
.section-head { max-width: 640px; margin: 0 auto clamp(2.2rem, 4vw, 3.5rem); text-align: center; }
.section-head h2 { font-size: var(--text-h2); font-weight: 800; margin-bottom: .9rem; }
.section-head p { color: var(--color-text-muted); font-size: 1.08rem; }

/* Card grid */
.card-grid { display: grid; gap: clamp(1rem, 2.4vw, 1.6rem); grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); }
.feature-card { border-radius: var(--radius); padding: clamp(1.4rem, 2.2vw, 1.9rem); transition: transform .4s var(--ease-smooth), box-shadow .4s; }
.feature-card .fc-icon { font-size: 1.9rem; margin-bottom: .9rem; }
.feature-card h3 { font-size: var(--text-h3); font-weight: 700; margin-bottom: .5rem; }
.feature-card p { color: var(--color-text-muted); font-size: .98rem; }
@media (hover: hover) { .feature-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); } }

/* Steps */
.steps { display: flex; flex-direction: column; gap: 1rem; align-items: stretch; }
@media (min-width: 900px) { .steps { flex-direction: row; align-items: stretch; justify-content: center; gap: .5rem; } }
.step { flex: 1; background: var(--color-bg-card); border: 1px solid rgba(var(--color-text-rgb),0.08); border-radius: var(--radius); padding: 1.8rem; box-shadow: var(--shadow-sm); }
.step-num { display: inline-flex; align-items: center; justify-content: center; width: 42px; height: 42px; border-radius: 12px; background: var(--color-primary); color: #fff; font-family: var(--font-display); font-weight: 800; margin-bottom: 1rem; }
.step h3 { font-size: var(--text-h3); font-weight: 700; margin-bottom: .4rem; }
.step p { color: var(--color-text-muted); font-size: .96rem; }
.step-arrow { display: none; align-items: center; color: var(--color-accent); font-size: 1.6rem; font-weight: 700; }
@media (min-width: 900px) { .step-arrow { display: flex; } }

/* Security */
.security-grid { display: grid; gap: clamp(2rem, 4vw, 3.5rem); align-items: center; grid-template-columns: 1fr; }
@media (min-width: 1024px) { .security-grid { grid-template-columns: 1.1fr .9fr; } }
.security-copy h2 { font-size: var(--text-h2); font-weight: 800; margin-bottom: 1rem; }
.security-copy > p { color: var(--color-text-muted); margin-bottom: 1.4rem; }
.check-list { list-style: none; padding: 0; margin: 0; display: grid; gap: .9rem; }
.check-list li { position: relative; padding-left: 2rem; color: var(--color-text-muted); font-size: .98rem; }
.check-list li::before { content: "✓"; position: absolute; left: 0; top: 0; width: 1.4rem; height: 1.4rem; display: grid; place-items: center; background: rgba(var(--color-accent-rgb),0.16); color: #3a52b0; border-radius: 7px; font-weight: 800; font-size: .8rem; }
.check-list strong { color: var(--color-text); }
.security-art { border-radius: var(--radius-lg); padding: 1.8rem; font-family: var(--font-mono); }
.sa-row { display: flex; align-items: center; gap: .7rem; padding: .6rem 0; border-bottom: 1px solid rgba(var(--color-text-rgb),0.08); font-size: .92rem; }
.sa-dot { width: 10px; height: 10px; border-radius: 50%; flex-shrink: 0; }
.sa-dot.ok { background: var(--color-accent); box-shadow: 0 0 8px rgba(var(--color-accent-rgb),0.7); }
.sa-dot.warn { background: #F59E0B; }
.sa-key { margin-top: 1rem; font-size: .76rem; color: var(--color-text-muted); letter-spacing: .04em; }

/* Pricing */
.billing-toggle { display: inline-flex; gap: .25rem; padding: .3rem; border-radius: 999px; background: var(--color-bg-card); border: 1px solid rgba(var(--color-text-rgb),0.1); margin: 0 auto clamp(2rem,3vw,2.6rem); width: fit-content; box-shadow: var(--shadow-sm); }
.billing-toggle { display: flex; justify-content: center; }
.bt-opt { background: transparent; border: 0; border-radius: 999px; padding: .6rem 1.3rem; min-height: 44px; font-family: var(--font-display); font-weight: 600; font-size: .92rem; color: var(--color-text-muted); cursor: pointer; touch-action: manipulation; -webkit-tap-highlight-color: transparent; transition: background .25s, color .25s; }
.bt-opt.active { background: var(--color-primary); color: #fff; }
.bt-opt .save { font-size: .72rem; color: var(--color-accent); margin-left: .3rem; }
.bt-opt.active .save { color: var(--color-accent-2); }

.pricing-grid { display: grid; gap: clamp(1rem, 2vw, 1.4rem); grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr)); align-items: stretch; }
.price-card { position: relative; border-radius: var(--radius-lg); padding: 1.9rem 1.6rem; display: flex; flex-direction: column; }
.price-card.featured { border: 2px solid var(--color-accent); box-shadow: 0 16px 48px rgba(var(--color-accent-rgb),0.22); }
.pc-badge { position: absolute; top: -13px; left: 50%; transform: translateX(-50%); background: var(--color-accent); color: #ffffff; font-family: var(--font-display); font-weight: 700; font-size: .72rem; letter-spacing: .06em; text-transform: uppercase; padding: .3rem .9rem; border-radius: 999px; }
.price-card h3 { font-size: 1.3rem; font-weight: 800; }
.pc-desc { color: var(--color-text-muted); font-size: .9rem; margin: .3rem 0 1.1rem; min-height: 2.6em; }
.pc-price { display: flex; align-items: baseline; gap: .15rem; font-family: var(--font-display); color: var(--color-primary); }
.pc-price .cur { font-size: 1.3rem; font-weight: 700; }
.pc-price .amt, .pc-price .amt-text { font-size: 2.8rem; font-weight: 800; line-height: 1; }
.pc-price .amt-text { font-size: 2rem; }
.pc-price .per { color: var(--color-text-muted); font-size: 1rem; font-weight: 500; }
.pc-note { color: var(--color-text-muted); font-size: .82rem; min-height: 1.2em; margin: .3rem 0 1.2rem; }
/* Offline/Online plan toggle: hidden grid must beat .pricing-grid's display:grid. */
.pricing-grid[hidden] { display: none; }
.plan-intro { text-align: center; color: var(--color-text-muted); font-size: .9rem; margin: .2rem auto 1.4rem; max-width: 640px; }
.pc-host { margin: -.8rem 0 1.1rem; font-size: .82rem; font-weight: 700; color: var(--color-primary); }
.pc-host .muted { color: var(--color-text-muted); font-weight: 400; }

/* Perpetual (Offline PC) cards — the one-time prices are longer and the
   Enterprise "Custom" is tall, so keep the price row + host line from colliding
   with the negative-margin default above. Scoped so vendor/self cards are untouched. */
#perpetualGrid .pc-price { flex-wrap: wrap; }
#perpetualGrid .pc-price .amt { font-size: 2.15rem; }
#perpetualGrid .pc-price .per { width: 100%; white-space: nowrap; font-size: .82rem; margin-top: .1rem; }
#perpetualGrid .pc-host { margin-top: .3rem; line-height: 1.35; }
#perpetualGrid .pc-price .amt-text { line-height: 1.1; }
.price-card ul { list-style: none; padding: 0; margin: 0 0 1.5rem; display: grid; gap: .6rem; flex: 1; }
.price-card ul li { position: relative; padding-left: 1.6rem; font-size: .94rem; color: var(--color-text-muted); }
.price-card ul li::before { content: "✓"; position: absolute; left: 0; color: var(--color-accent); font-weight: 800; }
.guarantee { text-align: center; margin-top: clamp(1.8rem,3vw,2.6rem); color: var(--color-text-muted); font-weight: 500; }

/* FAQ */
.faq-wrap { max-width: 820px; }
.faq-list { display: grid; gap: .8rem; }
.faq-item { background: var(--color-bg-card); border: 1px solid rgba(var(--color-text-rgb),0.09); border-radius: var(--radius); padding: .3rem 1.3rem; box-shadow: var(--shadow-sm); }
.faq-item summary { list-style: none; cursor: pointer; padding: 1.05rem 2rem 1.05rem 0; font-family: var(--font-display); font-weight: 600; font-size: 1.04rem; position: relative; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; position: absolute; right: .1rem; top: 50%; transform: translateY(-50%); font-size: 1.5rem; color: var(--color-accent); transition: transform .3s; }
.faq-item[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq-item p { color: var(--color-text-muted); padding-bottom: 1.1rem; font-size: .97rem; }

/* CTA */
.section-cta { padding-bottom: clamp(4rem,9vw,8rem); }
.cta-inner { max-width: 720px; margin: 0 auto; text-align: center; border-radius: var(--radius-lg); padding: clamp(2rem, 4vw, 3.2rem); }
.cta-inner h2 { font-size: var(--text-h2); font-weight: 800; margin-bottom: .8rem; }
.cta-inner > p { color: var(--color-text-muted); margin-bottom: 1.8rem; }
.cta-form { text-align: left; }
.cf-grid { display: grid; gap: .8rem; grid-template-columns: 1fr; margin-bottom: .8rem; }
@media (min-width: 640px) { .cf-grid { grid-template-columns: 1fr 1fr; } }
/* Fields that should span the full width of the request-form grid (e.g. the
   Plan dropdown) so the grid never leaves a lonely empty cell. */
.cf-grid .cf-full { grid-column: 1 / -1; }

/* Hero + contact brochure download links */
.hero-brochure { margin-top: 1rem; }
.hero-brochure a { font-size: .95rem; font-weight: 600; color: var(--color-accent, #3a5fb0);
  text-decoration: none; border-bottom: 1px solid transparent; transition: border-color .2s; }
.hero-brochure a:hover { border-bottom-color: currentColor; }
.cf-brochure { margin-top: 1rem; text-align: center; font-size: .95rem; }
.cf-brochure a { font-weight: 600; color: var(--color-accent, #3a5fb0); text-decoration: none; }
.cf-brochure a:hover { text-decoration: underline; }

/* Footer — vendor logo */
.footer-vendor { margin-top: 1.1rem; }
.footer-vendor span { display: block; font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; opacity: .55; margin-bottom: .45rem; }
.footer-vendor img { height: auto; max-width: 150px; opacity: .9; }

/* Footer — authorised agents */
.footer-agents { margin-top: 2rem; padding-top: 1.5rem; border-top: 1px solid rgba(255,255,255,.10); }
.footer-agents h3 { font-size: .78rem; letter-spacing: .12em; text-transform: uppercase; opacity: .7; margin-bottom: 1rem; }
.footer-agents .fa-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; }
@media (max-width: 640px) { .footer-agents .fa-grid { grid-template-columns: 1fr; } }
.footer-agents .fa strong { display: block; font-size: .95rem; margin-bottom: .25rem; }
.footer-agents .fa span { display: block; font-size: .85rem; opacity: .72; line-height: 1.5; }
.footer-agents .fa a { display: inline-block; margin-top: .3rem; font-size: .88rem; font-weight: 600;
  color: var(--color-accent, #7c9be0); text-decoration: none; }
.footer-agents .fa a:hover { text-decoration: underline; }
.form-input {
  width: 100%; min-height: 52px; font-size: 1rem; font-family: var(--font-body);
  padding: .85rem 1rem; border: 1px solid rgba(var(--color-text-rgb),0.16);
  border-radius: 12px; background: var(--color-bg-card); color: var(--color-text);
  transition: border-color .2s, box-shadow .2s; -webkit-appearance: none; appearance: none;
}
textarea.form-input { min-height: auto; resize: vertical; }
.form-input:focus { outline: none; border-color: var(--color-accent); box-shadow: 0 0 0 3px rgba(var(--color-accent-rgb),0.2); }
.cta-form .btn { margin-top: .8rem; }
.cf-status { text-align: center; margin-top: .9rem; font-weight: 500; min-height: 1.2em; }
.cf-status.ok { color: #3a52b0; }
.cf-status.err { color: var(--color-danger); }

/* ─── Footer ───────────────────────────────────────────────── */
.footer { background: var(--color-primary); color: var(--color-text-inverse); padding-top: clamp(3rem,6vw,4.5rem); }
.footer .brand-text, .footer-tag, .footer-col a, .footer-col h3, .footer-nap, .footer-bottom { color: var(--color-text-inverse); }
.footer-grid { display: grid; gap: 2rem; grid-template-columns: 1fr; padding-bottom: 2.5rem; }
@media (min-width: 640px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1024px) { .footer-grid { grid-template-columns: 1.6fr 1fr 1fr 1.2fr; } }
.footer-tag { color: rgba(245,240,235,0.7); font-size: .95rem; margin-top: 1rem; max-width: 32ch; }
.footer-col h3 { font-family: var(--font-display); font-size: .95rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; margin-bottom: 1rem; color: rgba(245,240,235,0.55); }
.footer-col a { display: block; padding: .35rem 0; color: rgba(245,240,235,0.85); font-size: .95rem; transition: color .2s; }
.footer-col a:hover { color: var(--color-accent); }
.footer-nap { font-style: normal; display: grid; gap: .35rem; color: rgba(245,240,235,0.85); font-size: .95rem; }
.footer-nap a:hover { color: var(--color-accent); }
.footer-bottom { display: flex; flex-wrap: wrap; gap: 1rem; justify-content: space-between; align-items: center; padding: 1.5rem 0 calc(1.5rem + env(safe-area-inset-bottom, 0px)); border-top: 1px solid rgba(245,240,235,0.14); font-size: .88rem; color: rgba(245,240,235,0.7); }
.footer-legal { display: flex; gap: 1.4rem; }
.footer-legal a { color: rgba(245,240,235,0.7); }
.footer-legal a:hover { color: var(--color-accent); }

/* ─── Floating UI ──────────────────────────────────────────── */
#whatsapp-float {
  position: fixed; bottom: max(1.25rem, env(safe-area-inset-bottom,1.25rem)); right: max(1.25rem, env(safe-area-inset-right,1.25rem));
  width: 56px; height: 56px; border-radius: 18px; background: #25D366; color: #fff;
  display: grid; place-items: center; z-index: 900; box-shadow: var(--shadow-float);
  transition: transform .3s var(--ease-spring);
}
#whatsapp-float::after { content: ""; position: absolute; inset: 0; border-radius: 18px; box-shadow: 0 0 0 0 rgba(37,211,102,0.5); animation: waPulse 2.4s infinite; }
@keyframes waPulse { 0% { box-shadow: 0 0 0 0 rgba(37,211,102,0.5);} 70%{ box-shadow:0 0 0 16px rgba(37,211,102,0);} 100%{box-shadow:0 0 0 0 rgba(37,211,102,0);} }
@media (hover: hover) { #whatsapp-float:hover { transform: scale(1.08); } }
.whatsapp-tooltip { position: absolute; right: 70px; background: var(--color-primary); color: #fff; padding: .45rem .8rem; border-radius: 10px; font-size: .82rem; white-space: nowrap; opacity: 0; transform: translateX(8px); transition: opacity .25s, transform .25s; pointer-events: none; }
@media (hover: hover) { #whatsapp-float:hover .whatsapp-tooltip { opacity: 1; transform: translateX(0); } }

#scroll-to-top {
  position: fixed; bottom: calc(1.25rem + 56px + 16px + env(safe-area-inset-bottom,0px)); right: max(1.25rem, env(safe-area-inset-right,1.25rem));
  width: 48px; height: 48px; border-radius: 14px; background: var(--color-bg-card); color: var(--color-text);
  border: 1px solid var(--glass-border-light); box-shadow: var(--shadow-float); z-index: 800;
  opacity: 0; transform: translateY(16px) scale(.9); transition: opacity .35s var(--ease-smooth), transform .35s var(--ease-smooth); pointer-events: none;
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); display: grid; place-items: center;
}
#scroll-to-top.visible { opacity: 1; transform: translateY(0) scale(1); pointer-events: auto; }

/* ─── Motion: page enter + scroll reveal ───────────────────── */
.page-enter { opacity: 0; transform: translateY(20px); animation: pageEnter .7s var(--ease-out) forwards; }
.page-enter-delay-1 { animation-delay: .1s; }
.page-enter-delay-2 { animation-delay: .22s; }
.page-enter-delay-3 { animation-delay: .36s; }
@keyframes pageEnter { to { opacity: 1; transform: translateY(0); } }

[data-reveal] { opacity: 0; transform: translateY(32px); transition: opacity .65s var(--ease-out), transform .65s var(--ease-out); }
[data-reveal="left"]  { transform: translateX(-32px); }
[data-reveal="right"] { transform: translateX(32px); }
[data-reveal="scale"] { transform: scale(.94); }

/* Narrow screens: slide-in-from-the-side would push the page 32px wider than the
   viewport until the element reveals, letting the page scroll sideways. Same
   animation, vertical only — no horizontal overflow to clip. */
@media (max-width: 720px) {
  [data-reveal="left"], [data-reveal="right"] { transform: translateY(32px); }
}
[data-reveal].revealed { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
  html { scroll-behavior: auto; }
  [data-reveal], .page-enter { opacity: 1 !important; transform: none !important; }
  #whatsapp-float::after { animation: none; }
}
