/* ==========================================================================
   ELYS — Design System
   Palette: Deep Teal (sostenibilità) · Sky Freedom (libertà) · Solar Amber (energia)
   Font: Sora (titoli) · Inter (testo)
   ========================================================================== */

:root {
  /* Colori primari */
  --teal: #0E6B5C;
  --teal-dark: #0A5246;
  --sky: #3BA9E0;
  --sky-dark: #2B8CC0;
  --amber: #F5B82E;
  --amber-dark: #E0A41A;

  /* Neutri */
  --ink: #0F1F1C;
  --slate: #4A5A57;
  --mist: #EEF5F2;
  --white: #FFFFFF;

  /* Dark mode */
  --bg: #0B1614;
  --surface: #13221F;
  --primary: #3FD3A6;
  --text: #E6F0ED;
  --text-secondary: #9FB8B0;

  /* Gradiente hero: dalla terra al cielo */
  --grad-hero: linear-gradient(135deg, #0E6B5C 0%, #2E8B77 45%, #3BA9E0 100%);
  --grad-teal: linear-gradient(135deg, #0E6B5C 0%, #12876F 100%);

  /* Font */
  --font-head: "Sora", system-ui, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, sans-serif;

  /* Layout */
  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 12px 40px rgba(15, 31, 28, 0.10);
  --shadow-lg: 0 24px 60px rgba(15, 31, 28, 0.16);
  --maxw: 1160px;

  /* Transizioni tema */
  --transition: 0.25s ease;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  transition: background var(--transition), color var(--transition);
}
img, svg { max-width: 100%; display: block; }
a { color: var(--teal); text-decoration: none; }
a:hover { color: var(--teal-dark); }
h1, h2, h3, h4 { font-family: var(--font-head); line-height: 1.15; font-weight: 700; color: var(--ink); }
button { font-family: var(--font-body); cursor: pointer; border: none; background: none; }
input, select, textarea { font-family: var(--font-body); font-size: 16px; }

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

/* ---------- Dark mode ---------- */
html[data-theme="dark"] body { background: var(--bg); color: var(--text); }
html[data-theme="dark"] h1, html[data-theme="dark"] h2,
html[data-theme="dark"] h3, html[data-theme="dark"] h4 { color: var(--text); }
html[data-theme="dark"] a { color: var(--primary); }
html[data-theme="dark"] a:hover { color: #6be0bb; }

/* ---------- Bottoni ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 13px 26px; border-radius: 999px; font-weight: 600; font-size: 15px;
  transition: transform var(--transition), box-shadow var(--transition), background var(--transition);
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn-primary {
  background: var(--amber); color: var(--ink);
  box-shadow: 0 6px 20px rgba(245, 184, 46, 0.35);
}
.btn-primary:hover { background: var(--amber-dark); color: var(--ink); transform: translateY(-1px); }
.btn-teal { background: var(--teal); color: #fff; }
.btn-teal:hover { background: var(--teal-dark); color: #fff; transform: translateY(-1px); }
.btn-ghost {
  background: transparent; color: var(--teal);
  border: 1.5px solid var(--teal);
}
html[data-theme="dark"] .btn-ghost { color: var(--primary); border-color: var(--primary); }
.btn-ghost:hover { background: var(--teal); color: #fff; }
html[data-theme="dark"] .btn-ghost:hover { background: var(--primary); color: var(--bg); }
.btn-lg { padding: 16px 34px; font-size: 16px; }
.btn-sm { padding: 9px 18px; font-size: 14px; }

/* ---------- Navbar ---------- */
.nav {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255, 255, 255, 0.85); backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(14, 107, 92, 0.08);
  transition: background var(--transition), border-color var(--transition);
}
html[data-theme="dark"] .nav { background: rgba(11, 22, 20, 0.85); border-bottom-color: rgba(63, 211, 166, 0.12); }
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.logo { display: flex; align-items: center; gap: 10px; font-family: var(--font-head); font-weight: 800; font-size: 22px; color: var(--ink); }
html[data-theme="dark"] .logo { color: var(--text); }
.logo svg { width: 32px; height: 32px; }
.logo span { letter-spacing: 0.02em; }
.logo em { font-style: normal; color: var(--teal); }
html[data-theme="dark"] .logo em { color: var(--primary); }
.nav-links { display: flex; align-items: center; gap: 28px; list-style: none; }
.nav-links a { color: var(--slate); font-weight: 500; font-size: 15px; }
html[data-theme="dark"] .nav-links a { color: var(--text-secondary); }
.nav-links a:hover { color: var(--teal); }
html[data-theme="dark"] .nav-links a:hover { color: var(--primary); }
.nav-actions { display: flex; align-items: center; gap: 12px; }
.theme-toggle {
  width: 40px; height: 40px; border-radius: 50%;
  display: grid; place-items: center; font-size: 18px;
  background: var(--mist); color: var(--slate);
  transition: background var(--transition), color var(--transition);
}
html[data-theme="dark"] .theme-toggle { background: var(--surface); color: var(--text); }
.nav-burger { display: none; width: 40px; height: 40px; font-size: 20px; color: var(--ink); }
html[data-theme="dark"] .nav-burger { color: var(--text); }

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden;
  background: var(--grad-hero); color: #fff;
  padding: 88px 0 100px;
}
.hero::after {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(900px 400px at 80% -10%, rgba(255,255,255,0.18), transparent 60%);
  pointer-events: none;
}
.hero-grid { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 48px; align-items: center; position: relative; z-index: 1; }
.hero-eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(255,255,255,0.14); border: 1px solid rgba(255,255,255,0.25);
  padding: 6px 16px; border-radius: 999px; font-size: 13px; font-weight: 600; letter-spacing: 0.04em;
  text-transform: uppercase;
}
.hero h1 { color: #fff; font-size: clamp(34px, 5.2vw, 56px); font-weight: 800; margin: 22px 0 18px; letter-spacing: -0.02em; }
.hero p.lead { color: rgba(255,255,255,0.92); font-size: 19px; max-width: 520px; margin-bottom: 30px; }
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; align-items: center; }
.hero .btn-ghost { color: #fff; border-color: rgba(255,255,255,0.55); }
.hero .btn-ghost:hover { background: rgba(255,255,255,0.14); color: #fff; }
.hero-stats { display: flex; gap: 34px; margin-top: 40px; }
.hero-stat .num { font-family: var(--font-head); font-weight: 800; font-size: 30px; color: #fff; }
.hero-stat .lbl { font-size: 13px; color: rgba(255,255,255,0.8); }
.hero-art { display: flex; justify-content: center; }
.hero-art svg { width: 100%; max-width: 480px; height: auto; filter: drop-shadow(0 20px 40px rgba(0,0,0,0.18)); }

/* ---------- Sezioni ---------- */
.section { padding: 84px 0; }
.section-mist { background: var(--mist); }
html[data-theme="dark"] .section-mist { background: var(--surface); }
.section-head { max-width: 660px; margin: 0 auto 52px; text-align: center; }
.section-head h2 { font-size: clamp(26px, 3.4vw, 38px); letter-spacing: -0.01em; margin-bottom: 14px; }
.section-head p { color: var(--slate); font-size: 17px; }
html[data-theme="dark"] .section-head p { color: var(--text-secondary); }
.eyebrow {
  display: inline-block; color: var(--teal); font-weight: 700; font-size: 13px;
  letter-spacing: 0.08em; text-transform: uppercase; margin-bottom: 10px;
}
html[data-theme="dark"] .eyebrow { color: var(--primary); }

/* ---------- Grid e card ---------- */
.grid { display: grid; gap: 24px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.card {
  background: var(--white); border: 1px solid rgba(14, 107, 92, 0.10);
  border-radius: var(--radius); padding: 30px;
  box-shadow: var(--shadow);
  transition: transform var(--transition), box-shadow var(--transition);
}
html[data-theme="dark"] .card { background: var(--surface); border-color: rgba(63, 211, 166, 0.10); }
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.card .icon { width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center; font-size: 24px; margin-bottom: 18px; }
.icon-teal { background: rgba(14, 107, 92, 0.12); }
.icon-sky { background: rgba(59, 169, 224, 0.14); }
.icon-amber { background: rgba(245, 184, 46, 0.18); }
.card h3 { font-size: 19px; margin-bottom: 10px; }
.card p { color: var(--slate); font-size: 15px; }
html[data-theme="dark"] .card p { color: var(--text-secondary); }

/* ---------- Passi (come funziona) ---------- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; counter-reset: step; }
.step { position: relative; padding: 30px 26px; background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow); }
html[data-theme="dark"] .step { background: var(--surface); }
.step .n {
  width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center;
  background: var(--grad-teal); color: #fff; font-family: var(--font-head); font-weight: 700; margin-bottom: 16px;
}
.step h3 { font-size: 17px; margin-bottom: 8px; }
.step p { color: var(--slate); font-size: 14px; }
html[data-theme="dark"] .step p { color: var(--text-secondary); }

/* ---------- Configuratore ---------- */
.config-layout { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 40px; align-items: start; }
.config-panel { padding: 36px; }
.config-panel h3 { font-size: 20px; margin-bottom: 6px; }
.config-panel .sub { color: var(--slate); font-size: 14px; margin-bottom: 24px; }
html[data-theme="dark"] .config-panel .sub { color: var(--text-secondary); }

.plant-select { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-bottom: 28px; }
.plant-opt {
  border: 1.5px solid rgba(14, 107, 92, 0.16); border-radius: var(--radius-sm);
  padding: 16px 12px; text-align: center; background: var(--white);
  transition: border-color var(--transition), background var(--transition);
}
html[data-theme="dark"] .plant-opt { background: var(--surface); border-color: rgba(63, 211, 166, 0.16); }
.plant-opt .em { font-size: 26px; display: block; margin-bottom: 6px; }
.plant-opt .nm { font-weight: 600; font-size: 14px; color: var(--ink); }
html[data-theme="dark"] .plant-opt .nm { color: var(--text); }
.plant-opt .ds { font-size: 11.5px; color: var(--slate); line-height: 1.35; margin-top: 4px; display: block; }
html[data-theme="dark"] .plant-opt .ds { color: var(--text-secondary); }
.plant-opt.active { border-color: var(--teal); background: rgba(14, 107, 92, 0.06); }
html[data-theme="dark"] .plant-opt.active { border-color: var(--primary); background: rgba(63, 211, 166, 0.08); }

.range-wrap { margin-bottom: 28px; }
.range-label { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 14px; }
.range-label .k { font-weight: 600; color: var(--ink); }
html[data-theme="dark"] .range-label .k { color: var(--text); }
.range-label .v { font-family: var(--font-head); font-weight: 800; font-size: 26px; color: var(--teal); }
html[data-theme="dark"] .range-label .v { color: var(--primary); }
input[type="range"] { width: 100%; -webkit-appearance: none; height: 8px; border-radius: 999px; background: var(--mist); outline: none; }
html[data-theme="dark"] input[type="range"] { background: var(--surface); }
input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none; width: 26px; height: 26px; border-radius: 50%;
  background: var(--amber); border: 3px solid #fff; box-shadow: 0 3px 10px rgba(0,0,0,0.2); cursor: pointer;
}
.range-ticks { display: flex; justify-content: space-between; font-size: 12px; color: var(--slate); margin-top: 8px; }
html[data-theme="dark"] .range-ticks { color: var(--text-secondary); }

.field { margin-bottom: 20px; }
.field label { display: block; font-weight: 600; font-size: 14px; margin-bottom: 7px; color: var(--ink); }
html[data-theme="dark"] .field label { color: var(--text); }
.field input, .field select, .field textarea {
  width: 100%; padding: 13px 16px; border-radius: var(--radius-sm);
  border: 1.5px solid rgba(14, 107, 92, 0.18); background: var(--white);
  color: var(--ink); font-size: 15px; transition: border-color var(--transition);
}
html[data-theme="dark"] .field input, html[data-theme="dark"] .field select,
html[data-theme="dark"] .field textarea { background: var(--surface); border-color: rgba(63, 211, 166, 0.18); color: var(--text); }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--teal); }
html[data-theme="dark"] .field input:focus, html[data-theme="dark"] .field select:focus,
html[data-theme="dark"] .field textarea:focus { border-color: var(--primary); }
.field .hint { font-size: 12px; color: var(--slate); margin-top: 5px; }
html[data-theme="dark"] .field .hint { color: var(--text-secondary); }

/* Riepilogo stima */
.estimate { position: sticky; top: 92px; padding: 32px; background: var(--grad-teal); color: #fff; border-radius: var(--radius); box-shadow: var(--shadow-lg); }
.estimate h3 { color: #fff; font-size: 18px; margin-bottom: 20px; }
.est-row { display: flex; justify-content: space-between; align-items: center; padding: 12px 0; border-bottom: 1px solid rgba(255,255,255,0.16); }
.est-row:last-child { border-bottom: none; }
.est-row .l { font-size: 14px; color: rgba(255,255,255,0.85); }
.est-row .r { font-family: var(--font-head); font-weight: 700; font-size: 16px; }
.est-total { margin-top: 16px; padding: 18px; background: rgba(255,255,255,0.14); border-radius: var(--radius-sm); }
.est-total .l { font-size: 13px; color: rgba(255,255,255,0.85); text-transform: uppercase; letter-spacing: 0.05em; }
.est-total .r { font-family: var(--font-head); font-weight: 800; font-size: 32px; }
.estimate .note { font-size: 11.5px; color: rgba(255,255,255,0.7); margin-top: 14px; line-height: 1.5; }
.estimate .btn { width: 100%; margin-top: 18px; }

/* ---------- Badge / tag ---------- */
.badge {
  display: inline-flex; align-items: center; gap: 6px;
  background: rgba(245, 184, 46, 0.16); color: var(--amber-dark);
  font-weight: 700; font-size: 13px; padding: 6px 14px; border-radius: 999px;
}
.badge-teal { background: rgba(14, 107, 92, 0.12); color: var(--teal); }
html[data-theme="dark"] .badge-teal { background: rgba(63, 211, 166, 0.12); color: var(--primary); }

/* ---------- FAQ accordion ---------- */
.faq { max-width: 780px; margin: 0 auto; }
.faq-item { border-bottom: 1px solid rgba(14, 107, 92, 0.12); }
html[data-theme="dark"] .faq-item { border-bottom-color: rgba(63, 211, 166, 0.12); }
.faq-q {
  width: 100%; text-align: left; padding: 20px 0; display: flex; justify-content: space-between; align-items: center; gap: 16px;
  font-family: var(--font-head); font-weight: 600; font-size: 16px; color: var(--ink);
}
html[data-theme="dark"] .faq-q { color: var(--text); }
.faq-q .chev { transition: transform var(--transition); color: var(--teal); font-size: 20px; flex-shrink: 0; }
html[data-theme="dark"] .faq-q .chev { color: var(--primary); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height 0.3s ease; color: var(--slate); font-size: 15px; }
html[data-theme="dark"] .faq-a { color: var(--text-secondary); }
.faq-a-inner { padding: 0 0 20px; }
.faq-item.open .faq-q .chev { transform: rotate(180deg); }

/* ---------- Banner promozionale ---------- */
.promo-banner {
  background: var(--amber); color: var(--ink); text-align: center;
  padding: 10px 20px; font-size: 14px; font-weight: 600;
}
.promo-banner code { background: rgba(0,0,0,0.12); padding: 2px 8px; border-radius: 6px; font-weight: 700; }

/* ---------- Impianti ---------- */
.plant-card { overflow: hidden; display: flex; flex-direction: column; }
.plant-card .img { height: 160px; background: var(--grad-teal); display: grid; place-items: center; font-size: 56px; }
.plant-card .img.eolico { background: linear-gradient(135deg, #3BA9E0, #0E6B5C); }
.plant-card .body { padding: 24px; }
.plant-card .body h3 { margin-bottom: 8px; }
.plant-card .body p { color: var(--slate); font-size: 14px; }
html[data-theme="dark"] .plant-card .body p { color: var(--text-secondary); }
.plant-card .tag-row { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 14px; }

/* ---------- Form registrazione ---------- */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 20px; }
.form-grid .field.full { grid-column: 1 / -1; }
.checkout-layout { display: grid; grid-template-columns: 1.2fr 0.8fr; gap: 40px; align-items: start; }
.summary { position: sticky; top: 92px; }
.summary .card { background: var(--mist); }
html[data-theme="dark"] .summary .card { background: var(--surface); }

/* ---------- Messaggi / alert ---------- */
.alert { padding: 14px 18px; border-radius: var(--radius-sm); font-size: 14px; margin-bottom: 20px; }
.alert-success { background: rgba(14, 107, 92, 0.12); color: var(--teal); }
html[data-theme="dark"] .alert-success { background: rgba(63, 211, 166, 0.12); color: var(--primary); }
.alert-error { background: rgba(220, 80, 80, 0.12); color: #C0392B; }

/* ---------- Dashboard ---------- */
.dash-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-bottom: 28px; }
.stat-card { padding: 24px; border-radius: var(--radius); background: var(--white); box-shadow: var(--shadow); }
html[data-theme="dark"] .stat-card { background: var(--surface); }
.stat-card .lbl { font-size: 13px; color: var(--slate); text-transform: uppercase; letter-spacing: 0.05em; }
html[data-theme="dark"] .stat-card .lbl { color: var(--text-secondary); }
.stat-card .val { font-family: var(--font-head); font-weight: 800; font-size: 32px; margin-top: 6px; color: var(--ink); }
html[data-theme="dark"] .stat-card .val { color: var(--text); }
.stat-card .val small { font-size: 15px; font-weight: 600; color: var(--slate); }
html[data-theme="dark"] .stat-card .val small { color: var(--text-secondary); }
.stat-card .delta { font-size: 13px; color: var(--teal); font-weight: 600; margin-top: 6px; }
html[data-theme="dark"] .stat-card .delta { color: var(--primary); }
.chart-card { padding: 28px; background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow); }
html[data-theme="dark"] .chart-card { background: var(--surface); }
.chart-card h3 { font-size: 17px; margin-bottom: 20px; }
.chart-box { position: relative; height: 260px; }
.chart-box.small { height: 220px; }

/* ---------- Chatbot ---------- */
.chat-fab {
  position: fixed; right: 24px; bottom: 24px; z-index: 200;
  width: 58px; height: 58px; border-radius: 50%;
  background: var(--teal); color: #fff; font-size: 26px;
  box-shadow: var(--shadow-lg); display: grid; place-items: center;
  transition: transform var(--transition), background var(--transition);
}
.chat-fab:hover { transform: scale(1.06); background: var(--teal-dark); }
.chat-panel {
  position: fixed; right: 24px; bottom: 96px; z-index: 200; width: 360px; max-width: calc(100vw - 40px);
  background: var(--white); border-radius: 20px; box-shadow: var(--shadow-lg);
  display: none; flex-direction: column; overflow: hidden;
  border: 1px solid rgba(14, 107, 92, 0.12);
}
html[data-theme="dark"] .chat-panel { background: var(--surface); border-color: rgba(63, 211, 166, 0.12); }
.chat-panel.open { display: flex; }
.chat-head { background: var(--grad-teal); color: #fff; padding: 18px 20px; display: flex; align-items: center; gap: 12px; }
.chat-head .avatar { width: 40px; height: 40px; border-radius: 50%; background: rgba(255,255,255,0.2); display: grid; place-items: center; font-size: 20px; }
.chat-head .t { font-weight: 700; font-family: var(--font-head); }
.chat-head .s { font-size: 12px; color: rgba(255,255,255,0.8); }
.chat-body { padding: 18px; height: 300px; overflow-y: auto; display: flex; flex-direction: column; gap: 10px; }
.msg { max-width: 82%; padding: 11px 14px; border-radius: 14px; font-size: 14px; line-height: 1.45; }
.msg.bot { background: var(--mist); color: var(--ink); align-self: flex-start; border-bottom-left-radius: 4px; }
html[data-theme="dark"] .msg.bot { background: var(--surface); color: var(--text); }
.msg.user { background: var(--teal); color: #fff; align-self: flex-end; border-bottom-right-radius: 4px; }
.chat-quick { display: flex; flex-wrap: wrap; gap: 8px; padding: 0 18px 12px; }
.chat-quick button { font-size: 12.5px; padding: 7px 13px; border-radius: 999px; background: var(--mist); color: var(--slate); border: 1px solid rgba(14,107,92,0.14); }
html[data-theme="dark"] .chat-quick button { background: var(--surface); color: var(--text-secondary); border-color: rgba(63,211,166,0.14); }
.chat-quick button:hover { background: var(--teal); color: #fff; }

/* ---------- Cookie banner ---------- */
.cookie-banner {
  position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 300;
  max-width: 640px; margin: 0 auto;
  background: var(--white); border: 1px solid rgba(14,107,92,0.14);
  border-radius: var(--radius); box-shadow: var(--shadow-lg); padding: 20px 22px;
  display: flex; align-items: center; gap: 18px; flex-wrap: wrap;
}
html[data-theme="dark"] .cookie-banner { background: var(--surface); border-color: rgba(63,211,166,0.14); }
.cookie-banner p { flex: 1 1 260px; font-size: 13.5px; color: var(--slate); }
html[data-theme="dark"] .cookie-banner p { color: var(--text-secondary); }
.cookie-actions { display: flex; gap: 10px; }

/* ---------- Footer ---------- */
.footer { background: var(--ink); color: rgba(255,255,255,0.72); padding: 64px 0 32px; }
html[data-theme="dark"] .footer { background: #0A1210; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 36px; margin-bottom: 44px; }
.footer h4 { color: #fff; font-size: 15px; margin-bottom: 16px; }
.footer ul { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.footer a { color: rgba(255,255,255,0.72); font-size: 14px; }
.footer a:hover { color: var(--amber); }
.footer .logo { color: #fff; margin-bottom: 14px; }
.footer .desc { font-size: 14px; line-height: 1.6; max-width: 320px; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.12); padding-top: 26px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; font-size: 13px; }

/* ---------- Check / success ---------- */
.success-wrap { max-width: 560px; margin: 60px auto; text-align: center; }
.success-icon { width: 84px; height: 84px; margin: 0 auto 24px; border-radius: 50%; background: var(--grad-teal); display: grid; place-items: center; font-size: 42px; color: #fff; box-shadow: var(--shadow-lg); }
.order-id { font-family: var(--font-head); font-weight: 700; font-size: 18px; letter-spacing: 0.04em; color: var(--teal); }
html[data-theme="dark"] .order-id { color: var(--primary); }

/* ---------- Utility ---------- */
.text-center { text-align: center; }
.mt-2 { margin-top: 12px; } .mt-3 { margin-top: 20px; } .mt-4 { margin-top: 32px; }
.mb-2 { margin-bottom: 12px; } .mb-3 { margin-bottom: 20px; }
.muted { color: var(--slate); }
html[data-theme="dark"] .muted { color: var(--text-secondary); }
.hidden { display: none !important; }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-art { order: -1; }
  .hero-art svg { max-width: 340px; }
  .steps, .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: 1fr 1fr; }
  .config-layout, .checkout-layout { grid-template-columns: 1fr; }
  .estimate, .summary { position: static; }
  .dash-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .nav-links { display: none; }
  .nav-burger { display: grid; place-items: center; }
  .nav-links.mobile-open {
    display: flex; position: absolute; top: 68px; left: 0; right: 0;
    flex-direction: column; gap: 0; background: var(--white);
    border-bottom: 1px solid rgba(14,107,92,0.1); padding: 12px 24px 20px;
  }
  html[data-theme="dark"] .nav-links.mobile-open { background: var(--bg); }
  .nav-links.mobile-open a { padding: 14px 0; border-bottom: 1px solid rgba(14,107,92,0.08); font-size: 16px; }
}
@media (max-width: 560px) {
  .steps, .grid-4, .grid-3, .grid-2, .dash-grid, .form-grid, .footer-grid { grid-template-columns: 1fr; }
  .plant-select { grid-template-columns: 1fr; }
  .hero { padding: 56px 0 70px; }
  .section { padding: 60px 0; }
  .hero-stats { gap: 22px; flex-wrap: wrap; }
  .cookie-banner { flex-direction: column; align-items: stretch; }
}
