/* ═══════════════════════════════════════════════════════════
   ONOFF Energia — Home AI v2
   Palette A · verde menta + azzurro + arancio
   Font unico: Inter · niente corsivi
   ═══════════════════════════════════════════════════════════ */

:root {
  /* ─── Palette ─── */
  --bg:       #f0fdfa;   /* mint-50 base */
  --bg-2:     #ecfeff;   /* sky-tinted */
  --paper:    #ffffff;
  --surface:  #f8fafc;

  --ink:      #0f172a;   /* slate-900 */
  --ink-2:    #1e293b;   /* slate-800 */
  --ink-3:    #334155;   /* slate-700 */
  --muted:    #64748b;   /* slate-500 */
  --soft:     #94a3b8;   /* slate-400 */

  --line:     #e2e8f0;
  --line-2:   #cbd5e1;

  /* Brand colors */
  --mint:        #34d399;
  --mint-deep:   #059669;
  --mint-soft:   #d1fae5;

  --sky:         #38bdf8;
  --sky-deep:    #0284c7;
  --sky-soft:    #e0f2fe;

  --blue:        #2563eb;
  --blue-deep:   #1d4ed8;

  --orange:      #fb923c;
  --orange-deep: #ea580c;
  --orange-soft: #ffedd5;

  /* Brand logo scale (editable) */
  --brand-logo-scale: 1;

  /* Legacy aliases (used by older code) */
  --sun:   var(--orange);
  --moss:  var(--mint-deep);
  --grass: var(--mint);

  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
  --serif: var(--sans);  /* same font everywhere */
  --mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, monospace;
}

* { box-sizing: border-box; }
html, body {
  margin: 0; padding: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
/* Kill italics globally (the design system uses <em> for highlights, not italic) */
em, i, .italic { font-style: normal !important; }
em { color: var(--orange-deep); font-weight: 600; }

::selection { background: var(--mint-soft); color: var(--ink); }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }

.shell { max-width: 1320px; margin: 0 auto; padding: 0 32px; }

/* ─── TOPBAR ─── */
.topbar {
  position: fixed; top: 0; left: 0; right: 0;
  z-index: 40;
  padding: 14px 0;
  background: rgba(255,255,255,.85);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.topbar-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.top-nav {
  display: flex; gap: 28px;
  font-size: 14px;
  font-weight: 500;
  color: var(--ink-2);
}
.top-nav a {
  position: relative;
  padding: 4px 0;
}
.top-nav a:hover { color: var(--mint-deep); }
.top-nav a::after {
  content: "";
  position: absolute;
  bottom: 0; left: 50%;
  width: 0; height: 2px;
  background: var(--orange);
  transition: width .2s, left .2s;
}
.top-nav a:hover::after { width: 100%; left: 0; }
.brand {
  display: flex; align-items: center; gap: 10px;
  font-size: 19px; font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--ink);
}

/* ─── LOGO SLOT (topbar) ─── */
.brand-logo-slot {
  display: flex; align-items: center; gap: 10px;
  background-size: contain;
  background-position: left center;
  background-repeat: no-repeat;
  min-height: 36px;
  transition: width .2s, height .2s;
}
/* When background image is set, hide the fallback children and grow the slot */
.brand-logo-slot[style*="url"] > * { display: none; }
.brand-logo-slot[style*="url"] {
  width: calc(180px * var(--brand-logo-scale));
  height: calc(44px * var(--brand-logo-scale));
}
body.edit-mode .brand-logo-slot:not([style*="url"]) {
  outline: 1.5px dashed var(--orange);
  outline-offset: 6px;
  border-radius: 6px;
}
.brand-mark {
  width: 32px; height: 32px;
  display: grid; place-items: center;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--mint), var(--sky));
  color: white;
  font-family: var(--mono); font-size: 11px; font-weight: 700;
}
.brand b { font-weight: 600; }
.brand i { opacity: .65; font-weight: 400; font-style: normal !important; }
.top-phone {
  font-family: var(--mono); font-size: 12px;
  color: var(--ink-3);
  letter-spacing: 0.04em;
  display: flex; gap: 14px; align-items: center;
}
.top-phone .sep { opacity: .35; }

/* ═══════════════════════════════════════════════════════════
   HERO — bright with photo background
   ═══════════════════════════════════════════════════════════ */
.hero {
  position: relative;
  min-height: 100svh;
  padding: 120px 32px 80px;
  display: flex; flex-direction: column; justify-content: center;
  overflow: hidden;
  background:
    radial-gradient(60% 50% at 85% 15%, var(--sky-soft) 0%, transparent 65%),
    radial-gradient(50% 50% at 10% 90%, var(--mint-soft) 0%, transparent 65%),
    radial-gradient(40% 35% at 50% 50%, var(--orange-soft) 0%, transparent 70%),
    linear-gradient(180deg, #f0fdfa, #ffffff);
}

/* hero decorative ornaments */
.hero-deco {
  position: absolute;
  pointer-events: none;
  z-index: 0;
}
.hero-deco-sun {
  width: 200px; height: 200px;
  top: 90px; right: 6%;
  animation: float-slow 12s ease-in-out infinite;
}
.hero-deco-panels {
  display: none;
}
.hero-deco-leaf {
  width: 90px; height: 130px;
  top: 40%; left: 4%;
  animation: float-slow 9s ease-in-out infinite reverse;
}
.hero-deco-sparkles {
  width: 280px; height: 280px;
  top: 25%; left: 35%;
  z-index: 1;
  opacity: .8;
  animation: twinkle 4s ease-in-out infinite;
}
@keyframes float-slow {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-14px) rotate(4deg); }
}
@keyframes twinkle {
  0%, 100% { opacity: .8; }
  50% { opacity: .45; }
}
@media (max-width: 900px) {
  .hero-deco-sun { width: 130px; height: 130px; top: 60px; right: -10px; }
  .hero-deco-panels { width: 220px; height: 165px; bottom: 0; right: -60px; opacity: .35; }
  .hero-deco-leaf { display: none; }
  .hero-deco-sparkles { width: 160px; height: 160px; opacity: .5; }
}
.hero-bg-img {
  position: absolute;
  top: 0; right: 0;
  width: 55%;
  height: 100%;
  background-position: center;
  background-size: cover;
  opacity: 0.18;
  mask-image: linear-gradient(to left, black 30%, transparent 95%);
  -webkit-mask-image: linear-gradient(to left, black 30%, transparent 95%);
  pointer-events: none;
}
.hero::after {
  /* dot grid */
  content: "";
  position: absolute; inset: 0;
  background-image: radial-gradient(circle, rgba(15,23,42,.08) 1px, transparent 1px);
  background-size: 32px 32px;
  pointer-events: none;
  opacity: 0.6;
  mask-image: linear-gradient(180deg, transparent, black 30%, black 70%, transparent);
  -webkit-mask-image: linear-gradient(180deg, transparent, black 30%, black 70%, transparent);
}

.hero-inner {
  position: relative;
  max-width: 880px;
  margin: 0 auto;
  width: 100%;
  z-index: 1;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.hero-inner > * { margin-left: auto; margin-right: auto; }
.hero-title { text-align: center; }
.hero-sub { text-align: center; }
.prompt-wrap { width: 100%; }
.chips { justify-content: center; }

.hero-eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--mono); font-size: 11px;
  text-transform: uppercase; letter-spacing: 0.12em;
  color: var(--mint-deep);
  padding: 7px 14px;
  background: var(--mint-soft);
  border-radius: 999px;
  margin-bottom: 36px;
}
.hero-eyebrow .dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--mint-deep);
  box-shadow: 0 0 0 4px rgba(5,150,105,.22);
  animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse { 0%,100%{opacity:.7} 50%{opacity:1} }

h1.hero-title {
  font-weight: 700;
  font-size: clamp(48px, 7vw, 92px);
  line-height: 0.98;
  letter-spacing: -0.035em;
  margin: 0 0 28px;
  text-wrap: balance;
  max-width: 1100px;
  color: var(--ink);
}
h1.hero-title em {
  color: var(--orange-deep);
  font-weight: 700;
}
h1.hero-title .muted {
  color: var(--muted);
  font-weight: 600;
}

.hero-sub {
  font-size: clamp(16px, 1.4vw, 19px);
  line-height: 1.55;
  color: var(--ink-3);
  max-width: 620px;
  margin: 0 0 48px;
}

/* ─── Prompt ─── */
.prompt-wrap {
  position: relative;
  max-width: 760px;
  margin-bottom: 22px;
}
.prompt {
  display: flex; align-items: center; gap: 14px;
  background: white;
  border: 1.5px solid var(--line);
  border-radius: 18px;
  padding: 18px 22px;
  transition: border-color .2s, box-shadow .2s;
  box-shadow: 0 4px 24px -8px rgba(15,23,42,.08);
}
.prompt:focus-within {
  border-color: var(--sky);
  box-shadow: 0 8px 32px -8px rgba(56,189,248,.3), 0 0 0 4px rgba(56,189,248,.15);
}
.prompt-icon {
  width: 22px; height: 22px;
  flex-shrink: 0;
  color: var(--sky-deep);
}
.prompt input {
  flex: 1;
  background: transparent;
  border: 0; outline: 0;
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  caret-color: var(--sky-deep);
}
.prompt input::placeholder {
  color: var(--soft);
}
.prompt-cursor {
  width: 9px; height: 22px;
  background: var(--orange);
  border-radius: 2px;
  animation: blink 1s steps(2) infinite;
}
@keyframes blink { 0%,49%{opacity:1} 50%,100%{opacity:0} }
.prompt-mic {
  width: 40px; height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--sky), var(--blue));
  color: white;
  display: grid; place-items: center;
  border: 0;
  flex-shrink: 0;
  transition: transform .15s;
}
.prompt-mic:hover { transform: scale(1.08); }
.prompt-mic svg { width: 16px; height: 16px; }

/* ─── Chips ─── */
.chips {
  display: flex; flex-wrap: wrap; gap: 8px;
  max-width: 760px;
}
.chip {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 16px;
  background: white;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--ink-2);
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: all .15s;
}
.chip:hover {
  background: var(--mint);
  color: white;
  border-color: var(--mint);
  transform: translateY(-1px);
  box-shadow: 0 6px 16px -4px rgba(52,211,153,.4);
}
.chip .ar {
  font-family: var(--mono);
  font-size: 11px;
  opacity: .5;
  font-weight: 400;
}
.chip:hover .ar { opacity: 1; }

/* scroll cue */
.scroll-cue {
  position: absolute; bottom: 32px; left: 50%;
  transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  z-index: 1;
}
.scroll-cue::after {
  content: "";
  width: 1px; height: 28px;
  background: linear-gradient(to bottom, var(--orange), transparent);
  animation: scroll-line 2s ease-in-out infinite;
}
@keyframes scroll-line {
  0% { transform: scaleY(0); transform-origin: top; }
  50% { transform: scaleY(1); transform-origin: top; }
  100% { transform: scaleY(0); transform-origin: bottom; }
}

/* ═══════════════════════════════════════════════════════════
   BENTO
   ═══════════════════════════════════════════════════════════ */
.bento-section { padding: 80px 0 120px; background: var(--bg); }
.bento-label {
  display: flex; align-items: baseline; justify-content: space-between;
  margin-bottom: 32px;
  gap: 24px;
}
.bento-label h2 {
  font-weight: 700;
  font-size: clamp(28px, 3.4vw, 42px);
  letter-spacing: -0.025em;
  line-height: 1.05;
  margin: 0;
  text-wrap: balance;
  max-width: 720px;
  color: var(--ink);
}
.bento-label h2 em { color: var(--mint-deep); }
.bento-label .meta {
  font-family: var(--mono);
  font-size: 11px;
  text-transform: uppercase; letter-spacing: 0.1em;
  color: var(--muted);
  white-space: nowrap;
}

.bento {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  grid-auto-rows: minmax(190px, auto);
  gap: 14px;
}

/* ─── card base ─── */
.card {
  position: relative;
  border-radius: 22px;
  padding: 24px 26px;
  overflow: hidden;
  cursor: pointer;
  background: white;
  border: 1px solid var(--line);
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s;
  display: flex; flex-direction: column;
}
.card:hover {
  transform: translateY(-3px);
  box-shadow: 0 24px 48px -20px rgba(15,23,42,.16);
  border-color: var(--line-2);
}
.card:hover .card-arrow {
  background: var(--orange);
  color: white;
  transform: translate(2px, -2px);
}
.card-tag {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--mono);
  font-size: 10px;
  text-transform: uppercase; letter-spacing: 0.1em;
  color: var(--muted);
  margin-bottom: 14px;
  font-weight: 500;
}
.card-tag .dot {
  width: 5px; height: 5px; border-radius: 50%;
  background: currentColor;
}
.card-title {
  font-weight: 700;
  font-size: 24px;
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin: 0 0 8px;
  text-wrap: balance;
  color: var(--ink);
}
.card-title em {
  color: var(--orange-deep);
  font-weight: 700;
}

/* ─── card-icon: small optional image left of title ─── */
.card-title-row {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 8px;
}
.card-title-row .card-title { margin: 0; }
.card-icon {
  width: 44px; height: 44px;
  background-size: contain;
  background-position: center;
  background-repeat: no-repeat;
  flex-shrink: 0;
  border-radius: 8px;
}
.card-icon:not([style*="url"]) { display: none; }
body.edit-mode .card-icon:not([style*="url"]) {
  display: flex;
  align-items: center; justify-content: center;
  border: 1.5px dashed var(--line-2);
  background: rgba(255,255,255,.5);
}
body.edit-mode .card-icon:not([style*="url"])::before {
  content: "+ Icona";
  font-family: var(--mono);
  font-size: 9px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  pointer-events: none;
}
.card.mint .card-icon:not([style*="url"]),
.card.sky .card-icon:not([style*="url"]),
.card.orange .card-icon:not([style*="url"]) {
  border-color: rgba(255,255,255,.5);
}
.card.mint .card-icon:not([style*="url"])::before,
.card.sky .card-icon:not([style*="url"])::before,
.card.orange .card-icon:not([style*="url"])::before {
  color: rgba(255,255,255,.8);
}
.card-desc {
  font-size: 14px;
  color: var(--ink-3);
  line-height: 1.5;
  margin: 0;
  flex: 1;
}
.card-foot {
  display: flex; align-items: center; justify-content: space-between;
  margin-top: 18px;
}
.card-meta {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.04em;
  color: var(--muted);
  font-weight: 500;
}
.card-arrow {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: var(--bg);
  color: var(--ink);
  display: grid; place-items: center;
  transition: all .2s ease;
  flex-shrink: 0;
}
.card-arrow svg { width: 14px; height: 14px; }

/* card variants */
.card.mint {
  background: linear-gradient(135deg, var(--mint), var(--mint-deep));
  border-color: var(--mint);
  color: white;
}
.card.mint .card-tag,
.card.mint .card-meta { color: rgba(255,255,255,.8); }
.card.mint .card-title,
.card.mint .card-title em { color: white; }
.card.mint .card-desc { color: rgba(255,255,255,.9); }
.card.mint .card-arrow { background: rgba(255,255,255,.22); color: white; }
.card.mint:hover .card-arrow { background: white; color: var(--mint-deep); }

.card.sky {
  background: linear-gradient(135deg, var(--sky), var(--blue));
  border-color: var(--sky);
  color: white;
}
.card.sky .card-tag,
.card.sky .card-meta { color: rgba(255,255,255,.85); }
.card.sky .card-title,
.card.sky .card-title em { color: white; }
.card.sky .card-desc { color: rgba(255,255,255,.92); }
.card.sky .card-arrow { background: rgba(255,255,255,.22); color: white; }
.card.sky:hover .card-arrow { background: white; color: var(--blue-deep); }

.card.orange {
  background: linear-gradient(135deg, var(--orange), var(--orange-deep));
  border-color: var(--orange);
  color: white;
}
.card.orange .card-tag,
.card.orange .card-meta { color: rgba(255,255,255,.88); }
.card.orange .card-title,
.card.orange .card-title em { color: white; }
.card.orange .card-desc { color: rgba(255,255,255,.94); }
.card.orange .card-arrow { background: rgba(255,255,255,.22); color: white; }
.card.orange:hover .card-arrow { background: white; color: var(--orange-deep); }

/* cards with image */
.card.with-image { padding: 0; }
.card.with-image .card-image {
  position: relative;
  width: 100%;
  height: 50%;
  min-height: 160px;
  background-size: cover;
  background-position: center;
  background-color: var(--bg-2);
}
.card.with-image .card-image::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(to bottom, transparent 60%, rgba(0,0,0,.18));
}
.card.with-image .card-body {
  padding: 22px 26px 24px;
  display: flex; flex-direction: column;
  flex: 1;
}
.card.with-image .card-tag { margin-bottom: 10px; }

/* ─── cards with TWO images (split) ─── */
.card.with-two-images { padding: 0; }
.card.with-two-images .card-images-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2px;
  height: 50%;
  min-height: 160px;
}
.card.with-two-images .card-image-half {
  background-size: cover;
  background-position: center;
  background-color: var(--bg-2);
  position: relative;
}
.card.with-two-images .card-image-half::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(to bottom, transparent 60%, rgba(0,0,0,.18));
}
.card.with-two-images .card-body {
  padding: 22px 26px 24px;
  display: flex; flex-direction: column;
  flex: 1;
}
.card.with-two-images .card-tag { margin-bottom: 10px; }

/* sizes (bento) */
.card.size-2x2 { grid-column: span 2; grid-row: span 2; }
.card.size-3x2 { grid-column: span 3; grid-row: span 2; }
.card.size-3x1 { grid-column: span 3; grid-row: span 1; }
.card.size-2x1 { grid-column: span 2; grid-row: span 1; }
.card.size-4x1 { grid-column: span 4; grid-row: span 1; }
.card.size-4x2 { grid-column: span 4; grid-row: span 2; }
.card.size-6x1 { grid-column: span 6; grid-row: span 1; }
.card.size-2x3 { grid-column: span 2; grid-row: span 3; }

/* listen badge */
.card-listen {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 4px 10px;
  background: var(--mint-soft);
  color: var(--mint-deep);
  border-radius: 999px;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 600;
  margin-left: auto;
}
.card.mint .card-listen,
.card.sky .card-listen,
.card.orange .card-listen {
  background: rgba(255,255,255,.22);
  color: white;
}
.card-listen svg { width: 11px; height: 11px; }

/* ═══════════════════════════════════════════════════════════
   SIMULATOR CARD (bright version)
   ═══════════════════════════════════════════════════════════ */
.sim-card {
  grid-column: span 3; grid-row: span 2;
  background: linear-gradient(160deg, #ffffff, #f0fdfa 60%, #ecfeff);
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 30px;
  position: relative;
  overflow: hidden;
  display: flex; flex-direction: column;
  cursor: default;
  transition: none;
  box-shadow: 0 12px 36px -16px rgba(15,23,42,.12);
}
.sim-card:hover { transform: none; box-shadow: 0 12px 36px -16px rgba(15,23,42,.12); }
.sim-card::before {
  content: "";
  position: absolute; inset: 0;
  background:
    radial-gradient(55% 40% at 90% 10%, rgba(56,189,248,.16) 0%, transparent 65%),
    radial-gradient(45% 50% at 5% 95%, rgba(52,211,153,.18) 0%, transparent 70%);
  pointer-events: none;
}
.sim-card-head {
  position: relative;
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 14px;
}
.sim-card-head .left {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--mono);
  font-size: 11px;
  text-transform: uppercase; letter-spacing: 0.12em;
  color: var(--mint-deep);
  font-weight: 600;
}
.sim-card-head .left .dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--mint-deep);
  box-shadow: 0 0 0 4px rgba(5,150,105,.22);
}
.sim-card-head .right {
  font-family: var(--mono);
  font-size: 10px;
  color: var(--muted);
  letter-spacing: 0.06em;
}
.sim-card-title {
  position: relative;
  font-weight: 700;
  font-size: clamp(26px, 2.4vw, 34px);
  line-height: 1.1;
  letter-spacing: -0.025em;
  margin: 0 0 8px;
}
.sim-card-title em { color: var(--orange-deep); font-weight: 700; }
.sim-card-sub {
  position: relative;
  color: var(--ink-3);
  font-size: 14px;
  margin: 0 0 22px;
  max-width: 420px;
}

.sim-card-body { position: relative; flex: 1; display: flex; flex-direction: column; gap: 14px; }
.sim-field { display: flex; flex-direction: column; gap: 8px; }
.sim-field label {
  font-family: var(--mono);
  font-size: 10px;
  text-transform: uppercase; letter-spacing: 0.08em;
  color: var(--muted);
  font-weight: 600;
  display: flex; justify-content: space-between; align-items: center;
}
.sim-field label b {
  font-family: var(--sans);
  font-size: 16px;
  color: var(--orange-deep);
  font-weight: 700;
  letter-spacing: -0.01em;
}
.sim-input,
.sim-select {
  background: white;
  border: 1.5px solid var(--line);
  border-radius: 10px;
  padding: 11px 14px;
  color: var(--ink);
  font-family: var(--sans);
  font-size: 14px;
  outline: none;
  transition: border-color .15s;
  -webkit-appearance: none; appearance: none;
}
.sim-input:focus,
.sim-select:focus {
  border-color: var(--sky);
  box-shadow: 0 0 0 3px rgba(56,189,248,.18);
}
.sim-select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='none' stroke='%2364748b' stroke-width='2' d='M1 1l5 5 5-5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 38px;
  cursor: pointer;
}
.sim-slider {
  width: 100%;
  -webkit-appearance: none; appearance: none;
  height: 5px;
  border-radius: 3px;
  background: linear-gradient(to right, var(--mint) 50%, var(--line) 50%);
  outline: none;
}
.sim-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 18px; height: 18px;
  background: white;
  border: 2.5px solid var(--mint-deep);
  border-radius: 50%;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(5,150,105,.3);
}
.sim-slider::-moz-range-thumb {
  width: 18px; height: 18px;
  background: white;
  border: 2.5px solid var(--mint-deep);
  border-radius: 50%;
  cursor: pointer;
}
.sim-radios {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px;
}
.sim-radio {
  padding: 10px 8px;
  background: white;
  border: 1.5px solid var(--line);
  border-radius: 10px;
  font-size: 12px;
  text-align: center;
  cursor: pointer;
  color: var(--ink-2);
  transition: all .15s;
  user-select: none;
  font-weight: 500;
}
.sim-radio.selected {
  background: var(--mint-deep);
  color: white;
  border-color: var(--mint-deep);
  font-weight: 600;
}
.sim-radio:hover:not(.selected) { border-color: var(--mint); }
.sim-radio small { font-weight: 400; opacity: .7; }

.sim-cta {
  position: relative;
  margin-top: auto;
  display: flex; align-items: center; justify-content: space-between;
  background: linear-gradient(135deg, var(--orange), var(--orange-deep));
  color: white;
  border-radius: 14px;
  padding: 14px 18px;
  border: 0;
  font-family: inherit;
  font-size: 15px;
  font-weight: 600;
  transition: transform .12s, box-shadow .15s;
  width: 100%;
  box-shadow: 0 8px 24px -8px rgba(234,88,12,.45);
}
.sim-cta:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 32px -8px rgba(234,88,12,.55);
}
.sim-cta .ar {
  background: rgba(255,255,255,.25);
  color: white;
  width: 28px; height: 28px;
  border-radius: 50%;
  display: grid; place-items: center;
  transition: transform .15s;
}
.sim-cta:hover .ar { transform: translateX(3px); background: white; color: var(--orange-deep); }

/* result */
.sim-result {
  position: relative;
  display: none;
  flex: 1;
  flex-direction: column;
}
.sim-card.has-result .sim-card-body { display: none; }
.sim-card.has-result .sim-result { display: flex; }

.sim-result-hero {
  background: linear-gradient(135deg, var(--mint), var(--mint-deep));
  color: white;
  border-radius: 16px;
  padding: 22px;
  margin-bottom: 14px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.sim-result-hero::after {
  content: "";
  position: absolute; top: -50%; right: -20%;
  width: 280px; height: 280px;
  background: radial-gradient(circle, rgba(255,255,255,.25) 0%, transparent 60%);
  pointer-events: none;
}
.sim-result-label {
  font-family: var(--mono);
  font-size: 10px;
  text-transform: uppercase; letter-spacing: 0.12em;
  margin-bottom: 8px;
  position: relative;
  font-weight: 600;
}
.sim-result-value {
  font-weight: 700;
  font-size: clamp(38px, 4vw, 52px);
  line-height: 1; letter-spacing: -0.035em;
  margin-bottom: 6px;
  position: relative;
}
.sim-result-value small {
  font-size: 14px;
  opacity: .8;
  font-weight: 500;
}
.sim-result-sub {
  font-size: 12px;
  opacity: .9;
  position: relative;
}

.sim-metrics {
  display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 8px;
  margin-bottom: 14px;
}
.sim-metric {
  background: white;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 12px;
  text-align: left;
}
.sim-metric-k {
  font-family: var(--mono);
  font-size: 9px;
  text-transform: uppercase; letter-spacing: 0.08em;
  color: var(--muted);
  margin-bottom: 4px;
  font-weight: 600;
}
.sim-metric-v {
  font-weight: 700;
  font-size: 18px;
  letter-spacing: -0.01em;
  color: var(--ink);
}
.sim-metric-v small {
  font-size: 10px;
  color: var(--muted);
  font-weight: 500;
}

.sim-result-actions { display: flex; gap: 8px; margin-top: auto; }
.sim-redo {
  flex: 0 0 auto;
  background: white;
  border: 1.5px solid var(--line);
  color: var(--ink-2);
  border-radius: 14px;
  padding: 14px 18px;
  font-family: inherit;
  font-size: 14px;
  font-weight: 500;
  transition: all .15s;
}
.sim-redo:hover { border-color: var(--line-2); background: var(--surface); }
.sim-result-actions .sim-cta { margin-top: 0; flex: 1; }

/* ═══════════════════════════════════════════════════════════
   DRAWER
   ═══════════════════════════════════════════════════════════ */
.drawer-overlay {
  position: fixed; inset: 0;
  background: rgba(15,23,42,.4);
  backdrop-filter: blur(4px);
  z-index: 50;
  opacity: 0;
  pointer-events: none;
  transition: opacity .25s ease;
}
.drawer-overlay.open { opacity: 1; pointer-events: auto; }
.drawer {
  position: fixed; top: 0; right: 0; bottom: 0;
  width: 620px; max-width: 100vw;
  background: white;
  z-index: 51;
  transform: translateX(100%);
  transition: transform .35s cubic-bezier(.22, 1, .36, 1);
  display: flex; flex-direction: column;
  box-shadow: -40px 0 80px -30px rgba(15,23,42,.3);
}
.drawer.open { transform: translateX(0); }

.drawer-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 22px 32px;
  border-bottom: 1px solid var(--line);
  flex-shrink: 0;
  background: white;
}
.drawer-tag {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--mono);
  font-size: 11px;
  text-transform: uppercase; letter-spacing: 0.12em;
  color: var(--mint-deep);
  font-weight: 600;
}
.drawer-tag .dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--mint);
  box-shadow: 0 0 0 4px rgba(52,211,153,.25);
}
.drawer-close {
  width: 38px; height: 38px;
  background: var(--bg);
  border: 0; border-radius: 50%;
  color: var(--ink);
  display: grid; place-items: center;
  transition: background .15s;
}
.drawer-close:hover { background: var(--bg-2); }
.drawer-close svg { width: 14px; height: 14px; }

.drawer-body {
  flex: 1; overflow-y: auto;
  padding: 28px 32px 100px;
}
.drawer-title {
  font-weight: 700;
  font-size: clamp(30px, 3.6vw, 40px);
  letter-spacing: -0.025em;
  line-height: 1.05;
  margin: 12px 0 18px;
  text-wrap: balance;
  color: var(--ink);
}
.drawer-title em { color: var(--orange-deep); font-weight: 700; }
.drawer-lede {
  font-size: 18px;
  line-height: 1.5;
  color: var(--ink-2);
  margin: 0 0 28px;
  text-wrap: pretty;
  max-width: 520px;
  font-weight: 500;
}

.drawer-content h3 {
  font-weight: 700;
  font-size: 20px;
  letter-spacing: -0.015em;
  margin: 32px 0 12px;
  color: var(--ink);
}
.drawer-content p {
  font-size: 15px;
  line-height: 1.65;
  color: var(--ink-2);
  margin: 0 0 16px;
  text-wrap: pretty;
}
.drawer-content ul { list-style: none; padding: 0; margin: 0 0 20px; }
.drawer-content ul li {
  position: relative;
  padding: 10px 0 10px 28px;
  border-top: 1px solid var(--line);
  font-size: 14px;
  line-height: 1.5;
  color: var(--ink-2);
}
.drawer-content ul li:last-child { border-bottom: 1px solid var(--line); }
.drawer-content ul li::before {
  content: "✓";
  position: absolute; left: 0; top: 10px;
  color: var(--mint-deep);
  font-weight: 700;
}

.drawer-stat-row {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  background: linear-gradient(135deg, var(--mint-soft), var(--sky-soft));
  border-radius: 14px;
  padding: 18px;
  margin: 24px 0;
}
.drawer-stat .k {
  font-family: var(--mono);
  font-size: 10px;
  text-transform: uppercase; letter-spacing: 0.08em;
  color: var(--ink-3);
  display: block; margin-bottom: 4px;
  font-weight: 600;
}
.drawer-stat .v {
  font-weight: 700;
  font-size: 22px;
  letter-spacing: -0.015em;
  color: var(--ink);
  display: block;
  line-height: 1;
}
.drawer-stat .v em { color: var(--orange-deep); font-weight: 700; }
.drawer-stat .v small {
  font-size: 11px;
  color: var(--muted);
  font-weight: 500;
}

.drawer-cta {
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px;
  background: linear-gradient(135deg, var(--sky), var(--blue));
  color: white;
  border-radius: 16px;
  padding: 22px;
  margin-top: 32px;
  border: 0;
  width: 100%;
  font-family: inherit;
  transition: transform .12s, box-shadow .15s;
  text-align: left;
  box-shadow: 0 12px 28px -10px rgba(37,99,235,.4);
}
.drawer-cta:hover {
  transform: translateY(-1px);
  box-shadow: 0 16px 36px -10px rgba(37,99,235,.5);
}
.drawer-cta-text {
  font-weight: 600;
  font-size: 17px;
  letter-spacing: -0.01em;
  flex: 1;
}
.drawer-cta-text small {
  display: block;
  font-family: var(--mono);
  font-size: 11px;
  color: rgba(255,255,255,.7);
  text-transform: uppercase; letter-spacing: 0.1em;
  font-weight: 500;
  margin-bottom: 4px;
}
.drawer-cta-arrow {
  width: 38px; height: 38px;
  background: white;
  color: var(--blue-deep);
  border-radius: 50%;
  display: grid; place-items: center;
  flex-shrink: 0;
}

/* listen bar */
.listen-bar {
  display: flex; align-items: center; gap: 14px;
  padding: 14px 18px;
  background: linear-gradient(135deg, var(--mint), var(--mint-deep));
  color: white;
  border-radius: 16px;
  margin-bottom: 24px;
  box-shadow: 0 8px 24px -10px rgba(5,150,105,.4);
}
.listen-play {
  width: 44px; height: 44px;
  background: white;
  color: var(--mint-deep);
  border: 0;
  border-radius: 50%;
  display: grid; place-items: center;
  flex-shrink: 0;
  transition: transform .12s;
}
.listen-play:hover { transform: scale(1.06); }
.listen-play svg { width: 16px; height: 16px; }
.listen-info { flex: 1; min-width: 0; }
.listen-label {
  font-family: var(--mono);
  font-size: 10px;
  text-transform: uppercase; letter-spacing: 0.12em;
  font-weight: 600;
  margin-bottom: 4px;
  color: rgba(255,255,255,.85);
}
.listen-status {
  font-size: 13px;
  font-weight: 500;
}

.listen-wave {
  display: flex; align-items: center; gap: 3px;
  height: 24px;
}
.listen-wave span {
  width: 3px;
  background: white;
  border-radius: 2px;
  height: 8px;
  transition: height .15s;
  opacity: .9;
}
.listen-bar.playing .listen-wave span { animation: wave 0.9s ease-in-out infinite; }
.listen-bar.playing .listen-wave span:nth-child(1) { animation-delay: 0s; }
.listen-bar.playing .listen-wave span:nth-child(2) { animation-delay: .15s; }
.listen-bar.playing .listen-wave span:nth-child(3) { animation-delay: .3s; }
.listen-bar.playing .listen-wave span:nth-child(4) { animation-delay: .45s; }
.listen-bar.playing .listen-wave span:nth-child(5) { animation-delay: .6s; }
@keyframes wave {
  0%, 100% { height: 8px; }
  50% { height: 22px; }
}
.listen-speed {
  background: rgba(255,255,255,.22);
  border: 0;
  color: white;
  border-radius: 999px;
  padding: 6px 12px;
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
}
.listen-speed:hover { background: rgba(255,255,255,.32); }

/* ═══════════════════════════════════════════════════════════
   FLOATING ASSISTANT
   ═══════════════════════════════════════════════════════════ */
.assistant { position: fixed; bottom: 24px; right: 24px; z-index: 30; }
.assistant-btn {
  display: flex; align-items: center; gap: 10px;
  background: linear-gradient(135deg, var(--ink), var(--ink-2));
  color: white;
  border: 0;
  padding: 14px 20px 14px 14px;
  border-radius: 999px;
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 500;
  box-shadow: 0 16px 36px -10px rgba(15,23,42,.4);
  transition: transform .15s, box-shadow .15s;
}
.assistant-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 24px 48px -12px rgba(15,23,42,.5);
}
.assistant-orb {
  width: 30px; height: 30px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--orange), var(--mint));
  display: grid; place-items: center;
  color: white;
  animation: orb-pulse 2.4s ease-in-out infinite;
}
.assistant-orb svg { width: 14px; height: 14px; }
@keyframes orb-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(251,146,60,.5); }
  50% { box-shadow: 0 0 0 12px transparent; }
}
.assistant-text small {
  display: block;
  font-family: var(--mono);
  font-size: 9px;
  color: rgba(255,255,255,.6);
  text-transform: uppercase; letter-spacing: 0.12em;
}

/* ═══ SLOGAN STRIP ═══ */
.hero-slogan {
  margin-top: 40px;
  padding: 20px 24px;
  background: rgba(255,255,255,.7);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,.8);
  border-left: 4px solid var(--orange);
  border-radius: 14px;
  max-width: 760px;
  display: flex; align-items: center; gap: 18px;
  box-shadow: 0 12px 32px -16px rgba(15,23,42,.15);
}
.hero-slogan-image {
  width: 56px; height: 56px;
  background-size: contain;
  background-position: center;
  background-repeat: no-repeat;
  flex-shrink: 0;
  border-radius: 10px;
}
.hero-slogan-image:not([style*="url"]) { display: none; }
body.edit-mode .hero-slogan-image:not([style*="url"]) {
  display: flex;
  align-items: center; justify-content: center;
  border: 1.5px dashed var(--line-2);
  background: rgba(255,255,255,.7);
}
body.edit-mode .hero-slogan-image:not([style*="url"])::before {
  content: "+ Foto";
  font-family: var(--mono);
  font-size: 9px;
  color: var(--ink-3);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  pointer-events: none;
}
.hero-slogan-title {
  font-size: clamp(18px, 2.2vw, 24px);
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--ink);
  line-height: 1.2;
}
.hero-slogan-sub {
  font-size: 14px;
  color: var(--ink-3);
  margin-top: 4px;
  font-weight: 500;
}

/* ═══ SECTION COMMONS ═══ */
.section-calc, .section-cards { padding: 80px 0; background: var(--bg); }
.section-cards.alt { background: white; border-top: 1px solid var(--line); }
.section-head {
  text-align: center;
  margin-bottom: 48px;
  max-width: 720px;
  margin-left: auto; margin-right: auto;
}
.section-eyebrow {
  display: inline-block;
  font-family: var(--mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--mint-deep);
  margin-bottom: 12px;
  font-weight: 600;
}
.section-title {
  font-size: clamp(28px, 3.8vw, 44px);
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.05;
  margin: 0 0 14px;
  color: var(--ink);
  text-wrap: balance;
}
.section-title em { color: var(--orange-deep); }
.section-lede {
  font-size: 17px;
  color: var(--ink-3);
  line-height: 1.55;
  max-width: 620px;
  margin: 0 auto;
}

/* Hide audio UI (audio disabled by user request) */
.card-listen,
.listen-bar,
.prompt-mic { display: none !important; }

/* Hero micro-feature icons (small) */
.hero-features {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 24px;
  justify-content: center;
  margin-top: 26px;
  max-width: 760px;
}
.hero-feat {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 13px;
  font-weight: 500;
  color: var(--ink-2);
}
.hero-feat-icon {
  width: 30px; height: 30px;
  border-radius: 50%;
  background: white;
  border: 1.5px solid var(--line);
  display: grid; place-items: center;
  flex-shrink: 0;
  font-size: 14px;
}
.hero-feat:nth-child(1) .hero-feat-icon { color: var(--mint-deep); border-color: var(--mint); }
.hero-feat:nth-child(2) .hero-feat-icon { color: var(--orange-deep); border-color: var(--orange); }
.hero-feat:nth-child(3) .hero-feat-icon { color: var(--sky-deep); border-color: var(--sky); }
.hero-feat:nth-child(4) .hero-feat-icon { color: var(--blue-deep); border-color: var(--blue); }

/* advanced simulator link inside calc section head */
.advanced-sim-link {
  display: inline-flex; align-items: center; gap: 10px;
  margin-top: 20px;
  padding: 12px 20px;
  background: white;
  border: 1.5px solid var(--orange);
  border-radius: 999px;
  color: var(--ink-2);
  font-size: 14px;
  font-weight: 500;
  transition: all .15s;
  text-decoration: none;
  box-shadow: 0 4px 14px -6px rgba(251,146,60,.3);
}
.advanced-sim-link b { color: var(--orange-deep); font-weight: 700; }
.advanced-sim-link svg { width: 16px; height: 16px; color: var(--orange-deep); flex-shrink: 0; }
.advanced-sim-link:hover {
  transform: translateY(-2px);
  border-color: var(--orange-deep);
  box-shadow: 0 10px 24px -8px rgba(251,146,60,.45);
  background: var(--orange-soft);
}

/* hero → calc smoother connection */
.section-calc { padding-top: 64px; }

/* ═══ SECTION CALC ═══ */
.calc-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 48px;
  align-items: stretch;
}
.calc-grid .sim-card {
  grid-column: auto;
  grid-row: auto;
  min-height: 580px;
}
.calc-aside { padding-top: 12px; }
.check-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex; flex-direction: column;
  gap: 14px;
}
.check-list li {
  display: flex; flex-direction: column;
  padding: 16px 18px 16px 50px;
  background: white;
  border: 1px solid var(--line);
  border-radius: 12px;
  position: relative;
  transition: transform .15s, box-shadow .15s, border-color .15s;
}
.check-list li::before {
  content: "";
  position: absolute; left: 16px; top: 50%;
  transform: translateY(-50%);
  width: 22px; height: 22px;
  background: var(--mint);
  border-radius: 50%;
  display: grid; place-items: center;
}
.check-list li::after {
  content: "✓";
  position: absolute; left: 16px; top: 50%;
  transform: translate(2px, -55%);
  color: white;
  font-size: 13px;
  font-weight: 700;
  width: 22px; height: 22px;
  display: grid; place-items: center;
}
.check-list li:hover {
  border-color: var(--mint);
  box-shadow: 0 8px 20px -12px rgba(5,150,105,.3);
}
.check-list li b {
  font-size: 15px;
  color: var(--ink);
  font-weight: 700;
  margin-bottom: 2px;
}
.check-list li span {
  font-size: 13px;
  color: var(--ink-3);
  line-height: 1.5;
}

/* ═══ CARDS ROW ═══ */
.cards-row {
  display: grid;
  gap: 22px;
  align-items: stretch;
}
.cards-row-3 { grid-template-columns: repeat(3, 1fr); }
.cards-row .card {
  cursor: pointer;
  min-height: 380px;
  display: flex; flex-direction: column;
}
.cards-row .card.with-image {
  display: flex; flex-direction: column;
}
.cards-row .card.with-image .card-image {
  height: 200px;
  min-height: 200px;
  width: 100%;
}
.cards-row .card.with-image .card-body {
  flex: 1;
  display: flex; flex-direction: column;
}
.cards-row .card.with-image .card-foot { margin-top: auto; }
.cards-row .card:not(.with-image) .card-foot { margin-top: auto; }
@media (max-width: 900px) {
  .cards-row-3 { grid-template-columns: 1fr; }
  .calc-grid { grid-template-columns: 1fr; gap: 32px; }
  .calc-grid .sim-card { min-height: 520px; }
}

/* ═══ CTA STRIP ═══ */
.cta-strip {
  padding: 56px 0;
  background: linear-gradient(135deg, var(--ink), var(--ink-2));
  color: white;
  position: relative;
  overflow: hidden;
}
.cta-strip::before {
  content: "";
  position: absolute;
  top: -30%; right: -10%;
  width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(251,146,60,.25), transparent 60%);
  pointer-events: none;
}
.cta-strip::after {
  content: "";
  position: absolute;
  bottom: -40%; left: -10%;
  width: 400px; height: 400px;
  background: radial-gradient(circle, rgba(52,211,153,.18), transparent 60%);
  pointer-events: none;
}
.cta-strip-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 32px; flex-wrap: wrap;
  position: relative;
}
.cta-strip-text { flex: 1; min-width: 280px; }
.cta-strip h2 {
  font-size: clamp(24px, 3vw, 36px);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.1;
  margin: 0 0 6px;
}
.cta-strip h2 em { color: var(--orange); }
.cta-strip p {
  font-size: 15px;
  color: rgba(255,255,255,.7);
  margin: 0;
  max-width: 560px;
}
.cta-strip-btn {
  display: inline-flex; align-items: center; gap: 14px;
  background: var(--orange);
  color: white;
  padding: 18px 22px 18px 28px;
  border-radius: 999px;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.01em;
  transition: transform .15s, box-shadow .15s, background .15s;
  box-shadow: 0 12px 28px -10px rgba(251,146,60,.6);
}
.cta-strip-btn:hover {
  transform: translateY(-2px);
  background: var(--orange-deep);
  box-shadow: 0 16px 36px -10px rgba(234,88,12,.7);
}
.cta-strip-btn .ar {
  width: 32px; height: 32px;
  background: rgba(255,255,255,.22);
  border-radius: 50%;
  display: grid; place-items: center;
  font-family: var(--mono);
  transition: background .15s;
}
.cta-strip-btn:hover .ar { background: white; color: var(--orange-deep); }

/* Backwards-compat: keep old bento styles available but unused */
.slogan-strip {
  padding: 32px 0;
  background: linear-gradient(90deg, var(--mint-soft), var(--sky-soft) 50%, var(--orange-soft));
  border-bottom: 1px solid var(--line);
}
.slogan-strip-inner {
  display: flex;
  align-items: center;
  gap: 24px;
  justify-content: center;
}
.slogan-image {
  width: 64px; height: 64px;
  background-size: contain;
  background-position: center;
  background-repeat: no-repeat;
  flex-shrink: 0;
  border-radius: 12px;
}
.slogan-image:not([style*="url"]) { display: none; }
body.edit-mode .slogan-image:not([style*="url"]) {
  display: flex;
  align-items: center; justify-content: center;
  border: 1.5px dashed var(--ink-3);
  background: rgba(255,255,255,.5);
}
body.edit-mode .slogan-image:not([style*="url"])::before {
  content: "+ Foto";
  font-family: var(--mono);
  font-size: 9px;
  color: var(--ink-3);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  pointer-events: none;
}
.slogan-text { text-align: left; max-width: 720px; }
.slogan-title {
  font-size: clamp(20px, 2.4vw, 28px);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--ink);
  line-height: 1.15;
  text-wrap: balance;
}
.slogan-sub {
  font-size: clamp(13px, 1.2vw, 15px);
  color: var(--ink-3);
  margin-top: 4px;
  font-weight: 500;
}
@media (max-width: 720px) {
  .slogan-strip-inner { flex-direction: column; text-align: center; gap: 14px; }
  .slogan-text { text-align: center; }
}

/* ═══ ADMIN BAR — logo resize controls ═══ */
.logo-size-control {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 0 8px;
  font-family: var(--mono);
  font-size: 11px;
  color: rgba(255,255,255,.7);
}
.logo-size-control button {
  width: 24px; height: 24px;
  background: rgba(255,255,255,.1);
  border: 1px solid rgba(255,255,255,.18);
  color: white;
  border-radius: 6px;
  cursor: pointer;
  font-weight: 700;
  font-size: 14px;
  line-height: 1;
  display: grid; place-items: center;
}
.logo-size-control button:hover { background: rgba(255,255,255,.2); }
#logo-size-display {
  min-width: 38px;
  text-align: center;
  font-weight: 600;
  color: white;
}

/* ─── Footer ─── */
.foot {
  border-top: 1px solid var(--line);
  padding: 36px 0;
  background: white;
}
.foot-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}
.foot-brand {
  display: flex; align-items: center; gap: 18px;
  flex: 1; min-width: 0;
}
.footer-logo-slot {
  width: 90px; height: 50px;
  background-size: contain;
  background-position: left center;
  background-repeat: no-repeat;
  flex-shrink: 0;
  border-radius: 6px;
}
/* Hidden by default if no logo uploaded; visible in edit mode as a placeholder */
.footer-logo-slot:not([style*="url"]) { display: none; }
body.edit-mode .footer-logo-slot:not([style*="url"]) {
  display: flex; align-items: center; justify-content: center;
  border: 1.5px dashed var(--line-2);
  background: var(--bg);
}
body.edit-mode .footer-logo-slot:not([style*="url"])::before {
  content: "+ Logo";
  font-family: var(--mono);
  font-size: 10px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 600;
  pointer-events: none;
}
.foot-meta {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--muted);
  letter-spacing: 0.04em;
}
.foot-links {
  display: flex; gap: 22px;
  font-size: 13px;
  color: var(--ink-3);
}
.foot-links a:hover { color: var(--mint-deep); }

/* ═══════════════════════════════════════════════════════════
   EDIT MODE (admin UI)
   ═══════════════════════════════════════════════════════════ */
.admin-bar {
  position: fixed; top: 0; left: 0; right: 0;
  z-index: 100;
  background: var(--ink);
  color: white;
  padding: 10px 18px;
  display: flex; align-items: center; gap: 14px;
  font-family: var(--sans);
  font-size: 13px;
  box-shadow: 0 4px 24px -4px rgba(15,23,42,.4);
  flex-wrap: wrap;
}
.admin-bar-brand {
  display: flex; align-items: center; gap: 8px;
  font-weight: 600;
  font-size: 12px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.admin-bar-brand .dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--orange);
  box-shadow: 0 0 0 3px rgba(251,146,60,.3);
  animation: pulse 1.6s ease-in-out infinite;
}
.admin-bar .sep {
  width: 1px; height: 22px;
  background: rgba(255,255,255,.18);
}
.admin-btn {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 7px 14px;
  background: rgba(255,255,255,.1);
  border: 1px solid rgba(255,255,255,.18);
  color: white;
  border-radius: 8px;
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
  transition: all .15s;
}
.admin-btn:hover { background: rgba(255,255,255,.18); }
.admin-btn.primary {
  background: var(--orange);
  border-color: var(--orange);
}
.admin-btn.primary:hover { background: var(--orange-deep); }
.admin-btn.danger {
  background: transparent;
  border-color: rgba(239,68,68,.4);
  color: #fca5a5;
}
.admin-btn.danger:hover { background: rgba(239,68,68,.18); }
.admin-status {
  margin-left: auto;
  font-family: var(--mono);
  font-size: 11px;
  color: rgba(255,255,255,.5);
}

body.edit-mode { padding-top: 50px; }
body.edit-mode .topbar { top: 50px; }

/* editable highlighting */
body.edit-mode [data-edit-id] {
  outline: 1px dashed transparent;
  outline-offset: 4px;
  transition: outline-color .15s, background .15s;
  border-radius: 4px;
}
body.edit-mode [data-edit-id]:hover {
  outline-color: var(--orange);
  background: rgba(251,146,60,.07);
}
body.edit-mode [data-edit-id]:focus {
  outline-color: var(--mint-deep);
  background: white;
  outline-style: solid;
  outline-width: 2px;
  box-shadow: 0 0 0 4px rgba(5,150,105,.18);
}

body.edit-mode .editable-img {
  position: relative;
  cursor: pointer;
}
body.edit-mode .editable-img::after {
  content: "📷 Cambia immagine";
  position: absolute; inset: 8px;
  border: 2px dashed var(--orange);
  border-radius: 12px;
  background: rgba(15,23,42,.5);
  color: white;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  opacity: 0;
  transition: opacity .2s;
  pointer-events: none;
  border-radius: inherit;
}
body.edit-mode .editable-img:hover::after { opacity: 1; }

body.edit-mode [data-edit-card] {
  position: relative;
}
body.edit-mode [data-edit-card][draggable="true"]:hover {
  cursor: grab;
}
.card-chrome {
  position: absolute;
  top: 8px; right: 8px;
  z-index: 5;
  display: flex; gap: 4px;
}
.card-chrome button {
  width: 28px; height: 28px;
  border-radius: 50%;
  background: rgba(15,23,42,.85);
  color: white;
  border: 0;
  display: grid; place-items: center;
  cursor: pointer;
  transition: background .15s;
  font-size: 14px;
}
.card-chrome button:hover { background: var(--ink); }
.card-chrome button.hide-btn:hover { background: var(--orange-deep); }
body.edit-mode [data-edit-card].is-hidden {
  opacity: 0.35;
  filter: grayscale(0.7);
}

/* color picker */
.color-popover {
  position: fixed;
  top: 64px; right: 18px;
  z-index: 99;
  background: white;
  border-radius: 16px;
  padding: 18px;
  box-shadow: 0 24px 60px -16px rgba(15,23,42,.3);
  border: 1px solid var(--line);
  width: 320px;
  max-width: calc(100vw - 36px);
  display: none;
}
.color-popover.open { display: block; animation: pop .2s ease-out; }
@keyframes pop {
  from { opacity: 0; transform: translateY(-8px); }
  to { opacity: 1; transform: translateY(0); }
}
.color-popover h4 {
  margin: 0 0 12px;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
}
.color-row {
  margin-bottom: 14px;
}
.color-row label {
  display: block;
  font-size: 12px;
  color: var(--ink-2);
  margin-bottom: 6px;
  font-weight: 500;
}
.color-swatches {
  display: flex; gap: 8px; flex-wrap: wrap;
}
.color-swatch {
  width: 34px; height: 34px;
  border-radius: 10px;
  cursor: pointer;
  border: 2px solid transparent;
  transition: transform .12s, border-color .15s;
}
.color-swatch:hover { transform: scale(1.1); }
.color-swatch.active {
  border-color: var(--ink);
  box-shadow: 0 0 0 3px white inset;
}

/* ═══════════════════════════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════════════════════════ */
@media (max-width: 1080px) {
  .bento {
    grid-template-columns: repeat(4, 1fr);
    grid-auto-rows: minmax(190px, auto);
  }
  .sim-card { grid-column: span 4; grid-row: span 2; }
  .card.size-2x2 { grid-column: span 2; grid-row: span 2; }
  .card.size-3x1, .card.size-3x2 { grid-column: span 2; }
  .card.size-2x1 { grid-column: span 2; }
  .card.size-4x1, .card.size-4x2 { grid-column: span 4; }
  .card.size-6x1 { grid-column: span 4; }
}
@media (max-width: 720px) {
  .shell { padding: 0 18px; }
  .topbar-inner { padding: 0 18px; gap: 12px; }
  .top-nav { display: none; }
  .hero { padding: 100px 18px 80px; }
  .hero-bg-img { width: 100%; opacity: 0.1; }
  .section-calc, .section-cards { padding: 56px 0; }
  .section-head { margin-bottom: 32px; }
  .calc-grid { gap: 24px; }
  .bento {
    grid-template-columns: 1fr;
    grid-auto-rows: auto;
  }
  .card, .sim-card,
  .card.size-2x2, .card.size-3x1, .card.size-3x2,
  .card.size-2x1, .card.size-4x1, .card.size-4x2,
  .card.size-6x1, .card.size-2x3 {
    grid-column: span 1;
    grid-row: auto;
    min-height: 200px;
  }
  .card.with-image .card-image { height: 180px; }
  .drawer { width: 100vw; }
  .drawer-head, .drawer-body { padding-left: 22px; padding-right: 22px; }
  .assistant-text { display: none; }
  .assistant-btn { padding: 12px; }
  .prompt input { font-size: 15px; }
  .chip { font-size: 12px; padding: 8px 12px; }
  .top-phone { display: none; }
  .drawer-stat-row { grid-template-columns: 1fr; }
  .sim-metrics { grid-template-columns: 1fr; }
  .admin-bar { font-size: 11px; padding: 8px 12px; }
  .admin-btn { padding: 6px 10px; font-size: 11px; }
}


/* ═══════════════ DROPDOWN RISULTATI RICERCA ═══════════════ */
.prompt-wrap { position: relative; }
.prompt-results {
  position: absolute;
  top: calc(100% + 8px);
  left: 0; right: 0;
  background: white;
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: 0 24px 48px -16px rgba(15,23,42,.22);
  z-index: 50;
  max-height: 480px;
  overflow-y: auto;
  display: none;
  text-align: left;
}
.prompt-results.is-open { display: block; animation: pop .2s ease-out; }
@keyframes pop {
  from { opacity: 0; transform: translateY(-6px); }
  to   { opacity: 1; transform: translateY(0); }
}
.prompt-results-head {
  padding: 12px 18px;
  font-family: var(--mono);
  font-size: 11px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 600;
  border-bottom: 1px solid var(--line);
}
.prompt-results-head b { color: var(--orange-deep); font-weight: 700; }
.prompt-result {
  display: grid;
  grid-template-columns: auto 1fr auto;
  grid-template-rows: auto auto;
  column-gap: 12px;
  row-gap: 4px;
  padding: 14px 18px;
  text-decoration: none;
  color: var(--ink);
  border-bottom: 1px solid var(--line);
  transition: background .12s;
}
.prompt-result:last-child { border-bottom: 0; }
.prompt-result:hover { background: var(--bg-2); }
.prompt-result-sec {
  grid-column: 1; grid-row: 1;
  font-family: var(--mono);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 700;
  color: var(--mint-deep);
  background: var(--mint-soft);
  padding: 3px 9px;
  border-radius: 999px;
  align-self: start;
  white-space: nowrap;
}
.prompt-result-title {
  grid-column: 2; grid-row: 1;
  font-weight: 700;
  font-size: 14.5px;
  letter-spacing: -0.01em;
  color: var(--ink);
}
.prompt-result-body {
  grid-column: 1 / 3; grid-row: 2;
  font-size: 12.5px;
  color: var(--ink-3);
  line-height: 1.45;
}
.prompt-result-ar {
  grid-column: 3; grid-row: 1 / 3;
  align-self: center;
  font-family: var(--mono);
  color: var(--orange-deep);
  font-weight: 700;
  font-size: 16px;
  padding-left: 10px;
}
.prompt-result mark {
  background: rgba(251,146,60,.25);
  color: inherit;
  padding: 1px 3px;
  border-radius: 3px;
  font-weight: 600;
}
@media (max-width: 600px) {
  .prompt-result { grid-template-columns: 1fr auto; }
  .prompt-result-sec { grid-column: 1; grid-row: 1; }
  .prompt-result-title { grid-column: 1; grid-row: 2; }
  .prompt-result-body { grid-column: 1 / 3; grid-row: 3; }
  .prompt-result-ar { grid-column: 2; grid-row: 1 / 3; }
}
