:root {
    --background: #09141e;
    --text: #edf5fa;
    --muted: #adc4d1;
    --faint: rgba(173, 196, 209, 0.28);
    --game: #71e5b3;
    --pending: #8194a2;
    --font-main: 'Plus Jakarta Sans', system-ui, sans-serif;
    --font-mono: 'JetBrains Mono', ui-monospace, monospace;
    /* The first screen is laid out for 1100 × 900 and scales with the window, so it looks the
       same on every screen and zoom level. Phones keep their own layout (see the end). */
    --unit: min(100vw / 1100, 100vh / 900);
}

* { box-sizing: border-box; }

html, body {
    margin: 0;
    background-color: var(--background);
    color: var(--text);
    font-family: var(--font-main);
    overscroll-behavior: none;
}

a { color: inherit; }

/* ---------- Blueprint background ---------- */
/* Grid, its dissolve and the warp tunnel are drawn in hub.js. */

.blueprint {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.page { position: relative; }

/* ---------- Intro (drawn in hub.js) ---------- */

.intro {
    position: fixed;
    inset: 0;
    z-index: 50;
    overflow: hidden;
    transition: opacity 0.5s ease;
}

.intro.is-leaving { opacity: 0; pointer-events: none; }

.intro-title {
    position: absolute;
    left: 0;
    right: 0;
    top: 7vh;
    padding: 0 16px;
    text-align: center;
}

.intro-headline {
    margin: 0;
    font-size: clamp(24px, min(4.6vw, 5.4vh), 56px);
    font-weight: 800;
    letter-spacing: -0.01em;
}


.intro-orbit {
    position: absolute;
    border: 1px dashed rgba(173, 196, 209, 0.3);
    border-radius: 50%;
}

.intro-symbols, .intro-symbol, .intro-logo, .intro-shockwave { position: absolute; left: 0; top: 0; }
.intro-shockwave { border: 2px solid rgba(237, 245, 250, 0.7); border-radius: 50%; opacity: 0; }
.intro-symbol svg { width: 100%; height: 100%; display: block; overflow: visible; }
.intro-symbol-label {
    position: absolute;
    left: 50%;
    top: calc(100% + 8px);
    transform: translateX(-50%);
    white-space: nowrap;
    font-family: var(--font-mono);
    font-size: var(--label-size, 13px);
    letter-spacing: 0.06em;
    color: var(--text);
    opacity: var(--label-opacity, 1);
}
.intro-logo { overflow: visible; }

.intro-skip {
    position: absolute;
    right: 20px;
    bottom: 20px;
    padding: 8px 14px;
    border: 1px solid var(--faint);
    border-radius: 6px;
    background: rgba(9, 20, 30, 0.8);
    color: var(--muted);
    font: 500 13px var(--font-main);
    cursor: pointer;
}

.intro-skip:hover, .intro-skip:focus-visible { color: var(--text); border-color: var(--muted); }

/* The page fades in while the intro logo flies to the centre of the diagram. */
.page { transition: opacity 0.9s ease; }
body.is-intro-playing .page,
html.is-intro-pending .page { opacity: 0; }
body.is-intro-logo-flying .ecosystem-logo { opacity: 0; }

/* ---------- Top bar ---------- */

.top-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: calc(1120 * var(--unit));
    margin: 0 auto;
    padding: calc(18 * var(--unit)) calc(24 * var(--unit)) calc(14 * var(--unit));
    border-bottom: 1px solid rgba(173, 196, 209, 0.16);
}

.brand {
    display: flex;
    align-items: center;
    gap: calc(10 * var(--unit));
    font-weight: 800;
    font-size: calc(22 * var(--unit));
    text-decoration: none;
}

.brand-logo { width: calc(30 * var(--unit)); height: calc(30 * var(--unit)); }

.top-nav { display: flex; align-items: center; gap: calc(28 * var(--unit)); font-size: calc(15 * var(--unit)); }
.top-nav a { text-decoration: none; color: var(--muted); }
.top-nav a:hover, .top-nav a:focus-visible { color: var(--text); }

/* Intro on/off: a small switch, the choice stays in this browser (hub.js). */
.intro-toggle { display: flex; align-items: center; gap: calc(8 * var(--unit)); color: var(--muted); cursor: pointer; user-select: none; }
.intro-toggle input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.intro-toggle-track {
    position: relative;
    width: calc(30 * var(--unit));
    height: calc(17 * var(--unit));
    border: 1px solid var(--faint);
    border-radius: 999px;
    transition: background-color 0.2s ease, border-color 0.2s ease;
}
.intro-toggle-track::after {
    content: "";
    position: absolute;
    top: 50%;
    left: calc(2 * var(--unit));
    width: calc(11 * var(--unit));
    height: calc(11 * var(--unit));
    border-radius: 50%;
    background: var(--muted);
    transform: translateY(-50%);
    transition: transform 0.2s ease, background-color 0.2s ease;
}
.intro-toggle input:checked + .intro-toggle-track { border-color: var(--game); background: color-mix(in srgb, var(--game) 22%, transparent); }
.intro-toggle input:checked + .intro-toggle-track::after { background: var(--game); transform: translate(calc(13 * var(--unit)), -50%); }
.intro-toggle input:focus-visible + .intro-toggle-track { outline: 1px solid var(--muted); outline-offset: 3px; }
.intro-toggle:hover { color: var(--text); }

.top-nav-sign-in {
    padding: calc(6 * var(--unit)) calc(14 * var(--unit));
    border: 1px solid var(--faint);
    border-radius: calc(6 * var(--unit));
    color: var(--text) !important;
}

/* ---------- Ecosystem diagram ---------- */

.hero {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    /* Fills the first screen below the top bar, also in tall windows. */
    min-height: calc(100vh - 64 * var(--unit));
    padding: calc(28 * var(--unit)) 16px calc(40 * var(--unit));
}

.ecosystem {
    position: relative;
    width: calc(670 * var(--unit));
    aspect-ratio: 1;
}

.ecosystem-canvas { position: absolute; inset: 0; width: 100%; height: 100%; }

.ecosystem-logo {
    position: absolute;
    left: 50%;
    top: 50%;
    width: 17%;
    height: 17%;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: transparent;
    transform: translate(-50%, -50%);
    cursor: pointer;
}

.ecosystem-logo svg { width: 100%; height: 100%; display: block; }
.ecosystem-logo:focus-visible { outline: 1px solid var(--muted); outline-offset: 8px; }

/* The blades open a little while the logo is hovered (each moves outwards along its own axis). */
.ecosystem-logo .logo-piece { transition: transform 0.35s cubic-bezier(0.3, 1.6, 0.5, 1); }
.ecosystem-logo:hover .logo-piece,
.ecosystem-logo:focus-visible .logo-piece { transform: translateY(-7px); }

.ecosystem-nodes { position: absolute; inset: 0; pointer-events: none; }

/* A node is placed with its icon centre on the node point (set from hub.js). */
.node {
    position: absolute;
    left: 0;
    top: 0;
    display: block;
    width: 0;
    height: 0;
    text-decoration: none;
    color: var(--text);
    outline: none;
    cursor: pointer;
    pointer-events: auto;
    transition: opacity 0.25s ease;
}

.node.is-dimmed { opacity: 0.4; }

/* Moons glow softly so they read as bodies of their own, outside the rings. */
.node--moon .node-icon { filter: drop-shadow(0 0 8px color-mix(in srgb, var(--area-color) 55%, transparent)); }
.node--moon .node-name { color: var(--area-color); }
.node--moon .node-status { color: var(--muted); }

.node-icon {
    position: absolute;
    left: calc(var(--icon-size) / -2);
    top: calc(var(--icon-size) / -2);
    width: var(--icon-size);
    height: var(--icon-size);
    color: var(--area-color);
}

.node-icon svg { width: 100%; height: 100%; display: block; overflow: visible; }

/* Invisible hit area: larger than the icon so nodes are easy to tap. */
.node::before {
    content: "";
    position: absolute;
    left: calc(var(--hit-size) / -2);
    top: calc(var(--hit-size) / -2);
    width: var(--hit-size);
    height: var(--hit-size);
    border-radius: 50%;
}

.node-label {
    position: absolute;
    display: flex;
    flex-direction: column;
    gap: 2px;
    white-space: nowrap;
}

.node-name { font-weight: 700; font-size: var(--name-size); line-height: 1.15; }

.node-status {
    font-family: var(--font-mono);
    font-size: var(--status-size);
    color: var(--area-color);
}

.node--app .node-status { color: var(--muted); }
.node--pending .node-status { color: var(--pending); }

/* Label placement relative to the icon ring (chosen in hub.js). */
.node-label.is-right { left: calc(var(--icon-size) * 0.8 + 8px); top: 0; transform: translateY(-50%); }
.node-label.is-left  { right: calc(var(--icon-size) * 0.8 + 8px); top: 0; transform: translateY(-50%); align-items: flex-end; text-align: right; }
.node-label.is-below { left: 0; top: calc(var(--icon-size) * 0.8 + 6px); transform: translateX(-50%); align-items: center; text-align: center; }
.node-label.is-above { left: 0; bottom: calc(var(--icon-size) * 0.8 + 6px); transform: translateX(-50%); align-items: center; text-align: center; }
.node-label.is-hidden { display: none; }

.node--app.is-open .node-name {
    color: var(--product-color);
    text-shadow: 0 0 10px color-mix(in srgb, var(--product-color) 70%, transparent), 0 0 22px color-mix(in srgb, var(--product-color) 35%, transparent);
    transition: color 0.2s ease, text-shadow 0.2s ease;
}

.node:focus-visible .node-name { text-decoration: underline; text-underline-offset: 4px; }

/* ---------- Speech bubble with the pain point ---------- */

.bubble {
    position: absolute;
    z-index: 5;
    width: calc(310 * var(--unit));
    padding: calc(14 * var(--unit)) calc(16 * var(--unit)) calc(16 * var(--unit));
    border: 1px solid color-mix(in srgb, var(--area-color) 55%, transparent);
    border-radius: 12px;
    background: #0b1824;
}

.bubble-kicker {
    margin-right: 22px;
    font-family: var(--font-mono);
    font-size: calc(11.5 * var(--unit));
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--area-color);
}

/* Problem and answer as two labelled blocks, so the problem is never read as a claim about CiGYL. */
.bubble-part { margin-top: calc(10 * var(--unit)); padding-left: calc(10 * var(--unit)); border-left: 2px solid var(--part-color); }
.bubble-part--problem { --part-color: #ff8f7d; }
.bubble-part--answer { --part-color: var(--area-color); }

.bubble-tag {
    display: block;
    margin-bottom: 2px;
    font-family: var(--font-mono);
    font-size: calc(10.5 * var(--unit));
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--part-color);
}

.bubble-problem { margin: 0; font-size: calc(14.5 * var(--unit)); line-height: 1.4; color: var(--muted); }
.bubble-answer { margin: 0; font-size: calc(16.5 * var(--unit)); font-weight: 700; line-height: 1.35; }

.bubble-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.bubble-actions:empty { display: none; }

.bubble-actions a {
    padding: 6px 12px;
    border: 1px solid var(--muted);
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    font-size: calc(13 * var(--unit));
}

.bubble-actions a:first-child { border-color: var(--area-color); color: var(--area-color); }
.bubble-actions a:hover, .bubble-actions a:focus-visible { background: rgba(173, 196, 209, 0.12); }

.bubble-close {
    position: absolute;
    top: 6px;
    right: 8px;
    width: 28px;
    height: 28px;
    border: 0;
    background: transparent;
    color: var(--muted);
    font-size: 20px;
    line-height: 1;
    cursor: pointer;
}

.bubble-close:hover, .bubble-close:focus-visible { color: var(--text); }

/* Phones: below the diagram, pushing the claim down while it is open. */
.bubble.is-below-diagram {
    position: relative;
    left: auto !important;
    top: auto !important;
    margin-top: 44px;
}

/* ---------- Opening an app (animated in hub.js) ---------- */

.launch { position: fixed; inset: 0; z-index: 60; pointer-events: all; }
.launch-darkness, .launch-ring, .launch-icon, .launch-fountain { position: absolute; left: 0; top: 0; }
.launch-darkness { border-radius: 50%; background: #020507; box-shadow: 0 0 80px 40px #020507; }
.launch-ring { border: 2px solid var(--area-color); border-radius: 50%; }
/* Laid out at its largest size and only scaled down, so the symbol stays sharp. */
.launch-icon { width: var(--launch-icon-size); height: var(--launch-icon-size); color: var(--area-color); transform-origin: 50% 50%; will-change: transform, opacity; }
.launch-fountain { width: 100%; height: 100%; }
.launch-icon svg { width: 100%; height: 100%; display: block; overflow: visible; }
.ecosystem-logo.is-launching .logo-piece { transform: translateY(-10px); }
/* A game card on its way into the black hole (hub.js, pullIntoHole). */
.launch .game-card { position: absolute; left: 0; top: 0; margin: 0; will-change: transform; }

/* ---------- Claim ---------- */

.hero-claim {
    margin-top: calc(24 * var(--unit));
    text-align: center;
}

.hero-claim h1 {
    margin: 0;
    font-size: calc(48 * var(--unit));
    font-weight: 800;
    line-height: 1.12;
    letter-spacing: -0.01em;
}

/* Every sentence on a line of its own. */
.hero-claim h1 span { display: block; white-space: nowrap; }

/* ---------- Games made with CiGYL ---------- */
/* Phones and narrow windows: a swipeable strip below the claim. Wide screens: a column right of
   the diagram (see the media query below), so the games are visible without scrolling. */

.games { padding: 0 16px 36px; }
.games h2 { margin: 0 0 14px; font-size: 22px; font-weight: 800; }

.games-list {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
}

.game-card {
    flex: 0 0 min(82%, 340px);
    scroll-snap-align: start;
    border: 1px solid color-mix(in srgb, var(--game) 45%, transparent);
    border-radius: 12px;
    background: #0b1824;
    overflow: hidden;
}

.game-media { position: relative; aspect-ratio: 2.3; background: #061019; }
.game-media img,
.game-media video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.game-media video { opacity: 0; transition: opacity 0.25s ease; }
.game-card.is-playing .game-media video { opacity: 1; }

.game-body { padding: 10px 14px 14px; }
.game-status {
    display: inline-block;
    padding: 2px 8px;
    border: 1px solid color-mix(in srgb, var(--game) 60%, transparent);
    border-radius: 4px;
    font: 500 11.5px var(--font-mono);
    color: var(--game);
}
.game-card h3 { margin: 8px 0 4px; font-size: 18px; font-weight: 800; line-height: 1.2; }
.game-card p { margin: 0 0 8px; font: 400 12.5px var(--font-mono); color: var(--muted); }
.game-link { font: 500 12.5px var(--font-mono); color: var(--game); text-decoration: none; }
.game-link:hover, .game-link:focus-visible { text-decoration: underline; }
.game-links { display: flex; flex-wrap: wrap; gap: 4px 16px; }
.game-link-quiet { color: var(--muted); }
.games-note { margin: 12px 0 0; font: 400 11.5px var(--font-mono); color: var(--muted); }

/* Wide screens: hub.js sets body.games-beside when the free space right of the diagram fits the
   column, and --games-width to that space. The diagram stays where it is, centred and full size. */
.hero-row { position: relative; }

body.games-beside .games {
    position: absolute;
    top: 50%;
    right: 30px;
    width: var(--games-width);
    padding: 6px 0 6px 24px;
    transform: translateY(-50%);
}
body.games-beside .games h2 { font-size: 22px; white-space: nowrap; }
/* Flatter images keep both cards and the note on the first screen down to 720 px height. */
body.games-beside .game-media { aspect-ratio: 2.6; }
body.games-beside .games-list { flex-direction: column; overflow: visible; }
body.games-beside .game-card { flex: none; }
/* Narrower columns get a slightly smaller title, so each game name stays on one line. */
body.games-beside .game-card h3 { font-size: min(18px, var(--games-width) / 18.5); }

/* A thin line on the left, like the edge of a screen, unfolds from the top before the cards come in. */
body.games-beside .games::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 1px;
    background: var(--faint);
    transform-origin: top;
}

/* Switching on: hidden until hub.js adds .is-on (after the intro), then line, title and each card
   come in one after the other. Each card opens like a screen: a bright line across its top, then
   the picture folds down behind it, with a short flicker. */
body.games-beside .games:not(.is-on) { visibility: hidden; }
body.games-beside .games.is-on:not(.is-settled)::before { animation: games-edge-unfold 0.28s cubic-bezier(0.5, 0, 0.2, 1) both; }
body.games-beside .games.is-on:not(.is-settled) h2 { animation: games-title-in 0.25s ease 0.15s both; }
body.games-beside .games.is-on:not(.is-settled) .game-card { animation: screen-switch-on 0.55s linear both; }
body.games-beside .games.is-on:not(.is-settled) .game-card:nth-child(1) { animation-delay: 0.22s; }
body.games-beside .games.is-on:not(.is-settled) .game-card:nth-child(2) { animation-delay: 0.42s; }
body.games-beside .games.is-on:not(.is-settled) .game-card::after { animation: screen-scan-line 0.55s linear both; animation-delay: inherit; }
body.games-beside .games.is-on:not(.is-settled) .games-note { animation: games-title-in 0.25s ease 0.9s both; }

.game-card { position: relative; }
.game-card::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    height: 2px;
    background: var(--game);
    box-shadow: 0 0 12px 2px color-mix(in srgb, var(--game) 70%, transparent);
    opacity: 0;
    pointer-events: none;
}

@keyframes games-edge-unfold {
    from { transform: scaleY(0); }
    to { transform: scaleY(1); }
}

@keyframes games-title-in {
    from { opacity: 0; transform: translateY(-6px); }
    to { opacity: 1; transform: none; }
}

@keyframes screen-switch-on {
    0%   { clip-path: inset(0 50% calc(100% - 2px) 50%); filter: brightness(2.5); }
    22%  { clip-path: inset(0 0 calc(100% - 2px) 0); filter: brightness(2.5); }
    72%  { clip-path: inset(0 0 0 0); filter: brightness(1.6); }
    80%  { filter: brightness(0.6); }
    86%  { filter: brightness(1.3); }
    100% { clip-path: inset(0 0 0 0); filter: brightness(1); }
}

@keyframes screen-scan-line {
    0%   { opacity: 1; top: 0; transform: scaleX(0); }
    22%  { opacity: 1; top: 0; transform: scaleX(1); }
    72%  { opacity: 1; top: calc(100% - 2px); }
    100% { opacity: 0; top: calc(100% - 2px); }
}

/* ---------- Tool list ---------- */

.tool-list { max-width: 1100px; margin: 0 auto; padding: 20px 24px 60px; }
.tool-list h2 { font-size: 22px; margin: 0 0 18px; }

.tool-list-groups { display: grid; gap: 34px; }

.tool-group-title { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 14px; margin: 0 0 14px; padding-bottom: 8px; border-bottom: 1px solid rgba(173, 196, 209, 0.16); }
.tool-group-name { font-size: 18px; font-weight: 800; color: var(--area-color); }
.tool-group-subtitle { font-family: var(--font-mono); font-size: 12px; color: var(--muted); }

.tool-card--pending { opacity: 0.72; }

.tool-list-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 16px;
}

.tool-card {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border: 1px solid rgba(173, 196, 209, 0.16);
    border-radius: 10px;
    background: rgba(9, 20, 30, 0.85);
    transition: border-color 0.2s ease;
}

.tool-card:has(a.tool-card-body:hover, a.tool-card-body:focus-visible) { border-color: var(--area-color); }

.tool-card-body { display: flex; flex: 1; gap: 14px; padding: 16px; color: inherit; text-decoration: none; }
a.tool-card-body:focus-visible { outline: 2px solid var(--area-color); outline-offset: -2px; border-radius: 10px; }

.tool-card-icon { flex: none; width: 34px; height: 34px; color: var(--area-color); }
.tool-card-icon svg { width: 100%; height: 100%; overflow: visible; }
.tool-card-name { display: block; font-weight: 700; }
.tool-card-status { display: block; font-family: var(--font-mono); font-size: 12px; color: var(--area-color); margin: 2px 0 6px; }
.tool-card-text { display: block; margin: 0; font-size: 14px; line-height: 1.45; color: var(--muted); }

/* Screenshot strip at the top of a card: swipe on phones, arrows on hover with a mouse. */
.tool-shots { position: relative; border-bottom: 1px solid rgba(173, 196, 209, 0.12); background: #070c12; }

.tool-shots-track {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    aspect-ratio: 16 / 9;
}

.tool-shots-track::-webkit-scrollbar { display: none; }

.tool-shots-track img {
    flex: 0 0 100%;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    scroll-snap-align: start;
}

.tool-shots-dots {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 8px;
    display: flex;
    justify-content: center;
    gap: 6px;
    pointer-events: none;
}

.tool-shots-dots span { width: 6px; height: 6px; border-radius: 50%; background: rgba(255, 255, 255, 0.35); box-shadow: 0 0 4px rgba(0, 0, 0, 0.8); transition: background 0.2s ease, width 0.2s ease; }
.tool-shots-dots span.is-current { width: 16px; border-radius: 3px; background: var(--area-color); }

.tool-shots-button {
    position: absolute;
    top: 50%;
    width: 32px;
    height: 32px;
    margin-top: -16px;
    border: 1px solid rgba(173, 196, 209, 0.3);
    border-radius: 50%;
    font-size: 20px;
    line-height: 1;
    color: #fff;
    background: rgba(5, 10, 16, 0.72);
    cursor: pointer;
    opacity: 0;
    transition: opacity 0.2s ease;
}

.tool-shots-previous { left: 8px; }
.tool-shots-next { right: 8px; }
.tool-shots:hover .tool-shots-button, .tool-shots-button:focus-visible { opacity: 1; }
.tool-shots-button:hover { border-color: var(--area-color); }

/* Touch screens have no hover: swiping is the way, the arrows stay hidden. */
@media (hover: none) { .tool-shots-button { display: none; } }

/* ---------- Pricing ---------- */

.pricing { max-width: 1100px; margin: 0 auto; padding: 30px 24px 50px; }
.pricing-kicker { margin: 0; font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }
.pricing h2 { margin: 10px 0 8px; font-size: clamp(26px, 3.6vw, 36px); font-weight: 800; letter-spacing: -0.01em; }
.pricing-lead { margin: 0 0 22px; max-width: 720px; font-size: 17px; line-height: 1.5; color: var(--muted); }

.pricing-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }

.price-card {
    display: flex;
    flex-direction: column;
    padding: 16px 18px;
    border: 1px solid rgba(173, 196, 209, 0.16);
    border-top: 2px solid var(--area-color, var(--muted));
    border-radius: 10px;
    background: rgba(9, 20, 30, 0.85);
}

.price-card h3 { margin: 0 0 4px; font-size: 18px; color: var(--area-color, var(--text)); }
.price-card-what { margin: 0 0 12px; font-size: 14px; line-height: 1.45; color: var(--muted); }
.price { margin: auto 0 0; }
.price-amount { font-size: 26px; font-weight: 800; }
/* Until licences can be bought: same place as a price, quieter. */
.price-amount--soon { font-size: 20px; color: var(--muted); }
.price-note { font-family: var(--font-mono); font-size: 12px; color: var(--muted); }

/* The Pass spans the first row: it is the offer we want people to see first. */
.price-card--pass {
    grid-column: 1 / -1;
    border: 1px solid rgba(173, 196, 209, 0.3);
    border-top: 2px solid transparent;
    border-image: linear-gradient(90deg, #59c9ef, #71e5b3, #ffbd69) 1;
}

.price-card--pass h3 { font-size: 22px; }
.price-card--pass .price { margin: 0 0 10px; }
.price-card--pass ul { margin: 0 0 14px; padding-left: 18px; color: var(--muted); font-size: 14px; line-height: 1.6; }

.price-button {
    align-self: flex-start;
    padding: 9px 18px;
    border-radius: 6px;
    background: var(--text);
    color: var(--background);
    font-weight: 700;
    text-decoration: none;
}

.pricing-fine { margin: 18px 0 0; max-width: 760px; font-size: 13.5px; line-height: 1.55; color: var(--muted); }

/* ---------- About ---------- */

.about { max-width: 1100px; margin: 0 auto; padding: 40px 24px 70px; }
.about-kicker { margin: 0; font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }
.about h2 { margin: 10px 0 8px; font-size: clamp(28px, 4vw, 40px); font-weight: 800; letter-spacing: -0.01em; }
.about-lead { margin: 0 0 26px; font-size: 18px; color: var(--muted); }
.about-story { display: grid; grid-template-columns: 1fr 1fr 200px; gap: 28px; align-items: center; font-size: 15px; line-height: 1.6; color: var(--muted); }
/* The photo is round on black; the circle crop hides the black corners on the dark page. */
.about-photo { width: 200px; height: 200px; border-radius: 50%; display: block; }
.about-story p { margin: 0; }
.about-families { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin: 30px 0 26px; }

.about-family {
    display: flex;
    flex-direction: column;
    padding: 16px 18px;
    border: 1px solid rgba(173, 196, 209, 0.16);
    border-top: 2px solid var(--area-color);
    border-radius: 10px;
    background: rgba(9, 20, 30, 0.85);
}

.about-family h3 { margin: 0 0 6px; font-size: 17px; color: var(--area-color); }
.about-family p { margin: 0; font-size: 14px; line-height: 1.5; color: var(--muted); }

.about-open {
    align-self: flex-end;
    margin-top: auto;
    padding: 6px 18px;
    border: 1px solid var(--area-color);
    border-radius: 6px;
    color: var(--area-color);
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
}

.about-family p { margin-bottom: 14px; }
.about-open:hover, .about-open:focus-visible { background: color-mix(in srgb, var(--area-color) 14%, transparent); }
.about-principle { margin: 0 0 6px; font-size: 16px; }
.about-note { margin: 0 0 18px; font-size: 13px; color: var(--muted); }
.about-links { display: flex; flex-wrap: wrap; gap: 20px; margin: 0; font-size: 14px; }
.about-links a { color: var(--text); text-underline-offset: 4px; }

.footer {
    display: flex;
    gap: 22px;
    justify-content: center;
    padding: 26px 16px 34px;
    border-top: 1px solid rgba(173, 196, 209, 0.12);
    font-size: 13px;
    color: var(--muted);
}

.footer a { text-decoration: none; }
.footer a:hover { color: var(--text); }

/* ---------- Small screens ---------- */

@media (max-width: 720px) {
    :root { --unit: 1px; }
    .top-bar { padding: 14px 16px 12px; }
    .top-nav { gap: 14px; font-size: 14px; }
    /* Phones: a slightly smaller intro switch. */
    .intro-toggle { gap: 6px; font-size: 12px; }
    .intro-toggle-track { width: 28px; height: 16px; }
    .intro-toggle-track::after { left: 2px; width: 10px; height: 10px; }
    .intro-toggle input:checked + .intro-toggle-track::after { transform: translate(12px, -50%); }
    .top-nav-sign-in { white-space: nowrap; }
    .hero { min-height: 0; padding: 24px 8px 32px; }
    /* The camera (hub.js) zooms in on a selected product; the hero clips what moves out. */
    .hero { overflow: hidden; }
    .ecosystem { width: calc(100vw - 16px); transform-origin: 0 0; transition: transform 0.6s cubic-bezier(0.3, 0.9, 0.3, 1); }
    .node--app .node-label { white-space: normal; width: 76px; }
    .node--app .node-label.is-left, .node--app .node-label.is-right { white-space: nowrap; width: auto; }
    /* Links open only from the bubble on phones, so its first button is big and filled. */
    .bubble-actions a { padding: 10px 14px; font-size: 15px; }
    .bubble-actions a:first-child { flex: 1 1 100%; padding: 13px 16px; text-align: center; font-size: 16px; background: var(--area-color); color: #061019; }
    .bubble { width: calc(100vw - 32px); }
    .bubble:not([hidden]) + .hero-claim { margin-top: 28px; }
    .hero-claim { width: 100%; padding: 0 12px; margin-top: 36px; }
    .hero-claim h1 { font-size: clamp(22px, 7.6vw, 34px); }
    .about-story, .about-families { grid-template-columns: 1fr; }
    .about-photo { width: 160px; height: 160px; justify-self: center; }
    .pricing-grid { grid-template-columns: 1fr; }
}

/* Small phones: the word "Intro" makes way, the switch keeps its name for screen readers and as a tooltip. */
@media (max-width: 460px) {
    .brand { gap: 8px; font-size: 20px; }
    .top-nav { gap: 12px; font-size: 13.5px; }
    .intro-toggle-label { display: none; }
}

@media (prefers-reduced-motion: reduce) {
    .ecosystem { transition: none; }
    body.games-beside .games.is-on * , body.games-beside .games.is-on::before { animation: none !important; }
}

/* Keeps a short phrase on one line when a headline wraps. */
.keep-together { white-space: nowrap; }
