/* Edo Trades, pagine dell'evento live. Colori dal logo: nero #0B0D0C, verde #12B76A. */
:root {
  --bg: #0B0D0C;
  --surface: #121513;
  --surface-2: #181C19;
  --line: #262E29;
  --text: #F2F4F3;
  --muted: #A3ADA7;
  --green: #12B76A;
  --green-dark: #0E9A59;
  --green-soft: rgba(18, 183, 106, 0.12);
  --red: #F04438;
  --red-soft: rgba(240, 68, 56, 0.12);
  --amber: #F5B83D;
  --radius: 14px;
  --serif: "Fraunces", Georgia, "Times New Roman", serif;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  color-scheme: dark;
}
/* La pagina è scura per scelta di brand: in modalità scura i colori restano gli stessi. */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) { --bg: #0B0D0C; --surface: #121513; --text: #F2F4F3; }
}
:root[data-theme="dark"] { --bg: #0B0D0C; --surface: #121513; --text: #F2F4F3; }

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.55;
}
img, svg { max-width: 100%; display: block; }
a { color: var(--green); }
strong { color: #fff; }

.wrap { width: 100%; max-width: 760px; margin: 0 auto; padding: 0 18px; }

/* Barra in alto */
.topbar { border-bottom: 1px solid var(--line); background: rgba(11, 13, 12, 0.92); position: sticky; top: 0; z-index: 20; backdrop-filter: blur(8px); }
.topbar .wrap { display: flex; align-items: center; justify-content: space-between; gap: 12px; height: 60px; }
.topbar img { height: 26px; width: auto; }
.topbar .tag { font-size: 12px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--green); white-space: nowrap; }

/* Avviso della thank you page */
.alert { background: var(--amber); color: #1A1300; text-align: center; font-weight: 800; font-size: 15px; padding: 10px 16px; letter-spacing: 0.02em; }

/* Hero */
.hero { padding: 34px 0 28px; text-align: center; }
.live-pill { display: inline-flex; align-items: center; gap: 8px; border: 1px solid var(--line); background: var(--surface); border-radius: 999px; padding: 6px 14px; font-size: 13px; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; }
.dot { width: 9px; height: 9px; border-radius: 50%; background: var(--red); box-shadow: 0 0 0 0 rgba(240, 68, 56, 0.6); animation: pulse 1.6s infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(240, 68, 56, 0.55); } 70% { box-shadow: 0 0 0 10px rgba(240, 68, 56, 0); } 100% { box-shadow: 0 0 0 0 rgba(240, 68, 56, 0); } }
.pre { color: var(--muted); font-size: 16px; margin: 20px auto 0; max-width: 620px; }
.pre strong { color: var(--text); }
h1 { font-family: var(--serif); font-weight: 700; font-size: 33px; line-height: 1.15; letter-spacing: -0.01em; margin: 18px 0 0; }
h1 .hl { color: var(--green); }
.sub { font-size: 19px; margin: 18px auto 0; max-width: 620px; }
.sub2 { color: var(--muted); font-size: 16px; margin: 12px auto 0; max-width: 600px; }

/* Bottoni e dettagli dell'evento */
.cta-block { margin: 26px auto 0; max-width: 520px; }
.btn {
  display: block; width: 100%; border: 0; cursor: pointer; text-decoration: none; text-align: center;
  background: var(--green); color: #04130B; font-family: var(--sans); font-weight: 800; font-size: 19px;
  letter-spacing: 0.01em; padding: 18px 20px; border-radius: 12px;
  box-shadow: 0 8px 24px rgba(18, 183, 106, 0.25); transition: transform 0.12s ease, background 0.12s ease;
}
.btn:hover { background: #16C977; }
.btn:active { transform: translateY(1px); }
.btn small { display: block; font-weight: 600; font-size: 13px; opacity: 0.85; margin-top: 2px; }
.btn-telegram { background: #2AABEE; color: #fff; box-shadow: 0 8px 24px rgba(42, 171, 238, 0.25); }
.btn-telegram:hover { background: #3BB6F2; }
.event-line { margin-top: 12px; font-size: 15px; font-weight: 600; }
.event-line span { color: var(--muted); font-weight: 500; }
.model-line { margin-top: 8px; font-size: 13.5px; color: var(--muted); }

.countdown { display: flex; justify-content: center; gap: 10px; margin-top: 18px; }
.countdown div { background: var(--surface); border: 1px solid var(--line); border-radius: 10px; min-width: 66px; padding: 8px 6px; }
.countdown b { display: block; font-size: 22px; font-variant-numeric: tabular-nums; }
.countdown span { font-size: 11px; color: var(--muted); text-transform: uppercase; letter-spacing: 0.06em; }

/* Sezioni */
section { padding: 34px 0; border-top: 1px solid var(--line); }
h2 { font-family: var(--serif); font-size: 27px; line-height: 1.2; margin: 0 0 20px; text-align: center; }
h2 .em { color: var(--green); }
h2 .no { color: var(--red); }

.list { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.list li { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 15px 16px 15px 52px; position: relative; }
.list li::before { position: absolute; left: 16px; top: 14px; width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; font-size: 14px; font-weight: 800; }
.list.yes li::before { content: "✓"; background: var(--green-soft); color: var(--green); }
.list.no li::before { content: "✕"; background: var(--red-soft); color: var(--red); }
.list.do li::before { content: "→"; background: var(--green-soft); color: var(--green); }
.list li strong { display: block; margin-bottom: 2px; }
.list li p { margin: 0; color: var(--muted); font-size: 15.5px; }

/* Chi è Ehab */
.about { display: grid; gap: 18px; }
.photo { aspect-ratio: 4 / 3; border-radius: var(--radius); overflow: hidden; background: var(--surface-2); }
.photo img { width: 100%; height: 100%; object-fit: cover; }
.facts { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.facts li { border-left: 3px solid var(--green); padding: 4px 0 4px 14px; }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-bottom: 18px; }
.stat { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 8px; text-align: center; }
.stat b { display: block; font-family: var(--serif); font-size: 26px; color: var(--green); line-height: 1.1; }
.stat span { font-size: 12.5px; color: var(--muted); }

/* Segnaposto per immagini che il team deve caricare */
.ph { border: 2px dashed #3A4740; border-radius: var(--radius); display: grid; place-items: center; text-align: center; color: #7E8A83; font-size: 13.5px; padding: 18px; background: repeating-linear-gradient(45deg, #121513, #121513 12px, #141815 12px, #141815 24px); }

/* Payout dei clienti */
.payouts { display: grid; gap: 14px; }
.payout { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.payout .ph { aspect-ratio: 16 / 10; border-radius: 0; border-width: 0 0 2px 0; }
.payout .body { padding: 14px 16px 16px; }
.payout .amount { font-family: var(--serif); font-size: 26px; color: var(--green); font-weight: 700; line-height: 1.1; }
.payout .meta { font-size: 13px; color: var(--muted); margin-top: 2px; }
.payout blockquote { margin: 10px 0 0; font-size: 15.5px; color: var(--text); }
.disclaimer { font-size: 12.5px; color: var(--muted); text-align: center; margin-top: 16px; }

/* FAQ */
details { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 0 16px; margin-bottom: 10px; }
summary { cursor: pointer; font-weight: 700; padding: 15px 0; list-style: none; position: relative; padding-right: 28px; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; position: absolute; right: 2px; top: 12px; font-size: 22px; color: var(--green); font-weight: 400; }
details[open] summary::after { content: "\2212"; }
details p { margin: 0 0 15px; color: var(--muted); font-size: 15.5px; }

/* Form */
.form-card { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 22px 18px; }
.form-card h3 { font-family: var(--serif); font-size: 24px; text-align: center; margin: 0 0 6px; }
.form-card .lead { text-align: center; color: var(--muted); font-size: 15px; margin: 0 0 18px; }
.field { margin-bottom: 12px; }
.field label { display: block; font-size: 13.5px; font-weight: 600; margin-bottom: 5px; }
.field input, .field select {
  width: 100%; font: inherit; color: var(--text); background: var(--bg); border: 1px solid #34413A;
  border-radius: 10px; padding: 13px 14px; outline: none;
}
.field input:focus, .field select:focus { border-color: var(--green); box-shadow: 0 0 0 3px var(--green-soft); }
.phone-row { display: grid; grid-template-columns: 118px 1fr; gap: 8px; }
.consent { display: flex; gap: 10px; align-items: flex-start; font-size: 12.5px; color: var(--muted); margin: 14px 0 16px; line-height: 1.45; }
.consent input { margin-top: 3px; width: 18px; height: 18px; accent-color: var(--green); flex: none; }
.form-note { text-align: center; font-size: 12.5px; color: var(--muted); margin-top: 10px; }
.error { color: #FF8A80; font-size: 13px; margin-top: 8px; display: none; }
.error.show { display: block; }

/* Popup del form */
dialog { border: 0; padding: 0; background: transparent; width: min(480px, calc(100% - 24px)); max-height: calc(100% - 24px); }
dialog::backdrop { background: rgba(0, 0, 0, 0.72); }
dialog .form-card { position: relative; padding-top: 30px; }
.close { position: absolute; top: 8px; right: 10px; background: none; border: 0; color: var(--muted); font-size: 28px; cursor: pointer; line-height: 1; }

/* Thank you page */
.steps { counter-reset: s; list-style: none; padding: 0; margin: 18px 0 0; display: grid; gap: 10px; }
.steps li { counter-increment: s; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 13px 14px 13px 54px; position: relative; text-align: left; }
.steps li::before { content: counter(s); position: absolute; left: 14px; top: 11px; width: 28px; height: 28px; border-radius: 50%; background: var(--green); color: #04130B; font-weight: 800; display: grid; place-items: center; }
.video { aspect-ratio: 16 / 9; margin-top: 22px; }
.video iframe { width: 100%; height: 100%; border: 0; border-radius: var(--radius); }
.cal { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; margin-top: 14px; }
.cal a { font-size: 14px; font-weight: 600; color: var(--text); text-decoration: none; border: 1px solid var(--line); background: var(--surface); border-radius: 10px; padding: 10px 14px; }
.cal a:hover { border-color: var(--green); }
.box { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; font-size: 15.5px; color: var(--muted); }
.box strong { color: var(--text); }

/* Footer */
footer { border-top: 1px solid var(--line); padding: 28px 0 40px; font-size: 12px; color: #7E8A83; text-align: center; }
footer p { margin: 0 0 10px; }
footer a { color: #7E8A83; }

@media (min-width: 720px) {
  body { font-size: 18px; }
  h1 { font-size: 46px; }
  h2 { font-size: 34px; }
  .hero { padding: 54px 0 40px; }
  .about { grid-template-columns: 260px 1fr; align-items: start; }
  .photo { aspect-ratio: 4 / 5; }
  .payouts { grid-template-columns: 1fr 1fr; }
  .payouts .payout:first-child { grid-column: 1 / -1; }
  .form-card { padding: 30px 32px; }
}

/* Fatti ancora da confermare: restano visibili finché il team non li sostituisce */
.todo { background: rgba(245, 184, 61, 0.16); color: var(--amber); border-radius: 4px; padding: 0 4px; }

/* Focus, constrained fields and touch targets; original design preserved. */
:focus-visible { outline: 2px solid var(--green); outline-offset: 4px; }
.phone-row > * { min-width: 0; }
.btn:disabled { cursor: wait; opacity: .65; }
.close { min-width: 44px; min-height: 44px; top: 0; right: 4px; }
#signup { scroll-margin-top: 24px; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
