/* Grafizum Mobile — the page for grafizum.com/mobile.
   The colours, the type and the phone frames are the app's own: sage paper,
   graphite ink, one living green. Nothing decorative floats about. */

@font-face {
  font-family: "Geist";
  src: url("./assets/fonts/geist-variable.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Geist Mono";
  src: url("./assets/fonts/geist-mono-variable.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  color-scheme: light;

  --paper: #f5f8f3;
  --paper-2: #eef4ec;
  --card: #ffffff;
  --ink: #0f1512;
  --ink-soft: #35433b;
  --muted: #58665e;
  --faint: #73827a;
  --rule: #dfe9dc;
  --rule-soft: #eaf1e7;
  --accent: #0b8a52;
  --accent-deep: #07693e;
  --accent-soft: #ddefe4;
  --dark: #0c110e;
  --dark-card: #141a16;
  --dark-rule: #232b26;
  --dark-text: #eef2ec;
  --dark-muted: #a5b0a8;
  --accent-bright: #67dcab;

  --sans: "Geist", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: "Geist Mono", ui-monospace, "SF Mono", Menlo, monospace;

  --wrap: 1180px;
  --gutter: clamp(20px, 5vw, 56px);
  --radius: 18px;
  --ease: cubic-bezier(0.23, 1, 0.32, 1);

  /* The bar is grafizum.com's own bar, so its colours are the site's tokens,
     not this page's: the two must not drift apart. */
  --nav-ink: #14181a;
  --nav-muted: #5c6760;
  --nav-border: #e0e7e1;
  --nav-surface: #fbfcfa;
  --nav-active: #eef3ee;
  --nav-primary: #2d6b4f;
  --nav-primary-ink: #f7fbf8;
  --switch-track: #e1e5e3;
  --switch-inset: inset 0 1px 3px rgba(20, 24, 26, 0.14);
}

/* Dark: the site's dark palette, so the switch in the bar turns this page with
   the rest of grafizum.com instead of leaving a light sheet under a dark bar. */
:root.dark {
  color-scheme: dark;

  --paper: #131510;
  --paper-2: #171a14;
  --card: #1b1d18;
  --ink: #eff0eb;
  --ink-soft: #d6dacd;
  --muted: #b3b8ad;
  --faint: #8f9589;
  --rule: #2c3027;
  --rule-soft: #23271f;
  --accent: #67dcab;
  --accent-deep: #a8f2cf;
  --accent-soft: rgba(103, 220, 171, 0.14);
  --dark: #0b0d09;
  --dark-card: #151810;
  --dark-rule: #2a2e25;
  --dark-text: #eef2ec;
  --dark-muted: #a8b0a6;
  --accent-bright: #a8f2cf;

  --nav-ink: #eff0eb;
  --nav-muted: #bcbfb6;
  --nav-border: #2c3027;
  --nav-surface: #1b1d18;
  --nav-active: #2a2d25;
  --nav-primary: #23815e;
  --nav-primary-ink: #f2fdf7;
  --switch-track: #141414;
  --switch-inset: inset 0 1px 1px rgba(0, 0, 0, 0.5);
}

*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 84px;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1.0625rem;
  font-weight: 450;
  line-height: 1.62;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, p, ul, figure { margin: 0; }
ul { padding: 0; list-style: none; }
img { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3 { text-wrap: balance; }
p { text-wrap: pretty; }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 8px;
}

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.skip {
  position: absolute;
  left: 16px;
  top: -60px;
  z-index: 60;
  padding: 10px 16px;
  border-radius: 10px;
  background: var(--ink);
  color: var(--paper);
  text-decoration: none;
}
.skip:focus { top: 12px; }

/* ------------------------------------------------------------ eyebrow */

.eyebrow {
  font-family: var(--mono);
  font-size: 0.72rem;
  font-weight: 550;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--accent-deep);
}
.eyebrow--light { color: var(--accent-bright); }

/* ------------------------------------------------------- the site bar */

/* grafizum.com's header, reproduced: the same integrated→floating bar, the same
   lockup, the same four tabs plus this page's own, the same theme switch and the
   same two doors. A reader arriving from the main site should not be able to
   tell where the site ends and the page begins. */
.site-head {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
}

.site-nav {
  position: relative;
  width: 100%;
  max-width: 100%;
  margin: 0 auto;
  background: transparent;
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  transition:
    margin-top 0.42s cubic-bezier(0.32, 0.72, 0, 1),
    width 0.42s cubic-bezier(0.32, 0.72, 0, 1),
    max-width 0.42s cubic-bezier(0.32, 0.72, 0, 1),
    border-radius 0.42s cubic-bezier(0.32, 0.72, 0, 1),
    box-shadow 0.42s cubic-bezier(0.32, 0.72, 0, 1),
    background-color 0.42s cubic-bezier(0.32, 0.72, 0, 1);
}

/* The integrated state's only edge: one hairline that stops short of both ends
   of the page's column. */
.site-nav::after {
  content: "";
  position: absolute;
  left: max(24px, calc((100% - 1280px) / 2 + 24px));
  right: max(24px, calc((100% - 1280px) / 2 + 24px));
  bottom: 0;
  height: 1px;
  pointer-events: none;
  background: linear-gradient(
    to right,
    transparent,
    var(--nav-border) 20px,
    var(--nav-border) calc(100% - 20px),
    transparent
  );
  transition: opacity 0.42s cubic-bezier(0.32, 0.72, 0, 1);
}

.site-nav[data-scrolled="true"] {
  margin-top: 12px;
  width: calc(100% - 48px);
  max-width: 80rem;
  background: color-mix(in srgb, var(--nav-surface) 96%, transparent);
  border-radius: 14px;
  box-shadow: 0 1px 2px rgba(20, 24, 26, 0.12), 0 10px 28px rgba(20, 24, 26, 0.16);
}
.site-nav[data-scrolled="true"]::after { opacity: 0; }

.site-nav-row {
  display: flex;
  align-items: center;
  gap: 16px;
  max-width: 1280px;
  margin: 0 auto;
  padding: 16px 24px;
}

.site-brand { display: flex; align-items: center; flex: none; text-decoration: none; }
.brand-lockup { display: none; height: 36px; width: auto; }
.brand-roundel { display: none; width: 36px; height: 36px; }
:root:not(.dark) .brand-lockup.brand-ink { display: block; }
:root.dark .brand-lockup.brand-paper { display: block; }

.site-links { display: flex; align-items: center; gap: 4px; }
.site-links a {
  padding: 7px 10px;
  border-radius: 8px;
  font-size: 0.875rem;
  font-weight: 500;
  line-height: 1.2;
  color: var(--nav-muted);
  text-decoration: none;
  transition: color 0.18s, background-color 0.18s;
}
.site-links a:hover { background: var(--nav-surface); color: var(--nav-ink); }
.site-links a[aria-current="page"] {
  background: var(--nav-active);
  color: var(--nav-ink);
  box-shadow: 0 1px 2px rgba(20, 24, 26, 0.07);
}

.site-right { display: flex; align-items: center; gap: 8px; margin-left: auto; }

/* The segmented theme switch: the same track, the same 26px seats, the same
   chip. */
.switch {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  padding: 3px;
  border-radius: 999px;
  background: var(--switch-track);
  box-shadow: var(--switch-inset);
}
.switch-opt {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 30px;
  height: 26px;
  padding: 0 8px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--nav-muted);
  cursor: pointer;
}
.switch-opt svg {
  position: relative;
  width: 14px;
  height: 14px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.switch-opt[aria-pressed="true"] { color: #fff; }
.switch-opt[aria-pressed="true"]::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 999px;
  background: var(--nav-primary);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.45), 0 0 0 1px rgba(255, 255, 255, 0.08);
}

.site-div { width: 1px; height: 20px; margin: 0 4px; background: var(--nav-border); }
.site-doors { display: contents; }

.site-signin {
  padding: 4px 8px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 500;
  color: var(--nav-muted);
  text-decoration: none;
  white-space: nowrap;
  transition: color 0.18s;
}
.site-signin:hover { color: var(--nav-ink); }

.site-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding: 8px 16px;
  border: 1px solid transparent;
  border-radius: 12px;
  background: var(--nav-primary);
  color: var(--nav-primary-ink);
  font-size: 13px;
  font-weight: 600;
  line-height: 1.2;
  white-space: nowrap;
  text-decoration: none;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.24),
    0 1px 2px rgba(20, 24, 26, 0.14),
    0 10px 24px -16px rgba(53, 121, 90, 0.35);
  transition: background-color 0.18s, transform 0.18s;
}
.site-cta:hover { background: color-mix(in srgb, var(--nav-primary) 92%, var(--accent)); }
.site-cta:active { transform: translateY(1px); }

.site-avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  margin-left: 4px;
  border: 1px solid var(--nav-border);
  border-radius: 999px;
  background: var(--nav-surface);
  color: var(--nav-ink);
  font-size: 12px;
  font-weight: 600;
  text-decoration: none;
}
[hidden] { display: none !important; }

.site-menu {
  display: none;
  margin-left: auto;
  padding: 8px;
  border: 1px solid var(--nav-border);
  border-radius: 8px;
  background: var(--nav-surface);
  color: var(--nav-ink);
  cursor: pointer;
  box-shadow: 0 1px 2px rgba(20, 24, 26, 0.1);
}
.site-menu svg {
  display: block;
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
}

.site-drawer {
  width: calc(100% - 48px);
  max-width: 1280px;
  margin: 8px auto 0;
  padding: 16px;
  border: 1px solid var(--nav-border);
  border-radius: 18px;
  background: var(--nav-surface);
  box-shadow: 0 1px 2px rgba(20, 24, 26, 0.06), 0 10px 28px rgba(60, 90, 75, 0.1);
}
.drawer-links { display: grid; gap: 4px; max-width: 24rem; margin-inline: auto; }
.drawer-links a {
  padding: 10px 12px;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 500;
  color: var(--nav-muted);
  text-decoration: none;
}
.drawer-links a:hover { background: var(--nav-active); color: var(--nav-ink); }
.drawer-links a[aria-current="page"] { background: var(--nav-active); color: var(--nav-ink); }
.drawer-foot {
  display: flex;
  align-items: center;
  gap: 12px;
  max-width: 24rem;
  margin: 16px auto 0;
  padding-top: 14px;
  border-top: 1px solid var(--nav-border);
}
.drawer-foot .site-cta { flex: 1; }
.drawer-div { width: 1px; height: 20px; background: var(--nav-border); }

main { padding-top: 68px; }

/* The footer's own lockup — the mark and the word, as the page has always had
   it below the fold. */
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  flex: none;
}
.brand-word { font-size: 1.06rem; font-weight: 650; letter-spacing: -0.02em; }
.brand-mark {
  width: 32px;
  height: 32px;
  border-radius: 9px;
  border: 1px solid var(--rule);
  /* The mark is ink on paper: the plate stays light in both themes, like an app
     icon, rather than inverting into a dark square. */
  background: #fff;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex: none;
  margin-left: auto;
  padding: 7px 14px 7px 12px;
  border-radius: 999px;
  border: 1px solid var(--rule);
  background: var(--card);
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--ink-soft);
  white-space: nowrap;
}
.status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 16%, transparent);
}
.status-pill--lg {
  margin-left: 0;
  padding: 10px 20px 10px 16px;
  font-size: 0.92rem;
  background: var(--ink);
  border-color: var(--ink);
  color: var(--paper);
}
.status-pill--lg .status-dot { background: var(--accent-bright); }

/* ------------------------------------------------------------- phones */

.device {
  --w: 292px;
  width: var(--w);
  padding: 8px;
  border-radius: calc(var(--w) * 0.145);
  background: linear-gradient(160deg, #1d241f 0%, #0d1210 46%, #191f1a 100%);
  box-shadow:
    0 0 0 1px rgba(15, 21, 18, 0.5),
    0 34px 64px -30px rgba(15, 21, 18, 0.5),
    0 12px 24px -14px rgba(15, 21, 18, 0.28);
  flex: none;
}
.device::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.09);
  pointer-events: none;
}
.device { position: relative; }

/* The shot keeps a hair of margin inside the frame: the app draws edge to edge
   with no status bar, and a big corner radius cut into that bleeds looked like
   the phone was cropping the screen. */
.screen {
  padding: calc(var(--w) * 0.017);
  border-radius: calc(var(--w) * 0.098);
  overflow: hidden;
  aspect-ratio: 1080 / 2340;
  background: var(--paper);
}
.screen img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  border-radius: calc(var(--w) * 0.082);
}

/* ---------------------------------------------------------------- facts */

.facts {
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  background: color-mix(in srgb, var(--card) 55%, transparent);
}
.facts-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
  padding-block: 20px;
}
.facts-grid > div { display: grid; gap: 3px; }
.fact-k {
  font-family: var(--mono);
  font-size: 0.66rem;
  font-weight: 550;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  color: var(--faint);
}
.fact-v { font-size: 0.92rem; font-weight: 600; letter-spacing: -0.01em; }

/* ------------------------------------------------------------- features */

.feature { padding-block: clamp(56px, 8vw, 100px); }

.feature-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 320px);
  align-items: center;
  gap: clamp(28px, 5vw, 80px);
}
.feature--flip .feature-grid { grid-template-columns: minmax(0, 320px) minmax(0, 1fr); }
.feature--flip .feature-copy { order: 2; }
.feature--flip .feature-stage { order: 1; justify-self: start; }

.feature-copy .eyebrow { margin-bottom: 16px; }

h1,
h2 {
  max-width: 24ch;
  font-size: clamp(1.75rem, 3.1vw, 2.5rem);
  font-weight: 620;
  line-height: 1.1;
  letter-spacing: -0.03em;
}

.feature-copy > p:not(.eyebrow) {
  max-width: 34rem;
  margin-top: 18px;
  font-size: 1.03rem;
  color: var(--muted);
}

.ticks {
  display: grid;
  gap: 9px;
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid var(--rule);
  max-width: 32rem;
}
.ticks li {
  position: relative;
  padding-left: 22px;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--ink-soft);
}
.ticks li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 0.62em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
}

.feature-stage { display: flex; justify-content: center; }
.feature-stage .device { --w: 296px; }

/* -------------------------------------------------- home-screen widget */

.widget-stage {
  flex-direction: column;
  align-items: center;
  gap: 14px;
}

.hs {
  width: 244px;
  aspect-ratio: 1080 / 2340;
  padding: 8px 12px 0;
  border-radius: 33px;
  display: flex;
  flex-direction: column;
  gap: 0;
  overflow: hidden;
  color: #2a352e;
  background:
    radial-gradient(95% 46% at 20% 0%, rgba(255, 255, 255, 0.95) 0%, rgba(255, 255, 255, 0) 64%),
    radial-gradient(80% 40% at 92% 30%, rgba(255, 255, 255, 0.6) 0%, rgba(255, 255, 255, 0) 62%),
    radial-gradient(70% 34% at 30% 100%, rgba(255, 255, 255, 0.45) 0%, rgba(255, 255, 255, 0) 68%),
    linear-gradient(168deg, #eaf3e6 0%, #dbe9da 48%, #cde0d4 100%);
  box-shadow:
    0 0 0 1px rgba(15, 21, 18, 0.09),
    0 0 0 6px #fbfdfa,
    0 0 0 7px rgba(15, 21, 18, 0.07),
    0 28px 54px -32px rgba(15, 21, 18, 0.4);
}

.hs-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 4px;
  font-family: var(--mono);
  font-size: 0.5rem;
  letter-spacing: 0.03em;
  color: #4c5b52;
}
.hs-icons { display: flex; align-items: center; gap: 4px; }
.hs-sig {
  width: 9px;
  height: 7px;
  background:
    linear-gradient(#4c5b52, #4c5b52) 0 100% / 2px 3px no-repeat,
    linear-gradient(#4c5b52, #4c5b52) 3.5px 100% / 2px 4.5px no-repeat,
    linear-gradient(#4c5b52, #4c5b52) 7px 100% / 2px 6px no-repeat;
}
.hs-wifi {
  width: 0;
  height: 0;
  border-left: 4.5px solid transparent;
  border-right: 4.5px solid transparent;
  border-bottom: 6px solid #4c5b52;
  border-radius: 2px;
  opacity: 0.9;
}
.hs-batt {
  width: 12px;
  height: 6px;
  border-radius: 2px;
  box-shadow: inset 0 0 0 1.2px rgba(76, 91, 82, 0.75);
  background: linear-gradient(90deg, #4c5b52 62%, transparent 62%) content-box;
  position: relative;
}
.hs-batt::after {
  content: "";
  position: absolute;
  right: -2px;
  top: 1.5px;
  width: 1.2px;
  height: 3px;
  border-radius: 1px;
  background: rgba(76, 91, 82, 0.75);
}

/* The card itself: widget_task.xml in the light palette — plate #F7F9F5, the
   project chip in the app's green, the composer-shaped field beside it. */
.hs-widget {
  align-self: center;
  /* 930 of the phone's 1080 px: the launcher insets the card, it is not edge
     to edge. Height keeps the card's measured 5.47:1. */
  width: 210px;
  margin-top: 28px;
  display: flex;
  align-items: center;
  gap: 5px;
  height: 38px;
  padding: 0 6px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.84);
  backdrop-filter: blur(8px);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.9),
    0 1px 2px rgba(15, 21, 18, 0.06),
    0 10px 20px -14px rgba(15, 21, 18, 0.4);
}
.hs-proj {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  flex: none;
  height: 26px;
  padding: 0 5px 0 2px;
  border-radius: 8px;
  background: #f3f7f0;
  box-shadow: inset 0 0 0 1px #e3eadd;
}
/* The project's picture — the Grafizum mark itself, no plate behind it, because
   the card shows the project by picture and carries no name. */
.hs-chip {
  flex: none;
  width: 22px;
  height: 22px;
  display: grid;
  place-items: center;
}
.hs-logo { display: block; width: 22px; height: 22px; }
.hs-caret { width: 9px; height: 9px; color: #6f8278; }
.hs-field {
  flex: 1;
  min-width: 0;
  height: 26px;
  display: flex;
  align-items: center;
  padding: 0 7px;
  border-radius: 7px;
  background: #f6f9f4;
  box-shadow: inset 0 0 0 1px #e4eae0;
  font-size: 0.54rem;
  line-height: 1;
  color: #8b968f;
  white-space: nowrap;
  overflow: hidden;
}

.hs-apps {
  margin-top: 68px;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 22px 5px;
}

/* Placeholder apps, not anyone's marks: a tinted tile with one pale shape in it
   is enough to read as a home screen without inventing a brand. */
.hs-app {
  position: relative;
  aspect-ratio: 1;
  border-radius: 24%;
  background: linear-gradient(155deg, var(--c1), var(--c2));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.4),
    0 4px 9px -6px rgba(15, 21, 18, 0.45);
  overflow: hidden;
}
.hs-app::after {
  content: "";
  position: absolute;
  inset: 28%;
  border-radius: 30%;
  background: rgba(255, 255, 255, 0.74);
}
.hs-app:nth-child(3n)::after { inset: 34% 26%; border-radius: 44%; }
.hs-app:nth-child(4n)::after { inset: 30%; border-radius: 50%; }
.hs-app:nth-child(5n)::after { inset: 32% 36% 26%; border-radius: 40% 40% 26% 26%; }

.a1 { --c1: #9ad3ae; --c2: #4f9f78; }
.a2 { --c1: #aecdf0; --c2: #5f8fcc; }
.a3 { --c1: #f7ceb0; --c2: #dd8f60; }
.a4 { --c1: #cfc2ef; --c2: #8a7cc9; }
.a5 { --c1: #f1e1a8; --c2: #d2b258; }
.a6 { --c1: #b9dad7; --c2: #5f9e9c; }
.a7 { --c1: #f0b2b8; --c2: #cd7484; }
.a8 { --c1: #d3dccd; --c2: #93a68d; }
.a9 { --c1: #c2d9f2; --c2: #709bd1; }
.a10 { --c1: #f2c9b1; --c2: #d4906a; }
.a11 { --c1: #d3c2ea; --c2: #9a82cf; }
.a12 { --c1: #aedfc7; --c2: #4f9d78; }
.a13 { --c1: #d3e5b4; --c2: #88a95e; }
.a14 { --c1: #b6d9e8; --c2: #6496ad; }
.a15 { --c1: #ecc4d6; --c2: #b9789b; }
.a16 { --c1: #cdd6e8; --c2: #8290b5; }
.a17 { --c1: #cfe0ee; --c2: #7f9fbd; }
.a18 { --c1: #f0d9c2; --c2: #c79a6f; }
.a19 { --c1: #d9cde8; --c2: #9c86c4; }
.a20 { --c1: #bcdccd; --c2: #6aa98a; }

.hs-dots {
  margin-top: auto;
  display: flex;
  justify-content: center;
  gap: 4px;
  padding-bottom: 10px;
}
.hs-dots i { width: 4px; height: 4px; border-radius: 50%; background: rgba(42, 53, 46, 0.2); }
.hs-dots i.on { background: rgba(42, 53, 46, 0.55); }

.hs-dock {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 4px;
  padding: 5px;
  margin-bottom: 11px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.62);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.85),
    0 8px 18px -16px rgba(15, 21, 18, 0.5);
}

.hs-note {
  max-width: 30ch;
  font-size: 0.79rem;
  line-height: 1.5;
  color: var(--faint);
  text-align: center;
}

/* ---------------------------------------------------------------- rail */

.rail-section {
  padding-block: clamp(56px, 8vw, 92px) clamp(20px, 4vw, 40px);
  background: var(--paper-2);
  border-block: 1px solid var(--rule);
  overflow: hidden;
}
.rail-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 28rem);
  align-items: end;
  gap: 20px 48px;
}
.rail-head .eyebrow { margin-bottom: 14px; }
.rail-note { font-size: 0.97rem; color: var(--muted); }

.rail {
  display: flex;
  gap: clamp(20px, 3vw, 34px);
  margin-top: clamp(28px, 4vw, 44px);
  padding: 8px var(--gutter) 26px;
  max-width: var(--wrap);
  margin-inline: auto;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: thin;
  scrollbar-color: var(--rule) transparent;
}
.rail-item {
  flex: 0 0 auto;
  width: 208px;
  scroll-snap-align: start;
  display: grid;
  gap: 14px;
  justify-items: center;
}
.rail-item .screen { border-radius: 20px; }
.rail-item .screen img { border-radius: 16px; }
.device--small { --w: 208px; padding: 6px; border-radius: 30px; }
.device--small::before { border-radius: 30px; }
.rail-item figcaption {
  font-size: 0.8rem;
  font-weight: 550;
  color: var(--muted);
  text-align: center;
  line-height: 1.4;
}

/* -------------------------------------------------------------- status */

.status {
  padding-block: clamp(64px, 9vw, 110px);
  background: var(--dark);
  color: var(--dark-text);
}
.status h2 { color: #fff; max-width: 20ch; }
.status-lede {
  max-width: 44rem;
  margin-top: 18px;
  font-size: 1.04rem;
  color: var(--dark-muted);
}

.status-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: clamp(36px, 5vw, 52px);
}
.status-card {
  padding: 24px 22px 26px;
  border: 1px solid var(--dark-rule);
  border-radius: var(--radius);
  background: var(--dark-card);
}
.status-card-k {
  font-family: var(--mono);
  font-size: 0.66rem;
  font-weight: 550;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--accent-bright);
}
.status-card h3 {
  margin-top: 10px;
  font-size: 1.1rem;
  font-weight: 620;
  letter-spacing: -0.02em;
}
.status-card p:last-child {
  margin-top: 10px;
  font-size: 0.93rem;
  line-height: 1.6;
  color: var(--dark-muted);
}

.checks {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px 32px;
  margin-top: clamp(32px, 4vw, 44px);
  padding-top: 26px;
  border-top: 1px solid var(--dark-rule);
}
.checks li {
  position: relative;
  padding-left: 26px;
  font-size: 0.94rem;
  font-weight: 500;
  color: var(--dark-text);
}
.checks li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 0.3em;
  width: 12px;
  height: 7px;
  border-left: 2px solid var(--accent-bright);
  border-bottom: 2px solid var(--accent-bright);
  transform: rotate(-45deg);
}

/* ------------------------------------------------------------- closing */

.closing { padding-block: clamp(64px, 9vw, 110px); }
.closing-inner {
  display: grid;
  justify-items: center;
  text-align: center;
  gap: 18px;
}
.closing-mark {
  width: 68px;
  height: 68px;
  border-radius: 20px;
  border: 1px solid var(--rule);
  background: #fff;
}
:root.dark .closing-mark { border-color: rgba(255, 255, 255, 0.14); }
.closing h2 { max-width: 22ch; }
.closing-lede {
  max-width: 40rem;
  font-size: 1.04rem;
  color: var(--muted);
}

.features {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  width: 100%;
  margin-top: 26px;
  border-top: 1px solid var(--rule);
  text-align: left;
}
.features li {
  position: relative;
  padding: 14px 8px 14px 24px;
  border-bottom: 1px solid var(--rule);
  font-size: 0.93rem;
  font-weight: 550;
  color: var(--ink-soft);
}
.features li::before {
  content: "";
  position: absolute;
  left: 4px;
  top: 50%;
  width: 7px;
  height: 7px;
  margin-top: -3.5px;
  border-radius: 50%;
  border: 1.5px solid var(--accent);
}
.closing-cta { margin-top: 16px; }

/* -------------------------------------------------------------- footer */

.footer {
  border-top: 1px solid var(--rule);
  background: color-mix(in srgb, var(--card) 50%, transparent);
  padding-top: 44px;
}
.footer-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr) minmax(0, 1fr);
  gap: 32px;
  padding-bottom: 40px;
}
.footer-brand p {
  max-width: 24rem;
  margin-top: 14px;
  font-size: 0.88rem;
  line-height: 1.6;
  color: var(--muted);
}
.footer-col { display: grid; gap: 9px; align-content: start; }
.footer-col h3 {
  font-family: var(--mono);
  font-size: 0.64rem;
  font-weight: 550;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--faint);
  margin-bottom: 2px;
}
.footer-col a {
  font-size: 0.88rem;
  color: var(--muted);
  text-decoration: none;
  width: fit-content;
}
.footer-col a:hover { color: var(--accent-deep); }

.footer-base {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 24px;
  padding-block: 18px 28px;
  border-top: 1px solid var(--rule);
  font-size: 0.8rem;
  color: var(--faint);
}

/* ------------------------------------------------------------ responsive */

@media (max-width: 1279px) {
  :root:not(.dark) .brand-lockup.brand-ink { display: none; }
  :root.dark .brand-lockup.brand-paper { display: none; }
  :root:not(.dark) .brand-roundel.brand-ink { display: block; }
  :root.dark .brand-roundel.brand-paper { display: block; }
}

/* Below lg the site folds its row into the menu, and so does this bar. */
@media (max-width: 1023px) {
  .site-links,
  .site-right { display: none; }
  .site-menu { display: inline-flex; }
}

@media (max-width: 1000px) {
  .fact-v { font-size: 0.86rem; }
}

@media (max-width: 900px) {
  .feature-grid,
  .feature--flip .feature-grid {
    grid-template-columns: minmax(0, 1fr);
    justify-items: start;
    text-align: left;
  }
  .feature--flip .feature-copy { order: 1; }
  .feature--flip .feature-stage { order: 2; }
  .feature-stage { justify-self: center; width: 100%; }
  .feature-stage .device { --w: 260px; }
  .rail-head { grid-template-columns: minmax(0, 1fr); align-items: start; }
  .status-grid { grid-template-columns: minmax(0, 1fr); }
  .footer-inner { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 700px) {
  .facts-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
  .checks { grid-template-columns: minmax(0, 1fr); }
  .features { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 520px) {
  .feature-stage .device { --w: 232px; }
  .status-pill { font-size: 0.76rem; padding: 6px 12px 6px 10px; }
  .features { grid-template-columns: minmax(0, 1fr); }
  .footer-inner { grid-template-columns: minmax(0, 1fr); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
