/*
  YouLocal.Space — «Silver Arrow» site styles (production copy of
  docs/work/website/landing/site.css, YLS-401).
  Glossy graphite buttons, brushed silver panels with a white top edge and an
  inset steel ring, soft blue-grey shadows, the orbit rings in the hero.
  Static, no external requests: system fonts, inline SVG/CSS. Served under a
  strict CSP (style-src 'self'): no inline styles anywhere, everything here.

  Colour pairs are checked by contrast.mjs (WCAG 2, both schemes); it reads
  the tokens below by name, so run it after changing any colour.

  Tokens (light = silver/pearl; dark = gunmetal, never pure black):
    Text      --ink --ink-2 (secondary, AA on every gloss stop)
              --ink-3 (large text only, >= 3:1) --eyebrow --link
    Surfaces  --bg --g-hero --g-panel --g-plus --g-card --g-window --g-note
              --g-strip --g-trust --g-end --g-footer --g-frame --g-slip
              --g-metal (car-body sheen) --g-metal-shade --g-brushed
              (dark brushed banner) --g-ph (photo placeholder)
    Edges     --edge (white top edge) --ring (inset steel ring) --line
              --line-2 --shadow-lg --shadow-md
    Buttons   --btn-g --btn-g-hover --btn-ink --btn-border --btn-inset
              --ghost-ink --ghost-border --ghost-hover
    Other     --tag-bg --tag-ink --focus --thread --node
    Type      --font (system stack) · sizes 11/12/13/14/15/16/
              20/22 px + clamps for h1 46–88, h2 38–78, h3 30–46 · tracking
              -0.05em display, 0.16em caps
    Space     --gutter 5vw (22 px on phones) · --page 1440 px
    Radius    --r 5 px · --r-lg 7 px (sketch) · --tap 44 px
*/

:root {
  color-scheme: light dark;

  --bg: #f3f4f4;
  --ink: #252c31;
  --ink-2: #4d5b64;
  --ink-3: #617079;
  --eyebrow: #475862;
  --link: #304756;
  --line: #d0d9df;
  --line-2: #b7c6cf;

  --g-hero:
    radial-gradient(ellipse at 75% 10%, #fff 0, transparent 50%),
    linear-gradient(
      120deg,
      #eceff1 0,
      #fff 34%,
      #dce2e6 64%,
      #f4f6f7 84%,
      #d0d8dd 100%
    );
  --g-panel: linear-gradient(120deg, #e0e6e9, #f9fafb 45%, #d2dce2);
  --g-plus: linear-gradient(125deg, #e3e9ed, #fcfdfd 43%, #d3dde3);
  --g-card: linear-gradient(120deg, #fbfcfd, #f0f3f5);
  --g-window: #fafbfb;
  --g-note: #edf1f3;
  --g-strip: #e7ebed;
  --g-trust: linear-gradient(130deg, #e9eef0, #fff 45%, #d8e0e6);
  --g-end:
    radial-gradient(ellipse at 70% 50%, #fff 0, transparent 70%),
    linear-gradient(110deg, #d6e0e6, #f4f7f9, #c5d2da);
  --g-footer: #e9eef1;
  --g-frame: linear-gradient(135deg, #ffffffc9, #c2ccd366 55%, #fff);
  --g-slip: linear-gradient(100deg, #ffffffed, #edf1f4ef);
  --g-metal: linear-gradient(
    176deg,
    #fdfefe 0%,
    #e3e8eb 22%,
    #b0bbc2 44%,
    #f6f8f9 50%,
    #cfd7dc 62%,
    #8e9ba4 82%,
    #6e7c86 100%
  );
  --g-metal-shade: linear-gradient(transparent 38%, #13232ceb 74%);
  --g-brushed:
    repeating-linear-gradient(90deg, #ffffff08 0 1px, transparent 1px 3px),
    linear-gradient(
      100deg,
      #1d2a32 0%,
      #2f3d46 30%,
      #55626b 54%,
      #34424b 70%,
      #1a252c 100%
    );
  --g-ph: linear-gradient(135deg, #e9eef1, #c9d3d9 45%, #f4f6f8 55%, #c3cdd4);

  --edge: #fff;
  --ring: #b9c5cd55;
  --shadow-lg: 0 30px 70px #364b5a26;
  --shadow-md: 0 20px 40px #4e63751f;

  --btn-g: linear-gradient(115deg, #26343c, #465963);
  --btn-g-hover: linear-gradient(115deg, #40535f, #293b44);
  --btn-ink: #fff;
  --btn-border: #52616a;
  --btn-inset: inset 0 1px #ffffff30, 0 5px 12px #26333c10;
  --ghost-ink: #3c5462;
  --ghost-border: #788d9a;
  --ghost-hover: #e5edf2;

  --tag-bg: #526976;
  --tag-ink: #fff;
  --focus: #2c6787;
  --thread: #ffffff;
  --node: #1f2b33;

  --font:
    "Avenir Next", "Avenir", "Segoe UI Variable Display", "Segoe UI", system-ui,
    -apple-system, Roboto, "Helvetica Neue", Arial, sans-serif;

  --gutter: 5vw;
  --page: 1440px;
  --r: 5px;
  --r-lg: 7px;
  --tap: 44px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #171c1f;
    --ink: #e9edef;
    --ink-2: #b2bcc2;
    --ink-3: #8e9aa1;
    --eyebrow: #a9b5bc;
    --link: #d4dde2;
    --line: #333e45;
    --line-2: #4c5961;

    --g-hero:
      radial-gradient(ellipse at 75% 10%, #3a454c 0, transparent 50%),
      linear-gradient(
        120deg,
        #1f262a 0,
        #2d363c 34%,
        #1b2125 64%,
        #272f35 84%,
        #181d21 100%
      );
    --g-panel: linear-gradient(120deg, #232a2f, #313b41 45%, #1e2428);
    --g-plus: linear-gradient(125deg, #262e33, #343e44 43%, #1f262a);
    --g-card: linear-gradient(120deg, #22292d, #1c2226);
    --g-window: #283035;
    --g-note: #20272b;
    --g-strip: #1c2226;
    --g-trust: linear-gradient(130deg, #1d2327, #2b3439 45%, #1a2024);
    --g-end:
      radial-gradient(ellipse at 70% 50%, #36414799 0, transparent 70%),
      linear-gradient(110deg, #1c2226, #2a3338, #181d21);
    --g-footer: #14181b;
    --g-frame: linear-gradient(135deg, #3d474dcc, #1f262a99 55%, #3a4449);
    --g-slip: linear-gradient(100deg, #313a40f2, #262e33f2);
    --g-metal: linear-gradient(
      176deg,
      #6c7880 0%,
      #3a444a 24%,
      #222a2f 44%,
      #9aa6ad 50%,
      #3c464c 58%,
      #20272b 80%,
      #14191c 100%
    );
    --g-metal-shade: linear-gradient(transparent 38%, #0b1013eb 74%);
    --g-brushed:
      repeating-linear-gradient(90deg, #ffffff06 0 1px, transparent 1px 3px),
      linear-gradient(
        100deg,
        #12181c 0%,
        #232c32 30%,
        #48535a 54%,
        #262f35 70%,
        #101519 100%
      );
    --g-ph: linear-gradient(135deg, #3a444a, #283035 45%, #46525a 55%, #2a3237);

    --edge: #ffffff1f;
    --ring: #ffffff14;
    --shadow-lg: 0 30px 70px #00000059;
    --shadow-md: 0 20px 40px #0000004d;

    --btn-g: linear-gradient(115deg, #f1f4f6, #b9c4cb);
    --btn-g-hover: linear-gradient(115deg, #c9d2d8, #f6f8f9);
    --btn-ink: #172025;
    --btn-border: #dfe5e9;
    --btn-inset: inset 0 1px #ffffffcc, 0 5px 14px #00000040;
    --ghost-ink: #d5dde2;
    --ghost-border: #6f7c84;
    --ghost-hover: #2a3338;

    --tag-bg: #c9d3d9;
    --tag-ink: #172025;
    --focus: #9cc6dd;
    --thread: #e9eef1;
    --node: #e9edef;
  }
}

/* Base */
*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
  scroll-padding-top: 24px;
  -webkit-text-size-adjust: 100%;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.7;
  overflow-wrap: break-word;
  /* A short page (404) keeps the footer at the bottom of the viewport. */
  min-height: 100svh;
  display: flex;
  flex-direction: column;
}
body > main {
  flex: 1 0 auto;
}
a {
  color: inherit;
  text-decoration: none;
}
h1,
h2,
h3,
h4 {
  margin: 0;
  font-weight: 500;
}
p {
  margin: 0 0 16px;
}
p:last-child {
  margin-bottom: 0;
}
ul,
ol {
  margin: 0;
  padding: 0;
}
:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 4px;
  border-radius: 3px;
}
.vh {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}
.skip {
  position: absolute;
  left: 16px;
  top: -120px;
  z-index: 100;
  display: inline-flex;
  align-items: center;
  min-height: var(--tap);
  padding: 0 18px;
  background: var(--btn-g);
  color: var(--btn-ink);
  border-radius: var(--r);
}
.skip:focus {
  top: 16px;
}
.wrap {
  max-width: var(--page);
  margin: 0 auto;
  padding: 0 var(--gutter);
}
.arrow {
  display: inline-block;
  vertical-align: middle;
  flex-shrink: 0;
}

/* Type pieces */
.eyebrow {
  display: block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--eyebrow);
}
.dim {
  color: var(--ink-3);
}
.sub,
.lead {
  color: var(--ink-2);
  font-size: 15px;
  line-height: 1.8;
}
.lead {
  font-size: 16px;
  max-width: 560px;
}
.textlink {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: var(--tap);
  margin-top: 8px;
  font-size: 13px;
  font-weight: 800;
  color: var(--link);
  border-bottom: 1px solid var(--line-2);
}
.textlink:hover {
  border-color: currentColor;
}

/* Buttons — the sketch's glossy graphite (polished silver in dark) */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  min-height: var(--tap);
  padding: 15px 25px;
  border-radius: var(--r);
  border: 1px solid var(--btn-border);
  background: var(--btn-g);
  color: var(--btn-ink);
  box-shadow: var(--btn-inset);
  font-size: 14px;
  font-weight: 700;
  line-height: 1.2;
  transition:
    transform 0.2s,
    background 0.2s;
}
.btn:hover {
  background: var(--btn-g-hover);
  transform: translateY(-2px);
}
.btn.small {
  padding: 11px 18px;
  font-size: 13px;
}
.btn.ghost {
  background: transparent;
  color: var(--ghost-ink);
  border-color: var(--ghost-border);
  box-shadow: none;
}
.btn.ghost:hover {
  background: var(--ghost-hover);
}

/* App Store placeholder: a metal chip, not a link */
.store {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: var(--tap);
  padding: 8px 16px;
  border: 1px dashed var(--ghost-border);
  border-radius: var(--r);
  background: var(--g-card);
  color: var(--ink-2);
  font-size: 13px;
  line-height: 1.25;
}
.store svg {
  color: var(--ink);
}
.platforms {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 20px;
  margin-top: 22px;
  font-size: 13px;
  color: var(--ink-2);
}

/* Stage = header + hero (or page head) on the silver hero gradient */
.stage {
  position: relative;
  overflow: hidden;
  background: var(--g-hero);
  border-bottom: 1px solid var(--line);
}
.orbit {
  position: absolute;
  width: 1100px;
  height: 1100px;
  right: -500px;
  top: -450px;
  border: 1px solid #ffffffa6;
  border-radius: 50%;
  box-shadow:
    0 0 0 65px #ffffff20,
    0 0 0 66px #b4bec51f,
    0 0 0 130px #ffffff18;
  pointer-events: none;
}
@media (prefers-color-scheme: dark) {
  .orbit {
    border-color: #ffffff1f;
    box-shadow:
      0 0 0 65px #ffffff04,
      0 0 0 66px #ffffff0d,
      0 0 0 130px #ffffff03;
  }
}

/* Header */
.site-header {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 2;
  max-width: var(--page);
  margin: 0 auto;
  padding: 22px var(--gutter);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 28px;
}
.brand {
  display: inline-flex;
  align-items: center;
  min-height: var(--tap);
  font-size: 25px;
  font-weight: 800;
  letter-spacing: -0.06em;
  color: var(--ink);
}
.brand i {
  font-style: normal;
  font-size: 0.6em;
  margin: 0 2px;
  color: var(--ink-3);
}
.links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 22px;
  font-size: 13px;
}
.links ul {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0 22px;
}
.links ul a {
  display: inline-flex;
  align-items: center;
  min-height: var(--tap);
  color: var(--ink);
  border-bottom: 1px solid transparent;
}
.links ul a:hover,
.links ul a[aria-current="page"] {
  border-bottom-color: var(--ink-3);
}

/* Hero */
.hero {
  position: relative;
  z-index: 1;
  max-width: var(--page);
  margin: 0 auto;
  padding: 128px var(--gutter) 34px;
  display: grid;
  grid-template-columns: 1.08fr 1fr;
  gap: 40px 5vw;
  align-items: center;
  align-content: center;
  min-height: min(860px, 100svh);
}
.hero-top,
.hero-foot {
  grid-column: 1 / -1;
  display: flex;
  justify-content: space-between;
  gap: 20px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--eyebrow);
}
.hero-foot {
  margin-top: 40px;
  padding-top: 8px;
  border-top: 1px solid #a4b1b866;
  align-items: center;
}
.hero-foot a {
  display: inline-flex;
  align-items: center;
  min-height: var(--tap);
  color: var(--ink);
}
.hero h1 {
  font-size: clamp(46px, 5.7vw, 88px);
  line-height: 1.07;
  letter-spacing: -0.052em;
  margin: 24px 0 27px;
}
.hero h1 em {
  font-style: normal;
  font-size: 0.75em;
  color: var(--ink-3);
  white-space: nowrap;
}
.hero .lead {
  margin: 0 0 28px;
}
.hero-note {
  margin-top: 14px;
  font-size: 13px;
  color: var(--ink-2);
}

/* Silver frame around the hero visual */
.frame {
  margin: 20px 0 0;
  padding: 13px;
  border: 1px solid var(--edge);
  background: var(--g-frame);
  box-shadow:
    var(--shadow-lg),
    inset 0 0 0 1px var(--ring);
  border-radius: var(--r-lg);
  transform: rotate(1.5deg);
}
.frame-label {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  padding: 4px 2px 12px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--eyebrow);
}
.frame-label.bottom {
  padding: 16px 2px 2px;
}
.metal {
  position: relative;
  height: 420px;
  overflow: hidden;
  border-radius: 2px;
  background: var(--g-metal);
}
.metal::before {
  /* a long highlight like light running along polished bodywork */
  content: "";
  position: absolute;
  left: -10%;
  right: -10%;
  top: 46%;
  height: 3px;
  background: linear-gradient(
    90deg,
    transparent,
    #ffffffd9 30%,
    #fff 55%,
    transparent
  );
  filter: blur(1px);
  transform: rotate(-4deg);
}
.metal::after {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--g-metal-shade);
}
.metal svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}
.metal .t {
  fill: none;
  stroke: var(--thread);
  stroke-width: 2;
  stroke-linecap: round;
  filter: drop-shadow(0 1px 1px #1b2a3366);
}
.metal .t.soft {
  stroke-opacity: 0.6;
}
.metal .node {
  fill: var(--thread);
  stroke: #1f2b33;
  stroke-width: 2;
}
.metal .halo {
  fill: none;
  stroke: var(--thread);
  stroke-opacity: 0.7;
}
.caption {
  position: absolute;
  z-index: 2;
  left: 24px;
  right: 24px;
  bottom: 22px;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 16px;
  color: #fff;
}
.caption strong {
  font-size: 28px;
  font-weight: 500;
  letter-spacing: -0.035em;
  line-height: 1.15;
}
.caption ul {
  list-style: none;
  font-size: 12px;
  line-height: 1.6;
  text-align: right;
  color: #e8eef1;
}
.slip {
  position: relative;
  z-index: 3;
  display: flex;
  gap: 12px;
  align-items: center;
  margin: -8px -32px 0 -30px;
  padding: 16px 18px;
  background: var(--g-slip);
  border: 1px solid var(--edge);
  border-radius: var(--r);
  box-shadow: 0 12px 35px #3d53632b;
  transform: rotate(-3deg);
  font-size: 13px;
  line-height: 1.6;
  color: var(--ink-2);
}
.slip strong {
  display: block;
  color: var(--ink);
  font-weight: 600;
}
.slip .dot {
  flex: 0 0 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 1px solid var(--line-2);
  background: var(--g-ph);
  color: var(--ink);
  font-size: 13px;
}

@media (prefers-reduced-motion: no-preference) {
  .metal .t {
    stroke-dasharray: 1000;
    stroke-dashoffset: 1000;
    animation: draw 2.8s cubic-bezier(0.4, 0, 0.2, 1) 0.2s forwards;
  }
  @keyframes draw {
    to {
      stroke-dashoffset: 0;
    }
  }
}

/* Strip */
.strip {
  background: var(--g-strip);
  border-top: 1px solid var(--edge);
  border-bottom: 1px solid var(--line);
}
.strip ul {
  list-style: none;
  max-width: var(--page);
  margin: 0 auto;
  padding: 24px var(--gutter);
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px 100px;
  font-size: 13px;
  color: var(--ink-2);
}

/* Sections */
.section {
  max-width: var(--page);
  margin: 0 auto;
  padding: 110px var(--gutter);
}
.head {
  margin: 0 0 75px;
}
.head h2,
.trust h2,
.end h2 {
  font-size: clamp(38px, 5.5vw, 78px);
  line-height: 1.12;
  letter-spacing: -0.045em;
  margin: 18px 0;
}
.head .sub,
.head .lead {
  max-width: 560px;
}

/* Product cards (Spaces / events / map and time) */
.cards {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.cards li {
  padding: 30px;
  background: var(--g-panel);
  border: 1px solid var(--edge);
  border-radius: var(--r-lg);
  box-shadow:
    inset 0 0 0 1px var(--ring),
    0 20px 50px #536b7d0c;
}
.cards h3 {
  font-size: 22px;
  letter-spacing: -0.03em;
  margin: 18px 0 10px;
}
.cards p {
  color: var(--ink-2);
  font-size: 15px;
}

/* Scenarios */
.scenario {
  display: grid;
  grid-template-columns: 1fr 1.08fr;
  gap: 8vw;
  align-items: center;
  margin: 120px 0;
}
.scenario.reverse {
  grid-template-columns: 1.08fr 1fr;
}
.scenario h3 {
  font-size: clamp(30px, 3.2vw, 46px);
  line-height: 1.2;
  letter-spacing: -0.04em;
  margin: 16px 0;
}
.demo {
  padding: 30px;
  background: var(--g-panel);
  border: 1px solid var(--edge);
  border-radius: var(--r-lg);
  box-shadow: inset 0 0 0 1px var(--ring);
}
.window {
  padding: 20px;
  background: var(--g-window);
  color: var(--ink);
  border-radius: 4px;
  box-shadow: var(--shadow-md);
}
.windowhead {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 18px;
  font-size: 12px;
  color: var(--ink-2);
}
.window h4 {
  font-size: 22px;
  line-height: 1.25;
  letter-spacing: -0.03em;
  margin: 14px 0 4px;
}
.meta {
  display: block;
  font-size: 12px;
  color: var(--ink-2);
}
.thumbs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 7px;
  margin: 15px 0;
}
.note {
  margin-top: 15px;
  padding: 12px 14px;
  border-radius: 8px;
  background: var(--g-note);
  font-size: 13px;
}
.demo-label {
  margin-top: 10px;
  text-align: right;
  font-size: 12px;
  color: var(--ink-2);
}

/* ------------------------------------------------------------------------
   PHOTOS — the one place to swap a silver placeholder for a real photo.
   Every placeholder carries its own class (ph-summer, ph-altai, …); the
   banner carries photo-banner. To use a photo: put the file in
   public/photos/ and set the matching variable below, e.g.
     --photo-summer: url("/photos/summer.jpg");
   Placeholders with no photo keep `none` and show the silver fill. Once
   every slot has a photo, set --ph-outline to none (the dashed frame is
   only the placeholder's). The banner text is white: use a dark photo.
   ------------------------------------------------------------------------ */
:root {
  --photo-summer: none;
  --photo-summer-1: none;
  --photo-summer-2: none;
  --photo-summer-3: none;
  --photo-altai: none;
  --photo-karelia: none;
  --photo-banner: none;
  --ph-outline: dashed;
}
.ph-summer {
  --photo: var(--photo-summer);
}
.ph-summer-1 {
  --photo: var(--photo-summer-1);
}
.ph-summer-2 {
  --photo: var(--photo-summer-2);
}
.ph-summer-3 {
  --photo: var(--photo-summer-3);
}
.ph-altai {
  --photo: var(--photo-altai);
}
.ph-karelia {
  --photo: var(--photo-karelia);
}
.photo-banner {
  --photo: var(--photo-banner);
}

/* Photo placeholders: brushed silver with a dashed inner outline */
.ph {
  min-height: 260px;
  border-radius: 10px;
  background:
    var(--photo, none) center / cover no-repeat,
    var(--g-ph);
  box-shadow: inset 0 0 0 1px var(--edge);
  outline: 1px var(--ph-outline) var(--ghost-border);
  outline-offset: -8px;
}
.ph.sm {
  min-height: 65px;
  border-radius: 6px;
  outline-offset: -5px;
}
/* Club banner: dark brushed metal instead of the sketch photo */
.banner {
  position: relative;
  min-height: 560px;
  margin: 20px calc(-1 * var(--gutter)) 90px;
  overflow: hidden;
  background:
    var(--photo, none) center / cover no-repeat,
    var(--g-brushed);
  color: #fff;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 80px 8vw 110px;
}
.banner > svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}
.banner .t {
  fill: none;
  stroke: #dfe6ea;
  stroke-opacity: 0.35;
  stroke-width: 1.5;
}
.banner .copy {
  position: relative;
  max-width: 620px;
}
.banner .eyebrow {
  color: #e6edf1;
}
.banner h2 {
  font-size: clamp(40px, 6vw, 86px);
  line-height: 1.1;
  letter-spacing: -0.04em;
  margin: 20px 0;
}
.banner p {
  font-size: 15px;
  color: #e3eaee;
}
.banner .label {
  position: absolute;
  bottom: 30px;
  left: 8vw;
  right: 8vw;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #e6edf1;
}
.tabs {
  display: flex;
  gap: 18px;
  margin-top: 18px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
  font-size: 12px;
  color: var(--ink-2);
}
.tabs .on {
  color: var(--ink);
  font-weight: 700;
}
.event {
  display: flex;
  gap: 13px;
  align-items: center;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}
.event:last-of-type {
  border-bottom: 0;
}
.event .ph {
  flex: 0 0 72px;
  min-height: 72px;
}
.event strong {
  display: block;
  font-size: 14px;
}

/* Profiles */
.identity {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8vw;
  align-items: center;
  padding: 65px;
  background: var(--g-panel);
  border: 1px solid var(--edge);
  border-radius: var(--r-lg);
  box-shadow: inset 0 0 0 1px var(--ring);
}
.identity h2 {
  font-size: clamp(36px, 3.8vw, 55px);
  line-height: 1.15;
  letter-spacing: -0.04em;
  margin: 18px 0;
}
.profiles {
  list-style: none;
  display: grid;
  gap: 12px;
}
.profile {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px;
  background: var(--g-window);
  border: 1px solid var(--line-2);
  border-radius: var(--r);
}
.profile.on {
  border-color: var(--ghost-border);
  box-shadow: 0 10px 20px #4a667315;
  transform: translateX(-12px);
}
.avatar {
  flex: 0 0 44px;
  height: 44px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--g-ph);
  color: var(--ink);
  font-size: 15px;
  font-weight: 600;
}
.profile strong {
  display: block;
  font-size: 14px;
}
.profile span {
  font-size: 12px;
  color: var(--ink-2);
}
.profile b {
  margin-left: auto;
  color: var(--ink-2);
}

/* Trust / privacy */
.trust {
  background: var(--g-trust);
  border-top: 1px solid var(--edge);
  border-bottom: 1px solid var(--line);
}
.trust .inner {
  max-width: 1320px;
  margin: 0 auto;
  padding: 100px var(--gutter);
}
.trust h2 {
  font-weight: 400;
  max-width: 1000px;
}
.principles {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 60px;
  margin-top: 70px;
}
.principles li {
  border-top: 1px solid var(--line-2);
  padding-top: 22px;
}
.principles h3 {
  font-size: 20px;
  font-weight: 600;
  letter-spacing: -0.02em;
  margin: 10px 0;
}
.principles p {
  font-size: 15px;
  color: var(--ink-2);
}
.num {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.12em;
  color: var(--eyebrow);
}
.facts {
  display: grid;
  grid-template-columns: minmax(0, 680px);
  gap: 18px;
  margin-top: 60px;
}
.fact {
  padding: 32px;
  background: var(--g-plus);
  border: 1px solid var(--edge);
  border-radius: var(--r-lg);
  box-shadow:
    inset 0 0 0 1px var(--ring),
    0 20px 50px #536b7d0c;
}
.fact h3 {
  font-size: 20px;
  font-weight: 600;
  letter-spacing: -0.02em;
  margin-bottom: 10px;
}
.fact p {
  font-size: 15px;
  color: var(--ink-2);
}
.trust-link {
  margin-top: 30px;
}

/* Pricing — the sketch's Free card + glossy Plus card */
.plans {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  align-items: stretch;
}
.plan {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 40px;
  border-radius: var(--r-lg);
}
.plan.free {
  background: var(--g-card);
  border: 1px solid var(--line-2);
}
.plan.plus {
  background: var(--g-plus);
  border: 1px solid var(--edge);
  box-shadow:
    inset 0 0 0 1px var(--ring),
    0 20px 50px #536b7d0c;
}
.plus-badge {
  position: absolute;
  top: -12px;
  left: 30px;
  padding: 5px 12px;
  border-radius: 3px;
  background: var(--tag-bg);
  color: var(--tag-ink);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.plan-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 20px;
}
.plan h3 {
  font-size: 54px;
  line-height: 1.05;
  letter-spacing: -0.055em;
  margin-top: 12px;
}
.plan h3 span {
  color: var(--ink-3);
}
.price {
  margin: 0;
  font-size: 40px;
  line-height: 1.1;
  letter-spacing: -0.05em;
  white-space: nowrap;
  text-align: right;
}
.price small {
  display: block;
  margin-top: 6px;
  font-size: 13px;
  letter-spacing: 0;
  color: var(--ink-2);
}
.price .alt {
  display: block;
  margin-top: 10px;
  font-size: 22px;
  letter-spacing: -0.03em;
}
.plan-body {
  margin: 28px 0 10px;
  padding-top: 16px;
  border-top: 1px solid var(--line-2);
}
.plan-body > p {
  font-size: 15px;
  color: var(--ink-2);
}
.features {
  list-style: none;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px 18px;
  margin: 22px 0 30px;
  font-size: 14px;
  line-height: 1.5;
}
.features li {
  display: flex;
  gap: 10px;
}
.features li::before {
  content: "✓";
  color: var(--ink-2);
}
.plan-bottom {
  margin-top: auto;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 15px;
}
.plan-bottom > span {
  font-size: 13px;
  line-height: 1.6;
  color: var(--ink-2);
}
.chip {
  display: inline-flex;
  align-items: center;
  min-height: var(--tap);
  padding: 0 18px;
  border-radius: var(--r);
  border: 1px dashed var(--ghost-border);
  background: var(--g-card);
  color: var(--ink-2);
  font-size: 13px;
  font-weight: 600;
}
.custom {
  margin-top: 30px;
  display: grid;
  grid-template-columns: 0.9fr 2.2fr;
  gap: 25px;
  align-items: center;
  padding: 30px 35px;
  border: 1px solid var(--line-2);
  border-radius: var(--r-lg);
  background: var(--g-card);
}
.custom h3 {
  font-size: 27px;
  font-weight: 400;
  line-height: 1.2;
  letter-spacing: -0.04em;
  margin-top: 10px;
}
.custom p {
  font-size: 15px;
  color: var(--ink-2);
}
.custom .btn {
  margin-top: 18px;
}
.custom a,
.prose a {
  color: var(--link);
  text-decoration: underline;
  text-decoration-color: var(--ink-3);
  text-underline-offset: 0.2em;
}

/* Closing */
.end {
  text-align: center;
  padding: 110px 20px 130px;
  background: var(--g-end);
  color: var(--ink);
}
.end h2 {
  font-weight: 400;
  max-width: 1000px;
  margin: 25px auto 40px;
}
.end .platforms {
  justify-content: center;
}

/* Inner pages */
.page-head {
  position: relative;
  z-index: 1;
  max-width: var(--page);
  margin: 0 auto;
  padding: 150px var(--gutter) 80px;
}
.page-head h1 {
  font-size: clamp(44px, 5.7vw, 80px);
  line-height: 1.07;
  letter-spacing: -0.052em;
  margin: 20px 0;
}
.prose {
  max-width: 760px;
}
.prose h2 {
  font-size: clamp(28px, 3vw, 40px);
  line-height: 1.2;
  letter-spacing: -0.04em;
  margin: 72px 0 18px;
}
.prose h2:first-child {
  margin-top: 0;
}
.prose h3 {
  font-size: 22px;
  letter-spacing: -0.03em;
  margin: 40px 0 14px;
}
.prose p,
.prose li {
  color: var(--ink-2);
  font-size: 16px;
}
.prose strong {
  color: var(--ink);
  font-weight: 600;
}
.contact-card {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin: 22px 0;
  padding: 32px;
  background: var(--g-plus);
  border: 1px solid var(--edge);
  border-radius: var(--r-lg);
  box-shadow:
    inset 0 0 0 1px var(--ring),
    0 20px 50px #536b7d0c;
}
.prose .contact-card .big {
  display: inline-flex;
  align-items: center;
  min-height: var(--tap);
  margin-top: 8px;
  font-size: clamp(22px, 2.4vw, 30px);
  letter-spacing: -0.03em;
  color: var(--ink);
  text-decoration: none;
}
.prose .contact-card .btn {
  color: var(--btn-ink);
  text-decoration: none;
}
.steps {
  list-style: none;
  counter-reset: step;
  display: grid;
  gap: 12px;
  margin: 22px 0;
}
.steps li {
  counter-increment: step;
  position: relative;
  padding: 18px 22px 18px 64px;
  background: var(--g-card);
  border: 1px solid var(--line-2);
  border-radius: var(--r-lg);
  box-shadow: inset 0 1px var(--edge);
}
.steps li::before {
  content: counter(step, decimal-leading-zero);
  position: absolute;
  left: 22px;
  top: 18px;
  font-size: 14px;
  font-weight: 700;
  color: var(--ink);
}
.bullets {
  padding-left: 22px;
  display: grid;
  gap: 8px;
  margin: 0 0 22px;
}
.doc-list {
  list-style: none;
  display: grid;
  gap: 12px;
  margin: 22px 0;
}
.prose .doc-list a {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  min-height: var(--tap);
  padding: 22px 26px;
  background: var(--g-plus);
  border: 1px solid var(--edge);
  border-radius: var(--r-lg);
  box-shadow: inset 0 0 0 1px var(--ring);
  color: var(--ink);
  text-decoration: none;
  font-size: 18px;
  letter-spacing: -0.01em;
  transition: transform 0.2s;
}
.prose .doc-list a:hover {
  transform: translateY(-2px);
}

/* Footer */
.footer {
  background: var(--g-footer);
  border-top: 1px solid var(--line);
  color: var(--ink-2);
  font-size: 13px;
}
.footer .wrap {
  padding-top: 44px;
  padding-bottom: 32px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1.4fr;
  gap: 30px;
}
.footer .brand {
  font-size: 22px;
}
.footer ul {
  list-style: none;
}
.footer li a {
  display: inline-flex;
  align-items: center;
  min-height: var(--tap);
  color: var(--ink-2);
}
.footer li a:hover {
  color: var(--ink);
}
.footer-title {
  margin: 0 0 4px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--eyebrow);
}
.footer-base {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 10px 20px;
  margin-top: 28px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}

/* Tablet */
@media (max-width: 900px) {
  .hero,
  .scenario,
  .scenario.reverse,
  .identity,
  .facts,
  .plans,
  .custom {
    grid-template-columns: 1fr;
  }
  .hero {
    gap: 45px;
  }
  .frame {
    max-width: 560px;
    width: calc(100% - 20px);
    margin: 0 auto;
  }
  .metal {
    height: 380px;
  }
  .reverse .demo {
    order: 2;
  }
  .scenario {
    gap: 30px;
    margin: 70px 0;
  }
  .cards,
  .principles {
    grid-template-columns: 1fr;
  }
  .principles {
    gap: 30px;
    margin-top: 45px;
  }
  .identity {
    padding: 30px;
    gap: 35px;
  }
  .plan,
  .custom {
    padding: 28px;
  }
  .plan.plus {
    margin-top: 12px;
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
  .footer-grid > :first-child {
    grid-column: 1 / -1;
  }
}

/* Phone */
@media (max-width: 760px) {
  :root {
    --gutter: 22px;
  }
  .site-header {
    position: static;
    padding-top: 12px;
    padding-bottom: 4px;
    background: var(--g-strip);
    border-bottom: 1px solid var(--line);
    max-width: none;
    margin: 0;
  }
  .brand {
    font-size: 21px;
  }
  .links {
    width: 100%;
  }
  .links .btn {
    display: none;
  }
  .hero {
    padding-top: 36px;
    min-height: 0;
  }
  .hero-top span:last-child {
    display: none;
  }
  .hero h1 {
    letter-spacing: -0.045em;
  }
  .hero h1 em {
    white-space: normal;
  }
  .section {
    padding-top: 75px;
    padding-bottom: 75px;
  }
  .head {
    margin-bottom: 40px;
  }
  .head h2,
  .trust h2,
  .end h2 {
    letter-spacing: -0.035em;
  }
  .strip ul {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
    padding-top: 20px;
    padding-bottom: 20px;
  }
  .demo {
    padding: 14px;
  }
  .window {
    padding: 16px;
  }
  .ph {
    min-height: 200px;
  }
  .banner {
    min-height: 520px;
    padding: 70px 24px 120px;
    margin-bottom: 55px;
  }
  .banner .label {
    left: 24px;
    right: 24px;
  }
  .profile.on {
    transform: translateX(-6px);
  }
  .trust .inner {
    padding: 75px var(--gutter);
  }
  .fact {
    padding: 24px;
  }
  .plan h3 {
    font-size: 46px;
  }
  .price {
    font-size: 34px;
    text-align: left;
  }
  .features {
    grid-template-columns: 1fr;
  }
  .end {
    padding: 85px 22px;
  }
  .page-head {
    padding: 40px var(--gutter) 56px;
  }
  .contact-card {
    padding: 24px;
  }
  .steps li {
    padding-left: 56px;
  }
  .steps li::before {
    left: 18px;
  }
  .footer-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .metal {
    height: 320px;
  }
  .caption strong {
    font-size: 22px;
  }
  .caption ul {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
  }
  .slip {
    margin: -8px -14px 0;
    padding: 12px;
    font-size: 12px;
  }
  .frame-label {
    font-size: 10px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    transition: none !important;
    animation: none !important;
  }
}
