@font-face {
  font-family: "Bricolage Grotesque";
  src: url("/assets/BricolageGrotesque-Variable.ttf") format("truetype");
  font-weight: 200 800;
  font-stretch: 75% 100%;
  font-display: swap;
}

/* Tema Ambrosia dell'app (Idunn/Design/Theme.swift). */
:root {
  --bg: #F1F4EE; --surface: #FCFDF9; --sunken: #E4EADF;
  --ink: #16231B; --muted: #5E6F63; --line: #D9E2D3;
  --accent: #3E7A57; --accent-ink: #FFFFFF;
  --glow: rgba(217, 180, 90, 0.22); --border: rgba(127, 181, 146, 0.22);
  --shadow: rgba(30, 80, 50, 0.12);
  --fill: linear-gradient(135deg, #5E9C74 0%, #3E7A57 55%, #87883E 100%);
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0B110E; --surface: #131B17; --sunken: #1B2620;
    --ink: #E9F0E8; --muted: #9DAE9F; --line: #24322A;
    --accent: #8FC4A0; --accent-ink: #0B1A11;
    --glow: rgba(217, 180, 90, 0.14); --border: rgba(127, 181, 146, 0.16);
    --shadow: rgba(0, 0, 0, 0.4);
    --fill: linear-gradient(135deg, #B9DDB9 0%, #7FB592 50%, #D9B45A 100%);
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 17px/1.55 -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, sans-serif;
}
a { color: var(--accent); }
.wrap { max-width: 1080px; margin: 0 auto; padding: 0 16px; }

header.site {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 18px 0;
}
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); }
.brand img { width: 36px; height: 36px; border-radius: 9px; }
.wordmark {
  font-family: "Bricolage Grotesque", sans-serif; font-weight: 800; font-stretch: 75%;
  font-style: italic; font-size: 28px; letter-spacing: -0.3px; display: inline-block; transform: skewX(-6deg);
}
.eth {
  background: linear-gradient(#FFE48A 0%, #FFC93D 35%, #E8930C 70%, #C46A08 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
nav.site { display: flex; gap: 14px; font-size: 15px; flex-wrap: wrap; justify-content: flex-end; }
nav.site a { text-decoration: none; color: var(--muted); }
nav.site a:hover, nav.site a[aria-current] { color: var(--ink); }

h1, h2, h3 { font-family: "Bricolage Grotesque", sans-serif; letter-spacing: -0.2px; line-height: 1.15; }
h1 { font-size: clamp(32px, 7vw, 48px); margin: 8px 0 12px; font-weight: 800; }
h2 { font-size: 22px; margin: 0 0 10px; font-weight: 700; }
h3 { font-size: 17px; margin: 0 0 4px; font-weight: 700; }
.narrow { max-width: 760px; margin: 0 auto; }
p { margin: 0 0 10px; }
.lead { font-size: 19px; color: var(--muted); max-width: 34em; }
.muted { color: var(--muted); }
.small { font-size: 14px; }

.badge {
  display: inline-block; padding: 10px 20px; border-radius: 999px;
  background: var(--fill); color: var(--accent-ink); font-weight: 600; text-decoration: none;
}
.badge.soon { opacity: 0.85; cursor: default; }

.card {
  background: var(--surface); border: 1px solid var(--border); border-radius: 22px;
  padding: 20px; margin: 0 0 14px; box-shadow: 0 10px 30px -18px var(--shadow);
}
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 14px; margin: 0 0 14px; }
.grid .card { margin: 0; }
.card p:last-child, .card ul:last-child { margin-bottom: 0; }
ul { padding-left: 20px; margin: 0 0 10px; }
li { margin: 0 0 6px; }

.note {
  border-left: 3px solid var(--accent); background: var(--sunken);
  padding: 12px 14px; border-radius: 0 12px 12px 0; margin: 0 0 14px; font-size: 15px;
}

footer.site {
  border-top: 1px solid var(--line); margin-top: 32px; padding: 20px 0 40px;
  font-size: 14px; color: var(--muted);
}
footer.site a { color: var(--muted); }
footer.site .links { display: flex; gap: 16px; flex-wrap: wrap; margin-bottom: 8px; }

/* Su telefono il logo porta già alla home. */
@media (max-width: 420px) {
  nav.site a.home { display: none; }
}

/* Home */
.hero {
  position: relative; display: grid; grid-template-columns: 1.05fr 1fr; gap: 32px; align-items: center;
  padding: 36px 0 24px;
}
.hero::before {
  content: ""; position: absolute; inset: -60px -10% auto 30%; height: 560px; z-index: -1;
  background: radial-gradient(closest-side, var(--glow), transparent);
}
.eyebrow { font-size: 13px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--accent); margin-bottom: 6px; }
.hero h1 { font-size: clamp(34px, 5.6vw, 58px); margin: 0 0 16px; }
.grad {
  background: linear-gradient(100deg, var(--accent) 0%, #B8922E 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero .lead { margin: 0 0 22px; }
.cta-row { display: flex; gap: 18px; align-items: center; flex-wrap: wrap; }
.ghost { font-weight: 600; text-decoration: none; }
.hero-phones { position: relative; height: 600px; }
.hero-phones .phone { position: absolute; width: 270px; margin: 0; }
.hero-phones .front { right: 8%; top: 0; z-index: 2; }
.hero-phones .back { left: 4%; top: 60px; transform: rotate(-6deg); opacity: 0.95; }

.phone {
  margin: 0; border-radius: 42px; padding: 9px; background: #101512;
  box-shadow: 0 30px 60px -20px var(--shadow), 0 0 0 1px rgba(255,255,255,0.06) inset;
}
.phone img { display: block; width: 100%; height: auto; border-radius: 34px; }

.trust {
  list-style: none; padding: 14px 0; margin: 8px 0 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 28px;
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); font-size: 15px; font-weight: 600; color: var(--muted);
}
.trust li { margin: 0; }
.trust li::before { content: "✓"; color: var(--accent); margin-right: 8px; }

.section-head { text-align: center; margin: 64px auto 28px; max-width: 720px; }
.section-head h2 { font-size: clamp(28px, 4.2vw, 40px); font-weight: 800; }
.section-head .lead { margin: 0 auto; }

.feature {
  display: grid; grid-template-columns: 1fr 300px; gap: 48px; align-items: center;
  max-width: 900px; margin: 0 auto 56px;
}
.feature.flip { grid-template-columns: 300px 1fr; }
.feature.flip .copy { order: 2; }
.feature .phone { width: 300px; }
.kicker { font-size: 13px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--accent); margin-bottom: 4px; }
.feature h3 { font-size: clamp(24px, 3.4vw, 32px); font-weight: 800; margin-bottom: 12px; }
.feature p { color: var(--muted); }
.ticks { list-style: none; padding: 0; margin: 14px 0 0; }
.ticks li { padding-left: 26px; position: relative; }
.ticks li::before {
  content: "✓"; position: absolute; left: 0; top: 0; width: 18px; height: 18px; border-radius: 50%;
  background: var(--sunken); color: var(--accent); font-size: 12px; font-weight: 800; text-align: center; line-height: 18px; margin-top: 3px;
}

.why svg { width: 30px; height: 30px; fill: none; stroke: var(--accent); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; margin-bottom: 8px; }
.grid.four { grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
.center { text-align: center; }

.table-wrap { overflow-x: auto; padding: 8px 8px 14px; }
table.cmp { width: 100%; border-collapse: collapse; font-size: 15px; }
.cmp th, .cmp td { padding: 12px 10px; border-bottom: 1px solid var(--line); text-align: center; }
.cmp tbody th { text-align: left; font-weight: 500; }
.cmp thead th { font-family: "Bricolage Grotesque", sans-serif; font-size: 15px; vertical-align: bottom; color: var(--muted); }
.cmp thead th.us { color: var(--ink); font-size: 17px; }
.cmp td.us { background: color-mix(in srgb, var(--accent) 9%, transparent); }
.cmp td span[aria-hidden] { font-size: 18px; font-weight: 800; }
.cmp .yes, .legend .yes { color: var(--accent); }
.cmp .part, .legend .part { color: #B8922E; }
.cmp .no, .legend .no { color: var(--muted); }
.cmp tbody tr:last-child th, .cmp tbody tr:last-child td { border-bottom: 0; }
.legend { margin: 10px 10px 0; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.final { text-align: center; margin: 64px auto 20px; max-width: 640px; padding: 32px 20px; }
.final img { border-radius: 20px; box-shadow: 0 14px 30px var(--shadow); }
.final h2 { margin-top: 14px; font-size: 28px; font-weight: 800; }
.final .badge { margin-top: 8px; }

@media (max-width: 860px) {
  .hero { grid-template-columns: 1fr; text-align: center; padding-top: 20px; }
  .hero .lead { margin-left: auto; margin-right: auto; }
  .cta-row { justify-content: center; }
  .hero-phones { height: 470px; max-width: 380px; width: 100%; margin: 0 auto; }
  .hero-phones .phone { width: 210px; }
  .hero-phones .front { right: 0; }
  .hero-phones .back { left: 0; top: 40px; }
  .feature, .feature.flip { grid-template-columns: 1fr; gap: 24px; margin-bottom: 48px; }
  .feature.flip .copy { order: 0; }
  .feature .phone { width: 250px; margin: 0 auto; }
}
@media (max-width: 520px) {
  .table-wrap { padding: 4px 2px 12px; }
  table.cmp { font-size: 13px; }
  .cmp th, .cmp td { padding: 10px 4px; }
  .cmp tbody th { padding-left: 8px; }
  .cmp thead th { font-size: 11px; line-height: 1.2; }
  .cmp thead th.us { font-size: 14px; }
  .cmp td { width: 54px; }
}

.story { max-width: 820px; margin: 56px auto 0; text-align: center; }
.slogan {
  font-size: clamp(30px, 5vw, 46px); font-weight: 800; font-style: italic; margin-bottom: 14px;
  background: linear-gradient(100deg, #E8930C 0%, #C46A08 45%, var(--accent) 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.story .lead { margin: 0 auto 26px; }
.myth { display: flex; gap: 22px; align-items: flex-start; text-align: left; padding: 24px; }
.myth .apple { flex: 0 0 72px; width: 72px; height: 72px; filter: drop-shadow(0 6px 10px rgba(217, 119, 11, 0.4)); }
.myth h3 { font-size: 20px; margin-bottom: 8px; }
.myth p { color: var(--muted); }
@media (max-width: 520px) {
  .myth { flex-direction: column; align-items: center; text-align: center; padding: 20px; }
}
