/* ==========================================================================
   Digital Benefit — Design System
   Warm consumer edition: product first, philosophy second.
   Two typefaces, no monospace, no section numbering.
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Fraunces:ital,opsz,wght@0,9..144,400;0,9..144,500;0,9..144,600;0,9..144,700;1,9..144,400;1,9..144,600&family=Plus+Jakarta+Sans:ital,wght@0,400;0,500;0,600;0,700;1,400&display=swap');

:root {
  /* Warm ink — dark is the default */
  --bg:        #100F0D;
  --bg-2:      #17150F;
  --surface:   #1E1B15;
  --surface-2: #26221B;
  --line:      rgba(255, 255, 255, 0.10);
  --line-soft: rgba(255, 255, 255, 0.06);
  --veil:      rgba(16, 15, 13, 0.82);

  --text:   #F6F2EA;
  --muted:  #ABA396;
  --faint:  #766F64;
  --on-accent: #120F0A;

  /* Brand + product identities */
  --sage:  #6CC79A;
  --amber: #EC9A4E;
  --coral: #EF6E54;

  --accent: var(--sage);
  --accent-wash: rgba(108, 199, 154, 0.12);

  --font-display: 'Fraunces', Georgia, 'Times New Roman', serif;
  --font-body: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;

  --radius: 18px;
  --radius-lg: 28px;
  --max: 1180px;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

[data-theme="light"] {
  --bg:        #FBF7F0;
  --bg-2:      #FFFFFF;
  --surface:   #F3EBDF;
  --surface-2: #EDE3D4;
  --line:      rgba(28, 22, 12, 0.13);
  --line-soft: rgba(28, 22, 12, 0.07);
  --veil:      rgba(251, 247, 240, 0.86);

  --text:   #1A160F;
  --muted:  #5C5449;
  --faint:  #8A8175;
  --on-accent: #FFFFFF;

  --sage:  #2E7F58;
  --amber: #B3661D;
  --coral: #C4472F;

  --accent-wash: rgba(46, 127, 88, 0.10);
}

/* --------------------------------------------------------------- Base --- */

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 84px; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  transition: background-color 0.3s ease, color 0.3s ease;
}

img { max-width: 100%; display: block; }
a { color: inherit; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.08;
  margin: 0;
  font-variation-settings: 'SOFT' 20, 'WONK' 0;
}

p { margin: 0 0 1.1em; }
p:last-child { margin-bottom: 0; }

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

.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 200;
  background: var(--accent); color: var(--on-accent);
  padding: 12px 20px; border-radius: 0 0 12px 0; font-weight: 600;
}
.skip-link:focus { left: 0; }

:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }

/* ------------------------------------------------------------- Header --- */

.site-header {
  position: sticky; top: 0; z-index: 100;
  background: var(--veil);
  backdrop-filter: blur(16px) saturate(1.4);
  -webkit-backdrop-filter: blur(16px) saturate(1.4);
  border-bottom: 1px solid var(--line-soft);
}

.nav-bar {
  display: flex; align-items: center; gap: 28px;
  height: 68px;
}

.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 700; letter-spacing: -0.015em; }
.brand img { width: 26px; height: 26px; border-radius: 7px; }

.nav-links { display: flex; align-items: center; gap: 26px; margin-left: auto; }
.nav-links a {
  text-decoration: none; color: var(--muted); font-size: 0.925rem; font-weight: 500;
  transition: color 0.2s ease;
}
.nav-links a:hover { color: var(--text); }

.nav-tools { display: flex; align-items: center; gap: 8px; }

.lang-switch {
  display: flex; border: 1px solid var(--line); border-radius: 999px; overflow: hidden;
}
.lang-switch button {
  border: 0; background: transparent; color: var(--faint); cursor: pointer;
  font-family: inherit; font-size: 0.72rem; font-weight: 700; letter-spacing: 0.06em;
  padding: 6px 11px; transition: all 0.2s ease;
}
.lang-switch button[aria-pressed="true"] { background: var(--text); color: var(--bg); }

.icon-btn {
  width: 36px; height: 36px; display: grid; place-items: center;
  border: 1px solid var(--line); border-radius: 50%;
  background: transparent; color: var(--muted); cursor: pointer;
  transition: all 0.2s ease;
}
.icon-btn:hover { color: var(--text); border-color: var(--text); }

.menu-btn { display: none; }

/* --------------------------------------------------------------- Hero --- */

.hero {
  position: relative;
  padding: clamp(56px, 9vw, 104px) 0 clamp(56px, 8vw, 92px);
  overflow: hidden;
}
.hero::before {
  content: ''; position: absolute; inset: -30% 40% 40% -10%;
  background: radial-gradient(closest-side, var(--accent-wash), transparent 70%);
  pointer-events: none;
}

.hero-grid {
  position: relative;
  display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: clamp(32px, 6vw, 72px); align-items: center;
}

.eyebrow {
  display: inline-flex; align-items: center; gap: 9px;
  font-size: 0.78rem; font-weight: 600; letter-spacing: 0.02em;
  color: var(--muted); margin-bottom: 22px;
}
.eyebrow .dot {
  width: 7px; height: 7px; border-radius: 50%; background: var(--sage);
  box-shadow: 0 0 0 4px rgba(108, 199, 154, 0.16);
}

.hero h1 {
  font-size: clamp(2.35rem, 5.1vw, 3.85rem);
  line-height: 1.04;
  margin-bottom: 26px;
}
.hero h1 .amber { color: var(--amber); }
.hero h1 .coral { color: var(--coral); }

.hero-lead {
  font-size: clamp(1.05rem, 1.5vw, 1.19rem);
  color: var(--muted); max-width: 33em; margin-bottom: 32px;
}

.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 30px; }

.btn {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 13px 24px; border-radius: 999px;
  font-family: inherit; font-size: 0.95rem; font-weight: 600;
  text-decoration: none; cursor: pointer; border: 1px solid transparent;
  transition: transform 0.2s var(--ease), background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}
.btn:hover { transform: translateY(-2px); }

.btn-amber { background: var(--amber); color: var(--on-accent); }
.btn-coral { background: var(--coral); color: var(--on-accent); }
.btn-solid { background: var(--accent); color: var(--on-accent); }
.btn-quiet { border-color: var(--line); color: var(--text); }
.btn-quiet:hover { border-color: var(--text); }

.hero-trust {
  display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px;
  padding-top: 24px; border-top: 1px solid var(--line-soft);
  font-size: 0.875rem; color: var(--faint);
}
.hero-trust span { display: inline-flex; align-items: center; gap: 7px; }
.hero-trust svg { flex: none; color: var(--sage); }

/* Two phones, angled — the product itself is the hero image */
.hero-devices {
  position: relative; display: flex; justify-content: center; align-items: center;
  min-height: 460px;
}
.hero-devices .phone { position: absolute; }
.hero-devices .phone-a {
  width: min(232px, 44vw); transform: rotate(-7deg) translate(-32%, -3%);
  z-index: 2;
}
.hero-devices .phone-b {
  width: min(232px, 44vw); transform: rotate(7deg) translate(32%, 6%);
}

.phone {
  aspect-ratio: 9 / 19.3;
  padding: 8px;
  border-radius: 34px;
  background: linear-gradient(160deg, #3A3630, #16140F 55%);
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: 0 30px 60px -24px rgba(0, 0, 0, 0.7), 0 2px 0 rgba(255, 255, 255, 0.05) inset;
}
[data-theme="light"] .phone {
  background: linear-gradient(160deg, #4A443C, #241F19 55%);
  box-shadow: 0 28px 54px -26px rgba(60, 44, 20, 0.45);
}
.phone img {
  width: 100%; height: 100%; object-fit: cover; object-position: top center;
  border-radius: 27px; background: var(--surface);
  transition: opacity 0.18s ease;
}
.phone img.fading { opacity: 0; }

/* ------------------------------------------------------------ Product --- */

.app-section { position: relative; padding: clamp(64px, 9vw, 108px) 0; border-top: 1px solid var(--line-soft); }

.app-ambra {
  --accent: var(--amber);
  background:
    radial-gradient(1000px 520px at 82% 0%, rgba(236, 154, 78, 0.11), transparent 68%),
    var(--bg-2);
}
.app-vivi {
  --accent: var(--coral);
  background:
    radial-gradient(1000px 520px at 18% 0%, rgba(239, 110, 84, 0.12), transparent 68%),
    var(--bg);
}

.app-grid {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 0.82fr);
  gap: clamp(36px, 6vw, 76px); align-items: center;
}
.app-grid.flip .app-copy { order: 2; }
.app-grid.flip .app-stage { order: 1; }

.app-id { display: flex; align-items: center; gap: 14px; margin-bottom: 20px; }
.app-id img { width: 54px; height: 54px; border-radius: 14px; border: 1px solid var(--line); }
.app-name { font-family: var(--font-display); font-size: 1.32rem; font-weight: 600; letter-spacing: -0.01em; }
.app-kind { font-size: 0.82rem; color: var(--faint); }

.app-section h2 {
  font-size: clamp(1.95rem, 3.6vw, 2.85rem);
  margin-bottom: 20px; max-width: 16em;
}
.app-section h2 em { font-style: italic; color: var(--accent); }

.app-pitch { font-size: 1.075rem; color: var(--muted); max-width: 36em; margin-bottom: 26px; }

.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 28px; }
.chip {
  font-size: 0.8rem; font-weight: 600; padding: 6px 13px; border-radius: 999px;
  border: 1px solid var(--line); color: var(--muted);
}
.chip.lead { border-color: transparent; background: var(--accent); color: var(--on-accent); }

.feature-list {
  list-style: none;
  margin: 0 0 26px;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px 20px;
}
@media (max-width: 680px) {
  .feature-list { grid-template-columns: 1fr; }
}
.feature-list li {
  display: grid;
  grid-template-columns: 20px 1fr;
  gap: 10px;
  align-items: start;
}
.feature-list svg { margin-top: 3px; color: var(--accent); flex-shrink: 0; }
.feature-list h3 { font-size: 0.96rem; font-weight: 600; margin-bottom: 2px; letter-spacing: -0.005em; line-height: 1.3; }
.feature-list p { font-size: 0.865rem; color: var(--muted); margin: 0; line-height: 1.4; }

.app-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.play-badge img { height: 50px; width: auto; }
.play-badge { transition: transform 0.2s var(--ease); display: inline-block; }
.play-badge:hover { transform: translateY(-2px); }

.link-quiet {
  display: inline-flex; align-items: center; gap: 7px;
  font-size: 0.925rem; font-weight: 600; text-decoration: none;
  padding: 11px 18px; border: 1px solid var(--line); border-radius: 999px;
  color: var(--text); transition: border-color 0.2s ease, color 0.2s ease;
}
.link-quiet:hover { border-color: var(--accent); color: var(--accent); }

/* Screen switcher */
.app-stage { display: flex; flex-direction: column; align-items: center; gap: 18px; }
.app-stage .phone { width: min(290px, 72vw); }

.switcher { display: flex; flex-wrap: wrap; justify-content: center; gap: 7px; }
.switcher button {
  font-family: inherit; font-size: 0.83rem; font-weight: 600;
  padding: 8px 15px; border-radius: 999px; cursor: pointer;
  background: transparent; color: var(--muted);
  border: 1px solid var(--line);
  transition: all 0.2s ease;
}
.switcher button:hover { color: var(--text); border-color: var(--text); }
.switcher button[aria-selected="true"] {
  background: var(--accent); border-color: var(--accent); color: var(--on-accent);
}

.shot-caption {
  font-size: 0.875rem; color: var(--faint); text-align: center;
  max-width: 32ch; min-height: 2.8em;
}



/* ViVi cards showcase — tactile, tangible preview of real conversation prompts */
.vivi-cards-showcase {
  margin-top: clamp(48px, 6vw, 72px);
  padding: clamp(28px, 4vw, 44px) clamp(20px, 3.5vw, 36px);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: 0 20px 40px -20px rgba(0, 0, 0, 0.4);
}

.vivi-cards-header {
  text-align: center;
  max-width: 44em;
  margin: 0 auto clamp(24px, 3.5vw, 36px);
}

.vivi-pill {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--coral);
  background: rgba(239, 110, 84, 0.12);
  padding: 5px 14px;
  border-radius: 999px;
  margin-bottom: 12px;
}

.vivi-cards-header h3 {
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 2.5vw, 1.95rem);
  font-weight: 600;
  margin: 0 0 10px;
  color: var(--text);
  line-height: 1.25;
}

.vivi-cards-header p {
  color: var(--muted);
  font-size: 0.98rem;
  margin: 0;
}

.vivi-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: clamp(16px, 2.5vw, 24px);
  margin-bottom: clamp(24px, 3.5vw, 36px);
}

.vivi-card-item {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px 22px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: transform 0.25s var(--ease), border-color 0.25s ease, box-shadow 0.25s ease;
  min-height: 220px;
}

.vivi-card-item:hover {
  transform: translateY(-4px);
  border-color: var(--coral);
  box-shadow: 0 16px 32px -12px rgba(239, 110, 84, 0.22);
}

.vivi-card-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}

.vivi-card-tag {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--coral);
  letter-spacing: 0.02em;
}

.vivi-card-num {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--faint);
  font-variant-numeric: tabular-nums;
}

.vivi-card-body {
  flex-grow: 1;
  display: flex;
  align-items: center;
  margin-bottom: 18px;
}

.vivi-card-question {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.08rem;
  line-height: 1.45;
  color: var(--text);
  margin: 0;
}

.vivi-card-footer {
  font-size: 0.8rem;
  color: var(--muted);
  border-top: 1px solid var(--line-soft);
  padding-top: 12px;
}

.vivi-quote-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 14px 24px;
  background: rgba(239, 110, 84, 0.08);
  border: 1px dashed rgba(239, 110, 84, 0.28);
  border-radius: 999px;
  font-size: 0.94rem;
  font-weight: 500;
  color: var(--text);
  text-align: center;
  max-width: 680px;
  margin: 0 auto;
}

.vivi-quote-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  flex: none;
}
.vivi-quote-icon svg {
  display: block;
}

/* ----------------------------------------------------------------- Why --- */

.why {
  padding: clamp(64px, 9vw, 108px) 0;
  background: var(--bg-2);
  border-top: 1px solid var(--line-soft);
}
.why-head { max-width: 44em; margin: 0 auto clamp(36px, 5vw, 56px); text-align: center; }
.why h2 { font-size: clamp(1.95rem, 3.6vw, 2.7rem); margin-bottom: 18px; }
.why-lead { font-size: 1.125rem; color: var(--muted); margin: 0; line-height: 1.7; }
.why-lead .hl-sage { color: var(--sage); font-weight: 600; }
.why-lead .hl-amber { color: var(--amber); font-weight: 600; }
.why-lead .hl-text { color: var(--text); font-weight: 600; }

.why-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 22px;
}
.why-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 32px 28px;
  display: flex;
  flex-direction: column;
  transition: transform 0.2s var(--ease), border-color 0.2s ease, box-shadow 0.2s ease;
}
.why-card:hover {
  transform: translateY(-3px);
  border-color: var(--accent);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.25);
}
.why-card-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--accent-wash);
  border: 1px solid rgba(108, 199, 154, 0.25);
  margin-bottom: 18px;
  color: var(--accent);
}
.why-card-icon svg {
  display: block;
}
.why-card h3 {
  font-size: 1.15rem;
  font-weight: 600;
  margin: 0 0 10px;
  line-height: 1.35;
}
.why-card p {
  font-size: 0.93rem;
  color: var(--muted);
  line-height: 1.55;
  margin: 0;
}

/* ------------------------------------------------- Freebies (fogli) --- */

.freebies {
  padding: clamp(56px, 7vw, 84px) 0;
  border-top: 1px solid var(--line-soft);
  background: var(--bg);
}

.freebies-header-centered {
  max-width: 44em;
  margin: 0 auto clamp(28px, 4vw, 40px);
  text-align: center;
}
.freebies-header-centered h2 {
  font-size: clamp(1.95rem, 3.6vw, 2.7rem);
  margin-bottom: 16px;
}
.freebies-lead {
  font-size: 1.125rem;
  color: var(--muted);
  line-height: 1.7;
  margin: 0;
}

.kofi-panoramic-banner-link {
  display: block;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.28);
  transition: transform 0.25s var(--ease), box-shadow 0.25s ease, border-color 0.25s ease;
  margin-bottom: clamp(32px, 4vw, 48px);
}
.kofi-panoramic-banner-link:hover {
  transform: translateY(-3px);
  border-color: var(--accent);
  box-shadow: 0 24px 50px rgba(0, 0, 0, 0.38);
}
.kofi-panoramic-banner {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1200 / 400;
  object-fit: cover;
}

.freebies-head {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 0.8fr);
  gap: clamp(24px, 4vw, 48px); align-items: center;
  margin-bottom: clamp(32px, 4vw, 48px);
}
.freebies-head h2 { font-size: clamp(1.6rem, 2.8vw, 2.1rem); margin-bottom: 14px; }
.freebies-head p { color: var(--muted); font-size: 1rem; max-width: 36em; }
.freebies-head img {
  border-radius: var(--radius); border: 1px solid var(--line);
  filter: saturate(0.82) contrast(1.02);
}

.freebies-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: clamp(20px, 3vw, 32px);
}
.freebie {
  padding: 22px 24px; border: 1px solid var(--line);
  border-radius: var(--radius); background: var(--surface);
}
.freebie h3 { font-size: 1.05rem; margin-bottom: 8px; }
.freebie > p { font-size: 0.915rem; color: var(--muted); margin-bottom: 16px; }
.freebie > p a { color: var(--amber); text-decoration: none; font-weight: 600; }
.freebie > p a:hover { text-decoration: underline; }

.freebie ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; }
.freebie li a {
  display: inline-flex; align-items: baseline; gap: 6px; flex-wrap: wrap;
  font-size: 0.93rem; font-weight: 600; color: var(--text); text-decoration: none;
  border-bottom: 1px solid var(--line); padding-bottom: 2px;
  transition: color 0.2s ease, border-color 0.2s ease;
}
.freebie li a.sheet:hover { color: var(--sage); border-color: var(--sage); }
.freebie li a.file:hover { color: var(--amber); border-color: var(--amber); }
.freebie li span { font-weight: 400; color: var(--faint); font-size: 0.85rem; }

.freebies-note {
  margin-top: 26px; font-size: 0.915rem; color: var(--faint);
}
.freebies-note a { color: var(--sage); text-decoration: none; font-weight: 600; }
.freebies-note a:hover { text-decoration: underline; }

@media (max-width: 860px) {
  .freebies-head { grid-template-columns: 1fr; }
}

/* Graphic Ko-fi Split Pillars */
.kofi-visual-panel {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
  gap: 20px;
  margin-top: 36px;
  margin-bottom: 32px;
}
.kofi-pillar-card {
  padding: 32px 28px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--surface);
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
  transition: transform 0.2s var(--ease), border-color 0.2s ease;
}
.kofi-pillar-card:hover {
  transform: translateY(-2px);
}
.kofi-pillar-card.pillar-free {
  border-color: rgba(108, 199, 154, 0.4);
  background: linear-gradient(135deg, rgba(108, 199, 154, 0.09) 0%, var(--surface) 100%);
}
.kofi-pillar-card.pillar-tip {
  border-color: rgba(255, 94, 91, 0.4);
  background: linear-gradient(135deg, rgba(255, 94, 91, 0.09) 0%, var(--surface) 100%);
}
.kofi-pillar-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
}
.kofi-pillar-badge {
  font-size: 0.76rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 5px 12px;
  border-radius: 999px;
}
.pillar-free .kofi-pillar-badge {
  background: var(--accent);
  color: var(--on-accent);
}
.pillar-tip .kofi-pillar-badge {
  background: #ff5e5b;
  color: #ffffff;
}
.kofi-pillar-card h3 {
  font-size: 1.25rem;
  margin: 0 0 12px;
  line-height: 1.3;
}
.kofi-pillar-card p {
  font-size: 0.94rem;
  color: var(--muted);
  line-height: 1.6;
  margin: 0 0 24px;
  flex: 1;
}
.kofi-pillar-card .product-card-cta {
  margin-top: auto;
  width: 100%;
}

.kofi-highlight-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
  margin-top: 36px;
  margin-bottom: 36px;
}
.kofi-highlight-card {
  padding: 24px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: transform 0.2s var(--ease), border-color 0.2s ease;
}
.kofi-highlight-card:hover {
  transform: translateY(-2px);
  border-color: var(--accent);
}
.kofi-highlight-icon {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--surface-2);
  border: 1px solid var(--line);
  margin-bottom: 16px;
}
.kofi-highlight-icon svg {
  display: block;
}
.kofi-highlight-card h3 {
  font-size: 1.15rem;
  margin-bottom: 8px;
}
.kofi-highlight-card p {
  font-size: 0.92rem;
  color: var(--muted);
  line-height: 1.5;
  margin: 0;
}

.kofi-actions-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
  margin-top: 28px;
}
.btn-primary-fogli {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--accent);
  color: var(--on-accent);
  padding: 12px 26px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.95rem;
  text-decoration: none;
  transition: transform 0.15s, opacity 0.2s;
  box-shadow: 0 4px 16px rgba(108, 199, 154, 0.25);
}
.btn-primary-fogli:hover {
  transform: translateY(-1px);
  opacity: 0.95;
}
.btn-secondary-kofi {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 94, 91, 0.12);
  color: #ff7572;
  border: 1px solid rgba(255, 94, 91, 0.35);
  padding: 11px 22px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.92rem;
  text-decoration: none;
  transition: all 0.2s ease;
}
.btn-secondary-kofi:hover {
  background: #ff5e5b;
  color: #ffffff;
  border-color: #ff5e5b;
  transform: translateY(-1px);
}

/* Showroom Catalog Grid */
.showroom-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(310px, 1fr));
  gap: clamp(24px, 3.5vw, 36px);
  margin: clamp(32px, 4vw, 48px) 0;
}
.product-card {
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform 0.25s var(--ease), border-color 0.25s ease, box-shadow 0.25s ease;
}
.product-card:hover {
  transform: translateY(-4px);
  border-color: var(--accent);
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.28);
}
.product-card-media {
  position: relative;
  aspect-ratio: 16 / 10;
  background: var(--bg-2);
  overflow: hidden;
  border-bottom: 1px solid var(--line-soft);
}
.product-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s var(--ease);
}
.product-card:hover .product-card-media img {
  transform: scale(1.03);
}
.product-card-body {
  padding: 22px 24px;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.product-badge-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 12px;
}
.product-tag {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 0.76rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  background: var(--accent-wash);
  color: var(--accent);
  border: 1px solid rgba(108, 199, 154, 0.25);
}
.product-tag.tag-amber {
  background: rgba(236, 154, 78, 0.12);
  color: var(--amber);
  border-color: rgba(236, 154, 78, 0.25);
}
.product-price-tag {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--muted);
}
.product-card h3 {
  font-size: 1.18rem;
  margin: 0 0 8px;
  line-height: 1.35;
}
.product-card p {
  font-size: 0.915rem;
  color: var(--muted);
  line-height: 1.5;
  margin: 0 0 20px;
  flex: 1;
}
.product-card-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: 999px;
  background: var(--surface-2);
  border: 1px solid var(--line);
  color: var(--text);
  font-size: 0.88rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.2s ease;
}
.product-card-cta:hover {
  background: var(--accent);
  color: var(--on-accent);
  border-color: var(--accent);
}

/* ------------------------------------------------------------- Privacy --- */

.trust { padding: clamp(64px, 9vw, 104px) 0; border-top: 1px solid var(--line-soft); }
.trust h2 { font-size: clamp(1.8rem, 3.2vw, 2.4rem); margin-bottom: 16px; }
.trust-lead { color: var(--muted); max-width: 48em; margin-bottom: 40px; }

.doc-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 18px; margin-bottom: 44px; }
.doc {
  display: flex; flex-direction: column; gap: 10px;
  padding: 26px; border: 1px solid var(--line); border-radius: var(--radius);
  background: var(--surface); text-decoration: none;
  transition: border-color 0.2s ease, transform 0.2s var(--ease);
}
.doc:hover { border-color: var(--accent); transform: translateY(-2px); }
.doc h3 { font-size: 1.1rem; }
.doc p { font-size: 0.925rem; color: var(--muted); margin: 0; }
.doc .go { font-size: 0.9rem; font-weight: 600; color: var(--accent); margin-top: auto; padding-top: 6px; }

.studio-note {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(28px, 5vw, 56px);
  padding-top: 40px; border-top: 1px solid var(--line-soft);
}
.studio-note p { color: var(--muted); font-size: 0.98rem; }
.studio-note h3 { font-size: 1.25rem; margin-bottom: 14px; }
.contact-lines { display: grid; gap: 12px; align-content: start; }
.contact-lines div { display: flex; justify-content: space-between; gap: 18px; padding-bottom: 12px; border-bottom: 1px solid var(--line-soft); font-size: 0.92rem; }
.contact-lines dt, .contact-lines .k { color: var(--faint); }
.contact-lines a { color: var(--accent); text-decoration: none; }
.contact-lines a:hover { text-decoration: underline; }

/* -------------------------------------------------------------- Footer --- */

.site-footer {
  background: var(--bg-2);
  border-top: 1px solid var(--line-soft);
  padding: 56px 0 32px;
}

.footer-top {
  display: grid;
  grid-template-columns: 1.5fr repeat(3, 1fr);
  gap: clamp(24px, 4vw, 44px);
  padding-bottom: 36px;
  align-items: start;
}
.footer-brand .brand {
  margin-bottom: 12px;
}
.footer-brand p {
  font-size: 0.9rem;
  color: var(--muted);
  line-height: 1.55;
  margin: 0;
  max-width: 32em;
}
.footer-col h4 {
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--faint);
  margin-bottom: 14px;
}
.footer-col ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 9px;
}
.footer-col a {
  font-size: 0.915rem;
  color: var(--muted);
  text-decoration: none;
  transition: color 0.2s ease;
}
.footer-col a:hover {
  color: var(--text);
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding-top: 24px;
  border-top: 1px solid var(--line-soft);
  font-size: 0.85rem;
  color: var(--faint);
}
.footer-bottom .store-note {
  font-size: 0.78rem;
  color: var(--faint);
  line-height: 1.5;
  margin: 0;
  max-width: 60ch;
  text-align: right;
}
@media (max-width: 760px) {
  .footer-bottom .store-note {
    text-align: left;
  }
}

/* -------------------------------------------------------- Responsive --- */

@media (max-width: 980px) {
  .hero-grid, .app-grid, .studio-note { grid-template-columns: 1fr; }
  .app-grid.flip .app-copy { order: 1; }
  .app-grid.flip .app-stage { order: 2; }
  .hero-devices { min-height: 400px; }
  .footer-top { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 760px) {
  .nav-links {
    position: absolute; top: 68px; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--bg-2); border-bottom: 1px solid var(--line);
    padding: 8px 28px 16px;
    display: none;
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 12px 0; border-bottom: 1px solid var(--line-soft); }
  .nav-tools { margin-left: auto; }
  .menu-btn { display: grid; }

  .hero-devices .phone-a { transform: rotate(-6deg) translate(-26%, 0); width: min(190px, 42vw); }
  .hero-devices .phone-b { transform: rotate(6deg) translate(26%, 6%); width: min(190px, 42vw); }
  .hero-devices { min-height: 360px; }

  .footer-top { grid-template-columns: 1fr; gap: 28px; }
  .container { padding: 0 20px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}

/* Hero needs more room than the other two-column blocks: stack it earlier. */
@media (max-width: 1080px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-devices { min-height: 430px; margin-top: 8px; }
  .hero-devices .phone-a { transform: rotate(-6deg) translate(-30%, 0); }
  .hero-devices .phone-b { transform: rotate(6deg) translate(30%, 5%); }
}

/* Header must never wrap the wordmark. */
.brand span { white-space: nowrap; }

@media (max-width: 760px) {
  .nav-bar { gap: 12px; }
  .brand { font-size: 0.95rem; }
  .brand img { width: 24px; height: 24px; }
  .hero h1 { font-size: clamp(2.05rem, 8.4vw, 2.6rem); }
}

@media (max-width: 400px) {
  .brand span { display: none; }
}

/* ==========================================================================
   Privacy / policy pages — they share this stylesheet and their own markup.
   ========================================================================== */

.site-nav {
  display: flex; align-items: center; gap: 24px; height: 68px;
}
.nav-brand {
  display: flex; align-items: center; gap: 10px;
  text-decoration: none; font-weight: 700; letter-spacing: -0.015em;
  white-space: nowrap;
}
.nav-logo-img { width: 26px; height: 26px; border-radius: 7px; }

.nav-menu { display: flex; align-items: center; gap: 24px; margin-left: auto; }
.nav-link {
  text-decoration: none; color: var(--muted); font-size: 0.925rem; font-weight: 500;
  transition: color 0.2s ease;
}
.nav-link:hover { color: var(--text); }

.nav-actions { display: flex; align-items: center; gap: 8px; }
.theme-toggle-btn {
  width: 36px; height: 36px; display: grid; place-items: center;
  border: 1px solid var(--line); border-radius: 50%;
  background: transparent; color: var(--muted); cursor: pointer;
  transition: all 0.2s ease;
}
.theme-toggle-btn:hover { color: var(--text); border-color: var(--text); }

.policy-page { padding: 48px 0 80px; }

.policy-back-nav {
  display: inline-flex; align-items: center; gap: 8px;
  text-decoration: none; color: var(--muted);
  font-size: 0.9rem; font-weight: 600; margin-bottom: 28px;
}
.policy-back-nav:hover { color: var(--text); }
.policy-back-nav svg { display: none; }

.policy-card {
  max-width: 760px; margin: 0 auto;
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: clamp(28px, 5vw, 56px);
}

.lang-switch-pills { display: flex; gap: 8px; margin-bottom: 32px; }
.lang-pill {
  text-decoration: none; font-size: 0.85rem; font-weight: 600;
  padding: 7px 15px; border-radius: 999px;
  border: 1px solid var(--line); color: var(--muted);
  transition: all 0.2s ease;
}
.lang-pill:hover { color: var(--text); border-color: var(--text); }
.lang-pill.active { background: var(--text); border-color: var(--text); color: var(--bg); }

.app-badge-tag {
  display: inline-block; font-size: 0.78rem; font-weight: 700;
  letter-spacing: 0.04em; padding: 5px 13px; border-radius: 999px;
  margin-bottom: 18px;
}
.badge-ambra { background: rgba(236, 154, 78, 0.16); color: var(--amber); }
.badge-vivi  { background: rgba(239, 110, 84, 0.16); color: var(--coral); }

.policy-card h1 { font-size: clamp(1.7rem, 3.4vw, 2.3rem); margin-bottom: 14px; }
.policy-card h2 {
  font-size: 1.22rem; margin: 40px 0 12px;
  padding-top: 24px; border-top: 1px solid var(--line-soft);
}
.policy-card h3 { font-size: 1.05rem; margin: 26px 0 8px; }
.policy-card p, .policy-card li { color: var(--muted); font-size: 0.975rem; }
.policy-card ul, .policy-card ol { padding-left: 20px; }
.policy-card li { margin-bottom: 8px; }
.policy-card a { color: var(--accent); text-decoration: underline; text-underline-offset: 2px; }
.policy-card strong { color: var(--text); font-weight: 600; }

.policy-meta {
  font-size: 0.875rem; color: var(--faint);
  padding-bottom: 22px; border-bottom: 1px solid var(--line-soft); margin-bottom: 26px;
}

.policy-summary-box {
  background: var(--surface);
  border: 1px solid var(--line);
  border-left: 3px solid var(--accent);
  border-radius: var(--radius);
  padding: 20px 24px; margin-bottom: 8px;
}

.policy-card table {
  width: 100%; border-collapse: collapse; margin: 18px 0 8px; font-size: 0.925rem;
}
.policy-card th, .policy-card td {
  text-align: left; padding: 11px 12px; border-bottom: 1px solid var(--line-soft);
  vertical-align: top;
}
.policy-card th { color: var(--text); font-weight: 600; font-size: 0.8rem; letter-spacing: 0.04em; text-transform: uppercase; }
.policy-card td { color: var(--muted); }
.policy-card code {
  font-size: 0.875em; padding: 2px 6px; border-radius: 6px;
  background: var(--surface-2); color: var(--text);
}

.site-footer .footer-bottom a { color: var(--muted); text-decoration: none; }
.site-footer .footer-bottom a:hover { color: var(--text); }

@media (max-width: 760px) {
  .nav-menu { display: none; }
  .site-nav { gap: 12px; }
}
