/* Plyveo landing — "Tutto in un posto" (Podia-benchmarked, frozen 2026-07-19).
   Used by index.html and en/index.html only; inner pages (guida, wiki,
   delete-account) keep style.css. Palette anchored to the app tokens in
   lib/core/theme/app_theme_tokens.dart — every app-derived value is annotated;
   the warm paper, warm ink text and the deck's powder blue are declared
   marketing extensions (the app has no ambient marketing colors). */

@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("assets/fonts/inter-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
    U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193,
    U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --paper: #faf8f5; /* marketing extension: warm paper */
  --ink: #1f1a2e; /* marketing extension: warm ink text */
  --mut: #5d5670;
  --lav: #ece9ff; /* app brandSubtle */
  --peach: #f6e4c8; /* app warningContainer */
  --mist: #d4f2ec; /* app successContainer */
  --violet: #5b46e0; /* app primary */
  --violet-soft: #a99cff;
  --amber: #9a5b16; /* app warningContent */
  --teal: #0c7268; /* app successContent */
  --card: #ffffff; /* app surface */
  --tile: rgba(255, 255, 255, 0.75);
  --mini: rgba(255, 255, 255, 0.65);
  --nav-bg: rgba(250, 248, 245, 0.85);
  --nav-line: rgba(31, 26, 46, 0.06);
  --btn-bg: #5b46e0; /* app primary */
  --btn-fg: #ffffff;
  --foot-bg: #1f1a2e;
  --bar-track: rgba(31, 26, 46, 0.14);
  --pc1: #cfe3ef; /* marketing extension: powder blue */
  --pc2: #ece9ff; /* app brandSubtle */
  --pc3: #f6e4c8; /* app warningContainer */
  color-scheme: light;
}

/* Dark — the same warmth at night, straight from the system preference. */
@media (prefers-color-scheme: dark) {
  :root {
    --paper: #050609;
    --ink: #f4f6fa;
    --mut: #9aa1ae;
    --lav: #1c1840;
    --peach: #3a2a12;
    --mist: #0a3a35;
    --violet: #8b7bff;
    --violet-soft: #a99cff;
    --amber: #eab873;
    --teal: #5fdfc9;
    --card: #14171f;
    --tile: rgba(255, 255, 255, 0.06);
    --mini: rgba(255, 255, 255, 0.09);
    --nav-bg: rgba(5, 6, 9, 0.8);
    --nav-line: rgba(255, 255, 255, 0.09);
    --btn-bg: #8b7bff;
    --btn-fg: #15103a;
    --foot-bg: #050609;
    --bar-track: rgba(255, 255, 255, 0.14);
    --pc1: #232838;
    --pc2: #241e52;
    --pc3: #3a2a12;
    color-scheme: dark;
  }

  .conf { filter: brightness(0.75) saturate(0.85); }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; background: var(--paper); }
body {
  margin: 0;
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    Helvetica, Arial, sans-serif;
  background: var(--paper);
  color: var(--ink);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
h1, h2, h3, p { margin: 0; }
img { max-width: 100%; }
a:focus-visible, button:focus-visible, summary:focus-visible {
  outline: 2px solid var(--violet);
  outline-offset: 2px;
  border-radius: 6px;
}
.wrap { max-width: 1080px; margin: 0 auto; padding: 0 24px; }

/* Smooth theme switch — arcs included: the divider SVGs (rect background +
   curve fill) must fade on the same clock as the bands, or the whole
   rectangle flashes with the new colors while its neighbours still fade. */
body, .band, .nav, .pcard, .band .step, .faq details, .fin .card, .tile, footer,
.arc-out, .deck .arc {
  transition: background-color 0.35s ease, color 0.35s ease;
}

.arc-out path {
  transition: fill 0.35s ease;
}

/* Cross-document view transition: language (and any same-origin) navigation
   cross-fades instead of flashing white. Progressive enhancement. */
@view-transition {
  navigation: auto;
}

@media (prefers-reduced-motion: reduce) {
  @view-transition {
    navigation: none;
  }
}

/* Skip link */
.skip-link {
  position: absolute; left: -9999px; top: 0;
  background: var(--card); color: var(--ink);
  padding: 8px 16px; border-radius: 10px; z-index: 60;
}
.skip-link:focus { left: 16px; top: 16px; }

/* ---------- Nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; gap: 18px;
  padding: 12px 28px;
  background: var(--nav-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--nav-line);
  font-size: 13.5px;
}
.nav .logo { display: flex; align-items: center; gap: 8px; font-weight: 800; font-size: 16px; color: var(--ink); text-decoration: none; }
.nav .logo img { width: 26px; height: 26px; border-radius: 7px; }
.nav .links { display: flex; gap: 18px; margin-left: 8px; }
.nav .links a { color: var(--mut); text-decoration: none; font-weight: 600; }
.nav .links a:hover { color: var(--ink); }
.nav .right { margin-left: auto; display: flex; align-items: center; gap: 14px; }
.lang-switch { display: flex; align-items: center; gap: 5px; font-size: 0.85rem; }
.lang-switch a { color: var(--mut); text-decoration: none; font-weight: 600; }
.lang-switch a:hover { color: var(--ink); }
.lang-switch .lang-current { color: var(--ink); font-weight: 800; }
.lang-switch .lang-sep { color: var(--mut); opacity: 0.5; }
.nav .cta {
  padding: 9px 18px; border-radius: 999px;
  background: var(--btn-bg); color: var(--btn-fg);
  font-weight: 700; text-decoration: none; white-space: nowrap;
  transition: transform 0.18s ease;
}
.nav .cta:hover { transform: translateY(-1px); }

@media (max-width: 860px) {
  .nav { flex-wrap: wrap; gap: 10px; padding: 10px 18px 8px; }
  .nav .right { gap: 10px; }
  .nav .links {
    order: 3;
    display: flex;
    width: 100%;
    margin: 0;
    padding: 2px 0 1px;
    gap: 18px;
    justify-content: center;
    overflow-x: auto;
    scrollbar-width: none;
  }
  .nav .links::-webkit-scrollbar { display: none; }
}

@media (max-width: 380px) {
  .nav { padding-inline: 12px; gap: 8px; }
  .nav .right { gap: 8px; }
  .nav .cta { padding: 8px 12px; }
  .nav .links { justify-content: flex-start; }
}

@media (max-width: 340px) {
  .nav .cta-status { display: none; }
}

/* ---------- Reveal on scroll ----------
   Hidden-until-revealed only after landing.js successfully creates an
   IntersectionObserver: without it the page is simply fully visible.
   :where() keeps the guard at zero specificity so `.on .rv` can win. */
:where(html.reveal-ready) .rv { opacity: 0; transform: translateY(18px); transition: opacity 0.6s ease, transform 0.6s cubic-bezier(0.2, 0.7, 0.2, 1); }
.on .rv { opacity: 1; transform: none; }
.on .rv.d1 { transition-delay: 0.1s; }
.on .rv.d2 { transition-delay: 0.2s; }
.on .rv.d3 { transition-delay: 0.3s; }

/* Confetti */
.conf { position: absolute; border-radius: 8px; pointer-events: none; animation: confloat 7s ease-in-out infinite; }
.conf.round { border-radius: 999px; }
.conf.tri { border-radius: 4px; clip-path: polygon(50% 0, 100% 100%, 0 100%); }
@keyframes confloat { 0%, 100% { translate: 0 0; rotate: 0deg; } 50% { translate: 0 -12px; rotate: 6deg; } }

.store-badges {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px;
}
.store-badge { display: inline-flex; line-height: 0; }
.store-badge img { height: 52px; width: auto; display: block; }
.nav .cta-status {
  cursor: default;
  transition: none;
}
.nav .cta-status:hover {
  transform: none;
}

/* ---------- Hero ---------- */
.hero { position: relative; text-align: center; padding: 76px 24px 0; overflow: hidden; }
.hero h1 {
  font-size: clamp(38px, 6.4vw, 68px); font-weight: 800; letter-spacing: -0.025em;
  line-height: 1.04; max-width: 17ch; margin: 0 auto;
  text-wrap: balance;
}
.hero .sub { color: var(--mut); font-size: clamp(15.5px, 2vw, 19px); max-width: 52ch; margin: 18px auto 0; }
.hero .store-badges { margin-top: 28px; }

/* Deck: three product cards rising from the arc */
.deck { position: relative; margin-top: 56px; height: 300px; }
@media (max-width: 860px) { .deck { height: auto; padding-bottom: 40px; } }
.deck .arc {
  position: absolute; left: 50%; bottom: 0; transform: translateX(-50%);
  width: 160vw; height: 120px; background: var(--lav);
  border-radius: 100% 100% 0 0;
}
.deck .cards {
  position: relative; display: flex; justify-content: center; align-items: flex-end; gap: 18px;
  max-width: 980px; margin: 0 auto; padding: 0 24px;
}
@media (max-width: 860px) { .deck .cards { flex-direction: column; align-items: center; } }
.pcard {
  width: min(300px, 90vw); border-radius: 18px 18px 0 0; padding: 22px 22px 26px;
  text-align: left; box-shadow: 0 -12px 40px rgba(31, 26, 46, 0.12);
  transition: rotate 0.25s ease, transform 0.25s ease, background-color 0.35s ease;
}
@media (max-width: 860px) { .pcard { border-radius: 18px; } }
.pcard h2 { font-size: 19px; font-weight: 800; letter-spacing: -0.01em; }
.pcard h2 span { font-weight: 400; }
.pcard p { font-size: 13px; margin-top: 6px; color: var(--ink); opacity: 0.78; }
.pcard .mini { margin-top: 14px; border-radius: 10px; background: var(--mini); padding: 10px 12px; font-size: 11.5px; }
.pcard .mini .row { display: flex; justify-content: space-between; align-items: center; padding: 3px 0; gap: 8px; }
.pcard .mini .row b { font-variant-numeric: tabular-nums; }
.pc-1 { background: var(--pc1); rotate: -2.2deg; }
.pc-2 { background: var(--pc2); transform: translateY(-22px); z-index: 1; }
.pc-3 { background: var(--pc3); rotate: 2.2deg; }
.pcard:hover { rotate: 0deg; transform: translateY(-6px); }
.pc-2:hover { transform: translateY(-28px); }
@media (max-width: 860px) { .pc-1, .pc-3 { rotate: 0deg; } .pc-2 { transform: none; } }
.bars4 { display: flex; gap: 3px; }
.bars4 i { width: 16px; height: 5px; border-radius: 3px; background: var(--bar-track); }
.bars4 i.f { background: var(--violet); }
/* Judge bars animate in when the hero reveals */
:where(html.reveal-ready) .pc-2 .bars4 i.f { transform: scaleX(0); transform-origin: left; transition: transform 0.6s cubic-bezier(0.2, 0.7, 0.2, 1); }
.on .pc-2 .bars4 i.f { transform: scaleX(1); }
.on .pc-2 .row:nth-child(1) i.f { transition-delay: 0.45s; }
.on .pc-2 .row:nth-child(2) i.f { transition-delay: 0.6s; }
.on .pc-2 .row:nth-child(3) i.f { transition-delay: 0.75s; }

/* ---------- Bands & arcs ---------- */
.band { position: relative; padding: 72px 0 84px; }
.band-lav { background: var(--lav); }
.band-peach { background: var(--peach); }
.band-mist { background: var(--mist); }
.band-paper { background: var(--paper); }
.arc-out { display: block; width: 100%; height: 90px; margin-bottom: -1px; background: var(--paper); }
.arc-out.on-lav { background: var(--lav); }
.kick { display: block; font-size: 11px; font-weight: 800; letter-spacing: 0.14em; text-transform: uppercase; color: var(--violet); margin-bottom: 10px; }
.sec-head { text-align: center; max-width: 720px; margin: 0 auto 44px; }
.sec-head h2 { font-size: clamp(27px, 4vw, 40px); font-weight: 800; letter-spacing: -0.02em; line-height: 1.12; text-wrap: balance; }
.sec-head p { color: var(--mut); margin-top: 14px; font-size: 16px; }

/* Category tiles + chips */
.tiles { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
@media (max-width: 860px) { .tiles { grid-template-columns: repeat(2, 1fr); } }
.tile {
  background: var(--tile); border-radius: 16px; padding: 20px;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background-color 0.35s ease;
}
.tile:hover { transform: translateY(-3px); box-shadow: 0 12px 28px rgba(31, 26, 46, 0.1); }
.tile .em { font-size: 22px; display: block; margin-bottom: 10px; }
.tile h3 { font-size: 15px; font-weight: 700; }
.tile p { font-size: 12.5px; color: var(--mut); margin-top: 4px; }
.chips { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-top: 28px; }
.chips span {
  padding: 7px 15px; border-radius: 999px; background: var(--tile);
  font-size: 13px; font-weight: 700; color: var(--ink);
  transition: transform 0.15s ease, background 0.15s ease;
}
.chips span:hover { transform: translateY(-2px); background: var(--card); }

/* How-it-works steps (a real sequence, hence numbered) */
.band .steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; counter-reset: step; list-style: none; margin: 0; padding: 0; }
@media (max-width: 860px) { .band .steps { grid-template-columns: 1fr; } }
.band .step {
  position: relative; background: var(--card); border-radius: 18px; padding: 26px 24px 24px;
  box-shadow: 0 10px 30px rgba(31, 26, 46, 0.07);
  transition: transform 0.18s ease, box-shadow 0.18s ease, background-color 0.35s ease;
}
.band .step:hover { transform: translateY(-4px); box-shadow: 0 18px 40px rgba(31, 26, 46, 0.12); }
.band .step::before {
  counter-increment: step; content: counter(step, decimal-leading-zero);
  display: inline-block; font-weight: 800; font-size: 13px; letter-spacing: 0.06em;
  color: var(--violet); background: var(--lav); border-radius: 999px;
  padding: 4px 12px; margin-bottom: 14px;
}
.band .step h3 { font-size: 17.5px; font-weight: 800; letter-spacing: -0.01em; }
.band .step p { font-size: 14px; color: var(--mut); margin-top: 6px; }

/* Split statement */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: start; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; gap: 32px; } }
.split h2 { font-size: clamp(26px, 3.8vw, 38px); font-weight: 800; letter-spacing: -0.02em; line-height: 1.14; }
.split h2 em { font-style: normal; color: var(--violet); }
.split .lead { color: var(--mut); margin-top: 16px; font-size: 16px; }
.flist { display: grid; gap: 22px; }
.flist .f h3 { font-size: 17px; font-weight: 800; display: inline-flex; align-items: center; gap: 6px; }
.flist .f h3::after { content: "›"; color: var(--violet); font-size: 20px; }
.flist .f p { font-size: 14px; color: var(--mut); margin-top: 4px; max-width: 46ch; }

/* Screenshot gallery */
.shots { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; align-items: start; }
@media (max-width: 860px) { .shots { grid-template-columns: 1fr; max-width: 340px; margin-inline: auto; } }
.shotc { text-align: center; }
.shotc figure { margin: 0; }
.shotc img {
  width: 100%; height: auto; aspect-ratio: 1206 / 2422; object-fit: cover;
  border-radius: 22px;
  box-shadow: 0 24px 50px rgba(31, 26, 46, 0.22);
  transition: transform 0.22s ease;
}
.shotc:hover img { transform: translateY(-6px); }
.shotc figcaption { margin-top: 14px; font-size: 13.5px; font-weight: 700; }

/* Checklist grid */
.checks { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px 24px; list-style: none; margin: 0; padding: 0; }
@media (max-width: 960px) { .checks { grid-template-columns: repeat(2, 1fr); } }
.chk { display: flex; align-items: flex-start; gap: 9px; font-size: 14px; font-weight: 600; }
.chk i {
  flex-shrink: 0; width: 19px; height: 19px; border-radius: 999px; margin-top: 1px;
  background: var(--violet); position: relative;
}
.chk i::after {
  content: ""; position: absolute; left: 6px; top: 3.5px;
  width: 4px; height: 8px; border: solid var(--btn-fg); border-width: 0 2px 2px 0;
  transform: rotate(42deg);
}

/* Orb strip */
.orbstrip { display: grid; grid-template-columns: auto 1fr; gap: 36px; align-items: center; max-width: 780px; margin: 0 auto; }
@media (max-width: 720px) { .orbstrip { grid-template-columns: 1fr; justify-items: center; text-align: center; } }
.orbwrap { position: relative; width: 150px; animation: orb-float 3.2s ease-in-out infinite; }
.orbwrap::before {
  content: ""; position: absolute; inset: -18%;
  background: radial-gradient(circle, rgba(139, 123, 255, 0.4), transparent 65%);
  border-radius: 999px; filter: blur(8px);
}
.orbwrap img { position: relative; width: 100%; display: block; }
.orb-blink { position: absolute !important; inset: 0; opacity: 0; animation: orb-blink 3.8s steps(1, end) infinite; }
@keyframes orb-float { 0%, 100% { transform: translateY(0) scale(1); } 50% { transform: translateY(-8px) scale(1.015); } }
@keyframes orb-blink { 0%, 96.2% { opacity: 0; } 96.3%, 100% { opacity: 1; } }
.orbstrip h2 { font-size: clamp(24px, 3.4vw, 34px); font-weight: 800; letter-spacing: -0.02em; }
.orbstrip p { color: var(--mut); margin-top: 12px; font-size: 15.5px; max-width: 48ch; }

/* FAQ */
.faq { max-width: 720px; margin: 0 auto; display: grid; gap: 12px; }
.faq details {
  background: var(--card); border-radius: 16px; padding: 0;
  box-shadow: 0 8px 24px rgba(31, 26, 46, 0.06);
  overflow: hidden;
}
.faq summary {
  list-style: none; cursor: pointer; padding: 18px 22px;
  font-weight: 800; font-size: 15.5px;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 22px; font-weight: 400; color: var(--violet); transition: rotate 0.2s ease; }
.faq details[open] summary::after { rotate: 45deg; }
/* Open state: tighten the gap under the question and let the answer use the
   full card width. */
.faq details[open] summary { padding-bottom: 8px; }
.faq details p { padding: 0 22px 20px; font-size: 15px; line-height: 1.6; color: var(--mut); }

/* Final CTA */
.fin { position: relative; padding: 0 24px 96px; }
.fin .card {
  position: relative; max-width: 880px; margin: 0 auto; text-align: center;
  background: var(--card); border-radius: 28px; padding: 64px 32px;
  box-shadow: 0 30px 70px rgba(31, 26, 46, 0.14);
}
.fin h2 { font-size: clamp(28px, 4.4vw, 44px); font-weight: 800; letter-spacing: -0.02em; text-wrap: balance; }
.fin .sub { color: var(--mut); margin: 14px auto 26px; max-width: 46ch; }
.fin .discl { margin-top: 22px; font-size: 12px; color: var(--mut); max-width: 56ch; margin-inline: auto; }

/* Footer */
footer {
  background: var(--foot-bg); color: #cfc9de;
  padding: 56px 24px 44px; font-size: 13px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}
.foot { max-width: 1080px; margin: 0 auto; display: flex; flex-wrap: wrap; gap: 40px; justify-content: space-between; align-items: flex-start; }
.foot .logo { display: flex; align-items: center; gap: 8px; font-weight: 800; font-size: 16px; color: #fff; }
.foot .logo img { width: 24px; height: 24px; border-radius: 6px; }
.foot-cols { display: flex; flex-wrap: wrap; gap: 48px; }
.foot-col { display: grid; gap: 9px; align-content: start; }
.foot-col b { color: #fff; font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; margin-bottom: 4px; }
.foot-col a { color: #cfc9de; text-decoration: none; }
.foot-col a:hover { color: #fff; }
.foot-note { max-width: 1080px; margin: 36px auto 0; padding-top: 20px; border-top: 1px solid rgba(255, 255, 255, 0.12); display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between; color: #9d95b5; font-size: 12px; }
.foot-note a { color: #9d95b5; }
.foot-note a:hover { color: #fff; }
footer a:focus-visible { outline-color: #fff; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .rv { opacity: 1 !important; transform: none !important; transition: none !important; }
  .conf, .orbwrap, .orb-blink { animation: none; }
  .pcard, .pc-2 .bars4 i.f, .band .step, .chips span, .tile, .shotc img,
  .nav .cta, .faq summary::after, .content-card {
    transition: none !important;
    transform: none !important;
  }
  .content-card:hover { transform: none !important; }
  .pc-2 .bars4 i.f { transform: scaleX(1) !important; }
  .pc-1, .pc-3 { rotate: 0deg; }
}

/* Fallback where backdrop-filter is unsupported: solid nav. */
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .nav { background: var(--paper); }
}
