/* Kumi — sito. Stessa palette e stessi font dell'app. */
:root {
  --bordeaux: #a21d33;
  --bordeaux-dark: #7d1527;
  --ink: #3f0d12;
  --muted: #4f3e49;
  --cream: #f1f0cc;
  --cream-light: #f7f4dc;
  --gold: #d8c07e;
  --gold-accent: #c9a24b;
  --gold-pale: #e3d4a0;
  --glass: rgba(255, 253, 244, 0.72);
  --glass-strong: rgba(255, 253, 244, 0.92);
  --line: rgba(63, 13, 18, 0.12);
  --shadow: 0 18px 50px rgba(63, 13, 18, 0.18);
  --radius: 22px;
  --serif: "Playfair Display", Georgia, "Times New Roman", serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; background: var(--cream); }
body {
  margin: 0;
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  color: var(--muted);
  background: var(--cream);
  background-image:
    radial-gradient(1200px 600px at 50% -10%, var(--cream-light), transparent 70%),
    linear-gradient(180deg, var(--cream) 0%, var(--gold-pale) 100%);
  background-attachment: scroll;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--bordeaux); text-decoration: none; }
a:hover { text-decoration: underline; }

h1, h2, h3 { font-family: var(--serif); color: var(--bordeaux); line-height: 1.12; margin: 0 0 .4em; }
h1 { font-size: clamp(2.3rem, 6vw, 3.9rem); font-weight: 700; }
h2 { font-size: clamp(1.8rem, 4vw, 2.6rem); font-weight: 700; }
h3 { font-size: 1.35rem; font-weight: 700; color: var(--ink); }
p { margin: 0 0 1em; }
.lead { font-size: 1.2rem; color: var(--ink); }
.eyebrow {
  display: inline-block;
  font-size: .78rem;
  font-weight: 800;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--ink);
  margin-bottom: .8rem;
}

.wrap { width: min(1100px, 92vw); margin: 0 auto; }

/* Testata */
.top {
  position: sticky; top: 0; z-index: 10;
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  background: rgba(241, 240, 204, 0.78);
  border-bottom: 1px solid var(--line);
}
.top .wrap { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: .7rem 0; }
.brand { display: flex; align-items: center; gap: .6rem; font-family: var(--serif); font-style: italic; font-weight: 700; font-size: 1.7rem; color: var(--bordeaux); }
.brand img { width: 38px; height: 38px; border-radius: 10px; }
.top nav { display: flex; align-items: center; gap: 1.3rem; font-weight: 600; font-size: .95rem; }
.top nav a { color: var(--ink); }
.top nav a.cta { color: #fff; white-space: nowrap; padding: .6rem 1.15rem; font-size: .92rem; }
.top nav a.cta.ghost { color: var(--bordeaux); }
@media (max-width: 640px) { .top nav a:not(.cta) { display: none; } }

/* Bottoni */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
  padding: .85rem 1.5rem; border-radius: 999px;
  background: var(--bordeaux); color: #fff; font-weight: 700; font-size: 1rem;
  border: 2px solid var(--bordeaux);
  box-shadow: 0 10px 24px rgba(162, 29, 51, 0.25);
  transition: transform .15s ease, box-shadow .15s ease;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); box-shadow: 0 14px 30px rgba(162, 29, 51, 0.32); }
.btn.ghost { background: transparent; color: var(--bordeaux); box-shadow: none; }
.btn.ghost:hover { background: rgba(162, 29, 51, 0.06); }
.btn svg { width: 22px; height: 22px; fill: currentColor; }
.btn small { display: block; font-size: .68rem; font-weight: 600; opacity: .85; line-height: 1; margin-bottom: .15rem; }
.btn .lbl { display: flex; flex-direction: column; align-items: flex-start; line-height: 1.05; }
.stores { display: flex; flex-wrap: wrap; gap: .8rem; margin: 1.6rem 0 .8rem; }
.btn.store { padding: .55rem 1.1rem; font-size: .9rem; gap: .45rem; }
.btn.store svg { width: 18px; height: 18px; }
.btn.store small { font-size: .62rem; }

/* "In arrivo" + bottone vero */
.coming { display: flex; flex-direction: column; align-items: flex-start; gap: 1rem; margin: 1.6rem 0 .4rem; }
.pill {
  display: inline-flex; align-items: center; gap: .5rem;
  padding: .5rem 1rem .5rem .8rem; border-radius: 999px;
  background: var(--glass); border: 1px solid var(--line);
  color: var(--ink); font-weight: 600; font-size: .9rem;
}
.pill svg { width: 18px; height: 18px; fill: var(--bordeaux); }
.pill svg + svg { margin-left: -.15rem; margin-right: .2rem; }
@media (max-width: 860px) { .coming { align-items: center; } }

/* Apertura */
.hero { padding: 4.5rem 0 3rem; }
.hero .wrap { display: grid; grid-template-columns: 1.15fr .85fr; gap: 3rem; align-items: center; }
.hero .phone { justify-self: center; }
@media (max-width: 860px) {
  .hero { padding-top: 3rem; }
  .hero .wrap { grid-template-columns: 1fr; text-align: center; }
  .hero .stores { justify-content: center; }
}

.phone { width: min(300px, 78vw); position: relative; }
.phone img { position: relative; z-index: 1; border-radius: 38px; box-shadow: var(--shadow); }

/* Bagliori morbidi dietro al telefono, come il bordeaux e l'oro dell'app */
.glow::before, .glow::after {
  content: ""; position: absolute; border-radius: 50%; pointer-events: none;
  filter: blur(48px); opacity: .55; z-index: 0;
}
.glow::before { width: 78%; height: 42%; left: -22%; top: 8%; background: var(--bordeaux); opacity: .32; }
.glow::after { width: 90%; height: 48%; right: -28%; bottom: 4%; background: var(--gold-accent); opacity: .7; }
.hero { position: relative; overflow: hidden; }
.hero .wrap { position: relative; z-index: 1; }
.hero::before {
  content: ""; position: absolute; width: 520px; height: 520px; border-radius: 50%;
  left: -180px; top: -140px; background: var(--gold-pale); filter: blur(70px); opacity: .9; pointer-events: none; z-index: 0;
}

/* Sezioni */
section { padding: 4rem 0; }
.section-head { max-width: 640px; margin-bottom: 2.5rem; }

/* Striscia delle schermate: cinque telefoni in fila (su desktop tutti in vista,
   su mobile scorre a scatti), con un bagliore unico dietro */
.screens {
  position: relative;
  display: grid; grid-template-columns: repeat(5, 1fr); gap: 1.4rem;
  margin: 0 0 3.5rem;
}
.screens::before, .screens::after {
  content: ""; position: absolute; border-radius: 50%; pointer-events: none;
  filter: blur(60px); z-index: 0;
}
.screens::before { width: 46%; height: 55%; left: -6%; top: 10%; background: var(--gold-accent); opacity: .6; }
.screens::after { width: 46%; height: 55%; right: -6%; top: 25%; background: var(--bordeaux); opacity: .22; }
.screen { position: relative; z-index: 1; margin: 0; text-align: center; }
.phone.strip { width: 100%; }
.phone.strip img { border-radius: 26px; }
.screen figcaption { margin-top: 1rem; font-size: .95rem; line-height: 1.4; }
.screen figcaption strong {
  display: block; font-family: var(--serif); font-size: 1.15rem; color: var(--bordeaux); margin-bottom: .2rem;
}
@media (max-width: 900px) {
  .screens {
    display: flex; gap: 1.2rem;
    overflow-x: auto; overscroll-behavior-x: contain;
    scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    /* sborda fino ai bordi dello schermo, cosi' il primo telefono non e' incollato al margine */
    margin-left: -4vw; margin-right: -4vw; padding: .5rem 4vw 1rem;
    scroll-padding-inline: 4vw;
  }
  .screens::-webkit-scrollbar { display: none; }
  .screens::before, .screens::after { display: none; }
  .screen { flex: 0 0 auto; width: min(220px, 62vw); scroll-snap-align: center; }
  .screen:first-child { scroll-snap-align: start; }
  .screen:last-child { scroll-snap-align: end; }
}

/* I quattro testi, in due colonne */
.features { display: grid; grid-template-columns: 1fr 1fr; gap: 1.6rem 3rem; }
.feature h3 { padding-top: .9rem; border-top: 2px solid var(--gold-accent); }
.feature p { margin-bottom: 0; }
@media (max-width: 700px) { .features { grid-template-columns: 1fr; } }

.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.4rem; counter-reset: step; }
@media (max-width: 760px) { .steps { grid-template-columns: 1fr; } }
.card {
  background: var(--glass); border: 1px solid rgba(255, 253, 244, 0.9);
  border-radius: var(--radius); padding: 1.6rem;
  box-shadow: 0 10px 30px rgba(63, 13, 18, 0.07);
}
.step { position: relative; padding-top: 1.9rem; }
.step::before {
  counter-increment: step; content: counter(step);
  position: absolute; top: 1.1rem; right: 1.2rem;
  font-family: var(--serif); font-weight: 700; font-size: 1.1rem;
  color: var(--gold-accent);
}
.step-icon {
  width: 56px; height: 56px; padding: 13px; border-radius: 18px; margin-bottom: 1rem;
  background: var(--bordeaux); color: #fff;
  fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round;
  box-shadow: 0 10px 22px rgba(162, 29, 51, 0.25);
}

.safe { background: var(--glass-strong); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.safe ul { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.2rem 2rem; }
@media (max-width: 700px) { .safe ul { grid-template-columns: 1fr; } }
.safe li { display: grid; grid-template-columns: 34px 1fr; gap: .8rem; align-items: start; }
.safe li svg { width: 34px; height: 34px; fill: none; stroke: var(--bordeaux); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.safe li strong { display: block; color: var(--ink); }

.final { position: relative; overflow: hidden; text-align: center; padding: 7rem 0; }
.final .wrap { position: relative; z-index: 1; }
.final .stores { justify-content: center; }
/* La K del logo, grande e sfumata, dietro la chiusura */
.big-k {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -54%);
  font-family: var(--serif); font-style: italic; font-weight: 700; font-size: clamp(14rem, 30vw, 21rem);
  line-height: 1; pointer-events: none; user-select: none;
  background: linear-gradient(180deg, rgba(162, 29, 51, .10), rgba(201, 162, 75, .06));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}

/* Piede */
footer { border-top: 1px solid var(--line); padding: 2rem 0 2.6rem; font-size: .92rem; color: var(--muted); }
footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .8rem 2rem; }
footer nav { display: flex; gap: 1.4rem; }

/* Pagina di testo (privacy) */
.doc { padding: 3rem 0 4rem; }
.doc .wrap { width: min(760px, 92vw); }
.doc h1 { font-size: clamp(2rem, 5vw, 2.8rem); margin-bottom: .3em; }
.doc h2 { font-size: 1.5rem; margin-top: 2.2em; color: var(--bordeaux); }
.doc h3 { font-size: 1.15rem; margin-top: 1.6em; }
.doc hr { border: 0; border-top: 1px solid var(--line); margin: 2rem 0; }
.doc ul { padding-left: 1.3rem; }
.doc li { margin-bottom: .4rem; }
.doc table { width: 100%; border-collapse: collapse; margin: 1rem 0 1.5rem; font-size: .95rem; }
.doc th, .doc td { text-align: left; padding: .6rem .7rem; border-bottom: 1px solid var(--line); vertical-align: top; }
.doc th { color: var(--ink); background: var(--glass); }
.doc .table-wrap { overflow-x: auto; }
.doc blockquote { margin: 1rem 0; padding: .8rem 1.2rem; border-left: 4px solid var(--gold-accent); background: var(--glass); border-radius: 0 12px 12px 0; }
.back { display: inline-block; margin-bottom: 1.4rem; font-weight: 600; }
