/* Yanco Apps — one stylesheet for the whole site.
   Tokens are YancoTV's "Frosted Glass Emerald" palette, same names as
   Palette.kt / YancoPalette.swift. Spacing uses logical properties so an
   Arabic (dir="rtl") copy mirrors without new CSS. */

:root {
  color-scheme: dark;

  /* Palette (Palette.kt, FrostedEmerald) */
  --BackgroundDeep: #050a08;
  --BackgroundRaised: #0a1410;
  --BackgroundHover: #0f1c17;
  --BackgroundElevated: #14251f;
  --TileGround: #0b3b31;
  --BorderSubtle: rgb(255 255 255 / 0.08);
  --PanelBorder: rgb(255 255 255 / 0.12);
  --TextPrimary: #f0fff6;
  --TextSecondary: #a7b8af;
  --TextMuted: #5f7068; /* 3.6:1 on Deep: decoration only, never text */
  --Accent: #00e28a;
  --AccentSoft: #66f0b5;
  --AccentDeep: #00b872;
  --AccentMuted: #1c7a55;
  --Premium: #d7b36a;
  --FocusRing: #66f0b5;

  /* Type (Typography.kt scale, stretched for the web) */
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto,
    "Helvetica Neue", Arial, "Noto Sans", "Noto Sans Arabic", sans-serif;
  --t-overline: 0.78rem;
  --t-body: 1.0625rem;
  --t-lead: clamp(1.125rem, 1rem + 0.6vw, 1.3rem);
  --t-title: clamp(1.25rem, 1.1rem + 0.6vw, 1.5rem);
  --t-display: clamp(2.25rem, 1.4rem + 4vw, 4.25rem);
  --t-display-s: clamp(1.75rem, 1.3rem + 2vw, 2.6rem);

  /* Shape (Shapes.kt) */
  --cut: 22px; /* CutCornerCard */
  --cut-l: 32px; /* CutCornerCardLarge */

  /* Motion (HexSurface: lift on focus, spring 0.75 / 420 approximated) */
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --dur: 260ms;

  --page: 72rem;
  --gutter: clamp(1rem, 0.5rem + 3vw, 2.5rem);
}

/* CutCornerCard: top-right and bottom-left bevelled, size --c. Defined per
   element (not on :root) so each one resolves its own --c. */
*,
*::before,
*::after {
  --card-shape: polygon(0 0, calc(100% - var(--c, 0px)) 0, 100% var(--c, 0px), 100% 100%, var(--c, 0px) 100%, 0 calc(100% - var(--c, 0px)));
}

[dir="rtl"] *,
[dir="rtl"] *::before,
[dir="rtl"] *::after {
  --card-shape: polygon(var(--c, 0px) 0, 100% 0, 100% calc(100% - var(--c, 0px)), calc(100% - var(--c, 0px)) 100%, 0 100%, 0 var(--c, 0px));
}

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--BackgroundDeep);
  color: var(--TextPrimary);
  font-family: var(--font);
  font-size: var(--t-body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* The cinematic floor: an emerald glow from above and a faint hex lattice. */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(60rem 36rem at 50% -12rem, rgb(0 226 138 / 0.16), transparent 70%),
    radial-gradient(40rem 30rem at 100% 30%, rgb(28 122 85 / 0.12), transparent 70%),
    var(--BackgroundDeep);
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: 0.5;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='56' height='97' viewBox='0 0 56 97'%3E%3Cpath d='M28 0l28 16v32L28 64 0 48V16zM28 64v33M0 16L-28 0M56 16l28-16' fill='none' stroke='%23ffffff' stroke-opacity='0.035'/%3E%3C/svg%3E");
  -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, #000 0%, transparent 75%);
  mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, #000 0%, transparent 75%);
}

main {
  flex: 1;
}

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

a {
  color: var(--AccentSoft);
  text-underline-offset: 0.2em;
  text-decoration-thickness: 1px;
}

a:hover {
  color: var(--TextPrimary);
}

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

::selection {
  background: var(--AccentMuted);
  color: var(--TextPrimary);
}

.skip {
  position: absolute;
  inset-inline-start: 1rem;
  inset-block-start: -4rem;
  padding: 0.6rem 1rem;
  background: var(--Accent);
  color: var(--BackgroundDeep);
  font-weight: 700;
  z-index: 10;
  text-decoration: none;
}

.skip:focus {
  inset-block-start: 1rem;
}

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

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 5;
  background: rgb(5 10 8 / 0.72);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  backdrop-filter: blur(14px) saturate(140%);
  border-block-end: 1px solid var(--BorderSubtle);
}

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 4rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--TextPrimary);
  text-decoration: none;
  font-weight: 650;
  letter-spacing: 0.01em;
  font-size: 1.05rem;
  white-space: nowrap;
}

.brand svg {
  width: 26px;
  height: 30px;
  flex: none;
}

.brand span b {
  color: var(--AccentSoft);
  font-weight: 650;
}

.nav {
  display: flex;
  gap: clamp(0.75rem, 2vw, 1.75rem);
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 0.95rem;
}

.nav a {
  color: var(--TextSecondary);
  text-decoration: none;
  padding-block: 0.4rem;
}

.nav a:hover,
.nav a[aria-current="page"] {
  color: var(--TextPrimary);
}

.nav a[aria-current="page"] {
  box-shadow: inset 0 -2px 0 var(--Accent);
}

/* ---------- Type ---------- */

.overline {
  margin: 0 0 1rem;
  font-size: var(--t-overline);
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--Accent);
}

h1,
h2,
h3 {
  margin: 0;
  line-height: 1.12;
  font-weight: 700;
  text-wrap: balance;
}

h1 {
  font-size: var(--t-display);
  letter-spacing: -0.025em;
}

h2 {
  font-size: var(--t-display-s);
  letter-spacing: -0.02em;
}

h3 {
  font-size: var(--t-title);
  letter-spacing: -0.01em;
}

.lead {
  font-size: var(--t-lead);
  color: var(--TextSecondary);
  max-width: 38rem;
  margin: 1.25rem 0 0;
  text-wrap: pretty;
}

.muted {
  color: var(--TextSecondary);
}

.gradient-text {
  background: linear-gradient(100deg, var(--TextPrimary) 20%, var(--AccentSoft) 60%, var(--Accent));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ---------- Sections ---------- */

.hero {
  padding-block: clamp(3rem, 2rem + 5vw, 6.5rem) clamp(1.5rem, 1rem + 2vw, 3rem);
}

.section {
  padding-block: clamp(2rem, 1.5rem + 2.5vw, 3.5rem);
}

.section + .section {
  padding-block-start: 0.5rem;
}

.section-head {
  max-width: 44rem;
  margin-block-end: 1.75rem;
}

.section-head p {
  margin: 0.9rem 0 0;
  color: var(--TextSecondary);
}

.rule {
  height: 1px;
  border: 0;
  margin: 0;
  background: linear-gradient(90deg, transparent, var(--PanelBorder), transparent);
}

/* ---------- Buttons: HexCapsule ---------- */

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem 1.1rem;
  margin-block-start: 2.25rem;
}

.btn {
  --h: 3rem;
  position: relative;
  isolation: isolate;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: var(--h);
  padding-inline: 1.9rem;
  font: inherit;
  font-size: 0.98rem;
  font-weight: 650;
  letter-spacing: 0.01em;
  color: var(--BackgroundDeep);
  text-decoration: none;
  border: 0;
  background: none;
  cursor: pointer;
  transition: transform var(--dur) var(--ease);
}

/* The face and the ring both take the hex cut, so focus follows the shape
   instead of being clipped away. */
.btn::before,
.btn::after {
  content: "";
  position: absolute;
  z-index: -1;
  --k: calc(var(--h) * 0.28);
  clip-path: polygon(var(--k) 0, calc(100% - var(--k)) 0, 100% 50%, calc(100% - var(--k)) 100%, var(--k) 100%, 0 50%);
}

.btn::before {
  inset: 0;
  background: linear-gradient(180deg, var(--AccentSoft), var(--Accent) 55%, var(--AccentDeep));
}

.btn::after {
  inset: -4px -6px;
  z-index: -2;
  background: transparent;
}

.btn:hover {
  transform: translateY(-2px);
  color: var(--BackgroundDeep);
}

.btn:focus-visible {
  outline: none;
}

.btn:focus-visible::after {
  background: var(--FocusRing);
}

.btn-ghost {
  color: var(--TextPrimary);
}

.btn-ghost::before {
  background:
    linear-gradient(var(--BackgroundRaised), var(--BackgroundRaised)) padding-box;
  inset: 1px;
}

.btn-ghost::after {
  inset: 0;
  background: var(--PanelBorder);
}

.btn-ghost:hover {
  color: var(--TextPrimary);
}

.btn-ghost:hover::after {
  background: var(--AccentMuted);
}

.btn-ghost:focus-visible::after {
  inset: -3px -5px;
  background: var(--FocusRing);
}

/* A status, not a link: the shape of a button, none of the promise. */
.status {
  --h: 3rem;
  position: relative;
  isolation: isolate;
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  min-height: var(--h);
  padding-inline: 1.7rem;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--AccentSoft);
}

.status::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  --k: calc(var(--h) * 0.28);
  clip-path: polygon(var(--k) 0, calc(100% - var(--k)) 0, 100% 50%, calc(100% - var(--k)) 100%, var(--k) 100%, 0 50%);
  background: rgb(0 226 138 / 0.1);
}

.status .dot {
  width: 0.5rem;
  height: 0.5rem;
  transform: rotate(45deg);
  background: var(--Accent);
  box-shadow: 0 0 12px var(--Accent);
}

/* ---------- Cards: CutCornerCard ---------- */

.card {
  --c: var(--cut);
  position: relative;
  isolation: isolate;
  display: block;
  padding: clamp(1.4rem, 1rem + 1.5vw, 2rem);
  color: var(--TextPrimary);
  text-decoration: none;
  transition: transform var(--dur) var(--ease);
}

/* Border layer, then face layer, both cut the same way, so the bevel keeps
   its hairline (a CSS border would vanish on the diagonal). */
.card::before,
.card::after {
  content: "";
  position: absolute;
  clip-path: var(--card-shape);
}

.card::before {
  inset: 0;
  z-index: -2;
  background: linear-gradient(160deg, var(--PanelBorder), var(--BorderSubtle) 40%, rgb(0 226 138 / 0.18));
}

.card::after {
  inset: 1px;
  z-index: -1;
  background:
    radial-gradient(120% 80% at 100% 0%, rgb(0 226 138 / 0.08), transparent 60%),
    linear-gradient(180deg, var(--BackgroundElevated), var(--BackgroundRaised));
}

a.card:hover {
  transform: translateY(-4px);
  color: var(--TextPrimary);
}

a.card:hover::before {
  background: linear-gradient(160deg, var(--AccentMuted), var(--BorderSubtle) 45%, var(--Accent));
}

a.card:focus-visible {
  outline: none;
}

a.card:focus-visible::before {
  inset: -3px;
  background: var(--FocusRing);
}

.card-large {
  --c: var(--cut-l);
}

/* ---------- Home: product grid ---------- */

.products {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 21rem), 1fr));
  gap: 1.5rem;
}

.product {
  display: grid;
  gap: 1.1rem;
  align-content: start;
  min-height: 100%;
}

.product-top {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.product-top img {
  width: 60px;
  height: 72px;
  filter: drop-shadow(0 6px 18px rgb(0 226 138 / 0.25));
}

.product p {
  margin: 0;
  color: var(--TextSecondary);
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.chips li {
  --c: 6px;
  padding: 0.22rem 0.7rem;
  font-size: 0.82rem;
  color: var(--TextSecondary);
  background: var(--BackgroundHover);
  clip-path: var(--card-shape);
}

.more {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-weight: 650;
  color: var(--AccentSoft);
}

.more::after {
  content: "";
  width: 0.45rem;
  height: 0.45rem;
  border-block-start: 2px solid currentColor;
  border-inline-end: 2px solid currentColor;
  transform: rotate(45deg);
  transition: transform var(--dur) var(--ease);
}

[dir="rtl"] .more::after {
  transform: rotate(-45deg);
}

a.card:hover .more::after {
  transform: translateX(3px) rotate(45deg);
}

.placeholder-card {
  display: grid;
  place-content: center;
  text-align: center;
  min-height: 14rem;
  color: var(--TextSecondary);
  font-size: 0.95rem;
}

.placeholder-card::after {
  background: var(--BackgroundDeep);
}

.placeholder-card::before {
  background: repeating-linear-gradient(135deg, var(--PanelBorder) 0 6px, transparent 6px 12px);
}

/* ---------- YancoTV ---------- */

.tv-hero {
  display: grid;
  gap: clamp(2rem, 4vw, 4rem);
  align-items: center;
}

@media (min-width: 60rem) {
  .tv-hero {
    grid-template-columns: 1.15fr 0.85fr;
  }
}

.wordmark {
  display: block;
  width: min(300px, 70vw);
  height: auto;
  margin-block-end: 1.75rem;
}

.gem-stage {
  position: relative;
  display: grid;
  place-items: center;
  aspect-ratio: 1;
  max-width: 26rem;
  margin-inline: auto;
  width: 100%;
}

.gem-stage::before {
  content: "";
  position: absolute;
  inset: 8%;
  background: radial-gradient(circle, rgb(0 226 138 / 0.28), transparent 65%);
  filter: blur(10px);
  animation: breathe 9s ease-in-out infinite;
}

.gem-stage .ring {
  position: absolute;
  inset: 0;
  clip-path: polygon(50% 0, 93.3% 25%, 93.3% 75%, 50% 100%, 6.7% 75%, 6.7% 25%);
  background: linear-gradient(160deg, rgb(102 240 181 / 0.35), rgb(255 255 255 / 0.03) 40%, rgb(0 226 138 / 0.25));
}

.gem-stage .ring::after {
  content: "";
  position: absolute;
  inset: 1px;
  clip-path: inherit;
  background: radial-gradient(circle at 50% 30%, var(--TileGround), var(--BackgroundDeep) 75%);
}

.gem-stage .ring.inner {
  inset: 16%;
  opacity: 0.7;
}

.gem-stage img {
  position: relative;
  width: 46%;
  height: auto;
  filter: drop-shadow(0 20px 50px rgb(0 226 138 / 0.35));
}

@media (max-width: 40rem) {
  .gem-stage {
    display: none; /* the wordmark already carries the brand on a phone */
  }
}

@keyframes breathe {
  0%,
  100% {
    opacity: 0.75;
    transform: scale(0.97);
  }
  50% {
    opacity: 1;
    transform: scale(1.03);
  }
}

.honest {
  --c: 14px;
  display: flex;
  gap: 0.9rem;
  align-items: flex-start;
  margin-block-start: 2rem;
  padding: 1rem 1.2rem;
  max-width: 38rem;
  background: rgb(215 179 106 / 0.07);
  clip-path: var(--card-shape);
  color: var(--TextSecondary);
  font-size: 0.95rem;
}

.honest strong {
  color: var(--TextPrimary);
}

.honest::before {
  content: "";
  flex: none;
  width: 0.55rem;
  height: 0.55rem;
  margin-block-start: 0.5rem;
  transform: rotate(45deg);
  background: var(--Premium);
}

.platforms {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 19rem), 1fr));
  gap: 1.5rem;
}

.platforms h3 {
  margin-block-end: 1rem;
}

.platform-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.platform-list li {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding-block: 0.75rem;
  border-block-end: 1px solid var(--BorderSubtle);
}

.platform-list li:last-child {
  border-block-end: 0;
}

.platform-list .when {
  color: var(--AccentSoft);
  font-size: 0.9rem;
  white-space: nowrap;
}

.features {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 14.5rem), 1fr));
  gap: 1.25rem;
}

.feature {
  --c: 16px;
}

.feature img {
  width: 52px;
  height: 52px;
  margin-block-end: 0.9rem;
}

.feature h3 {
  font-size: 1.1rem;
  margin-block-end: 0.4rem;
}

.feature p {
  margin: 0;
  color: var(--TextSecondary);
  font-size: 0.97rem;
}

.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 15rem), 1fr));
  gap: 1.5rem;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: step;
}

.steps li {
  counter-increment: step;
  position: relative;
  padding-block-start: 3.4rem;
}

.steps li::before {
  content: counter(step);
  position: absolute;
  inset-block-start: 0;
  inset-inline-start: 0;
  display: grid;
  place-items: center;
  width: 2.4rem;
  height: 2.75rem;
  font-weight: 700;
  color: var(--BackgroundDeep);
  background: linear-gradient(180deg, var(--AccentSoft), var(--Accent));
  clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%);
}

.steps h3 {
  font-size: 1.1rem;
  margin-block-end: 0.4rem;
}

.steps p {
  margin: 0;
  color: var(--TextSecondary);
}

.pricing {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 18rem), 1fr));
  align-items: stretch;
}

.price-card h3 {
  font-size: 1rem;
  font-weight: 600;
  color: var(--TextSecondary);
}

.price {
  margin: 0.5rem 0 0.25rem;
  font-size: clamp(2.2rem, 1.8rem + 1.5vw, 2.8rem);
  font-weight: 700;
  letter-spacing: -0.02em;
}

.price-card .price {
  color: var(--TextPrimary);
}

.price small {
  font-size: 1rem;
  font-weight: 500;
  color: var(--TextSecondary);
  letter-spacing: 0;
}

.price-card p {
  margin: 0;
  color: var(--TextSecondary);
}

.price-card.featured::before {
  background: linear-gradient(160deg, var(--Premium), var(--BorderSubtle) 45%, var(--AccentMuted));
}

.tag {
  display: inline-block;
  margin-block-end: 0.75rem;
  font-size: var(--t-overline);
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--Premium);
}

.ticks {
  margin: 1.25rem 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.55rem;
}

.ticks li {
  position: relative;
  padding-inline-start: 1.5rem;
  color: var(--TextSecondary);
}

.ticks li::before {
  content: "";
  position: absolute;
  inset-inline-start: 0.2rem;
  inset-block-start: 0.62em;
  width: 0.45rem;
  height: 0.45rem;
  transform: rotate(45deg);
  background: var(--Accent);
}

.fine {
  margin-block-start: 1.5rem;
  font-size: 0.9rem;
  color: var(--TextSecondary);
  max-width: 44rem;
}

.pillars {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 14rem), 1fr));
  gap: 1.5rem 2rem;
}

.pillars h3 {
  font-size: 1.15rem;
  margin-block-end: 0.4rem;
}

.pillars p {
  margin: 0;
  color: var(--TextSecondary);
}

.cta-band {
  --c: var(--cut-l);
  text-align: center;
  padding-block: clamp(2.5rem, 2rem + 3vw, 4rem);
}

.cta-band .lead {
  margin-inline: auto;
}

.cta-band .btn-row {
  justify-content: center;
}

/* ---------- Section tabs (one bar per platform) ---------- */

.subnav {
  position: sticky;
  top: 4rem;
  z-index: 4;
  background: rgb(10 20 16 / 0.82);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border-block-end: 1px solid var(--BorderSubtle);
}

.subnav .wrap {
  display: flex;
  align-items: center;
  gap: 0.5rem 1.5rem;
  min-height: 3.25rem;
  flex-wrap: wrap;
}

.subnav-title {
  font-weight: 650;
  color: var(--TextPrimary);
  text-decoration: none;
  white-space: nowrap;
}

.subnav-title span {
  color: var(--TextSecondary);
  font-weight: 500;
}

.subnav nav {
  margin-inline-start: auto;
  max-width: 100%;
  overflow-x: auto;
  scrollbar-width: none;
}

.subnav ul {
  display: flex;
  gap: 0.25rem;
  margin: 0;
  padding: 0.35rem 0;
  list-style: none;
}

.subnav ul a {
  --c: 7px;
  display: block;
  padding: 0.35rem 0.85rem;
  font-size: 0.92rem;
  color: var(--TextSecondary);
  text-decoration: none;
  white-space: nowrap;
  clip-path: var(--card-shape);
}

.subnav ul a:hover {
  color: var(--TextPrimary);
  background: var(--BackgroundHover);
}

.subnav ul a[aria-current="page"] {
  color: var(--BackgroundDeep);
  background: var(--Accent);
  font-weight: 650;
}

.subnav ul a:focus-visible {
  clip-path: none;
  outline-offset: -2px;
}

@media (max-width: 40rem) {
  .subnav {
    position: static; /* two sticky bars would eat a phone screen */
  }

  .subnav .wrap {
    padding-block-start: 0.5rem;
  }

  .subnav nav {
    margin-inline-start: 0;
    width: 100%;
  }
}

/* ---------- Chooser: one door per platform ---------- */

.doors {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 22rem), 1fr));
  gap: 1.5rem;
}

.door {
  display: grid;
  gap: 1rem;
  align-content: start;
  min-height: 0;
}

.door .devices {
  margin: 0;
  color: var(--TextSecondary);
}

.door .note {
  margin: 0;
  font-size: 0.93rem;
  color: var(--TextSecondary);
}

/* A single product shows as one wide card. */
.products:has(> .solo:only-child) {
  grid-template-columns: minmax(0, 44rem);
}

/* ---------- Plain feature list ---------- */

.facts {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 17rem), 1fr));
  gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
  border-block-start: 1px solid var(--BorderSubtle);
}

.facts li {
  display: flex;
  gap: 0.9rem;
  align-items: flex-start;
  padding: 1.1rem 1rem 1.1rem 0;
  border-block-end: 1px solid var(--BorderSubtle);
}

.facts img {
  flex: none;
  width: 40px;
  height: 40px;
}

.facts b {
  display: block;
  color: var(--TextPrimary);
  font-weight: 650;
}

.facts span {
  display: block;
  color: var(--TextSecondary);
  font-size: 0.95rem;
}

.pending {
  --c: 14px;
  padding: 1rem 1.25rem;
  background: rgb(215 179 106 / 0.08);
  clip-path: var(--card-shape);
  color: var(--TextSecondary);
  max-width: 44rem;
}

.pending strong {
  color: var(--Premium);
}

/* ---------- Comparison table ---------- */

.table-scroll {
  overflow-x: auto;
}

.compare {
  width: 100%;
  min-width: 40rem;
  border-collapse: collapse;
  font-size: 0.95rem;
}

.compare th,
.compare td {
  padding: 0.85rem 1rem;
  text-align: start;
  vertical-align: top;
  border-block-end: 1px solid var(--BorderSubtle);
}

.compare thead th {
  font-size: var(--t-overline);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--AccentSoft);
}

.compare tbody th {
  font-weight: 600;
  color: var(--TextPrimary);
}

.compare td {
  color: var(--TextSecondary);
}

.price-card .price-name {
  font-size: 1rem;
  font-weight: 600;
  color: var(--TextSecondary);
}

.pending + .lead {
  margin-block-start: 1.25rem;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

/* ---------- Legal / long text ---------- */

.doc-hero {
  padding-block: clamp(3rem, 2rem + 4vw, 5rem) 1rem;
}

.doc-hero .lead {
  margin-block-start: 0.75rem;
}

.doc-switch {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 1.75rem 0 0;
  padding: 0;
  list-style: none;
}

.doc-switch a {
  --c: 8px;
  display: inline-block;
  padding: 0.45rem 1rem;
  font-size: 0.92rem;
  color: var(--TextSecondary);
  text-decoration: none;
  background: var(--BackgroundRaised);
  clip-path: var(--card-shape);
}

.doc-switch a:hover {
  color: var(--TextPrimary);
  background: var(--BackgroundHover);
}

.doc-switch a[aria-current="page"] {
  color: var(--BackgroundDeep);
  background: var(--Accent);
  font-weight: 650;
}

.doc-switch a:focus-visible {
  outline-offset: 2px;
  clip-path: none;
}

.doc {
  max-width: 44rem;
  padding-block: 1.5rem clamp(3rem, 2rem + 4vw, 5rem);
}

.doc h2 {
  font-size: 1.35rem;
  letter-spacing: -0.01em;
  margin: 2.75rem 0 0.9rem;
  padding-block-start: 1.25rem;
  border-block-start: 1px solid var(--BorderSubtle);
}

.doc h2:first-child {
  margin-block-start: 1rem;
}

.doc h3 {
  font-size: 1.08rem;
  margin: 1.75rem 0 0.4rem;
}

.doc p,
.doc li {
  color: var(--TextSecondary);
  text-wrap: pretty;
}

.doc p {
  margin: 0 0 1rem;
}

.doc strong,
.doc b {
  color: var(--TextPrimary);
  font-weight: 650;
}

.doc ul,
.doc ol {
  padding-inline-start: 1.3rem;
  margin: 0 0 1rem;
}

.doc li {
  margin-block-end: 0.5rem;
}

.doc .label {
  color: var(--TextPrimary);
  font-weight: 650;
}

.doc .updated {
  color: var(--TextSecondary);
  font-size: 0.92rem;
  margin: 0;
}

.doc .short {
  --c: 14px;
  padding: 1.1rem 1.3rem;
  margin-block: 0.5rem 1.5rem;
  background: var(--BackgroundRaised);
  clip-path: var(--card-shape);
  color: var(--TextPrimary);
}

.qa {
  margin-block-end: 0.75rem;
}

.qa summary {
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 0;
  font-weight: 650;
  color: var(--TextPrimary);
  border-block-end: 1px solid var(--BorderSubtle);
}

.qa summary::-webkit-details-marker {
  display: none;
}

.qa summary::after {
  content: "";
  flex: none;
  width: 0.5rem;
  height: 0.5rem;
  margin-block-start: 0.45rem;
  border-block-end: 2px solid var(--AccentSoft);
  border-inline-end: 2px solid var(--AccentSoft);
  transform: rotate(45deg);
  transition: transform var(--dur) var(--ease);
}

.qa[open] summary::after {
  transform: rotate(225deg);
}

.qa p {
  margin: 0.9rem 0 0.5rem;
}

.mail {
  font-size: 1.15rem;
  font-weight: 650;
}

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

.site-footer {
  margin-block-start: 2rem;
  border-block-start: 1px solid var(--BorderSubtle);
  background: rgb(10 20 16 / 0.6);
  font-size: 0.92rem;
  color: var(--TextSecondary);
}

.site-footer .wrap {
  display: grid;
  gap: 2rem;
  padding-block: 3rem 2.5rem;
}

.foot-cols {
  display: grid;
  gap: 2rem;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 11rem), 1fr));
}

.foot-cols h2 {
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--TextPrimary);
  margin-block-end: 0.9rem;
}

.foot-cols ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.5rem;
}

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

.site-footer a:hover {
  color: var(--TextPrimary);
  text-decoration: underline;
}

.disclaimer {
  margin: 0;
  max-width: 48rem;
  font-size: 0.86rem;
}

.copyright {
  margin: 0;
  font-size: 0.86rem;
}

/* ---------- Arrival motion ---------- */

.rise {
  animation: rise 700ms var(--ease) both;
}

.rise-2 {
  animation-delay: 90ms;
}

.rise-3 {
  animation-delay: 180ms;
}

@keyframes rise {
  from {
    opacity: 0.4; /* never fully hidden: a slow renderer still shows the words */
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }

  a.card:hover,
  .btn:hover {
    transform: none;
  }
}

@media (max-width: 30rem) {
  .brand span {
    font-size: 1rem;
  }

  .nav {
    font-size: 0.9rem;
  }
}

@media (forced-colors: active) {
  .btn,
  .status,
  .card {
    border: 1px solid CanvasText;
  }
}

@media print {
  body::before,
  body::after,
  .site-header,
  .site-footer {
    display: none;
  }

  body {
    background: #fff;
    color: #000;
  }

  .doc p,
  .doc li {
    color: #000;
  }
}
