/* FrightLink Labs — shared styles for product pages in development
   (/frightvoice/, /frightbox-x1/). Same tokens and components as /setup/. */

:root {
    color-scheme: dark;
    --ink: #070508;
    --ink-2: #0d0a10;
    --panel: #121015;
    --orange: #ff6417;
    --orange-hot: #ff7a22;
    --orange-pale: #ffb27d;
    --purple: #8a42e8;
    --purple-pale: #c6a3ff;
    --green: #65f0ae;
    --red: #ff5468;
    --white: #fffaf5;
    --muted: rgba(255, 250, 245, .7);
    --dim: rgba(255, 250, 245, .5);
    --line: rgba(255, 250, 245, .12);
    --line-hot: rgba(255, 100, 23, .32);
    --shadow: 0 28px 90px rgba(0, 0, 0, .48);
    --shell: min(1180px, calc(100% - 48px));
    font-family: "Rubik", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-synthesis: none;
}

* { box-sizing: border-box; }

html {
    min-width: 300px;
    background: var(--ink);
    scroll-behavior: smooth;
    scroll-padding-top: 92px;
}

body {
    margin: 0;
    min-width: 300px;
    min-height: 100vh;
    overflow-x: hidden;
    background: radial-gradient(circle at 18% 8%, rgba(138, 66, 232, .12), transparent 34rem), var(--ink);
    color: var(--white);
    line-height: 1.6;
}

body::selection { background: var(--orange); color: #100804; }
a { color: inherit; }

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
summary:focus-visible { outline: 2px solid var(--orange-hot); outline-offset: 4px; }

h1, h2, h3, p { margin-top: 0; }
h1, h2, h3 { text-wrap: balance; }
h1 { margin-bottom: 24px; font-size: clamp(3rem, 6.4vw, 6.1rem); font-weight: 900; letter-spacing: -.065em; line-height: .92; }
h2 { margin-bottom: 18px; font-size: clamp(2.25rem, 4.6vw, 4.25rem); font-weight: 900; letter-spacing: -.05em; line-height: .98; }
h3 { margin-bottom: 10px; font-size: 1.22rem; line-height: 1.2; }
em { color: var(--orange); font-style: normal; }
.shell { width: var(--shell); margin-inline: auto; }

.sr-only {
    position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
    overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}

.skip-link {
    position: fixed; top: 12px; left: 12px; z-index: 100; padding: 10px 15px;
    transform: translateY(-160%); border-radius: 6px; background: var(--white); color: var(--ink);
    font-weight: 800; text-decoration: none;
}
.skip-link:focus { transform: translateY(0); }

.page-noise {
    position: fixed; inset: 0; z-index: -2; pointer-events: none; opacity: .28;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.92' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.16'/%3E%3C/svg%3E");
}

.page-glow { position: fixed; z-index: -1; width: 32rem; height: 32rem; border-radius: 50%; filter: blur(110px); pointer-events: none; opacity: .11; }
.page-glow--one { top: 18vh; right: -16rem; background: var(--orange); }
.page-glow--two { bottom: 8vh; left: -18rem; background: var(--purple); }

/* Header */
.site-header {
    position: sticky; top: 0; z-index: 50; min-height: 76px;
    padding: 12px max(4.5%, env(safe-area-inset-right)) 12px max(4.5%, env(safe-area-inset-left));
    display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 28px;
    border-bottom: 1px solid rgba(255, 255, 255, .09); background: rgba(7, 5, 8, .81);
    backdrop-filter: blur(20px) saturate(135%);
    -webkit-backdrop-filter: blur(20px) saturate(135%);
}

.brand { display: inline-flex; align-items: baseline; gap: 13px; justify-self: start; text-decoration: none; }
.brand__name { font-family: "Nosifer", cursive; color: var(--orange); font-size: 1.14rem; line-height: 1; text-shadow: 0 0 22px rgba(255, 100, 23, .35); }
.brand__label { color: var(--dim); font-size: .64rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; white-space: nowrap; }
.site-nav { display: flex; align-items: center; gap: 26px; }
.site-nav a { color: var(--muted); font-size: .77rem; font-weight: 700; text-decoration: none; white-space: nowrap; transition: color 160ms ease; }
.site-nav a:hover { color: var(--white); }

.header-cta {
    justify-self: end; padding: 10px 16px; border: 1px solid var(--line-hot); border-radius: 999px;
    color: var(--orange-pale); font-size: .73rem; font-weight: 800; text-decoration: none; white-space: nowrap;
    transition: border-color 160ms ease, background 160ms ease, color 160ms ease;
}
.header-cta:hover { border-color: var(--orange); background: rgba(255, 100, 23, .11); color: var(--white); }

/* Hero */
.hero {
    position: relative; min-height: calc(100svh - 76px); display: grid; align-items: center;
    overflow: hidden; border-bottom: 1px solid var(--line);
}
.hero::before {
    content: ""; position: absolute; inset: 0; pointer-events: none;
    background: linear-gradient(90deg, rgba(255, 255, 255, .022) 1px, transparent 1px),
        linear-gradient(rgba(255, 255, 255, .022) 1px, transparent 1px),
        radial-gradient(circle at 79% 47%, rgba(255, 100, 23, .12), transparent 26rem);
    background-size: 50px 50px, 50px 50px, auto;
    mask-image: linear-gradient(to bottom, black, transparent 92%);
    -webkit-mask-image: linear-gradient(to bottom, black, transparent 92%);
}
.hero__grid {
    position: relative; z-index: 1; padding-block: clamp(72px, 10vh, 120px);
    display: grid; grid-template-columns: minmax(0, 1fr) minmax(440px, 1fr);
    align-items: center; gap: clamp(48px, 6vw, 88px);
}
.kicker { margin-bottom: 15px; color: var(--orange-pale); font-size: .7rem; font-weight: 900; letter-spacing: .17em; text-transform: uppercase; }
.kicker--line { display: flex; align-items: center; gap: 10px; }
.kicker--line > span { width: 28px; height: 1px; flex: 0 0 auto; background: var(--orange); box-shadow: 0 0 12px var(--orange); }

.product-mark {
    display: flex; align-items: center; flex-wrap: wrap; gap: 14px 18px; margin-bottom: 22px;
}
.product-mark__name {
    font-family: "Nosifer", cursive; color: var(--orange); font-size: clamp(1.55rem, 2.9vw, 2.45rem);
    font-weight: 400; letter-spacing: .01em; line-height: 1.1; text-shadow: 0 0 28px rgba(255, 100, 23, .42);
}
.hero h1 .headline { display: block; }

.status-pill {
    display: inline-flex; align-items: center; gap: 8px; padding: 6px 11px 6px 9px;
    border: 1px solid var(--line-hot); border-radius: 999px; background: rgba(255, 100, 23, .08);
    color: var(--orange-pale); font-family: "Rubik", sans-serif; font-size: .62rem; font-weight: 900;
    letter-spacing: .14em; text-transform: uppercase; line-height: 1; white-space: nowrap;
}
.status-pill i { width: 7px; height: 7px; border-radius: 50%; background: var(--orange); box-shadow: 0 0 10px var(--orange); animation: status-blink 2.4s ease-in-out infinite; }
@keyframes status-blink { 50% { opacity: .35; } }

.hero__lead { max-width: 640px; margin-bottom: 31px; color: var(--muted); font-size: clamp(1rem, 1.45vw, 1.16rem); line-height: 1.75; }
.hero__actions, .finale__actions { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; }
.hero__for { margin: 26px 0 0; display: flex; align-items: center; gap: 10px; color: var(--dim); font-size: .78rem; font-weight: 700; }
.hero__for::before { content: ""; width: 6px; height: 6px; flex: 0 0 auto; border-radius: 50%; background: var(--green); box-shadow: 0 0 9px var(--green); }

/* Buttons */
.button {
    min-height: 50px; padding: 12px 20px; display: inline-flex; align-items: center; justify-content: center; gap: 9px;
    border: 1px solid transparent; border-radius: 7px; font-family: inherit; font-size: .83rem; font-weight: 900;
    letter-spacing: .02em; text-decoration: none; cursor: pointer;
    transition: transform 160ms ease, background 160ms ease, border-color 160ms ease;
}
.button:hover { transform: translateY(-2px); }
.button--primary { background: var(--orange); color: #140905; box-shadow: 0 16px 40px rgba(255, 100, 23, .2); }
.button--primary:hover { background: var(--orange-hot); }
.button--ghost { border-color: var(--line); background: rgba(255, 255, 255, .025); color: var(--white); }
.button--ghost:hover { border-color: rgba(255, 255, 255, .26); background: rgba(255, 255, 255, .055); }
.button[disabled] { opacity: .6; cursor: progress; transform: none; }

.text-link { padding: 12px 8px; color: var(--muted); font-size: .8rem; font-weight: 800; text-decoration-color: rgba(255, 255, 255, .25); text-underline-offset: 4px; }
.text-link:hover { color: var(--white); }

/* Status tags — every capability says where it stands */
.tag {
    display: inline-flex; align-items: center; gap: 7px; padding: 4px 9px 4px 8px;
    border: 1px solid currentColor; border-radius: 999px; font-size: .58rem; font-weight: 900;
    letter-spacing: .1em; line-height: 1.2; text-transform: uppercase; white-space: nowrap;
}
.tag::before { content: ""; width: 6px; height: 6px; flex: 0 0 auto; border-radius: 50%; }
.tag--live { color: var(--green); border-color: rgba(101, 240, 174, .35); background: rgba(101, 240, 174, .06); }
.tag--live::before { background: var(--green); box-shadow: 0 0 8px var(--green); }
.tag--lab { color: var(--green); border-color: rgba(101, 240, 174, .3); }
.tag--lab::before { border: 1.5px solid var(--green); }
.tag--dev { color: var(--orange-pale); border-color: rgba(255, 100, 23, .35); }
.tag--dev::before { background: var(--orange); box-shadow: 0 0 8px rgba(255, 100, 23, .7); }
.tag--plan { color: var(--purple-pale); border-color: rgba(138, 66, 232, .45); }
.tag--plan::before { border: 1.5px dashed var(--purple-pale); }
.tag--concept { color: var(--dim); border-color: var(--line); border-style: dashed; }
.tag--concept::before { display: none; }

/* System panel used for concept visuals */
.system-visual {
    position: relative; padding: 24px; display: flex; flex-direction: column; justify-content: space-between;
    overflow: hidden; border: 1px solid rgba(255, 100, 23, .25); border-radius: 15px;
    background: linear-gradient(145deg, rgba(25, 18, 29, .98), rgba(10, 8, 12, .98));
    box-shadow: var(--shadow), inset 0 1px rgba(255, 255, 255, .04);
}
.system-visual::before, .system-visual::after { content: ""; position: absolute; width: 160px; height: 160px; border: 1px solid rgba(255, 100, 23, .15); border-radius: 50%; pointer-events: none; }
.system-visual::before { top: -92px; right: -65px; box-shadow: 0 0 50px rgba(255, 100, 23, .08); }
.system-visual::after { bottom: -110px; left: -80px; border-color: rgba(138, 66, 232, .16); }
.visual-grid { position: absolute; inset: 0; pointer-events: none; opacity: .4; background-image: linear-gradient(rgba(255, 255, 255, .032) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .032) 1px, transparent 1px); background-size: 28px 28px; }
.visual-topline, .visual-status { position: relative; z-index: 2; display: flex; align-items: center; color: var(--dim); font-size: .59rem; font-weight: 900; letter-spacing: .12em; text-transform: uppercase; }
.visual-topline { gap: 10px; }
.visual-topline > span { margin-right: auto; }
.visual-status { padding-top: 16px; justify-content: space-between; gap: 15px; border-top: 1px solid var(--line); }
.visual-status span { display: inline-flex; align-items: center; gap: 7px; color: var(--orange-pale); }
.visual-status i { width: 6px; height: 6px; border-radius: 50%; background: currentColor; box-shadow: 0 0 8px currentColor; }
.visual-status strong { color: rgba(255, 255, 255, .34); font-size: .56rem; }

.concept-note { margin: 12px 0 0; color: var(--dim); font-size: .7rem; }

/* Status band */
.status-band { position: relative; border-bottom: 1px solid rgba(255, 100, 23, .2); background: linear-gradient(90deg, rgba(255, 100, 23, .13), rgba(255, 100, 23, .04) 45%, rgba(138, 66, 232, .08)), var(--ink-2); }
.status-band::before { content: ""; position: absolute; inset: 0 auto 0 0; width: 5px; background: var(--orange); box-shadow: 0 0 24px rgba(255, 100, 23, .7); }
.status-band__inner { padding-block: clamp(44px, 6vw, 64px); display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); align-items: center; gap: clamp(32px, 6vw, 80px); }
.status-band h2 { margin-bottom: 12px; font-size: clamp(1.85rem, 3.4vw, 3rem); }
.status-band__copy p:last-child { max-width: 560px; margin-bottom: 0; color: var(--muted); font-size: .95rem; }
.status-key { margin: 0; padding: 0; display: grid; gap: 10px; list-style: none; }
.status-key li { padding: 14px 16px; display: grid; grid-template-columns: 196px minmax(0, 1fr); align-items: center; gap: 16px; border: 1px solid var(--line); border-radius: 10px; background: rgba(7, 5, 8, .5); }
.status-key li .tag { justify-self: start; }
.status-key p { margin: 0; color: var(--muted); font-size: .82rem; line-height: 1.5; }

/* Sections */
.section { position: relative; padding-block: clamp(86px, 11vw, 140px); border-bottom: 1px solid var(--line); }
.section--alt { background: var(--ink-2); }
.section-heading { max-width: 760px; margin-bottom: 46px; }
.section-heading > p:last-child { color: var(--muted); font-size: 1.03rem; }
.section-heading--wide { max-width: none; display: grid; grid-template-columns: 1fr minmax(300px, .7fr); align-items: end; gap: 70px; }
.section-heading--wide > div > p:last-child { margin-bottom: 0; }
.section-heading--wide > p { margin-bottom: 18px; color: var(--muted); }
.section-heading--center { margin-inline: auto; text-align: center; }

.card {
    position: relative; padding: 26px; border: 1px solid var(--line); border-radius: 12px;
    background: linear-gradient(145deg, rgba(255, 255, 255, .035), rgba(255, 255, 255, .012));
    transition: border-color 180ms ease, transform 180ms ease;
}
.card:hover { border-color: var(--line-hot); }
.card h3 { font-size: 1.2rem; }
.card p { color: var(--muted); font-size: .88rem; }
.card .tag { margin-top: auto; align-self: flex-start; }

/* FAQ */
.faq-grid { display: grid; grid-template-columns: minmax(280px, .68fr) minmax(460px, 1.32fr); align-items: start; gap: clamp(60px, 9vw, 120px); }
.faq-list { border-top: 1px solid var(--line); }
.faq-list details { border-bottom: 1px solid var(--line); }
.faq-list summary { min-height: 78px; display: flex; align-items: center; justify-content: space-between; gap: 18px; color: var(--white); font-size: .95rem; font-weight: 800; cursor: pointer; list-style: none; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary span { width: 30px; height: 30px; flex: 0 0 auto; display: grid; place-items: center; border: 1px solid var(--line-hot); border-radius: 50%; color: var(--orange); font-size: 1.1rem; font-weight: 400; transition: transform 160ms ease; }
.faq-list details[open] summary span { transform: rotate(45deg); }
.faq-list details > p { max-width: 680px; padding: 0 50px 26px 0; margin: 0; color: var(--muted); font-size: .86rem; }

/* Finale */
.finale { position: relative; padding-block: clamp(96px, 12vw, 170px); overflow: hidden; border-bottom: 1px solid var(--line); background: linear-gradient(120deg, rgba(138, 66, 232, .13), transparent 43%), radial-gradient(circle at 82% 50%, rgba(255, 100, 23, .17), transparent 29rem), var(--ink-2); }
.finale::after { content: attr(data-watermark); position: absolute; right: -30px; bottom: -.27em; color: rgba(255, 255, 255, .018); font-size: clamp(6rem, 15vw, 15rem); font-weight: 900; letter-spacing: -.08em; line-height: 1; pointer-events: none; white-space: nowrap; }
.finale h2 { font-size: clamp(2.6rem, 5.6vw, 5.2rem); }
.finale p { color: var(--muted); }

/* Forms */
.field { display: grid; gap: 7px; }
.field label, .field .field__label { color: var(--dim); font-size: .62rem; font-weight: 900; letter-spacing: .13em; text-transform: uppercase; }
.field input, .field select, .field textarea {
    width: 100%; min-height: 48px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 7px;
    background: rgba(7, 5, 8, .7); color: var(--white); font-family: inherit; font-size: .95rem; line-height: 1.4;
    transition: border-color 160ms ease, background 160ms ease;
}
.field textarea { min-height: 112px; resize: vertical; }
.field select { appearance: none; -webkit-appearance: none; padding-right: 40px; background-image: linear-gradient(45deg, transparent 50%, var(--orange) 50%), linear-gradient(135deg, var(--orange) 50%, transparent 50%); background-position: calc(100% - 20px) 21px, calc(100% - 15px) 21px; background-size: 5px 5px; background-repeat: no-repeat; }
.field select option { background: #141016; color: var(--white); }
.field input::placeholder, .field textarea::placeholder { color: rgba(255, 250, 245, .34); }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--orange); background: rgba(7, 5, 8, .92); outline: none; }

.form-status { min-height: 1.4em; margin: 12px 0 0; font-size: .84rem; }
.form-status.is-ok { color: var(--green); }
.form-status.is-error { color: #ff8f9c; }

/* Footer */
.site-footer { background: #050405; }
.site-footer__inner { min-height: 112px; padding-block: 27px max(27px, env(safe-area-inset-bottom)); display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 30px; color: var(--dim); font-size: .7rem; }
.brand--footer .brand__name { font-size: .9rem; }
.site-footer p { margin: 0; }
.site-footer p:last-child { justify-self: end; }
.site-footer a:not(.brand) { color: var(--muted); }
.footer-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 18px; }
.footer-links a { text-decoration: none; }
.footer-links a:hover { color: var(--white); }

/* Reveal on scroll — only hides content once JS has marked the page */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity 600ms ease, transform 600ms ease; }
.js .reveal.is-visible { opacity: 1; transform: translateY(0); }

@media (max-width: 1100px) {
    .site-header { grid-template-columns: 1fr auto; }
    .site-nav { display: none; }
    .hero { min-height: 0; }
    .hero__grid { grid-template-columns: 1fr; max-width: 780px; }
    .faq-grid { grid-template-columns: 1fr; gap: 36px; }
    .status-band__inner { grid-template-columns: 1fr; }
}

@media (max-width: 820px) {
    .section-heading--wide { display: block; }
    .site-footer__inner { grid-template-columns: 1fr; justify-items: start; gap: 10px; }
    .site-footer p:last-child { justify-self: start; }
    .footer-links { justify-content: flex-start; }
}

@media (max-width: 600px) {
    :root { --shell: min(100% - 32px, 1180px); }
    html { scroll-padding-top: 72px; }
    h1 { font-size: clamp(2.6rem, 13vw, 4rem); letter-spacing: -.06em; }
    h2 { font-size: clamp(2.05rem, 10vw, 3.05rem); }
    .site-header { min-height: 66px; padding-inline: max(16px, env(safe-area-inset-left)); gap: 12px; }
    .brand__name { font-size: .94rem; }
    .brand__label { display: none; }
    .header-cta { padding: 8px 12px; font-size: .65rem; }
    .hero__grid { padding-block: 56px 72px; gap: 44px; }
    .hero__actions, .finale__actions { align-items: stretch; flex-direction: column; }
    .hero__actions .button, .finale__actions .button { width: 100%; }
    .system-visual { padding: 16px; }
    .status-key li { grid-template-columns: 1fr; gap: 8px; }
    .section { padding-block: 78px; }
    .card { padding: 22px; }
    .faq-list summary { min-height: 72px; font-size: .88rem; }
    .faq-list details > p { padding-right: 0; }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .status-pill i { animation: none; }
    .js .reveal { opacity: 1; transform: none; transition: none; }
    .button, .card { transition: none; }
}
