/* =========================================================================
   pornspective.org
   Colours and shapes come from the v2 "new look" (Resources/Colours.xaml,
   GlassStyles.xaml, GlassMenus.xaml) and the animations' brand.css.
   Change a token here and every page follows.
   ========================================================================= */
:root {
  --ps: #D6720E;            /* PSColor */
  --ps-vivid: #FF8000;      /* PSColorVivid */
  --ps-deep: #9C5208;
  --gold: #FFC800;          /* GoldColor (ratings) */
  --ai: #0094FF;            /* AIColor */
  --ai-vivid: #4DB5FF;

  /* the accent a page uses; body.theme-ai swaps it for the AI blue */
  --acc: var(--ps);
  --acc-vivid: var(--ps-vivid);
  --acc-glow: rgba(214, 114, 14, .55);
  --acc-soft: rgba(214, 114, 14, .14);

  --black: #000;
  --g-900: #141414;         /* DarkerTheme */
  --g-850: #1E1E1E;         /* DarkTheme / window backdrop start */
  --g-800: #282828;
  --g-700: #3C3C3C;
  --text: #F4F4F4;
  --text-2: #D2D2D2;
  --muted: #B4B4B4;
  --dim: #8A8A8A;

  --glass: rgba(255, 255, 255, .06);
  --glass-2: rgba(255, 255, 255, .10);
  --glass-border: rgba(255, 255, 255, .16);
  --glass-dark: rgba(10, 10, 10, .72);

  /* the v2 accent line: accent on the left, fading out to the right */
  --accent-line: linear-gradient(90deg, var(--acc) 0%, var(--acc-vivid) 34%, rgba(0, 0, 0, 0) 92%);
  --soft-divider: linear-gradient(90deg, rgba(255,255,255,0), rgba(255,255,255,.2) 50%, rgba(255,255,255,0));

  --font-title: Impact, Haettenschweiler, "Arial Narrow Bold", "Roboto Condensed", "Helvetica Neue Condensed Bold", sans-serif-condensed, sans-serif;
  --font-body: "Segoe UI", "Segoe UI Variable", system-ui, -apple-system, "Helvetica Neue", Roboto, Arial, sans-serif;

  --r-field: 6px; --r-pop: 12px; --r-panel: 16px; --r-tile: 16px; --r-bar: 21px;
  --wrap: 1140px;
  --pad: clamp(20px, 4vw, 40px);
  --shadow: 0 30px 80px rgba(0,0,0,.6), 0 6px 18px rgba(0,0,0,.45);
}
body.theme-ai {
  --acc: var(--ai);
  --acc-vivid: var(--ai-vivid);
  --acc-glow: rgba(0, 148, 255, .5);
  --acc-soft: rgba(0, 148, 255, .14);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--black) linear-gradient(180deg, var(--g-850) 0, #0a0a0a 900px, var(--black) 1800px) no-repeat;
  color: var(--text);
  font: 400 17px/1.65 var(--font-body);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--acc-vivid); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: #fff; }
:focus-visible { outline: 2px solid var(--acc-vivid); outline-offset: 3px; border-radius: 4px; }
::selection { background: var(--acc); color: #fff; }

.wrap { width: min(var(--wrap), 100% - 2 * var(--pad)); margin-inline: auto; }
.skip { position: absolute; left: -999px; top: 8px; background: #000; color: #fff; padding: 8px 14px; z-index: 100; border-radius: 8px; }
.skip:focus { left: 8px; }
.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; }

/* ---------- type ---------------------------------------------------------- */
h1, h2, h3, .display { font-family: var(--font-title); font-weight: 400; line-height: 1.02; margin: 0; letter-spacing: .01em; }
h1, .h1 { font-size: clamp(38px, 6.2vw, 86px); }
h2, .h2 { font-size: clamp(29px, 3.9vw, 50px); }
h3, .h3 { font-size: clamp(21px, 2.1vw, 26px); line-height: 1.1; }
h4 { font: 600 19px/1.3 var(--font-body); margin: 0 0 6px; }
p { margin: 0 0 1em; max-width: 68ch; }
.lede { font-size: clamp(18px, 1.7vw, 21px); line-height: 1.55; color: var(--text-2); max-width: 60ch; }
.muted { color: var(--muted); }
.acc { color: var(--acc); }
.small { font-size: 14.5px; color: var(--muted); }
.name { text-transform: none; }               /* the app name is always lowercase */

/* a heading with the accent line underneath it */
.lined { position: relative; padding-bottom: 18px; margin-bottom: 22px; }
.lined::after { content: ""; position: absolute; left: 0; bottom: 0; width: min(420px, 100%); height: 2px; border-radius: 1px; background: var(--accent-line); }

/* ---------- buttons ------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  min-height: 46px; padding: 10px 22px; border-radius: 999px;
  font: 600 16px/1.2 var(--font-body); text-decoration: none; cursor: pointer;
  color: #fff; background: var(--glass); border: 1px solid var(--glass-border);
  transition: background .15s, border-color .15s, box-shadow .15s, transform .15s;
}
.btn:hover { background: var(--acc-soft); border-color: var(--acc); color: #fff; }
.btn svg { width: 18px; height: 18px; flex: none; }
.btn-primary {
  background: linear-gradient(135deg, var(--acc-vivid), var(--acc)); border-color: transparent;
  box-shadow: 0 0 18px var(--acc-glow);
}
.btn-primary:hover { background: linear-gradient(135deg, var(--acc-vivid), var(--acc)); box-shadow: 0 0 28px var(--acc-glow), 0 0 0 1px rgba(255,255,255,.35) inset; transform: translateY(-1px); }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }

/* ---------- navigation: the floating glass command bar ---------------------- */
.nav { position: sticky; top: 12px; z-index: 50; margin-top: 12px; }
.nav-bar {
  position: relative; display: flex; align-items: center; gap: 8px;
  padding: 6px 6px 6px 18px; border-radius: var(--r-bar);
  background: var(--glass-dark); border: 1px solid var(--glass-border);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  box-shadow: 3px 5px 14px rgba(0,0,0,.6);
}
.nav-bar::before { content: ""; position: absolute; left: 20px; right: 20px; top: -1px; height: 2px; border-radius: 1px; background: var(--accent-line); }
.nav-logo { display: flex; align-items: center; margin-right: auto; }
.nav-logo img { height: 30px; width: auto; }
.nav-links { display: flex; align-items: center; gap: 2px; list-style: none; margin: 0; padding: 0; }
.nav-links a { display: block; padding: 8px 13px; border-radius: 999px; color: var(--text-2); text-decoration: none; font-size: 15.5px; white-space: nowrap; }
.nav-links a:hover { background: var(--glass-2); color: #fff; }
.nav-links a[aria-current="page"] { background: var(--acc-soft); color: #fff; box-shadow: inset 0 0 0 1px var(--acc); }
.nav-links .ai-link { color: var(--ai-vivid); }
.nav .btn { min-height: 38px; padding: 7px 18px; font-size: 15px; }
.nav-toggle { display: none; width: 40px; height: 38px; border-radius: 999px; border: 1px solid var(--glass-border); background: transparent; color: #fff; cursor: pointer; }
.nav-toggle svg { width: 20px; height: 20px; display: block; margin: auto; }
@media (max-width: 980px) {
  .nav-toggle { display: block; }
  .nav-links { display: none; position: absolute; left: 0; right: 0; top: calc(100% + 8px); flex-direction: column; align-items: stretch; padding: 10px;
    background: rgba(14,14,14,.97); border: 1px solid var(--glass-border); border-radius: var(--r-pop); }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 12px 14px; }
}
@media (max-width: 520px) { .nav .btn span.long { display: none; } .nav-logo img { height: 24px; } }

/* ---------- sections -------------------------------------------------------- */
.section { padding-block: clamp(84px, 11vw, 152px); }
.section-tight { padding-block: clamp(52px, 7vw, 92px); }
.section-head { margin-bottom: clamp(36px, 5vw, 64px); }
.band { background: linear-gradient(180deg, rgba(255,255,255,.035), rgba(255,255,255,0)); border-top: 1px solid rgba(255,255,255,.07); }

/* icon-tile header, as the v2 windows have: tile, title, description */
.tile-head { display: flex; gap: 18px; align-items: center; }
.tile-head p { margin: 4px 0 0; }
.tile-head h4 { margin: 0; }
.panel > .tile-head + p { margin-top: 14px; }
.tile {
  flex: none; width: 56px; height: 56px; border-radius: var(--r-tile); display: grid; place-items: center; color: #fff;
  background: linear-gradient(135deg, var(--acc-vivid), var(--acc)); box-shadow: 0 0 18px var(--acc-glow);
}
.tile svg { width: 28px; height: 28px; }
.tile.sm { width: 42px; height: 42px; border-radius: 12px; box-shadow: 0 0 12px var(--acc-glow); }
.tile.sm svg { width: 21px; height: 21px; }
.tile.ai { background: linear-gradient(135deg, var(--ai-vivid), var(--ai)); box-shadow: 0 0 18px rgba(0,148,255,.5); }

/* glass panel with the accent line along its top edge */
.panel {
  position: relative; border-radius: var(--r-panel); padding: clamp(20px, 2.6vw, 30px);
  background: var(--glass); border: 1px solid rgba(255,255,255,.1);
}
.panel.lit::before { content: ""; position: absolute; left: 16px; right: 16px; top: -1px; height: 2px; border-radius: 1px; background: var(--accent-line); }
.panel > :last-child { margin-bottom: 0; }

/* an app screen: glass frame, accent line, glow */
.screen {
  position: relative; margin: 0; border-radius: 14px; background: #0b0b0b;
  border: 1px solid var(--glass-border); box-shadow: var(--shadow);
}
.screen img { width: 100%; border-radius: 13px; }
.screen { width: 100%; max-width: 560px; margin-inline: auto; }
.hero-screen .screen { max-width: 920px; }
.screen figcaption { padding: 12px 16px 14px; font-size: 14.5px; color: var(--muted); border-top: 1px solid rgba(255,255,255,.08); }
.screen.glow { box-shadow: var(--shadow), 0 0 90px -20px var(--acc-glow); }

.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(28px, 5vw, 64px); max-width: 1000px; margin-inline: auto; }
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(20px, 3vw, 36px); }
.grid-4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(16px, 2vw, 24px); }
@media (max-width: 980px) { .grid-3, .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 680px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: minmax(0, 1fr); } }

/* feature row: words one side, screen the other */
.feature { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(40px, 8vw, 112px); align-items: center; }
.feature + .feature { margin-top: clamp(96px, 13vw, 184px); }
.feature.flip > .feature-text { order: 2; }
.feature-text h2 { margin-bottom: 22px; }
.feature-text .was { font: 400 clamp(20px, 2vw, 26px)/1.1 var(--font-title); color: var(--dim); text-decoration: line-through; text-decoration-color: var(--acc); text-decoration-thickness: 2px; margin-bottom: 8px; }
.feature-shots { display: grid; gap: 32px; }
@media (max-width: 900px) { .feature, .feature.flip { grid-template-columns: minmax(0, 1fr); } .feature.flip > .feature-text { order: 0; } }

.ticks { list-style: none; padding: 0; margin: 24px 0 0; display: grid; gap: 13px; }
.ticks li { position: relative; padding-left: 30px; color: var(--text-2); max-width: 62ch; }
.ticks li::before { content: ""; position: absolute; left: 2px; top: .42em; width: 14px; height: 8px; border-left: 2.5px solid var(--acc-vivid); border-bottom: 2.5px solid var(--acc-vivid); transform: rotate(-45deg); }

.chips { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; margin: 16px 0 0; }
.chip { padding: 5px 14px; border-radius: 999px; background: var(--acc); color: #fff; font-weight: 600; font-size: 14.5px; }
.chip.ghost { background: transparent; box-shadow: inset 0 0 0 1px var(--glass-border); color: var(--text-2); font-weight: 400; }
.chip.ai { background: var(--ai); }

/* ---------- hero ------------------------------------------------------------ */
.hero { position: relative; padding-top: clamp(48px, 7vw, 96px); padding-bottom: clamp(40px, 6vw, 80px); }
.hero-bg { position: absolute; top: -120px; left: 50%; width: 100vw; transform: translateX(-50%); height: 780px; z-index: -1; pointer-events: none; overflow: hidden; }
.hero-bg::before {
  content: ""; position: absolute; inset: 0;
  background: url("../assets/background.jpg") right 12% top / auto 100% no-repeat; opacity: .55;
  -webkit-mask-image: linear-gradient(90deg, transparent 45%, #000 85%), linear-gradient(180deg, #000 55%, transparent);
  -webkit-mask-composite: source-in; mask-image: linear-gradient(90deg, transparent 45%, #000 85%), linear-gradient(180deg, #000 55%, transparent); mask-composite: intersect;
}
.hero-bg::after { content: ""; position: absolute; left: -10%; top: 10%; width: 70%; height: 80%; background: radial-gradient(closest-side, var(--acc-soft), transparent); }
.hero h1 { max-width: none; min-height: 1.02em; }
@media (max-width: 900px) { .hero h1 { min-height: 2.04em; } }
.hero .lede { margin-top: 26px; }
.hero .btn-row { margin-top: 30px; }
.hero-note { margin-top: 16px; font-size: 14.5px; color: var(--muted); }
.hero-screen { margin-top: clamp(56px, 8vw, 104px); }

/* the problem → solution headline */
.swap { display: grid; }
.swap-line { display: block; }
.swap-was { color: var(--dim); position: relative; width: fit-content; font-size: .62em; margin-bottom: .12em; }
.swap-was::after { content: ""; position: absolute; left: -2%; right: -2%; top: 54%; height: .09em; background: var(--acc-vivid); transform: scaleX(0); transform-origin: left; border-radius: 2px; }
.swap-now { color: var(--acc); text-shadow: 0 0 40px var(--acc-glow); }
.swap.play .swap-was { animation: swapIn .45s ease-out both; }
.swap.play .swap-was::after { animation: strike .5s .9s ease-out forwards; }
.swap.play .swap-now { animation: swapIn .5s ease-out both; }
.swap.out .swap-line { animation: swapOut .35s ease-in both; }
.swap:not(.play):not(.out) .swap-was::after { transform: scaleX(1); }
@keyframes swapIn { from { opacity: 0; transform: translateY(.18em); } to { opacity: 1; transform: none; } }
@keyframes swapOut { to { opacity: 0; transform: translateY(-.12em); } }
@keyframes strike { to { transform: scaleX(1); } }
.swap-dots { display: flex; gap: 8px; margin-top: 26px; }
.swap-dots button { width: 26px; height: 6px; padding: 0; border: 0; border-radius: 3px; background: rgba(255,255,255,.18); cursor: pointer; }
.swap-dots button[aria-current="true"] { background: var(--acc-vivid); }
.swap-dots button:hover { background: rgba(255,255,255,.4); }

/* scan → tag → search → enjoy */
.steps { counter-reset: step; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; border-top: 1px solid rgba(255,255,255,.1); border-bottom: 1px solid rgba(255,255,255,.1); }
.step { counter-increment: step; padding: 40px 30px 40px 0; }
.step + .step { padding-left: 30px; border-left: 1px solid rgba(255,255,255,.1); }
.step h3 { font-size: clamp(26px, 2.9vw, 37px); margin-bottom: 10px; }
.step h3::before { content: counter(step); font-size: .45em; color: var(--acc); vertical-align: .9em; margin-right: 8px; }
.step p { color: var(--muted); font-size: 15.5px; margin: 0; }
@media (max-width: 900px) { .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); } .step:nth-child(3) { padding-left: 0; border-left: 0; } .step:nth-child(n+3) { border-top: 1px solid rgba(255,255,255,.1); } }
@media (max-width: 520px) { .steps { grid-template-columns: minmax(0, 1fr); } .step + .step { padding-left: 0; border-left: 0; border-top: 1px solid rgba(255,255,255,.1); } }

/* ---------- the seven problems ---------------------------------------------- */
.pairs { list-style: none; margin: 0; padding: 0; counter-reset: pair; }
.pair { counter-increment: pair; border-top: 1px solid rgba(255,255,255,.1); }
.pair:last-child { border-bottom: 1px solid rgba(255,255,255,.1); }
.pair-btn {
  position: relative; width: 100%; display: grid; grid-template-columns: 44px minmax(0, 4fr) minmax(0, 5fr) auto; gap: 8px 24px; align-items: center;
  padding: 30px 16px 30px 20px; background: none; border: 0; color: inherit; font: inherit; text-align: left; cursor: pointer;
}
.pair-btn::before { content: counter(pair); font: 400 22px/1 var(--font-title); color: var(--dim); text-align: center; transition: color .15s; }
.pair-btn:hover::before, .pair-btn:focus-visible::before { color: var(--acc-vivid); }
.pair-btn::after { content: ""; position: absolute; left: 0; right: 0; top: -1px; height: 2px; background: var(--accent-line); opacity: 0; transition: opacity .15s; }
.pair-btn:hover::after, .pair-btn:focus-visible::after { opacity: 1; }
.pair-btn:hover { background: linear-gradient(90deg, var(--acc-soft), transparent 70%); }
.pair-problem { font: 400 clamp(20px, 2.2vw, 29px)/1.05 var(--font-title); color: var(--muted); }
.pair-solution { font: 400 clamp(20px, 2.2vw, 29px)/1.05 var(--font-title); color: var(--acc); }
.pair-how { grid-column: 2 / 4; color: var(--muted); font-size: 15.5px; max-width: 86ch; }
.pair-play { grid-row: 1 / 3; grid-column: 4; display: flex; align-items: center; gap: 12px; color: var(--muted); font-size: 14px; white-space: nowrap; }
.play-dot { width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; color: #fff; background: rgba(16,16,16,.55); border: 1.5px solid rgba(255,255,255,.25); transition: background .15s, border-color .15s, box-shadow .15s; }
.play-dot svg { width: 18px; height: 18px; margin-left: 2px; }
.pair-btn:hover .play-dot, .howto:hover .play-dot { background: linear-gradient(135deg, var(--acc-vivid), var(--acc)); border-color: transparent; box-shadow: 0 0 18px var(--acc-glow); }
@media (max-width: 760px) {
  .pair-btn { grid-template-columns: 28px minmax(0, 1fr) auto; padding-left: 12px; padding-right: 12px; }
  .pair-problem { grid-column: 2; } .pair-solution { grid-column: 2; } .pair-how { grid-column: 2 / 4; }
  .pair-play { grid-column: 3; grid-row: 1 / 3; } .pair-play span.len { display: none; }
}

/* ---------- the two apps ----------------------------------------------------- */
.apps { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(28px, 4vw, 52px); }
.app { display: flex; flex-direction: column; gap: 28px; }
.app.panel { padding: clamp(26px, 3.6vw, 46px); }
.app .screen { max-width: 440px; }
.app-ai { --acc: var(--ai); --acc-vivid: var(--ai-vivid); --acc-glow: rgba(0,148,255,.5); --acc-soft: rgba(0,148,255,.14); --accent-line: linear-gradient(90deg, var(--ai) 0%, var(--ai-vivid) 34%, rgba(0,0,0,0) 92%); }
.app h3 { font-size: clamp(24px, 3vw, 38px); color: var(--acc); }
.app .tile-head > div { min-width: 0; }
.app .screen { margin-top: auto; }
@media (max-width: 860px) { .apps { grid-template-columns: minmax(0, 1fr); } }

/* ---------- quotes ------------------------------------------------------------ */
.quote { margin: 0; }
.quote blockquote { margin: 0 0 14px; font-size: 17px; color: var(--text-2); }
.quote blockquote::before { content: "“"; display: block; font: 400 64px/.7 var(--font-title); color: var(--acc); margin-bottom: 8px; }
.quote figcaption { color: var(--muted); font-size: 14.5px; }

/* ---------- call to action ----------------------------------------------------- */
.cta { position: relative; text-align: left; padding: clamp(36px, 6vw, 80px); border-radius: 24px; overflow: hidden;
  background: linear-gradient(135deg, rgba(255,128,0,.16), rgba(255,255,255,.04) 55%), #101010; border: 1px solid var(--glass-border); }
body.theme-ai .cta { background: linear-gradient(135deg, rgba(0,148,255,.18), rgba(255,255,255,.04) 55%), #101010; }
.cta::before { content: ""; position: absolute; left: 24px; right: 24px; top: -1px; height: 2px; background: var(--accent-line); }
.cta h2 { margin-bottom: 14px; }
.cta .btn-row { margin-top: 26px; }
.facts { display: flex; flex-wrap: wrap; gap: 10px 34px; list-style: none; padding: 0; margin: 26px 0 0; color: var(--muted); font-size: 15px; }
.facts b { color: var(--text); font-weight: 600; }

/* ---------- how-to cards -------------------------------------------------------- */
.howtos { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; list-style: none; padding: 0; margin: 0; }
.howto { width: 100%; height: 100%; display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 4px 16px; align-items: start; text-align: left; padding: 18px; cursor: pointer;
  color: inherit; font: inherit; background: var(--glass); border: 1px solid rgba(255,255,255,.1); border-radius: var(--r-panel); }
.howto:hover { border-color: var(--acc); background: var(--acc-soft); }
.howto .play-dot { grid-row: 1 / 3; }
.howto b { font-weight: 600; font-size: 17px; }
.howto span.d { color: var(--muted); font-size: 14.5px; }
@media (max-width: 760px) { .howtos { grid-template-columns: minmax(0, 1fr); } }

/* ---------- numbered guide steps / timeline ------------------------------------- */
.guide { list-style: none; counter-reset: g; padding: 0; margin: 0; display: grid; gap: 24px; max-width: 900px; }
.guide > li { counter-increment: g; position: relative; padding: 24px 24px 24px 84px; border-radius: var(--r-panel); background: var(--glass); border: 1px solid rgba(255,255,255,.1); }
.guide > li::before { content: counter(g); position: absolute; left: 22px; top: 22px; width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center;
  font: 400 22px/1 var(--font-title); color: #fff; background: linear-gradient(135deg, var(--acc-vivid), var(--acc)); box-shadow: 0 0 12px var(--acc-glow); }
.guide h3 { margin-bottom: 8px; }
.guide p:last-child { margin-bottom: 0; }
@media (max-width: 560px) { .guide > li { padding: 78px 20px 20px; } }

.timeline { list-style: none; margin: 0; padding: 0 0 0 30px; position: relative; display: grid; gap: clamp(36px, 5vw, 56px); max-width: 860px; }
.timeline::before { content: ""; position: absolute; left: 5px; top: 8px; bottom: 0; width: 2px; background: linear-gradient(180deg, var(--acc), var(--acc-vivid) 30%, transparent); }
.timeline > li { position: relative; }
.timeline > li::before { content: ""; position: absolute; left: -31px; top: 12px; width: 14px; height: 14px; border-radius: 50%; background: var(--acc-vivid); box-shadow: 0 0 14px var(--acc-glow); }
.timeline h2 { font-size: clamp(25px, 2.9vw, 36px); margin-bottom: 14px; }
.timeline .ai-entry h2 { color: var(--ai); }
.timeline .ai-entry::before { background: var(--ai); box-shadow: 0 0 14px rgba(0,148,255,.6); }
.timeline .screen { margin-top: 30px; margin-inline: 0; max-width: 500px; }

/* ---------- page header (inner pages) -------------------------------------------- */
.page-head { padding-top: clamp(56px, 8vw, 110px); padding-bottom: clamp(28px, 4vw, 48px); position: relative; }
.page-head h1 { max-width: 15ch; }
.page-head .lede { margin-top: 24px; }
.page-head .btn-row { margin-top: 28px; }
.app-mark { display: flex; align-items: center; gap: 12px; margin-bottom: 22px; font: 400 26px/1 var(--font-title); color: var(--acc); }
.app-mark img { width: 34px; height: 34px; }

/* ---------- footer ---------------------------------------------------------------- */
.footer { margin-top: clamp(64px, 9vw, 120px); padding: 44px 0 56px; position: relative; color: var(--muted); font-size: 15px; }
.footer::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 2px; background: var(--accent-line); }
.footer-grid { display: grid; grid-template-columns: minmax(0, 2fr) repeat(2, minmax(0, 1fr)); gap: 32px; }
.footer img { height: 34px; width: auto; margin-bottom: 14px; }
.footer h4 { color: var(--text); font-size: 15px; margin-bottom: 10px; }
.footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.footer a { color: var(--muted); text-decoration: none; }
.footer a:hover { color: #fff; text-decoration: underline; }
.footer .legal { margin-top: 32px; font-size: 13.5px; color: var(--dim); }
@media (max-width: 680px) { .footer-grid { grid-template-columns: minmax(0, 1fr); } }

/* ---------- animation player (modal) ------------------------------------------------ */
.modal { position: fixed; inset: 0; z-index: 90; display: none; place-items: center; padding: clamp(10px, 3vw, 40px); background: rgba(0,0,0,.86); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.modal.open { display: grid; }
.modal-box { position: relative; width: min(1280px, 100%, calc((100vh - 264px) * 16 / 9)); border-radius: 14px; background: #0b0b0b; border: 1px solid var(--glass-border); box-shadow: var(--shadow), 0 0 120px -30px var(--acc-glow); }
.modal-box::before { content: ""; position: absolute; left: 14px; right: 14px; top: -1px; height: 2px; background: var(--accent-line); }
.modal-bar { display: flex; align-items: center; gap: 12px; padding: 10px 10px 10px 18px; }
.modal-title { font: 400 20px/1.2 var(--font-title); margin-right: auto; }
.modal-close { width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--glass-border); background: transparent; color: #fff; cursor: pointer; display: grid; place-items: center; }
.modal-close:hover { background: var(--acc); border-color: var(--acc); }
.modal-close svg { width: 16px; height: 16px; }
.modal-frame { position: relative; box-sizing: content-box; aspect-ratio: 16 / 9; padding-bottom: 84px; background: #000; border-radius: 0 0 13px 13px; overflow: hidden; }
.modal-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; display: block; }
.modal-hint { padding: 0 18px 10px; font-size: 13.5px; color: var(--dim); }

/* ---------- 18+ notice ---------------------------------------------------------------- */
.gate { position: fixed; inset: 0; z-index: 100; display: none; place-items: center; padding: 20px; background: rgba(0,0,0,.92); -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px); }
.gate.open { display: grid; }
.gate-box { position: relative; width: min(520px, 100%); padding: 34px; border-radius: 20px; background: linear-gradient(180deg, var(--g-850), #050505); border: 1px solid var(--glass-border); box-shadow: var(--shadow); }
.gate-box::before { content: ""; position: absolute; left: 20px; right: 20px; top: -1px; height: 2px; background: var(--accent-line); }
.gate-box img { height: 40px; width: auto; margin-bottom: 22px; }
.gate-box h2 { font-size: 30px; margin-bottom: 12px; }
.gate-box .btn-row { margin-top: 22px; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .swap .swap-was::after { transform: scaleX(1); }
}

@media (max-width: 760px) { .hero-bg::before { opacity: .22; } }

/* ---- downloads page (downloads.html, js/downloads.js) ---- */
.dl-top { padding-top: 0; }
.dl-account { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px 32px; }
.dl-account-text { flex: 1 1 420px; }
.dl-account-h { font-size: clamp(22px, 2.4vw, 28px); margin: 0 0 6px; }
.dl-account-p { margin: 0; max-width: 64ch; }
.dl-notice { margin: 18px 0 0; padding: 12px 18px; border-radius: 12px; background: var(--acc-soft); border: 1px solid var(--acc); color: var(--text); }
.dl-list { margin-top: clamp(40px, 6vw, 72px); }
.dl-group + .dl-group { margin-top: clamp(48px, 7vw, 88px); }
.dl-group-head { margin-bottom: 22px; }
.dl-group-head p { margin: 10px 0 0; }
.dl-group.is-ai { --acc: var(--ai); --acc-vivid: var(--ai-vivid); --acc-glow: rgba(0,148,255,.5); --acc-soft: rgba(0,148,255,.14);
                  --accent-line: linear-gradient(90deg, var(--ai) 0%, var(--ai-vivid) 34%, rgba(0,0,0,0) 92%); }
.dl-items { list-style: none; margin: 0; padding: 0; border-radius: var(--r-panel); border: 1px solid rgba(255,255,255,.1); background: var(--glass); overflow: hidden; }
.dl-item { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 16px 28px; align-items: center; padding: 22px clamp(18px, 2.6vw, 30px); }
.dl-item + .dl-item { border-top: 1px solid rgba(255,255,255,.08); }
.dl-title { margin: 0; font-size: 19px; display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; }
.dl-ver { font-size: 14.5px; font-weight: 600; color: var(--acc-vivid); }
.dl-meta { margin: 6px 0 0; display: flex; flex-wrap: wrap; gap: 4px 18px; font-size: 14.5px; color: var(--dim); }
.dl-desc { margin: 10px 0 0; max-width: 70ch; }
.dl-req { margin: 8px 0 0; font-size: 14.5px; color: var(--text-2); }
.dl-notes { margin-top: 12px; gap: 8px; font-size: 15px; }
.dl-sum { margin-top: 12px; font-size: 13.5px; color: var(--dim); }
.dl-sum summary { cursor: pointer; width: max-content; }
.dl-sum summary:focus-visible { outline: 2px solid var(--acc-vivid); outline-offset: 3px; border-radius: 4px; }
.dl-sum code { display: block; margin-top: 6px; font-size: 12.5px; word-break: break-all; color: var(--text-2); user-select: all; }
.dl-act .btn { white-space: nowrap; }
.dl-locked { opacity: .55; cursor: not-allowed; }
.dl-locked:hover { background: transparent; border-color: var(--glass-border); }
@media (max-width: 640px) { .dl-item { grid-template-columns: minmax(0, 1fr); } }
.dl .band .panel h3 { margin: 0 0 10px; font-size: 20px; }
.dl .band .panel p { margin: 0; }

/* downloads: product titles in their theme colour, requirements tick, release notes */
.dl-group.is-ps .dl-group-head h2 { color: var(--ps); }
.dl-group.is-ai .dl-group-head h2 { color: var(--ai); }
.dl-req b { color: var(--text); font-weight: 600; }
.dl-rel { margin-top: 14px; border-radius: 12px; background: rgba(255,255,255,.035); border: 1px solid rgba(255,255,255,.09); }
.dl-rel summary { cursor: pointer; padding: 11px 16px; font-weight: 600; font-size: 15px; color: var(--text); display: flex; flex-wrap: wrap; align-items: center; gap: 4px 12px; list-style: none; }
.dl-rel summary::-webkit-details-marker { display: none; }
.dl-rel summary::before { content: ""; width: 7px; height: 7px; border-right: 2px solid var(--acc-vivid); border-bottom: 2px solid var(--acc-vivid); transform: rotate(-45deg); transition: transform .15s; margin-right: 4px; }
.dl-rel[open] summary::before { transform: rotate(45deg); }
.dl-rel summary:focus-visible { outline: 2px solid var(--acc-vivid); outline-offset: 2px; border-radius: 12px; }
.dl-rel-n { font-weight: 400; font-size: 13.5px; color: var(--dim); }
.dl-rel-group { padding: 4px 18px 6px 38px; }
.dl-rel-group:last-of-type { padding-bottom: 16px; }
.dl-rel-type { margin: 10px 0 6px; font-size: 13.5px; font-weight: 700; letter-spacing: .02em; color: var(--acc-vivid); }
.dl-rel-type.dl-rel-bug { color: var(--muted); }
.dl-rel-list { margin: 0; padding-left: 18px; display: grid; gap: 6px; font-size: 14.5px; line-height: 1.5; color: var(--text-2); max-width: 78ch; }
.dl-rel-list li::marker { color: var(--dim); }
.dl-psp { color: var(--ps-vivid); }
.dl-rel-link { display: inline-block; margin: 0 18px 16px 38px; font-size: 14px; }
.dl-rel > p { margin: 0; }
.dl-notes .dl-req { margin: 0; font-size: inherit; color: var(--text-2); }
