/* Art Frame TV — marketing site
   Palette and frame geometry mirror the app: see app/src/main/java/team/dsa/artframetv/model/. */

:root {
  /* ArtFrame TV brand pack — android_res/values/colors.xml */
  --navy:       #1c2d42;   /* artframe_navy             — primary UI / background */
  --ink:        #121820;   /* artframe_dark_background  — app surface background  */
  --gold:       #d4af37;   /* artframe_gold             — focus outlines, accents */
  --bronze:     #8c6239;   /* artframe_accent_bronze    — frame borders, secondary */
  --text:       #ffffff;   /* artframe_white            — primary text            */

  /* Tints derived from those five. Bronze at full strength sits at 3.25:1 on the
     dark background, which is fine for borders and decoration but under the 4.5:1
     body-text floor — so small secondary text uses the lighter tint instead. */
  --bronze-lt:  #c89a62;
  --wall-hi:    #26384f;
  --wall-lo:    #0e141b;
  --panel:      #192536;
  --panel-2:    #1c2d42;
  --muted:      #9fb0c4;
  --muted-dim:  #6d7f94;
  --line:       rgba(255, 255, 255, 0.10);
  --line-soft:  rgba(255, 255, 255, 0.06);

  /* Not brand chrome: real conservation mat board, as the app renders it.
     These stay put when the brand palette changes. */
  --mat-paper:  #f5f2ea;

  --sans: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --serif: "Fraunces", ui-serif, Georgia, "Times New Roman", serif;

  --gutter: clamp(20px, 5vw, 64px);
  --maxw: 1200px;
  --r-lg: 22px;
  --r-md: 14px;
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--ink);
  color: var(--text);
  font: 400 17px/1.65 var(--sans);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; }

::selection { background: rgba(212, 175, 55, 0.3); }

:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
  border-radius: 4px;
}

.hero-grid > *, .split > *, .materials > *, .craft > *, .steps > *, .doc-body > * {
  min-width: 0;
}

.wrap {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.skip {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--gold);
  color: var(--navy);
  padding: 12px 18px;
  z-index: 100;
  font-weight: 600;
  border-radius: 0 0 8px 0;
}
.skip:focus { left: 0; }

/* ---------------------------------------------------------- type scale */

h1, h2, h3 {
  font-family: var(--serif);
  font-weight: 500;
  font-variation-settings: "SOFT" 0, "WONK" 0;
  letter-spacing: -0.015em;
  line-height: 1.08;
  margin: 0;
  text-wrap: balance;
}

h1 { font-size: clamp(2.5rem, 6.2vw, 4.6rem); }
h2 { font-size: clamp(1.9rem, 3.9vw, 2.9rem); }
h3 { font-size: clamp(1.15rem, 1.7vw, 1.4rem); letter-spacing: -0.01em; }

p { margin: 0 0 1em; text-wrap: pretty; }
p:last-child { margin-bottom: 0; }

.eyebrow {
  font: 600 12px/1 var(--sans);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  margin: 0 0 20px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.eyebrow::after {
  content: "";
  flex: 0 0 48px;
  height: 1px;
  background: linear-gradient(90deg, var(--bronze-lt), transparent);
}

.lede {
  font-size: clamp(1.05rem, 1.5vw, 1.2rem);
  color: var(--muted);
  max-width: 56ch;
}

/* ---------------------------------------------------------- buttons */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font: 600 15px/1 var(--sans);
  letter-spacing: -0.005em;
  padding: 16px 26px;
  border-radius: 999px;
  border: 1px solid transparent;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.18s ease, background 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
  white-space: nowrap;
  text-align: center;
}
@media (max-width: 460px) {
  .btn { white-space: normal; width: 100%; }
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

.btn-primary {
  background: linear-gradient(170deg, #e8ca5e 0%, var(--gold) 55%, #a9872a 100%);
  color: var(--navy);
  box-shadow: 0 10px 30px -12px rgba(212, 175, 55, 0.6);
}
.btn-primary:hover { box-shadow: 0 16px 38px -12px rgba(212, 175, 55, 0.72); }

.btn-ghost {
  background: rgba(245, 242, 234, 0.045);
  border-color: var(--line);
  color: var(--text);
  backdrop-filter: blur(8px);
}
.btn-ghost:hover {
  background: rgba(245, 242, 234, 0.09);
  border-color: rgba(212, 175, 55, 0.45);
}

.btn-sm { padding: 11px 18px; font-size: 14px; }

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

.nav {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(18, 24, 32, 0.62);
  backdrop-filter: blur(18px) saturate(140%);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s ease, background 0.3s ease;
}
.nav[data-stuck="true"] {
  border-bottom-color: var(--line-soft);
  background: rgba(18, 24, 32, 0.88);
}
.nav-in {
  display: flex;
  align-items: center;
  gap: 28px;
  height: 72px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 11px;
  text-decoration: none;
  margin-right: auto;
  flex-shrink: 0;
}
.brand-name {
  font: 500 17px/1 var(--serif);
  letter-spacing: 0.005em;
}
.brand-name b { font-weight: 500; color: var(--gold); }

.nav-links {
  display: flex;
  gap: 26px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-links a {
  font-size: 14.5px;
  color: var(--muted);
  text-decoration: none;
  transition: color 0.16s ease;
}
.nav-links a:hover { color: var(--text); }

@media (max-width: 860px) { .nav-links { display: none; } }

/* ---------------------------------------------------------- hero / the room */

.hero {
  position: relative;
  padding: clamp(48px, 8vh, 96px) 0 clamp(56px, 9vh, 104px);
  isolation: isolate;
  overflow: hidden;
}

/* The wall the TV hangs on. */
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -3;
  background:
    radial-gradient(76% 58% at 72% 34%, rgba(226, 196, 128, 0.085), transparent 66%),
    radial-gradient(120% 90% at 86% -14%, rgba(212, 175, 55, 0.15), transparent 56%),
    radial-gradient(70% 60% at 6% 4%, rgba(118, 138, 170, 0.055), transparent 62%),
    linear-gradient(188deg, var(--wall-hi) 0%, var(--navy) 36%, #16202c 72%, var(--wall-lo) 100%);
}
/* Floor line + skirting, so the wall reads as a room rather than a gradient. */
.hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 30%;
  z-index: -2;
  background:
    linear-gradient(180deg, transparent 0%, rgba(5, 4, 4, 0.5) 62%, rgba(3, 3, 3, 0.86) 94%),
    linear-gradient(180deg, transparent calc(100% - 15px), rgba(245, 242, 234, 0.055) calc(100% - 14px),
                     rgba(245, 242, 234, 0.055) calc(100% - 13px), transparent calc(100% - 12px));
  pointer-events: none;
}



.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.86fr) minmax(0, 1.14fr);
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
}
@media (max-width: 1000px) {
  .hero-grid { grid-template-columns: minmax(0, 1fr); gap: 44px; }
}

.hero-copy h1 { margin-bottom: 20px; }
.hero-copy h1 em {
  font-style: normal;
  color: var(--gold);
  font-variation-settings: "SOFT" 40, "WONK" 1;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}
.hero-note {
  margin-top: 20px;
  font-size: 13.5px;
  color: var(--muted-dim);
  display: flex;
  align-items: center;
  gap: 8px;
}
.hero-note svg { flex: 0 0 auto; }

/* ---------------------------------------------------------- the television */

.tv-stage { position: relative; }

/* Warm bloom the panel throws back onto the wall. */
.tv-stage::before {
  content: "";
  position: absolute;
  inset: -14% -9% -6%;
  z-index: 0;
  background: radial-gradient(60% 50% at 50% 42%, rgba(226, 196, 128, 0.17), transparent 70%);
  filter: blur(34px);
  pointer-events: none;
}

.tv {
  position: relative;
  z-index: 1;
  padding: 9px;
  border-radius: 9px;
  background: linear-gradient(165deg, #2b3440 0%, #10151c 38%, #07090c 100%);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.07) inset,
    0 42px 80px -30px rgba(0, 0, 0, 0.9),
    0 10px 28px -12px rgba(0, 0, 0, 0.7);
}
/* Thin inner lip of the bezel. */
.tv::after {
  content: "";
  position: absolute;
  inset: 7px;
  border-radius: 4px;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.9), 0 0 0 2px rgba(255, 255, 255, 0.035);
  pointer-events: none;
}

.tv-screen {
  position: relative;
  aspect-ratio: 16 / 9;
  border-radius: 3px;
  overflow: hidden;
  background: #0a0e13;
  container-type: inline-size;
}

/* Standby LED under the bezel. */
.tv-led {
  position: absolute;
  left: 50%;
  bottom: -1px;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--gold);
  opacity: 0.55;
  transform: translateX(-50%);
  box-shadow: 0 0 7px rgba(212, 175, 55, 0.8);
}

/* Wall bracket + the shadow the set casts below itself. */
.tv-shadow {
  position: absolute;
  left: 8%;
  right: 8%;
  bottom: -26px;
  height: 46px;
  z-index: 0;
  background: radial-gradient(50% 100% at 50% 0%, rgba(0, 0, 0, 0.66), transparent 72%);
  filter: blur(9px);
  pointer-events: none;
}

/* --- the framed print inside the screen ------------------------------ */
/* Geometry is driven by custom properties set in main.js, one set per preset.
   Percentage padding resolves against the screen's width, so the mat stays
   proportional at every viewport size — the same relationship dp has to a
   960dp-wide Android TV panel. */

.frame {
  --moulding-w: 3.75%;
  --moulding-a: #14100e;
  --moulding-b: #221a16;
  --matte-c: transparent;
  --matte-m: 0%;
  --bw: 1;
  --bevel-hi: #ffffff;
  --bevel-sh: #d6d0c3;
  --bevel-on: 0;
  --depth: 0.2;

  position: absolute;
  inset: 0;
  display: grid;
  place-items: stretch;
  padding: var(--moulding-w);
  background:
    linear-gradient(142deg,
      color-mix(in srgb, var(--moulding-b) 88%, #fff 12%) 0%,
      var(--moulding-b) 22%,
      var(--moulding-a) 58%,
      color-mix(in srgb, var(--moulding-a) 86%, #000 14%) 100%);
  transition: padding 0.55s cubic-bezier(0.4, 0, 0.2, 1), background 0.55s ease;
}
/* Metallic mouldings get extra specular stops. */
.frame[data-metallic="true"] {
  background:
    linear-gradient(138deg,
      #f0dba6 0%,
      var(--moulding-b) 16%,
      #8e6f32 38%,
      var(--moulding-b) 56%,
      var(--moulding-a) 78%,
      #6f5523 100%);
}
/* Rabbet shadow where the moulding meets the mat.
   This must NOT be an absolutely positioned overlay inset by --moulding-w:
   `inset` resolves its top/bottom percentages against the element's HEIGHT
   while `padding` resolves all four against its WIDTH, so on a 16:9 frame the
   two disagree vertically and the line floats inside the moulding. Hanging the
   shadow off the mat itself keeps it exactly on the boundary at any ratio. */

.matte {
  position: relative;
  display: grid;
  place-items: center;
  background: var(--matte-c);
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.35);
  padding: var(--matte-m);
  padding-bottom: calc(var(--matte-m) * var(--bw));
  transition: padding 0.55s cubic-bezier(0.4, 0, 0.2, 1), background 0.55s ease;
}
/* Paper tooth: a faint warm grain over the mat board. */
.matte::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.5;
  background-image: radial-gradient(rgba(0, 0, 0, 0.045) 0.5px, transparent 0.5px);
  background-size: 3px 3px;
  pointer-events: none;
}

/* The 45° bevelled core cutout.
   A flat four-colour border is wrong here: it butts square at the corners and
   reads as a gap between mat and print. A conic gradient used as border-image
   mitres the corners at 45°, so the four faces meet in a chamfer the way a cut
   mat actually does, and the light model runs brightest at the top through to
   darkest at the bottom. It also has to stay THIN — on a real mat the cut edge
   is roughly 3% of the mat's width, not a visible band. */
.bevel {
  position: relative;
  width: 100%;
  height: 100%;
  border-style: solid;
  border-width: calc(var(--bevel-on) * max(1px, 0.22cqw));
  border-color: var(--bevel-hi) var(--bevel-sh) var(--bevel-sh) var(--bevel-hi);
  border-image: conic-gradient(
      from 45deg,
      color-mix(in srgb, var(--bevel-sh) 82%, var(--bevel-hi) 18%) 0deg 90deg,
      var(--bevel-sh) 90deg 180deg,
      color-mix(in srgb, var(--bevel-hi) 78%, var(--bevel-sh) 22%) 180deg 270deg,
      var(--bevel-hi) 270deg 360deg
    ) 1;
  transition: border-width 0.55s ease;
}

/* When the mat is cut to the print (fillLandscape = false), the opening takes the
   artwork's own aspect ratio rather than the panel's, exactly as a cut mat would. */
.frame[data-fit="contain"] .bevel {
  width: auto;
  height: 100%;
  aspect-ratio: var(--ar, 1.5);
  max-width: 100%;
  min-width: 0;
}

.art-well {
  position: absolute;
  inset: 0;
  overflow: hidden;
  background: #0a0e13;
}

.art {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 1.1s ease;
  will-change: opacity, transform;
}
.art.is-on { opacity: 1; }
.art[data-contain="true"] { object-fit: contain; }

/* OLED drift — the same gentle Ken Burns the app uses for burn-in protection. */
@media (prefers-reduced-motion: no-preference) {
  .art.is-on { animation: drift 46s ease-in-out infinite alternate; }
}
@keyframes drift {
  from { transform: scale(1.035) translate3d(-0.8%, -0.5%, 0); }
  to   { transform: scale(1.055) translate3d(0.8%, 0.6%, 0); }
}

/* Depth shadow cast by the thickness of the mat onto the print. */
.depth {
  position: absolute;
  inset: 0;
  pointer-events: none;
  box-shadow:
    inset 0 0.9cqw 1.8cqw calc(-0.3cqw) rgba(0, 0, 0, calc(var(--depth) * 1.5)),
    inset 0.55cqw 0 1.3cqw calc(-0.3cqw) rgba(0, 0, 0, var(--depth)),
    inset -0.2cqw -0.2cqw 0.6cqw rgba(0, 0, 0, calc(var(--depth) * 0.5));
  transition: box-shadow 0.55s ease;
}

/* 3% anti-reflective museum glaze over the whole print. */
.glaze {
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
  background: linear-gradient(118deg,
    rgba(255, 255, 255, 0.055) 0%,
    rgba(255, 255, 255, 0.015) 26%,
    transparent 44%,
    transparent 100%);
  mix-blend-mode: screen;
  opacity: var(--glaze-on, 1);
  transition: opacity 0.4s ease;
}

/* Gallery placard, bottom-right of the screen. */
.placard {
  position: absolute;
  right: 3%;
  bottom: 4.6%;
  z-index: 4;
  max-width: 46%;
  padding: 1.1% 1.6%;
  border-radius: 2px;
  background: rgba(18, 24, 32, 0.66);
  border: 1px solid rgba(212, 175, 55, 0.3);
  backdrop-filter: blur(5px);
  text-align: right;
  transition: opacity 0.5s ease;
}
.placard-title {
  font: 500 2.05cqw/1.25 var(--serif);
  color: var(--text);
  display: block;
}
.placard-meta {
  font: 400 1.45cqw/1.4 var(--sans);
  letter-spacing: 0.055em;
  text-transform: uppercase;
  color: var(--bronze-lt);
  margin-top: 0.5cqw;
  display: block;
}

/* --- the preset rail beneath the set --------------------------------- */

.rail {
  display: flex;
  gap: 10px;
  margin-top: 40px;
  padding: 4px 4px 14px;
  overflow-x: auto;
  scroll-snap-type: x proximity;
  scrollbar-width: thin;
  scrollbar-color: rgba(212, 175, 55, 0.4) transparent;
}
.rail::-webkit-scrollbar { height: 4px; }
.rail::-webkit-scrollbar-thumb { background: rgba(212, 175, 55, 0.4); border-radius: 99px; }

.chip {
  flex: 0 0 auto;
  scroll-snap-align: start;
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 9px 15px 9px 10px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(245, 242, 234, 0.035);
  color: var(--muted);
  font: 500 13.5px/1 var(--sans);
  cursor: pointer;
  transition: all 0.2s ease;
}
.chip:hover { color: var(--text); border-color: rgba(212, 175, 55, 0.35); }
.chip[aria-pressed="true"] {
  color: var(--navy);
  background: var(--gold);
  border-color: var(--gold);
  font-weight: 600;
}
.chip-swatch {
  width: 16px;
  height: 16px;
  border-radius: 3px;
  flex: 0 0 auto;
  box-shadow: inset 0 0 0 2px rgba(0, 0, 0, 0.35);
}

/* ---------------------------------------------------------- sections */

section { position: relative; }

.band {
  padding: clamp(72px, 11vh, 132px) 0;
  border-top: 1px solid var(--line-soft);
}
.band-head { max-width: 62ch; margin-bottom: clamp(40px, 6vh, 64px); }
.band-head h2 { margin-bottom: 18px; }

/* --- why it looks real ------------------------------------------------ */

.craft {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr));
  gap: 1px;
  background: var(--line-soft);
  border: 1px solid var(--line-soft);
  border-radius: var(--r-lg);
  overflow: hidden;
}
@media (min-width: 760px) { .craft { grid-template-columns: 1fr 1fr; } }

.craft-cell {
  background: linear-gradient(170deg, var(--panel) 0%, var(--ink) 100%);
  padding: clamp(28px, 3vw, 40px) clamp(26px, 3vw, 38px);
  display: flex;
  flex-direction: column;
}
.craft-cell svg { margin-bottom: 22px; }
.craft-cell h3 { margin-bottom: 10px; }
.craft-cell p { font-size: 15.5px; color: var(--muted); }

/* --- materials: mouldings and mats ------------------------------------ */

.materials {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 290px), 1fr));
  gap: clamp(28px, 4vw, 56px);
}
.mat-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.mat-list li {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 13px 16px;
  border-radius: 8px;
  background: rgba(245, 242, 234, 0.02);
  font-size: 15px;
}
.mat-list li:nth-child(odd) { background: rgba(245, 242, 234, 0.045); }
.mat-list .sw {
  width: 34px;
  height: 34px;
  border-radius: 4px;
  flex: 0 0 auto;
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.3), 0 2px 6px rgba(0, 0, 0, 0.3);
}
.mat-list .hex {
  margin-left: auto;
  font: 400 12px/1 ui-monospace, "SF Mono", Menlo, monospace;
  color: var(--muted-dim);
  letter-spacing: 0.04em;
}
.mat-list .sw[data-wood="true"] { border-radius: 3px; }

/* --- numbered steps ---------------------------------------------------- */

.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr));
  gap: clamp(24px, 3vw, 40px);
  counter-reset: step;
}
.step { counter-increment: step; position: relative; padding-top: 26px; }
.step::before {
  content: counter(step, decimal-leading-zero);
  position: absolute;
  top: 0;
  left: 0;
  font: 500 13px/1 var(--sans);
  letter-spacing: 0.18em;
  color: var(--gold);
}
.step::after {
  content: "";
  position: absolute;
  top: 6px;
  left: 34px;
  right: -20px;
  height: 1px;
  background: linear-gradient(90deg, rgba(212, 175, 55, 0.35), transparent);
}
.step:last-child::after { display: none; }
.step h3 { margin: 14px 0 9px; }
.step p { font-size: 15.5px; color: var(--muted); }

/* --- split feature ----------------------------------------------------- */

.split h2 { margin-bottom: 18px; }
.split .eyebrow + h2 { margin-top: 0; }

.split {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
}

.panel-card {
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: linear-gradient(165deg, var(--panel-2) 0%, var(--ink) 100%);
  padding: clamp(24px, 3vw, 38px);
}
.panel-card h3 { margin-bottom: 14px; }

.kv { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; }
.kv li {
  display: flex;
  gap: 18px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line-soft);
  font-size: 15px;
}
.kv li:last-child { border-bottom: 0; padding-bottom: 0; }
.kv dfn, .kv .k {
  flex: 0 0 38%;
  font-style: normal;
  color: var(--muted);
}
.kv .v { color: var(--text); }

/* --- privacy ribbon ---------------------------------------------------- */

.ribbon {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 170px), 1fr));
  gap: 1px;
  background: var(--line-soft);
  border-block: 1px solid var(--line-soft);
}
.ribbon div {
  background: var(--ink);
  padding: 30px 24px;
  text-align: center;
}
.ribbon strong {
  display: block;
  font: 500 clamp(1.5rem, 2.4vw, 2rem)/1 var(--serif);
  color: var(--gold);
  margin-bottom: 8px;
}
.ribbon span { font-size: 13.5px; color: var(--muted); letter-spacing: 0.01em; }

/* --- gallery strip ----------------------------------------------------- */

.strip {
  display: flex;
  gap: 14px;
  overflow-x: auto;
  padding-bottom: 16px;
  scroll-snap-type: x proximity;
  scrollbar-width: thin;
  scrollbar-color: rgba(212, 175, 55, 0.35) transparent;
}
.strip::-webkit-scrollbar { height: 4px; }
.strip::-webkit-scrollbar-thumb { background: rgba(212, 175, 55, 0.35); border-radius: 99px; }

.plate {
  flex: 0 0 clamp(230px, 26vw, 310px);
  scroll-snap-align: start;
}
/* Landscape only. A television is a landscape panel, so a portrait plate here
   would misrepresent how the app is actually seen. */
.plate-img {
  position: relative;
  aspect-ratio: 3 / 2;
  border-radius: 4px;
  overflow: hidden;
  background: var(--ink);
  padding: 7%;
  box-shadow: 0 18px 36px -18px rgba(0, 0, 0, 0.9);
}
.plate-img::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(145deg, var(--bronze), #4a341d 58%, #1d1409);
}
.plate-mat {
  position: relative;
  height: 100%;
  background: var(--mat-paper);
  padding: 8%;
}
.plate-mat img { width: 100%; height: 100%; object-fit: cover; }
.plate-cap {
  margin-top: 13px;
  font-size: 13.5px;
  line-height: 1.45;
}
.plate-cap b { font-weight: 500; display: block; }
.plate-cap span { color: var(--muted-dim); font-size: 12.5px; }

/* --- faq ---------------------------------------------------------------- */

.faq { border-top: 1px solid var(--line-soft); }
.faq details {
  border-bottom: 1px solid var(--line-soft);
}
.faq summary {
  cursor: pointer;
  list-style: none;
  padding: 24px 44px 24px 0;
  font: 500 clamp(1.02rem, 1.4vw, 1.14rem)/1.4 var(--serif);
  position: relative;
  transition: color 0.16s ease;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "";
  position: absolute;
  right: 8px;
  top: 50%;
  width: 11px;
  height: 11px;
  border-right: 1.5px solid var(--gold);
  border-bottom: 1.5px solid var(--gold);
  transform: translateY(-70%) rotate(45deg);
  transition: transform 0.22s ease;
}
.faq details[open] summary::after { transform: translateY(-20%) rotate(225deg); }
.faq summary:hover { color: var(--gold); }
.faq .answer { padding: 0 8% 26px 0; color: var(--muted); font-size: 15.5px; }

/* --- closing cta --------------------------------------------------------- */

.closer {
  position: relative;
  text-align: center;
  padding: clamp(84px, 13vh, 150px) 0;
  overflow: hidden;
}
.closer::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(70% 90% at 50% 0%, rgba(212, 175, 55, 0.14), transparent 62%),
    linear-gradient(180deg, var(--navy), var(--ink) 70%);
}
.closer h2 { margin-bottom: 18px; }
.closer .lede { margin-inline: auto; }
.closer .hero-actions { justify-content: center; }
.closer .hero-note { justify-content: center; }

/* ---------------------------------------------------------- footer */

.foot {
  border-top: 1px solid var(--line-soft);
  padding: 56px 0 40px;
  font-size: 14px;
  color: var(--muted-dim);
}
.foot-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 44px;
}
.foot nav ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 11px; }
.foot nav a { text-decoration: none; color: var(--muted); }
.foot nav a:hover { color: var(--gold); }
.foot h4 {
  font: 600 11.5px/1 var(--sans);
  letter-spacing: 0.17em;
  text-transform: uppercase;
  color: var(--text);
  margin: 0 0 18px;
}
.foot-legal { line-height: 1.7; max-width: 70ch; }
.foot-legal a { color: var(--muted); }

/* ---------------------------------------------------------- policy page */

.doc {
  padding: clamp(48px, 7vh, 88px) 0 clamp(72px, 10vh, 120px);
}
.doc-head { max-width: 60ch; margin-bottom: 52px; }
.doc-head h1 { font-size: clamp(2.1rem, 4.6vw, 3.1rem); margin-bottom: 18px; }
.doc-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 22px;
  font-size: 13.5px;
  color: var(--muted-dim);
  padding-top: 20px;
  border-top: 1px solid var(--line-soft);
}

.doc-body {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: clamp(32px, 5vw, 72px);
  align-items: start;
}
@media (max-width: 900px) {
  .doc-body { grid-template-columns: 1fr; }
  .toc { position: static !important; }
}

.toc {
  position: sticky;
  top: 96px;
  font-size: 14px;
}
.toc h4 {
  font: 600 11.5px/1 var(--sans);
  letter-spacing: 0.17em;
  text-transform: uppercase;
  color: var(--gold);
  margin: 0 0 16px;
}
.toc ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; counter-reset: toc; }
.toc a {
  text-decoration: none;
  color: var(--muted);
  display: block;
  transition: color 0.16s ease;
}
.toc a:hover { color: var(--text); }

.prose { max-width: 72ch; }
.prose h2 {
  font-size: clamp(1.35rem, 2.1vw, 1.65rem);
  margin: 56px 0 16px;
  scroll-margin-top: 96px;
}
.prose h2:first-child { margin-top: 0; }
.prose h3 {
  font-size: 1.08rem;
  margin: 32px 0 10px;
  color: var(--text);
}
.prose p, .prose li { color: var(--muted); font-size: 16px; }
.prose strong { color: var(--text); font-weight: 500; }
.prose a { color: var(--gold); text-decoration-color: rgba(212, 175, 55, 0.4); text-underline-offset: 3px; }
.prose ul, .prose ol { padding-left: 1.2em; margin: 0 0 1.1em; }
.prose li { margin-bottom: 0.55em; }
.prose li::marker { color: var(--bronze-lt); }

.callout {
  border-left: 2px solid var(--gold);
  background: rgba(212, 175, 55, 0.05);
  padding: 20px 24px;
  border-radius: 0 10px 10px 0;
  margin: 28px 0;
}
.callout p { color: var(--text); font-size: 15.5px; }

.table-wrap { overflow-x: auto; margin: 24px 0 32px; }
.prose table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14.5px;
  min-width: 520px;
}
.prose th, .prose td {
  text-align: left;
  padding: 13px 16px;
  border-bottom: 1px solid var(--line-soft);
  vertical-align: top;
}
.prose th {
  font: 600 11.5px/1.3 var(--sans);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
  white-space: nowrap;
}
.prose td { color: var(--muted); }
.prose tbody tr:last-child td { border-bottom: 0; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
  html { scroll-behavior: auto; }
}

/* ---------------------------------------------------------- inline code */

code {
  font: 0.88em/1.4 ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  background: rgba(245, 242, 234, 0.07);
  border: 1px solid var(--line-soft);
  border-radius: 4px;
  padding: 0.12em 0.4em;
  color: var(--bronze-lt);
  overflow-wrap: anywhere;
}
.doc-meta code { background: none; border: 0; padding: 0; }

/* Proportional bar for the mat-thickness and frame-width scales. */
.gauge {
  position: relative;
  width: 76px;
  height: 14px;
  flex: 0 0 auto;
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.07);
  overflow: hidden;
}
.gauge::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: var(--fill);
  background: var(--tone);
  border-radius: 2px;
}

/* Code blocks in the guides (ADB commands, mostly). */
.prose pre {
  margin: 20px 0 26px;
  padding: 18px 20px;
  border: 1px solid var(--line-soft);
  border-radius: 10px;
  background: rgba(0, 0, 0, 0.3);
  overflow-x: auto;
}
.prose pre code {
  background: none;
  border: 0;
  padding: 0;
  color: var(--bronze-lt);
  font-size: 13.5px;
  line-height: 1.75;
  white-space: pre;
}
.prose ol { counter-reset: none; }
.prose h3 + p { margin-top: 0; }
.doc .faq summary { padding-right: 44px; }

/* Free vs Studio Unlock, on the material lists. */
.tier {
  margin-left: auto;
  flex: 0 0 auto;
  font: 600 10.5px/1 var(--sans);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 5px 9px;
  border-radius: 999px;
  color: var(--gold);
  background: rgba(212, 175, 55, 0.12);
  border: 1px solid rgba(212, 175, 55, 0.3);
  white-space: nowrap;
}
.tier[data-free="true"] {
  color: var(--muted);
  background: rgba(255, 255, 255, 0.05);
  border-color: var(--line);
}
.mat-list .hex { margin-left: 14px; }
@media (max-width: 520px) { .tier { display: none; } }
