:root {
  --bg: #f5f7fb;
  --ink: #0b1220;
  --muted: #5b6472;
  --acc: #0057e7;
  --acc-soft: #e8f0ff;
  --card: #ffffff;
  --line: #e3e7ee;
  --ok: #10a37f;
  --warn: #f59e0b;
  --rose: #e879a0;
  --violet: #8b5cf6;
  --red: #ef4444;
}
* { box-sizing: border-box; }
body {
  margin: 0;
  font: 17px/1.6 -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", Arial, sans-serif;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
a { color: var(--acc); }
:focus-visible { outline: 2px solid var(--acc); outline-offset: 4px; border-radius: 6px; }
img { max-width: 100%; }

/* header */
.top { max-width: 1040px; margin: 0 auto; padding: 28px 24px 0; display: flex; align-items: center; justify-content: space-between; }
.mark { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); font-weight: 600; text-decoration: none; }
.mark img { width: 30px; height: 30px; border-radius: 9px; }
.top nav a { color: var(--muted); text-decoration: none; font-size: .95rem; margin-left: 22px; }
.top nav a:hover { color: var(--ink); }

/* hero */
.hero { max-width: 1040px; margin: 0 auto; padding: 56px 24px 0; display: grid; grid-template-columns: 1.05fr 1fr; gap: 48px; align-items: center; }
.hero-icon { width: 92px; height: 92px; border-radius: 24px; box-shadow: 0 10px 28px rgba(11,18,32,.16); display: block; margin-bottom: 28px; }
.hero h1 { font-size: clamp(2.5rem, 5.6vw, 3.9rem); line-height: 1.03; letter-spacing: -0.035em; font-weight: 750; margin: 0; max-width: 14ch; }
.hero h1 span { color: var(--acc); }
.lead { font-size: 1.15rem; color: var(--muted); margin: 20px 0 0; max-width: 40ch; }
.cta-row { display: flex; align-items: center; gap: 16px; margin-top: 32px; flex-wrap: wrap; }
.cta { display: inline-block; background: var(--acc); color: #fff; font-weight: 600; padding: 14px 26px; border-radius: 999px; text-decoration: none; }
.cta[aria-disabled="true"] { background: var(--ink); cursor: default; }
.note { color: var(--muted); font-size: .92rem; margin: 0; }

/* phone frames with real screens */
.stage { position: relative; height: 660px; }
.phone {
  position: absolute;
  width: 270px;
  aspect-ratio: 9 / 19.5;
  border-radius: 44px;
  background: #0b1220;
  padding: 10px;
  box-shadow: 0 30px 70px rgba(11,18,32,.22);
}
.phone img { width: 100%; height: 100%; object-fit: cover; object-position: top; border-radius: 34px; display: block; background: #fff; }
.phone.main { left: 50%; transform: translateX(-50%); top: 0; z-index: 2; }
.phone.back { right: 0; top: 70px; width: 230px; transform: rotate(5deg); opacity: .95; z-index: 1; }
.phone.front { left: 0; top: 250px; width: 220px; transform: rotate(-5deg); z-index: 3; }

/* sections */
section.block { max-width: 1040px; margin: 0 auto; padding: 96px 24px 0; }
.kicker { font-size: .8rem; letter-spacing: .16em; text-transform: uppercase; color: var(--acc); font-weight: 700; margin: 0 0 14px; }
.block h2 { font-size: clamp(2rem, 4vw, 2.8rem); line-height: 1.1; letter-spacing: -0.03em; margin: 0; font-weight: 750; max-width: 20ch; }
.block h2 span { color: var(--muted); }

.feature { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; margin-top: 72px; }
.feature.flip .feature-text { order: 2; }
.feature-text h3 { font-size: 1.6rem; line-height: 1.2; letter-spacing: -0.02em; margin: 0; font-weight: 700; }
.feature-text p { color: var(--muted); margin: 14px 0 0; max-width: 42ch; }

/* card mockups built in CSS */
.mock { background: var(--card); border: 1px solid var(--line); border-radius: 28px; padding: 28px; box-shadow: 0 20px 50px rgba(11,18,32,.07); }
.mock-label { font-size: .78rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); font-weight: 700; margin: 0 0 16px; }

/* mock: vista annuale */
.year { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px 12px; }
.month { font-size: .8rem; font-weight: 700; color: var(--ink); margin-bottom: 6px; }
.dots { display: grid; grid-template-columns: repeat(7, 1fr); gap: 3px; }
.dots i { width: 100%; aspect-ratio: 1; border-radius: 3px; background: #eef1f6; display: block; }
.dots i.f { background: var(--acc); }
.dots i.e { background: var(--warn); }
.dots i.b { background: var(--ok); }
.dots i.h { background: var(--rose); }

/* mock: periodo con un gesto */
.week { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; text-align: center; font-size: .9rem; }
.week .d { font-size: .72rem; color: var(--muted); font-weight: 600; }
.week .n { padding: 10px 0; border-radius: 12px; font-weight: 600; }
.week .range { background: var(--acc-soft); color: var(--acc); }
.week .range.start, .week .range.end { background: var(--acc); color: #fff; }
.week .hol { color: var(--red); }
.confirm { margin-top: 18px; display: flex; justify-content: space-between; align-items: center; gap: 12px; background: var(--bg); border-radius: 16px; padding: 14px 16px; font-size: .95rem; }
.confirm b { font-weight: 650; }
.confirm span { background: var(--acc); color: #fff; font-weight: 600; padding: 9px 16px; border-radius: 999px; font-size: .9rem; }

/* mock: festività */
.holidays { list-style: none; padding: 0; margin: 0; }
.holidays li { display: grid; grid-template-columns: 56px 1fr auto; gap: 14px; align-items: center; padding: 14px 0; border-top: 1px solid var(--line); }
.holidays li:first-child { border-top: 0; padding-top: 0; }
.holidays .date { background: var(--acc-soft); color: var(--acc); border-radius: 12px; text-align: center; font-weight: 700; padding: 8px 0; font-size: .9rem; line-height: 1.1; }
.holidays .date small { display: block; font-size: .7rem; font-weight: 600; text-transform: uppercase; }
.holidays b { font-weight: 650; }
.holidays em { font-style: normal; color: var(--muted); font-size: .88rem; }
.tag { font-size: .75rem; font-weight: 700; color: #0a6b52; background: #e6f7f2; padding: 5px 10px; border-radius: 999px; }

/* mock: saldo */
.balance { display: grid; gap: 18px; }
.bal-row { display: grid; gap: 8px; }
.bal-head { display: flex; justify-content: space-between; font-size: .95rem; font-weight: 650; }
.bal-head span { color: var(--muted); font-weight: 500; }
.bar { height: 10px; border-radius: 999px; background: #eef1f6; overflow: hidden; display: flex; }
.bar i { display: block; height: 100%; }
.bar .used { background: var(--acc); }
.bar .plan { background: #9ec2ff; }

/* numbered list (terrae-style rows) */
.rules { margin-top: 96px; border-top: 1px solid var(--line); }
.rules div { display: grid; grid-template-columns: 64px 1fr 1fr; gap: 24px; padding: 28px 0; border-bottom: 1px solid var(--line); align-items: baseline; }
.rules .n { font-size: 1.8rem; font-weight: 750; color: var(--acc); letter-spacing: -0.02em; }
.rules b { font-size: 1.15rem; font-weight: 700; }
.rules span { color: var(--muted); }

/* screens gallery */
.shots-row { margin-top: 56px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.shots figure { margin: 0; text-align: center; }
.shots .frame { background: #0b1220; border-radius: 40px; padding: 9px; box-shadow: 0 24px 60px rgba(11,18,32,.18); }
.shots img { display: block; width: 100%; height: auto; aspect-ratio: 920 / 2000; object-fit: cover; border-radius: 32px; }
.shots figcaption { margin-top: 16px; color: var(--muted); font-size: .95rem; }

/* privacy band */
.privacy { margin-top: 96px; background: var(--ink); color: #fff; border-radius: 32px; padding: 56px 48px; display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; }
.privacy h2 { font-size: clamp(1.8rem, 3.4vw, 2.4rem); line-height: 1.12; letter-spacing: -0.02em; margin: 0; font-weight: 750; }
.privacy p { color: #c7d2e6; margin: 0; font-size: 1.05rem; }

/* footer */
.legal-foot { max-width: 1040px; margin: 72px auto 0; padding: 32px 24px 64px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; color: var(--muted); font-size: .92rem; }
.legal-foot a { color: var(--muted); }

/* responsive */
@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; gap: 56px; text-align: center; padding-top: 40px; }
  .hero-icon { margin: 0 auto 24px; }
  .hero h1, .lead { margin-left: auto; margin-right: auto; }
  .cta-row { justify-content: center; }
  .stage { height: 520px; max-width: 420px; margin: 0 auto; width: 100%; }
  .feature { grid-template-columns: 1fr; gap: 36px; margin-top: 56px; }
  .feature.flip .feature-text { order: 0; }
  .shots-row { grid-template-columns: 1fr; max-width: 300px; margin-left: auto; margin-right: auto; }
  .privacy { grid-template-columns: 1fr; padding: 40px 28px; }
  .rules div { grid-template-columns: 48px 1fr; }
  .rules span { grid-column: 2; }
}
@media (max-width: 560px) {
  .top nav a:first-child { display: none; }
  .phone { width: 210px; }
  .phone.back, .phone.front { width: 180px; }
  .stage { height: 440px; }
}
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; }
}
