/* Page de présentation : sections sous l'écran de connexion (mêmes jetons HexaRelay que hexarelay.css) */
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

.hero-links { display: flex; flex-wrap: wrap; gap: .5rem 1.25rem; margin-top: 1.6rem; font-size: .72rem; font-variant: small-caps; letter-spacing: .16em; text-transform: uppercase; }
.hero-links a { color: var(--text-dim); text-decoration: none; padding: 6px 0; min-height: 36px; display: inline-flex; align-items: center; }
.hero-links a:hover { color: var(--amber); }
.hero-links .hero-cta { color: var(--amber); border-bottom: 1px solid var(--amber); }
@media (orientation: portrait), (max-width: 900px) { .hero-links { justify-content: center; } }

.landing { background: var(--anthracite); }
.band { padding: 4.5rem 1.5rem; border-top: 1px solid var(--line); }
.band.alt { background: var(--anthracite-2); }
.wrap { max-width: 1040px; margin: 0 auto; }
.wrap.narrow { max-width: 520px; }
.band h2 { font-size: clamp(1.8rem, 4.5vw, 2.5rem); line-height: 1.15; margin: .5rem 0 1.2rem; }
.band .eyebrow { margin: 0; color: var(--amber); opacity: .8; }
.lead { max-width: 70ch; font-size: 1.05rem; line-height: 1.65; color: #cfcac0; margin: 0 0 2rem; }
.lead.small { font-size: .92rem; line-height: 1.55; color: var(--text-dim); margin-bottom: 1.2rem; }
.muted-line { color: var(--text-dim); }

.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 14px; }
.card3 { background: var(--anthracite-2); border: 1px solid var(--line); border-radius: 2px; padding: 22px 20px; }
.band.alt .card3 { background: var(--anthracite); }
.card3 h3 { margin: 0 0 .6rem; font-family: Georgia, "Times New Roman", serif; font-weight: normal; font-size: 1.12rem; color: var(--text); }
.card3 p { margin: 0; font-size: .9rem; line-height: 1.6; color: var(--text-dim); }

.steps { list-style: none; counter-reset: s; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px; }
.steps li { counter-increment: s; position: relative; background: var(--anthracite); border: 1px solid var(--line); border-radius: 2px; padding: 22px 20px 20px; display: flex; flex-direction: column; gap: .4rem; }
.steps li::before { content: counter(s); font-family: Georgia, serif; font-size: 2rem; color: var(--amber); line-height: 1; margin-bottom: .3rem; }
.steps b { font-weight: 600; }
.steps span { font-size: .88rem; line-height: 1.55; color: var(--text-dim); }

.plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 340px)); gap: 16px; justify-content: start; }
.plan { display: flex; flex-direction: column; background: var(--anthracite-2); border: 1px solid var(--line); border-radius: 2px; padding: 26px 24px; }
.plan.featured { border-color: var(--amber); box-shadow: 0 0 0 1px rgba(224, 160, 74, .25); }
.plan .tag { align-self: flex-start; font-size: .6rem; font-variant: small-caps; letter-spacing: .22em; text-transform: uppercase; color: #1a1408; background: var(--amber); padding: 3px 8px; border-radius: 2px; margin-bottom: .8rem; }
.plan h3 { margin: 0; font-family: Georgia, serif; font-weight: normal; font-size: 1.4rem; }
.plan .tagline { margin: .3rem 0 1rem; font-size: .88rem; color: var(--text-dim); min-height: 2.6em; }
.plan .price { font-family: Georgia, serif; font-size: 2.6rem; line-height: 1; }
.plan .price small { font-family: system-ui, sans-serif; font-size: .85rem; color: var(--text-dim); margin-left: .3rem; }
.plan ul { list-style: none; margin: 1.3rem 0 1.5rem; padding: 0; display: grid; gap: .6rem; flex: 1; }
.plan li { position: relative; padding-left: 1.4rem; font-size: .88rem; line-height: 1.45; color: #cfcac0; }
.plan li::before { content: "✓"; position: absolute; left: 0; color: var(--amber); }
.plan .btn-primary { text-align: center; text-decoration: none; display: block; }
.fine { margin: 1.4rem 0 0; font-size: .8rem; color: var(--text-faint); max-width: 70ch; line-height: 1.6; }

.signup { display: flex; flex-direction: column; gap: .85rem; }
.signup .field { display: flex; flex-direction: column; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.qr { background: #fff; padding: 10px; border-radius: 2px; align-self: center; }
.manual { font-size: .85rem; color: var(--text-dim); }
.manual summary { cursor: pointer; padding: 6px 0; }
.manual code { display: block; word-break: break-all; background: var(--field-bg); padding: 10px; border: 1px solid var(--line); border-radius: 2px; color: var(--text); font-size: .95rem; letter-spacing: .08em; }
.signup .btn-primary { align-self: stretch; }

.site-foot { padding: 2rem 1.5rem 3rem; text-align: center; font-size: .72rem; letter-spacing: .1em; color: var(--text-faint); border-top: 1px solid var(--line); }
.site-foot a { color: var(--text-dim); }

.recover-link { margin: 1rem 0 0; font-size: .78rem; }
.recover-link a { color: var(--text-dim); }
@media (orientation: portrait), (max-width: 900px) { .recover-link { text-align: center; } }
.backup { border: 1px solid #6b5326; background: var(--anthracite); padding: 14px; border-radius: 2px; }
.codes { list-style: none; margin: 0 0 10px; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 6px 14px; font-family: "Courier New", monospace; font-size: 1.05rem; letter-spacing: .06em; }

.accept { display: flex; gap: 10px; align-items: flex-start; font-size: .82rem; line-height: 1.5; color: var(--text-dim); cursor: pointer; }
.accept input { width: auto; margin-top: 3px; accent-color: var(--amber); flex: 0 0 auto; }
.accept a, .legal-links a { color: var(--amber); }
.legal-links { margin: 0 0 8px; font-size: .75rem; }

/* barre des liens légaux : même présentation que l'en-tête des pages légales */
.legal-nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 2px 20px; margin: 0 0 10px; }
.legal-nav a { font-size: .68rem; font-variant: small-caps; letter-spacing: .16em; text-transform: uppercase; color: var(--text-dim); text-decoration: none; padding: 10px 2px; min-height: 40px; display: inline-flex; align-items: center; border-bottom: 1px solid transparent; }
.legal-nav a:hover, .legal-nav a:focus-visible { color: var(--amber); border-bottom-color: var(--amber); outline: none; }
.legal-links { margin: 0; }
