:root {
  --text: #1d1d1f;
  --muted: #6e6e73;
  --link: #0066cc;
  --bg: #ffffff;
  --gutter: 48px;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; -webkit-tap-highlight-color: transparent; }
img { max-width: 100%; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Helvetica Neue", Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  letter-spacing: -0.01em;
}
a { color: var(--link); text-decoration: none; }
a:hover { text-decoration: underline; }

/* Top bar, aligned with the page content */
.nav {
  position: absolute;
  top: 0; left: 0; right: 0;
  z-index: 2;
}
.nav .bar {
  max-width: 1400px;
  margin: 0 auto;
  padding: 28px var(--gutter);
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 36px;
}
.nav .brand { display: block; line-height: 0; }
.nav .brand img { display: block; height: 33px; width: auto; }
.nav .links { display: flex; gap: 28px; }
.nav .links a { font-size: 17px; color: var(--text); }
.nav .links .short { display: none; }
.nav .links a:hover { text-decoration: none; color: var(--muted); }

/* Main page */
.hero {
  min-height: 100vh;
  min-height: 100svh;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 64px;
  padding: 96px var(--gutter) 64px;
  max-width: 1400px;
  margin: 0 auto;
}
.eyebrow {
  font-size: 17px;
  font-weight: 600;
  color: var(--muted);
  margin-bottom: 14px;
}
.copy .title {
  font-size: clamp(44px, 6vw, 88px);
  line-height: 1.04;
  font-weight: 600;
  letter-spacing: -0.035em;
  margin-bottom: 28px;
}
.copy p {
  font-size: 21px;
  line-height: 1.45;
  margin-bottom: 20px;
  max-width: 34em;
}
.copy p.note { color: var(--muted); }
.copy .cta {
  display: inline-block;
  margin-top: 12px;
  font-size: 21px;
}
.hero .art { display: flex; justify-content: center; }
.hero .art img {
  display: block;
  width: 100%;
  max-width: 440px;
  max-height: 72vh;
  height: auto;
  object-fit: contain;
}

/* About page */
.about {
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  align-items: center;
  padding: 96px var(--gutter) 96px;
  max-width: 1400px;
  margin: 0 auto;
}
.about .statement {
  font-size: clamp(34px, 4.8vw, 72px);
  line-height: 1.08;
  font-weight: 600;
  letter-spacing: -0.03em;
  max-width: 16em;
  margin-bottom: 40px;
}
.about .inner { max-width: 960px; }
.about p {
  font-size: 21px;
  line-height: 1.45;
  color: var(--muted);
  margin-bottom: 20px;
  max-width: 34em;
}

/* Phones and small tablets, portrait: stack text above the logo */
@media (max-width: 860px) and (orientation: portrait), (max-width: 600px) {
  :root { --gutter: 24px; }
  .nav .bar {
    padding: max(20px, env(safe-area-inset-top)) max(24px, env(safe-area-inset-right)) 20px max(24px, env(safe-area-inset-left));
  }
  .nav .bar { gap: 24px; }
  .nav .bar { flex-wrap: wrap; row-gap: 0; }
  .nav .brand img { height: 24px; }
  .nav .links { gap: 16px; }
  .nav .links a { font-size: 15px; padding: 10px 0; }
  .hero {
    grid-template-columns: 1fr;
    align-content: center;
    gap: 48px;
    padding: 104px max(24px, env(safe-area-inset-right)) calc(56px + env(safe-area-inset-bottom)) max(24px, env(safe-area-inset-left));
  }
  .hero .art { order: 2; justify-content: center; }
  .hero .art img { max-width: min(300px, 72vw); max-height: 50vh; max-height: 50svh; transform: translateX(5%); }
  .copy .title { font-size: clamp(40px, 12vw, 56px); margin-bottom: 22px; }
  .copy p { font-size: 18px; line-height: 1.5; }
  .copy .cta { font-size: 18px; padding: 12px 0; margin-top: 4px; }
  .eyebrow { font-size: 15px; }
  .stats { gap: 20px 40px; margin-top: 28px; }
  .about.cta-section { padding-top: 24px; padding-bottom: calc(96px + env(safe-area-inset-bottom)); }
  .about { padding: 104px max(24px, env(safe-area-inset-right)) calc(72px + env(safe-area-inset-bottom)) max(24px, env(safe-area-inset-left)); }
  .about .statement { font-size: clamp(30px, 8.6vw, 44px); max-width: none; margin-bottom: 28px; }
  .about p { font-size: 18px; line-height: 1.5; }
}

/* Phones in landscape: keep two columns, tighter vertical space */
@media (max-height: 520px) and (orientation: landscape) {
  :root { --gutter: 32px; }
  .nav .bar { padding: 14px max(32px, env(safe-area-inset-right)) 14px max(32px, env(safe-area-inset-left)); }
  .nav .brand img { height: 26px; }
  .nav .links a { font-size: 16px; }
  .hero { gap: 32px; padding: 72px max(32px, env(safe-area-inset-right)) 32px max(32px, env(safe-area-inset-left)); }
  .copy .title { font-size: clamp(32px, 5vw, 48px); margin-bottom: 16px; }
  .copy p, .copy .cta { font-size: 17px; margin-bottom: 12px; }
  .hero .art img { max-height: 70vh; max-height: 70svh; max-width: 260px; }
  .about { padding: 72px max(32px, env(safe-area-inset-right)) 48px max(32px, env(safe-area-inset-left)); }
  .about .statement { font-size: clamp(24px, 3.8vw, 36px); margin-bottom: 20px; }
  .about p { font-size: 17px; margin-bottom: 12px; }
}

/* Very small phones */
@media (max-width: 360px) {
  .nav .bar { gap: 10px; }
  .nav .brand img { height: 19px; }
  .nav .links { gap: 10px; }
  .nav .links a { font-size: 13px; }
  .copy p, .copy .cta { font-size: 17px; }
  .about .statement { font-size: 28px; }
}

/* Talk to us: button and form */
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 28px; margin-top: 12px; }
.actions .cta { margin-top: 0; }
.btn {
  appearance: none;
  -webkit-appearance: none;
  border: 0;
  border-radius: 980px;
  background-color: #000;
  background-image: none;
  color: #fff;
  -webkit-text-fill-color: #fff;
  font: inherit;
  font-size: 17px;
  font-weight: 400;
  padding: 12px 24px;
  cursor: pointer;
  transition: background 0.2s;
}
.btn:hover { background-color: #333; }
.btn:disabled { opacity: 0.5; cursor: default; }
.btn:focus-visible, dialog input:focus-visible, dialog textarea:focus-visible, .close:focus-visible { outline: 3px solid rgba(0, 113, 227, 0.45); outline-offset: 2px; }

dialog {
  border: 0;
  border-radius: 20px;
  padding: 0;
  width: min(480px, calc(100vw - 32px));
  max-height: calc(100vh - 32px);
  max-height: calc(100dvh - 32px);
  overflow: auto;
  background: #fff;
  color: var(--text);
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.22);
  margin: auto;
}
dialog::backdrop { background: rgba(0, 0, 0, 0.35); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
dialog form { padding: 32px; position: relative; }
dialog h2 { font-size: 28px; font-weight: 600; letter-spacing: -0.02em; margin-bottom: 8px; padding-right: 64px; }
dialog .sub { color: var(--muted); font-size: 17px; line-height: 1.4; margin-bottom: 24px; }
dialog label { display: block; font-size: 14px; font-weight: 600; color: var(--muted); margin-bottom: 6px; }
dialog input[type="email"], dialog textarea {
  display: block;
  width: 100%;
  font: inherit;
  font-size: 17px;   /* 16px or more stops iOS from zooming on focus */
  color: var(--text);
  background: #f5f5f7;
  border: 1px solid transparent;
  border-radius: 12px;
  padding: 12px 14px;
  margin-bottom: 18px;
  -webkit-appearance: none;
  appearance: none;
}
dialog textarea { resize: vertical; min-height: 120px; }
dialog input::placeholder, dialog textarea::placeholder { color: #a1a1a6; }
dialog input:focus, dialog textarea:focus { background: #fff; border-color: var(--link); outline: none; }
.close {
  position: absolute; top: 28px; right: 28px;
  appearance: none; -webkit-appearance: none;
  background: none; border: 0; padding: 4px 0;
  font: inherit; font-size: 15px; color: var(--link); cursor: pointer;
}
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.status { min-height: 22px; font-size: 15px; margin-bottom: 14px; color: var(--muted); }
.status.ok { color: #1d8a3a; }
.status.error { color: #d70015; }
dialog .btn { width: 100%; }

@media (max-width: 860px) and (orientation: portrait), (max-width: 600px) {
  .actions { gap: 4px 24px; }
  .btn { font-size: 17px; }
  dialog form { padding: 24px 20px; }
  .close { top: 20px; right: 20px; }
}

/* For founders: same look as the Locals text on the main page */
.stats { display: flex; flex-wrap: wrap; gap: 24px 64px; margin-top: 36px; }
.stats > div { max-width: 260px; }
.stats .num { display: block; font-size: clamp(44px, 5vw, 64px); font-weight: 600; letter-spacing: -0.03em; line-height: 1.05; }
.stats .lbl { display: block; font-size: 16px; line-height: 1.4; color: var(--muted); margin-top: 8px; }
.about.cta-section { min-height: auto; padding-top: 48px; padding-bottom: 160px; }
.about.cta-section .statement { font-size: clamp(30px, 4vw, 56px); }

.about.fx p { font-size: 21px; line-height: 1.45; color: var(--text); max-width: 34em; }
.about.fx p.note { color: var(--muted); }
.about.fx p strong { font-weight: 600; }
.about.fx .statement { margin-bottom: 28px; }
.about.fx.cta-section .statement { font-size: clamp(30px, 4vw, 52px); }
@media (max-width: 860px) and (orientation: portrait), (max-width: 600px) {
  .about.fx p { font-size: 18px; line-height: 1.5; }
}
@media (max-height: 520px) and (orientation: landscape) {
  .about.fx p { font-size: 17px; }
}

/* About page: three linked rows, no lines or boxes */
.rows { margin: 8px 0 12px; }
a.row { display: block; color: var(--text); padding: 18px 0; }
a.row:hover { text-decoration: none; }
a.row .name { display: block; font-size: clamp(26px, 2.6vw, 34px); font-weight: 600; letter-spacing: -0.02em; line-height: 1.15; transition: color 0.2s; }
a.row .desc { display: block; font-size: 21px; line-height: 1.45; color: var(--muted); margin-top: 8px; max-width: 34em; }
a.row .more { display: inline-block; font-size: 17px; color: var(--link); margin-top: 10px; }
a.row:hover .name { color: var(--link); }
@media (max-width: 860px) and (orientation: portrait), (max-width: 600px) {
  a.row { padding: 14px 0; }
  a.row .name { font-size: 24px; }
  a.row .desc { font-size: 18px; line-height: 1.5; }
  a.row .more { font-size: 16px; padding: 6px 0; }
}
@media (max-height: 520px) and (orientation: landscape) {
  a.row .desc { font-size: 17px; }
}

/* Home page: text and logo side by side, smaller type */
.hero.home .statement { font-size: clamp(30px, 3.5vw, 51px); line-height: 1.1; font-weight: 600; letter-spacing: -0.03em; margin-bottom: 20px; max-width: none; }
.hero.home a.row { padding: 14px 0; }
.hero.home a.row .name { font-size: clamp(23px, 2.2vw, 32px); }
.hero.home a.row .desc { font-size: 20px; margin-top: 6px; }
.hero.home a.row .more { font-size: 18px; margin-top: 8px; }
.hero.home .actions { margin-top: 20px; }
@media (max-width: 860px) and (orientation: portrait), (max-width: 600px) {
  .hero.home .statement { font-size: clamp(28px, 7.8vw, 38px); }
  .hero.home a.row .name { font-size: 24px; }
  .hero.home a.row .desc { font-size: 18px; }
  .hero.home a.row .more { font-size: 16px; }
}
@media (max-height: 520px) and (orientation: landscape) {
  .hero.home .statement { font-size: clamp(24px, 3.3vw, 33px); }
  .hero.home a.row .desc { font-size: 17px; }
}

/* Home: title and rows on the left (wider column, title on two lines), logo on the right */
.hero.home { grid-template-columns: minmax(0, 1.85fr) minmax(0, 1fr); align-content: center; row-gap: 28px; }
.hero.home .statement { grid-column: 1; grid-row: 1; margin-bottom: 0; max-width: none; font-size: clamp(22px, 2.5vw, 36px); }
.hero.home .copy { grid-column: 1; grid-row: 2; }
.hero.home .art { grid-column: 2; grid-row: 1 / span 2; align-self: center; }
.hero.home .art img { max-height: 70vh; }
@media (max-width: 860px) and (orientation: portrait), (max-width: 600px) {
  .hero.home { grid-template-columns: 1fr; row-gap: 24px; }
  .hero.home .statement { font-size: clamp(26px, 7.4vw, 36px); }
  .hero.home a.row .name { font-size: 25px; }
  .hero.home a.row .desc { font-size: 19px; }
  .hero.home a.row .more { font-size: 17px; }
  .hero.home .statement, .hero.home .copy, .hero.home .art { grid-column: 1; grid-row: auto; }
  .hero.home .art img { max-height: 50vh; max-height: 50svh; }
}

/* Locals page: one type scale and one spacing scale (8px base) for the intro and every section.
   Line length 40em, section gap 96px, subsection gap 64px, paragraph gap 16px. */
.hero.lead { min-height: auto; align-items: start; grid-template-columns: minmax(0, 1fr); padding: 160px var(--gutter) 0; }
.hero.lead .copy { max-width: 960px; }
.sec { max-width: 1400px; margin: 0 auto; padding: 96px var(--gutter) 0; }
.sec .inner { max-width: 960px; }
.hero.lead .copy > :last-child, .sec .inner > :last-child, .sec .step > :last-child { margin-bottom: 0; }

.hero.lead .copy .title, .sec h2 {
  font-size: clamp(30px, 3.6vw, 52px); line-height: 1.08; font-weight: 600; letter-spacing: -0.03em;
  margin: 0 0 24px; max-width: 16em; text-wrap: balance;
}
.sec h3 { font-size: 21px; line-height: 1.3; font-weight: 600; letter-spacing: -0.015em; margin: 0 0 8px; }
.sec h3.sub { font-size: clamp(24px, 2.4vw, 32px); line-height: 1.15; letter-spacing: -0.02em; margin: 64px 0 12px; }
.hero.lead .copy p, .sec p { font-size: 21px; line-height: 1.5; margin: 0 0 16px; max-width: 40em; text-wrap: pretty; }
.hero.lead .copy p.note, .sec p.note { color: var(--muted); }
.hero.lead .actions { margin-top: 24px; }
.sec .step { margin-top: 40px; }
.nw { white-space: nowrap; }

code, .code { font-family: ui-monospace, "SF Mono", SFMono-Regular, Menlo, Consolas, monospace; letter-spacing: 0; }
p code { font-size: 0.82em; background: #f5f5f7; border-radius: 6px; padding: 2px 6px; overflow-wrap: anywhere; }
.code {
  display: block; background: #f5f5f7; border-radius: 14px; padding: 16px 20px; margin: 0 0 16px;
  font-size: 15px; line-height: 1.5; white-space: pre-wrap; overflow-wrap: anywhere;
  -webkit-user-select: all; user-select: all;
}
.sec .stats { margin: 40px 0 0; gap: 32px 64px; }
.sec.end { padding-top: 120px; padding-bottom: 160px; }
.sec.end .cta { display: inline-block; font-size: 21px; margin: 8px 0 0; }

.chart { margin: 24px 0; max-width: 840px; }
.chart .grp { margin-bottom: 20px; }
.chart .gl { display: flex; justify-content: space-between; gap: 16px; font-size: 17px; font-weight: 600; margin-bottom: 8px; }
.chart .ln { display: grid; grid-template-columns: 64px 1fr 44px; align-items: center; gap: 12px; margin-bottom: 6px; font-size: 15px; color: var(--muted); }
.chart .track { display: block; height: 14px; }
.chart .fill { display: block; height: 100%; min-width: 4px; border-radius: 7px; background: #d2d2d7; }
.chart .us .fill { background: var(--text); }
.chart .val { text-align: right; color: var(--text); font-variant-numeric: tabular-nums; }

.cmp { width: 100%; border-collapse: collapse; margin: 8px 0 0; }
.cmp th { text-align: left; font-size: 15px; font-weight: 600; color: var(--muted); padding: 0 24px 8px 0; }
.cmp td { font-size: 18px; line-height: 1.35; padding: 12px 24px 12px 0; vertical-align: top; }
.cmp td:first-child { font-weight: 600; max-width: 20em; }
.cmp td.gain, .cmp tr.us td { font-weight: 600; }
.cmp.servers td:first-child { white-space: nowrap; }

@media (max-width: 860px) and (orientation: portrait), (max-width: 600px) {
  .hero.lead { padding: 104px max(24px, env(safe-area-inset-right)) 0 max(24px, env(safe-area-inset-left)); }
  .sec { padding: 72px max(24px, env(safe-area-inset-right)) 0 max(24px, env(safe-area-inset-left)); }
  .hero.lead .copy .title, .sec h2 { font-size: clamp(28px, 7.6vw, 38px); max-width: none; margin-bottom: 16px; }
  .sec h3.sub { margin: 56px 0 8px; }
  .hero.lead .copy p, .sec p { font-size: 18px; line-height: 1.5; max-width: none; }
  .hero.lead .actions { margin-top: 20px; }
  .sec .step { margin-top: 32px; }
  .code { font-size: 14px; padding: 14px 16px; }
  .sec .stats { margin-top: 32px; gap: 24px 48px; }
  .sec.end { padding-top: 96px; padding-bottom: calc(112px + env(safe-area-inset-bottom)); }
  .sec.end .cta { font-size: 18px; padding: 12px 0; margin-top: 0; }
  .chart .ln { grid-template-columns: 54px 1fr 38px; gap: 10px; }
  .cmp thead { display: none; }
  .cmp, .cmp tbody, .cmp tr, .cmp td { display: block; width: auto; }
  .cmp tr { padding: 12px 0; }
  .cmp td { font-size: 17px; padding: 2px 0; max-width: none; }
  .cmp td:first-child { font-size: 18px; margin-bottom: 4px; }
  .cmp td[data-l]::before { content: attr(data-l) ": "; color: var(--muted); font-weight: 400; }
  .cmp td.gain:empty { display: none; }
}
@media (max-height: 520px) and (orientation: landscape) {
  .hero.lead { padding-top: 72px; }
  .sec { padding-top: 64px; }
  .hero.lead .copy p, .sec p { font-size: 17px; margin-bottom: 12px; }
}
@media (max-width: 360px) {
  .hero.lead .copy p, .sec p { font-size: 17px; }
}

/* For business page: two-column comparison and fact grid, same scale as the Locals page */
.sec p.spaced { margin-top: 24px; }
.sec .vs { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; margin-top: 40px; max-width: 840px; }
.sec .facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 48px; margin-top: 40px; max-width: 920px; }
.vs .lbl, .facts .lbl { font-size: 15px; font-weight: 600; color: var(--muted); margin-bottom: 10px; }
.vs .us .lbl { color: var(--text); }
.sec .vs p, .sec .facts p { font-size: 18px; line-height: 1.5; margin-bottom: 12px; max-width: none; }
.vs strong { font-weight: 600; }
.sec.end .actions { margin-top: 24px; }
@media (max-width: 860px) and (orientation: portrait), (max-width: 600px) {
  .sec .vs, .sec .facts { grid-template-columns: 1fr; gap: 32px; margin-top: 32px; }
  .sec .vs p, .sec .facts p { font-size: 17px; }
  .sec.end .actions { margin-top: 20px; }
}

/* Home: one short paragraph with links to the sections */
.hero.home .lede { font-size: 21px; line-height: 1.5; margin: 0; max-width: 38em; text-wrap: pretty; }
.hero.home .actions { margin-top: 28px; }
@media (max-width: 860px) and (orientation: portrait), (max-width: 600px) {
  .hero.home .lede { font-size: 19px; max-width: none; }
  .hero.home .actions { margin-top: 24px; }
}
@media (max-height: 520px) and (orientation: landscape) {
  .hero.home .lede { font-size: 17px; }
}
@media (max-width: 360px) {
  .hero.home .lede { font-size: 17px; }
}

/* Home: keep the headline and the paragraph together, centered next to the logo */
.hero.home .statement { align-self: end; }
.hero.home .copy { align-self: start; }

/* Header: the labels "Mac engine" and "GPU engine" stay on one row with the wordmark on phones */
@media (max-width: 430px) {
  .nav .bar { gap: 16px; }
  .nav .links { gap: 14px; }
  .nav .links a { font-size: 14px; }
}
@media (max-width: 360px) {
  .nav .bar { gap: 10px; }
  .nav .brand img { height: 18px; }
  .nav .links { gap: 10px; }
  .nav .links a { font-size: 13px; }
}

/* GPU engine page: results chart and tables, segments, calculator, calls to action */
.sec .inner.wide { max-width: 1160px; }
.sec .actions { margin-top: 24px; }
.sec .cta-line { margin-top: 56px; }
.sec .cta-line p { margin-bottom: 20px; }
.sec .cta-line .actions { margin-top: 0; }

.bench { margin: 16px 0 0; max-width: 840px; }
.legend { display: flex; flex-wrap: wrap; gap: 8px 24px; font-size: 15px; color: var(--muted); margin: 0 0 12px; }
.legend span { display: inline-flex; align-items: center; gap: 8px; }
.legend i { display: inline-block; width: 24px; height: 0; border-top: 2px solid #a1a1a6; }
.legend i.l2 { border-top-color: #6e6e73; border-top-style: dashed; }
.legend i.l3 { border-top: 3px solid var(--text); }
.legend .us { color: var(--text); font-weight: 600; }
#bench-plot svg { display: block; max-width: 100%; height: auto; }

.cmp.keep { max-width: 640px; }
.cmp .n { text-align: right; font-variant-numeric: tabular-nums; }
.cmp.num th.n { text-align: right; }
.cmp .hi { font-weight: 600; }

details.tech { margin-top: 32px; }
details.tech summary { display: inline-block; cursor: pointer; font-size: 21px; color: var(--link); padding: 8px 0; list-style: none; }
details.tech summary::-webkit-details-marker { display: none; }
details.tech summary::before { content: "+ "; }
details.tech[open] summary::before { content: "\2212  "; }
details.tech[open] summary { margin-bottom: 8px; }
details.tech h3 { margin: 32px 0 8px; font-size: 21px; }
details.tech p.note { margin-top: 12px; }

.segs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 48px; margin-top: 40px; }
.segs h3 { font-size: 21px; line-height: 1.25; margin-bottom: 16px; }
.segs ul, .papers { margin: 0; padding-left: 20px; }
.segs li { font-size: 17px; line-height: 1.5; margin-bottom: 12px; }
.papers { margin-top: 4px; }
.papers li { font-size: 18px; line-height: 1.5; margin-bottom: 8px; max-width: 40em; }
.sec .facts.two { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 40px 48px; max-width: 840px; }

.calc { margin-top: 32px; max-width: 840px; }
.calc .fields { display: flex; flex-wrap: wrap; gap: 16px 24px; }
.calc label { display: block; font-size: 15px; font-weight: 600; color: var(--muted); }
.calc input {
  display: block; margin-top: 6px; width: 220px; max-width: 100%;
  font: inherit; font-size: 21px; color: var(--text);
  background: #f5f5f7; border: 1px solid transparent; border-radius: 12px; padding: 12px 14px;
  -webkit-appearance: none; appearance: none;
}
.calc input:focus { background: #fff; border-color: var(--link); outline: none; }

@media (max-width: 860px) and (orientation: portrait), (max-width: 600px) {
  .sec .cta-line { margin-top: 44px; }
  .sec .actions { margin-top: 20px; }
  .cmp.keep thead { display: table-header-group; }
  .cmp.keep { display: table; }
  .cmp.keep tbody { display: table-row-group; }
  .cmp.keep tr { display: table-row; padding: 0; }
  .cmp.keep th, .cmp.keep td { display: table-cell; padding: 10px 10px 10px 0; font-size: 16px; }
  .cmp.keep th { font-size: 13px; padding-bottom: 8px; }
  .cmp.keep td:first-child { font-size: 16px; margin: 0; }
  .cmp.keep th:last-child, .cmp.keep td:last-child { padding-right: 0; }
  details.tech summary { font-size: 18px; }
  details.tech h3 { font-size: 18px; }
  .segs, .sec .facts.two { grid-template-columns: 1fr; gap: 40px; margin-top: 32px; }
  .papers li { font-size: 17px; }
  .calc input { width: 100%; font-size: 19px; }
  .calc .fields { flex-direction: column; }
}

/* Phones: thumb-sized touch areas (44px) without moving anything. Padding grows the tappable box, the negative margin gives the layout space back. */
@media (max-width: 860px) and (orientation: portrait), (max-width: 600px) {
  .nav .brand { padding: 10px 0; margin: -10px 0; }
  .nav .links a { padding: 14px 0; margin: -4px 0; }
  details.tech summary { padding: 12px 0; }
}
@media (max-height: 520px) and (orientation: landscape) {
  .nav .brand { padding: 9px 0; margin: -9px 0; }
  .nav .links a { padding: 13px 0; margin: -13px 0; }
  .copy .cta, .sec.end .cta { padding: 12px 0; margin-top: 0; margin-bottom: 0; }
  details.tech summary { padding: 12px 0; }
}
@media (max-width: 360px) {
  .nav .brand { padding: 13px 0; margin: -13px 0; }
}
