/* ==========================================================================
   GlowKit marketing site
   App-aligned clinical journal direction: white surfaces, black type,
   8px cards, mono labels, and controlled electric status colors.
   ========================================================================== */

:root {
  --paper: #FFFFFF;
  --paper-deep: #F7F7F7;
  --paper-soft: #FBFBFB;
  --ink: #000000;
  --ink-soft: #1D1D1D;
  --grey: #6D6D6D;
  --grey-light: #C9C9C9;

  --accent: #6E2BE8;
  --accent-ink: #FFFFFF;
  --accent-soft: rgba(110, 43, 232, 0.10);
  --signal-blue: #008FA3;
  --signal-rose: #B00092;
  --signal-gold: #A67400;
  --score-low: #D60035;
  --score-mid: #D95C00;
  --score-good: #2BB800;
  --score-high: #00A874;

  --line: rgba(0, 0, 0, 0.12);
  --line-soft: rgba(0, 0, 0, 0.08);
  --shadow-sm: 0 10px 24px rgba(0, 0, 0, 0.04);
  --shadow-md: 0 18px 42px rgba(0, 0, 0, 0.08);

  --radius: 8px;
  --radius-sm: 6px;
  --radius-pill: 999px;
  --maxw: 1240px;
  --gutter: 24px;
  --section-y: 88px;

  --font-ui: "Manrope", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
}

@media (max-width: 760px) {
  :root {
    --gutter: 20px;
    --section-y: 64px;
  }
}

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

html {
  -webkit-text-size-adjust: 100%;
  overflow-x: hidden;
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

body {
  margin: 0;
  overflow-x: hidden;
  font-family: var(--font-ui);
  font-size: 17px;
  line-height: 1.58;
  color: var(--ink);
  background:
    linear-gradient(90deg, rgba(0, 0, 0, 0.025) 1px, transparent 1px),
    var(--paper);
  background-size: 80px 80px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

@media (max-width: 760px) {
  body { font-size: 16px; }
}

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

a {
  color: inherit;
  text-decoration: none;
}

a:hover { text-decoration: underline; }

h1, h2, h3, h4, p { margin-top: 0; }

h1, h2, h3, h4 {
  color: var(--ink);
  font-family: var(--font-ui);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: 0;
}

h1 { font-size: 4.35rem; margin-bottom: 24px; }
h2 { font-size: 2.55rem; margin-bottom: 18px; }
h3 { font-size: 1.16rem; margin-bottom: 8px; }
p { color: var(--grey); margin-bottom: 1em; }
p:last-child { margin-bottom: 0; }
ul, ol { margin: 0; padding: 0; }

@media (max-width: 1020px) {
  h1 { font-size: 3.35rem; }
  h2 { font-size: 2.2rem; }
}

@media (min-width: 981px) and (max-width: 1180px) {
  .studio-hero h1 {
    font-size: 3rem;
  }
}

@media (max-width: 560px) {
  h1 { font-size: 2.65rem; }
  h2 { font-size: 1.9rem; }
}

.material-symbols-rounded {
  font-size: 1.35em;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1em;
  overflow: hidden;
  opacity: 0;
}

.material-icons-ready .material-symbols-rounded {
  opacity: 1;
}

.material-symbols-rounded svg {
  width: 1em;
  height: 1em;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

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

.skip-link {
  position: absolute;
  top: -72px;
  left: 16px;
  z-index: 200;
  padding: 12px 16px;
  color: var(--paper);
  background: var(--ink);
  border-radius: var(--radius-sm);
  font-weight: 800;
  transition: top 0.18s ease;
}

.skip-link:focus {
  top: 16px;
  text-decoration: none;
}

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

.section-rule {
  padding-block: var(--section-y);
  border-top: 1px solid var(--line-soft);
}

.section-head {
  max-width: 680px;
  margin-bottom: 38px;
}

.section-head.center {
  margin-inline: auto;
  text-align: center;
}

.split-heading {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(280px, 0.85fr);
  gap: 40px;
  align-items: end;
  margin-bottom: 42px;
}

.split-heading p,
.section-head p {
  font-size: 1.04rem;
}

.kicker,
.micro-label,
.step-index {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0;
  line-height: 1.25;
  text-transform: uppercase;
  color: var(--ink);
}

.micro-label b {
  color: var(--grey);
  font-weight: 600;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 44px;
  padding: 12px 18px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  font-family: var(--font-ui);
  font-size: 0.95rem;
  font-weight: 800;
  line-height: 1;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.16s ease, box-shadow 0.16s ease, background-color 0.16s ease;
}

.btn:hover {
  text-decoration: none;
  transform: translateY(-1px);
}

.btn-primary {
  color: var(--accent-ink);
  background: var(--accent);
  box-shadow: 0 12px 24px rgba(110, 43, 232, 0.18);
}

.btn-primary:hover {
  background: #5B20CC;
  box-shadow: 0 18px 34px rgba(110, 43, 232, 0.24);
}

.btn-quiet {
  color: var(--ink);
  background: var(--paper);
  border-color: var(--line);
}

.btn-quiet:hover {
  background: var(--paper-deep);
  box-shadow: var(--shadow-sm);
}

.btn-large {
  min-height: 54px;
  padding-inline: 22px;
  font-size: 1rem;
}

.btn-block { width: 100%; }

@media (prefers-reduced-motion: reduce) {
  .btn, .btn:hover { transform: none; transition: none; }
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.92);
  border-bottom: 1px solid var(--line-soft);
  backdrop-filter: saturate(140%) blur(14px);
  -webkit-backdrop-filter: saturate(140%) blur(14px);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  min-height: 68px;
}

.site-header .container {
  max-width: 100%;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--ink);
  font-weight: 800;
  text-decoration: none;
}

.brand:hover { text-decoration: none; }

.brand-icon {
  width: 36px;
  height: 36px;
  border-radius: 9px;
  border: 1px solid rgba(0, 0, 0, 0.10);
  object-fit: cover;
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.10);
  flex: none;
}

.wordmark {
  font-size: 1.2rem;
  letter-spacing: 0;
}

.nav {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  overflow-x: auto;
  scrollbar-width: none;
}

.nav::-webkit-scrollbar {
  display: none;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 12px;
  list-style: none;
}

.nav-links a {
  color: var(--ink);
  font-family: var(--font-mono);
  font-size: 0.64rem;
  font-weight: 600;
  letter-spacing: 0;
  text-transform: uppercase;
  white-space: nowrap;
  opacity: 0.86;
}

.nav .btn {
  flex: none;
  min-height: 42px;
  padding-inline: 16px;
  white-space: nowrap;
}

.nav-links a:hover,
.nav-links a[aria-current="page"] {
  opacity: 1;
  text-decoration: none;
}

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  color: var(--ink);
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  cursor: pointer;
}

@media (max-width: 920px) {
  .nav-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .nav {
    position: absolute;
    top: 68px;
    left: 0;
    right: 0;
    align-items: stretch;
    flex-direction: column;
    gap: 0;
    max-height: 0;
    overflow: hidden;
    padding: 0 var(--gutter);
    visibility: hidden;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    transition: max-height 0.24s ease, padding 0.24s ease, visibility 0s linear 0.24s;
  }

  .nav.open {
    max-height: 430px;
    padding-block: 8px 20px;
    visibility: visible;
    transition: max-height 0.24s ease, padding 0.24s ease;
  }

  .nav-links {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
  }

  .nav-links li { border-bottom: 1px solid var(--line-soft); }
  .nav-links a { display: block; padding: 14px 0; white-space: normal; }
  .nav .btn { margin-top: 16px; }
}

@media (prefers-reduced-motion: reduce) {
  .nav { transition: none; }
}

/* Hero */
.studio-hero {
  padding-block: 56px 28px;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(560px, 1.18fr);
  gap: 36px;
  align-items: center;
}

.hero-grid,
.hero-copy,
.evidence-board,
.evidence-card {
  min-width: 0;
}

.hero-copy {
  max-width: 560px;
  padding-block: 32px;
}

.hero-copy .kicker {
  margin-bottom: 24px;
}

.hero-lines {
  display: grid;
  gap: 4px;
  margin-bottom: 28px;
  color: var(--grey);
  font-size: 1.35rem;
  line-height: 1.45;
}

.hero-lines span { display: block; }

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  margin-bottom: 44px;
}

.trust-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(8.75rem, 1fr));
  gap: 18px;
  width: min(100%, 620px);
  margin-inline: auto;
  list-style: none;
  color: var(--grey);
  font-size: 0.86rem;
}

.trust-row li {
  display: grid;
  justify-items: center;
  align-content: start;
  min-width: 0;
  gap: 8px;
  text-align: center;
}

.trust-icon {
  display: grid;
  place-items: center;
  width: 2.1rem;
  height: 2.1rem;
  color: var(--ink);
  user-select: none;
}

.trust-label {
  display: block;
  max-width: 100%;
  line-height: 1.25;
  text-align: center;
  white-space: nowrap;
}

.trust-row .material-symbols-rounded {
  display: block;
  color: inherit;
  font-size: 1.55rem;
  line-height: 1;
  text-align: center;
}

.evidence-board {
  display: grid;
  grid-template-columns: minmax(0, 0.96fr) minmax(0, 0.9fr);
  gap: 18px;
  align-items: stretch;
}

.evidence-card {
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}

.scan-card {
  position: relative;
  min-height: 318px;
}

.scan-card picture {
  display: block;
  height: 100%;
  min-height: 318px;
}

.scan-card img {
  width: 100%;
  height: 100%;
  min-height: 318px;
  object-fit: cover;
  object-position: center 42%;
}

.scan-card::after {
  content: "";
  position: absolute;
  inset: 26px;
  border: 3px solid rgba(255, 255, 255, 0.86);
  border-radius: var(--radius);
  pointer-events: none;
}

.scan-meta {
  position: absolute;
  left: 26px;
  right: 26px;
  bottom: 24px;
  display: flex;
  justify-content: space-between;
  gap: 14px;
  color: var(--ink);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0;
}

.score-card,
.signal-card,
.routine-card {
  padding: 24px;
}

.score-card {
  display: grid;
  align-content: start;
  gap: 16px;
}

.score-ring {
  position: relative;
  display: block;
  width: 184px;
  height: 184px;
  margin: 4px auto 2px;
  border-radius: 50%;
  background:
    radial-gradient(circle at center, var(--paper) 0 58%, transparent 59%),
    conic-gradient(var(--score-high) 0 82%, var(--paper-deep) 82% 100%);
}

.score-value {
  position: absolute;
  inset: 0;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 8px;
  text-align: center;
}

.score-number {
  display: block;
  font-size: 3.6rem;
  font-weight: 800;
  line-height: 0.88;
  font-variant-numeric: tabular-nums;
}

.score-total {
  display: block;
  color: var(--grey);
  font-family: var(--font-mono);
  font-size: 0.8rem;
  line-height: 1;
}

.quality-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  color: var(--grey);
  font-size: 0.82rem;
}

.quality-bars {
  display: inline-grid;
  grid-template-columns: repeat(4, 16px);
  gap: 5px;
}

.quality-bars i {
  display: block;
  height: 3px;
  border-radius: var(--radius-pill);
  background: var(--score-high);
}

.quality-bars i:last-child { background: var(--line); }

.score-card p {
  font-family: var(--font-mono);
  font-size: 0.74rem;
}

.signal-card {
  min-height: 330px;
}

.signal-list {
  display: grid;
  gap: 16px;
  margin-top: 24px;
  list-style: none;
}

.signal-list li {
  display: grid;
  grid-template-columns: 28px minmax(64px, 84px) minmax(48px, 1fr) 30px;
  gap: 10px;
  align-items: center;
  font-size: 0.84rem;
}

.signal-icon {
  width: 28px;
  height: 28px;
  color: var(--tone);
  background: color-mix(in srgb, var(--tone) 12%, white);
  border-radius: 7px;
  font-size: 1.05rem;
}

.signal-name {
  min-width: 0;
  color: var(--ink);
  font-weight: 700;
}

.signal-bar {
  min-width: 0;
  height: 6px;
  background: var(--paper-deep);
  border-radius: var(--radius-pill);
  overflow: hidden;
}

.signal-bar span {
  display: block;
  width: var(--value);
  height: 100%;
  background: var(--tone);
  border-radius: inherit;
}

.signal-list strong {
  color: var(--tone);
  font-size: 0.82rem;
  text-align: right;
}

.routine-card {
  min-height: 330px;
}

.routine-list {
  display: grid;
  gap: 0;
  margin-top: 18px;
  list-style: none;
}

.routine-list li {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 58px;
  border-bottom: 1px solid var(--line-soft);
}

.routine-list li:last-child { border-bottom: 0; }

.routine-icon {
  width: 32px;
  height: 32px;
  color: var(--grey);
  background: var(--paper-deep);
  border-radius: 8px;
  flex: none;
}

.routine-icon.done { color: var(--score-high); background: rgba(0, 168, 116, 0.11); }
.routine-icon.active { color: var(--signal-rose); background: rgba(176, 0, 146, 0.10); }

.routine-list strong {
  display: block;
  font-size: 0.86rem;
  line-height: 1.25;
}

.routine-list em {
  display: block;
  color: var(--grey);
  font-size: 0.74rem;
  font-style: normal;
}

.scroll-cue {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 22px;
  margin-top: 44px;
  color: var(--grey);
  font-family: var(--font-mono);
  font-size: 0.68rem;
  text-align: center;
  text-transform: uppercase;
}

.scroll-cue span {
  height: 1px;
  background: var(--line-soft);
}

@media (max-width: 980px) {
  .hero-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .hero-copy {
    max-width: 760px;
    padding-bottom: 0;
  }
}

@media (max-width: 720px) {
  .studio-hero { padding-top: 36px; }

  .evidence-board {
    grid-template-columns: minmax(0, 1fr);
  }

  .scan-card,
  .scan-card img {
    min-height: 260px;
  }

  .trust-row {
    grid-template-columns: 1fr;
    width: 100%;
    margin-inline: 0;
  }

  .trust-row li {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;
    gap: 12px;
    text-align: left;
  }

  .trust-icon {
    width: 28px;
    height: 28px;
    flex: none;
  }

  .trust-label {
    width: auto;
    white-space: normal;
    text-align: left;
  }

  .hero-actions .btn {
    width: 100%;
  }
}

@media (min-width: 981px) and (max-width: 1180px) {
  .hero-lines {
    font-size: 1.12rem;
  }

  .trust-row {
    grid-template-columns: 1fr;
    width: 100%;
    margin-inline: 0;
    gap: 12px;
  }

  .trust-row li {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;
    gap: 12px;
    text-align: left;
  }

  .trust-icon {
    width: 28px;
    height: 28px;
    flex: none;
  }

  .trust-label {
    width: auto;
    white-space: normal;
    text-align: left;
  }
}

/* Feature and process sections */
.feature-lineup {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  border-block: 1px solid var(--line-soft);
}

.feature-tile {
  min-height: 220px;
  padding: 28px 24px;
  border-right: 1px solid var(--line-soft);
}

.feature-tile:last-child { border-right: 0; }

.feature-tile > .material-symbols-rounded {
  display: inline-flex;
  width: 34px;
  height: 34px;
  margin-bottom: 26px;
  color: var(--ink);
  font-size: 1.7rem;
}

.feature-tile h3,
.surface-card h3 {
  font-size: 1rem;
}

.feature-tile p,
.surface-card p {
  font-size: 0.92rem;
}

.process-list {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 46px minmax(0, 1fr) 46px minmax(0, 1fr);
  gap: 20px;
  align-items: center;
  border-block: 1px solid var(--line-soft);
  padding-block: 26px;
}

.process-item {
  display: grid;
  grid-template-columns: 34px 80px minmax(0, 1fr);
  gap: 18px;
  align-items: start;
}

.process-item h3 {
  font-size: 1rem;
  margin-bottom: 0;
}

.process-item p {
  font-size: 0.9rem;
}

.process-arrow {
  color: var(--ink);
  font-size: 1.65rem;
  justify-self: center;
}

.app-surface {
  background: rgba(247, 247, 247, 0.72);
}

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

.surface-card {
  min-height: 220px;
  padding: 26px;
  background: var(--paper);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}

.surface-card .micro-label {
  margin-bottom: 58px;
  color: var(--grey);
}

@media (max-width: 960px) {
  .split-heading,
  .surface-grid {
    grid-template-columns: 1fr;
  }

  .feature-lineup {
    grid-template-columns: repeat(2, 1fr);
  }

  .feature-tile {
    border-bottom: 1px solid var(--line-soft);
  }

  .feature-tile:nth-child(2n) { border-right: 0; }

  .process-list {
    grid-template-columns: 1fr;
  }

  .process-arrow {
    transform: rotate(90deg);
  }
}

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

  .feature-tile {
    min-height: auto;
    border-right: 0;
  }

  .process-item {
    grid-template-columns: 34px minmax(0, 1fr);
  }

  .process-item p {
    grid-column: 2;
  }
}

/* Privacy */
.privacy-panel {
  background: var(--paper);
}

.privacy-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(320px, 1fr);
  gap: 36px;
  align-items: start;
}

.privacy-grid h2 { margin-bottom: 0; }

.privacy-copy {
  display: grid;
  gap: 16px;
}

.privacy-points {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  list-style: none;
  border-block: 1px solid var(--line-soft);
}

.privacy-points li {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 86px;
  padding: 18px 20px;
  border-right: 1px solid var(--line-soft);
  font-weight: 800;
}

.privacy-points li:last-child { border-right: 0; }
.privacy-points .material-symbols-rounded { font-size: 1.55rem; color: var(--ink); }

@media (max-width: 880px) {
  .privacy-grid,
  .privacy-points {
    grid-template-columns: 1fr;
  }

  .privacy-points li {
    border-right: 0;
    border-bottom: 1px solid var(--line-soft);
  }

  .privacy-points li:last-child { border-bottom: 0; }
}

/* Paywall marquee */
.paywall-marquee {
  --paywall-marquee-gap: 12px;
  --paywall-marquee-width: clamp(220px, 18vw, 420px);
  position: relative;
  width: 100vw;
  max-width: none;
  margin: 34px calc(50% - 50vw) 32px;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(to right, transparent, #000 5%, #000 95%, transparent);
  mask-image: linear-gradient(to right, transparent, #000 5%, #000 95%, transparent);
}

.paywall-marquee-track {
  display: flex;
  width: max-content;
  gap: var(--paywall-marquee-gap);
  animation: paywall-marquee 54s linear infinite;
  will-change: transform;
}

.paywall-marquee-set {
  display: flex;
  gap: var(--paywall-marquee-gap);
  flex: none;
}

.paywall-marquee figure {
  width: var(--paywall-marquee-width);
  aspect-ratio: 4 / 3;
  margin: 0;
  overflow: hidden;
  flex: none;
  border: 1px solid rgba(255, 255, 255, 0.64);
  border-radius: var(--radius);
  background: var(--paper-deep);
  box-shadow: var(--shadow-sm);
}

.paywall-marquee img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

@keyframes paywall-marquee {
  from { transform: translate3d(0, 0, 0); }
  to { transform: translate3d(calc(-50% - (var(--paywall-marquee-gap) / 2)), 0, 0); }
}

@media (prefers-reduced-motion: reduce) {
  .paywall-marquee {
    overflow-x: auto;
    -webkit-mask-image: none;
    mask-image: none;
  }

  .paywall-marquee-track {
    animation: none;
  }
}

/* Pricing */
.pricing-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.88fr) minmax(0, 1.12fr);
  gap: 18px;
}

.plan {
  display: flex;
  flex-direction: column;
  gap: 22px;
  padding: 28px;
  background: var(--paper);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}

.plan.featured {
  border-color: rgba(110, 43, 232, 0.48);
  box-shadow: 0 18px 42px rgba(110, 43, 232, 0.10);
}

.plan h3 {
  font-size: 1.9rem;
  margin-bottom: 0;
}

.plan h3 small {
  color: var(--grey);
  font-size: 0.9rem;
  font-weight: 700;
}

.plan p {
  font-size: 0.94rem;
}

.check-list {
  display: grid;
  gap: 12px;
  list-style: none;
}

.check-list li {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  color: var(--ink);
  font-size: 0.94rem;
}

.check-list .material-symbols-rounded {
  color: var(--score-high);
  font-size: 1.2rem;
  flex: none;
  margin-top: 1px;
}

.plan .btn {
  margin-top: auto;
}

.price-options {
  display: grid;
  grid-template-columns: 0.8fr 1fr;
  gap: 10px;
  list-style: none;
}

.price-options li {
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper-soft);
}

.price-options strong {
  display: block;
  font-size: 1.45rem;
  line-height: 1.1;
}

.price-options span {
  display: block;
  margin-top: 6px;
  color: var(--grey);
  font-size: 0.82rem;
}

.pricing-foot {
  max-width: 720px;
  margin: 24px auto 0;
  color: var(--grey);
  font-size: 0.85rem;
  text-align: center;
}

@media (max-width: 820px) {
  .paywall-marquee {
    --paywall-marquee-width: clamp(180px, 64vw, 236px);
    margin-block: 28px;
  }

  .pricing-grid,
  .price-options {
    grid-template-columns: 1fr;
  }
}

/* FAQ */
.faq {
  max-width: 820px;
  margin-inline: auto;
}

.faq-item {
  border-top: 1px solid var(--line-soft);
}

.faq-item:last-child {
  border-bottom: 1px solid var(--line-soft);
}

.faq-item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 70px;
  padding-block: 18px;
  color: var(--ink);
  font-weight: 800;
  cursor: pointer;
  list-style: none;
}

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

.faq-item summary .material-symbols-rounded {
  transition: transform 0.18s ease;
  flex: none;
}

.faq-item[open] summary .material-symbols-rounded {
  transform: rotate(180deg);
}

.faq-body {
  padding-bottom: 22px;
}

.faq-body p {
  max-width: 720px;
  font-size: 0.96rem;
}

@media (prefers-reduced-motion: reduce) {
  .faq-item summary .material-symbols-rounded { transition: none; }
}

/* Footer */
.site-footer {
  padding-block: 52px;
  border-top: 1px solid var(--line-soft);
  background: var(--paper);
}

.footer-top {
  display: grid;
  grid-template-columns: minmax(280px, 1.4fr) 1fr 1fr;
  gap: 32px;
  margin-bottom: 34px;
}

.footer-brand p {
  max-width: 320px;
  margin-top: 14px;
  font-size: 0.92rem;
}

.footer-heading {
  margin-bottom: 14px;
  color: var(--grey);
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0;
  text-transform: uppercase;
}

.footer-col ul {
  display: grid;
  gap: 10px;
  list-style: none;
}

.footer-col a {
  color: var(--ink);
  font-size: 0.94rem;
  opacity: 0.82;
}

.footer-col a:hover {
  opacity: 1;
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 14px;
  padding-top: 22px;
  border-top: 1px solid var(--line-soft);
  color: var(--grey);
  font-size: 0.84rem;
}

@media (max-width: 760px) {
  .footer-top {
    grid-template-columns: 1fr 1fr;
  }

  .footer-brand {
    grid-column: 1 / -1;
  }
}

@media (max-width: 480px) {
  .footer-top {
    grid-template-columns: 1fr;
  }

  .footer-brand {
    grid-column: auto;
  }
}

/* Legal and support pages */
.page-hero {
  padding-top: 70px;
  padding-bottom: 34px;
}

.page-hero h1 {
  max-width: 760px;
  margin-bottom: 12px;
  font-size: 3.1rem;
}

.page-hero .updated {
  max-width: 720px;
  font-size: 0.98rem;
}

.prose {
  max-width: 800px;
  padding-bottom: var(--section-y);
}

.prose h2 {
  margin-top: 42px;
  margin-bottom: 12px;
  font-size: 1.45rem;
  scroll-margin-top: 96px;
}

.prose h3 {
  margin-top: 30px;
  font-size: 1.08rem;
}

.prose p,
.prose li {
  color: var(--ink-soft);
}

.prose p {
  margin-bottom: 16px;
}

.prose ul {
  padding-left: 1.2em;
  margin-bottom: 18px;
  list-style: disc;
}

.prose li {
  margin-bottom: 8px;
}

.prose a {
  color: var(--ink);
  font-weight: 800;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.callout {
  margin: 28px 0;
  padding: 20px 22px;
  border: 1px solid var(--line-soft);
  border-left: 4px solid var(--accent);
  border-radius: var(--radius);
  background: var(--paper);
  box-shadow: var(--shadow-sm);
}

.callout p {
  margin: 0;
}

.toc {
  margin: 30px 0 38px;
  padding: 22px;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  background: var(--paper-soft);
}

.toc h2 {
  margin: 0 0 14px;
  color: var(--grey);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0;
  text-transform: uppercase;
}

.toc ul {
  columns: 2;
  column-gap: 28px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.toc li {
  break-inside: avoid;
  margin-bottom: 8px;
  color: var(--grey);
  font-size: 0.92rem;
}

.support-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
  margin: 24px 0 40px;
}

.support-card {
  min-height: 180px;
  padding: 26px;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  background: var(--paper);
  box-shadow: var(--shadow-sm);
}

.support-card .feature-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  margin-bottom: 18px;
  color: var(--ink);
  background: var(--paper-deep);
  border-radius: var(--radius);
}

.support-card h3 {
  font-size: 1.08rem;
}

.support-card p {
  font-size: 0.94rem;
}

.article-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
  margin-bottom: 18px;
  color: var(--grey);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
}

.guide-hero-media {
  margin: 18px 0 30px;
  overflow: hidden;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  background: var(--paper);
  box-shadow: var(--shadow-sm);
}

.guide-hero-media picture {
  display: block;
}

.guide-hero-media img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.guide-hero-media figcaption {
  padding: 14px 18px 16px;
  color: var(--grey);
  font-size: 0.9rem;
}

.source-list {
  padding-left: 1.2em;
}

.source-list li {
  margin-bottom: 10px;
}

.guide-listing-card {
  display: block;
}

.guide-listing-card:hover {
  text-decoration: none;
}

.guide-listing-card h3 {
  margin-top: 6px;
}

.guide-listing-card p {
  color: var(--grey);
}

@media (max-width: 640px) {
  .page-hero h1 { font-size: 2.3rem; }
  .toc ul { columns: 1; }
  .support-grid { grid-template-columns: 1fr; }
}

/* Arabic / RTL localization */
html[dir="rtl"] {
  direction: ltr;
}

html[dir="rtl"] body {
  direction: rtl;
  text-align: start;
}

html[dir="rtl"] .skip-link {
  left: auto;
  right: 16px;
}

html[dir="rtl"] .brand-icon,
html[dir="rtl"] .material-symbols-rounded,
html[dir="rtl"] .score-ring,
html[dir="rtl"] .quality-bars,
html[dir="rtl"] .signal-bar,
html[dir="rtl"] .score-value,
html[dir="rtl"] .price-options strong,
html[dir="rtl"] .score-number,
html[dir="rtl"] .score-total {
  direction: ltr;
}

html[dir="rtl"] .process-arrow {
  transform: scaleX(-1);
}

html[dir="rtl"] .legal-copy ul,
html[dir="rtl"] .prose ul,
html[dir="rtl"] .toc ul,
html[dir="rtl"] .source-list {
  padding-left: 0;
  padding-right: 1.2em;
}

html[dir="rtl"] .callout {
  border-left: 0;
  border-right: 4px solid var(--accent);
}

html[dir="rtl"] .article-meta,
html[dir="rtl"] .footer-bottom,
html[dir="rtl"] .hero-actions,
html[dir="rtl"] .nav-links,
html[dir="rtl"] .trust-row {
  direction: rtl;
}

@media (max-width: 760px) {
  html[dir="rtl"],
  html[dir="rtl"] body {
    max-width: 100%;
    overflow-x: hidden;
  }

  html[dir="rtl"] .container,
  html[dir="rtl"] .hero-copy,
  html[dir="rtl"] .evidence-board,
  html[dir="rtl"] .evidence-card,
  html[dir="rtl"] .scan-card {
    width: 100%;
    max-width: 100%;
  }

  html[dir="rtl"] .header-inner {
    direction: ltr;
    flex-direction: row-reverse;
  }

  html[dir="rtl"] .brand {
    direction: ltr;
    flex-direction: row-reverse;
  }

  html[dir="rtl"] .hero-grid,
  html[dir="rtl"] .hero-actions,
  html[dir="rtl"] .evidence-board {
    direction: ltr;
  }

  html[dir="rtl"] .hero-copy,
  html[dir="rtl"] .evidence-card,
  html[dir="rtl"] .trust-row li,
  html[dir="rtl"] .privacy-grid,
  html[dir="rtl"] .pricing-grid,
  html[dir="rtl"] .feature-lineup,
  html[dir="rtl"] .process-list {
    direction: rtl;
  }

  html[dir="rtl"] .studio-hero h1 {
    font-size: clamp(2.05rem, 11vw, 2.55rem);
    overflow-wrap: anywhere;
  }

  html[dir="rtl"] .hero-actions {
    width: 100%;
  }

  html[dir="rtl"] .trust-row li {
    justify-content: flex-end;
    text-align: right;
  }

  html[dir="rtl"] .trust-label {
    text-align: right;
  }

  html[dir="rtl"] .pricing-grid,
  html[dir="rtl"] .privacy-grid,
  html[dir="rtl"] .split-heading,
  html[dir="rtl"] .hero-grid {
    text-align: start;
  }
}

/* Scroll reveal */
.reveal-ready .reveal,
.reveal-ready .reveal.is-visible {
  opacity: 1;
  transform: none;
}
