/* Airview Studio landing system.
   Mobile first. tokens.css is the app's tokens, site.css the shared base (buttons, chips, lockup).
   One 8px spacing scale, six type sizes, one content width and gutter, one panel, one caption,
   one header. Page layouts live in e.css (landing) and the page's own style block (start). */

:root {
  /* spacing: 8px scale, 4px half step */
  --s-0: 4px; --s-1: 8px; --s-2: 16px; --s-3: 24px; --s-4: 32px; --s-5: 48px; --s-6: 64px; --s-7: 96px;
  /* type: six sizes, the two display sizes step up at 700 and 1000 */
  --fs-1: 11px;   /* caps labels, chips, mono micro */
  --fs-2: 13px;   /* buttons, meta, captions, small figures */
  --fs-3: 16px;   /* body, figures */
  --fs-4: 20px;   /* leads (desktop), beat and card titles */
  --fs-5: 28px;   /* section headings, big figures */
  --fs-6: 32px;   /* hero (phones: two lines, so the CTA and the map share the first screen) */
  --lh-display: 1.06; --lh-head: 1.15; --lh-body: 1.5;
  --tr-caps: 0.14em; --tr-display: -0.03em;
  /* layout */
  --max: 1200px;
  --gut: max(16px, var(--sal), var(--sar));
  --edge: max(var(--gut), calc((100% - var(--max)) / 2 + var(--gut)));
  --sat: env(safe-area-inset-top, 0px);
  --sab: env(safe-area-inset-bottom, 0px);
  --sal: env(safe-area-inset-left, 0px);
  --sar: env(safe-area-inset-right, 0px);
  --bar: 56px;                                   /* header row */
  --hdr: calc(var(--bar) + 44px + var(--sat));   /* header with the section nav row */
  --dock: calc(64px + var(--sab));
  --dock-zone: calc(var(--dock) + var(--s-2));   /* the strip the dock reserves at the bottom of the viewport */
  --band: var(--s-6);
  /* surfaces */
  --panel-bg: #0e0e0d;
  --panel-glass: rgba(12, 12, 11, 0.92);
  --panel-line: var(--rule-2);
  --radius: 12px;
  --radius-ctl: 8px;
  --t-fast: 160ms; --t-med: 320ms; --ease-f: cubic-bezier(0.2, 0.7, 0.2, 1);
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: calc(var(--hdr) + var(--s-2)); scroll-padding-bottom: var(--dock-zone); -webkit-tap-highlight-color: rgba(117, 225, 243, 0.16); }
body { margin: 0; font: 400 var(--fs-3)/var(--lh-body) var(--font-ui); -webkit-font-smoothing: antialiased; overflow-x: clip; overscroll-behavior-y: none; }
img, video, canvas { max-width: 100%; }
p { margin: 0; }
h1, h2, h3 { margin: 0; text-wrap: balance; }
/* skip link: off screen until focused, then a real 44px control */
.skip { position: fixed; z-index: 200; top: calc(var(--sat) + 6px); left: max(8px, var(--sal)); display: inline-flex; align-items: center; min-height: 44px; padding: 0 var(--s-2); border-radius: var(--radius-ctl); background: #fff; color: #000; font: 600 var(--fs-2)/1 var(--font-label); letter-spacing: var(--tr-caps); text-transform: uppercase; text-decoration: none; transform: translateY(calc(-100% - 24px)); }
.skip:focus { transform: none; }
#main:focus { outline: none; }
button, .btn, summary, [role=tab] { -webkit-tap-highlight-color: transparent; }
.wrap { width: 100%; max-width: calc(var(--max) + 2 * var(--gut)); margin: 0 auto; padding: 0 var(--gut); }

/* ---------- type ---------- */
.tag, .label { font: 600 var(--fs-1)/1.2 var(--font-label); letter-spacing: var(--tr-caps); text-transform: uppercase; color: var(--fg-3); }
.tag--accent, .label--accent { color: var(--accent); }
.label b { color: var(--fg); font-weight: 600; }
h1 { font: 700 var(--fs-6)/var(--lh-display) var(--font-ui); letter-spacing: var(--tr-display); }
h2 { font: 700 var(--fs-5)/var(--lh-head) var(--font-ui); letter-spacing: -0.02em; max-width: 24ch; }
h3 { font: 700 var(--fs-4)/var(--lh-head) var(--font-ui); letter-spacing: -0.015em; }
.lead { font-size: var(--fs-3); line-height: var(--lh-body); color: var(--fg-2); max-width: 58ch; }
.fine, .meta { font-size: var(--fs-2); line-height: 1.45; color: var(--fg-3); }
.num { font-family: var(--font-mono); font-variant-numeric: tabular-nums slashed-zero; }

/* section anatomy: tag -> heading -> one sentence -> the panel or recording */
.band { position: relative; padding: var(--band) 0; background: var(--ground); }
.band + .band { border-top: 1px solid var(--rule); }
.shead { display: grid; gap: var(--s-2); margin-bottom: var(--s-4); }
.shead .tag { margin-bottom: calc(-1 * var(--s-1)); }

/* ---------- controls ---------- */
.btn { --h: 44px; font-size: var(--fs-2); border-radius: var(--radius-ctl); padding: 0 var(--s-2); }
.btn--lg { --h: 52px; padding: 0 var(--s-3); font-size: var(--fs-2); }
.btn--sm { gap: var(--s-1); padding: 0 12px; }
.panel__actions .btn { flex: 1 1 auto; }
.btn svg { width: 14px; height: 14px; flex: none; }
.chip, .chip--sm, .chip--lg { height: 24px; padding: 0 var(--s-1); font-size: var(--fs-1); gap: 6px; }
.chip .num { font-size: var(--fs-1); }
.row { display: flex; flex-wrap: wrap; gap: var(--s-1); }
.ticks { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--s-1); }
.ticks li { position: relative; padding-left: var(--s-3); color: var(--fg-2); }
.ticks li::before { content: ""; position: absolute; left: 2px; top: 0.6em; width: 9px; height: 5px; border-left: 1.5px solid var(--fg-3); border-bottom: 1.5px solid var(--fg-3); transform: rotate(-45deg); }

/* ---------- the one panel ---------- */
.panel { min-width: 0; border: 1px solid var(--panel-line); border-radius: var(--radius); background: var(--panel-bg); overflow: hidden; }
.panel--glass { background: var(--panel-glass); border-color: var(--glass-border); box-shadow: var(--shadow-glass); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); }
.panel__head { display: flex; align-items: center; justify-content: space-between; gap: var(--s-1); min-height: 40px; padding: 0 var(--s-2); border-bottom: 1px solid var(--rule); }
.panel__head > .num { font-size: var(--fs-2); color: var(--fg-3); }
.panel__body { padding: var(--s-2); display: grid; gap: var(--s-2); align-content: start; }
.panel__body > p { color: var(--fg-2); }
.panel__actions { display: flex; gap: var(--s-1); padding: var(--s-2); border-top: 1px solid var(--rule); }
.panel__foot { padding: var(--s-1) var(--s-2); border-top: 1px solid var(--rule); font: 500 var(--fs-1)/1.4 var(--font-mono); color: var(--fg-3); }
.lines { list-style: none; margin: 0; padding: 0; }
.lines li { display: grid; grid-template-columns: 56px minmax(0, 1fr) auto; gap: var(--s-2); align-items: center; min-height: 56px; padding: var(--s-1) var(--s-2); border-bottom: 1px solid var(--rule); color: var(--fg-2); }
.lines li:last-child { border-bottom: 0; }
.lines li b { color: var(--fg); font-weight: 500; }
.lines .sub { display: block; font-size: var(--fs-2); color: var(--fg-3); }
.lines--fresh li { grid-template-columns: 120px minmax(0, 1fr); }
.lines.lines--fresh li > .chip { justify-self: start; }
.code { font: 600 var(--fs-2)/1 var(--font-mono); color: var(--fg); }

/* ---------- recordings: one device frame per kind, one caption ---------- */
.rec { margin: 0 auto; display: grid; gap: var(--s-2); justify-items: start; width: fit-content; max-width: 100%; }
.rec figcaption { display: grid; gap: 2px; font-size: var(--fs-2); line-height: 1.4; color: var(--fg-2); }
.rec figcaption b { font-weight: 600; color: var(--fg); }
.rec figcaption span { font: 500 var(--fs-1)/1.4 var(--font-mono); color: var(--fg-3); }
.device { margin: 0; }
.phone { position: relative; width: 240px; max-width: 64vw; aspect-ratio: 390 / 844; padding: 6px; border-radius: 32px; background: #121211; box-shadow: 0 0 0 1px var(--rule-2), var(--shadow-2); }
.phone video { width: 100%; height: 100%; object-fit: cover; border-radius: 26px; display: block; background: #000; }
.window { width: 100%; border-radius: var(--radius); overflow: hidden; background: #0b0b0a; box-shadow: 0 0 0 1px var(--rule-2), var(--shadow-2); }
.window__bar { display: flex; align-items: center; gap: 6px; height: 24px; padding: 0 10px; background: #151513; border-bottom: 1px solid var(--rule); }
.window__bar i { width: 8px; height: 8px; border-radius: 50%; background: #3a3833; }
.window video { display: block; width: 100%; aspect-ratio: 16 / 10; object-fit: cover; background: #000; }
.rec--window { width: 100%; }

/* ---------- header: one row, section nav, one CTA ---------- */
.hdr {
  position: fixed; z-index: 70; top: 0; left: 0; right: 0;
  padding: var(--sat) var(--edge) 0;
  display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "brand end" "nav nav"; align-items: center; column-gap: var(--s-2);
  background: rgba(6, 8, 11, 0.94); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--rule);
}
.hdr .lockup { grid-area: brand; min-height: var(--bar); gap: 10px; }
.hdr .lockup svg, .hdr .lockup img { width: 28px; height: 28px; border-radius: 6px; }
.lockup__text { display: grid; gap: 3px; }
.hdr .lockup__name { font-size: var(--fs-2); letter-spacing: 0.2em; }
.hdr .concept-tag { white-space: nowrap; position: static; transform: none; height: auto; padding: 0; border: 0; background: none; gap: 5px; font: 600 var(--fs-1)/1 var(--font-label); letter-spacing: 0.06em; color: var(--fg-3); }
.hdr .concept-tag::before { width: 5px; height: 5px; background: var(--accent); }
.hdr__end { grid-area: end; display: flex; align-items: center; gap: var(--s-2); }
.hdr__signin { display: inline-flex; align-items: center; min-height: 44px; color: var(--fg-3); text-decoration: none; font: 600 var(--fs-1)/1 var(--font-label); letter-spacing: var(--tr-caps); text-transform: uppercase; }
.anchors { grid-area: nav; display: none; margin: 0 calc(-1 * var(--s-1)); }
.hdr.is-deep .anchors { display: flex; }
.anchors a { flex: 1 1 0; display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 0 var(--s-1); color: var(--fg-3); text-decoration: none; font: 600 var(--fs-1)/1 var(--font-label); letter-spacing: var(--tr-caps); text-transform: uppercase; position: relative; transition: color var(--t-fast) var(--ease-f); }
.anchors a::after { content: ""; position: absolute; left: 50%; bottom: 6px; width: 16px; height: 2px; margin-left: -8px; background: var(--accent); border-radius: 1px; opacity: 0; transition: opacity var(--t-fast) var(--ease-f); }
.anchors a.is-on { color: var(--fg); }
.anchors a.is-on::after { opacity: 1; }
@media (hover: hover) { .anchors a:hover, .hdr__signin:hover { color: var(--fg); } }

.foot { padding: var(--s-5) 0 calc(var(--s-5) + var(--sab)); border-top: 1px solid var(--rule); background: var(--ground); }
.foot .wrap { display: grid; gap: var(--s-2); }
.foot__row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--s-1) var(--s-3); }
.foot nav { display: flex; flex-wrap: wrap; margin: 0 calc(-1 * var(--s-1)); }
.foot nav a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 var(--s-1); color: var(--fg-2); text-decoration: none; font-size: var(--fs-2); }
.legal { font-size: var(--fs-2); line-height: 1.5; color: var(--fg-3); max-width: 72ch; }


/* ---------- system: tablet and desktop steps ---------- */
@media (min-width: 700px) {
  :root { --gut: max(24px, var(--sal), var(--sar)); --fs-5: 32px; --fs-6: 44px; --band: var(--s-7); --hdr: calc(64px + var(--sat)); --bar: 64px; --dock: calc(64px + var(--sab)); --dock-zone: calc(64px + 2 * var(--s-2) + var(--sab)); }
  .hdr { grid-template-columns: auto minmax(0, 1fr) auto; grid-template-areas: "brand nav end"; }
  .anchors, .hdr.is-deep .anchors { display: flex; justify-content: center; margin: 0; }
  .anchors a { flex: 0 0 auto; padding: 0 10px; }
  .shead { margin-bottom: var(--s-5); }
  .lead { font-size: var(--fs-4); line-height: 1.45; }
}
@media (min-width: 1000px) {
  :root { --gut: max(40px, var(--sal), var(--sar)); --fs-5: 40px; --fs-6: 72px; }
  .anchors a { padding: 0 var(--s-2); }
}
/* narrow phones: the header row must hold the lockup, the concept tag and the CTA */
@media (max-width: 699px) {
  .hdr__end .btn { padding: 0 12px; letter-spacing: 0.08em; }
  .hdr .concept-tag { letter-spacing: 0.02em; gap: 4px; }
  .hdr .lockup { gap: 8px; }
  .hdr .lockup svg, .hdr .lockup img { width: 26px; height: 26px; }
  .hdr .lockup__name { letter-spacing: 0.16em; }
}
@media (max-width: 379px) {
  .hdr__end .btn { font-size: var(--fs-1); padding: 0 10px; }
}
@media (prefers-reduced-motion: reduce) {
  .anchors a, .anchors a::after { transition: none !important; }
}

.inl { color: var(--fg); text-underline-offset: 3px; }
/* tablet: the section nav takes the room the slogan needs */
@media (min-width: 700px) and (max-width: 999px) { .hdr .concept-tag { display: none; } }
@media (max-width: 479px) { .hdr .concept-tag { display: none; } .hdr__end { gap: var(--s-1); } .hdr__signin { padding: 0 var(--s-0); } }

/* Airview Studio display type: Chakra Petch caps, the same as the app's sign-in and screen titles. */
h1, h2 { font-family: var(--font-title); font-weight: 600; text-transform: uppercase; letter-spacing: 0.03em; line-height: 1.12; }
h1 { font-size: 30px; }
h2 { font-size: 24px; max-width: 28ch; }
@media (min-width: 700px) { h1 { font-size: 44px; } h2 { font-size: 30px; } }
@media (min-width: 1000px) { h1 { font-size: 60px; } h2 { font-size: 36px; } }
