/* =========================================================
   SpectraView website — dark pro-audio aesthetic, derived
   from the app's DesignTokens (Theme.pageGradient etc.).
   Plain CSS, no preprocessor, no framework.
   ========================================================= */

/* ---------- Reset / base ---------- */

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

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text",
                 "Segoe UI", Inter, Roboto, system-ui, sans-serif;
    font-size: 17px;
    line-height: 1.55;
    color: #e7eaf2;
    /* Deep purple-black taken from the app-icon background gradient
       (#16091e → #06030c), with a soft logo-purple glow up top. */
    background: #0b0612;
    background-image:
        radial-gradient(ellipse 80% 50% at 50% -20%,
                        rgba(139, 53, 255, 0.20), transparent 70%),
        linear-gradient(180deg, #16091e 0%, #06030c 100%);
    background-attachment: fixed;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    min-height: 100vh;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: #ffd24a;
    text-decoration: none;
    transition: color 0.15s ease;
}

a:hover {
    color: #ffe082;
}

h1, h2, h3, h4 {
    margin: 0 0 0.6em;
    font-weight: 600;
    letter-spacing: -0.01em;
    color: #f5f7fb;
}

h1 {
    font-size: clamp(2.2rem, 5vw, 3.4rem);
    line-height: 1.1;
    letter-spacing: -0.02em;
}

h2 {
    font-size: clamp(1.6rem, 3vw, 2.2rem);
    line-height: 1.2;
}

h3 {
    font-size: 1.2rem;
}

p {
    margin: 0 0 1em;
    color: #c7cdd9;
}

/* ---------- Layout ---------- */

.container {
    max-width: 1080px;
    margin: 0 auto;
    padding: 0 24px;
}

section {
    padding: 80px 0;
}

@media (max-width: 700px) {
    section {
        padding: 56px 0;
    }
}

/* ---------- Header / nav ---------- */

.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    background: rgba(11, 6, 18, 0.72);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.site-header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 14px;
    padding-bottom: 14px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
    font-size: 1.05rem;
    letter-spacing: 0.01em;
    color: #f5f7fb;
}

.brand .brand-icon {
    width: 28px;
    height: 28px;
    border-radius: 6px;
    display: block;
    flex: 0 0 28px;
}

/* Wordmark text sits as a single flex item, so the `Spectra` /
   `View` halves aren't separated by the flex `gap` that's there to
   space the icon from the wordmark. */
.brand .brand-text {
    white-space: nowrap;
}

/* The amber "View" accent — used inside the header brandmark and on
   any product-name occurrence in headlines. Selector is global so
   <span class="brand-accent"> works wherever it appears, not only
   inside the .brand wordmark. */
.brand-accent {
    color: #ffd24a;
}

.site-nav {
    display: flex;
    gap: 26px;
    font-size: 0.95rem;
}

.site-nav a {
    color: #c7cdd9;
}

.site-nav a:hover,
.site-nav a.active {
    color: #f5f7fb;
}

.lang-switch {
    font-size: 0.85rem;
    color: #8a93a6;
    margin-left: 18px;
    padding-left: 18px;
    border-left: 1px solid rgba(255, 255, 255, 0.1);
}

@media (max-width: 700px) {
    .site-nav {
        gap: 14px;
        font-size: 0.85rem;
    }
    .lang-switch {
        margin-left: 8px;
        padding-left: 8px;
    }
}

/* ---------- Hero ---------- */

.hero {
    padding: 30px 0 20px;
    text-align: center;
}

/* App-icon centred above the page title in the hero. Sized so it
   has a similar presence to a Mac App Store "above the fold" icon
   — large enough to be the focal point, but yields to the headline
   when scrolling. */
.hero .hero-app-icon {
    display: block;
    width: 112px;
    height: 112px;
    margin: 0 auto 24px;
    border-radius: 24px;
    /* The icon's own background now matches the page, so define its
       edge with a brighter hairline ring plus a soft separation glow. */
    box-shadow: 0 18px 44px -14px rgba(0, 0, 0, 0.7),
                0 0 0 1px rgba(255, 255, 255, 0.16),
                0 0 0 5px rgba(11, 6, 18, 0.3);
}

@media (max-width: 700px) {
    .hero .hero-app-icon {
        width: 92px;
        height: 92px;
        margin-bottom: 18px;
    }
}

.hero .tagline {
    color: #ffd24a;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    font-size: 0.78rem;
    font-weight: 600;
    margin-bottom: 18px;
}

.hero h1 {
    max-width: 18ch;
    margin-left: auto;
    margin-right: auto;
}

.hero .lede {
    max-width: 60ch;
    margin: 18px auto 36px;
    font-size: 1.15rem;
    color: #b8bfcc;
}

/* ---------- Buttons ---------- */

.btn-row {
    display: flex;
    gap: 14px;
    justify-content: center;
    flex-wrap: wrap;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 13px 22px;
    border-radius: 10px;
    font-weight: 600;
    font-size: 0.97rem;
    transition: transform 0.12s ease, background 0.15s ease;
    border: 1px solid transparent;
}

.btn-primary {
    background: #ffd24a;
    color: #1a1408;
    border-color: #ffd24a;
}

.btn-primary:hover {
    background: #ffe082;
    color: #1a1408;
    transform: translateY(-1px);
}

.btn-ghost {
    background: transparent;
    color: #e7eaf2;
    border-color: rgba(255, 255, 255, 0.18);
}

.btn-ghost:hover {
    background: rgba(255, 255, 255, 0.06);
    color: #f5f7fb;
}

/* ---------- Product cards ---------- */

.product-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
    margin-top: 40px;
}

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

/* Two-up product grid (the hub homepage): centred, capped width,
   collapses to a single column on narrow screens. Defined as a class
   so the breakpoint isn't defeated by an inline style. */
.product-grid--two {
    grid-template-columns: repeat(2, 1fr);
    max-width: 760px;
    margin-left: auto;
    margin-right: auto;
}

@media (max-width: 680px) {
    .product-grid--two {
        grid-template-columns: 1fr;
    }
}

.product-card {
    display: flex;
    flex-direction: column;
    background: rgba(255, 255, 255, 0.035);
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 16px;
    padding: 28px;
    transition: border-color 0.2s ease, background 0.2s ease;
}

.product-card:hover {
    border-color: rgba(255, 210, 74, 0.35);
    background: rgba(255, 255, 255, 0.05);
}

/* Category pill — "what this is". Colour set per card below. */
.product-card .label {
    display: inline-block;
    font-size: 0.68rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    font-weight: 600;
    color: #ffd24a;
    background: rgba(255, 210, 74, 0.10);
    border: 1px solid rgba(255, 210, 74, 0.28);
    padding: 5px 11px;
    border-radius: 999px;
    margin-bottom: 14px;
}

.product-card h3 {
    color: #f5f7fb;
    margin-bottom: 6px;
}

/* Short mono descriptor under the name */
.product-card .card-tagline {
    font-family: ui-monospace, "SF Mono", Menlo, monospace;
    font-size: 0.72rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #8b93a5;
    margin-bottom: 12px;
}

.product-card p {
    font-size: 0.95rem;
    color: #b8bfcc;
}

/* Footer: format tags on the left, Details button on the right */
/* The price pill + footer form one bottom cluster, pinned to the
   foot of the card via margin-top:auto on the price row, so both the
   pill and the footer align across cards regardless of text length. */
.card-price {
    margin-top: auto;
    margin-bottom: 16px;
}

.card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.card-formats {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.card-formats .fmt {
    font-size: 0.68rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #aeb6c4;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.10);
    padding: 4px 9px;
    border-radius: 999px;
}

.card-details {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-weight: 600;
    font-size: 0.84rem;
    color: #e7eaf2;
    border: 1px solid rgba(255, 255, 255, 0.16);
    padding: 7px 15px;
    border-radius: 999px;
    transition: border-color 0.15s ease, color 0.15s ease, background 0.15s ease;
}

.card-details:hover {
    border-color: #ffd24a;
    color: #ffd24a;
    background: rgba(255, 210, 74, 0.06);
}

/* keep legacy .more styling harmless if reused elsewhere */
.product-card a.more {
    color: #ffd24a;
    font-weight: 600;
    font-size: 0.92rem;
}

/* ---------- Animated equaliser header on product cards ----------
   Mini version of the hero waveform: CSS-only bars in the logo
   gradient, with a warm glow underneath. Bleeds to the card edges. */
.product-card {
    overflow: hidden;
}

.card-visual {
    position: relative;
    /* cancel the card's 28px padding so the strip bleeds edge-to-edge */
    margin: -28px -28px 22px;
    height: 92px;
    overflow: hidden;
    background: rgba(0, 0, 0, 0.22);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.card-bars {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    gap: 4px;
    padding: 16px 24px;
}

.card-bars span {
    flex: 1;
    max-width: 9px;
    height: var(--h, 40%);
    border-radius: 3px 3px 0 0;
    /* per-card colour set below; warm gold is the default (Studio) */
    background: linear-gradient(180deg, #ffd877 0%, #ff9a1f 100%);
    transform-origin: bottom;
    animation: equalize 2.4s ease-in-out var(--d, 0ms) infinite alternate;
}

.card-glow {
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: radial-gradient(ellipse 60% 90% at 50% 130%,
                rgba(255, 140, 0, 0.22) 0%, transparent 65%);
}

/* Distinct, on-scheme colour per card (by position in the grid):
   1st card (Studio) warm gold/orange, 2nd card (Meter) violet. */
.product-grid .product-card:nth-of-type(2) .card-bars span {
    background: linear-gradient(180deg, #c48bff 0%, #8b35ff 100%);
}

.product-grid .product-card:nth-of-type(2) .card-glow {
    background: radial-gradient(ellipse 60% 90% at 50% 130%,
                rgba(139, 53, 255, 0.26) 0%, transparent 65%);
}

/* Meter card: violet category pill to match its bars */
.product-grid .product-card:nth-of-type(2) .label {
    color: #c48bff;
    background: rgba(139, 53, 255, 0.12);
    border-color: rgba(139, 53, 255, 0.32);
}

.product-grid .product-card:nth-of-type(2) .card-details:hover {
    border-color: #c48bff;
    color: #c48bff;
    background: rgba(139, 53, 255, 0.08);
}

/* fixed waveform-ish height + stagger pattern (16 bars) */
.card-bars span:nth-child(1)  { --h: 34%; --d:   0ms; }
.card-bars span:nth-child(2)  { --h: 52%; --d:  90ms; }
.card-bars span:nth-child(3)  { --h: 40%; --d: 180ms; }
.card-bars span:nth-child(4)  { --h: 64%; --d: 270ms; }
.card-bars span:nth-child(5)  { --h: 54%; --d: 360ms; }
.card-bars span:nth-child(6)  { --h: 76%; --d: 450ms; }
.card-bars span:nth-child(7)  { --h: 60%; --d: 540ms; }
.card-bars span:nth-child(8)  { --h: 88%; --d: 630ms; }
.card-bars span:nth-child(9)  { --h: 82%; --d: 540ms; }
.card-bars span:nth-child(10) { --h: 64%; --d: 450ms; }
.card-bars span:nth-child(11) { --h: 72%; --d: 360ms; }
.card-bars span:nth-child(12) { --h: 50%; --d: 270ms; }
.card-bars span:nth-child(13) { --h: 58%; --d: 180ms; }
.card-bars span:nth-child(14) { --h: 38%; --d:  90ms; }
.card-bars span:nth-child(15) { --h: 48%; --d: 140ms; }
.card-bars span:nth-child(16) { --h: 30%; --d: 220ms; }

@keyframes equalize {
    0%, 100% { transform: scaleY(0.4); }
    50%      { transform: scaleY(1); }
}

@media (prefers-reduced-motion: reduce) {
    .card-bars span { animation: none; }
}

/* ---------- Feature list ---------- */

.feature-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 22px;
}

@media (max-width: 700px) {
    .feature-list {
        grid-template-columns: 1fr;
    }
}

.feature-list li {
    padding-left: 22px;
    position: relative;
    color: #c7cdd9;
}

.feature-list li::before {
    content: "▸";
    color: #ffd24a;
    position: absolute;
    left: 0;
    font-size: 0.85rem;
    top: 0.2em;
}

/* ---------- Hero stage ---------- */

/* A dramatic stage for the home-page hero device shot. The iPad
   screenshot tilts very slightly in 3D, sits in a coloured spotlight
   and casts a long soft shadow — gives the page a real product-page
   presence instead of a flat thumbnail. */
.hero-stage {
    position: relative;
    margin: 0 auto;
    max-width: 980px;
    padding: 20px 40px 60px;
    perspective: 1600px;
}

/* Radial glow that bleeds outside the device — the "spotlight". */
.hero-stage::before {
    content: "";
    position: absolute;
    inset: -40px;
    background:
        radial-gradient(ellipse 60% 55% at 50% 45%,
                        rgba(255, 210, 74, 0.42) 0%,
                        rgba(255, 210, 74, 0.22) 35%,
                        transparent 70%),
        radial-gradient(ellipse 90% 50% at 50% 80%,
                        rgba(80, 130, 220, 0.32) 0%,
                        transparent 70%);
    filter: blur(40px);
    z-index: 0;
    pointer-events: none;
}

/* The screenshot itself: tilted, sized, shadowed, sitting above the
   glow. */
.hero-stage .hero-device {
    position: relative;
    z-index: 1;
    display: block;
    width: 100%;
    max-width: 600px;
    height: auto;
    margin: 0 auto;
    border-radius: 18px;
    border: 1px solid rgba(255, 255, 255, 0.10);
    box-shadow:
        0 30px 60px -20px rgba(0, 0, 0, 0.75),
        0 0 0 1px rgba(255, 255, 255, 0.04) inset;
    transform: perspective(1200px) rotateX(12deg) rotateY(-9deg);
    transform-origin: 50% 60%;
    transition: transform 0.6s cubic-bezier(0.2, 0.7, 0.2, 1);
}

.hero-stage:hover .hero-device {
    transform: perspective(1200px) rotateX(8deg) rotateY(-5deg) translateY(-6px);
}

/* Subtle reflection / floor under the device. */
.hero-stage::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: 24px;
    width: 70%;
    height: 30px;
    transform: translateX(-50%);
    background: radial-gradient(ellipse 100% 100% at 50% 0%,
                                rgba(0, 0, 0, 0.55), transparent 70%);
    filter: blur(8px);
    z-index: 0;
}

@media (max-width: 700px) {
    .hero-stage {
        padding: 40px 16px 60px;
    }
    .hero-stage .hero-device {
        transform: perspective(1200px) rotateX(4deg) rotateY(-2deg);
    }
}

/* ---------- Hero photo (real-world studio shots) ---------- */

/* Variant of the hero presentation for actual product photography —
   the iPad on a real desk, in a studio environment. Real photos
   already carry their own perspective and depth, so we drop the 3D
   tilt that .hero-stage applies to UI screenshots and let the photo
   speak for itself. Keeps the same coloured spotlight glow behind
   for visual continuity. */
.hero-photo {
    position: relative;
    margin: 0 auto;
    max-width: 980px;
    padding: 20px 40px 60px;
}

.hero-photo::before {
    content: "";
    position: absolute;
    inset: -40px;
    background:
        radial-gradient(ellipse 60% 55% at 50% 45%,
                        rgba(255, 210, 74, 0.32) 0%,
                        rgba(255, 210, 74, 0.18) 35%,
                        transparent 70%),
        radial-gradient(ellipse 90% 50% at 50% 80%,
                        rgba(80, 130, 220, 0.24) 0%,
                        transparent 70%);
    filter: blur(40px);
    z-index: 0;
    pointer-events: none;
}

.hero-photo img {
    position: relative;
    z-index: 1;
    display: block;
    width: 100%;
    max-width: 860px;
    height: auto;
    margin: 0 auto;
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 30px 60px -20px rgba(0, 0, 0, 0.75);
}

@media (max-width: 700px) {
    .hero-photo {
        padding: 20px 16px 40px;
    }
}

/* ---------- Image placeholders ---------- */

/* A boxed area where a screenshot will go. Sized by aspect-ratio so
   it occupies its real-world footprint in the layout even before the
   image is in place. Replace `.placeholder` with an `<img>` later
   without touching anything else. */
.placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    border-radius: 14px;
    border: 1px dashed rgba(255, 210, 74, 0.25);
    background:
        radial-gradient(ellipse 70% 60% at 50% 40%,
                        rgba(139, 53, 255, 0.18), transparent 70%),
        linear-gradient(160deg,
                        rgba(255, 255, 255, 0.03) 0%,
                        rgba(255, 255, 255, 0.01) 100%);
    color: #8a93a6;
    font-size: 0.85rem;
    letter-spacing: 0.04em;
    padding: 18px;
    margin: 32px 0;
}

.placeholder .ph-label {
    opacity: 0.75;
}

.placeholder .ph-label strong {
    display: block;
    color: #c7cdd9;
    font-weight: 600;
    font-size: 0.95rem;
    letter-spacing: 0.02em;
    margin-bottom: 4px;
}

/* Real screenshots in the same slots as placeholders. Shared rounded
   corners, drop shadow and centered layout. Sized by the same
   aspect-ratio modifier classes so they can drop into existing
   placeholder slots without layout change. */
.screenshot {
    display: block;
    width: 100%;
    max-width: 100%;
    height: auto;
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 18px 40px -20px rgba(0, 0, 0, 0.7);
    margin: 32px 0;
}

.screenshot--ipad   { max-width: 720px; margin-inline: auto; }
.screenshot--iphone { max-width: 280px; margin-inline: auto; }
.screenshot--mac    { max-width: 880px; margin-inline: auto; }

.placeholder--wide   { aspect-ratio: 16 / 9;  width: 100%; }
.placeholder--ipad   { aspect-ratio: 4 / 3;   max-width: 720px; margin-inline: auto; }
.placeholder--iphone { aspect-ratio: 9 / 19;  max-width: 280px; margin-inline: auto; }
.placeholder--mac    { aspect-ratio: 16 / 10; width: 100%; max-width: 880px; margin-inline: auto; }

.placeholder-row {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 22px;
    margin: 32px 0;
}

.placeholder-row .placeholder {
    margin: 0;
}

@media (max-width: 700px) {
    .placeholder-row {
        grid-template-columns: 1fr;
    }
}

/* ---------- Status banner / dev badge ---------- */

/* Full-width strip below the header, used to flag pages whose
   subject is not yet shipping. Warm amber so it reads as a notice,
   not an error. */
.status-banner {
    background: linear-gradient(90deg,
                                rgba(255, 145, 60, 0.15),
                                rgba(255, 145, 60, 0.06));
    border-bottom: 1px solid rgba(255, 145, 60, 0.35);
    color: #ffb070;
    text-align: center;
    padding: 14px 24px;
    font-size: 0.95rem;
    font-weight: 600;
    letter-spacing: 0.02em;
}

.status-banner .status-icon {
    display: inline-block;
    margin-right: 8px;
}

.status-banner .status-detail {
    color: #c7cdd9;
    font-weight: 400;
    margin-left: 6px;
}

/* Pill-style badge for inline use on cards / hero rows. Same colour
   family as the banner. */
.dev-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 145, 60, 0.14);
    border: 1px solid rgba(255, 145, 60, 0.40);
    color: #ffb070;
    padding: 6px 14px;
    border-radius: 999px;
    font-weight: 700;
    font-size: 0.78rem;
    letter-spacing: 0.10em;
    text-transform: uppercase;
}

.dev-badge::before {
    content: "●";
    color: #ff913c;
    font-size: 0.65rem;
}

/* Override of `.product-card .label` when the card is for an
   in-development product — replaces the small grey label with a
   visible amber pill. */
.product-card .label.label--dev {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 145, 60, 0.14);
    border: 1px solid rgba(255, 145, 60, 0.40);
    color: #ffb070;
    padding: 5px 12px;
    border-radius: 999px;
    font-weight: 700;
    font-size: 0.72rem;
    letter-spacing: 0.10em;
    text-transform: uppercase;
    margin-bottom: 14px;
}

.product-card .label.label--dev::before {
    content: "●";
    color: #ff913c;
    font-size: 0.6rem;
}

/* ---------- Price tag ---------- */

.price-tag {
    display: inline-flex;
    align-items: baseline;
    gap: 10px;
    background: rgba(255, 210, 74, 0.10);
    border: 1px solid rgba(255, 210, 74, 0.30);
    color: #ffd24a;
    padding: 6px 14px;
    border-radius: 999px;
    font-weight: 600;
    font-size: 0.92rem;
    letter-spacing: 0.02em;
}

.price-tag .price-detail {
    color: #b8bfcc;
    font-weight: 400;
    font-size: 0.85rem;
}

/* ---------- App Store badge ---------- */

/* Apple's official "Download on the App Store" badge. The SVG is the
   regional artwork from Apple's marketing-tools generator; we host
   it locally so the page renders without external requests. Min
   height per Apple's guidelines is 40 pt — we render at 56 px tall
   so it sits visually prominent in the hero without dwarfing the
   tagline next to it. */
.app-store-badge {
    display: inline-block;
}
.app-store-badge img {
    height: 56px;
    width: auto;
    display: block;
}
.hero-cta {
    margin-top: 28px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;   /* Flex erbt kein text-align — Center explizit */
    gap: 18px;
}
.hero-cta-meta {
    color: #b8bfcc;
    font-size: 0.92rem;
    line-height: 1.4;
    text-align: left;          /* nach dem Center-Wrap soll der Text linksbündig bleiben */
}
.hero-cta-meta strong {
    color: #ffd24a;
    font-weight: 600;
}

/* ---------- Guide / long-form documentation ---------- */

/* Container that constrains long-form prose to a comfortable reading
   measure (roughly 65 ch) inside the wider site container. */
.guide {
    max-width: 720px;
    margin: 0 auto;
}

.guide h2 {
    margin-top: 3.2rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.guide h3 {
    margin-top: 2rem;
    color: #f5f7fb;
}

.guide ul,
.guide ol {
    padding-left: 1.4rem;
    color: #c7cdd9;
}

.guide li {
    margin: 0.35rem 0;
}

.guide strong {
    color: #f5f7fb;
}

/* Table of contents block sitting near the top of a long doc. */
.guide .toc {
    background: rgba(255, 255, 255, 0.035);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 20px 24px;
    margin: 32px 0 48px;
}

.guide .toc > p {
    margin: 0 0 8px;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    font-size: 0.78rem;
    color: #ffd24a;
    font-weight: 600;
}

.guide .toc ol {
    margin: 0;
    padding-left: 1.4rem;
    color: #c7cdd9;
}

.guide .toc a {
    color: #c7cdd9;
}

.guide .toc a:hover {
    color: #ffd24a;
}

/* Inline keycap / button label. */
.guide kbd {
    font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
    font-size: 0.85em;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 5px;
    padding: 0.05em 0.45em;
    color: #f5f7fb;
    white-space: nowrap;
}

/* Highlighted aside / practical workflow callout. */
.guide .tip {
    background: rgba(255, 210, 74, 0.07);
    border-left: 3px solid #ffd24a;
    padding: 14px 18px;
    border-radius: 0 8px 8px 0;
    margin: 24px 0;
    color: #c7cdd9;
}

.guide .tip strong {
    display: block;
    color: #ffd24a;
    margin-bottom: 4px;
    font-size: 0.92rem;
    letter-spacing: 0.02em;
}

/* Reference / measurement tables. */
.guide table {
    width: 100%;
    border-collapse: collapse;
    margin: 16px 0 24px;
    font-size: 0.95rem;
}

.guide th,
.guide td {
    text-align: left;
    padding: 10px 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    vertical-align: top;
}

.guide th {
    color: #ffd24a;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-size: 0.78rem;
    font-weight: 600;
    border-bottom-color: rgba(255, 210, 74, 0.30);
}

.guide td strong {
    color: #f5f7fb;
}

.guide code {
    font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
    font-size: 0.9em;
    background: rgba(255, 255, 255, 0.06);
    padding: 0.05em 0.4em;
    border-radius: 4px;
    color: #f5f7fb;
}

.guide hr {
    border: 0;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    margin: 48px 0 24px;
}

/* Inline meta line under a guide title (e.g. "User Guide · iPadOS"). */
.guide .guide-meta {
    color: #8a93a6;
    font-size: 0.92rem;
    margin: -8px 0 28px;
}

/* ---------- Footer ---------- */

.site-footer {
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    padding: 32px 0;
    margin-top: 60px;
    font-size: 0.88rem;
    color: #8a93a6;
}

.site-footer .container {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px;
}

.site-footer a {
    color: #8a93a6;
    margin-right: 18px;
}

.site-footer a:hover {
    color: #c7cdd9;
}

/* ---------- Eyebrow / accent text ---------- */

.eyebrow {
    color: #ffd24a;
    text-transform: uppercase;
    letter-spacing: 0.16em;
    font-size: 0.78rem;
    font-weight: 600;
    margin-bottom: 10px;
}

/* ---------- Product tabs (Support: switch Studio ⇄ Meter) ----------
   A segmented control echoing the plug-in's own segmented pickers:
   a subtle inset container on the dark surface, the active segment
   lifted with a faint fill and an amber label. Amber stays an accent
   here — the loud solid-amber fill is reserved for .btn-primary CTAs. */

.product-tabs {
    display: inline-flex;
    gap: 4px;
    padding: 4px;
    margin: 8px 0 32px;
    background: rgba(255, 255, 255, 0.035);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
}

.ptab {
    appearance: none;
    -webkit-appearance: none;
    cursor: pointer;
    background: transparent;
    border: 0;
    color: #b8bfcc;
    font: inherit;
    font-weight: 600;
    font-size: 0.95rem;
    letter-spacing: 0.01em;
    padding: 9px 20px;
    border-radius: 9px;
    transition: color 0.15s ease, background 0.15s ease;
}

.ptab:hover {
    color: #f5f7fb;
}

.ptab.active {
    background: rgba(255, 255, 255, 0.07);
    color: #ffd24a;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.25);
}

@media (max-width: 480px) {
    .product-tabs {
        display: flex;
    }
    .ptab {
        flex: 1;
        text-align: center;
        padding: 9px 12px;
    }
}

.ptab-panel[hidden] {
    display: none;
}

/* ---------- Animated waveform hero (experimental) ----------
   Ported from the jeemedia "Dark Studio" design, recoloured to
   mirror the SpectraView app-icon gradient (yellow→orange→pink→
   purple). Scoped to .hero--wave so other heroes are untouched.
   Pure CSS + a small vanilla-JS canvas loop. */
.hero--wave {
    position: relative;
    overflow: hidden;
}

/* Dark "spotlight" scrim sitting between the vivid waveform and the
   text, so the copy stays legible over full-opacity bars. Centred
   behind the headline, fading to fully transparent at the edges so
   the waveform reads at full strength left and right. */
.hero--wave::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    background: radial-gradient(ellipse 58% 62% at 50% 46%,
                rgba(11, 6, 18, 0.55) 0%,
                rgba(11, 6, 18, 0.32) 42%,
                rgba(11, 6, 18, 0) 74%);
}

.hero--wave > .container {
    position: relative;
    z-index: 2;
}

/* Extra per-glyph legibility on top of the scrim */
.hero--wave .tagline,
.hero--wave h1,
.hero--wave .lede {
    text-shadow: 0 2px 16px rgba(11, 6, 18, 0.9),
                 0 1px 3px rgba(11, 6, 18, 0.95);
}

/* The brand wordmark is the hub hero's centrepiece — let it grow
   large and scale strongly with the viewport width. */
.hero--wave h1 {
    font-size: clamp(3rem, 9vw, 7rem);
    font-weight: 700;
    line-height: 1.02;
    max-width: none;
}

.hero-wave-canvas {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
    opacity: 1;
    /* fade the bars in at the top and out at the bottom so the
       canvas blends into the page instead of ending hard */
    -webkit-mask-image: linear-gradient(to bottom, transparent 0%, #000 22%, #000 72%, transparent 100%);
            mask-image: linear-gradient(to bottom, transparent 0%, #000 22%, #000 72%, transparent 100%);
}

@media (prefers-reduced-motion: reduce) {
    .hero-wave-canvas { opacity: 0.85; }
}
