:root {
  color-scheme: light;
  --ink: #17130f;
  --ink-soft: #2b251f;
  --muted: #625b53;
  --paper: #f8f4ec;
  --paper-deep: #eee7db;
  --card: #fffdf9;
  --ember: #e86a28;
  --ember-dark: #b84413;
  --sun: #f4aa27;
  --mint: #238767;
  --sky: #287dc1;
  --line: rgba(23, 19, 15, 0.13);
  --line-light: rgba(255, 255, 255, 0.16);
  --shadow: 0 28px 80px rgba(65, 43, 25, 0.14);
  --radius: 28px;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Hiragino Sans", "Yu Gothic UI", sans-serif;
  font-synthesis: none;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 96px;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; }
img { display: block; max-width: 100%; height: auto; }
h1, h2, h3, p, figure { margin-top: 0; }

.skip-link {
  position: fixed;
  z-index: 100;
  top: 12px;
  left: 12px;
  padding: 10px 16px;
  border-radius: 9px;
  color: #fff;
  background: var(--ink);
  transform: translateY(-170%);
}

.skip-link:focus { transform: translateY(0); }

.shell {
  width: min(1180px, calc(100% - 48px));
  margin-inline: auto;
}

.site-header {
  position: sticky;
  z-index: 30;
  top: 0;
  border-bottom: 1px solid rgba(23, 19, 15, 0.08);
  background: rgba(248, 244, 236, 0.92);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.nav-wrap {
  min-height: 74px;
  display: flex;
  gap: 32px;
  align-items: center;
  justify-content: space-between;
}

.brand,
.footer-brand {
  display: inline-flex;
  gap: 11px;
  align-items: center;
}

.brand {
  flex: 0 0 auto;
  color: var(--ink);
  font-weight: 850;
  letter-spacing: -0.025em;
  text-decoration: none;
}

.brand img,
.footer-brand img {
  border-radius: 11px;
  box-shadow: 0 5px 15px rgba(107, 50, 20, 0.18);
}

.main-nav,
footer nav {
  display: flex;
  gap: 25px;
  align-items: center;
}

.main-nav a,
footer nav a {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 750;
  text-decoration: none;
  white-space: nowrap;
}

.main-nav a:hover,
.main-nav a:focus-visible,
footer nav a:hover,
footer nav a:focus-visible { color: var(--ember-dark); }

.main-nav .language-link {
  padding: 7px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.6);
}

.hero {
  position: relative;
  min-height: 790px;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
  background:
    radial-gradient(circle at 8% 23%, rgba(244, 170, 39, 0.2), transparent 27%),
    radial-gradient(circle at 92% 76%, rgba(40, 125, 193, 0.13), transparent 29%),
    linear-gradient(120deg, rgba(255, 255, 255, 0.3), transparent 50%);
}

.hero-grid {
  min-height: 790px;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(330px, 0.65fr);
  gap: clamp(52px, 8vw, 112px);
  align-items: center;
  padding-block: 72px 82px;
}

.eyebrow,
.kicker {
  margin: 0 0 17px;
  color: var(--ember-dark);
  font-size: 0.76rem;
  font-weight: 850;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.eyebrow {
  display: flex;
  gap: 9px;
  align-items: center;
}

.eyebrow span {
  width: 28px;
  height: 2px;
  background: var(--ember-dark);
}

.kicker.light { color: #ffc976; }

h1 {
  max-width: 760px;
  margin-bottom: 26px;
  font-size: clamp(3.15rem, 6vw, 5.65rem);
  line-height: 1.06;
  letter-spacing: -0.065em;
}

h1 em {
  color: var(--ember-dark);
  font-style: normal;
}

.lead {
  max-width: 675px;
  margin-bottom: 28px;
  color: #413a33;
  font-size: 1.08rem;
  line-height: 1.95;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.button {
  min-height: 52px;
  display: inline-flex;
  gap: 10px;
  align-items: center;
  justify-content: center;
  padding: 12px 22px;
  border-radius: 14px;
  font-size: 0.92rem;
  font-weight: 850;
  line-height: 1.35;
  text-decoration: none;
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.button:hover { transform: translateY(-2px); }

.button:focus-visible,
a:focus-visible,
summary:focus-visible {
  outline: 3px solid var(--sky);
  outline-offset: 3px;
}

.button.primary {
  color: #fff;
  background: var(--ember-dark);
  box-shadow: 0 12px 30px rgba(184, 68, 19, 0.25);
}

.button.primary:hover { background: #96360e; }

.button.secondary {
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.62);
}

.button.dark {
  flex: 0 0 auto;
  color: #fff;
  background: var(--ink);
}

.button.light-button {
  color: var(--ink);
  background: #fff;
  box-shadow: 0 12px 30px rgba(20, 14, 9, 0.2);
}

.quick-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 9px 23px;
  margin: 30px 0 0;
  padding: 0;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 750;
  list-style: none;
}

.quick-facts li::before {
  margin-right: 7px;
  color: var(--mint);
  font-weight: 900;
  content: "✓";
}

.prototype-note {
  max-width: 680px;
  margin: 28px 0 0;
  padding: 15px 18px;
  border-left: 3px solid var(--sun);
  border-radius: 0 12px 12px 0;
  color: #4b433b;
  background: rgba(255, 255, 255, 0.54);
  font-size: 0.76rem;
  line-height: 1.75;
}

.hero-device {
  position: relative;
  display: grid;
  place-items: center;
  margin: 0;
}

.device-halo {
  position: absolute;
  width: min(460px, 100%);
  aspect-ratio: 1;
  border-radius: 50%;
  background: linear-gradient(145deg, rgba(244, 170, 39, 0.35), rgba(232, 106, 40, 0.12) 55%, rgba(35, 135, 103, 0.18));
  filter: blur(2px);
}

.device-frame {
  position: relative;
  z-index: 1;
  width: min(348px, 92%);
  padding: 8px;
  overflow: hidden;
  border: 2px solid #302a25;
  border-radius: 49px;
  background: #161310;
  box-shadow: 0 38px 80px rgba(58, 39, 24, 0.27), 0 8px 22px rgba(58, 39, 24, 0.18);
  transform: rotate(1.6deg);
}

.device-frame img {
  width: 100%;
  border-radius: 40px;
}

.hero-device figcaption {
  position: relative;
  z-index: 2;
  margin: 16px 0 0;
  color: var(--muted);
  font-size: 0.7rem;
}

.section { padding-block: 112px; }

.section-heading {
  max-width: 720px;
  margin-bottom: 52px;
}

.section-heading.compact { margin-bottom: 0; }

.section-heading h2,
.support-card h2,
.open-source-card h2 {
  margin-bottom: 18px;
  font-size: clamp(2.25rem, 4.4vw, 4.15rem);
  line-height: 1.16;
  letter-spacing: -0.055em;
}

.section-heading > p:last-child,
.split-heading > p,
.split-heading > div:last-child > p:first-child,
.open-source-card > div > p:last-child,
.support-card > div > p:not(.kicker) {
  margin-bottom: 0;
  color: var(--muted);
  line-height: 1.95;
}

.split-heading {
  max-width: none;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(300px, 0.72fr);
  gap: 80px;
  align-items: end;
}

.split-heading h2 { margin-bottom: 0; }

.screens-section { overflow: hidden; background: var(--card); }

.screen-gallery {
  display: grid;
  grid-template-columns: 1.45fr repeat(4, minmax(0, 1fr));
  gap: 18px;
  align-items: start;
}

.screen-card {
  min-width: 0;
  margin: 0;
}

.screen-image {
  padding: 5px;
  overflow: hidden;
  border: 1px solid rgba(23, 19, 15, 0.2);
  border-radius: 30px;
  background: #17130f;
  box-shadow: 0 18px 42px rgba(55, 39, 27, 0.12);
}

.screen-image img {
  width: 100%;
  border-radius: 25px;
}

.screen-card figcaption {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 9px;
  margin-top: 15px;
}

.screen-card figcaption > span {
  color: var(--ember-dark);
  font-size: 0.68rem;
  font-weight: 900;
  letter-spacing: 0.08em;
}

.screen-card figcaption strong {
  display: block;
  margin-bottom: 3px;
  font-size: 0.87rem;
  line-height: 1.45;
}

.screen-card figcaption p {
  margin: 0;
  color: var(--muted);
  font-size: 0.71rem;
  line-height: 1.65;
}

.features-section { background: var(--paper); }

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

.feature-card {
  min-height: 395px;
  display: flex;
  flex-direction: column;
  padding: 29px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 253, 249, 0.74);
}

.feature-number {
  color: var(--muted);
  font-size: 0.67rem;
  font-weight: 850;
  letter-spacing: 0.1em;
}

.feature-icon {
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  margin: 31px 0 25px;
  border-radius: 19px;
  font-size: 1.7rem;
}

.orange .feature-icon { color: #8b310b; background: #ffd7c2; }
.blue .feature-icon { color: #155d98; background: #cce8ff; }
.green .feature-icon { color: #126349; background: #ccecdf; }
.yellow .feature-icon { color: #765000; background: #ffe5a5; }

.feature-card h3 {
  margin-bottom: 10px;
  font-size: 1.25rem;
  letter-spacing: -0.03em;
}

.feature-card p {
  margin-bottom: 18px;
  color: var(--muted);
  font-size: 0.87rem;
  line-height: 1.85;
}

.feature-card small {
  margin-top: auto;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  color: #514a43;
  font-size: 0.7rem;
  line-height: 1.65;
}

.waveform {
  display: flex;
  gap: 3px;
  align-items: center;
  justify-content: center;
}

.waveform i {
  width: 3px;
  border-radius: 99px;
  background: currentColor;
}

.waveform i:nth-child(1), .waveform i:nth-child(5) { height: 13px; }
.waveform i:nth-child(2), .waveform i:nth-child(4) { height: 25px; }
.waveform i:nth-child(3) { height: 35px; }

.capability-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  margin-top: 22px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: var(--card);
}

.capability-strip > div {
  min-height: 126px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 22px 25px;
  border-right: 1px solid var(--line);
}

.capability-strip > div:last-child { border-right: 0; }

.capability-strip strong {
  margin-bottom: 4px;
  color: var(--ember-dark);
  font-size: 0.95rem;
}

.capability-strip span {
  color: var(--muted);
  font-size: 0.72rem;
  line-height: 1.6;
}

.how-section { background: var(--paper-deep); }

.how-grid {
  display: grid;
  grid-template-columns: 0.82fr 1.18fr;
  gap: 96px;
  align-items: start;
}

.steps {
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: steps;
}

.steps li {
  display: grid;
  grid-template-columns: 58px 1fr;
  gap: 20px;
  padding: 25px 0;
  border-bottom: 1px solid var(--line);
}

.steps li:first-child { padding-top: 0; }

.steps li > span {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  background: var(--ember-dark);
  font-weight: 900;
}

.steps h3 { margin-bottom: 5px; font-size: 1.05rem; }
.steps p { margin: 0; color: var(--muted); font-size: 0.87rem; }

.method-section {
  color: #fff;
  background:
    radial-gradient(circle at 13% 14%, rgba(232, 106, 40, 0.25), transparent 26%),
    radial-gradient(circle at 90% 80%, rgba(40, 125, 193, 0.16), transparent 28%),
    var(--ink);
}

.method-intro {
  display: grid;
  grid-template-columns: 1fr 0.84fr;
  gap: 82px;
  align-items: center;
}

.method-intro .section-heading > p:last-child { color: #d9d1c8; }

.score-panel {
  display: grid;
  grid-template-columns: 3fr 2fr;
  gap: 12px;
  padding: 26px;
  border: 1px solid var(--line-light);
  border-radius: 27px;
  background: rgba(255, 255, 255, 0.06);
}

.score-weight {
  min-height: 135px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 20px;
  border-radius: 18px;
}

.light-weight { color: #251806; background: #f5b849; }
.ergo-weight { color: #071d17; background: #68c29f; }

.score-weight span {
  font-size: clamp(2.1rem, 4vw, 3.7rem);
  font-weight: 900;
  line-height: 1;
  letter-spacing: -0.07em;
}

.score-weight strong { margin-top: 8px; font-size: 0.75rem; }

.score-panel > p {
  grid-column: 1 / -1;
  margin: 5px 2px 0;
  color: #d7cfc6;
  font-size: 0.76rem;
  line-height: 1.75;
}

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

.method-grid article {
  padding: 28px;
  border: 1px solid var(--line-light);
  border-radius: 23px;
  background: rgba(255, 255, 255, 0.045);
}

.method-label {
  display: inline-block;
  margin-bottom: 24px;
  padding: 5px 10px;
  border: 1px solid var(--line-light);
  border-radius: 999px;
  color: #f7c989;
  font-size: 0.64rem;
  font-weight: 850;
  letter-spacing: 0.08em;
}

.method-grid h3 { margin-bottom: 11px; font-size: 1.06rem; }
.method-grid p { margin: 0; color: #cfc7be; font-size: 0.8rem; line-height: 1.85; }

.not-measured {
  display: grid;
  grid-template-columns: 0.75fr 1.25fr;
  gap: 60px;
  align-items: center;
  margin-top: 54px;
  padding: 33px;
  border: 1px solid var(--line-light);
  border-radius: 25px;
  background: rgba(255, 255, 255, 0.05);
}

.not-measured h3 { margin: 0; font-size: 1.25rem; }
.not-measured .kicker { margin-bottom: 7px; }

.not-measured ul {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.not-measured li {
  padding: 7px 12px;
  border: 1px solid var(--line-light);
  border-radius: 999px;
  color: #ded7cf;
  font-size: 0.7rem;
  font-weight: 700;
}

.validation-note {
  margin: 23px 0 0;
  color: #bdb4aa;
  font-size: 0.7rem;
}

.privacy-section { background: #f5efe6; }

.effective-date {
  margin: 12px 0 0 !important;
  color: var(--ink) !important;
  font-size: 0.72rem;
  font-weight: 800;
}

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

.privacy-card {
  min-height: 250px;
  padding: 27px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: var(--card);
}

.privacy-lead-card {
  grid-column: span 2;
  color: #fff;
  background: var(--ink-soft);
}

.privacy-mark {
  width: 82px;
  height: 82px;
  display: grid;
  align-content: center;
  margin-bottom: 27px;
  border: 2px solid #f4b35d;
  border-radius: 50%;
  color: #f6c27a;
  text-align: center;
  line-height: 1;
}

.privacy-mark span { font-size: 0.55rem; letter-spacing: 0.16em; }
.privacy-mark strong { margin-top: 5px; font-size: 0.75rem; }

.privacy-number {
  display: block;
  margin-bottom: 35px;
  color: var(--ember-dark);
  font-size: 0.68rem;
  font-weight: 900;
  letter-spacing: 0.1em;
}

.privacy-card h3 { margin-bottom: 10px; font-size: 1.04rem; }
.privacy-card p { margin: 0; color: var(--muted); font-size: 0.79rem; line-height: 1.8; }
.privacy-card a { color: var(--ember-dark); font-weight: 800; }
.privacy-lead-card p { color: #d9d2ca; }

.terms-section { background: var(--card); }

.terms-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0 50px;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: terms;
}

.terms-list li {
  min-height: 170px;
  display: grid;
  grid-template-columns: 52px 1fr;
  gap: 17px;
  padding: 24px 0;
  border-top: 1px solid var(--line);
  counter-increment: terms;
}

.terms-list li::before {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: var(--ember-dark);
  background: #f8e2d5;
  font-size: 0.75rem;
  font-weight: 900;
  content: counter(terms, decimal-leading-zero);
}

.terms-list strong { font-size: 0.94rem; }
.terms-list p { margin: 7px 0 0; color: var(--muted); font-size: 0.79rem; line-height: 1.82; }

.license-note {
  margin: 30px 0 0;
  padding: 19px 22px;
  border-radius: 15px;
  color: var(--muted);
  background: var(--paper);
  font-size: 0.74rem;
}

.sources-section { background: var(--paper); }

.source-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 16px;
}

.source-card {
  grid-column: span 2;
  min-height: 280px;
  display: flex;
  flex-direction: column;
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: 23px;
  background: var(--card);
  text-decoration: none;
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.source-card:nth-child(4),
.source-card:nth-child(5) { grid-column: span 3; }

.source-card:hover {
  border-color: rgba(184, 68, 19, 0.45);
  box-shadow: 0 15px 35px rgba(58, 38, 24, 0.09);
  transform: translateY(-3px);
}

.source-card > span {
  margin-bottom: 29px;
  color: var(--ember-dark);
  font-size: 0.66rem;
  font-weight: 850;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.source-card h3 { margin-bottom: 10px; font-size: 1rem; line-height: 1.5; }
.source-card p { margin-bottom: 18px; color: var(--muted); font-size: 0.78rem; line-height: 1.8; }
.source-card small { margin-top: auto; color: var(--ink); font-weight: 800; }

.api-sources {
  margin-top: 18px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--card);
}

.api-sources summary {
  padding: 19px 22px;
  cursor: pointer;
  font-size: 0.82rem;
  font-weight: 800;
}

.api-sources > div {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 24px;
  padding: 0 22px 22px;
}

.api-sources a { color: #175f96; font-size: 0.73rem; font-weight: 700; }

.support-section { background: var(--ember-dark); }

.support-card {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 70px;
  align-items: center;
  color: #fff;
}

.support-card > div > p:not(.kicker) { color: #fff1e9; }
.support-card .kicker.light { color: #fff; }
.support-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 22px;
}

.support-card .button { margin-top: 0; }
.button.outline-light {
  border: 1px solid rgba(255, 255, 255, 0.62);
  color: #fff;
  background: rgba(71, 24, 6, 0.12);
}
.button.outline-light:hover { background: rgba(71, 24, 6, 0.25); }
.support-section a:focus-visible { outline-color: #fff; }

.support-card aside {
  padding: 28px;
  border: 1px solid rgba(255, 255, 255, 0.26);
  border-radius: 22px;
  background: rgba(71, 24, 6, 0.22);
}

.support-card aside strong { display: block; margin-bottom: 10px; }
.support-card aside p { margin: 0; color: #fff3ed; font-size: 0.78rem; line-height: 1.8; }

.open-source-section { background: var(--card); }

.open-source-card {
  display: flex;
  gap: 48px;
  align-items: center;
  justify-content: space-between;
  padding: 48px;
  border: 1px solid var(--line);
  border-radius: 30px;
  background: linear-gradient(125deg, #fffaf2, #eef7f3);
}

.open-source-card > div { max-width: 720px; }
.open-source-card h2 { font-size: clamp(2rem, 3.8vw, 3.5rem); }

footer {
  padding-block: 42px;
  border-top: 1px solid var(--line);
  background: var(--paper-deep);
}

.footer-grid {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 35px;
  align-items: center;
}

.footer-brand strong,
.footer-brand small { display: block; }
.footer-brand small { color: var(--muted); font-size: 0.64rem; }
footer nav { justify-content: center; }
.copyright { margin: 0; color: #574f47; font-size: 0.68rem; }

@media (max-width: 1040px) {
  .main-nav { gap: 17px; }
  .main-nav a:nth-child(3), .main-nav a:nth-child(4) { display: none; }
  .hero-grid { grid-template-columns: minmax(0, 1fr) minmax(290px, 0.62fr); gap: 45px; }
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
  .feature-card { min-height: 350px; }
  .capability-strip { grid-template-columns: repeat(2, 1fr); }
  .capability-strip > div:nth-child(2) { border-right: 0; }
  .capability-strip > div:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .method-intro { gap: 46px; }
  .footer-grid { grid-template-columns: 1fr auto; }
  .footer-grid nav { justify-content: flex-end; }
  .copyright { grid-column: 1 / -1; }
}

@media (max-width: 860px) {
  html { scroll-padding-top: 78px; }
  .shell { width: min(100% - 36px, 720px); }
  .nav-wrap { min-height: 66px; gap: 18px; }
  .brand img { width: 36px; height: 36px; }
  .main-nav { min-width: 0; overflow-x: auto; padding-block: 8px; scrollbar-width: none; }
  .main-nav::-webkit-scrollbar { display: none; }
  .main-nav a:nth-child(3), .main-nav a:nth-child(4) { display: block; }
  .hero { min-height: 0; }
  .hero-grid { min-height: 0; grid-template-columns: 1fr; gap: 62px; padding-block: 72px; }
  .hero-copy { max-width: 680px; }
  .hero-device { max-width: 410px; margin-inline: auto; }
  .section { padding-block: 86px; }
  .split-heading { grid-template-columns: 1fr; gap: 25px; align-items: start; }
  .screen-gallery {
    width: calc(100vw - max(18px, (100vw - 720px) / 2));
    grid-template-columns: none;
    grid-auto-columns: minmax(225px, 64vw);
    grid-auto-flow: column;
    gap: 16px;
    overflow-x: auto;
    padding: 4px max(18px, (100vw - 720px) / 2) 20px 0;
    scroll-padding-left: 0;
    scroll-snap-type: x mandatory;
    scrollbar-width: thin;
  }
  .screen-card { scroll-snap-align: start; }
  .how-grid, .method-intro, .support-card { grid-template-columns: 1fr; gap: 48px; }
  .method-grid { grid-template-columns: 1fr; }
  .method-grid article { min-height: 0; }
  .not-measured { grid-template-columns: 1fr; gap: 25px; }
  .privacy-grid { grid-template-columns: repeat(2, 1fr); }
  .source-grid { grid-template-columns: repeat(2, 1fr); }
  .source-card, .source-card:nth-child(4), .source-card:nth-child(5) { grid-column: span 1; }
  .open-source-card { align-items: flex-start; flex-direction: column; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-grid nav { justify-content: flex-start; flex-wrap: wrap; }
}

@media (max-width: 580px) {
  .shell { width: calc(100% - 30px); }
  .nav-wrap { align-items: center; }
  .brand span { display: none; }
  .main-nav { gap: 15px; }
  .main-nav a { font-size: 0.76rem; }
  .main-nav a:nth-child(3), .main-nav a:nth-child(4), .main-nav a:nth-child(5) { display: none; }
  h1 { font-size: clamp(2.75rem, 14vw, 4.2rem); }
  .lead { font-size: 1rem; }
  .hero-actions .button { width: 100%; }
  .hero-device { width: 91%; }
  .section { padding-block: 72px; }
  .section-heading { margin-bottom: 40px; }
  .section-heading h2, .support-card h2, .open-source-card h2 { font-size: clamp(2.05rem, 10vw, 3rem); }
  .screen-gallery {
    width: calc(100vw - 15px);
    grid-auto-columns: 73vw;
    padding-right: 15px;
  }
  .feature-grid, .privacy-grid, .terms-list, .source-grid { grid-template-columns: 1fr; }
  .feature-card { min-height: 0; }
  .privacy-lead-card { grid-column: span 1; }
  .capability-strip { grid-template-columns: 1fr; }
  .capability-strip > div { border-right: 0; border-bottom: 1px solid var(--line); }
  .capability-strip > div:nth-child(2) { border-right: 0; }
  .capability-strip > div:last-child { border-bottom: 0; }
  .score-panel { padding: 17px; }
  .score-weight { min-height: 115px; padding: 15px; }
  .not-measured { padding: 25px; }
  .terms-list li { min-height: 0; }
  .source-card { min-height: 0; }
  .api-sources > div { flex-direction: column; }
  .support-card { gap: 35px; }
  .support-actions .button { width: 100%; }
  .open-source-card { padding: 28px; }
  footer nav { gap: 14px 20px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .button, .source-card { transition: none; }
}
