@font-face {
  font-family: "Bricolage";
  src: url("/fonts/bricolage.woff2") format("woff2-variations");
  font-weight: 200 800;
  font-stretch: 75% 100%;
  font-display: swap;
}
@font-face {
  font-family: "Instrument Sans";
  src: url("/fonts/instrument-sans.woff2") format("woff2-variations");
  font-weight: 400 700;
  font-stretch: 75% 100%;
  font-display: swap;
}

:root {
  --night: #191a3e;
  --night-2: #23255a;
  --porcelain: #f3f4f8;
  --white: #ffffff;
  --cobalt: #3346f0;
  --cobalt-deep: #2232c4;
  --marigold: #ffb224;
  --marigold-deep: #d98a00;
  --mint: #12a382;
  --ink: var(--night);
  --ink-soft: #5a5c7e;
  --line: #dcdeea;
  --line-strong: #c3c6da;
  --err: #c0142f;
  --ok: #0d7d63;
  --focus: #3346f0;
  --accent: var(--night);
  --accent-ink: #fff;
  --accent-deep: #000;
  --display: "Bricolage", "Avenir Next", "Segoe UI", system-ui, sans-serif;
  --body: "Instrument Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --r-s: 10px;
  --r-m: 16px;
  --r-l: 28px;
  --wrap: 1160px;
  --gutter: 16px;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--porcelain);
  color: var(--ink);
  font: 400 17px/1.6 var(--body);
  font-stretch: 100%;
  -webkit-font-smoothing: antialiased;
}
img, svg, iframe, canvas { max-width: 100%; }
a { color: inherit; text-underline-offset: 3px; text-decoration-thickness: 1.5px; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; border-radius: 6px; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

h1, h2, h3 { font-family: var(--display); margin: 0 0 .45em; color: var(--ink); text-wrap: balance; }
h1 { font-size: clamp(2.5rem, 7.4vw, 4.6rem); font-weight: 800; font-stretch: 82%; line-height: .98; letter-spacing: -0.025em; }
h2 { font-size: clamp(1.8rem, 4.6vw, 2.8rem); font-weight: 750; font-stretch: 86%; line-height: 1.04; letter-spacing: -0.02em; }
h3 { font-size: 1.22rem; font-weight: 700; line-height: 1.2; letter-spacing: -0.01em; }
p { margin: 0 0 1em; max-width: 64ch; }
.lead { font-size: clamp(1.06rem, 2.2vw, 1.22rem); color: var(--ink-soft); }
.muted { color: var(--ink-soft); }
.small { font-size: .9rem; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
@media (min-width: 720px) { :root { --gutter: 28px; } }
.section { padding: 72px 0; }
@media (min-width: 900px) { .section { padding: 104px 0; } }
.section--tint { background: var(--white); }
.section--night { background: var(--night); color: #e8e9ff; }
.section--night h2, .section--night h3 { color: #fff; }
.section--night .lead { color: #b9bbe6; }
.section-head { display: grid; gap: 8px; margin-bottom: 36px; }
.section-head p { margin: 0; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 20; background: color-mix(in srgb, var(--porcelain) 88%, transparent); backdrop-filter: saturate(1.4) blur(10px); -webkit-backdrop-filter: saturate(1.4) blur(10px); }
.site-header .wrap { display: flex; align-items: center; gap: 12px; height: 66px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font: 750 1.08rem/1 var(--display); font-stretch: 90%; letter-spacing: -0.01em; }
.brand svg { width: 34px; height: 34px; flex: none; }
.site-nav { margin-left: auto; display: flex; align-items: center; gap: 2px; }
.site-nav a { text-decoration: none; padding: 9px 12px; border-radius: 999px; font-weight: 600; font-size: .95rem; }
.site-nav a:hover { background: #e4e6f1; }
.lang-toggle { margin-left: 6px; border: 1.5px solid var(--line-strong); background: var(--white); color: var(--ink); border-radius: 999px; min-height: 36px; padding: 0 12px; font: 700 .82rem/1 var(--body); cursor: pointer; }
.lang-toggle:hover { border-color: var(--ink); }
@media (max-width: 640px) { .site-nav .hide-sm { display: none; } }

/* Buttons: pressable keys */
.btn {
  --b: var(--night); --b-ink: #fff; --b-deep: #000;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 50px; padding: 12px 24px; border-radius: 999px; border: 0;
  background: var(--b); color: var(--b-ink); box-shadow: 0 4px 0 var(--b-deep);
  font: 700 1rem/1.1 var(--body); text-decoration: none; cursor: pointer;
  transform: translateY(0); transition: transform .08s ease, box-shadow .08s ease, filter .15s ease;
}
.btn:hover { filter: brightness(1.08); }
.btn:active { transform: translateY(3px); box-shadow: 0 1px 0 var(--b-deep); }
.btn:disabled { opacity: .5; cursor: not-allowed; transform: none; box-shadow: 0 4px 0 var(--b-deep); }
.btn--ghost { --b: transparent; --b-ink: var(--ink); box-shadow: inset 0 0 0 1.5px var(--line-strong); }
.btn--ghost:hover { box-shadow: inset 0 0 0 1.5px var(--ink); filter: none; }
.btn--ghost:active { transform: none; box-shadow: inset 0 0 0 1.5px var(--ink); }
.btn--gift, .btn--sun { --b: var(--marigold); --b-ink: var(--night); --b-deep: var(--marigold-deep); }
.btn--biz { --b: var(--cobalt); --b-ink: #fff; --b-deep: #1a2496; }
.btn--small { min-height: 38px; padding: 7px 16px; font-size: .9rem; box-shadow: inset 0 0 0 1.5px var(--line-strong); }
.btn--small:not(.btn--ghost) { box-shadow: 0 3px 0 var(--b-deep); }

/* Hero */
.hero { padding: 28px 0 72px; overflow: hidden; }
@media (min-width: 960px) { .hero { padding: 56px 0 112px; } }
.hero__grid { display: grid; gap: 34px; align-items: center; }
@media (min-width: 960px) { .hero__grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1.02fr); gap: 56px; } }
.hero h1 { max-width: 11ch; }
.hero .lead { max-width: 44ch; }
.hero__copy { display: grid; align-content: start; }
@media (max-width: 959px) { .hero__grid { gap: 20px; } .hero__copy { display: contents; } .hero h1, .hero .lead { order: 0; margin-bottom: 0; } .hero__console { order: 1; margin: 6px 0; } .hero__try { order: 2; margin-top: 0; } }

.try { margin-top: 10px; padding: 20px; background: var(--white); border: 1px solid var(--line); border-radius: var(--r-l); display: grid; gap: 14px; max-width: 520px; }
.try label { font-weight: 700; }
.try__row { display: flex; gap: 10px; flex-wrap: wrap; }
.try__row input { flex: 1 1 180px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { position: relative; }
.chip input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.chip span, button.chip {
  display: inline-flex; align-items: center; min-height: 40px; padding: 8px 15px; border-radius: 999px;
  border: 1.5px solid var(--line-strong); background: var(--white); color: var(--ink);
  font: 600 .93rem/1.15 var(--body); cursor: pointer; text-align: left;
}
.chip input:checked + span { background: var(--night); border-color: var(--night); color: #fff; }
.chip input:focus-visible + span { outline: 3px solid var(--focus); outline-offset: 2px; }
button.chip:hover, .chip span:hover { border-color: var(--ink); }

/* The console */
.console {
  position: relative; margin: 0 auto; width: min(100%, 560px);
  padding: 18px 18px 22px; border-radius: 34px 34px 46px 46px;
  background: linear-gradient(160deg, #262860 0%, var(--night) 55%, #131433 100%);
  box-shadow: 0 30px 60px -28px rgba(25, 26, 62, .65), inset 0 1px 0 rgba(255,255,255,.12);
  transform: rotate(-1.5deg);
}
@media (prefers-reduced-motion: no-preference) {
  .console { animation: console-in .7s cubic-bezier(.2,.9,.25,1.15) both; }
}
@keyframes console-in { from { transform: translateY(26px) rotate(2deg); opacity: 0; } to { transform: rotate(-1.5deg); opacity: 1; } }
.console__screen { position: relative; aspect-ratio: 4 / 3; border-radius: 16px; overflow: hidden; background: #0f1133; box-shadow: inset 0 0 0 3px #0b0c26; cursor: pointer; }
.console__screen canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.console__title { position: absolute; left: 0; right: 0; top: 9%; text-align: center; padding: 0 8%; pointer-events: none; color: #fff; }
.console__title strong { display: block; font: 800 clamp(1.5rem, 5.4vw, 2.6rem)/1 var(--display); font-stretch: 78%; letter-spacing: -0.02em; text-shadow: 0 3px 0 rgba(0,0,0,.35); overflow-wrap: anywhere; }
.console__title span { display: block; margin-top: 6px; font: 600 clamp(.85rem, 2.4vw, 1.05rem)/1.2 var(--body); color: #ffd27a; }
.console__hint { position: absolute; bottom: 8px; left: 0; right: 0; text-align: center; font: 600 .76rem/1 var(--body); color: rgba(255,255,255,.62); pointer-events: none; }
.console__pad { display: flex; align-items: center; justify-content: space-between; padding: 18px 12px 0; }
.dpad { position: relative; width: 66px; height: 66px; }
.dpad::before, .dpad::after { content: ""; position: absolute; background: #0c0d29; border-radius: 6px; box-shadow: inset 0 -2px 0 rgba(255,255,255,.06); }
.dpad::before { left: 22px; top: 0; width: 22px; height: 66px; }
.dpad::after { top: 22px; left: 0; width: 66px; height: 22px; }
.console__brand { font: 700 .74rem/1.2 var(--display); color: rgba(255,255,255,.45); text-align: center; letter-spacing: .02em; }
.console__keys { display: flex; gap: 12px; transform: rotate(-18deg); }
.key { width: 46px; height: 46px; border-radius: 50%; border: 0; cursor: pointer; font: 800 .95rem/1 var(--display); color: var(--night); box-shadow: 0 4px 0 rgba(0,0,0,.45); transition: transform .06s, box-shadow .06s; }
.key:active, .key.is-down { transform: translateY(3px); box-shadow: 0 1px 0 rgba(0,0,0,.45); }
.key--a { background: var(--marigold); }
.key--b { background: #8e98ff; }

/* Steps: a real sequence */
.steps { list-style: none; padding: 0; margin: 0; display: grid; gap: 28px; counter-reset: step; position: relative; }
@media (min-width: 860px) {
  .steps { grid-template-columns: repeat(4, 1fr); gap: 24px; }
  .steps::before { content: ""; position: absolute; top: 22px; left: 22px; right: 12%; border-top: 2px dashed var(--line-strong); }
}
.steps li { counter-increment: step; position: relative; padding-left: 62px; }
@media (min-width: 860px) { .steps li { padding: 64px 8px 0 0; } }
.steps li::before {
  content: counter(step); position: absolute; left: 0; top: 0; display: grid; place-items: center;
  width: 46px; height: 46px; border-radius: 14px; background: var(--white); border: 1.5px solid var(--line-strong);
  font: 800 1.15rem/1 var(--display); color: var(--ink);
}
.steps li:last-child::before { background: var(--marigold); border-color: var(--marigold); }
.steps h3 { margin-bottom: .35em; }
.steps p { margin: 0; color: var(--ink-soft); font-size: .98rem; }

/* Price list: a menu, not a card grid */
.menus { display: grid; gap: 28px; }
@media (min-width: 900px) { .menus { grid-template-columns: 1.15fr 1fr; gap: 32px; align-items: start; } }
.menu { background: var(--white); border-radius: var(--r-l); padding: 26px 22px; border: 1px solid var(--line); }
@media (min-width: 640px) { .menu { padding: 34px 34px 30px; } }
.menu--biz { background: var(--night); color: #e8e9ff; border-color: var(--night); }
.menu--biz h3, .menu--biz .menu__name { color: #fff; }
.menu__head { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.menu__head h3 { margin: 0; font-size: 1.4rem; }
.swatch { width: 14px; height: 14px; border-radius: 4px; flex: none; transform: rotate(45deg); }
.swatch--gift { background: var(--marigold); }
.swatch--biz { background: #8e98ff; }
.menu__item { padding: 18px 0; border-top: 1px solid var(--line); }
.menu--biz .menu__item { border-color: rgba(255,255,255,.14); }
.menu__line { display: flex; align-items: baseline; gap: 10px; }
.menu__name { font: 750 1.3rem/1.2 var(--display); font-stretch: 88%; margin: 0; }
.menu__dots { flex: 1; border-bottom: 2px dotted var(--line-strong); transform: translateY(-5px); min-width: 20px; }
.menu--biz .menu__dots { border-color: rgba(255,255,255,.25); }
.menu__price { font: 800 1.5rem/1 var(--display); margin: 0; white-space: nowrap; }
.menu__desc { margin: 6px 0 12px; color: var(--ink-soft); font-size: .97rem; }
.menu--biz .menu__desc { color: #b9bbe6; }
.menu__tag { display: inline-block; margin-left: 8px; padding: 3px 9px; border-radius: 999px; background: #fff1d2; color: #7a4a00; font: 700 .76rem/1.2 var(--body); vertical-align: middle; }
.menu__foot { margin: 16px 0 0; font-size: .9rem; color: var(--ink-soft); }
.menu--biz .menu__foot { color: #b9bbe6; }
.menu--biz a { color: #fff; }

/* Gallery: little screens */
.gallery { display: grid; gap: 22px; grid-template-columns: 1fr; }
@media (min-width: 640px) { .gallery { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 980px) { .gallery--full { grid-template-columns: repeat(3, 1fr); } }
.game-card { color: var(--ink); display: flex; flex-direction: column; text-decoration: none; background: var(--white); border-radius: var(--r-l); padding: 12px 12px 18px; border: 1px solid var(--line); transition: transform .18s ease; }
.game-card:hover { transform: translateY(-3px) rotate(-.5deg); }
.game-card__screen {
  aspect-ratio: 16 / 10; display: grid; place-items: center; padding: 18px; text-align: center; border-radius: 18px;
  font: 800 clamp(1.3rem, 3vw, 1.6rem)/1.05 var(--display); font-stretch: 80%; color: #fff; text-wrap: balance;
  background: var(--night); position: relative; overflow: hidden;
}
.game-card__screen::after { content: "Gioca"; position: absolute; right: 12px; bottom: 12px; padding: 6px 12px; border-radius: 999px; background: var(--marigold); color: var(--night); font: 700 .8rem/1 var(--body); }
html[lang="en"] .game-card__screen::after { content: "Play"; }
.game-card__screen--gift { background: radial-gradient(circle at 20% 110%, #ff9f1c 0 22%, transparent 23%), radial-gradient(circle at 85% 0%, #ffcf6b 0 16%, transparent 17%), #2b2d72; }
.game-card__screen--business { background: radial-gradient(circle at 80% 115%, #8e98ff 0 26%, transparent 27%), radial-gradient(circle at 10% 0%, #3346f0 0 18%, transparent 19%), var(--night); }
.game-card__body { padding: 14px 8px 0; }
.game-card__body p { margin: 0; color: var(--ink-soft); font-size: .96rem; }
.tag { display: inline-block; font-size: .8rem; font-weight: 700; padding: 3px 10px; border-radius: 999px; background: var(--porcelain); margin-bottom: 8px; }

/* FAQ */
.faq-grid { display: grid; gap: 24px; }
@media (min-width: 900px) { .faq-grid { grid-template-columns: .8fr 1.2fr; gap: 48px; } }
.faq details { border-bottom: 1px solid var(--line); padding: 18px 0; }
.faq details:first-child { border-top: 1px solid var(--line); }
.faq summary { cursor: pointer; font-weight: 700; font-size: 1.06rem; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; flex: none; width: 28px; height: 28px; border-radius: 50%; background: var(--porcelain) center / 12px no-repeat url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M6 1v10M1 6h10' stroke='%23191a3e' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E"); transition: transform .2s ease; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { margin: 10px 0 0; color: var(--ink-soft); }

/* Footer */
.site-footer { background: var(--night); color: #c9cbf0; padding: 56px 0 60px; }
.site-footer .brand { color: #fff; }
.site-footer a { color: #fff; }
.footer-links { display: flex; flex-wrap: wrap; gap: 10px 22px; padding: 0; margin: 22px 0; list-style: none; font-size: .95rem; }
.site-footer p { font-size: .9rem; color: #a9abd8; }

/* Page head */
.page-head { padding: 30px 0 4px; }
@media (min-width: 900px) { .page-head { padding: 52px 0 12px; } }
.page-head h1 { font-size: clamp(2.2rem, 6vw, 3.6rem); max-width: 16ch; }
.theme-gift { --accent: var(--marigold); --accent-ink: var(--night); --accent-deep: var(--marigold-deep); }
.theme-biz { --accent: var(--cobalt); --accent-ink: #fff; --accent-deep: #1a2496; }

/* Forms */
.form-layout { display: grid; gap: 24px; grid-template-columns: 1fr; padding: 22px 0 80px; }
@media (min-width: 980px) { .form-layout { grid-template-columns: minmax(0, 1fr) 330px; align-items: start; gap: 32px; } }
.panel { background: var(--white); border: 1px solid var(--line); border-radius: var(--r-l); padding: 22px 18px; }
@media (min-width: 640px) { .panel { padding: 34px 36px; } }

.progress { display: flex; gap: 6px; list-style: none; padding: 0; margin: 0 0 30px; }
.progress li { flex: 1 1 0; min-width: 0; }
.progress button { width: 100%; border: 0; background: none; padding: 0; cursor: pointer; text-align: left; color: var(--ink-soft); font: 600 .78rem/1.25 var(--body); }
.progress button::before { content: ""; display: block; height: 8px; border-radius: 4px; background: var(--porcelain); box-shadow: inset 0 0 0 1px var(--line); margin-bottom: 8px; transition: background .25s ease; }
.progress [aria-current="step"] { color: var(--ink); }
.progress [aria-current="step"]::before { background: var(--accent); box-shadow: none; }
.progress .done::before { background: var(--night); box-shadow: none; }
.progress button:disabled { cursor: default; }
@media (max-width: 600px) { .progress button span:not(.visually-hidden) { display: none; } .progress [aria-current="step"] span:not(.visually-hidden) { display: block; white-space: nowrap; } .progress li:has([aria-current="step"]) { flex: 3 1 0; } }

.form-step h2 { font-size: clamp(1.7rem, 4.4vw, 2.3rem); }
.field { margin-bottom: 20px; }
.field > label, .field > .label, fieldset legend { display: block; font-weight: 700; margin-bottom: 8px; padding: 0; }
.hint { display: block; font-size: .88rem; color: var(--ink-soft); margin-top: 6px; }
input[type=text], input[type=email], input[type=url], input[type=date], input[type=search], select, textarea {
  width: 100%; min-height: 50px; padding: 12px 14px; border: 1.5px solid var(--line-strong); border-radius: var(--r-s);
  background: var(--white); color: var(--ink); font: inherit; font-size: 1rem;
}
textarea { min-height: 116px; resize: vertical; line-height: 1.5; }
input:focus, select:focus, textarea:focus { border-color: var(--night); outline: 3px solid color-mix(in srgb, var(--focus) 28%, transparent); outline-offset: 0; }
.invalid input, .invalid select, .invalid textarea, input.invalid, textarea.invalid, select.invalid { border-color: var(--err); }
.field-error { display: block; color: var(--err); font-size: .88rem; font-weight: 600; margin-top: 6px; }
fieldset { border: 0; padding: 0; margin: 0 0 24px; min-width: 0; }
.grid-2 { display: grid; gap: 0 16px; grid-template-columns: 1fr; }
@media (min-width: 640px) { .grid-2 { grid-template-columns: 1fr 1fr; } }

.choices { display: grid; gap: 10px; grid-template-columns: repeat(auto-fill, minmax(148px, 1fr)); }
.choice { position: relative; }
.choice input { position: absolute; opacity: 0; inset: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; z-index: 1; }
.choice > span { position: relative; display: flex; flex-direction: column; justify-content: center; gap: 2px; height: 100%; min-height: 56px; padding: 11px 15px; border: 1.5px solid var(--line-strong); border-radius: 14px; background: var(--white); font-weight: 650; transition: border-color .15s ease, background .15s ease; }
.choice:hover > span { border-color: var(--night); }
.choice small { font-weight: 400; color: var(--ink-soft); font-size: .85rem; line-height: 1.3; }
.choice input:checked + span { border-color: var(--night); background: color-mix(in srgb, var(--accent) 14%, #fff); box-shadow: inset 0 0 0 1px var(--night); }
.choice input:checked + span::after { content: ""; position: absolute; top: -7px; right: -7px; width: 22px; height: 22px; border-radius: 50%; background: var(--night) center / 12px no-repeat url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M2 6.5l2.5 2.5L10 3.5' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); }
.choice input:focus-visible + span { outline: 3px solid var(--focus); outline-offset: 2px; }
.choices--tiers { grid-template-columns: 1fr; }
@media (min-width: 680px) { .choices--tiers { grid-template-columns: repeat(3, 1fr); } }
.choices--tiers .choice > span { min-height: 150px; justify-content: flex-start; gap: 6px; padding: 18px; }
.choices--tiers strong { font: 750 1.45rem/1.1 var(--display); font-stretch: 88%; }
.choices--tiers em { font: 800 1.2rem/1 var(--display); font-style: normal; }

.check { display: flex; gap: 12px; align-items: flex-start; margin-bottom: 14px; }
.check input { width: 22px; height: 22px; margin: 2px 0 0; flex: none; accent-color: var(--night); }
.check label { font-weight: 400; }

.repeat-row { display: grid; grid-template-columns: 1fr 1fr auto; gap: 8px; margin-bottom: 8px; align-items: center; }
.icon-btn { min-width: 46px; min-height: 46px; border: 1.5px solid var(--line-strong); border-radius: var(--r-s); background: var(--white); cursor: pointer; font-size: 1.2rem; color: var(--ink); }
.colors { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.colors input[type=color] { width: 58px; height: 50px; border: 1.5px solid var(--line-strong); border-radius: var(--r-s); padding: 4px; background: var(--white); cursor: pointer; }
.logo-preview { display: flex; align-items: center; gap: 14px; margin-top: 10px; }
.logo-preview img { max-height: 72px; max-width: 160px; border: 1.5px dashed var(--line-strong); border-radius: var(--r-s); padding: 6px; background: var(--white); }

.step-nav { display: flex; justify-content: space-between; gap: 12px; margin-top: 30px; flex-wrap: wrap; }
.step-nav .btn:last-child { margin-left: auto; }
.step-nav .btn[data-next], .step-nav [type=submit] { --b: var(--accent); --b-ink: var(--accent-ink); --b-deep: var(--accent-deep); }

/* Game mode switch + analyst chat */
.mode-switch { display: grid; gap: 10px; grid-template-columns: 1fr; margin-bottom: 22px; }
@media (min-width: 560px) { .mode-switch { grid-template-columns: 1fr 1fr; } }
.mode-switch .choice > span { min-height: 84px; padding: 14px 18px 14px 62px; }
.mode-switch .choice > span::before { content: ""; position: absolute; left: 16px; top: 50%; width: 32px; height: 32px; margin-top: -16px; border-radius: 10px; background: var(--porcelain) center / 20px no-repeat; }
.mode-switch .mode--list > span::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='%23191a3e'%3E%3Crect x='2' y='2' width='7' height='7' rx='2'/%3E%3Crect x='11' y='2' width='7' height='7' rx='2'/%3E%3Crect x='2' y='11' width='7' height='7' rx='2'/%3E%3Crect x='11' y='11' width='7' height='7' rx='2' opacity='.35'/%3E%3C/svg%3E"); }
.mode-switch .mode--talk > span::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='%23191a3e'%3E%3Cpath d='M3 4.5A2.5 2.5 0 0 1 5.5 2h9A2.5 2.5 0 0 1 17 4.5v6a2.5 2.5 0 0 1-2.5 2.5H9l-4 4v-4h0.5A2.5 2.5 0 0 1 3 10.5z'/%3E%3C/svg%3E"); }
.mode-switch strong { font-size: 1.02rem; }

.chat { border-radius: 22px; background: var(--porcelain); border: 1px solid var(--line); padding: 16px; display: grid; gap: 12px; margin-bottom: 24px; }
@media (min-width: 640px) { .chat { padding: 20px 22px; } }
.chat__log { display: grid; gap: 10px; }
.msg { display: flex; gap: 10px; align-items: flex-end; max-width: 92%; }
.msg__avatar { flex: none; width: 34px; height: 34px; border-radius: 11px; background: var(--night); display: grid; place-items: center; }
.msg__avatar svg { width: 22px; height: 22px; }
.msg__bubble { padding: 11px 15px; border-radius: 18px 18px 18px 6px; background: var(--white); border: 1px solid var(--line); line-height: 1.45; }
.msg--me { margin-left: auto; flex-direction: row-reverse; }
.msg--me .msg__bubble { background: var(--night); color: #fff; border-color: var(--night); border-radius: 18px 18px 6px 18px; }
@media (prefers-reduced-motion: no-preference) { .msg { animation: msg-in .22s ease-out both; } }
@keyframes msg-in { from { opacity: 0; transform: translateY(6px); } }
.msg--typing .msg__bubble { display: inline-flex; gap: 5px; padding: 15px 16px; }
.msg--typing i { width: 7px; height: 7px; border-radius: 50%; background: var(--ink-soft); animation: blink 1s infinite ease-in-out; }
.msg--typing i:nth-child(2) { animation-delay: .15s; }
.msg--typing i:nth-child(3) { animation-delay: .3s; }
@keyframes blink { 0%, 80%, 100% { opacity: .25; } 40% { opacity: 1; } }
.chat__chips { padding-left: 44px; }
.chat__input { display: flex; gap: 8px; align-items: flex-end; }
.chat__input textarea { min-height: 50px; height: 50px; resize: none; border-radius: 16px; }
.chat__input .btn { flex: none; min-height: 50px; padding: 0 20px; }
.proposal { margin-left: 44px; background: var(--white); border-radius: 20px; border: 1.5px solid var(--night); padding: 20px 20px 18px; box-shadow: 0 6px 0 var(--night); }
@media (max-width: 560px) { .proposal { margin-left: 0; } }
.proposal--old { border-color: var(--line-strong); box-shadow: none; opacity: .62; }
.proposal--approved { border-color: var(--mint); box-shadow: 0 6px 0 var(--mint); }
.proposal__kicker { margin: 0 0 4px; font-size: .85rem; font-weight: 600; color: var(--ink-soft); }
.proposal h3 { font-size: clamp(1.35rem, 3.6vw, 1.7rem); font-stretch: 84%; margin-bottom: .3em; }
.proposal__pitch { margin-bottom: 12px; font-size: 1.02rem; }
.proposal dl { margin: 0; display: grid; gap: 10px; }
.proposal__row { display: grid; gap: 2px; }
@media (min-width: 640px) { .proposal__row { grid-template-columns: 140px 1fr; gap: 14px; } }
.proposal dt { font-weight: 700; font-size: .9rem; }
.proposal dd { margin: 0; color: var(--ink-soft); font-size: .96rem; }
.proposal dd ul { margin: 0; padding-left: 1.1em; }
.proposal__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: 16px; }
.proposal__approve { --b: var(--mint); --b-ink: #fff; --b-deep: #0b6b55; }
.proposal__ok { font-weight: 700; color: var(--ok); }

/* Order summary: the cartridge label */
.summary { position: sticky; top: 86px; padding: 14px 14px 22px; }
.summary__screen { border-radius: 18px; background: var(--night); color: #fff; padding: 22px 18px; margin-bottom: 18px; min-height: 128px; display: grid; align-content: center; text-align: center; position: relative; overflow: hidden; }
.summary__screen::before { content: ""; position: absolute; inset: auto -20% -60% -20%; height: 80%; background: radial-gradient(closest-side, color-mix(in srgb, var(--accent) 55%, transparent), transparent); }
.summary__screen strong { position: relative; display: block; font: 800 1.5rem/1.05 var(--display); font-stretch: 80%; overflow-wrap: anywhere; }
.summary__screen span { position: relative; display: block; margin-top: 6px; font-size: .88rem; color: #c9cbf0; }
.summary h3 { margin: 0 8px 10px; font-size: 1.05rem; }
.summary dl { margin: 0 8px; display: grid; grid-template-columns: auto 1fr; gap: 7px 12px; font-size: .94rem; }
.summary dt { color: var(--ink-soft); }
.summary dd { margin: 0; text-align: right; font-weight: 600; overflow-wrap: anywhere; }
.summary .total { display: flex; justify-content: space-between; border-top: 1px dashed var(--line-strong); margin: 16px 8px 8px; padding-top: 14px; font: 800 1.35rem/1.2 var(--display); }
.summary > .small { margin: 0 8px; }

.alert { padding: 14px 16px; border-radius: var(--r-m); margin: 0 0 18px; font-weight: 600; }
.alert--error { background: #fde8ec; color: var(--err); }
.alert--info { background: #e9ebff; color: var(--ink); }
.alert--ok { background: #e1f5ee; color: var(--ok); }
.alert[hidden] { display: none; }

/* Status page */
.status-card { max-width: 660px; margin: 48px auto 96px; }
.status-pill { display: inline-block; padding: 6px 14px; border-radius: 999px; background: var(--marigold); color: var(--night); font-weight: 700; margin-bottom: 14px; }
.spinner { width: 28px; height: 28px; border: 4px solid var(--line); border-top-color: var(--night); border-radius: 50%; animation: spin 1s linear infinite; display: inline-block; vertical-align: middle; }
@keyframes spin { to { transform: rotate(360deg); } }

/* Preview */
.preview-frame { width: 100%; height: min(78vh, 820px); border: 0; border-radius: var(--r-l); background: #000; display: block; box-shadow: 0 0 0 10px var(--night); margin-top: 10px; }
.preview-actions { display: grid; gap: 18px; margin: 28px 0 72px; }
@media (min-width: 860px) { .preview-actions { grid-template-columns: 1fr 1fr; } }

.cta-band { display: grid; gap: 18px; align-items: center; }
@media (min-width: 860px) { .cta-band { grid-template-columns: 1fr auto; } }
.cta-band__actions { display: flex; gap: 12px; flex-wrap: wrap; }

.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
