/* FeltElo — page styles. Builds on site.css (paper, ink, pine). */

:root {
    --cloth: #1f4336;
    --cloth-2: #27543f;
    --wood: #4a2f1e;
}

/* ── Hero tweak ── */
.cue-hero h1 { max-width: 24ch; }
.hero-aside dd { color: var(--ink-2); }

/* ── Steps ── */
.steps {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem 2rem;
}
.steps li { position: relative; padding-top: 0.4rem; border-top: 1px solid var(--ink); }
.step-n {
    display: inline-block;
    font-family: var(--serif);
    font-size: 1.6rem;
    color: var(--pine);
    margin-bottom: 0.4rem;
}
.steps h3 { margin-bottom: 0.5rem; }
.steps p { color: var(--ink-2); font-size: 0.97rem; }
@media (max-width: 800px) { .steps { grid-template-columns: 1fr; } }

/* ── Features ── */
.feat-block + .feat-block { margin-top: 3.2rem; }
.feat-head {
    display: flex;
    align-items: baseline;
    gap: 1rem;
    flex-wrap: wrap;
    padding-bottom: 0.8rem;
    border-bottom: 1px solid var(--ink);
    margin-bottom: 1.4rem;
}
.feat-head h3 { font-size: 1.55rem; }
.feat-head p { color: var(--muted); font-size: 0.95rem; }

.feat-grid {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.6rem 1.8rem;
}
.feat-grid-2 { grid-template-columns: repeat(2, 1fr); }
.feat h4 {
    font-family: var(--serif);
    font-size: 1.12rem;
    font-weight: 600;
    line-height: 1.3;
    margin-bottom: 0.4rem;
}
.feat p { color: var(--ink-2); font-size: 0.93rem; }
.feat.star {
    padding: 0.9rem 1rem 1rem;
    background: var(--white);
    border: 1px solid var(--pine);
}
.feat-tag {
    display: inline-block;
    font-size: 0.66rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--pine-ink);
    background: var(--pine);
    padding: 0.15rem 0.45rem;
    margin-bottom: 0.55rem;
}
@media (max-width: 1000px) { .feat-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .feat-grid, .feat-grid-2 { grid-template-columns: 1fr; } }

.not-doing {
    margin-top: 3rem;
    padding: 1.1rem 1.3rem;
    border-left: 3px solid var(--rust);
    background: var(--paper-2);
}
.not-doing h3 { font-size: 1.1rem; margin-bottom: 0.3rem; }
.not-doing p { color: var(--ink-2); font-size: 0.95rem; }

/* ── Games ── */
.games {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    border-top: 1px solid var(--rule);
    border-left: 1px solid var(--rule);
}
.games li {
    padding: 1.2rem 1.2rem 1.3rem;
    border-right: 1px solid var(--rule);
    border-bottom: 1px solid var(--rule);
    background: var(--white);
}
.games b {
    display: block;
    font-family: var(--serif);
    font-size: 1.35rem;
    font-weight: 600;
    color: var(--pine);
    margin-bottom: 0.35rem;
}
.games span { color: var(--ink-2); font-size: 0.93rem; }
@media (max-width: 900px) { .games { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .games { grid-template-columns: 1fr; } }

/* ── Calculator ── */
.calc {
    display: grid;
    grid-template-columns: 1.3fr 1fr;
    gap: 2.5rem;
    align-items: start;
}
.calc-form {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.9rem 1.2rem;
}
.calc-form label {
    display: block;
    font-size: 0.8rem;
    color: var(--ink-2);
    margin-bottom: 0.3rem;
}
.calc-form input {
    width: 100%;
    background: var(--white);
    border: 1px solid var(--rule);
    padding: 0.55rem 0.7rem;
    border-radius: 0;
    font-variant-numeric: tabular-nums;
}
.calc-form input:focus { outline: 2px solid var(--pine); outline-offset: 1px; }

.calc-out {
    background: var(--ink);
    color: #d8d2c6;
    padding: 1.4rem 1.5rem 1.5rem;
    position: sticky;
    top: 5.2rem;
}
.calc-out dl {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 0.5rem 1rem;
    font-size: 0.93rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #3a362e;
}
.calc-out dt { color: #9a9284; }
.calc-out dd { text-align: right; font-variant-numeric: tabular-nums; color: #f4efe6; }
.calc-out dd.neg { color: #e9a08a; }
.calc-total { padding-top: 1rem; }
.calc-total span { display: block; font-size: 0.8rem; letter-spacing: 0.08em; text-transform: uppercase; color: #9a9284; }
.calc-total strong {
    display: block;
    font-family: var(--serif);
    font-size: clamp(1.9rem, 4vw, 2.6rem);
    color: #f4efe6;
    margin: 0.2rem 0 0.3rem;
    font-variant-numeric: tabular-nums;
}
.calc-total strong.bad { color: #e9a08a; }
.calc-total small { display: block; font-size: 0.85rem; color: #c9c2b4; }
.calc-assume {
    margin-top: 1.6rem;
    font-size: 0.85rem;
    color: var(--muted);
    max-width: 60rem;
}
@media (max-width: 860px) {
    .calc { grid-template-columns: 1fr; gap: 1.6rem; }
    .calc-out { position: static; }
}
@media (max-width: 480px) { .calc-form { grid-template-columns: 1fr; } }

/* ── Compare ── */
.compare-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; border: 1px solid var(--rule); background: var(--white); }
.compare {
    width: 100%;
    min-width: 46rem;
    border-collapse: collapse;
    font-size: 0.9rem;
}
.compare th, .compare td {
    padding: 0.75rem 0.9rem;
    text-align: left;
    vertical-align: top;
    border-bottom: 1px solid var(--rule);
}
.compare thead th {
    font-family: var(--serif);
    font-size: 1rem;
    font-weight: 600;
    background: var(--paper-2);
}
.compare thead th small {
    display: block;
    font-family: var(--sans);
    font-size: 0.72rem;
    font-weight: 400;
    color: var(--muted);
    margin-top: 0.15rem;
}
.compare thead th:nth-child(2) { color: var(--pine); border-bottom: 2px solid var(--pine); }
.compare tbody th { font-weight: 500; color: var(--ink); width: 15rem; }
.compare td:nth-child(2) { background: color-mix(in srgb, var(--pine) 6%, transparent); font-weight: 500; }
.compare td.y { color: var(--pine); }
.compare td.n { color: var(--muted); }
.compare td.p { color: var(--ink-2); }
.compare-hint { display: none; font-size: 0.8rem; color: var(--muted); margin-bottom: 0.5rem; }
@media (max-width: 700px) {
    .compare-hint { display: block; }
    .compare { min-width: 40rem; font-size: 0.85rem; }
    .compare th, .compare td { padding: 0.6rem 0.7rem; }
    .compare tbody th {
        width: 8.5rem;
        position: sticky;
        left: 0;
        background: var(--white);
        box-shadow: 1px 0 0 var(--rule);
        z-index: 1;
    }
    .compare thead th:first-child { position: sticky; left: 0; z-index: 2; }
}

/* ── Roadmap ── */
.roadmap {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 1.5rem;
}
.roadmap li { border-top: 2px solid var(--rule); padding-top: 0.8rem; }
.roadmap li:first-child { border-top-color: var(--pine); }
.rm-when {
    display: inline-block;
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--pine);
    margin-bottom: 0.4rem;
}
.roadmap h3 { font-size: 1.15rem; margin-bottom: 0.4rem; }
.roadmap p { color: var(--ink-2); font-size: 0.92rem; }
@media (max-width: 1000px) { .roadmap { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .roadmap { grid-template-columns: 1fr; } }

/* ── Pricing ── */
.prices {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}
.price {
    background: var(--white);
    border: 1px solid var(--rule);
    padding: 1.4rem 1.4rem 1.5rem;
    display: flex;
    flex-direction: column;
}
.price:first-child { border-color: var(--pine); }
.price-n {
    font-family: var(--serif);
    font-size: 2.2rem;
    font-weight: 600;
    margin: 0.4rem 0 0.4rem;
    line-height: 1.1;
}
.price-n small { font-family: var(--sans); font-size: 0.85rem; font-weight: 400; color: var(--muted); }
.price-d { color: var(--ink-2); font-size: 0.93rem; flex: 1; margin-bottom: 1.2rem; }
@media (max-width: 860px) { .prices { grid-template-columns: 1fr; } }

/* ── App section ── */
.app-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 3rem;
    align-items: center;
}
.app-grid h2 { margin: 0.5rem 0 0.9rem; }
.app-grid > div > p { color: var(--ink-2); max-width: 36rem; }
.app-list {
    list-style: none;
    margin: 1.4rem 0 1.8rem;
    border-top: 1px solid var(--rule);
}
.app-list li {
    padding: 0.6rem 0;
    border-bottom: 1px solid var(--rule);
    font-size: 0.95rem;
    color: var(--ink-2);
}
.app-list b { color: var(--ink); font-weight: 600; }
.waitlist { max-width: 34rem; }
#waitlistMessage, #cueMessage { margin-top: 0.8rem; font-size: 0.92rem; }

.phone-wrap { display: flex; justify-content: center; }
.phone {
    width: min(20rem, 100%);
    background: var(--ink);
    color: #f4efe6;
    border-radius: 2rem;
    padding: 1.1rem 1rem 1.2rem;
    border: 6px solid #2a2721;
    box-shadow: 0 0 0 1px #3a362e;
    font-size: 0.85rem;
}
.phone-top {
    display: flex;
    justify-content: space-between;
    font-size: 0.68rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #9a9284;
    margin-bottom: 1rem;
}
.phone-score {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 0.6rem;
    align-items: center;
    text-align: center;
    background: var(--cloth);
    padding: 0.9rem 0.6rem;
    border-radius: 0.6rem;
}
.phone-score small { display: block; font-size: 0.7rem; color: #cfe7d8; }
.phone-score b { display: block; font-family: var(--serif); font-size: 2.2rem; line-height: 1.1; }
.phone-score em { display: block; font-style: normal; font-size: 0.7rem; color: #e9c46a; }
.phone-score .vs { font-size: 0.68rem; color: #cfe7d8; text-transform: uppercase; letter-spacing: 0.06em; }
.phone-clip {
    margin-top: 0.8rem;
    padding: 0.6rem 0.7rem;
    border: 1px solid #3a362e;
    border-radius: 0.5rem;
    font-size: 0.78rem;
    color: #d8d2c6;
}
.phone-clip .dot { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: #d9532b; margin-right: 0.4rem; }
.phone-list { margin-top: 0.8rem; }
.phone-list div {
    display: flex;
    justify-content: space-between;
    padding: 0.5rem 0.2rem;
    border-bottom: 1px solid #2f2c26;
    font-size: 0.8rem;
}
.phone-list span { color: #9a9284; }
.phone-cta {
    margin-top: 0.9rem;
    text-align: center;
    background: #e9c46a;
    color: var(--ink);
    font-weight: 600;
    padding: 0.6rem;
    border-radius: 0.5rem;
}
@media (max-width: 860px) {
    .app-grid { grid-template-columns: 1fr; gap: 2rem; }
    .phone-wrap { order: -1; }
}

/* ══════════════════════════════════════════════════════════
   FeltElo — premium layer: real photography, dark hero, bands
   ══════════════════════════════════════════════════════════ */

:root {
    --night: #0d1511;
    --night-2: #142019;
    --gold: #e9c46a;
    --paper-on-dark: #f1ece2;
    --muted-on-dark: #a8a295;
}

/* ── Hero (dark, photo) ── */
.cue-hero {
    position: relative;
    padding: 4rem 0 3rem;
    border-bottom: 0;
    color: var(--paper-on-dark);
    background:
        radial-gradient(60rem 30rem at 85% 10%, rgba(31,67,54,0.55), transparent 60%),
        radial-gradient(40rem 24rem at 10% 90%, rgba(233,196,106,0.08), transparent 60%),
        linear-gradient(180deg, var(--night) 0%, var(--night-2) 100%);
    overflow: hidden;
}
.cue-hero .hero-grid {
    grid-template-columns: 1.05fr 1fr;
    gap: 3.5rem;
    align-items: center;
}
.cue-hero .kicker { color: var(--gold); }
.cue-hero h1 { color: #fff; max-width: 15ch; font-size: clamp(2.3rem, 5.2vw, 3.9rem); }
.cue-hero .lede { color: #d6d0c3; max-width: 34rem; }
.cue-hero .btn-fill { background: var(--gold); color: var(--ink); font-weight: 600; }
.cue-hero .btn-line { border-color: rgba(255,255,255,0.35); color: var(--paper-on-dark); }
.cue-hero .btn-line:hover { border-color: #fff; opacity: 1; }
.hero-note {
    margin-top: 1.4rem;
    font-size: 0.78rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--muted-on-dark);
}

.hero-photo {
    position: relative;
    margin: 0;
    aspect-ratio: 3 / 2;
    border-radius: 6px;
    overflow: hidden;
    border: 1px solid rgba(255,255,255,0.12);
    box-shadow: 0 30px 80px -30px rgba(0,0,0,0.9), 0 0 0 1px rgba(0,0,0,0.6);
    background: #000;
}
.hero-photo img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.hero-photo::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0,0,0,0.25) 0%, transparent 35%, transparent 70%, rgba(0,0,0,0.45) 100%);
    pointer-events: none;
}
/* ball tracking boxes */
.trk {
    position: absolute;
    left: var(--x);
    top: var(--y);
    width: var(--s);
    aspect-ratio: 1;
    transform: translate(-50%, -50%);
    border: 1.5px solid var(--gold);
    border-radius: 3px;
    box-shadow: 0 0 0 1px rgba(0,0,0,0.35), inset 0 0 0 1px rgba(0,0,0,0.25);
    z-index: 2;
    animation: trk-pulse 2.8s ease-in-out infinite;
}
.trk::before, .trk::after {
    content: "";
    position: absolute;
    width: 28%;
    height: 28%;
    border: 2px solid var(--gold);
}
.trk::before { left: -2px; top: -2px; border-right: 0; border-bottom: 0; }
.trk::after  { right: -2px; bottom: -2px; border-left: 0; border-top: 0; }
.trk i {
    position: absolute;
    left: 50%;
    top: calc(100% + 0.3rem);
    transform: translateX(-50%);
    font-style: normal;
    font-size: 0.62rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--gold);
    background: rgba(13,21,17,0.75);
    padding: 0.1rem 0.4rem;
    border-radius: 2px;
    white-space: nowrap;
}
.trk-edge i { left: auto; right: calc(100% + 0.35rem); top: 50%; transform: translateY(-50%); }
@keyframes trk-pulse { 0%,100% { opacity: 0.85; } 50% { opacity: 1; box-shadow: 0 0 0 1px rgba(0,0,0,0.35), 0 0 18px rgba(233,196,106,0.35); } }

/* HUD chips */
.hud {
    position: absolute;
    z-index: 3;
    display: grid;
    gap: 0.15rem;
    padding: 0.55rem 0.75rem 0.6rem;
    background: rgba(13,21,17,0.78);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 4px;
    color: var(--paper-on-dark);
    max-width: 70%;
}
.hud-tl { left: 0.9rem; top: 0.9rem; }
.hud-br { right: 0.9rem; bottom: 0.9rem; text-align: right; }
.hud-bl { left: 0.9rem; bottom: 0.9rem; }
.hud-k {
    font-size: 0.62rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--muted-on-dark);
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
}
.hud-br .hud-k { justify-content: flex-end; }
.hud-v { font-size: 0.86rem; font-variant-numeric: tabular-nums; }
.hud-v b { color: var(--gold); font-weight: 600; }
.live-dot {
    width: 7px; height: 7px; border-radius: 50%;
    background: #e5533c;
    box-shadow: 0 0 0 0 rgba(229,83,60,0.6);
    animation: live 1.6s ease-out infinite;
}
@keyframes live { 0% { box-shadow: 0 0 0 0 rgba(229,83,60,0.6); } 100% { box-shadow: 0 0 0 8px rgba(229,83,60,0); } }

/* facts strip under hero */
.hero-facts {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem 2rem;
    margin-top: 3.2rem;
    padding-top: 1.6rem;
    border-top: 1px solid rgba(255,255,255,0.14);
}
.hero-facts dt {
    font-size: 0.68rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 0.35rem;
}
.hero-facts dd { color: #cfc9bc; font-size: 0.92rem; line-height: 1.5; }

@media (max-width: 1000px) {
    .cue-hero .hero-grid { grid-template-columns: 1fr; gap: 2.4rem; }
    .cue-hero h1 { max-width: 20ch; }
    .hero-facts { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 800px) {
    .cue-hero { padding: 2.6rem 0 2.2rem; }
    .hud-bl { display: none; }
    .hud { max-width: 80%; padding: 0.45rem 0.6rem 0.5rem; }
    .hud-v { font-size: 0.78rem; }
    .trk i { display: none; }
}
@media (max-width: 520px) {
    .hero-facts { grid-template-columns: 1fr; gap: 1.1rem; }
    .hud-br { display: none; }
}

/* ── Photo strip ── */
.gallery-sec { padding: 1.6rem 0 0; }
.gallery {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.2rem;
}
.gallery figure { margin: 0; }
.gallery picture {
    display: block;
    width: 100%;
    aspect-ratio: 4 / 3;
    border-radius: 4px;
    background: var(--paper-2);
}
.gallery img { display: block; width: 100%; height: 100%; object-fit: cover; }
.gallery img { filter: saturate(0.92) contrast(1.03); transition: transform 0.6s ease, filter 0.6s ease; }
.gallery picture { overflow: hidden; }
.gallery li:hover img { transform: scale(1.03); filter: saturate(1) contrast(1.05); }
.gallery figcaption {
    margin-top: 0.7rem;
    font-size: 0.9rem;
    color: var(--ink-2);
    line-height: 1.5;
    padding-right: 0.5rem;
}
.gallery figcaption b { color: var(--ink); font-weight: 600; }
@media (max-width: 800px) {
    .gallery { grid-template-columns: 1fr; gap: 1.4rem; }
    .gallery picture { aspect-ratio: 16 / 10; }
}

/* ── Games with photos ── */
.games {
    border: 0;
    gap: 1.2rem;
}
.games li {
    padding: 0;
    border: 1px solid var(--rule);
    border-radius: 4px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    background: var(--white);
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}
.games li:hover { transform: translateY(-3px); box-shadow: 0 18px 40px -24px rgba(27,25,20,0.5); }
.games picture { display: block; width: 100%; aspect-ratio: 16 / 10; }
.games img { display: block; width: 100%; height: 100%; object-fit: cover; }
.games picture { overflow: hidden; position: relative; }
.games picture::after {
    content: "";
    position: absolute; inset: 0;
    background: linear-gradient(180deg, transparent 55%, rgba(13,21,17,0.35) 100%);
}
.games li > div { padding: 1rem 1.1rem 1.2rem; }
.games b { margin-bottom: 0.3rem; }

/* ── Tournament band ── */
.band {
    position: relative;
    padding: 5.5rem 0;
    color: var(--paper-on-dark);
    background-color: var(--night);
    background-image: url("/static/img/hall.jpg");
    background-image: image-set(url("/static/img/hall.webp") type("image/webp"), url("/static/img/hall.jpg") type("image/jpeg"));
    background-size: cover;
    background-position: center 40%;
    isolation: isolate;
}
.band::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(13,21,17,0.94) 0%, rgba(13,21,17,0.82) 45%, rgba(13,21,17,0.45) 100%),
        linear-gradient(180deg, rgba(13,21,17,0.5), transparent 30%, transparent 70%, rgba(13,21,17,0.6));
    z-index: -1;
}
.band + .section { border-top: 0; }
.band-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 3rem;
    align-items: center;
}
.band .kicker { color: var(--gold); }
.band h2 { color: #fff; margin: 0.6rem 0 1rem; max-width: 18ch; }
.band p { color: #d6d0c3; max-width: 36rem; margin-bottom: 1.6rem; }
.band .btn-fill { background: var(--gold); color: var(--ink); font-weight: 600; }
.band .btn-line { border-color: rgba(255,255,255,0.35); color: var(--paper-on-dark); }
.band-stats {
    list-style: none;
    display: grid;
    gap: 1rem;
}
.band-stats li {
    display: grid;
    grid-template-columns: 5rem 1fr;
    gap: 1rem;
    align-items: start;
    padding: 1rem 1.1rem;
    background: rgba(13,21,17,0.62);
    border: 1px solid rgba(255,255,255,0.14);
    border-radius: 4px;
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
}
.band-stats b {
    font-family: var(--serif);
    font-size: 2.1rem;
    line-height: 1;
    color: var(--gold);
    font-variant-numeric: tabular-nums;
}
.band-stats span { font-size: 0.92rem; color: #d6d0c3; line-height: 1.5; }
@media (max-width: 900px) {
    .band { padding: 3.5rem 0; background-position: center; }
    .band::before { background: linear-gradient(180deg, rgba(13,21,17,0.9), rgba(13,21,17,0.86)); }
    .band-grid { grid-template-columns: 1fr; gap: 2rem; }
}

/* ── App: phone over photo ── */
.phone-wrap {
    position: relative;
    padding: 2.6rem 1.6rem;
    border-radius: 8px;
    overflow: hidden;
    background-color: var(--night);
    background-image: url("/static/img/neon.jpg");
    background-image: image-set(url("/static/img/neon.webp") type("image/webp"), url("/static/img/neon.jpg") type("image/jpeg"));
    background-size: cover;
    background-position: center;
    isolation: isolate;
}
.phone-wrap::before {
    content: "";
    position: absolute; inset: 0; z-index: -1;
    background: linear-gradient(180deg, rgba(13,21,17,0.35), rgba(13,21,17,0.75));
}
.phone { box-shadow: 0 30px 60px -20px rgba(0,0,0,0.8), 0 0 0 1px #3a362e; }

/* ── Section rhythm polish ── */
.section-head h2 { max-width: 22ch; }
.site-footer .credits { margin-top: 0.9rem; font-size: 0.74rem; color: #9a9284; max-width: 70rem; line-height: 1.6; }
.site-footer .credits a { color: #c9c2b4; text-decoration: underline; text-underline-offset: 2px; }

/* ── Interactive showcase (Funcții) ── */
.show { margin-top: 0.5rem; }
.show-tabs {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.6rem;
    margin-bottom: 1.8rem;
}
.show-tab {
    appearance: none;
    text-align: left;
    background: var(--white);
    border: 1px solid var(--rule);
    border-radius: 4px;
    padding: 0.85rem 1rem 0.9rem;
    cursor: pointer;
    font: inherit;
    color: var(--ink);
    display: grid;
    gap: 0.15rem;
    transition: border-color 0.2s, background 0.2s, transform 0.2s;
}
.show-tab b { font-family: var(--serif); font-size: 1.12rem; font-weight: 600; }
.show-tab span { font-size: 0.8rem; color: var(--muted); }
.show-tab:hover { border-color: var(--ink); }
.show-tab.is-on { background: var(--pine); border-color: var(--pine); color: var(--pine-ink); }
.show-tab.is-on span { color: #bcd3c6; }
.show-tab:focus-visible { outline: 2px solid var(--pine); outline-offset: 2px; }

.show-panel[hidden] { display: none; }
.show-grid {
    display: grid;
    grid-template-columns: minmax(16rem, 22rem) 1fr;
    gap: 2.5rem 3rem;
    align-items: start;
}
.show-device {
    position: sticky;
    top: 5.4rem;
}
.device {
    position: relative;
    background: #0d1511;
    border-radius: 2.2rem;
    padding: 0.7rem;
    box-shadow: 0 30px 60px -28px rgba(0,0,0,0.65), 0 0 0 1px rgba(0,0,0,0.5), inset 0 0 0 1px rgba(255,255,255,0.06);
    transition: border-radius 0.35s ease, padding 0.35s ease;
}
.device img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 1.6rem;
    background: #141c18;
    transition: opacity 0.25s ease;
}
.device.is-swap img { opacity: 0; }

.show-grid:has(.device.tv) { grid-template-columns: minmax(16rem, 32rem) 1fr; }
.device.tv { border-radius: 0.6rem; padding: 0.5rem; }
.device.tv img { border-radius: 0.25rem; }
.device.tv::after {
    content: "";
    position: absolute;
    left: 50%; bottom: -1.2rem;
    width: 30%; height: 1.2rem;
    transform: translateX(-50%);
    background: linear-gradient(180deg, #0d1511, #2a2721);
    border-radius: 0 0 0.3rem 0.3rem;
}
.show-cap {
    margin-top: 1.6rem;
    font-size: 0.88rem;
    color: var(--muted);
    line-height: 1.5;
    padding-left: 0.9rem;
    border-left: 2px solid var(--gold);
    min-height: 2.6rem;
    transition: opacity 0.25s ease;
}
.device.tv + .show-cap { margin-top: 2.4rem; }

.show-list {
    list-style: none;
    counter-reset: f;
    border-top: 1px solid var(--rule);
}
.show-list li { border-bottom: 1px solid var(--rule); counter-increment: f; }
.show-list button {
    appearance: none;
    width: 100%;
    text-align: left;
    background: none;
    border: 0;
    padding: 0.95rem 0.6rem 0.95rem 2.6rem;
    font: inherit;
    color: var(--ink);
    cursor: pointer;
    position: relative;
    display: block;
    transition: background 0.2s;
}
.show-list button::before {
    content: counter(f, decimal-leading-zero);
    position: absolute;
    left: 0.6rem; top: 1.05rem;
    font-size: 0.72rem;
    letter-spacing: 0.08em;
    color: var(--muted);
    font-variant-numeric: tabular-nums;
}
.show-list button::after {
    content: "";
    position: absolute;
    right: 0.7rem; top: 1.25rem;
    width: 0.5rem; height: 0.5rem;
    border-right: 1.5px solid var(--muted);
    border-bottom: 1.5px solid var(--muted);
    transform: rotate(45deg);
    transition: transform 0.25s;
}
.show-list b {
    display: block;
    font-family: var(--serif);
    font-size: 1.12rem;
    font-weight: 600;
    line-height: 1.3;
    padding-right: 2rem;
}
.show-list .tag {
    display: inline-block;
    font-size: 0.62rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--pine-ink);
    background: var(--pine);
    padding: 0.12rem 0.4rem;
    margin-bottom: 0.35rem;
}
.show-list p {
    display: none;
    margin-top: 0.5rem;
    color: var(--ink-2);
    font-size: 0.93rem;
    line-height: 1.55;
    max-width: 44rem;
}
.show-list li:hover button { background: color-mix(in srgb, var(--pine) 5%, transparent); }
.show-list li.is-on button { background: var(--white); box-shadow: inset 3px 0 0 var(--gold); }
.show-list li.is-on button::before { color: var(--pine); }
.show-list li.is-on button::after { transform: rotate(-135deg); top: 1.45rem; }
.show-list li.is-on p { display: block; animation: show-in 0.3s ease; }
@keyframes show-in { from { opacity: 0; transform: translateY(-3px); } to { opacity: 1; transform: none; } }

@media (max-width: 1000px) {
    .show-tabs { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 800px) {
    .show-grid { grid-template-columns: 1fr; gap: 1.6rem; }
    .show-device {
        position: sticky;
        top: 4.3rem;
        z-index: 5;
        display: grid;
        grid-template-columns: 10rem 1fr;
        gap: 1rem;
        align-items: center;
        background: var(--paper);
        padding: 0.8rem 0 0.9rem;
        border-bottom: 1px solid var(--rule);
    }
    .show-grid:has(.device.tv) { grid-template-columns: 1fr; }
    .device { border-radius: 1.3rem; padding: 0.4rem; }
    .device img { border-radius: 1rem; }
        .device.tv { grid-column: 1 / -1; }
    .device.tv + .show-cap { grid-column: 1 / -1; margin-top: 1.6rem; }
    .show-cap { margin-top: 0; }
    .show-list button { padding-left: 2.2rem; }
}
@media (max-width: 520px) {
    .show-tabs { grid-template-columns: 1fr 1fr; gap: 0.45rem; }
    .show-tab { padding: 0.65rem 0.75rem; }
    .show-tab b { font-size: 1rem; }
    .show-tab span { display: none; }
    .show-device { grid-template-columns: 7.5rem 1fr; }
}

/* ── Steps with visuals ── */
.steps li { border-top: 0; padding-top: 0; }
.step-fig {
    position: relative;
    margin: 0 0 1.1rem;
    aspect-ratio: 4 / 3;
    border-radius: 6px;
    overflow: hidden;
    background: var(--night);
    border: 1px solid var(--rule);
}
.step-fig picture, .step-fig img { display: block; width: 100%; height: 100%; object-fit: cover; }
.step-fig .hud { max-width: 85%; }
.step-fig .trk i { font-size: 0.6rem; letter-spacing: 0.04em; }
.cone {
    position: absolute; inset: 0;
    width: 100%; height: 100%;
    z-index: 2;
    pointer-events: none;
}
.cone path {
    fill: none;
    stroke: var(--gold);
    stroke-width: 0.5;
    stroke-dasharray: 2 2;
    opacity: 0.85;
    vector-effect: non-scaling-stroke;
    stroke-width: 1.2px;
    animation: cone-flow 2.4s linear infinite;
}
.cone .cone-c { opacity: 0.35; }
@keyframes cone-flow { to { stroke-dashoffset: -16; } }
.cam-badge {
    position: absolute;
    left: 50%; top: 0.7rem;
    transform: translateX(-50%);
    z-index: 3;
    display: inline-flex; align-items: center; gap: 0.4rem;
    padding: 0.3rem 0.6rem;
    background: var(--gold);
    color: var(--ink);
    font-size: 0.66rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    border-radius: 3px;
    white-space: nowrap;
}
.cam-badge i {
    width: 0.55rem; height: 0.55rem;
    border-radius: 50%;
    background: var(--ink);
    box-shadow: inset 0 0 0 2px var(--gold), 0 0 0 1.5px var(--ink);
}
.step-fig-app {
    display: grid;
    place-items: end center;
    background: radial-gradient(60% 70% at 50% 100%, rgba(31,67,54,0.55), transparent 70%), var(--night-2);
}
.step-fig-app .device {
    width: min(60%, 13rem);
    border-radius: 1.6rem 1.6rem 0 0;
    padding: 0.45rem 0.45rem 0;
    box-shadow: 0 -10px 50px -20px rgba(0,0,0,0.9);
    transform: translateY(1px);
}
.step-fig-app .device img { border-radius: 1.2rem 1.2rem 0 0; height: auto; object-fit: unset; }
.step-fig-app .device { max-height: 100%; overflow: hidden; }
.step-n { margin-bottom: 0.2rem; }
@media (max-width: 800px) {
    .steps { gap: 2rem; }
}

/* ── Calculator: sliders + bars ── */
.calc-form label {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 0.6rem;
    font-size: 0.82rem;
    color: var(--ink-2);
    margin-bottom: 0.35rem;
}
.calc-form output {
    font-weight: 600;
    color: var(--ink);
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}
.calc-form input[type="range"] {
    -webkit-appearance: none;
    appearance: none;
    width: 100%;
    height: 1.4rem;
    background: transparent;
    border: 0;
    padding: 0;
    cursor: pointer;
}
.calc-form input[type="range"]:focus { outline: none; }
.calc-form input[type="range"]::-webkit-slider-runnable-track {
    height: 4px;
    border-radius: 2px;
    background: linear-gradient(90deg, var(--pine) var(--p, 0%), var(--rule) var(--p, 0%));
}
.calc-form input[type="range"]::-moz-range-track { height: 4px; border-radius: 2px; background: var(--rule); }
.calc-form input[type="range"]::-moz-range-progress { height: 4px; border-radius: 2px; background: var(--pine); }
.calc-form input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 1.1rem; height: 1.1rem;
    margin-top: calc(-0.55rem + 2px);
    border-radius: 50%;
    background: var(--white);
    border: 2px solid var(--pine);
    box-shadow: 0 1px 4px rgba(0,0,0,0.2);
    transition: transform 0.15s;
}
.calc-form input[type="range"]::-moz-range-thumb {
    width: 1.1rem; height: 1.1rem;
    border-radius: 50%;
    background: var(--white);
    border: 2px solid var(--pine);
    box-shadow: 0 1px 4px rgba(0,0,0,0.2);
}
.calc-form input[type="range"]:focus-visible::-webkit-slider-thumb { box-shadow: 0 0 0 4px rgba(31,67,54,0.25); }
.calc-form input[type="range"]:active::-webkit-slider-thumb { transform: scale(1.15); }

.calc-bars {
    list-style: none;
    display: grid;
    gap: 0.75rem;
    padding-bottom: 1.1rem;
    border-bottom: 1px solid #3a362e;
}
.calc-bars li {
    display: grid;
    grid-template-columns: 8.5rem 1fr auto;
    gap: 0.7rem;
    align-items: center;
    font-size: 0.88rem;
}
.cb-l { color: #9a9284; }
.cb-bar {
    height: 0.75rem;
    background: rgba(255,255,255,0.07);
    border-radius: 2px;
    overflow: hidden;
}
.cb-bar i {
    display: block;
    height: 100%;
    width: 0;
    background: linear-gradient(90deg, #cfa64a, var(--gold));
    border-radius: 2px;
    transition: width 0.45s cubic-bezier(.2,.8,.2,1);
}
.calc-bars .neg .cb-bar i { background: linear-gradient(90deg, #b24a2c, #e9a08a); }
.cb-v { color: #f4efe6; font-variant-numeric: tabular-nums; white-space: nowrap; }
.calc-bars .neg .cb-v { color: #e9a08a; }
.calc-gauge {
    height: 6px;
    margin: 0.4rem 0 0.7rem;
    background: rgba(255,255,255,0.07);
    border-radius: 3px;
    overflow: hidden;
}
.calc-gauge i {
    display: block; height: 100%; width: 0;
    background: var(--gold);
    border-radius: 3px;
    transition: width 0.45s cubic-bezier(.2,.8,.2,1), background 0.3s;
}
.calc-gauge i.bad { background: #e9a08a; }
@media (max-width: 480px) {
    .calc-bars li { grid-template-columns: 6.5rem 1fr auto; font-size: 0.8rem; }
}

/* ── hero video (prototip detecție) ── */
.hero-photo.hero-video { aspect-ratio: 16 / 9; }
.hero-video video { display: block; width: 100%; height: 100%; object-fit: cover; background: #000; }
.hero-video .hud-note { max-width: 70%; }
.hero-video .hud-note .hud-v { font-size: 0.78rem; opacity: 0.9; }
@media (prefers-reduced-motion: reduce) { .hero-video video { display: none; } .hero-video::before { content: ""; position: absolute; inset: 0; background: url(/static/img/demo-poster.jpg) center/cover; } }
@media (max-width: 640px) { .hero-video .hud-note { display: block; max-width: 70%; } .hero-video .hud-note .hud-v { display: none; } }

/* ── Language picker ── */
.lang-pick { position: relative; font-size: 0.86rem; }
.lang-pick summary {
    list-style: none;
    cursor: pointer;
    padding: 0.4rem 0.6rem;
    border: 1px solid var(--rule);
    color: var(--ink-2);
    letter-spacing: 0.04em;
}
.lang-pick summary::-webkit-details-marker { display: none; }
.lang-pick summary::after { content: " ▾"; font-size: 0.7em; }
.lang-list {
    position: absolute;
    right: 0;
    top: calc(100% + 0.4rem);
    z-index: 60;
    display: grid;
    grid-template-columns: repeat(2, minmax(7.5rem, 1fr));
    gap: 0.1rem 0.6rem;
    padding: 0.6rem 0.8rem;
    background: var(--white);
    border: 1px solid var(--rule);
    box-shadow: 0 10px 30px rgba(27, 25, 20, 0.12);
}
.nav .lang-list a { padding: 0.3rem 0; font-size: 0.88rem; }
.nav .lang-list a[aria-current="true"] { font-weight: 600; color: var(--ink); }
@media (max-width: 860px) {
    .lang-list { position: static; margin-top: 0.4rem; box-shadow: none; }
}

/* ── Group sites ── */
.grup-fe { padding-bottom: 2rem; margin-bottom: 2rem; border-bottom: 1px solid #3a362e; }
.grup-fe h4 {
    font-family: var(--sans);
    font-size: 0.72rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #9a9284;
    margin-bottom: 1rem;
}
.grup-fe-row { display: grid; grid-template-columns: repeat(5, 1fr); gap: 1rem; }
.grup-fe-row a {
    display: block;
    overflow: hidden;
    background: #24211b;
    border: 1px solid #3a362e;
    color: #b9b1a3;
    text-decoration: none;
    transition: transform 0.2s, border-color 0.2s;
}
.grup-fe-row a:hover { transform: translateY(-3px); border-color: #d8d2c6; }
.grup-fe-row img { display: block; width: 100%; height: auto; aspect-ratio: 2 / 1; }
.grup-fe-row span { display: block; padding: 0.7rem 0.85rem 0.85rem; font-size: 0.82rem; line-height: 1.45; }
.grup-fe-row b { display: block; color: #f4efe6; font-size: 0.88rem; margin-bottom: 0.2rem; }
@media (max-width: 1100px) { .grup-fe-row { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 760px) { .grup-fe-row { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .grup-fe-row { grid-template-columns: 1fr; } }
.cookie p a { color: var(--pine); }
