@font-face { font-family: Geologica; src: url(fonts/geologica-latin.woff2) format('woff2'); font-weight: 300 700; font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: Geologica; src: url(fonts/geologica-latin-ext.woff2) format('woff2'); font-weight: 300 700; font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: Readex; src: url(fonts/readex-arabic.woff2) format('woff2'); font-weight: 300 700; font-display: swap;
  unicode-range: U+0600-06FF, U+0750-077F, U+0870-088E, U+0890-0891, U+0897-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC; }
@font-face { font-family: Readex; src: url(fonts/readex-latin.woff2) format('woff2'); font-weight: 300 700; font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2212, U+FEFF, U+FFFD; }

:root {
  --navy: #001d29;
  --navy-2: #04293a;
  --navy-3: #0a3546;
  --teal: #008c95;
  --teal-hi: #3fc1c9;
  --mint: #e8f4f4;
  --mint-2: #a5c6c9;
  --lime: #c8f169;
  --paper: #fbfcfb;
  --ink: #0b1e26;
  --ink-2: #4a5f66;
  --rule: rgba(63, 193, 201, .22);
  --font: Geologica, 'Segoe UI', system-ui, sans-serif;
  --pad: clamp(20px, 5vw, 72px);
  --max: 1280px;
  color-scheme: dark;
}
:lang(ar) { --font: Readex, 'Segoe UI', Tahoma, sans-serif; }

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; background: var(--navy); color: var(--mint); font: 400 17px/1.6 var(--font); font-feature-settings: 'tnum' 0; text-rendering: optimizeLegibility; }
:lang(ar) body { font-size: 18px; line-height: 1.8; }
::selection { background: var(--teal); color: #fff; }
img { max-width: 100%; display: block; }
a { color: var(--teal-hi); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { color: var(--mint); }
:focus-visible { outline: 2px solid var(--lime); outline-offset: 3px; border-radius: 2px; }
h1, h2, h3 { margin: 0; font-weight: 600; text-wrap: balance; letter-spacing: -0.02em; }
:lang(ar) :is(h1, h2, h3) { letter-spacing: 0; font-weight: 600; }
p { margin: 0; text-wrap: pretty; }
b, output, [data-out], td, .tnum { font-variant-numeric: tabular-nums; }
html { scrollbar-color: var(--navy-3) var(--navy); }

.skip { position: absolute; inset-inline-start: 12px; top: -60px; background: var(--lime); color: var(--navy); padding: 8px 14px; z-index: 20; border-radius: 4px; }
.skip:focus { top: 12px; }

/* ---- buttons -------------------------------------------------------------------------------------------------- */
.btn { display: inline-flex; align-items: center; gap: 10px; min-height: 48px; padding: 0 22px; border: 0; border-radius: 999px; background: var(--teal); color: #fff;
  font: 600 16px/1 var(--font); text-decoration: none; cursor: pointer; transition: background-color .2s, transform .2s cubic-bezier(.2, .8, .2, 1);
  box-shadow: 0 1px 0 rgba(255, 255, 255, .18) inset, 0 8px 24px -10px rgba(0, 140, 149, .9); }
.btn:hover { background: #009ea8; color: #fff; transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn[disabled] { opacity: .6; cursor: progress; transform: none; }
.btn-small { min-height: 38px; padding: 0 16px; font-size: 14px; box-shadow: none; }
.link-arrow { color: var(--mint); font-weight: 500; text-decoration: none; border-bottom: 1px solid var(--rule); padding-bottom: 2px; }
.link-arrow::after { content: ''; display: inline-block; width: 7px; height: 7px; margin-inline-start: 10px; border: solid currentColor; border-width: 0 1.5px 1.5px 0; transform: translateY(-2px) rotate(45deg); }
.link-arrow:hover { border-color: var(--teal-hi); }

/* ---- header --------------------------------------------------------------------------------------------------- */
.top { position: sticky; top: 0; z-index: 10; display: flex; align-items: center; gap: 28px; padding: 14px var(--pad); background: var(--navy);
  border-bottom: 1px solid transparent; transition: border-color .3s; }
.top.scrolled { border-bottom-color: var(--rule); }
.brand img { width: 118px; height: auto; }
.nav { display: flex; gap: 26px; margin-inline-start: auto; font-size: 15px; }
.nav a { color: var(--mint-2); text-decoration: none; }
.nav a:hover { color: var(--mint); }
.langs { display: flex; gap: 2px; font-size: 13px; }
.langs a { color: var(--mint-2); text-decoration: none; padding: 4px 7px; border-radius: 4px; }
.langs a[aria-current] { color: var(--navy); background: var(--mint); }
.top .langs a { font-weight: 500; }

/* ---- hero ----------------------------------------------------------------------------------------------------- */
.hero { max-width: var(--max); margin: 0 auto; padding: clamp(28px, 5vh, 64px) var(--pad) 40px; display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(24px, 4vw, 64px); align-items: center; }
.hero h1 { font-size: clamp(2.5rem, 5vw, 4.4rem); line-height: 1.02; letter-spacing: -0.035em; max-width: 11ch; }
:lang(ar) .hero h1 { line-height: 1.25; max-width: 13ch; font-size: clamp(2.3rem, 4.4vw, 3.9rem); }
.lede { margin-top: 26px; font-size: clamp(1.05rem, 1.35vw, 1.2rem); color: var(--mint-2); max-width: 44ch; }
.actions { display: flex; align-items: center; gap: 26px; margin-top: 34px; flex-wrap: wrap; }

.lens-wrap { margin: 0; display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: 'lens ro' 'ctl ctl' 'cap cap'; column-gap: 8px; align-items: center; }
.lens { grid-area: lens; position: relative; width: min(100%, 600px, 66vh); aspect-ratio: 1; justify-self: end; border-radius: 50%; isolation: isolate;
  background: radial-gradient(circle at 50% 44%, #12485a 0%, #06303f 42%, #011b26 72%, #000c12 100%);
  box-shadow: 0 0 0 1px rgba(63, 193, 201, .4), 0 0 0 10px #021620, 0 0 0 11px rgba(63, 193, 201, .18), 0 40px 90px -30px #000; }
.lens canvas, .lens-still { position: absolute; inset: 0; width: 100%; height: 100%; border-radius: 50%; }
.lens canvas { cursor: grab; touch-action: pan-y; opacity: 0; transition: opacity .8s ease-out; }
.lens canvas:active { cursor: grabbing; }
.lens.is-live canvas { opacity: 1; }
.lens.is-live .lens-still { opacity: 0; transition: opacity .8s ease-out; }
.lens::after { content: ''; position: absolute; inset: 0; border-radius: 50%; pointer-events: none; box-shadow: inset 0 0 60px 18px rgba(0, 8, 12, .75); }
.graticule { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 1; }
.graticule line { stroke: var(--teal-hi); stroke-width: .35; opacity: .55; }
.graticule line.major { stroke-width: .55; opacity: .9; }
.graticule .cross { stroke: var(--teal-hi); stroke-width: .25; opacity: .25; }
.scalebar { position: absolute; z-index: 2; bottom: 13%; left: 50%; transform: translateX(-50%); display: grid; justify-items: center; gap: 2px; font-size: 11px; color: var(--mint-2); letter-spacing: .04em; }
.scalebar i { display: block; height: 6px; width: calc(var(--px-per-cm, 26) * 1px); border: solid var(--mint); border-width: 0 1px 1px; }
.views { position: absolute; z-index: 2; top: 9%; left: 50%; transform: translateX(-50%); display: flex; gap: 2px; padding: 3px; border-radius: 999px; background: rgba(0, 20, 28, .72);
  box-shadow: 0 0 0 1px var(--rule); }
.views button { font: 500 12px/1 var(--font); color: var(--mint-2); background: none; border: 0; padding: 7px 11px; border-radius: 999px; cursor: pointer; }
.views button:hover { color: var(--mint); }
.views button[aria-pressed='true'] { background: var(--mint); color: var(--navy); }

.readouts { grid-area: ro; margin: 0; display: grid; gap: 26px; align-self: center; min-width: 9.5em; }
.ro { position: relative; padding-inline-start: 16px; }
.ro::before { content: ''; position: absolute; inset-inline-start: 0; top: 7px; bottom: 6px; width: 1px; background: var(--teal-hi); }
.ro::after { content: ''; position: absolute; inset-inline-start: -26px; top: 13px; width: 26px; height: 1px; background: linear-gradient(to left, var(--teal-hi), transparent); }
:dir(rtl) .ro::after { background: linear-gradient(to right, var(--teal-hi), transparent); }
.ro-area { margin-inline-start: -34px; } .ro-hairs { margin-inline-start: -34px; }
.ro dt { font-size: 12.5px; color: var(--mint-2); letter-spacing: .02em; }
.ro dd { margin: 2px 0 0; font-size: 15px; color: var(--mint-2); white-space: nowrap; }
.ro b { font-size: clamp(1.7rem, 2.6vw, 2.3rem); font-weight: 500; color: var(--mint); letter-spacing: -0.02em; transition: color .5s; }
.ro b.changed { color: var(--lime); transition: none; }
.ro-grafts b { font-size: clamp(2.3rem, 3.6vw, 3.2rem); font-weight: 600; }

.controls { grid-area: ctl; display: flex; gap: 28px; align-items: end; flex-wrap: wrap; justify-content: center; margin-top: 26px; }
.slider { display: grid; gap: 8px; width: min(100%, 340px); font-size: 14px; color: var(--mint-2); }
.slider output { color: var(--lime); font-weight: 600; font-size: 16px; }
input[type='range'] { -webkit-appearance: none; appearance: none; width: 100%; height: 28px; margin: 0; background: transparent; cursor: pointer; }
input[type='range']::-webkit-slider-runnable-track { height: 14px; border-bottom: 1px solid var(--teal-hi);
  background: repeating-linear-gradient(to right, var(--teal-hi) 0 1px, transparent 1px 10%) bottom / 100% 6px no-repeat,
              repeating-linear-gradient(to right, rgba(63, 193, 201, .5) 0 1px, transparent 1px 2%) bottom / 100% 3px no-repeat; }
input[type='range']::-moz-range-track { height: 14px; border-bottom: 1px solid var(--teal-hi);
  background: repeating-linear-gradient(to right, var(--teal-hi) 0 1px, transparent 1px 10%) bottom / 100% 6px no-repeat; }
input[type='range']::-webkit-slider-thumb { -webkit-appearance: none; width: 14px; height: 24px; margin-top: 2px; border: 0; border-radius: 3px; background: var(--lime);
  box-shadow: 0 2px 8px rgba(0, 0, 0, .5); }
input[type='range']::-moz-range-thumb { width: 18px; height: 22px; border: 0; border-radius: 3px; background: var(--lime); }
.density { border: 0; padding: 0; margin: 0; display: flex; gap: 4px; align-items: center; font-size: 14px; color: var(--mint-2); }
.density legend { float: inline-start; margin-inline-end: 10px; padding: 0; }
.density label { position: relative; }
.density input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.density span { display: block; padding: 6px 12px; border-radius: 999px; box-shadow: 0 0 0 1px var(--rule); font-weight: 500; color: var(--mint); }
.density input:checked + span { background: var(--mint); color: var(--navy); box-shadow: none; }
.density input:focus-visible + span { outline: 2px solid var(--lime); outline-offset: 2px; }
.lens-wrap figcaption { grid-area: cap; margin: 18px auto 0; max-width: 56ch; text-align: center; font-size: 13px; color: var(--mint-2); opacity: .85; }

/* ---- section rhythm ------------------------------------------------------------------------------------------- */
main > section:not(.hero) { max-width: var(--max); margin: 0 auto; padding: clamp(72px, 11vw, 140px) var(--pad) 0; }
main > section:not(.hero, .demo) h2 { font-size: clamp(2rem, 3.6vw, 3.1rem); line-height: 1.08; max-width: 18ch; }
:lang(ar) main > section h2 { line-height: 1.35; }
.section-lede { margin-top: 18px; color: var(--mint-2); max-width: 52ch; font-size: 1.1rem; }

/* a measuring rule as the section divider */
.how, .plan, .show, .report, .account { position: relative; }
.how::before { content: ''; position: absolute; top: 0; inset-inline: var(--pad); height: 9px; border-top: 1px solid var(--rule);
  background: repeating-linear-gradient(to right, var(--rule) 0 1px, transparent 1px 12px) top / 100% 5px no-repeat,
              repeating-linear-gradient(to right, rgba(63, 193, 201, .45) 0 1px, transparent 1px 120px) top / 100% 9px no-repeat; }

/* ---- how ------------------------------------------------------------------------------------------------------ */
.track { list-style: none; margin: 56px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(24px, 4vw, 56px); position: relative; }
.track::before { content: ''; position: absolute; top: 150px; inset-inline: 12% 12%; height: 1px; background: repeating-linear-gradient(to right, var(--teal-hi) 0 6px, transparent 6px 12px); opacity: .5; }
:dir(rtl) .track::before { background: repeating-linear-gradient(to left, var(--teal-hi) 0 6px, transparent 6px 12px); }
.track li { position: relative; }
.track h3 { margin-top: 28px; font-size: 1.3rem; }
.track p { margin-top: 10px; color: var(--mint-2); max-width: 36ch; }
.track li > div { height: 300px; display: grid; place-items: center; position: relative; z-index: 1; }
.phone { width: 150px; height: 300px; border-radius: 30px; padding: 9px; background: #0c1a20; box-shadow: 0 0 0 1px rgba(165, 198, 201, .25), 0 30px 50px -24px #000; }
.phone-screen { height: 100%; border-radius: 22px; background: radial-gradient(circle at 50% 40%, #233c45, #0b161b 70%); display: grid; place-items: center; align-content: center; gap: 14px; text-align: center; padding: 14px; }
.orbit { width: 104px; }
.orbit circle { fill: none; stroke: rgba(232, 244, 244, .18); stroke-width: 3; }
.orbit circle.done { stroke: var(--teal-hi); stroke-linecap: round; transform: rotate(-90deg); transform-origin: 50% 50%; }
:dir(rtl) .orbit circle.done { transform: rotate(-90deg) scaleY(-1); }
.orbit .marks line { stroke: var(--mint); stroke-width: 1; opacity: .5; }
.phone-hint { font-size: 11.5px; line-height: 1.35; color: var(--mint); }
.phone-count { font-size: 11px; color: var(--teal-hi); font-variant-numeric: tabular-nums; }
.mesh-tile, .plan-tile { }
.mesh-tile img, .plan-tile img { width: 260px; height: 260px; border-radius: 50%; background: radial-gradient(circle at 50% 45%, #0f4152, #021c27 75%);
  box-shadow: 0 0 0 1px var(--rule); object-fit: cover; }

/* ---- plan ----------------------------------------------------------------------------------------------------- */
.plan { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(32px, 6vw, 96px); align-items: start; }
.plan-copy > p { margin-top: 22px; color: var(--mint-2); max-width: 46ch; }
.ticks { list-style: none; margin: 30px 0 0; padding: 0; display: grid; gap: 0; }
.ticks li { padding: 12px 0; padding-inline-start: 30px; border-top: 1px solid var(--rule); position: relative; }
.ticks li::before { content: ''; position: absolute; inset-inline-start: 0; top: 22px; width: 16px; height: 1px; background: var(--teal-hi); }
.ticks li::after { content: ''; position: absolute; inset-inline-start: 0; top: 18px; width: 1px; height: 9px; background: var(--teal-hi); }
.sheet-table { background: var(--navy-2); border-radius: 6px; padding: clamp(20px, 3vw, 34px); box-shadow: 0 0 0 1px var(--rule); margin-top: 6px; }
table { width: 100%; border-collapse: collapse; font-size: 15px; }
.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
th, td { padding: 13px 8px; text-align: end; border-bottom: 1px solid var(--rule); white-space: nowrap; }
tbody th, tfoot th { white-space: normal; }
th:first-child { text-align: start; padding-inline-start: 0; }
td:last-child, th:last-child { padding-inline-end: 0; }
thead th { font-size: 12.5px; font-weight: 500; color: var(--mint-2); }
tbody th { font-weight: 500; }
tfoot th, tfoot td { border-bottom: 0; font-weight: 600; font-size: 17px; padding-top: 16px; }
tfoot td:last-child b { font-size: 22px; font-weight: 600; color: var(--mint); transition: color .5s; }
tfoot td:last-child b.changed { color: var(--lime); transition: none; }
.sw { display: inline-block; width: 10px; height: 10px; border-radius: 2px; margin-inline-end: 10px; vertical-align: 0; }
.sw-front { background: var(--teal-hi); } .sw-mid { background: var(--teal); }
.table-note { margin-top: 14px; font-size: 13px; color: var(--mint-2); }

/* ---- show ----------------------------------------------------------------------------------------------------- */
.show { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: clamp(32px, 6vw, 96px); align-items: center; }
.compare { position: relative; aspect-ratio: 1; border-radius: 50%; overflow: hidden; background: radial-gradient(circle at 50% 44%, #12485a, #021a24 72%);
  box-shadow: 0 0 0 1px var(--rule), 0 30px 80px -30px #000; --split: 50%; max-width: 540px; width: 100%; justify-self: center; }
.compare::before { content: ''; position: absolute; inset: 0; border-radius: 50%; z-index: 1; pointer-events: none; box-shadow: inset 0 0 50px 14px rgba(0, 8, 12, .7); }
.compare img { position: absolute; inset: 0; width: 100%; height: 100%; }
.compare .after { clip-path: inset(0 0 0 var(--split)); }
:dir(rtl) .compare .after { clip-path: inset(0 var(--split) 0 0); }
.compare::after { content: ''; position: absolute; top: 0; bottom: 0; inset-inline-start: var(--split); width: 1px; background: var(--mint); pointer-events: none; }
.compare .handle { position: absolute; z-index: 2; top: 50%; inset-inline-start: var(--split); width: 34px; height: 34px; margin-inline-start: -17px; margin-top: -17px; border-radius: 50%;
  border: 1px solid var(--mint); background: rgba(0, 20, 28, .55); pointer-events: none; }
.compare .handle::before, .compare .handle::after { content: ''; position: absolute; background: var(--mint); }
.compare .handle::before { left: 50%; top: 6px; bottom: 6px; width: 1px; }
.compare .handle::after { top: 50%; left: 6px; right: 6px; height: 1px; opacity: .5; }
.compare input { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: ew-resize; margin: 0; }
.compare input:focus-visible ~ .tag { outline: none; }
.compare:has(input:focus-visible) { outline: 2px solid var(--lime); outline-offset: 4px; }
.tag { position: absolute; z-index: 2; top: 50%; font-size: 12px; padding: 4px 10px; border-radius: 999px; background: rgba(0, 20, 28, .78); color: var(--mint); pointer-events: none; }
.tag-before { inset-inline-start: 12%; } .tag-after { inset-inline-end: 12%; }
.show-copy > p { margin-top: 22px; color: var(--mint-2); max-width: 46ch; }
.styles-label { margin-top: 28px !important; font-size: 13px; color: var(--teal-hi) !important; }
.styles { list-style: none; margin: 10px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px 20px; font-size: 15px; color: var(--mint); }
.styles li { padding: 0 2px 5px; border-bottom: 1px solid var(--rule); position: relative; }
.styles li::before { content: ''; position: absolute; bottom: 0; inset-inline-start: 0; width: 1px; height: 6px; background: var(--teal-hi); }
.fine { font-size: 13px !important; opacity: .85; }

/* ---- report --------------------------------------------------------------------------------------------------- */
.report { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 6fr); gap: clamp(32px, 6vw, 96px); align-items: center; }
.report-copy p { margin-top: 22px; color: var(--mint-2); max-width: 42ch; }
.paper { background: var(--paper); color: var(--ink); border-radius: 3px; padding: clamp(22px, 3.4vw, 44px); font-size: 13px; line-height: 1.5;
  box-shadow: 0 2px 4px rgba(0, 0, 0, .3), 0 40px 80px -30px rgba(0, 0, 0, .9); max-width: 620px; justify-self: center; width: 100%; color-scheme: light; }
.paper header { display: grid; padding-bottom: 12px; border-bottom: 3px solid var(--teal); }
.paper header strong { font-size: 20px; color: var(--teal); font-weight: 700; letter-spacing: -0.01em; }
.paper header span { color: var(--ink-2); font-size: 12px; }
.paper h3 { font-size: 17px; margin-top: 18px; letter-spacing: -0.01em; }
.paper-meta { margin-top: 6px; color: var(--ink-2); display: flex; gap: 6px; flex-wrap: wrap; }
.paper-meta b { color: var(--ink); font-weight: 600; }
.paper-meta b:nth-of-type(2) { margin-inline-start: 14px; }
.paper-views { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 16px; }
.paper-views figure { margin: 0; }
.paper-views img { width: 100%; aspect-ratio: 1; border-radius: 4px; background: #e9eeee; box-shadow: inset 0 0 0 1px #dfe6e6; }
.paper-views figcaption { text-align: center; font-size: 11px; color: var(--ink-2); margin-top: 4px; }
.paper-sum { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 16px 0 0; }
.paper-sum div { background: #eff3f3; border-radius: 4px; padding: 9px 12px; display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
.paper-sum dt { color: var(--ink-2); font-size: 11.5px; }
.paper-sum dd { margin: 0; font-weight: 700; font-size: 14px; font-variant-numeric: tabular-nums; }
.paper-foot { margin-top: 16px; padding-top: 10px; border-top: 1px solid #dfe6e6; color: var(--ink-2); font-size: 10.5px; }

/* ---- account -------------------------------------------------------------------------------------------------- */
.facts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(20px, 3vw, 40px); margin: 44px 0 0; }
.facts div { border-top: 1px solid var(--teal-hi); padding-top: 18px; position: relative; }
.facts div::before { content: ''; position: absolute; top: -5px; inset-inline-start: 0; width: 1px; height: 9px; background: var(--teal-hi); }
.facts dt { font-weight: 600; font-size: 1.05rem; }
.facts dd { margin: 8px 0 0; color: var(--mint-2); font-size: 15.5px; }

/* ---- demo: a ruled form on the instrument's own field -------------------------------------------------------- */
main > section.demo { margin-top: clamp(72px, 10vw, 130px); padding-bottom: clamp(72px, 10vw, 130px); display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 6fr); gap: clamp(32px, 6vw, 96px); position: relative; }
.demo::before { content: ''; position: absolute; top: 0; inset-inline: var(--pad); height: 9px; border-top: 1px solid var(--teal-hi);
  background: repeating-linear-gradient(to right, var(--teal-hi) 0 1px, transparent 1px 12px) top / 100% 5px no-repeat; opacity: .8; }
.demo h2 { font-size: clamp(2.2rem, 4vw, 3.4rem); line-height: 1.05; max-width: 12ch; }
:lang(ar) .demo h2 { line-height: 1.3; }
.demo-copy p { margin-top: 20px; color: var(--mint-2); max-width: 40ch; }
.demo-form { display: grid; grid-template-columns: 1fr 1fr; gap: 26px 28px; }
.demo-form label { display: grid; gap: 4px; font-size: 13px; font-weight: 500; color: var(--mint-2); position: relative; }
.demo-form label:has([required]) > span::after { content: ' *'; color: var(--teal-hi); }
.demo-form .wide { grid-column: 1 / -1; }
.demo-form input, .demo-form textarea { font: 400 17px/1.4 var(--font); color: var(--mint); background: transparent; border: 0; border-bottom: 1px solid var(--mint-2); border-radius: 0;
  padding: 8px 0 9px; width: 100%; transition: border-color .15s, box-shadow .15s; caret-color: var(--lime); }
.demo-form label:not(.hp, .wide)::after, .demo-form label.wide:has(textarea)::after { content: ''; position: absolute; bottom: 0; inset-inline-end: 0; width: 1px; height: 7px; background: var(--mint-2); }
.demo-form input:focus, .demo-form textarea:focus { outline: none; border-bottom-color: var(--lime); box-shadow: 0 1px 0 var(--lime); }
.demo-form [aria-invalid='true'] { border-bottom-color: #ff8a80; }
.demo-form textarea { resize: vertical; min-height: 64px; }
:lang(ar) .demo-form input[dir='ltr'] { text-align: right; }
.privacy { font-size: 13px; color: var(--mint-2); }
.form-end { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.form-msg { font-size: 15px; }
.form-msg.err { color: #ff9e95; }
.form-msg.ok { color: var(--lime); font-weight: 600; }
.hp { position: absolute; inset-inline-start: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* ---- footer --------------------------------------------------------------------------------------------------- */
.foot { padding: 48px var(--pad) 56px; display: grid; grid-template-columns: auto 1fr auto; gap: 10px 36px; align-items: center; font-size: 14px; color: var(--mint-2);
  max-width: var(--max); margin: 0 auto; }
.foot img { width: 104px; height: auto; }
.credits { grid-column: 2; font-size: 12.5px; opacity: .85; }
.foot .langs { grid-column: 3; grid-row: 1 / span 2; font-size: 14px; }

/* ---- smaller screens ------------------------------------------------------------------------------------------ */
@media (max-width: 1080px) {
  .nav { display: none; }
  .langs { margin-inline-start: auto; }
  .hero { grid-template-columns: 1fr; }
  .hero-copy { max-width: 640px; }
  .lens { justify-self: center; }
  .facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 860px) {
  .plan, .show, .report, main > section.demo { grid-template-columns: 1fr; }
  .demo-form { grid-template-columns: 1fr; }
  .track { grid-template-columns: 1fr; gap: 56px; }
  .track::before { display: none; }
  .track li > div { height: auto; justify-content: start; }
  .show .compare { order: 2; }
  .foot { grid-template-columns: 1fr; }
  .credits, .foot .langs { grid-column: 1; grid-row: auto; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .hero { padding-top: 20px; }
  .hero h1 { font-size: clamp(2.2rem, 10vw, 2.8rem); }
  .lede { margin-top: 18px; font-size: 1rem; }
  .actions { margin-top: 24px; gap: 18px; }
  .top { gap: 12px; padding-block: 10px; }
  .brand img { width: 100px; }
  .top .btn-small { display: none; }
  .lens-wrap { grid-template-columns: 1fr; grid-template-areas: 'lens' 'ro' 'ctl' 'cap'; }
  .lens { width: min(100%, 440px); }
  .lens-wrap { grid-template-areas: 'lens' 'ctl' 'cap'; }
  .readouts { grid-area: lens; z-index: 3; align-self: end; justify-self: center; width: min(100%, 440px); min-width: 0; display: flex; justify-content: space-between; align-items: end;
    padding: 0 7% 3%; gap: 0; pointer-events: none; }
  .ro { padding: 0; text-align: center; }
  .ro::before, .ro::after { display: none; }
  .ro-area, .ro-hairs { margin: 0; transform: translateY(-40%); }
  .ro dt { font-size: 11px; }
  .ro dd { font-size: 12px; }
  .ro b { font-size: 1.25rem; text-shadow: 0 1px 8px #000; } .ro-grafts b { font-size: 1.7rem; }
  .ro-grafts { background: rgba(0, 18, 26, .86); padding: 6px 14px 4px; border-radius: 10px; box-shadow: 0 0 0 1px var(--rule); }
  .ro-grafts dt { color: var(--mint); }
  .scalebar { bottom: auto; top: 24%; left: 13%; transform: none; }
  .lens canvas, .lens-still { transform: translateY(-7%); }
  .controls { justify-content: start; }
  .facts { grid-template-columns: 1fr; }
  .paper-sum { grid-template-columns: 1fr; }
  th, td { padding-inline: 4px; font-size: 13.5px; }
  thead th:nth-child(3), tbody td:nth-child(3), tfoot td:nth-child(3), thead th:nth-child(4), tbody td:nth-child(4), tfoot td:nth-child(4) { display: none; }
  .sheet-table { padding: 18px 16px; }
}
