/* Carte Prepagate landing v2 — bozza, non pubblicata */

:root {
  --bg: #f4efe6;
  --bg-2: #fffaf3;
  --ink: #161410;
  --muted: #5c564c;
  --line: #e4dccf;
  --line-strong: #cfc6b6;
  --cta: #c2410c;
  --cta-hover: #9a3209;
  --cta-ink: #fffaf3;
  --good: #1d5a3c;
  --chip: #ece4d6;
  --phone: #1b1915;
  --serif: "Instrument Serif", "Iowan Old Style", Palatino, "Times New Roman", serif;
  --sans: "Inter", "Segoe UI", "Helvetica Neue", ui-sans-serif, system-ui, sans-serif;
  --sticky-h: 0px;
  --radius: 20px;
}

@font-face {
  font-family: "Inter";
  src: url("fonts/inter-var.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Instrument Serif";
  src: url("fonts/instrument-serif.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Instrument Serif";
  src: url("fonts/instrument-serif-italic.woff2") format("woff2");
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}

*,
*::before,
*::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(900px 420px at 10% -8%, #fff8ee 0%, transparent 55%),
    radial-gradient(700px 380px at 110% 8%, #edd9c4 0%, transparent 50%),
    var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1.05rem;
  font-weight: 430;
  line-height: 1.5;
  letter-spacing: -0.012em;
  padding-bottom: calc(var(--sticky-h) + env(safe-area-inset-bottom, 0px));
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; }

.skip {
  position: absolute;
  left: 0.75rem;
  top: 0.75rem;
  z-index: 40;
  padding: 0.5rem 0.8rem;
  background: var(--ink);
  color: var(--bg);
  border-radius: 8px;
  text-decoration: none;
  transform: translateY(-200%);
}
.skip:focus { transform: none; }

.wrap {
  width: min(1120px, calc(100% - 1.6rem));
  margin-inline: auto;
}

header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem;
  padding: 0.85rem 0 0.5rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
  min-width: 0;
}

.mark { width: 32px; height: 32px; flex: none; color: var(--ink); }

.brand-name {
  font-weight: 620;
  font-size: 0.92rem;
  letter-spacing: -0.03em;
  line-height: 1.15;
}
.brand-name span {
  display: block;
  color: var(--muted);
  font-weight: 480;
  font-size: 0.7rem;
}

.yt {
  display: inline-flex;
  align-items: center;
  padding: 0.4rem 0.7rem;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  text-decoration: none;
  font-size: 0.8rem;
  font-weight: 580;
  background: rgba(255, 250, 243, 0.75);
}

.yt:hover { border-color: var(--ink); }

/* Message match: show the matching hero */
[data-offer="hype"] .hero-qonto,
[data-offer="qonto"] .hero-hype { display: none; }

[data-offer="hype"] .qonto-section h2 { font-size: 1.55rem; }

.hero {
  display: grid;
  gap: 1.4rem;
  padding: 0.7rem 0 1.8rem;
  align-items: center;
}

.personal {
  margin: 0 0 0.7rem;
  font-size: 0.9rem;
  color: var(--muted);
  font-weight: 500;
}

.hero h1 {
  margin: 0 0 0.7rem;
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(2.15rem, 8vw, 4.2rem);
  line-height: 0.98;
  letter-spacing: -0.035em;
}

.hero h1 em { font-style: italic; }

.hero h1 .amount {
  display: block;
  font-size: 1.08em;
}

.sub {
  margin: 0 0 1.05rem;
  color: var(--ink);
  font-size: 1rem;
  max-width: 34rem;
}

.amounts {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.45rem;
  margin: 0 0 1.15rem;
  list-style: none;
  padding: 0;
}

.amounts li {
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 0.65rem 0.4rem 0.6rem;
  text-align: center;
}

.amounts strong {
  display: block;
  font-family: var(--serif);
  font-size: clamp(1.35rem, 4.5vw, 1.7rem);
  font-weight: 400;
  letter-spacing: -0.03em;
  line-height: 1;
}

.amounts span {
  display: block;
  margin-top: 0.2rem;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
}

.cta {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  padding: 0.95rem 1.1rem;
  border: 0;
  border-radius: 14px;
  background: var(--cta);
  color: var(--cta-ink);
  font: inherit;
  font-weight: 640;
  font-size: 1.02rem;
  letter-spacing: -0.02em;
  text-decoration: none;
  text-align: center;
  cursor: pointer;
}

.cta:hover { background: var(--cta-hover); }

.cta-ghost {
  background: transparent;
  color: var(--ink);
  border: 1.5px solid var(--ink);
}

.cta-ghost:hover { background: var(--ink); color: var(--bg); }

.micro {
  margin: 0.55rem 0 0;
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.4;
}

.disclose {
  margin: 0.7rem 0 0;
  padding: 0.7rem 0.8rem;
  background: var(--chip);
  border-radius: 12px;
  font-size: 0.84rem;
  line-height: 1.45;
}

.disclose strong { font-weight: 620; }

.trust {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin: 0.9rem 0 0;
  padding: 0;
  list-style: none;
}

.trust li {
  padding: 0.28rem 0.55rem;
  border-radius: 999px;
  background: var(--bg-2);
  border: 1px solid var(--line);
  font-size: 0.72rem;
  font-weight: 580;
  color: var(--ink);
}

/* Visuals: phone + card, CSS only */
.visual {
  display: grid;
  place-items: center;
  position: relative;
  min-height: 280px;
  pointer-events: none;
}

.card-3d {
  width: min(100%, 320px);
  aspect-ratio: 1.62 / 1;
  border-radius: 18px;
  color: #f7f1e6;
  background:
    radial-gradient(120px 80px at 20% 20%, rgba(255,255,255,0.14), transparent 70%),
    linear-gradient(145deg, #2a241c 0%, #151310 60%, #3a2a20 100%);
  padding: 1.1rem 1.15rem 1rem;
  box-shadow:
    0 18px 40px -18px rgba(22, 20, 16, 0.55),
    0 0 0 1px rgba(255,255,255,0.06) inset;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transform: rotate(-6deg);
}

.card-3d.qonto-card {
  background:
    radial-gradient(120px 80px at 80% 20%, rgba(255,255,255,0.1), transparent 70%),
    linear-gradient(145deg, #1c2422 0%, #101614 60%, #24322c 100%);
  transform: rotate(5deg);
}

.card-top, .card-bottom {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 0.5rem;
}

.chip {
  width: 34px;
  height: 24px;
  border-radius: 5px;
  background: linear-gradient(135deg, #d9c48a, #b08a4a 45%, #efe0b0);
}

.card-3d .label {
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  opacity: 0.7;
}

.card-3d .code {
  font-family: var(--serif);
  font-size: 1.55rem;
  letter-spacing: 0.02em;
  line-height: 1;
}

.card-3d .meta {
  font-size: 0.68rem;
  opacity: 0.8;
  letter-spacing: 0.04em;
  white-space: nowrap;
}

/* Sections */
.section {
  padding: 0.4rem 0 2.1rem;
}

.section h2 {
  margin: 0 0 1rem;
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(1.6rem, 4vw, 2.15rem);
  letter-spacing: -0.03em;
  line-height: 1.1;
}

.steps {
  display: grid;
  gap: 0.7rem;
  list-style: none;
  margin: 0;
  padding: 0;
  counter-reset: step;
}

.steps li {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.8rem;
  align-items: start;
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 0.95rem 1rem;
}

.steps li::before {
  counter-increment: step;
  content: counter(step);
  font-family: var(--serif);
  font-size: 1.55rem;
  line-height: 1;
  width: 1.4rem;
  color: var(--cta);
}

.steps h3 {
  margin: 0 0 0.15rem;
  font-size: 1rem;
  letter-spacing: -0.02em;
}

.steps p { margin: 0; color: var(--muted); font-size: 0.9rem; }

.plans {
  display: grid;
  gap: 0.7rem;
}

.plan {
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 1rem 1.05rem 1.05rem;
}

.plan.pick {
  border-color: #c9b49a;
  box-shadow: 0 0 0 1px rgba(194, 65, 12, 0.12);
}

.plan .eyebrow {
  margin: 0 0 0.25rem;
  font-size: 0.68rem;
  font-weight: 650;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--cta);
}

.plan h3 {
  margin: 0;
  font-size: 1.2rem;
  letter-spacing: -0.03em;
}

.plan .price {
  margin: 0.15rem 0 0.55rem;
  color: var(--muted);
  font-size: 0.9rem;
}

.plan ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.plan li {
  position: relative;
  padding: 0.15rem 0 0.15rem 0.9rem;
  font-size: 0.92rem;
}

.plan li::before {
  content: "·";
  position: absolute;
  left: 0.1rem;
  color: var(--muted);
}

.know {
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 1rem 1.1rem;
}

.know ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.know li {
  padding: 0.45rem 0;
  border-top: 1px solid var(--line);
  font-size: 0.95rem;
}

.know li:first-child { border-top: 0; padding-top: 0; }
.know li:last-child { padding-bottom: 0; }

.faq {
  display: grid;
  gap: 0;
  border-top: 1px solid var(--line);
}

.faq details {
  border-bottom: 1px solid var(--line);
  padding: 0.15rem 0;
}

.faq summary {
  cursor: pointer;
  list-style: none;
  padding: 0.9rem 1.6rem 0.9rem 0;
  font-weight: 600;
  letter-spacing: -0.02em;
  position: relative;
}

.faq summary::-webkit-details-marker { display: none; }

.faq summary::after {
  content: "+";
  position: absolute;
  right: 0;
  top: 0.85rem;
  font-weight: 500;
  font-size: 1.2rem;
  color: var(--muted);
}

.faq details[open] summary::after { content: "–"; }

.faq p {
  margin: 0 0 1rem;
  color: var(--muted);
  max-width: 40rem;
}

.qonto-section {
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.2rem 1.1rem 1.3rem;
}

.qonto-section .lead {
  margin: 0 0 0.9rem;
  max-width: 36rem;
}

.qonto-section .cta { max-width: 28rem; }

footer {
  border-top: 1px solid var(--line);
  padding: 1.6rem 0 2rem;
  color: var(--muted);
  font-size: 0.84rem;
  line-height: 1.55;
}

footer p { margin: 0 0 0.65rem; max-width: 46rem; }
footer a { color: var(--ink); font-weight: 560; text-underline-offset: 0.15em; }

.foot-meta {
  margin-top: 1rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 1rem;
  font-size: 0.76rem;
}

/* Sticky thumb-zone CTA, mobile only */
.sticky {
  display: none;
}

.cta:focus-visible,
.yt:focus-visible,
.brand:focus-visible,
.faq summary:focus-visible,
.sticky .cta:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 3px;
}

.code-inline {
  font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.copy {
  border: 0;
  background: none;
  color: inherit;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 0.15em;
  padding: 0;
}

.only-qonto { display: none; }
[data-offer="qonto"] .only-qonto { display: block; }
[data-offer="qonto"] #qonto { display: none; }


/* Official product photos */
.visual {
  min-height: 0;
}
.card-photo {
  width: min(100%, 360px);
  height: auto;
  margin-inline: auto;
  display: block;
}
.card-photo-qonto,
.qonto-photo {
  width: min(100%, 200px);
  height: auto;
  border-radius: 16px;
  filter: none;
  box-shadow: 0 12px 24px -14px rgba(22, 20, 16, 0.28);
}
.plan-photo {
  width: min(86%, 250px);
  height: auto;
  margin: 0 auto 0.7rem;
  display: block;
}
.plan {
  display: flex;
  flex-direction: column;
}
.plan .cta {
  width: 100%;
  min-width: 0;
  margin-top: auto;
  padding: 0.82rem 0.7rem;
  font-size: 0.92rem;
  text-wrap: pretty;
}
.qonto-section {
  display: grid;
  gap: 1.2rem;
  align-items: center;
}
.qonto-section .cta {
  width: 100%;
  max-width: 28rem;
}
.qonto-photo {
  justify-self: center;
}
.final-cta {
  text-align: center;
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.4rem 1.15rem 1.5rem;
}
.final-cta h2 {
  margin-bottom: 0.55rem;
}
.final-sub {
  margin: 0 auto 1.15rem;
  max-width: 34rem;
  color: var(--ink);
}
.final-cta .cta {
  width: 100%;
  max-width: 28rem;
}
.final-cta .code-row,
.final-cta .micro {
  justify-content: center;
}
.code-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.45rem 0.7rem;
  margin: 0.9rem 0 0.2rem;
  font-size: 0.9rem;
}

@media (max-width: 819px) {
  .hero {
    display: flex;
    flex-direction: column;
    padding-bottom: 1.2rem;
    gap: 0.85rem;
  }

  .hero > div:first-child { display: contents; }

  .hero .personal { margin-bottom: 0.45rem; }

  .hero .sub {
    margin-bottom: 0.75rem;
    font-size: 0.95rem;
  }

  .visual {
    order: 2;
    min-height: 0;
    margin: 0.1rem 0 0.2rem;
  }

  .card-photo { width: min(72%, 260px); }

  .hero-actions { order: 3; }

  .disclose { margin-top: 0.55rem; padding: 0.55rem 0.7rem; }

  .trust { gap: 0.3rem; }

  .sticky {
    display: none;
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 30;
    padding: 0.65rem 0.8rem calc(0.65rem + env(safe-area-inset-bottom, 0px));
    background: rgba(244, 239, 230, 0.92);
    backdrop-filter: blur(12px);
    border-top: 1px solid var(--line);
  }

  body.sticky-on { --sticky-h: 76px; }
  body.sticky-on .sticky { display: block; }

  .sticky .cta { width: 100%; padding: 0.88rem 1rem; }
}

@media (min-width: 820px) {
  .wrap { width: min(1120px, calc(100% - 3.4rem)); }

  header { padding: 1.2rem 0 0.6rem; }

  .hero {
    grid-template-columns: 1.1fr 0.9fr;
    gap: 2.5rem;
    padding: 1.4rem 0 2.6rem;
  }

  .cta { width: auto; min-width: 20rem; padding-inline: 1.4rem; }

  .steps { grid-template-columns: repeat(3, 1fr); }

  .steps li {
    grid-template-columns: 1fr;
    min-height: 100%;
  }

  .plans { grid-template-columns: repeat(3, 1fr); }

  .qonto-section { padding: 1.6rem 1.6rem 1.7rem; }

  .visual { min-height: 0; }

  .card-photo { width: min(100%, 420px); }

  .qonto-section {
    grid-template-columns: 1fr auto;
    align-items: center;
    padding: 1.35rem 1.5rem 1.4rem;
    gap: 1.4rem 1.75rem;
  }

  .qonto-photo,
  .card-photo-qonto {
    width: 260px;
  }

  .final-cta { padding: 2rem 2rem 2.1rem; }
  .final-cta .cta { width: auto; min-width: 22rem; }
}


/* Legal / privacy page */
.legal {
  max-width: 40rem;
  padding: 1.15rem 0 2.4rem;
}
.legal-kicker {
  margin: 0 0 0.45rem;
  font-size: 0.88rem;
  color: var(--muted);
}
.legal h1 {
  margin: 0 0 0.45rem;
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(2rem, 6vw, 3rem);
  line-height: 1.05;
  letter-spacing: -0.03em;
}
.legal-updated {
  margin: 0 0 1.6rem;
  color: var(--muted);
  font-size: 0.9rem;
}
.legal h2 {
  margin: 1.7rem 0 0.45rem;
  font-family: var(--serif);
  font-weight: 400;
  font-size: 1.45rem;
  letter-spacing: -0.025em;
  line-height: 1.2;
}
.legal p {
  margin: 0 0 0.75rem;
  color: var(--ink);
}
.legal a {
  color: var(--ink);
  font-weight: 560;
  text-underline-offset: 0.15em;
}

@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; transition: none !important; }
}
