/* ─────────────────────────────────────────────────────────────────────────
   faceup3d — landing page
   Extends the in-app dark palette (bg #1a1a22 / accent #6488d8) so the jump
   from marketing page into the tool itself feels like one product, and adds
   a warm "metal" accent for the physical coin/medal/stamp side of the story.
   ───────────────────────────────────────────────────────────────────────── */

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

:root {
    /* surfaces — cool, near-black, matching the app */
    --bg:        #121218;
    --bg2:       #1a1a22;
    --bg3:       #20202b;
    --panel:     #24242f;
    --border:    #34343f;
    --rule:      #2a2a35;

    /* text */
    --text:      #e9e9ef;
    --text2:     #9c9cae;
    --text3:     #64647a;

    /* digital accent — same blue family as the app */
    --accent:      #6c8fe0;
    --accent-dim:  #4a6abf;
    --accent-glow: rgba(108, 143, 224, 0.18);

    /* physical accent — brass/bronze, for the coin & medal material world */
    --metal:      #c9a06a;
    --metal-dim:  #8a6f45;
    --metal-hi:   #f0d9a8;

    --radius:    10px;
    --radius-lg: 18px;

    --font-display: 'Fraunces', Georgia, serif;
    --font-body:    'Inter', 'Segoe UI', system-ui, sans-serif;
    --font-mono:    'JetBrains Mono', ui-monospace, Menlo, monospace;
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; scroll-behavior: auto !important; }
}

html { scroll-behavior: smooth; }

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

.wrap {
    max-width: 1180px;
    margin: 0 auto;
    padding: 0 28px;
}

a { color: inherit; }

::selection { background: var(--accent-glow); color: var(--text); }

:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 3px;
    border-radius: 4px;
}

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

/* ── Eyebrow / labels ─────────────────────────────────────────────────── */
.eyebrow {
    font-family: var(--font-mono);
    font-size: 12px;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--text3);
    display: inline-flex;
    align-items: center;
    gap: 10px;
}
.eyebrow::before {
    content: '';
    width: 18px;
    height: 1px;
    background: var(--metal-dim);
}

/* ── Nav ──────────────────────────────────────────────────────────────── */
.nav {
    position: sticky;
    top: 0;
    z-index: 40;
    background: rgba(18, 18, 24, 0.86);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--rule);
}
.nav .wrap {
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.brand {
    font-family: var(--font-display);
    font-size: 20px;
    font-weight: 600;
    letter-spacing: 0.01em;
    text-decoration: none;
    color: var(--text);
}
.brand span { color: var(--accent); }
.nav-links {
    display: flex;
    align-items: center;
    gap: 32px;
    list-style: none;
}
.nav-links a {
    text-decoration: none;
    font-size: 14px;
    color: var(--text2);
    transition: color 0.2s;
}
.nav-links a:hover { color: var(--text); }
.nav .btn-small { display: inline-flex; }

@media (max-width: 720px) {
    .nav-links .nav-link-item { display: none; }
}

/* ── Buttons ──────────────────────────────────────────────────────────── */
.btn {
    font-family: var(--font-body);
    font-size: 15px;
    font-weight: 600;
    border-radius: var(--radius);
    padding: 13px 24px;
    border: 1px solid transparent;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    transition: transform 0.15s ease, border-color 0.2s, background 0.2s, box-shadow 0.2s;
}
.btn:active { transform: translateY(1px); }

.btn-primary {
    background: linear-gradient(180deg, var(--accent), var(--accent-dim));
    color: #fff;
    box-shadow: 0 1px 0 rgba(255,255,255,0.15) inset, 0 8px 24px -10px var(--accent-glow);
}
.btn-primary:hover { box-shadow: 0 1px 0 rgba(255,255,255,0.2) inset, 0 10px 28px -8px var(--accent-glow); }

.btn-ghost {
    background: transparent;
    border-color: var(--border);
    color: var(--text2);
}
.btn-ghost:hover { border-color: var(--accent); color: var(--text); }

.btn-small { padding: 9px 16px; font-size: 13px; }

.btn[disabled] { opacity: 0.4; cursor: not-allowed; pointer-events: none; }

/* ── Hero ─────────────────────────────────────────────────────────────── */
.hero {
    position: relative;
    padding: 88px 0 96px;
    overflow: hidden;
}
.hero::before {
    content: '';
    position: absolute;
    inset: -20% -10% auto -10%;
    height: 560px;
    background: radial-gradient(60% 60% at 30% 20%, var(--accent-glow), transparent 70%);
    pointer-events: none;
}
.hero .wrap {
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    gap: 56px;
    align-items: center;
    position: relative;
}
.hero h1 {
    font-family: var(--font-display);
    font-size: clamp(34px, 4.4vw, 54px);
    line-height: 1.08;
    letter-spacing: -0.01em;
    font-weight: 600;
    margin: 18px 0 22px;
}
.hero h1 em {
    font-style: italic;
    color: var(--metal);
}
.hero p.lead {
    font-size: 17px;
    color: var(--text2);
    max-width: 46ch;
    margin-bottom: 32px;
}
.hero-ctas {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}
.hero-note {
    font-family: var(--font-mono);
    font-size: 12px;
    color: var(--text3);
}

.hero-visual {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}
.coin-caption {
    text-align: center;
    margin-top: 18px;
    font-family: var(--font-mono);
    font-size: 12px;
    color: var(--text3);
    letter-spacing: 0.04em;
}

/* ── Disclaimer strip ─────────────────────────────────────────────────── */
.disclaimer {
    border-top: 1px solid var(--rule);
    border-bottom: 1px solid var(--rule);
    background: var(--bg2);
}
.disclaimer .wrap {
    padding: 30px 28px;
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 20px;
    align-items: start;
}
.disclaimer-icon {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    border: 1px solid var(--metal-dim);
    color: var(--metal);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-display);
    font-style: italic;
    font-size: 20px;
    flex-shrink: 0;
}
.disclaimer h3 {
    font-family: var(--font-body);
    font-size: 15px;
    font-weight: 700;
    margin-bottom: 6px;
    color: var(--text);
}
.disclaimer p {
    color: var(--text2);
    font-size: 14px;
    max-width: 74ch;
}
.disclaimer strong { color: var(--text); font-weight: 600; }

/* ── Section shell ────────────────────────────────────────────────────── */
section.block { padding: 96px 0; }
.block-head {
    max-width: 640px;
    margin-bottom: 48px;
}
.block-head h2 {
    font-family: var(--font-display);
    font-size: clamp(26px, 3vw, 36px);
    font-weight: 600;
    margin-top: 14px;
    letter-spacing: -0.01em;
}
.block-head p {
    color: var(--text2);
    margin-top: 14px;
    font-size: 15.5px;
}

/* ── Features grid ────────────────────────────────────────────────────── */
.features-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1px;
    background: var(--rule);
    border: 1px solid var(--rule);
    border-radius: var(--radius-lg);
    overflow: hidden;
}
.feature-card {
    background: var(--bg2);
    padding: 30px 26px;
    transition: background 0.2s;
}
.feature-card:hover { background: var(--panel); }
.feature-tag {
    font-family: var(--font-mono);
    font-size: 11px;
    letter-spacing: 0.08em;
    color: var(--accent);
    text-transform: uppercase;
}
.feature-card h3 {
    font-size: 16px;
    font-weight: 600;
    margin: 12px 0 10px;
}
.feature-card p {
    font-size: 13.5px;
    color: var(--text2);
}
.feature-swatch {
    width: 100%;
    height: 64px;
    border-radius: 8px;
    margin-bottom: 18px;
    border: 1px solid var(--border);
}
.swatch-basic   { background: linear-gradient(90deg, #55566a, #9a9bb0); filter: blur(2.5px); }
.swatch-edge    { background: #101015; background-image: repeating-linear-gradient(115deg, #6c8fe0 0 2px, transparent 2px 10px), repeating-linear-gradient(25deg, #6c8fe0 0 1px, transparent 1px 12px); }
.swatch-color   { background: linear-gradient(90deg, #3a6b5c, #c9a06a, #a4553f); }
.swatch-contrast{ background: linear-gradient(90deg, #08080a 0%, #08080a 40%, #f0d9a8 60%, #f0d9a8 100%); }

@media (max-width: 900px) {
    .features-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
    .features-grid { grid-template-columns: 1fr; }
}

/* ── Geometries ───────────────────────────────────────────────────────── */
.geo-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 22px;
}
.geo-card {
    background: var(--bg2);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 24px;
}
.geo-shape {
    width: 100%;
    height: 92px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
}
.geo-shape svg { width: 72px; height: 72px; }
.geo-card h3 { font-size: 15px; font-weight: 600; margin-bottom: 6px; }
.geo-card p { font-size: 13px; color: var(--text2); }

@media (max-width: 900px) {
    .geo-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
    .geo-grid { grid-template-columns: 1fr; }
}

/* ── Example (coin/medal) ─────────────────────────────────────────────── */
.example {
    background: var(--bg2);
    border-top: 1px solid var(--rule);
    border-bottom: 1px solid var(--rule);
}
.example .wrap {
    display: grid;
    grid-template-columns: 0.85fr 1.15fr;
    gap: 64px;
    align-items: center;
    padding: 96px 28px;
}
.example-visual { display: flex; justify-content: center; }
.example-list {
    list-style: none;
    margin-top: 26px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}
.example-list li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    font-size: 14.5px;
    color: var(--text2);
}
.example-list li .dot {
    display: block;
    flex: 0 0 6px;
    width: 6px;
    height: 6px;
    margin-top: 7px;
    border-radius: 50%;
    background: var(--metal);
}
.example-list li .li-text {
    flex: 1 1 auto;
    min-width: 0;
}
.example-list strong { color: var(--text); font-weight: 600; }

/* ── Final CTA ────────────────────────────────────────────────────────── */
.cta-band {
    text-align: center;
    padding: 110px 0 120px;
    position: relative;
}
.cta-band h2 {
    font-family: var(--font-display);
    font-size: clamp(28px, 4vw, 44px);
    font-weight: 600;
    max-width: 18ch;
    margin: 16px auto 34px;
}

/* ── Footer ───────────────────────────────────────────────────────────── */
footer {
    border-top: 1px solid var(--rule);
    padding: 32px 0;
}
footer .wrap {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 13px;
    color: var(--text3);
}
footer .brand { font-size: 15px; }

/* ── Stepper overlay ──────────────────────────────────────────────────── */
.stepper-overlay {
    position: fixed;
    inset: 0;
    background: rgba(10, 10, 14, 0.72);
    backdrop-filter: blur(6px);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 100;
    padding: 24px;
}
.stepper-overlay.open { display: flex; }

.stepper {
    width: 100%;
    max-width: 620px;
    background: var(--bg2);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    box-shadow: 0 30px 80px -20px rgba(0,0,0,0.6);
    overflow: hidden;
}

.stepper-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 22px 26px;
    border-bottom: 1px solid var(--rule);
}
.stepper-rail {
    display: flex;
    align-items: center;
    gap: 8px;
}
.stepper-dot {
    font-family: var(--font-mono);
    font-size: 11px;
    color: var(--text3);
    display: flex;
    align-items: center;
    gap: 8px;
}
.stepper-dot .num {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    border: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    color: var(--text3);
    transition: all 0.2s;
}
.stepper-dot.active .num { border-color: var(--accent); color: var(--accent); }
.stepper-dot.done .num { background: var(--accent); border-color: var(--accent); color: #fff; }
.stepper-rail-line {
    width: 26px;
    height: 1px;
    background: var(--border);
}
.stepper-close {
    background: transparent;
    border: none;
    color: var(--text3);
    font-size: 18px;
    cursor: pointer;
    line-height: 1;
    padding: 4px;
}
.stepper-close:hover { color: var(--text); }

.stepper-body { padding: 34px 30px 30px; min-height: 300px; }
.step-panel { display: none; }
.step-panel.active { display: block; }

.step-eyebrow {
    font-family: var(--font-mono);
    font-size: 11px;
    letter-spacing: 0.1em;
    color: var(--accent);
    text-transform: uppercase;
}
.step-panel h3 {
    font-family: var(--font-display);
    font-size: 24px;
    font-weight: 600;
    margin: 10px 0 26px;
}

.choice-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}
.choice-card {
    background: var(--bg3);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 18px;
    cursor: pointer;
    text-align: left;
    color: var(--text);
    font-family: var(--font-body);
    transition: border-color 0.15s, background 0.15s, transform 0.1s;
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.choice-card:hover { border-color: var(--accent); }
.choice-card.selected {
    border-color: var(--accent);
    background: var(--accent-glow);
}
.choice-icon { font-size: 20px; }
.choice-card .title { font-size: 14.5px; font-weight: 600; }
.choice-card .desc { font-size: 12.5px; color: var(--text2); }

.choice-grid.single-col { grid-template-columns: 1fr; }

.step-upload {
    border: 2px dashed var(--border);
    border-radius: var(--radius-lg);
    padding: 38px 20px;
    text-align: center;
    cursor: pointer;
    transition: border-color 0.2s, background 0.2s;
}
.step-upload:hover, .step-upload.drag-over { border-color: var(--accent); background: var(--accent-glow); }
.step-upload input { display: none; }
.step-upload-icon { font-size: 28px; margin-bottom: 10px; }
.step-upload p { color: var(--text2); font-size: 14px; }
.step-upload p span { color: var(--accent); }

.step-hint {
    margin-top: 16px;
    display: flex;
    gap: 10px;
    align-items: flex-start;
    background: var(--bg3);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 12px 14px;
}
.step-hint .ic { color: var(--metal); flex-shrink: 0; font-size: 15px; }
.step-hint p { font-size: 12.5px; color: var(--text2); }

.step-preview {
    display: none;
    align-items: center;
    gap: 14px;
    background: var(--bg3);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 12px;
    margin-top: 16px;
}
.step-preview.show { display: flex; }
.step-preview img { width: 56px; height: 56px; object-fit: cover; border-radius: 6px; }
.step-preview .name { font-size: 13px; color: var(--text); word-break: break-all; }
.step-preview .swap { margin-left: auto; font-size: 12px; color: var(--accent); background: none; border: none; cursor: pointer; }

.stepper-foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 30px 26px;
    border-top: 1px solid var(--rule);
}

@media (max-width: 520px) {
    .choice-grid { grid-template-columns: 1fr; }
}

/* ── Responsive ───────────────────────────────────────────────────────── */
@media (max-width: 980px) {
    .hero .wrap { grid-template-columns: 1fr; }
    .hero-visual { order: -1; }
    .example .wrap { grid-template-columns: 1fr; padding: 64px 28px; }
    .example-visual { order: -1; }
}
@media (max-width: 640px) {
    section.block { padding: 64px 0; }
    .disclaimer .wrap { grid-template-columns: 1fr; }
    .disclaimer-icon { display: none; }
}

/* ── Registration page ────────────────────────────────────────────────── */
.nav-link-active { color: var(--text); }

.register-block { padding: 88px 0 120px; }
.register-wrap {
    display: flex;
    justify-content: center;
}
.register-card {
    width: 100%;
    max-width: 440px;
    background: var(--panel);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 40px 36px;
}
.register-title {
    font-family: var(--font-display);
    font-size: clamp(24px, 3vw, 30px);
    font-weight: 600;
    letter-spacing: -0.01em;
    margin-top: 14px;
}
.register-lead {
    color: var(--text2);
    font-size: 14.5px;
    margin-top: 12px;
    margin-bottom: 28px;
}

#registerForm .field { margin-bottom: 20px; }
#registerForm label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 8px;
}
#registerForm input[type="text"],
#registerForm input[type="email"] {
    width: 100%;
    background: var(--bg2);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    color: var(--text);
    font-family: var(--font-body);
    font-size: 14px;
    padding: 11px 14px;
    transition: border-color 0.2s;
}
#registerForm input[type="text"]::placeholder,
#registerForm input[type="email"]::placeholder { color: var(--text3); }
#registerForm input[type="text"]:focus,
#registerForm input[type="email"]:focus {
    outline: none;
    border-color: var(--accent);
}
#registerForm input.field-invalid { border-color: #d97070; }

.field-hint {
    display: block;
    font-family: var(--font-mono);
    font-size: 11px;
    color: var(--text3);
    margin-top: 6px;
}
.field-error {
    display: block;
    font-size: 12.5px;
    color: #e08585;
    margin-top: 6px;
    min-height: 1em;
}

.register-actions {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-top: 8px;
}
.register-status {
    font-size: 13px;
    color: var(--text2);
}
.register-status.ok { color: #7fc98f; }
.register-status.error { color: #e08585; }

