/* cazi.hk landing v2 — React + three.js Lanyard (React Bits, MIT). Built 2026-10-26 */
/* src/styles/tokens.css */
/* ==========================================================================
   cazi landing v2 — tokens
   Concept: the pass under the light (ink stage) → the print spec sheet (paper).
   One display face, one UI face, one mono for measured spec annotations.
   ========================================================================== */

:root {
  /* stage */
  --ink: #14110e;
  --ink-2: #1c1813;
  --ink-3: #282219;

  /* paper */
  --paper: #fff7ef;
  --paper-2: #fffdfa;
  --paper-3: #ffefdf;

  /* type colours — the muted steps are tuned to clear 4.5:1 on their own
     background, so small mono labels stay legible on paper and on ink */
  --cream: #fff7ef;
  --cream-84: rgba(255, 247, 239, 0.84);
  --cream-70: rgba(255, 247, 239, 0.72);
  --cream-55: rgba(255, 247, 239, 0.56);
  --cream-14: rgba(255, 247, 239, 0.14);
  --ink-84: rgba(20, 17, 14, 0.84);
  --ink-72: rgba(20, 17, 14, 0.72);
  --ink-62: rgba(20, 17, 14, 0.64);
  --ink-14: rgba(20, 17, 14, 0.14);

  /* rules */
  --line-ink: rgba(255, 247, 239, 0.16);
  --line-ink-strong: rgba(255, 247, 239, 0.32);
  --line: rgba(20, 17, 14, 0.13);
  --line-strong: rgba(20, 17, 14, 0.26);

  /* accents — used as marks, never as large fills except the one CTA */
  --orange: #ff5a1f;
  --orange-logo: #ee9301;
  --orange-deep: #cf3f06;
  --teal: #0fb5a0;
  --sun: #ffc53d;
  --blue: #2f6bff;

  /* type */
  --font-display: "Noto Serif HK", "Source Han Serif TC", "Songti TC", "STSong", serif;
  --font-ui: "Plus Jakarta Sans", "PingFang HK", "Microsoft JhengHei", "Noto Sans HK", sans-serif;
  --font-mono: ui-monospace, "Cascadia Mono", "SF Mono", Menlo, Consolas, monospace;

  /* layout */
  --wrap: 1240px;
  --gutter: clamp(20px, 4.2vw, 56px);
  --nav-h: 84px;
  --section-y: clamp(84px, 11vw, 160px);

  /* motion */
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);

  /* radii — restrained: cards are printed objects, not bubbles */
  --r-sm: 6px;
  --r-md: 14px;
  --r-lg: 22px;
}

@media (max-width: 720px) {
  :root {
    --nav-h: 68px;
  }
}

/* src/styles/base.css */
/* ==========================================================================
   base — reset, type scale, primitives
   ========================================================================== */

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

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-ui);
  font-size: 16px;
  line-height: 1.65;
  font-synthesis-weight: none;
  -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;
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
}

ul,
ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

p,
h1,
h2,
h3,
h4,
figure {
  margin: 0;
}

::selection {
  background: var(--orange);
  color: var(--ink);
}

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

/* ---------------------------------------------------------------- layout */

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

.section {
  padding-block: var(--section-y);
}

.section--tight {
  padding-block: clamp(56px, 7vw, 96px);
}

/* ---------------------------------------------------------------- type */

.display {
  font-family: var(--font-display);
  font-weight: 900;
  line-height: 1.04;
  letter-spacing: -0.005em;
  text-wrap: balance;
}

.h2 {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2rem, 3.7vw, 3.35rem);
  line-height: 1.14;
  letter-spacing: 0.01em;
  text-wrap: balance;
}

.h3 {
  font-family: var(--font-ui);
  font-weight: 700;
  font-size: clamp(1.05rem, 1.35vw, 1.25rem);
  line-height: 1.4;
}

.lede {
  font-size: clamp(1rem, 1.15vw, 1.15rem);
  line-height: 1.85;
  color: var(--ink-72);
  max-width: 40em;
}

.mono {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  text-transform: none;
}

/* a measured annotation: mono label over a hairline, like a print spec callout */
.spec-label {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  color: var(--ink-62);
}

/* ---------------------------------------------------------------- buttons */

.btn {
  --btn-bg: var(--ink);
  --btn-fg: var(--paper);
  --btn-line: var(--ink);
  display: inline-flex;
  align-items: center;
  gap: 0.6em;
  padding: 0.92em 1.6em;
  border-radius: 999px;
  border: 1px solid var(--btn-line);
  background: var(--btn-bg);
  color: var(--btn-fg);
  font-family: var(--font-ui);
  font-weight: 600;
  font-size: 0.98rem;
  line-height: 1;
  letter-spacing: 0.01em;
  transition: transform 0.25s var(--ease), background-color 0.25s var(--ease),
    color 0.25s var(--ease), border-color 0.25s var(--ease);
}

.btn:hover {
  transform: translateY(-1px);
}

.btn:active {
  transform: translateY(0);
}

.btn--lg {
  padding: 1.06em 1.9em;
  font-size: 1.04rem;
}

.btn--primary {
  --btn-bg: var(--orange);
  --btn-fg: var(--ink);
  --btn-line: var(--orange);
}

.btn--primary:hover {
  --btn-bg: #ff7038;
  --btn-line: #ff7038;
}

.btn--ghost {
  --btn-bg: transparent;
  --btn-fg: var(--ink);
  --btn-line: var(--line-strong);
}

.btn--ghost:hover {
  --btn-bg: rgba(20, 17, 14, 0.05);
}

.btn--on-ink {
  --btn-bg: transparent;
  --btn-fg: var(--cream);
  --btn-line: var(--line-ink-strong);
}

.btn--on-ink:hover {
  --btn-bg: rgba(255, 247, 239, 0.08);
}

.btn--solid-cream {
  --btn-bg: var(--cream);
  --btn-fg: var(--ink);
  --btn-line: var(--cream);
}

.btn__arrow {
  width: 1em;
  height: 1em;
  flex: none;
  transition: transform 0.25s var(--ease);
}

.btn:hover .btn__arrow {
  transform: translateX(3px);
}

/* ---------------------------------------------------------------- motion */

/* one orchestrated load sequence; nothing else animates on its own */
@keyframes mask-rise {
  from {
    transform: translateY(112%);
  }
  to {
    transform: translateY(0);
  }
}

@keyframes fade-up {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.mask-line {
  display: block;
  overflow: hidden;
  padding-bottom: 0.06em;
}

.mask-line > span {
  display: block;
  animation: mask-rise 1.1s var(--ease-out) both;
}

.enter {
  animation: fade-up 0.9s var(--ease-out) both;
}

/* scroll-triggered: one quiet reveal per block, only after the first screen */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.9s var(--ease-out), transform 0.9s var(--ease-out);
}

.reveal.is-in {
  opacity: 1;
  transform: none;
}

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

  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-delay: 0ms !important;
    transition-duration: 0.001ms !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}

/* ---------------------------------------------------------------- a11y */

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  left: var(--gutter);
  top: -100px;
  z-index: 100;
  padding: 0.7em 1.2em;
  background: var(--paper);
  color: var(--ink);
  border-radius: var(--r-sm);
  font-weight: 600;
}

.skip-link:focus-visible {
  top: 12px;
}

/* src/styles/hero.css */
/* ==========================================================================
   hero — the pass under the light
   A real 3D card hangs from a rail in the top-right; the headline sits low-left.
   ========================================================================== */

.hero {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 100svh;
  background: var(--ink);
  color: var(--cream);
  overflow: clip;
  isolation: isolate;
}

/* warm pool of light behind the card — two soft radials, no visible edge */
.hero__glow {
  position: absolute;
  z-index: -1;
  top: -10vh;
  right: -6vw;
  width: min(1300px, 96vw);
  height: min(1300px, 96vw);
  background:
    radial-gradient(
      circle at 56% 42%,
      rgba(255, 132, 56, 0.16) 0%,
      rgba(238, 147, 1, 0.09) 26%,
      rgba(255, 90, 31, 0.03) 48%,
      rgba(20, 17, 14, 0) 66%
    ),
    radial-gradient(
      circle at 70% 70%,
      rgba(15, 181, 160, 0.05) 0%,
      rgba(20, 17, 14, 0) 55%
    );
  pointer-events: none;
}

/* printed paper grain, so the dark reads like a surface rather than a void */
.hero__grain {
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: 0.5;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='180' height='180'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3'/><feColorMatrix type='saturate' values='0'/></filter><rect width='180' height='180' filter='url(%23n)' opacity='0.28'/></svg>");
  mix-blend-mode: overlay;
}

.hero__inner {
  position: relative;
  flex: 1 1 auto;
  display: grid;
  grid-template-columns: minmax(0, 46fr) minmax(0, 54fr);
  width: 100%;
  max-width: 1720px;
  margin-inline: auto;
  padding-top: var(--nav-h);
  min-height: 0;
}

/* ------------------------------------------------------------------ copy */

.hero__copy {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(28px, 5vw, 76px) clamp(20px, 3vw, 40px) clamp(40px, 7vw, 96px)
    var(--gutter);
  max-width: 46em;
}

.hero__h1 {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(2.85rem, 5.6vw, 5.5rem);
  line-height: 1.03;
  letter-spacing: 0.005em;
  margin-bottom: clamp(20px, 2.4vw, 32px);
}

.hero__h1 .mask-line > span {
  animation-delay: 0.08s;
}

.hero__h1 .mask-line:nth-child(2) > span {
  animation-delay: 0.2s;
}

/* the second line is set in the card's own orange — the object and the claim match */
.hero__h1 em {
  font-style: normal;
  color: var(--orange);
}

.hero__sub {
  max-width: 30em;
  font-size: clamp(1rem, 1.12vw, 1.1rem);
  line-height: 1.9;
  color: var(--cream-70);
  animation: fade-up 0.9s var(--ease-out) 0.42s both;
}

.hero__sub strong {
  color: var(--cream);
  font-weight: 600;
}

.hero__cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-top: clamp(26px, 3.2vw, 40px);
  animation: fade-up 0.9s var(--ease-out) 0.54s both;
}

.hero__note {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0;
  margin-top: 22px;
  font-size: 0.82rem;
  color: var(--cream-55);
  animation: fade-up 0.9s var(--ease-out) 0.66s both;
}

.hero__note span {
  display: inline-flex;
  align-items: center;
}

.hero__note span + span::before {
  content: "";
  width: 1px;
  height: 10px;
  margin: 0 12px;
  background: var(--line-ink-strong);
}

/* ----------------------------------------------------------------- stage */

.hero__stage {
  position: relative;
  min-width: 0;
  margin-right: calc(var(--gutter) * -1);
}

/* the rail the pass hangs from */
.hero__rail {
  position: absolute;
  z-index: 3;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(
    90deg,
    rgba(255, 247, 239, 0) 0%,
    var(--line-ink) 14%,
    var(--line-ink-strong) 50%,
    var(--line-ink) 86%,
    rgba(255, 247, 239, 0) 100%
  );
}

.hero__clip {
  position: absolute;
  z-index: 3;
  top: -5px;
  left: 50%;
  width: 58px;
  height: 14px;
  transform: translateX(-50%);
  border-radius: 4px;
  border: 1px solid rgba(255, 247, 239, 0.2);
  background: linear-gradient(180deg, #4a4136 0%, #17130f 55%, #2b251d 100%);
  box-shadow: 0 8px 16px -8px rgba(0, 0, 0, 0.95);
}

.hero__clip::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 5px;
  height: 5px;
  margin: -2.5px 0 0 -2.5px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #b9a678, #55483a);
}

/* the strap continues past the rail into the dark */
.hero__rail::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 0;
  width: 130px;
  height: 46px;
  transform: translateX(-50%);
  background: linear-gradient(180deg, rgba(20, 17, 14, 0.85), rgba(20, 17, 14, 0));
  pointer-events: none;
}

/* inset so the pass keeps air around it instead of filling the column */
.hero__lanyard {
  position: absolute;
  inset: 0 6%;
}

.hero__hint {
  position: absolute;
  z-index: 4;
  right: calc(var(--gutter) + 12px);
  bottom: clamp(14px, 2.4vh, 28px);
  display: inline-flex;
  align-items: center;
  gap: 0.55em;
  padding: 0.5em 0.9em;
  border: 1px solid var(--line-ink);
  border-radius: 999px;
  background: rgba(20, 17, 14, 0.55);
  color: var(--cream-70);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  white-space: nowrap;
  transition: opacity 0.5s var(--ease), transform 0.5s var(--ease);
  pointer-events: none;
}

.hero__hint svg {
  width: 14px;
  height: 14px;
  color: var(--orange);
}

.hero__hint.is-gone {
  opacity: 0;
  transform: translateY(6px);
}

/* ------------------------------------------------------------- spec strip */

.hero__specs {
  position: relative;
  z-index: 2;
  border-top: 1px solid var(--line-ink);
  background: linear-gradient(180deg, rgba(20, 17, 14, 0), rgba(20, 17, 14, 0.5));
}

.hero__specs-inner {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  padding-inline: var(--gutter);
}

.hero__spec {
  padding: 16px clamp(16px, 2vw, 28px) 20px;
  border-left: 1px solid var(--line-ink);
}

.hero__spec:first-child {
  border-left: 0;
  padding-left: 0;
}

.hero__spec dt {
  font-family: var(--font-mono);
  font-size: 0.66rem;
  letter-spacing: 0.16em;
  color: var(--cream-55);
  margin-bottom: 6px;
}

.hero__spec dd {
  margin: 0;
  font-size: clamp(0.86rem, 1vw, 0.96rem);
  font-weight: 500;
  color: var(--cream-84);
  letter-spacing: 0.01em;
}

.hero__spec dd small {
  font-size: 0.78em;
  color: var(--cream-55);
  font-weight: 400;
}

/* ---------------------------------------------------------------- nav */

.nav {
  position: fixed;
  z-index: 50;
  inset: 0 0 auto;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  color: var(--cream);
  border-bottom: 1px solid transparent;
  transition: background-color 0.4s var(--ease), color 0.4s var(--ease),
    border-color 0.4s var(--ease), backdrop-filter 0.4s var(--ease);
}

/* over an ink section, once the page has moved the bar gets a scrim so
   content never slides through the links */
.nav.is-scrolled {
  background: rgba(20, 17, 14, 0.72);
  -webkit-backdrop-filter: saturate(140%) blur(16px);
  backdrop-filter: saturate(140%) blur(16px);
  border-bottom-color: var(--line-ink);
}

.nav.is-paper {
  background: rgba(255, 247, 239, 0.95);
  -webkit-backdrop-filter: saturate(180%) blur(18px);
  backdrop-filter: saturate(180%) blur(18px);
  color: var(--ink);
  border-bottom-color: var(--line);
}

.nav__inner {
  display: flex;
  align-items: center;
  gap: clamp(20px, 3vw, 40px);
  width: 100%;
  padding-inline: var(--gutter);
}

.nav__logo {
  display: inline-flex;
  align-items: center;
  flex: none;
}

.nav__logo img {
  height: 30px;
  width: auto;
}

.nav__logo .is-light,
.nav.is-paper .nav__logo .is-dark {
  display: block;
}

.nav__logo .is-dark,
.nav.is-paper .nav__logo .is-light {
  display: none;
}

.nav__links {
  display: flex;
  align-items: center;
  gap: clamp(14px, 1.8vw, 26px);
  margin-left: auto;
  font-size: 0.9rem;
  font-weight: 500;
  color: inherit;
}

.nav__link {
  position: relative;
  padding: 6px 0;
  color: inherit;
  opacity: 0.78;
  transition: opacity 0.25s var(--ease);
}

.nav__link:hover {
  opacity: 1;
}

.nav__actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: none;
}

.nav__toggle {
  display: none;
  width: 42px;
  height: 42px;
  align-items: center;
  justify-content: center;
  border: 1px solid currentColor;
  border-radius: 999px;
  opacity: 0.7;
}

/* drawer lives outside <header> so the fixed bar's backdrop-filter does not
   become its containing block */
.nav__drawer {
  position: fixed;
  z-index: 49;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  padding: var(--gutter);
  background: var(--ink);
  color: var(--cream);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.35s var(--ease), visibility 0.35s var(--ease);
}

.nav__drawer.is-open {
  opacity: 1;
  visibility: visible;
}

.nav__drawer a {
  font-family: var(--font-display);
  font-size: 1.9rem;
  font-weight: 700;
  padding: 10px 0;
  border-bottom: 1px solid var(--line-ink);
}

.nav__drawer .btn {
  margin-top: 20px;
  justify-content: center;
  font-family: var(--font-ui);
  font-size: 1rem;
  border-bottom: 0;
}

@media (max-width: 1080px) {
  .nav__links,
  .nav__login {
    display: none;
  }

  .nav__toggle {
    display: inline-flex;
  }

  .nav__actions {
    margin-left: auto;
  }
}

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

@media (max-width: 1080px) {
  .hero__inner {
    grid-template-columns: minmax(0, 1fr);
    padding-top: var(--nav-h);
  }

  .hero__stage {
    order: -1;
    height: min(52svh, 520px);
    margin-right: 0;
  }

  .hero__copy {
    padding: 0 var(--gutter) clamp(36px, 7vw, 64px);
    max-width: none;
  }

  .hero__h1 {
    font-size: clamp(2.6rem, 8.4vw, 4rem);
  }

  .hero__specs-inner {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .hero__spec:nth-child(odd) {
    border-left: 0;
    padding-left: 0;
  }

  .hero__spec:nth-child(n + 3) {
    border-top: 1px solid var(--line-ink);
  }

  .hero__hint {
    bottom: 10px;
  }
}

@media (max-width: 560px) {
  .hero__stage {
    height: min(46svh, 420px);
  }

  .hero__cta .btn {
    flex: 1 1 auto;
    justify-content: center;
  }

  .hero__note {
    font-size: 0.76rem;
  }

  .hero__note span + span::before {
    margin: 0 8px;
  }
}

/* the component's own hooks (vendored React Bits stylesheet) */
.lanyard {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.lanyard-canvas {
  display: block;
  width: 100%;
  height: 100%;
}

/* src/styles/sections.css */
/* ==========================================================================
   sections — from here down the page reads like a print spec sheet:
   hairline rules, measured labels, real numbers. The 3D pass stays the only
   loud thing on the page.
   ========================================================================== */

.h2 > span {
  display: block;
}

/* a section head is a two-column ledger row: claim on the left, plain
   explanation on the right, closed by a hairline */
.sec-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.86fr);
  gap: clamp(22px, 5vw, 72px);
  align-items: end;
  padding-bottom: clamp(32px, 4vw, 52px);
  border-bottom: 1px solid var(--line);
}

.sec-head .lede {
  max-width: 33em;
}

/* --------------------------------------------------------------------- how */

.how {
  background: var(--paper);
}

.steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(22px, 3vw, 44px);
  margin-top: clamp(32px, 4vw, 52px);
}

.step {
  padding-top: 16px;
  border-top: 1px solid var(--line-strong);
}

.step__n {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  color: var(--ink-62);
}

.step__title {
  margin-top: 10px;
  font-family: var(--font-ui);
  font-size: 1.06rem;
  font-weight: 600;
  letter-spacing: 0.01em;
}

.step__body {
  margin-top: 8px;
  font-size: 0.92rem;
  line-height: 1.85;
  color: var(--ink-72);
}

/* a screenshot presented as a printed plate, not a floating app card */
.plate {
  margin: clamp(36px, 5vw, 64px) 0 0;
}

.plate__frame {
  padding: 8px;
  border: 1px solid var(--line-strong);
  border-radius: var(--r-md);
  background: var(--paper-2);
  box-shadow: 0 1px 0 rgba(20, 17, 14, 0.03), 0 40px 70px -60px rgba(20, 17, 14, 0.75);
  overflow: hidden;
}

.plate__frame img {
  width: 100%;
  height: auto;
  border-radius: calc(var(--r-md) - 6px);
  border: 1px solid var(--line);
}

.plate__cap {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  align-items: baseline;
  margin-top: 14px;
  font-size: 0.82rem;
  line-height: 1.6;
  color: var(--ink-72);
}

.plate__cap .spec-label {
  flex: none;
}

/* ---------------------------------------------------------------- card page */

.cardpage {
  background: var(--paper-2);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.cardpage__grid {
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(0, 1.18fr);
  gap: clamp(36px, 6vw, 96px);
  align-items: center;
}

.cardpage__device {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.cardpage__phonelabel {
  color: var(--ink-62);
}

/* phone shell built in CSS so the card page stays crisp at any DPI */
.phone {
  width: min(300px, 74vw);
  aspect-ratio: 9 / 19.2;
  padding: 9px;
  border-radius: 46px;
  background: linear-gradient(160deg, #322a21 0%, #14110e 38%, #241f18 100%);
  box-shadow: 0 2px 0 rgba(255, 255, 255, 0.12) inset,
    0 50px 90px -50px rgba(20, 17, 14, 0.55), 0 12px 30px -18px rgba(20, 17, 14, 0.5);
}

.phone__screen {
  position: relative;
  height: 100%;
  border-radius: 37px;
  overflow: hidden;
  background: var(--paper);
}

.minicard {
  display: flex;
  flex-direction: column;
  height: 100%;
  font-family: var(--font-ui);
}

.minicard__hero {
  position: relative;
  height: 150px;
  background: radial-gradient(120% 150% at 15% 0%, #ff7a3c 0%, #ff5a1f 42%, #d8470f 100%);
  flex: none;
}

.minicard__avatar {
  position: absolute;
  left: 18px;
  bottom: -30px;
  width: 66px;
  height: 66px;
  border-radius: 50%;
  border: 4px solid var(--paper);
  background: var(--paper-2);
  color: var(--orange-deep);
  display: grid;
  place-items: center;
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 700;
}

.minicard__id {
  padding: 40px 20px 0;
}

.minicard__id strong {
  display: block;
  font-size: 1.18rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.minicard__id span {
  display: block;
  margin-top: 3px;
  font-size: 0.72rem;
  color: var(--orange-deep);
}

.minicard__save {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  margin: 14px 20px 0;
  padding: 11px;
  border-radius: 10px;
  background: var(--orange);
  color: var(--ink);
  font-size: 0.76rem;
  font-weight: 600;
}

.minicard__save svg {
  width: 15px;
  height: 15px;
}

.minicard__rows {
  display: grid;
  gap: 7px;
  margin: 14px 20px 0;
}

.minicard__rows li {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: var(--paper-2);
}

.minicard__rowico {
  color: var(--ink-62);
  flex: none;
}

.minicard__rowico svg {
  width: 14px;
  height: 14px;
}

.minicard__rowtext {
  font-size: 0.74rem;
  font-weight: 500;
  line-height: 1.3;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.minicard__rowtext small {
  display: block;
  font-size: 0.6rem;
  font-weight: 400;
  color: var(--ink-62);
  letter-spacing: 0.04em;
}

.minicard__wa {
  margin-left: auto;
  flex: none;
  padding: 3px 7px;
  border-radius: 999px;
  background: #25d366;
  color: #06331a;
  font-size: 0.55rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.minicard__qr {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  margin: 12px 20px 0;
  padding: 12px;
  border: 1px dashed var(--line-strong);
  border-radius: 9px;
  color: var(--ink-72);
  font-size: 0.62rem;
}

.minicard__qr svg {
  width: 32px;
  height: 32px;
  color: var(--ink);
}

.minicard__foot {
  margin-top: auto;
  padding: 10px;
  border-top: 1px solid var(--line);
  text-align: center;
  font-size: 0.6rem;
  letter-spacing: 0.06em;
  color: var(--ink-62);
}

.cardpage__copy .lede {
  margin-top: 20px;
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 26px;
}

.chips li {
  padding: 5px 12px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  font-size: 0.8rem;
  color: var(--ink-84);
}

.facts {
  margin-top: 30px;
  border-top: 1px solid var(--line);
}

.fact {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr);
  gap: 16px;
  padding: 13px 0;
  border-bottom: 1px solid var(--line);
}

.fact dt {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  color: var(--ink-62);
  padding-top: 2px;
}

.fact dd {
  margin: 0;
  font-size: 0.94rem;
  font-weight: 500;
}

.fact dd small {
  display: block;
  margin-top: 2px;
  font-size: 0.8rem;
  font-weight: 400;
  color: var(--ink-72);
}

/* ---------------------------------------------------------------- physical */

.physical {
  background: var(--paper-3);
}

.physical__shots {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(20px, 3vw, 36px);
  margin-top: clamp(32px, 4vw, 52px);
}

.physical__shots .plate {
  margin: 0;
}

.plate--photo .plate__frame {
  padding: 0;
  background: var(--ink);
  border-color: transparent;
}

.plate--photo .plate__frame img {
  border: 0;
  border-radius: calc(var(--r-md) - 1px);
  aspect-ratio: 3 / 2;
  object-fit: cover;
}

.hwtable {
  width: 100%;
  border-collapse: collapse;
  margin-top: clamp(40px, 5vw, 64px);
}

.hwtable caption {
  text-align: left;
}

.hwtable thead th {
  padding: 0 16px 12px;
  border-bottom: 1px solid var(--line-strong);
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 400;
  letter-spacing: 0.14em;
  color: var(--ink-62);
  text-align: left;
}

.hwtable thead th:first-child,
.hwtable tbody th:first-child {
  padding-left: 0;
}

.hwtable tbody th {
  padding: 15px 16px;
  border-bottom: 1px solid var(--line);
  font-size: 0.94rem;
  font-weight: 600;
  text-align: left;
  white-space: nowrap;
}

.hwtable tbody td {
  padding: 15px 16px;
  border-bottom: 1px solid var(--line);
  font-size: 0.9rem;
  color: var(--ink-72);
}

.hwtable__price {
  font-weight: 600;
  color: var(--ink) !important;
  white-space: nowrap;
  text-align: right;
}

.hwtable thead th:last-child {
  text-align: right;
}

.physical__fine {
  display: grid;
  gap: 7px;
  margin-top: 20px;
  max-width: 78em;
}

.physical__fine li {
  position: relative;
  padding-left: 16px;
  font-size: 0.82rem;
  line-height: 1.75;
  color: var(--ink-72);
}

.physical__fine li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.72em;
  width: 6px;
  height: 1px;
  background: var(--ink-62);
}

/* ----------------------------------------------------------------- reports */

.band {
  background: var(--ink);
  color: var(--cream);
  padding-block: clamp(72px, 9vw, 124px);
}

.band__title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(1.9rem, 3.5vw, 3.1rem);
  line-height: 1.16;
  margin-bottom: clamp(32px, 4vw, 52px);
}

.band__title span {
  display: block;
}

.band__items {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(22px, 3vw, 44px);
}

.band__item {
  padding-top: 16px;
  border-top: 1px solid var(--line-ink);
}

.band__item .spec-label {
  color: var(--cream-55);
}

.band__item p {
  margin-top: 10px;
  font-size: 0.94rem;
  line-height: 1.8;
  color: var(--cream-70);
}

.band__note {
  margin-top: clamp(32px, 4vw, 48px);
  padding-top: 20px;
  border-top: 1px solid var(--line-ink);
  max-width: 62em;
  font-size: 0.84rem;
  line-height: 1.85;
  color: var(--cream-55);
}

/* ----------------------------------------------------------------- pricing */

.pricing {
  background: var(--paper);
}

.pricing__scroll {
  margin-top: clamp(28px, 4vw, 44px);
  overflow-x: auto;
  scrollbar-width: thin;
}

.ptable {
  width: 100%;
  min-width: 720px;
  border-collapse: collapse;
}

.ptable thead th {
  padding: 22px 20px 24px;
  border-bottom: 1px solid var(--line-strong);
  text-align: left;
  vertical-align: top;
}

.ptable__corner {
  width: 30%;
}

.ptable__plan {
  width: 23%;
}

.ptable__plan.is-featured {
  border-left: 1px solid var(--line);
  border-right: 1px solid var(--line);
  box-shadow: inset 0 2px 0 var(--orange);
}

.ptable__name {
  display: block;
  font-size: 0.98rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.ptable__price {
  display: block;
  margin-top: 6px;
  font-family: var(--font-display);
  font-size: clamp(2rem, 2.6vw, 2.5rem);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.01em;
}

.ptable__price em {
  font-family: var(--font-ui);
  font-size: 0.78rem;
  font-style: normal;
  font-weight: 500;
  color: var(--ink-62);
  margin-left: 3px;
}

.ptable__for {
  display: block;
  margin: 6px 0 16px;
  font-size: 0.8rem;
  color: var(--ink-72);
}

.ptable__cta {
  width: 100%;
  justify-content: center;
  padding-block: 0.8em;
  font-size: 0.9rem;
}

.ptable tbody th,
.ptable tbody td {
  padding: 13px 20px;
  border-bottom: 1px solid var(--line);
  font-size: 0.9rem;
}

.ptable tbody th {
  text-align: left;
  font-weight: 500;
  color: var(--ink-84);
}

.ptable tbody th,
.ptable thead th.ptable__corner {
  padding-left: 0;
}

.ptable tbody tr:first-child th {
  padding-top: 18px;
}

.ptable tbody td {
  text-align: center;
  color: var(--ink-72);
}

.ptable tbody tr.is-strong th,
.ptable tbody tr.is-strong td {
  font-weight: 600;
  color: var(--ink);
}

.ptable tbody td:first-of-type,
.ptable thead th.ptable__plan:nth-of-type(2) {
  border-left: 1px solid var(--line);
}

.ptable tbody td:last-of-type,
.ptable thead th.ptable__plan:last-of-type {
  border-right: 1px solid var(--line);
}

.ptable__tick,
.ptable__dash {
  width: 17px;
  height: 17px;
  margin-inline: auto;
}

.ptable__tick {
  color: var(--ink);
}

.ptable__dash {
  color: var(--ink-62);
}

.pricing__fine {
  margin-top: 22px;
  max-width: 76em;
  font-size: 0.82rem;
  line-height: 1.8;
  color: var(--ink-72);
}

/* --------------------------------------------------------------------- faq */

.faq {
  background: var(--paper);
  border-top: 1px solid var(--line);
}

.faq__grid {
  display: grid;
  grid-template-columns: minmax(0, 0.78fr) minmax(0, 1.22fr);
  gap: clamp(32px, 6vw, 88px);
  align-items: start;
}

.faq__ask {
  margin-top: 22px;
  font-size: 0.9rem;
  line-height: 1.8;
  color: var(--ink-72);
}

.faq__ask a {
  color: var(--ink);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.faq__list {
  border-top: 1px solid var(--line-strong);
}

.faqitem {
  border-bottom: 1px solid var(--line);
}

.faqitem__q {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  padding: 19px 0;
  cursor: pointer;
  list-style: none;
  font-size: 0.98rem;
  font-weight: 600;
  line-height: 1.55;
  transition: color 0.2s var(--ease);
}

.faqitem__q::-webkit-details-marker {
  display: none;
}

.faqitem__q:hover {
  color: var(--orange-deep);
}

.faqitem__ico {
  display: grid;
  place-items: center;
  flex: none;
  width: 24px;
  height: 24px;
  margin-top: 1px;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  transition: transform 0.3s var(--ease), border-color 0.3s var(--ease);
}

.faqitem__ico svg {
  width: 12px;
  height: 12px;
}

.faqitem[open] .faqitem__ico {
  transform: rotate(45deg);
  border-color: var(--ink);
}

.faqitem__a p {
  padding: 0 40px 22px 0;
  max-width: 58em;
  font-size: 0.92rem;
  line-height: 1.9;
  color: var(--ink-72);
}

/* --------------------------------------------------------------------- cta */

.cta {
  position: relative;
  overflow: clip;
  background: var(--ink);
  color: var(--cream);
  padding-block: clamp(84px, 10vw, 148px);
  isolation: isolate;
}

.cta__glow {
  position: absolute;
  z-index: -1;
  left: 50%;
  bottom: -60%;
  width: min(1200px, 110vw);
  height: min(1200px, 110vw);
  transform: translateX(-50%);
  background: radial-gradient(
    circle at 50% 50%,
    rgba(255, 122, 46, 0.18) 0%,
    rgba(238, 147, 1, 0.08) 32%,
    rgba(20, 17, 14, 0) 62%
  );
  pointer-events: none;
}

.cta__title {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(2.1rem, 4.6vw, 4.1rem);
  line-height: 1.1;
  max-width: 18em;
  text-wrap: balance;
}

.cta__body {
  margin-top: 22px;
  max-width: 36em;
  font-size: clamp(0.98rem, 1.1vw, 1.08rem);
  line-height: 1.85;
  color: var(--cream-70);
}

.cta__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: clamp(28px, 3vw, 38px);
}

.cta__points {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(22px, 3vw, 44px);
  margin-top: clamp(44px, 5vw, 68px);
  padding-top: 22px;
  border-top: 1px solid var(--line-ink);
}

.cta__points b {
  display: block;
  font-size: 0.95rem;
  font-weight: 600;
}

.cta__points span {
  display: block;
  margin-top: 5px;
  font-size: 0.85rem;
  color: var(--cream-55);
}

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

.foot {
  background: var(--ink);
  color: var(--cream);
  border-top: 1px solid var(--line-ink);
}

.foot__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.7fr) repeat(3, minmax(0, 1fr));
  gap: clamp(28px, 4vw, 56px);
  padding-block: clamp(48px, 6vw, 72px);
}

.foot__logo img {
  height: 30px;
  width: auto;
}

.foot__about {
  margin-top: 18px;
  max-width: 26em;
  font-size: 0.84rem;
  line-height: 1.85;
  color: var(--cream-55);
}

.foot__badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
}

.foot__badges span {
  padding: 4px 10px;
  border: 1px solid var(--line-ink);
  border-radius: 999px;
  font-size: 0.72rem;
  color: var(--cream-70);
}

.foot__col h3 {
  color: var(--cream-55);
  font-weight: 400;
}

.foot__links {
  margin-top: 14px;
}

.foot__links li + li {
  margin-top: 9px;
}

.foot__links a {
  font-size: 0.88rem;
  color: var(--cream-84);
  transition: color 0.2s var(--ease);
}

.foot__links a:hover {
  color: var(--cream);
}

.foot__bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 24px;
  padding-block: 22px;
  border-top: 1px solid var(--line-ink);
  font-size: 0.78rem;
  color: var(--cream-55);
}

.foot__legal {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 16px;
}

.foot__legal a,
.foot__mail {
  color: var(--cream-70);
  transition: color 0.2s var(--ease);
}

.foot__legal a:hover,
.foot__mail:hover {
  color: var(--cream);
}

.foot__mail {
  margin-left: auto;
  font-family: var(--font-mono);
  font-size: 0.76rem;
  letter-spacing: 0.04em;
}

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

@media (max-width: 1000px) {
  .cardpage__grid,
  .faq__grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .cardpage__device {
    order: -1;
  }

  .sec-head {
    grid-template-columns: minmax(0, 1fr);
    align-items: start;
  }

  .foot__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .foot__brandcol {
    grid-column: 1 / -1;
  }
}

@media (max-width: 760px) {
  .steps,
  .band__items,
  .cta__points {
    grid-template-columns: minmax(0, 1fr);
  }

  .physical__shots {
    grid-template-columns: minmax(0, 1fr);
  }

  .hwtable thead th:nth-child(2),
  .hwtable tbody td:nth-child(2) {
    display: none;
  }

  .hwtable tbody th,
  .hwtable tbody td {
    padding: 13px 10px;
    font-size: 0.86rem;
  }

  .hwtable thead th {
    padding: 0 10px 12px;
  }

  .hwtable tbody th:first-child {
    white-space: normal;
  }

  .ptable {
    min-width: 660px;
  }

  .ptable tbody th,
  .ptable tbody td,
  .ptable thead th {
    padding-inline: 14px;
  }

  .faqitem__a p {
    padding-right: 0;
  }

  .foot__mail {
    margin-left: 0;
  }

  .foot__bottom {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 560px) {
  .phone {
    width: min(268px, 78vw);
  }

  .cta__actions .btn {
    flex: 1 1 auto;
    justify-content: center;
  }
}
