/* ==========================================================================
   HexPic — marketing site
   Palette rule: every white is #fbfbfb, every black is #171717.
   ========================================================================== */

/* ---------------------------------------------------------------- tokens  */
:root {
  /* the only two neutrals */
  --white: #fbfbfb;
  --black: #171717;

  /* tints derived strictly from the two neutrals */
  --ink-90: rgba(23, 23, 23, .90);
  --ink-70: rgba(23, 23, 23, .70);
  --ink-55: rgba(23, 23, 23, .55);
  --ink-40: rgba(23, 23, 23, .40);
  --ink-18: rgba(23, 23, 23, .18);
  --ink-10: rgba(23, 23, 23, .10);
  --ink-06: rgba(23, 23, 23, .06);
  --ink-03: rgba(23, 23, 23, .035);

  --paper-70: rgba(251, 251, 251, .70);
  --paper-55: rgba(251, 251, 251, .55);
  --paper-30: rgba(251, 251, 251, .30);
  --paper-14: rgba(251, 251, 251, .14);

  /* spectrum — Apple system colors, in P3 where supported */
  --c-red:    #ff375f;
  --c-orange: #ff9f0a;
  --c-yellow: #ffd60a;
  --c-green:  #30d158;
  --c-teal:   #40c8e0;
  --c-blue:   #0a84ff;
  --c-indigo: #5e5ce6;

  /* the color shown in the app panel and the format block */
  --pick: #ff375f;
  /* the hero accent. Only the hue ever varies — saturation and lightness stay
     put, so it is always vivid and always readable on the paper. */
  --hero-hue: 348;
  --hero-c: hsl(var(--hero-hue), 82%, 46%);

  --radius-sm: 10px;
  --radius:    16px;
  --radius-lg: 24px;
  --radius-xl: 34px;

  --gut: clamp(20px, 5vw, 40px);
  /* the nav runs full-bleed, so it gets its own tighter gutter than the
     centred content container */
  --nav-gut: clamp(16px, 2.2vw, 28px);
  --max: 1180px;
  --nav-h: 64px;

  --ease: cubic-bezier(.22, 1, .36, 1);
  --ease-io: cubic-bezier(.65, 0, .35, 1);

  --font: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text",
          "Inter", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", SFMono-Regular, "JetBrains Mono",
          Menlo, Consolas, monospace;
}

/* Registered so a CSS animation can interpolate it. An unregistered custom
   property jumps between keyframes instead of tweening. */
@property --hero-hue {
  syntax: '<number>';
  inherits: true;
  initial-value: 348;
}

@supports (color: color(display-p3 1 1 1)) {
  :root {
    --c-red:    color(display-p3 .98 .22 .36);
    --c-orange: color(display-p3 1   .62 .04);
    --c-yellow: color(display-p3 1   .84 .04);
    --c-green:  color(display-p3 .19 .82 .35);
    --c-teal:   color(display-p3 .25 .78 .88);
    --c-blue:   color(display-p3 .04 .52 1);
    --c-indigo: color(display-p3 .37 .36 .90);
  }
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-h) + 24px);
}

body {
  margin: 0;
  background: var(--white);
  color: var(--black);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.6;
  letter-spacing: -.011em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

img, svg, canvas { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; border: 0; background: none; cursor: pointer; }
code, kbd { font-family: var(--mono); }

::selection { background: var(--black); color: var(--white); }

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

.skip-link {
  position: absolute; top: -100px; left: 16px; z-index: 200;
  background: var(--black); color: var(--white);
  padding: 12px 18px; border-radius: 10px;
}
.skip-link:focus { top: 12px; }

/* ---------------------------------------------------------------- layout  */
.container { width: 100%; max-width: var(--max); margin-inline: auto; padding-inline: var(--gut); }
.container--narrow { max-width: 800px; }

.section { padding-block: clamp(80px, 12vw, 156px); position: relative; }

.section__head { max-width: 760px; margin: 0 auto clamp(48px, 7vw, 84px); text-align: center; }
.section__head--left { margin-inline: 0; text-align: left; }

/* ---------------------------------------------------------------- type    */
.h2 {
  margin: 0 0 20px;
  font-size: clamp(34px, 5.6vw, 62px);
  line-height: 1.03;
  letter-spacing: -.038em;
  font-weight: 700;
  text-wrap: balance;
}
.h2--light { color: var(--white); }

.kicker {
  margin: 0 0 16px;
  font-size: 12px;
  font-weight: 660;
  letter-spacing: .13em;
  text-transform: uppercase;
  color: var(--ink-40);
}
.kicker--light { color: var(--paper-55); }

.lede {
  margin: 0;
  font-size: clamp(17px, 2vw, 20px);
  line-height: 1.6;
  color: var(--ink-55);
  text-wrap: pretty;
}

.eyebrow {
  display: inline-flex; align-items: center; gap: 9px;
  margin: 0 0 26px;
  padding: 7px 15px 7px 11px;
  border: 1px solid var(--ink-10);
  border-radius: 999px;
  background: var(--paper-70);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  font-size: 13.5px; font-weight: 520; color: var(--ink-70);
}
.eyebrow .dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--hero-c);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--hero-c) 20%, transparent);
  transition: background .18s linear, box-shadow .18s linear;
}

kbd {
  display: inline-block;
  padding: 1px 6px;
  border: 1px solid var(--ink-18);
  border-bottom-width: 2px;
  border-radius: 6px;
  background: var(--white);
  font-size: .82em;
  line-height: 1.5;
}

/* ---------------------------------------------------------------- buttons */
.btn {
  --btn-bg: var(--black);
  --btn-fg: var(--white);
  position: relative;
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  padding: 13px 24px;
  border-radius: 999px;
  background: var(--btn-bg);
  color: var(--btn-fg);
  font-size: 15.5px; font-weight: 590; letter-spacing: -.01em;
  white-space: nowrap;
  transition: transform .28s var(--ease), box-shadow .28s var(--ease),
              background .25s var(--ease), color .25s var(--ease);
}
.btn svg { width: 17px; height: 17px; flex: none; }

.btn--sm { padding: 9px 18px; font-size: 14.5px; }
.btn--lg { padding: 16px 30px; font-size: 16.5px; }

.btn--primary { box-shadow: 0 1px 2px rgba(23,23,23,.16), 0 8px 26px -12px rgba(23,23,23,.5); }
.btn--primary:hover { transform: translateY(-2px); box-shadow: 0 2px 4px rgba(23,23,23,.14), 0 18px 40px -14px rgba(23,23,23,.55); }
.btn--primary:active { transform: translateY(0) scale(.985); }

/* the download button borrows the live picked color on hover */
.btn[data-glow]::after {
  content: "";
  position: absolute; inset: -2px;
  border-radius: inherit;
  background: var(--hero-c);
  filter: blur(18px);
  opacity: 0;
  z-index: -1;
  transition: opacity .35s var(--ease);
}
.btn[data-glow]:hover::after { opacity: .55; }

.btn--ghost {
  --btn-bg: transparent; --btn-fg: var(--black);
  border: 1px solid var(--ink-18);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
.btn--ghost:hover { background: var(--ink-06); transform: translateY(-2px); }

.btn--invert { --btn-bg: var(--white); --btn-fg: var(--black); }
.btn--invert:hover { transform: translateY(-2px); box-shadow: 0 16px 36px -16px rgba(0,0,0,.9); }

.btn--ghost-light {
  --btn-bg: transparent; --btn-fg: var(--white);
  border: 1px solid var(--paper-30);
}
.btn--ghost-light:hover { background: var(--paper-14); transform: translateY(-2px); }

/* ---------------------------------------------------------------- nav     */
.nav {
  position: fixed; inset: 0 0 auto; z-index: 100;
  transition: background .3s var(--ease), border-color .3s var(--ease), box-shadow .3s var(--ease);
  border-bottom: 1px solid transparent;
}
.nav.is-stuck {
  background: var(--paper-70);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom-color: var(--ink-06);
}

.nav__inner {
  display: flex; align-items: center; gap: 24px;
  height: var(--nav-h);
  width: 100%;
  padding-inline: var(--nav-gut);
}

.brand { display: inline-flex; align-items: center; gap: 9px; }
.brand__mark { width: 26px; height: 26px; }
.brand__mark svg { width: 100%; height: 100%; }
.brand__word { font-size: 17.5px; font-weight: 660; letter-spacing: -.025em; }

.nav__links { display: flex; gap: 4px; margin-inline: auto; }
.nav__links a {
  padding: 7px 13px; border-radius: 999px;
  font-size: 14.5px; font-weight: 500; color: var(--ink-70);
  transition: color .2s, background .2s;
}
.nav__links a:hover { color: var(--black); background: var(--ink-06); }

.nav__actions { display: flex; align-items: center; gap: 12px; margin-left: auto; }

/* Once the centre links are showing, switch to a symmetric 3-track grid. Auto
   margins would only centre the links in the space left between the logo and
   the buttons — and those two are different widths, so the links would sit off
   to one side. Equal 1fr rails on either side centre them on the viewport. */
@media (min-width: 861px) {
  .nav__inner {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  }
  .nav__links { margin-inline: 0; justify-content: center; }
  .nav__actions { margin-left: 0; justify-self: end; }
}

.chip {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 5px 11px 5px 9px;
  border: 1px solid var(--ink-10); border-radius: 999px;
  font-size: 12.5px; font-weight: 560; color: var(--ink-55);
}
.chip svg { width: 12px; height: 12px; }

.nav__burger { display: none; width: 40px; height: 40px; border-radius: 10px; }
.nav__burger span {
  display: block; width: 18px; height: 1.8px; margin: 4px auto;
  background: var(--black); border-radius: 2px;
  transition: transform .3s var(--ease), opacity .2s;
}
.nav__burger[aria-expanded="true"] span:first-child { transform: translateY(3px) rotate(45deg); }
.nav__burger[aria-expanded="true"] span:last-child  { transform: translateY(-3px) rotate(-45deg); }

.mobile-menu[hidden] { display: none; }
@media (min-width: 861px) { .mobile-menu { display: none !important; } }

.mobile-menu {
  display: flex; flex-direction: column; gap: 4px;
  padding: 12px var(--nav-gut) 26px;
  background: var(--white);
  border-bottom: 1px solid var(--ink-06);
}
.mobile-menu a { padding: 13px 4px; font-size: 18px; font-weight: 560; }
.mobile-menu .btn { margin-top: 12px; justify-content: center; }

/* ---------------------------------------------------------------- hero    */
.hero {
  position: relative;
  min-height: min(92svh, 820px);
  display: flex; align-items: center;
  padding-block: calc(var(--nav-h) + 72px) 96px;
}

.hero__inner { position: relative; text-align: center; }

.hero__h1 {
  margin: 0 0 26px;
  font-size: clamp(52px, 11.5vw, 148px);
  line-height: .92;
  letter-spacing: -.05em;
  font-weight: 730;
  text-wrap: balance;
}

/* follows the cursor's hue — generated at a fixed saturation and lightness
   so it is always vivid and always readable on #fbfbfb */
.hero__accent {
  color: var(--hero-c);
  transition: color .18s linear;
}

/* No hover means no cursor to drive the hue, so drift it on a slow loop
   instead — the accent still moves through color on a phone. */
@media (hover: none) {
  :root { animation: hue-drift 34s linear infinite; }
  /* the hue already changes every frame; a transition on top only smears it */
  .hero__accent, .eyebrow .dot { transition: none; }
}
@keyframes hue-drift {
  from { --hero-hue: 0; }
  to   { --hero-hue: 360; }
}

.hero__sub {
  max-width: 620px; margin: 0 auto 34px;
  font-size: clamp(17px, 2.1vw, 21px);
  line-height: 1.55;
  color: var(--ink-70);
  text-wrap: pretty;
}
.hero__sub em { font-style: normal; color: var(--black); font-weight: 590; }

.hero__cta { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }

.hero__meta { margin: 22px 0 0; font-size: 13.5px; color: var(--ink-40); }

.scroll-cue {
  position: absolute; bottom: 30px; left: 50%; transform: translateX(-50%);
  width: 22px; height: 34px;
  border: 1.5px solid var(--ink-18); border-radius: 12px;
}
.scroll-cue span {
  position: absolute; top: 7px; left: 50%; margin-left: -1.5px;
  width: 3px; height: 6px; border-radius: 2px; background: var(--ink-40);
  animation: cue 2s var(--ease-io) infinite;
}
@keyframes cue { 0%,100% { transform: translateY(0); opacity: 1; } 55% { transform: translateY(11px); opacity: .2; } }

/* ---------------------------------------------------------------- marquee */
.marquee {
  padding-block: 20px;
  border-block: 1px solid var(--ink-06);
  overflow: hidden;
  -webkit-mask-image: linear-gradient(to right, transparent, var(--black) 12%, var(--black) 88%, transparent);
          mask-image: linear-gradient(to right, transparent, var(--black) 12%, var(--black) 88%, transparent);
}
.marquee__track {
  display: flex; gap: 40px; width: max-content;
  animation: slide 44s linear infinite;
}
.marquee:hover .marquee__track { animation-play-state: paused; }
@keyframes slide { to { transform: translateX(-50%); } }

.marquee__item {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--mono); font-size: 13px; font-weight: 500;
  color: var(--ink-40); letter-spacing: .02em;
}
.marquee__sw { width: 13px; height: 13px; border-radius: 4px; box-shadow: inset 0 0 0 1px rgba(23,23,23,.1); }

/* ---------------------------------------------------------------- showcase*/
.showcase__stage {
  position: relative;
  display: flex; justify-content: center;
  padding-block: clamp(30px, 6vw, 64px);
}
.showcase__glow {
  position: absolute; top: 50%; left: 50%;
  width: min(760px, 96%); height: 380px;
  transform: translate(-50%, -50%);
  background:
    radial-gradient(closest-side, color-mix(in srgb, var(--c-red) 55%, transparent), transparent) -14% 34% / 58% 78% no-repeat,
    radial-gradient(closest-side, color-mix(in srgb, var(--c-blue) 55%, transparent), transparent) 108% 22% / 56% 76% no-repeat,
    radial-gradient(closest-side, color-mix(in srgb, var(--c-yellow) 50%, transparent), transparent) 46% 108% / 62% 66% no-repeat;
  filter: blur(58px);
  opacity: .5;
  z-index: -1;
}

.app {
  width: min(430px, 100%);
  border-radius: var(--radius-lg);
  background: var(--paper-70);
  backdrop-filter: saturate(180%) blur(30px);
  -webkit-backdrop-filter: saturate(180%) blur(30px);
  border: 1px solid var(--paper-70);
  box-shadow:
    0 0 0 1px var(--ink-06),
    0 30px 70px -28px rgba(23,23,23,.42),
    0 6px 18px -10px rgba(23,23,23,.24);
  overflow: hidden;
}

.app__chrome {
  display: flex; align-items: center; gap: 7px;
  padding: 13px 16px;
  border-bottom: 1px solid var(--ink-06);
}
.tl { width: 11px; height: 11px; border-radius: 50%; }
.tl--r { background: #ff5f57; } .tl--y { background: #febc2e; } .tl--g { background: #28c840; }
.app__title {
  margin-left: auto; margin-right: auto; padding-right: 40px;
  font-size: 12.5px; font-weight: 600; color: var(--ink-40);
}

.app__body { padding: 18px; display: grid; gap: 14px; }

.app__swatch {
  position: relative;
  height: 128px; border-radius: var(--radius);
  background: var(--pick);
  box-shadow: inset 0 0 0 1px rgba(23,23,23,.08);
  transition: background .3s var(--ease);
  display: flex; align-items: flex-end; justify-content: space-between;
  padding: 12px 14px;
}
.app__swatch-label, .app__gamut {
  padding: 3px 9px; border-radius: 7px;
  background: rgba(23,23,23,.35);
  color: var(--white);
  font-size: 11px; font-weight: 620; letter-spacing: .03em;
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
}
.app__gamut { letter-spacing: .06em; }

.app__rows { display: grid; gap: 5px; }
.app__row {
  display: grid; grid-template-columns: 42px 1fr auto;
  align-items: center; gap: 12px;
  padding: 9px 11px;
  border-radius: var(--radius-sm);
  background: var(--ink-03);
  transition: background .2s;
}
.app__row:hover { background: var(--ink-06); }
.app__key { font-size: 11px; font-weight: 680; letter-spacing: .07em; color: var(--ink-40); }
.app__val {
  font-family: var(--mono); font-size: 13px; font-weight: 500;
  color: var(--black); letter-spacing: -.01em;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.app__row--wide .app__val { font-size: 11.5px; }
.app__copy { font-size: 11px; color: var(--ink-40); }

.app__history { display: flex; align-items: center; gap: 12px; padding: 2px 11px 2px; }
.app__dots { display: flex; gap: 7px; }
.app__dots i {
  width: 21px; height: 21px; border-radius: 7px;
  box-shadow: inset 0 0 0 1px rgba(23,23,23,.09);
  transition: transform .25s var(--ease);
  cursor: pointer;
}
.app__dots i:hover { transform: translateY(-3px) scale(1.1); }

/* decorative loupe floating beside the panel */
.float-loupe {
  position: absolute; right: max(2%, calc(50% - 330px)); top: 14%;
  width: 132px; height: 132px;
  border-radius: 50%;
  background: var(--c-blue);
  border: 4px solid var(--white);
  box-shadow: 0 0 0 1px var(--ink-10), 0 26px 54px -18px rgba(23,23,23,.45);
  animation: bob 7s var(--ease-io) infinite;
}
.float-loupe__grid {
  position: absolute; inset: 0; border-radius: 50%;
  background-image:
    linear-gradient(to right,  rgba(251,251,251,.26) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(251,251,251,.26) 1px, transparent 1px);
  background-size: 16.5px 16.5px;
}
.float-loupe__px {
  position: absolute; top: 50%; left: 50%;
  width: 17px; height: 17px; margin: -8.5px 0 0 -8.5px;
  border: 2.5px solid var(--white); border-radius: 3px;
  box-shadow: 0 0 0 1.5px rgba(23,23,23,.45);
}
.float-loupe__hex {
  position: absolute; top: calc(100% + 12px); left: 50%; transform: translateX(-50%);
  padding: 5px 11px; border-radius: 8px;
  background: var(--black); color: var(--white);
  font-family: var(--mono); font-size: 11.5px; white-space: nowrap;
}
@keyframes bob { 0%,100% { transform: translateY(0) rotate(-3deg); } 50% { transform: translateY(-16px) rotate(3deg); } }

.showcase__notes {
  display: grid; gap: 12px 40px;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  max-width: 900px; margin: clamp(30px, 5vw, 56px) auto 0;
  padding: 0; list-style: none;
  text-align: center;
}
.showcase__notes li { font-size: 15px; color: var(--ink-55); }
.showcase__notes strong { display: block; color: var(--black); font-weight: 600; margin-bottom: 2px; }

/* ---------------------------------------------------------------- cards   */
.grid {
  display: grid; gap: 16px;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.card {
  --accent: var(--c-blue);
  position: relative;
  padding: 30px 28px 32px;
  border-radius: var(--radius-lg);
  background: var(--white);
  box-shadow: 0 0 0 1px var(--ink-06);
  overflow: hidden;
  transition: transform .4s var(--ease), box-shadow .4s var(--ease);
}
.card::before {
  content: "";
  position: absolute; inset: -40% 40% 60% -40%;
  background: radial-gradient(closest-side, var(--accent), transparent);
  opacity: 0; filter: blur(40px);
  transition: opacity .5s var(--ease);
}
.card:hover { transform: translateY(-4px); box-shadow: 0 0 0 1px var(--ink-10), 0 24px 48px -26px rgba(23,23,23,.4); }
.card:hover::before { opacity: .22; }

.card__icon {
  position: relative;
  display: grid; place-items: center;
  width: 44px; height: 44px; margin-bottom: 20px;
  border-radius: 13px;
  background: color-mix(in srgb, var(--accent) 14%, var(--white));
  color: var(--accent);
}
.card__icon svg { width: 22px; height: 22px; }

.card h3 {
  position: relative;
  margin: 0 0 9px;
  font-size: 20px; font-weight: 640; letter-spacing: -.022em;
}
.card p { position: relative; margin: 0; font-size: 15.5px; line-height: 1.62; color: var(--ink-55); }
.card code {
  padding: 1px 5px; border-radius: 5px;
  background: var(--ink-06); font-size: .88em; color: var(--ink-70);
}

/* ---------------------------------------------------------------- formats */
.split {
  display: grid; gap: clamp(36px, 6vw, 72px);
  grid-template-columns: 1fr;
  align-items: center;
}
@media (min-width: 900px) { .split { grid-template-columns: .95fr 1.05fr; } }

.split__text .lede { margin-bottom: 18px; }
.split__text code { padding: 1px 6px; border-radius: 5px; background: var(--ink-06); font-size: .86em; }
.split__note { margin: 0; font-size: 14px; color: var(--ink-40); }

.code {
  border-radius: var(--radius-lg);
  background: var(--black);
  box-shadow: 0 30px 70px -34px rgba(23,23,23,.6);
  overflow: hidden;
}
.code__tabs {
  display: flex; gap: 2px; padding: 10px 10px 0;
  overflow-x: auto; scrollbar-width: none;
}
.code__tabs::-webkit-scrollbar { display: none; }
.code__tab {
  flex: none;
  padding: 8px 14px;
  border-radius: 9px 9px 0 0;
  font-size: 12.5px; font-weight: 600; letter-spacing: .02em;
  color: var(--paper-55);
  transition: color .2s, background .2s;
}
.code__tab:hover { color: var(--white); background: var(--paper-14); }
.code__tab.is-active { color: var(--black); background: var(--white); }

.code__body {
  display: flex; align-items: center; gap: 14px;
  padding: 26px 20px 28px;
  background: var(--white);
  min-height: 92px;
}
.code__swatch {
  width: 40px; height: 40px; flex: none;
  border-radius: 11px; background: var(--pick);
  box-shadow: inset 0 0 0 1px rgba(23,23,23,.1);
  transition: background .3s var(--ease);
}
.code__body code {
  flex: 1;
  font-size: clamp(14px, 1.7vw, 18px);
  font-weight: 520; letter-spacing: -.015em;
  overflow-x: auto; white-space: nowrap;
  scrollbar-width: none;
}
.code__body code::-webkit-scrollbar { display: none; }
.code__copy {
  flex: none;
  display: grid; place-items: center;
  width: 38px; height: 38px;
  border-radius: 11px; border: 1px solid var(--ink-10);
  color: var(--ink-55);
  transition: background .2s, color .2s, transform .2s var(--ease);
}
.code__copy:hover { background: var(--ink-06); color: var(--black); transform: translateY(-1px); }
.code__copy svg { width: 17px; height: 17px; }

/* ---------------------------------------------------------------- gamut   */
.gamut {
  display: grid; gap: clamp(32px, 5vw, 64px);
  grid-template-columns: 1fr;
  align-items: center;
  padding: clamp(28px, 4vw, 48px);
  border-radius: var(--radius-xl);
  background: var(--ink-03);
  box-shadow: 0 0 0 1px var(--ink-06);
}
@media (min-width: 860px) { .gamut { grid-template-columns: 1fr 1fr; } }

.gamut__viz { display: grid; place-items: center; }
.gamut__viz svg { width: min(320px, 100%); height: auto; }

.stat { padding-block: 14px; border-bottom: 1px solid var(--ink-10); }
.stat:first-child { padding-top: 0; }
.stat__num {
  display: block;
  font-size: clamp(30px, 4.4vw, 44px);
  font-weight: 700; letter-spacing: -.04em; line-height: 1.05;
}
.stat__label { display: block; margin-top: 4px; font-size: 14.5px; color: var(--ink-55); }
.gamut__foot { margin: 22px 0 0; font-size: 14.5px; line-height: 1.6; color: var(--ink-55); }

/* ---------------------------------------------------------------- price   */
.pricebox {
  position: relative;
  padding: clamp(44px, 6.5vw, 80px) clamp(28px, 5vw, 64px);
  border-radius: var(--radius-xl);
  background: var(--black);
  color: var(--white);
  text-align: center;
  overflow: hidden;
  isolation: isolate;
}
.pricebox__aura {
  position: absolute; inset: -30% -10% auto -10%; height: 130%;
  background:
    radial-gradient(closest-side, var(--c-red), transparent)    6%  10% / 46% 62% no-repeat,
    radial-gradient(closest-side, var(--c-orange), transparent) 40% -6% / 44% 56% no-repeat,
    radial-gradient(closest-side, var(--c-green), transparent)  76% 14% / 44% 60% no-repeat,
    radial-gradient(closest-side, var(--c-blue), transparent)  100% 46% / 50% 64% no-repeat;
  filter: blur(64px);
  opacity: .42;
  z-index: -1;
}

.pricebox__amount {
  display: flex; align-items: baseline; justify-content: center; gap: 4px;
  margin: 30px 0 6px;
}
.pricebox__cur { font-size: clamp(26px, 3.4vw, 38px); font-weight: 640; color: var(--paper-70); }
.pricebox__num {
  font-size: clamp(66px, 12vw, 128px);
  font-weight: 730; letter-spacing: -.055em; line-height: .9;
}
.pricebox__per {
  margin-left: 12px;
  font-size: 14px; font-weight: 560; letter-spacing: .01em;
  color: var(--paper-55);
}

.pricebox__list {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 12px;
  margin: 28px 0 34px; padding: 0; list-style: none;
}
.pricebox__list li {
  padding: 7px 15px;
  border: 1px solid var(--paper-30); border-radius: 999px;
  font-size: 13.5px; color: var(--paper-70);
}

.pricebox__cta { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
.pricebox__fine { margin: 22px 0 0; font-size: 13px; color: var(--paper-55); }

/* ---------------------------------------------------------------- faq     */
.accordion { border-top: 1px solid var(--ink-10); }

.acc { border-bottom: 1px solid var(--ink-10); }
.acc summary {
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  padding: 22px 4px;
  font-size: clamp(17px, 2vw, 19px); font-weight: 580; letter-spacing: -.02em;
  cursor: pointer; list-style: none;
  transition: color .2s;
}
.acc summary::-webkit-details-marker { display: none; }
.acc summary:hover { color: var(--ink-70); }

.acc__mark { position: relative; width: 15px; height: 15px; flex: none; }
.acc__mark::before, .acc__mark::after {
  content: ""; position: absolute; top: 50%; left: 0;
  width: 15px; height: 1.8px; margin-top: -.9px;
  background: var(--ink-55); border-radius: 2px;
  transition: transform .3s var(--ease);
}
.acc__mark::after { transform: rotate(90deg); }
.acc[open] .acc__mark::after { transform: rotate(0); }

.acc__body { padding: 0 4px 26px; max-width: 66ch; }
.acc__body p { margin: 0; font-size: 16px; line-height: 1.65; color: var(--ink-55); }
.acc[open] .acc__body { animation: accIn .38s var(--ease); }
@keyframes accIn { from { opacity: 0; transform: translateY(-6px); } }

/* ---------------------------------------------------------------- final   */
.final { padding-block: clamp(90px, 13vw, 170px); text-align: center; }
.final__h2 {
  margin: 0 0 30px;
  font-size: clamp(44px, 9vw, 104px);
  font-weight: 730; letter-spacing: -.05em; line-height: .95;
}
.final__meta { margin: 20px 0 0; font-size: 13.5px; color: var(--ink-40); }

/* ---------------------------------------------------------------- footer  */
.footer { border-top: 1px solid var(--ink-06); padding-block: 56px 30px; }
.footer__inner {
  display: grid; gap: 40px;
  grid-template-columns: 1fr;
}
@media (min-width: 720px) { .footer__inner { grid-template-columns: 2fr 1fr 1fr 1fr; } }

.footer__tag { margin: 16px 0 0; font-size: 14px; line-height: 1.6; color: var(--ink-40); }

.footer__col { display: flex; flex-direction: column; gap: 10px; }
.footer__col h3 {
  margin: 0 0 4px;
  font-size: 11.5px; font-weight: 660; letter-spacing: .11em; text-transform: uppercase;
  color: var(--ink-40);
}
.footer__col a { font-size: 14.5px; color: var(--ink-70); transition: color .2s; }
.footer__col a:hover { color: var(--black); }

.footer__base {
  display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between;
  margin-top: 48px; padding-top: 24px;
  border-top: 1px solid var(--ink-06);
}
.footer__base p { margin: 0; font-size: 12.5px; color: var(--ink-40); }

/* ==========================================================================
   Pricing page
   ========================================================================== */
.page-pricing { padding-top: var(--nav-h); }

.phead {
  position: relative;
  padding-block: clamp(64px, 10vw, 120px) clamp(40px, 6vw, 64px);
  text-align: center;
  overflow: hidden;
  isolation: isolate;
}
.phead__aura {
  position: absolute; inset: -60% -10% auto -10%; height: 150%;
  background:
    radial-gradient(closest-side, var(--c-red), transparent)    10% 46% / 42% 60% no-repeat,
    radial-gradient(closest-side, var(--c-orange), transparent) 38% 28% / 40% 54% no-repeat,
    radial-gradient(closest-side, var(--c-green), transparent)  66% 50% / 42% 58% no-repeat,
    radial-gradient(closest-side, var(--c-blue), transparent)   92% 32% / 46% 60% no-repeat;
  filter: blur(72px);
  opacity: .34;
  z-index: -1;
}

.phead__h1 {
  margin: 0 0 22px;
  font-size: clamp(46px, 9.5vw, 116px);
  line-height: .93;
  letter-spacing: -.05em;
  font-weight: 730;
  text-wrap: balance;
}
.phead__sub {
  max-width: 600px; margin: 0 auto;
  font-size: clamp(16.5px, 2vw, 20px);
  line-height: 1.58;
  color: var(--ink-70);
  text-wrap: pretty;
}

.section--tight { padding-top: clamp(24px, 4vw, 44px); }

/* ------------------------------------------------------------- plans     */
.plans {
  display: grid; gap: 16px;
  grid-template-columns: 1fr;
  align-items: start;
}
@media (min-width: 900px) { .plans { grid-template-columns: 1.15fr 1fr; } }

.plan {
  position: relative;
  padding: clamp(30px, 4vw, 44px);
  border-radius: var(--radius-xl);
  overflow: hidden;
  isolation: isolate;
}

.plan--hero { background: var(--black); color: var(--white); }
.plan__aura {
  position: absolute; inset: auto -20% -50% -20%; height: 110%;
  background:
    radial-gradient(closest-side, var(--c-red), transparent)    12% 74% / 52% 66% no-repeat,
    radial-gradient(closest-side, var(--c-yellow), transparent) 52% 96% / 50% 62% no-repeat,
    radial-gradient(closest-side, var(--c-blue), transparent)   92% 70% / 54% 68% no-repeat;
  filter: blur(60px);
  opacity: .40;
  z-index: -1;
}

.plan__tag {
  margin: 0 0 10px;
  font-size: 12px; font-weight: 660; letter-spacing: .13em; text-transform: uppercase;
  color: var(--paper-55);
}
.plan__name { margin: 0; font-size: clamp(24px, 3vw, 30px); font-weight: 660; letter-spacing: -.03em; }
.plan__name--sm { font-size: 20px; margin-bottom: 10px; }

.plan__price { display: flex; align-items: baseline; gap: 3px; margin: 22px 0 2px; }
.plan__cur { font-size: clamp(24px, 3vw, 34px); font-weight: 640; color: var(--paper-70); }
.plan__num { font-size: clamp(60px, 10vw, 104px); font-weight: 730; letter-spacing: -.055em; line-height: .9; }
.plan__unit { margin: 0 0 26px; font-size: 14px; color: var(--paper-55); }

.plan__btn { width: 100%; }

.plan__pay { display: flex; flex-wrap: wrap; gap: 7px; margin: 14px 0 0; }
.pay {
  padding: 5px 11px;
  border: 1px solid var(--paper-30); border-radius: 8px;
  font-size: 11.5px; font-weight: 560; color: var(--paper-70);
}

.plan__list {
  display: grid; gap: 11px;
  margin: 30px 0 0; padding: 26px 0 0;
  list-style: none;
  border-top: 1px solid var(--paper-30);
}
.plan__list li {
  position: relative;
  padding-left: 27px;
  font-size: 15px; color: var(--paper-70);
}
.plan__list li::before {
  content: "";
  position: absolute; left: 0; top: .45em;
  width: 14px; height: 8px;
  border-left: 2px solid var(--white); border-bottom: 2px solid var(--white);
  border-radius: 1px;
  transform: rotate(-45deg);
}

.plan-side { display: grid; gap: 16px; }

.plan--quiet {
  background: var(--white);
  box-shadow: 0 0 0 1px var(--ink-06);
}
.plan__copy { margin: 0 0 20px; font-size: 15px; line-height: 1.6; color: var(--ink-55); }
.plan__fine { margin: 14px 0 0; font-size: 12.5px; color: var(--ink-40); }

.buy-note {
  max-width: 620px; margin: 30px auto 0;
  text-align: center;
  font-size: 13.5px; line-height: 1.6; color: var(--ink-40);
}

/* ------------------------------------------------------------- compare   */
.ctable {
  border-radius: var(--radius-lg);
  box-shadow: 0 0 0 1px var(--ink-06);
  overflow: hidden;
}
.ctable__row {
  display: grid;
  grid-template-columns: 1.2fr .8fr 1fr;
  gap: 12px;
  padding: 15px clamp(16px, 3vw, 26px);
  font-size: 15px;
  border-top: 1px solid var(--ink-06);
}
.ctable__row:first-child { border-top: 0; }
.ctable__row:nth-child(even) { background: var(--ink-03); }
.ctable__row span:first-child { color: var(--ink-55); }
.ctable__row span:last-child  { color: var(--ink-40); }

.ctable__row--head {
  background: var(--black) !important;
  color: var(--white);
  font-size: 13px; font-weight: 620; letter-spacing: .02em;
}
.ctable__row--head span:first-child,
.ctable__row--head span:last-child { color: var(--paper-70); }

.yes { font-weight: 640; color: var(--black) !important; }

/* ------------------------------------------------------------- spec      */
.spec {
  margin: 0;
  border-radius: var(--radius-lg);
  background: var(--ink-03);
  box-shadow: 0 0 0 1px var(--ink-06);
  overflow: hidden;
}
.spec > div {
  display: grid; gap: 4px 20px;
  padding: 15px clamp(16px, 3vw, 24px);
  border-top: 1px solid var(--ink-06);
}
.spec > div:first-child { border-top: 0; }
@media (min-width: 520px) { .spec > div { grid-template-columns: 150px 1fr; align-items: baseline; } }

.spec dt { font-size: 12.5px; font-weight: 620; letter-spacing: .02em; color: var(--ink-40); }
.spec dd { margin: 0; font-size: 15px; color: var(--black); }

/* ---------------------------------------------------------------- toast   */
.toast {
  position: fixed; left: 50%; bottom: 32px; z-index: 200;
  display: flex; align-items: center; gap: 10px;
  padding: 12px 20px;
  border-radius: 999px;
  background: var(--black); color: var(--white);
  font-size: 14px; font-weight: 520;
  box-shadow: 0 18px 40px -16px rgba(23,23,23,.6);
  transform: translate(-50%, 24px);
  opacity: 0; pointer-events: none;
  transition: opacity .3s var(--ease), transform .4s var(--ease);
}
.toast.is-on { opacity: 1; transform: translate(-50%, 0); }
.toast i { width: 13px; height: 13px; border-radius: 4px; flex: none; }

/* ---------------------------------------------------------------- reveal  */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity .8s var(--ease), transform .8s var(--ease);
  transition-delay: calc(var(--d, 0) * 90ms);
}
.reveal.is-in { opacity: 1; transform: none; }

/* ---------------------------------------------------------------- resp.   */
@media (max-width: 860px) {
  .nav__links { display: none; }
  .nav__burger { display: block; }
  .chip--os { display: none; }
  /* the burger carries the menu, and the menu carries its own buy button */
  .nav__actions .btn { display: none; }
  .float-loupe { width: 96px; height: 96px; right: 2%; top: 4%; }
  .float-loupe__grid { background-size: 12px 12px; }
}

@media (max-width: 560px) {
  body { font-size: 16px; }
  .hero { min-height: auto; padding-block: calc(var(--nav-h) + 56px) 80px; }
  .hero__cta .btn { width: 100%; }
  .scroll-cue { display: none; }
  .app__row { grid-template-columns: 38px 1fr; }
  .app__copy { display: none; }
  /* no room beside the panel at this width — it lands on the title bar */
  .float-loupe { display: none; }
  .pricebox__per { width: 100%; margin: 8px 0 0; }
  .ctable__row { grid-template-columns: 1fr; gap: 2px; padding-block: 14px; }
  .ctable__row--head { display: none; }
  .ctable__row span:nth-child(2)::before { content: "HexPic — "; color: var(--ink-40); font-weight: 400; }
  .ctable__row span:last-child::before { content: "Subscription picker — "; }
}

/* ---------------------------------------------------------------- a11y    */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
  .reveal { opacity: 1; transform: none; }
}
