/* =========================================================
   NestUp — website recreation
   Font: Bricolage Grotesque  ·  Tokens extracted from Figma
   Breakpoints: Mobile 1–799 · Tablet 800–1279 · Desktop 1280+
   ========================================================= */

/* ----------  Design tokens  ---------- */
:root {
  /* Colors */
  --blue: #0095f7;          /* Accent 1 — CTA / primary */
  --blue-dark: #0a78c8;
  --orange: #f26d21;        /* Accent 7 — brand orange */
  --orange-dark: #db5d16;
  --ink: #000000;           /* Headline */
  --body: #6f6f6f;          /* Paragraph */
  --bg: #ffffff;            /* Background 1 */
  --bg-soft: #f6f8fa;
  --blue-soft: #d7ecfd;     /* hero mockup backdrop */
  --blue-tint: #eaf5fe;     /* highlighted plan / soft fills */
  --border: #e7e7e7;        /* Divider */
  --card-shadow: 0 10px 40px rgba(15, 35, 70, .07);
  --card-shadow-sm: 0 4px 18px rgba(15, 35, 70, .06);

  /* Type scale (desktop) */
  --fs-display: clamp(2.6rem, 6.2vw, 4.5rem);   /* hero H1 */
  --fs-h2: clamp(1.9rem, 3.6vw, 2.6rem);        /* section titles ~40 */
  --fs-h2-5: clamp(1.5rem, 2.4vw, 2rem);        /* ~32 */
  --fs-h3: 1.18rem;                             /* card titles ~18 */
  --fs-lead: clamp(1rem, 1.3vw, 1.0625rem);
  --fs-body: 0.95rem;                           /* ~15 */
  --fs-link: 0.9375rem;                         /* ~15 nav */
  --fs-caption: 0.78rem;                        /* ~12-13 labels */

  /* Layout */
  --container: 1180px;
  --container-narrow: 920px;
  --pad-x: 24px;
  --radius: 18px;
  --radius-lg: 28px;
  --radius-pill: 999px;
  --section-y: clamp(64px, 9vw, 120px);
  --header-h: 76px;

  --font: "Bricolage Grotesque", "Segoe UI", system-ui, -apple-system, sans-serif;
}

/* ----------  Reset / base  ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--font);
  font-size: var(--fs-body);
  line-height: 1.6;
  color: var(--body);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }
ul { list-style: none; padding: 0; }

h1, h2, h3, h4 {
  color: var(--ink);
  line-height: 1.05;
  font-weight: 700;
  letter-spacing: -0.015em;
}

/* ----------  Layout helpers  ---------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--pad-x);
}

.section { padding-block: var(--section-y); }

.section-head { max-width: 860px; margin-inline: auto; text-align: center; }
.section-head.left { margin-inline: 0; text-align: left; }

.eyebrow {
  display: inline-block;
  color: var(--orange);
  font-size: var(--fs-caption);
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  margin-bottom: 18px;
}

.h2 { font-size: var(--fs-h2); }
.lead {
  font-size: var(--fs-lead);
  color: var(--body);
  margin-top: 18px;
  line-height: 1.6;
}
.section-head .lead { margin-inline: auto; max-width: 680px; }

/* ----------  Buttons  ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5em;
  font-weight: 600;
  font-size: var(--fs-link);
  padding: 14px 26px;
  border-radius: var(--radius-pill);
  border: 0;
  transition: transform .15s ease, background-color .2s ease, box-shadow .2s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn-blue { background: var(--blue); color: #fff; box-shadow: 0 8px 20px rgba(0,149,247,.28); }
.btn-blue:hover { background: var(--blue-dark); }
.btn-orange { background: var(--orange); color: #fff; box-shadow: 0 8px 20px rgba(242,109,33,.28); }
.btn-orange:hover { background: var(--orange-dark); }
.btn-ghost { background: #fff; color: var(--ink); border: 1px solid var(--border); }
.btn-ghost:hover { border-color: var(--blue); color: var(--blue); }

/* =========================================================
   HEADER
   ========================================================= */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255,255,255,.82);
  backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.site-header.scrolled { border-bottom-color: var(--border); box-shadow: 0 4px 24px rgba(0,0,0,.04); }

.nav {
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

/* Logo */
.logo { display: inline-flex; align-items: center; gap: 2px; font-weight: 800; font-size: 1.6rem; letter-spacing: -.02em; }
.logo .nest { color: var(--blue); }
.logo .up { color: var(--orange); }
.logo svg { margin-left: 2px; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 34px;
  margin-inline: auto;
}
.nav-links a {
  color: var(--ink);
  font-size: var(--fs-link);
  font-weight: 500;
  transition: color .2s ease;
}
.nav-links a:hover { color: var(--blue); }

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

.hamburger {
  display: none;
  background: none;
  border: 0;
  width: 44px; height: 44px;
  align-items: center; justify-content: center;
}
.hamburger span { position: relative; width: 22px; height: 2px; background: var(--ink); transition: .25s; }
.hamburger span::before, .hamburger span::after {
  content: ""; position: absolute; left: 0; width: 22px; height: 2px; background: var(--ink); transition: .25s;
}
.hamburger span::before { top: -7px; }
.hamburger span::after { top: 7px; }
.nav-open .hamburger span { background: transparent; }
.nav-open .hamburger span::before { top: 0; transform: rotate(45deg); }
.nav-open .hamburger span::after { top: 0; transform: rotate(-45deg); }

/* =========================================================
   HERO
   ========================================================= */
.hero { padding-top: clamp(48px, 7vw, 88px); text-align: center; overflow: visible; position: relative; }

/* Hero background video (full-bleed) + white overlay */
.hero-bg {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100vw;
  height: 100%;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
  background: #fff; /* evita flash scuro mentre il video carica */
}
.hero-bg video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, .7); /* overlay bianco ~70% */
}
.hero > *:not(.hero-bg) { position: relative; z-index: 1; }
.hero h1 {
  font-size: var(--fs-display);
  font-weight: 800;
  max-width: 14ch;
  margin-inline: auto;
  letter-spacing: -.03em;
  line-height: 1.02;
}
.hero .lead { max-width: 720px; margin: 26px auto 0; color: var(--ink); }
.hero .hero-cta { margin-top: 30px; }

/* Dashboard mockup */
.mockup-wrap {
  margin-top: clamp(40px, 6vw, 76px);
  position: relative;
  padding: clamp(28px, 5vw, 70px) clamp(16px, 4vw, 64px) 0;
  background: linear-gradient(180deg, var(--blue-soft), #eef6ff 70%, #fff);
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}
.mockup {
  max-width: 1040px;
  margin-inline: auto;
  background: #fff;
  border-radius: 16px 16px 0 0;
  box-shadow: 0 30px 80px rgba(15,35,70,.18);
  overflow: hidden;
  border: 1px solid #eef0f3;
  border-bottom: 0;
  text-align: left;
}
.mockup img { display: block; width: 100%; height: auto; }
.mock-bar {
  display: flex; align-items: center; gap: 16px;
  padding: 12px 18px; border-bottom: 1px solid #eef0f3; background:#fff;
}
.mock-tabs { display: flex; gap: 18px; font-size: .8rem; color: var(--body); font-weight:500; }
.mock-tabs .active { color: var(--ink); background: var(--bg-soft); padding: 5px 12px; border-radius: 8px; font-weight:600; }
.mock-search { margin-left: auto; width: clamp(120px, 28%, 280px); height: 30px; background: var(--bg-soft); border-radius: 8px; }
.mock-newlead { background: var(--blue); color:#fff; font-size:.74rem; font-weight:600; padding:7px 12px; border-radius:8px; }
.mock-body { padding: 22px; }
.mock-body h4 { font-size: 1.3rem; }
.mock-body .muted { font-size: .8rem; color: var(--body); margin-top: 2px; }
.mock-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-top: 18px; }
.mstat { border:1px solid #eef0f3; border-radius:12px; padding:13px 14px; background:#fff; }
.mstat-label { font-size:.66rem; color:var(--body); text-transform:none; }
.mstat-num { font-size:1.6rem; font-weight:700; color:var(--ink); margin-top:6px; }
.mstat-foot { font-size:.6rem; margin-top:4px; }
.mstat-foot.up { color:#16a34a; }
.mstat-foot.or { color:var(--orange); }
.mock-charts { display:grid; grid-template-columns: 1.6fr 1fr; gap:14px; margin-top:14px; }
.mchart { border:1px solid #eef0f3; border-radius:12px; padding:14px; }
.mchart h5 { font-size:.8rem; color:var(--ink); }
.mchart .muted { font-size:.66rem; }
.mchart svg { width:100%; height:auto; margin-top:10px; }

/* =========================================================
   PROBLEM
   ========================================================= */
.cards-3 { display:grid; grid-template-columns: repeat(3,1fr); gap:24px; margin-top:54px; }
.pain-card {
  background:#fff; border:1px solid var(--border); border-radius:var(--radius);
  padding:30px 26px; box-shadow:var(--card-shadow-sm); text-align:left;
}
.icon-badge {
  width:52px; height:52px; border-radius:14px; display:flex; align-items:center; justify-content:center;
  background: linear-gradient(135deg, #ffe7d6, #ffd2b3); color:var(--orange); margin-bottom:18px;
}
.icon-badge svg { width:26px; height:26px; }
.pain-card h3 { font-size:var(--fs-h3); margin-bottom:8px; }
.pain-card p { font-size:var(--fs-body); }

.statement {
  text-align:center; margin-top:54px;
  font-size: var(--fs-h2-5); font-weight:700; color:var(--blue);
  letter-spacing:-.02em; line-height:1.15;
}

/* Photo band */
.photo-band {
  margin-block: clamp(48px, 7vw, 96px);
}
.photo {
  border-radius: var(--radius-lg);
  overflow:hidden;
  aspect-ratio: 16 / 7;
  background:
    radial-gradient(120% 140% at 20% 10%, #fbe9da 0%, transparent 45%),
    linear-gradient(120deg, #cfd6dd, #aab3bd 45%, #d7dde3);
  position:relative;
}
.photo.alt {
  background:
    radial-gradient(120% 120% at 80% 20%, #ffe3cf 0%, transparent 40%),
    linear-gradient(120deg, #c4cdd6, #9aa6b2 50%, #cdd5dd);
}
.photo::after {
  content:""; position:absolute; inset:0;
  background: linear-gradient(180deg, transparent 60%, rgba(0,0,0,.06));
}

/* =========================================================
   PROCESS (6 steps)
   ========================================================= */
.steps { display:grid; grid-template-columns: repeat(3,1fr); gap:26px 30px; margin-top:54px; }
.step { text-align:left; }
.step-num { font-size:2.6rem; font-weight:800; color:var(--blue); line-height:1; letter-spacing:-.04em; }
.step h3 { font-size:var(--fs-h3); margin:14px 0 8px; }
.step p { font-size:var(--fs-body); }
.center-cta { display:flex; justify-content:center; margin-top:52px; }

/* =========================================================
   FEATURE CARDS (Funzionalità principali)
   ========================================================= */
.feature-grid { display:grid; grid-template-columns: repeat(3,1fr); gap:24px; margin-top:54px; }
.feature-card {
  background:#fff; border:1px solid var(--border); border-radius:var(--radius);
  padding:30px 26px; box-shadow:var(--card-shadow-sm); text-align:center;
}
.feature-card .illu { margin:0 auto 18px; }
.feature-card h3 { font-size:var(--fs-h3); margin-bottom:14px; }
.feature-card ul { display:grid; gap:10px; text-align:left; }
.feature-card li { font-size:var(--fs-body); position:relative; padding-left:22px; }
.feature-card li::before {
  content:""; position:absolute; left:0; top:8px; width:8px; height:8px; border-radius:3px;
  background:var(--orange);
}

/* Isometric-ish illustration tile */
.illu {
  width:96px; height:96px; border-radius:20px;
  display:flex; align-items:center; justify-content:center;
  background: linear-gradient(145deg, var(--blue-tint), #fff);
  border:1px solid var(--border);
  box-shadow: var(--card-shadow-sm);
}
.illu svg { width:48px; height:48px; }
.illu.blue { color: var(--blue); }
.illu.orange { color: var(--orange); }

/* =========================================================
   Immagini reali — proporzioni corrette (no distorsione)
   ========================================================= */
.logo-img { height: 30px; width: auto; }
.icon-badge img { width: 30px; height: 30px; object-fit: contain; }
.illu-img { width: 132px; height: 132px; object-fit: contain; margin: 0 auto 18px; }
.illu-img.grow { width: 154px; height: 154px; margin-bottom: 20px; }
.split-visual img { width: 100%; height: 100%; object-fit: contain; }
.photo img { width: 100%; height: 100%; object-fit: cover; }
.cta-image img { width: 100%; height: 100%; object-fit: cover; }
.footer-logo-img { height: 26px; width: auto; }

/* =========================================================
   PIÙ CHE UN GESTIONALE (split)
   ========================================================= */
.split { display:grid; grid-template-columns: 1fr 1fr; gap:60px; align-items:center; }
.split-list { display:grid; gap:26px; margin-top:36px; }
.adv { display:flex; gap:18px; }
.adv .n { color:var(--blue); font-weight:800; font-size:1.1rem; min-width:26px; }
.adv h3 { font-size:var(--fs-h3); margin-bottom:6px; }
.adv p { font-size:var(--fs-body); }
.split-visual {
  border-radius: var(--radius-lg);
  background: linear-gradient(160deg, var(--blue-tint), #fff);
  border:1px solid var(--border);
  aspect-ratio: 1/1;
  display:flex; align-items:center; justify-content:center;
  box-shadow: var(--card-shadow);
}
.split-visual svg { width:55%; height:auto; }

/* =========================================================
   NESTUP CRESCE (3 cards w/ illustration)
   ========================================================= */
.grow-grid { display:grid; grid-template-columns: repeat(3,1fr); gap:24px; margin-top:54px; }
.grow-card {
  background:#fff; border:1px solid var(--border); border-radius:var(--radius);
  padding:34px 26px; box-shadow:var(--card-shadow-sm); text-align:center;
}
.grow-card .illu { margin:0 auto 20px; width:120px; height:120px; }
.grow-card .illu svg { width:60px; height:60px; }
.grow-card h3 { font-size:var(--fs-h2-5); margin-bottom:10px; }
.grow-card p { font-size:var(--fs-body); }

/* =========================================================
   PRICING
   ========================================================= */
.pricing-grid { display:grid; grid-template-columns: repeat(3,1fr); gap:24px; margin-top:54px; align-items:start; }
.plan {
  border:1px solid var(--border); border-radius:var(--radius-lg); overflow:hidden;
  background:#fff; box-shadow:var(--card-shadow-sm);
}
.plan.featured { box-shadow:var(--card-shadow); transform: translateY(-8px); border-color:var(--blue); }
.plan-head { padding:20px; text-align:center; color:#fff; font-weight:700; font-size:1.15rem; }
.plan.base .plan-head { background:linear-gradient(135deg,#39a7f4,#6cc0f8); }
.plan.pro  .plan-head { background:linear-gradient(135deg,var(--blue),#2a86e0); }
.plan.net  .plan-head { background:linear-gradient(135deg,var(--orange),#f59048); }
.plan-body { padding:24px 24px 30px; }
.plan-desc { font-size:var(--fs-body); text-align:center; min-height:60px; }
.plan ul { display:grid; gap:14px; margin-top:18px; }
.plan li { font-size:var(--fs-body); color:var(--ink); display:flex; gap:10px; align-items:flex-start; }
.plan li svg { width:18px; height:18px; flex:0 0 auto; color:var(--blue); margin-top:2px; }
.plan.featured { background: var(--blue-tint); }
.pricing-foot { text-align:center; margin-top:40px; }
.pricing-foot .price { font-size:.95rem; color:var(--body); margin-bottom:18px; }
.pricing-foot .price b { color:var(--ink); }

/* =========================================================
   FINAL CTA
   ========================================================= */
.cta-final .badges { display:flex; gap:26px; flex-wrap:wrap; margin-top:18px; }
.cta-final .badge { display:flex; align-items:center; gap:8px; font-size:var(--fs-body); color:var(--ink); font-weight:500; }
.cta-final .badge svg { width:18px; height:18px; color:#16a34a; }
.cta-image {
  margin-top:40px; border-radius:var(--radius-lg); overflow:hidden;
  aspect-ratio: 16/8;
  background:
    radial-gradient(140% 120% at 70% 10%, #eef3f8, transparent 50%),
    linear-gradient(135deg, #dfe5ec, #c3ccd6 60%, #e9edf2);
  position:relative;
  display:flex; align-items:center; justify-content:center;
}
.cta-image .geo { width:60%; opacity:.9; }
.cta-final .center-cta { margin-top:36px; }

/* =========================================================
   CONTACT
   ========================================================= */
.contact-form {
  max-width:560px; margin:48px auto 0; display:grid; gap:20px;
}
.field { display:grid; gap:8px; text-align:left; }
.field label { font-size:.82rem; color:var(--ink); font-weight:600; }
.field label .req { color:var(--orange); }
.field input, .field select {
  font-family:inherit; font-size:.92rem; color:var(--ink);
  padding:13px 15px; border:1px solid var(--border); border-radius:12px; background:#fff;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.field input::placeholder { color:#aeb4bb; }
.field input:focus, .field select:focus { outline:none; border-color:var(--blue); box-shadow:0 0 0 3px rgba(0,149,247,.12); }
.contact-form .btn { width:100%; margin-top:6px; }
.contact-form .btn:disabled { opacity:.7; cursor:default; transform:none; }
.hp-field { position:absolute !important; left:-9999px; width:1px; height:1px; opacity:0; pointer-events:none; }
.form-status { margin:6px 0 0; text-align:center; font-size:.9rem; min-height:1.2em; }
.form-status.ok { color:#16a34a; }
.form-status.err { color:#e02424; }

/* =========================================================
   FOOTER
   ========================================================= */
.site-footer { border-top:1px solid var(--border); padding-block:40px; }
.footer-top { display:flex; gap:28px; flex-wrap:wrap; }
.footer-top a { font-size:var(--fs-link); color:var(--ink); font-weight:500; }
.footer-top a:hover { color:var(--blue); }
.footer-bottom { display:flex; align-items:center; gap:18px; margin-top:28px; flex-wrap:wrap; }
.footer-logo { font-weight:800; font-size:1.2rem; color:var(--ink); }
.footer-logo .lab { color:var(--blue); }
.footer-bottom .copy { font-size:.8rem; color:var(--body); }
.footer-bottom .copy a { color:inherit; text-decoration:none; }
.footer-bottom .copy a:hover { color:var(--blue); text-decoration:underline; }
a.footer-logo { display:inline-flex; align-items:center; transition:opacity .2s ease; }
a.footer-logo:hover { opacity:.75; }

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 1279px) {
  :root { --container: 940px; }
  .split { gap:40px; }
}

@media (max-width: 799px) {
  :root { --header-h: 64px; --section-y: clamp(52px, 11vw, 72px); }

  .nav-links {
    position: fixed; inset: var(--header-h) 0 auto 0;
    background:#fff; flex-direction:column; gap:4px;
    padding:18px var(--pad-x) 28px; margin:0;
    border-bottom:1px solid var(--border);
    box-shadow:0 20px 40px rgba(0,0,0,.08);
    transform: translateY(-130%); transition: transform .3s ease; visibility:hidden;
  }
  .nav-links a { width:100%; padding:14px 4px; font-size:1.05rem; border-bottom:1px solid var(--bg-soft); }
  .nav-open .nav-links { transform: translateY(0); visibility:visible; }
  .hamburger { display:flex; }
  .nav-actions .btn-orange { display:none; }
  .nav-open .nav-links .mobile-demo { display:inline-flex; margin-top:14px; }

  .cards-3,
  .steps,
  .feature-grid,
  .grow-grid,
  .pricing-grid { grid-template-columns: 1fr; }

  .split { grid-template-columns: 1fr; gap:32px; }
  .split-visual { aspect-ratio: 16/10; order:-1; }
  .section-head.left, .split .section-head { text-align:center; }
  .split-list { max-width:520px; margin-inline:auto; }

  .plan.featured { transform:none; }

  .mock-stats { grid-template-columns: repeat(2,1fr); }
  .mock-charts { grid-template-columns: 1fr; }
  .mock-tabs { display:none; }

  .photo { aspect-ratio: 4/3; }
  .footer-top { gap:16px 22px; }
}

@media (min-width: 800px) {
  .nav-links .mobile-demo { display:none; }
}

/* =========================================================
   FAQ (accordion nativo)
   ========================================================= */
.faq { max-width: 820px; margin: 48px auto 0; }
.faq-item { border-bottom: 1px solid var(--border); }
.faq-item:first-child { border-top: 1px solid var(--border); }
.faq-item summary {
  cursor: pointer;
  list-style: none;
  padding: 22px 4px;
  font-weight: 600;
  font-size: 1.05rem;
  color: var(--ink);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+";
  color: var(--blue);
  font-size: 1.5rem;
  line-height: 1;
  flex: 0 0 auto;
  transition: transform .2s ease;
}
.faq-item[open] summary::after { content: "−"; }
.faq-item p {
  margin: 0;
  padding: 0 4px 24px;
  color: var(--body);
  font-size: var(--fs-body);
  max-width: 72ch;
}

/* =========================================================
   Pagina legale (Privacy / Cookie Policy)
   ========================================================= */
.legal { max-width: 860px; }
.legal h1 { margin-bottom: 6px; }
.legal-meta { color: var(--body); font-size: .9rem; margin-bottom: 28px; }
.legal h2 { font-size: 1.4rem; margin: 36px 0 10px; }
.legal h3 { font-size: 1.1rem; margin: 22px 0 8px; color: var(--ink); }
.legal p, .legal li { color: var(--body); font-size: .98rem; line-height: 1.7; }
.legal ul { padding-left: 20px; list-style: disc; margin: 8px 0; }
.legal li { margin-bottom: 6px; }
.legal a { color: var(--blue); text-decoration: underline; }
.legal-sep { border: 0; border-top: 1px solid var(--border); margin: 44px 0; }
.legal-table { width: 100%; border-collapse: collapse; margin: 16px 0; font-size: .88rem; }
.legal-table th, .legal-table td { border: 1px solid var(--border); padding: 10px 12px; text-align: left; color: var(--body); }
.legal-table th { background: var(--bg-soft); color: var(--ink); font-weight: 600; }
.legal code { background: var(--bg-soft); padding: 2px 6px; border-radius: 5px; font-size: .85em; }

/* =========================================================
   Cookie consent — banner + modale
   ========================================================= */
.cc-banner { position: fixed; left: 0; right: 0; bottom: 0; z-index: 200; padding: 16px; display: flex; justify-content: center; pointer-events: none; }
.cc-card { pointer-events: auto; width: 100%; max-width: 1080px; background: #fff; border: 1px solid var(--border); box-shadow: 0 20px 60px rgba(15,35,70,.18); border-radius: 16px; padding: 18px 22px; display: flex; align-items: center; gap: 22px; flex-wrap: wrap; animation: cc-up .35s ease both; }
@keyframes cc-up { from { transform: translateY(24px); opacity: 0; } to { transform: none; opacity: 1; } }
.cc-text { font-size: .9rem; color: var(--body); margin: 0; flex: 1 1 320px; }
.cc-text a { color: var(--blue); }
.cc-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.cc-btn { font-family: inherit; font-weight: 600; font-size: .9rem; padding: 11px 20px; border-radius: 999px; border: 1px solid var(--border); background: #fff; color: var(--ink); cursor: pointer; transition: transform .15s ease, background-color .2s ease, border-color .2s ease, color .2s ease; }
.cc-btn:hover { transform: translateY(-1px); }
.cc-ghost:hover { border-color: var(--blue); color: var(--blue); }
.cc-primary { background: var(--blue); color: #fff; border-color: var(--blue); }
.cc-primary:hover { background: var(--blue-dark); }

.cc-modal { position: fixed; inset: 0; z-index: 210; display: none; align-items: center; justify-content: center; padding: 18px; }
.cc-modal.cc-in { display: flex; }
.cc-overlay { position: absolute; inset: 0; background: rgba(10,20,40,.45); }
.cc-dialog { position: relative; background: #fff; border-radius: 18px; max-width: 560px; width: 100%; max-height: 88vh; overflow: auto; padding: 28px; box-shadow: 0 30px 80px rgba(0,0,0,.3); }
.cc-dialog h3 { font-size: 1.4rem; margin: 0 0 6px; }
.cc-sub { font-size: .9rem; color: var(--body); margin: 0 0 18px; }
.cc-sub a { color: var(--blue); }
.cc-cats { display: grid; gap: 14px; margin-bottom: 22px; }
.cc-cat { display: flex; gap: 14px; align-items: flex-start; border: 1px solid var(--border); border-radius: 12px; padding: 14px; }
.cc-cat strong { color: var(--ink); font-size: .98rem; }
.cc-cat p { font-size: .82rem; color: var(--body); margin: 4px 0 0; line-height: 1.5; }
.cc-switch { position: relative; display: inline-block; width: 44px; height: 26px; flex: 0 0 auto; margin-top: 2px; }
.cc-switch input { opacity: 0; width: 0; height: 0; }
.cc-slider { position: absolute; inset: 0; background: #cdd3da; border-radius: 999px; transition: .2s; cursor: pointer; }
.cc-slider::before { content: ""; position: absolute; height: 20px; width: 20px; left: 3px; top: 3px; background: #fff; border-radius: 50%; transition: .2s; }
.cc-switch input:checked + .cc-slider { background: var(--blue); }
.cc-switch input:checked + .cc-slider::before { transform: translateX(18px); }
.cc-switch input:disabled + .cc-slider { background: #9fb6c9; cursor: default; }
@media (max-width: 620px) {
  .cc-card { padding: 16px; }
  .cc-actions { width: 100%; }
  .cc-actions .cc-btn { flex: 1 1 auto; }
}

/* Reveal-on-scroll */
.reveal { opacity:0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity:1; transform:none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity:1; transform:none; transition:none; }
  html { scroll-behavior:auto; }
}
