/* Lunedì marketing site — clean, modern, mobile-first */

:root {
  --blue: #17225a;
  --amber: #ff9412;
  --blue-dark: #0f1740;
  --ink: #0f1b2d;
  --ink-soft: #33415c;
  --muted: #64748b;
  --bg: #ffffff;
  --bg-soft: #f6f9ff;
  --bg-warm: #fafbfe;
  --line: #e6ecf5;
  --card: #ffffff;
  --radius: 16px;
  --shadow: 0 12px 32px rgba(15, 27, 45, 0.08);
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Inter, Roboto, "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

.wrap { max-width: 1120px; margin: 0 auto; padding: 0 24px; }

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--blue);
  margin-bottom: 12px;
}

h1 { font-size: clamp(2.25rem, 5vw, 3.5rem); line-height: 1.1; letter-spacing: -0.02em; }
h2 { font-size: clamp(1.6rem, 3.4vw, 2.4rem); line-height: 1.2; letter-spacing: -0.015em; margin-bottom: 12px; }
.section-sub { color: var(--muted); max-width: 620px; font-size: 1.06rem; }

/* ---------- Buttons & links ---------- */
.btn {
  display: inline-block;
  background: var(--blue);
  color: #fff;
  text-decoration: none;
  font-weight: 700;
  border: none;
  cursor: pointer;
  border-radius: 12px;
  padding: 12px 22px;
  font-size: 1rem;
  transition: transform 0.12s ease, background 0.12s ease, box-shadow 0.12s ease;
}
.btn:hover { background: var(--blue-dark); transform: translateY(-1px); box-shadow: 0 8px 20px rgba(23, 34, 90, 0.28); }
.btn-lg { padding: 15px 30px; font-size: 1.06rem; }
.btn-sm { padding: 9px 16px; font-size: 0.92rem; }
.btn-block { width: 100%; }

.trial-note { flex-basis: 100%; font-size: 0.85rem; color: var(--muted); margin-top: 2px; }

.link-arrow { color: var(--blue); font-weight: 700; text-decoration: none; }
.link-arrow:hover { text-decoration: underline; }

/* ---------- Nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; padding-top: 14px; padding-bottom: 14px; }
/* Anchor targets clear the sticky nav instead of sliding under it. */
section[id] { scroll-margin-top: 84px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); font-weight: 800; font-size: 1.25rem; letter-spacing: -0.01em; }
.nav-links { display: flex; align-items: center; gap: 26px; }
.nav-links a:not(.btn) { color: var(--ink-soft); text-decoration: none; font-weight: 600; font-size: 0.96rem; }
.nav-links a:not(.btn):hover { color: var(--blue); }
/* Language toggle (EN/ES): a small pill; stays visible on phones. */
.nav-links a.lang-toggle { border: 1px solid var(--line); border-radius: 999px; padding: 4px 12px; font-size: 0.85rem; }

/* ---------- Hero ---------- */
.hero {
  background: linear-gradient(180deg, var(--bg-soft) 0%, var(--bg) 100%);
  padding: 84px 0 72px;
  overflow: hidden;
}
.hero-inner { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 56px; align-items: center; }
.accent { color: #d96f00; } /* brand orange, darkened for contrast on white */
.lede { color: var(--ink-soft); font-size: 1.15rem; margin: 20px 0 30px; max-width: 520px; }
.hero-cta { display: flex; align-items: center; gap: 24px; flex-wrap: wrap; margin-bottom: 28px; }
.hero-checks { list-style: none; display: flex; gap: 22px; flex-wrap: wrap; }
.hero-checks li { position: relative; padding-left: 26px; color: var(--ink-soft); font-weight: 600; font-size: 0.94rem; }
.hero-checks li::before {
  content: ""; position: absolute; left: 0; top: 4px; width: 16px; height: 16px;
  background: var(--blue); border-radius: 50%;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4 8.5l3 3 5-6.5' stroke='black' stroke-width='2.4' fill='none' stroke-linecap='round'/%3E%3C/svg%3E") center/contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4 8.5l3 3 5-6.5' stroke='black' stroke-width='2.4' fill='none' stroke-linecap='round'/%3E%3C/svg%3E") center/contain no-repeat;
}

/* Hero mock schedule */
.hero-visual { display: flex; justify-content: center; }
/* Hero video replaces the drawn schedule once it plays. */
.promo { display: none; width: 100%; max-width: 620px; aspect-ratio: 16 / 9; border-radius: 20px; box-shadow: var(--shadow); background: #F5F5F7; object-fit: cover; }
.hero-visual.has-video .mock { display: none; }
.hero-visual.has-video .promo { display: block; }
/* The whole video fits on the first screen (below the 66px nav). */
.promo { max-width: min(620px, calc((100svh - 230px) * 16 / 9)); }

@media (prefers-color-scheme: dark) { .promo { background: #000; } }
.mock {
  width: 100%; max-width: 460px;
  background: var(--card); border: 1px solid var(--line);
  border-radius: 20px; box-shadow: var(--shadow);
  padding: 18px; position: relative;
}
.mock-bar { display: flex; align-items: center; gap: 6px; margin-bottom: 14px; }
.mock-bar .dot { width: 10px; height: 10px; border-radius: 50%; background: #dbe3ef; }
.mock-title { margin-left: 8px; font-weight: 700; font-size: 0.95rem; }
.mock-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; }
.mock-col { display: flex; flex-direction: column; gap: 8px; }
.mock-col > span { font-size: 0.72rem; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: 0.06em; }
.shift {
  font-style: normal; font-size: 0.72rem; font-weight: 600;
  padding: 8px 6px; border-radius: 8px; line-height: 1.25; text-align: center;
}
.c1 { background: #e9ecf7; color: #17225a; }
.c2 { background: #e6f9ee; color: #14743c; }
.c3 { background: #fff3e0; color: #b25e09; }
.mock-toast {
  position: absolute; left: 50%; bottom: -22px; transform: translateX(-50%);
  display: flex; align-items: center; gap: 8px; white-space: nowrap;
  background: var(--ink); color: #fff; font-size: 0.85rem; font-weight: 600;
  padding: 10px 16px; border-radius: 999px; box-shadow: var(--shadow);
}

/* ---------- Logos strip ---------- */
.logos { padding: 40px 24px 8px; text-align: center; }
.logos-label { font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.14em; color: var(--muted); font-weight: 700; margin-bottom: 16px; }
.logos-row { display: flex; justify-content: center; gap: 34px; flex-wrap: wrap; color: var(--ink-soft); font-weight: 700; font-size: 1.05rem; opacity: 0.75; }

/* ---------- Features ---------- */
.features { padding: 88px 24px; }
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-top: 40px; }
.card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 28px 26px; transition: transform 0.14s ease, box-shadow 0.14s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.icon {
  width: 46px; height: 46px; border-radius: 12px;
  background: #e9ecf7; color: var(--blue);
  display: flex; align-items: center; justify-content: center; margin-bottom: 18px;
}
.icon svg { width: 24px; height: 24px; }
.card h3 { font-size: 1.08rem; margin-bottom: 8px; letter-spacing: -0.01em; }
.card p { color: var(--muted); font-size: 0.97rem; }

/* ---------- How it works ---------- */
.how { background: var(--bg-warm); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 88px 0; }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; margin-top: 44px; }
.step-num {
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--blue); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 1.15rem; margin-bottom: 16px;
}
.step h3 { font-size: 1.15rem; margin-bottom: 8px; }
.step p { color: var(--muted); }

/* ---------- Contact ---------- */
.contact { padding: 96px 24px; }
.contact-card {
  display: grid; grid-template-columns: 1fr 1fr; gap: 56px;
  background: var(--bg-soft); border: 1px solid var(--line);
  border-radius: 24px; padding: 52px;
}
.contact-copy p { color: var(--ink-soft); margin-bottom: 22px; }
.contact-points { list-style: none; }
.contact-points li { position: relative; padding-left: 28px; margin-bottom: 12px; font-weight: 600; color: var(--ink-soft); }
.contact-points li::before { content: "✓"; position: absolute; left: 0; color: var(--blue); font-weight: 800; }

.form-note { font-size: 0.85rem; color: var(--muted); margin-top: 12px; text-align: center; }

/* ---------- Testimonial ---------- */
.testimonial { padding: 72px 24px; }
.testi-card {
  max-width: 720px; margin: 0 auto; text-align: center;
  background: var(--bg-soft); border: 1px solid var(--line);
  border-radius: 24px; padding: 48px 40px; box-shadow: var(--shadow);
}
.testi-quote {
  font-size: clamp(1.25rem, 2.6vw, 1.7rem); font-weight: 700;
  letter-spacing: -0.01em; line-height: 1.4;
}
.testi-quote::before { content: "\201C"; color: var(--amber); }
.testi-quote::after { content: "\201D"; color: var(--amber); }
.testi-attr { color: var(--muted); margin-top: 18px; font-weight: 600; }

/* ---------- FAQ ---------- */
.faq { padding: 72px 24px 88px; }
.faq-list { margin-top: 32px; max-width: 760px; }
.faq-item {
  background: var(--card); border: 1px solid var(--line);
  border-radius: 14px; margin-bottom: 12px; overflow: hidden;
}
.faq-item summary {
  cursor: pointer; list-style: none;
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
  padding: 18px 22px; font-weight: 700; font-size: 1.02rem;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+"; font-size: 1.5rem; line-height: 1; color: var(--blue);
  font-weight: 700; flex-shrink: 0; transition: transform 0.15s ease;
}
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item p { padding: 0 22px 20px; color: var(--muted); }
.faq-item p a { color: var(--blue); font-weight: 600; }

/* ---------- Footer ---------- */
.footer { border-top: 1px solid var(--line); padding: 40px 0 48px; }
.footer-inner { display: flex; flex-direction: column; gap: 8px; align-items: flex-start; }
.footer-tag { color: var(--ink-soft); font-weight: 600; }
.footer-copy { color: var(--muted); font-size: 0.88rem; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; gap: 48px; }
  .hero { padding: 60px 0 56px; }
  .mock { max-width: 100%; }
  .grid { grid-template-columns: 1fr 1fr; }
  .steps { grid-template-columns: 1fr; gap: 28px; }
  .contact-card { grid-template-columns: 1fr; gap: 36px; padding: 36px 26px; }
}

@media (max-width: 600px) {
  .nav-links a:not(.btn) { display: none; }
  .nav-links a.lang-toggle { display: inline-block; }
  .grid { grid-template-columns: 1fr; }
  .hero-checks { gap: 12px; }
  .mock-grid { grid-template-columns: repeat(5, 1fr); gap: 6px; }
  .shift { font-size: 0.62rem; padding: 7px 3px; }
  .mock-toast { font-size: 0.76rem; bottom: -20px; }
  .contact { padding: 64px 24px; }
  .features { padding: 64px 24px; }
  .how { padding: 64px 0; }
  .testimonial { padding: 56px 24px; }
  .testi-card { padding: 36px 26px; }
  .faq { padding: 56px 24px 64px; }
  .faq-item summary { padding: 16px 18px; font-size: 0.98rem; }
  .faq-item p { padding: 0 18px 18px; }
}

/* Pricing */
.pricing { text-align: center; padding: 72px 0; }
.price-card { max-width: 420px; margin: 28px auto 0; background: #fff; border: 1px solid #e5e7eb; border-radius: 18px; padding: 32px; box-shadow: 0 12px 40px rgba(23,34,90,.08); }
.price { font-size: 52px; font-weight: 800; color: #17225a; }
.price span { font-size: 16px; font-weight: 600; color: #6b7280; }
.price-list { list-style: none; padding: 0; margin: 20px 0 24px; text-align: left; }
.price-list li { padding: 8px 0 8px 30px; position: relative; font-size: 15px; color: #374151; }
.price-list li::before { content: "✓"; position: absolute; left: 6px; color: #ff9412; font-weight: 800; }
.contact-cta { display: flex; flex-direction: column; gap: 12px; justify-content: center; min-width: 240px; }
.footer-mail { margin-top: 6px; }
.footer-mail a { color: #ff9412; text-decoration: none; font-weight: 600; }
.footer-legal { font-size: 0.88rem; }
.footer-legal a { color: var(--muted); text-decoration: none; }
.footer-legal a:hover { text-decoration: underline; }

/* ---- site update banner (stale-cache detector) ---- */
#site-updatebar{position:fixed;top:0;left:0;right:0;z-index:200;display:flex;align-items:center;justify-content:center;gap:12px;padding:10px 16px;background:#17225a;color:#fff;font:600 14px var(--font);box-shadow:0 4px 16px rgba(15,27,45,.25)}
#site-updatebar button{cursor:pointer;border:0;border-radius:8px;font-weight:700;font-size:13px;font-family:var(--font)}
#site-updatebar-btn{background:#ff9412;color:#17225a;padding:7px 16px}
#site-updatebar-x{background:transparent;color:#fff;padding:7px 10px;font-size:15px;line-height:1}

/* Our story + Zibetto (Oct 2026) */
.story { max-width: 760px; margin-top: 18px; }
.story p { font-size: 17px; line-height: 1.6; margin: 0 0 14px; }
.story-sign { color: var(--muted); font-size: 15px !important; }
.story-press { font-size: 15px !important; }
.story-zibetto { margin-top: 28px; padding: 22px 24px; border-radius: 18px; background: #1b2150; color: #fff; max-width: 760px; }
.story-zibetto .eyebrow { color: #ff9412; margin: 0 0 6px; }
.story-zibetto h3 { margin: 0 0 8px; font-size: 22px; color: #fff; }
.story-zibetto p { margin: 0; line-height: 1.55; color: rgba(255,255,255,.85); }
.story-press a { color: #1b2150; font-weight: 600; }

/* Feature groups: short lists, easy to scan */
.fcard .fl { list-style: none; margin: 12px 0 0; padding: 0; display: grid; gap: 7px; }
.fcard .fl li { position: relative; padding-left: 20px; font-size: .95rem; line-height: 1.4; }
.fcard .fl li::before { content: ""; position: absolute; left: 2px; top: .5em; width: 8px; height: 8px; border-radius: 50%; background: currentColor; opacity: .35; }
.price-card .addon { margin: 14px 0 18px; padding: 12px 14px; border-radius: 12px; background: rgba(10,132,255,.08); font-size: .95rem; line-height: 1.45; }
.ptag { display: inline-block; vertical-align: middle; font-size: .68rem; font-weight: 700; letter-spacing: .02em; padding: 2px 8px; border-radius: 999px; background: rgba(10,132,255,.12); color: #0a6fd8; margin-left: 4px; }

/* Hero video first on phones and tablets, the whole video on the first screen
   (below the ~66px nav). Last in the file so it wins over the rules above. */
@media (max-width: 900px) {
  .hero { padding-top: 12px; }
  .hero-inner { gap: 32px; }
  .hero-visual { order: -1; }
  .promo { max-width: min(100%, calc((100svh - 90px) * 16 / 9)); }
}
@media (max-width: 700px) {
  .promo { aspect-ratio: 9 / 16; border-radius: 22px; height: calc(100svh - 90px); max-height: 780px; width: auto; max-width: 100%; }
}

/* Brand: primary call-to-action in lunedì orange with dark text (as in the app). */
.btn-cta { background: var(--amber); color: #1a1000; }
.btn-cta:hover { background: #ffa83d; box-shadow: 0 8px 20px rgba(255, 148, 18, 0.32); }
