/* ==========================================================================
   Vebbl Marketing Website — Concept B · "Both sides of the Tile"
   site.css — tokens, base, layout primitives, shared components, nav, footer
   --------------------------------------------------------------------------
   Two worlds, one brand palette:
     · PAPER  (cream)  — the business owner's side: plain commercial facts.
     · NIGHT  (navy)   — the customer's side: the actual consumer product.
   Every colour below comes from the Vebbl signal mark.
   ========================================================================== */

@font-face {
  font-family: "GT Pressura";
  src: url("../assets/fonts/GT_Pressura_Light.ttf") format("truetype");
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "GT Pressura";
  src: url("../assets/fonts/GT_Pressura_Regular.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

:root {
  /* Brand (from the signal mark) */
  --v-slate: #3e526a;
  --v-sky: #84afd0;
  --v-cream: #fff4e6;
  --v-red: #d86455;
  --v-sun: #fbd279;
  --v-navy: #0d1626;
  --v-night: #060b18;

  /* Paper world */
  --paper: #fff4e6;
  --paper-2: #f9ead7;
  --paper-3: #f1dfc8;
  --ink: #0d1626;
  --ink-2: #33455c;
  --ink-3: #566a85;
  --rule: rgba(13, 22, 38, 0.14);
  --rule-strong: rgba(13, 22, 38, 0.32);
  --red-ink: #b8422f; /* AA-safe red for small text on paper */

  /* Night world */
  --night: #060b18;
  --night-2: #0b1424;
  --night-3: #121d31;
  --moon: #f5f1e8;
  --moon-2: #cbd5e2;
  --moon-3: #93a4bb;
  --night-rule: rgba(132, 175, 208, 0.18);

  /* Type */
  --font: "GT Pressura", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --fs-display: clamp(2.75rem, 7.2vw, 7rem);
  --fs-h1: clamp(2.5rem, 6vw, 5.5rem);
  --fs-h2: clamp(2rem, 4.4vw, 4rem);
  --fs-h3: clamp(1.35rem, 2.1vw, 1.75rem);
  --fs-lead: clamp(1.125rem, 1.55vw, 1.375rem);
  --fs-body: 1.0625rem;
  --fs-small: 0.9375rem;
  --fs-label: 0.75rem;

  /* Space & shape */
  --gutter: clamp(20px, 5vw, 72px);
  --maxw: 1280px;
  --section: clamp(88px, 12vw, 176px);
  --r-sm: 10px;
  --r-md: 18px;
  --r-lg: 28px;
  --r-pill: 999px;

  /* Motion — Vebbl's own curve */
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --dur: 600ms;

  --nav-h: 64px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-h) + 32px);
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}
body {
  margin: 0;
  font-family: var(--font);
  font-weight: 400;
  font-size: var(--fs-body);
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}
img,
svg {
  display: block;
  max-width: 100%;
}
button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}
button {
  cursor: pointer;
}
a {
  color: inherit;
}
h1,
h2,
h3,
h4,
p,
ul,
ol,
figure,
dl,
dd {
  margin: 0;
}
ul[role="list"],
ol[role="list"] {
  list-style: none;
  padding: 0;
}
::selection {
  background: var(--v-sun);
  color: var(--ink);
}

/* Focus — visible everywhere, tuned per world */
:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 3px;
  border-radius: 6px;
}
.night :focus-visible,
.sim :focus-visible {
  outline-color: var(--v-sky);
}

.skip {
  position: absolute;
  left: 16px;
  top: -80px;
  z-index: 1000;
  padding: 12px 18px;
  background: var(--ink);
  color: var(--paper);
  border-radius: var(--r-pill);
  text-decoration: none;
  transition: top 0.2s var(--ease);
}
.skip:focus {
  top: 12px;
}
.vh {
  position: absolute !important;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* ---------- Layout primitives ---------- */
.wrap {
  width: 100%;
  max-width: calc(var(--maxw) + var(--gutter) * 2);
  margin-inline: auto;
  padding-inline: max(var(--gutter), env(safe-area-inset-left)) max(var(--gutter), env(safe-area-inset-right));
}
.section {
  position: relative;
  padding-block: var(--section);
}
.section--tight {
  padding-block: calc(var(--section) * 0.6);
}

.paper {
  background: var(--paper);
  color: var(--ink);
}
.paper-2 {
  background: var(--paper-2);
  color: var(--ink);
}
.night {
  background: var(--night);
  color: var(--moon);
}
.night-2 {
  background: var(--night-2);
}

/* ---------- Type ---------- */
.display {
  font-size: var(--fs-display);
  line-height: 0.96;
  letter-spacing: -0.035em;
  font-weight: 400;
  text-wrap: balance;
}
.h1 {
  font-size: var(--fs-h1);
  line-height: 1;
  letter-spacing: -0.03em;
  font-weight: 400;
  text-wrap: balance;
}
.h2 {
  font-size: var(--fs-h2);
  line-height: 1.02;
  letter-spacing: -0.028em;
  font-weight: 400;
  text-wrap: balance;
}
.h3 {
  font-size: var(--fs-h3);
  line-height: 1.18;
  letter-spacing: -0.012em;
  font-weight: 400;
  text-wrap: balance;
}
.lead {
  font-size: var(--fs-lead);
  line-height: 1.5;
  font-weight: 300;
  color: var(--ink-2);
  max-width: 40em;
  text-wrap: pretty;
}
.night .lead {
  color: var(--moon-2);
}
.body {
  color: var(--ink-2);
  max-width: 38em;
  text-wrap: pretty;
}
.night .body {
  color: var(--moon-2);
}
.small {
  font-size: var(--fs-small);
}
.muted {
  color: var(--ink-3);
}
.night .muted {
  color: var(--moon-3);
}
.label {
  font-size: var(--fs-label);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-weight: 400;
  color: var(--ink-3);
}
.night .label {
  color: var(--moon-3);
}
.em-red {
  color: var(--v-red);
}
.em-sky {
  color: var(--v-sky);
}
.em-sun {
  color: var(--v-sun);
}
.nowrap {
  white-space: nowrap;
}

/* Chapter marker — the signal grows a ring per chapter */
.chapter {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-bottom: clamp(20px, 3vw, 32px);
}
.chapter svg {
  width: 28px;
  height: 28px;
  flex: none;
}
.chapter .ring {
  opacity: 0.16;
  transition: opacity 0.8s var(--ease);
}
.chapter .ring.on {
  opacity: 1;
}

/* ---------- Buttons ---------- */
.btn {
  --btn-bg: var(--ink);
  --btn-fg: var(--paper);
  --btn-bd: var(--ink);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 52px;
  padding: 0 26px;
  border-radius: var(--r-pill);
  border: 1.5px solid var(--btn-bd);
  background: var(--btn-bg);
  color: var(--btn-fg);
  font-size: 1rem;
  letter-spacing: 0.005em;
  text-decoration: none;
  white-space: nowrap;
  transition:
    transform 0.35s var(--ease),
    background 0.25s ease,
    color 0.25s ease,
    border-color 0.25s ease,
    box-shadow 0.35s var(--ease);
  -webkit-tap-highlight-color: transparent;
}
.btn .arr {
  display: inline-block;
  transition: transform 0.35s var(--ease);
}
.btn:hover .arr {
  transform: translateX(4px);
}
.btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 14px 28px -14px rgba(13, 22, 38, 0.55);
}
.btn:active {
  transform: translateY(0) scale(0.985);
}
.btn--sun {
  --btn-bg: var(--v-sun);
  --btn-fg: var(--ink);
  --btn-bd: var(--v-sun);
}
.btn--sun:hover {
  box-shadow: 0 14px 34px -12px rgba(251, 210, 121, 0.55);
}
.btn--ghost {
  --btn-bg: transparent;
  --btn-fg: currentColor;
  --btn-bd: currentColor;
}
.btn--ghost:hover {
  box-shadow: none;
  background: rgba(127, 127, 127, 0.1);
}
.btn--sm {
  min-height: 44px;
  padding: 0 18px;
  font-size: 0.9375rem;
}
.btn--lg {
  min-height: 60px;
  padding: 0 32px;
  font-size: 1.0625rem;
}
.btn[disabled] {
  opacity: 0.55;
  cursor: default;
  transform: none;
  box-shadow: none;
}

.link {
  color: inherit;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
  text-decoration-color: currentColor;
  transition: text-decoration-color 0.2s ease, color 0.2s ease;
}
.link:hover {
  text-decoration-thickness: 2px;
}
.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  border-bottom: 1px solid currentColor;
  padding-bottom: 3px;
}
.link-arrow .arr {
  transition: transform 0.35s var(--ease);
}
.link-arrow:hover .arr {
  transform: translateX(4px);
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px 22px;
}
.cta-note {
  font-size: var(--fs-small);
  color: var(--ink-3);
}
.night .cta-note {
  color: var(--moon-3);
}

/* ---------- Navigation — a floating paper strip that reads on both worlds ---------- */
.nav {
  position: fixed;
  z-index: 100;
  top: max(12px, env(safe-area-inset-top));
  left: 50%;
  transform: translateX(-50%);
  width: min(calc(100% - 24px), calc(var(--maxw) + 40px));
  height: var(--nav-h);
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 10px 0 20px;
  border-radius: var(--r-pill);
  background: rgba(255, 244, 230, 0.86);
  -webkit-backdrop-filter: blur(18px) saturate(1.4);
  backdrop-filter: blur(18px) saturate(1.4);
  box-shadow:
    inset 0 0 0 1px rgba(13, 22, 38, 0.1),
    0 10px 30px -18px rgba(6, 11, 24, 0.5);
  transition: transform 0.5s var(--ease), box-shadow 0.4s ease;
}
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .nav {
    background: rgba(255, 244, 230, 0.98);
  }
}
.nav.is-hidden {
  transform: translate(-50%, calc(-100% - 24px));
}
.nav__logo {
  display: inline-flex;
  align-items: center;
  flex: none;
  border-radius: 8px;
}
.nav__logo img {
  height: 30px;
  width: auto;
}
.nav__links {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-left: clamp(12px, 3vw, 40px);
}
.nav__links a {
  padding: 10px 14px;
  border-radius: var(--r-pill);
  text-decoration: none;
  font-size: 0.9375rem;
  color: var(--ink-2);
  transition: background 0.2s ease, color 0.2s ease;
}
.nav__links a:hover {
  background: rgba(13, 22, 38, 0.07);
  color: var(--ink);
}
.nav__links a[aria-current="page"] {
  color: var(--ink);
  box-shadow: inset 0 0 0 1px var(--rule-strong);
}
.nav__end {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 6px;
}
.nav__signin {
  padding: 10px 14px;
  border-radius: var(--r-pill);
  font-size: 0.9375rem;
  text-decoration: none;
  color: var(--ink-2);
}
.nav__signin:hover {
  background: rgba(13, 22, 38, 0.07);
  color: var(--ink);
}
.nav__menu {
  display: none;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 50%;
  background: transparent;
  align-items: center;
  justify-content: center;
}
.nav__menu span,
.nav__menu span::before {
  display: block;
  width: 18px;
  height: 1.5px;
  background: var(--ink);
  transition: transform 0.35s var(--ease);
}
.nav__menu span {
  position: relative;
  transform: translateY(-3px);
}
.nav__menu span::before {
  content: "";
  position: absolute;
  top: 7px;
}
.nav__menu[aria-expanded="true"] span {
  transform: translateY(0) rotate(45deg);
}
.nav__menu[aria-expanded="true"] span::before {
  transform: translateY(-7px) rotate(-90deg);
}

@media (max-width: 860px) {
  :root {
    --nav-h: 56px;
  }
  .nav {
    padding: 0 6px 0 16px;
  }
  .nav__links,
  .nav__signin {
    display: none;
  }
  .nav__menu {
    display: inline-flex;
  }
  .nav__logo img {
    height: 26px;
  }
  .nav .btn--sm {
    min-height: 40px;
    padding: 0 16px;
  }
}

/* Mobile sheet */
.sheet {
  position: fixed;
  inset: 0;
  z-index: 99;
  background: var(--paper);
  color: var(--ink);
  padding: calc(var(--nav-h) + 40px) var(--gutter) max(28px, env(safe-area-inset-bottom));
  display: flex;
  flex-direction: column;
  gap: 8px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-12px);
  transition:
    opacity 0.35s var(--ease),
    transform 0.45s var(--ease),
    visibility 0s linear 0.45s;
  overflow-y: auto;
}
.sheet.is-open {
  opacity: 1;
  visibility: visible;
  transform: none;
  transition:
    opacity 0.35s var(--ease),
    transform 0.45s var(--ease);
}
.sheet a.sheet__link {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  padding: 16px 0;
  border-bottom: 1px solid var(--rule);
  font-size: 1.75rem;
  letter-spacing: -0.02em;
  text-decoration: none;
}
.sheet a.sheet__link small {
  font-size: 0.8125rem;
  letter-spacing: 0.02em;
  color: var(--ink-3);
}
.sheet__doors {
  margin-top: auto;
  display: grid;
  gap: 10px;
  padding-top: 28px;
}
.sheet__doors .btn {
  width: 100%;
}

/* ---------- Reveal on scroll ---------- */
.rv {
  opacity: 0;
  transform: translateY(18px);
  transition:
    opacity 0.9s var(--ease),
    transform 0.9s var(--ease);
  transition-delay: var(--d, 0ms);
}
.rv.in {
  opacity: 1;
  transform: none;
}
@media (prefers-reduced-motion: reduce) {
  .rv {
    opacity: 1;
    transform: none;
    transition: none;
  }
}
.no-js .rv {
  opacity: 1;
  transform: none;
}

/* ---------- Prototype / design notes ---------- */
.note {
  display: none;
  margin-top: 16px;
  padding: 12px 14px;
  border: 1px dashed var(--v-red);
  border-radius: 12px;
  font-size: 0.8125rem;
  line-height: 1.5;
  color: var(--ink-2);
  background: rgba(216, 100, 85, 0.06);
  max-width: 46em;
}
.night .note {
  color: var(--moon-2);
  background: rgba(216, 100, 85, 0.1);
}
.note b {
  font-weight: 400;
  color: var(--red-ink);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.6875rem;
  display: block;
  margin-bottom: 2px;
}
.night .note b {
  color: #f09a8d;
}
.note code {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.75rem;
}
body.notes-on .note {
  display: block;
}
.notes-toggle {
  position: fixed;
  z-index: 90;
  left: max(12px, env(safe-area-inset-left));
  bottom: max(12px, env(safe-area-inset-bottom));
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 36px;
  padding: 0 14px 0 10px;
  border-radius: var(--r-pill);
  border: 1px dashed var(--v-red);
  background: rgba(255, 244, 230, 0.94);
  color: var(--ink);
  font-size: 0.75rem;
  letter-spacing: 0.04em;
  box-shadow: 0 8px 20px -12px rgba(6, 11, 24, 0.6);
}
.notes-toggle i {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: 1.5px solid var(--v-red);
  background: transparent;
}
body.notes-on .notes-toggle i {
  background: var(--v-red);
}

/* Illustrative-content disclaimer */
.illus {
  font-size: 0.8125rem;
  color: var(--ink-3);
}
.night .illus {
  color: var(--moon-3);
}

/* ---------- Toast ---------- */
.toast {
  position: fixed;
  z-index: 300;
  left: 50%;
  bottom: max(24px, env(safe-area-inset-bottom));
  transform: translate(-50%, 24px);
  max-width: min(520px, calc(100% - 32px));
  padding: 14px 20px;
  border-radius: 16px;
  background: var(--ink);
  color: var(--paper);
  font-size: 0.9375rem;
  line-height: 1.45;
  box-shadow: 0 24px 48px -20px rgba(6, 11, 24, 0.8);
  opacity: 0;
  pointer-events: none;
  transition:
    opacity 0.35s var(--ease),
    transform 0.45s var(--ease);
}
.toast.is-on {
  opacity: 1;
  transform: translate(-50%, 0);
}

/* ---------- Footer ---------- */
.foot {
  background: var(--night);
  color: var(--moon);
  padding-top: clamp(72px, 10vw, 140px);
  overflow: hidden;
}
.foot__sign {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 32px;
  align-items: end;
  padding-bottom: clamp(48px, 7vw, 96px);
  border-bottom: 1px solid var(--night-rule);
}
.foot__sign .display {
  font-size: clamp(3rem, 10.5vw, 10rem);
  line-height: 0.9;
}
.foot__sign .dot {
  display: inline-block;
  width: 0.2em;
  height: 0.2em;
  margin-left: 0.04em;
  vertical-align: baseline;
}
.foot__cols {
  display: grid;
  grid-template-columns: 1.4fr repeat(4, 1fr);
  gap: 40px 32px;
  padding-block: clamp(40px, 6vw, 72px);
}
.foot__cols h3 {
  font-size: var(--fs-label);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-weight: 400;
  color: var(--moon-3);
  margin-bottom: 16px;
}
.foot__cols ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 10px;
}
.foot__cols a {
  color: var(--moon-2);
  text-decoration: none;
  font-size: 0.9375rem;
}
.foot__cols a:hover {
  color: var(--moon);
  text-decoration: underline;
  text-underline-offset: 4px;
}
.foot__brand img {
  height: 34px;
  width: auto;
  margin-bottom: 18px;
}
.foot__brand p {
  color: var(--moon-3);
  font-size: 0.9375rem;
  max-width: 26em;
}
.foot__base {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 28px;
  justify-content: space-between;
  padding-block: 24px max(28px, env(safe-area-inset-bottom));
  border-top: 1px solid var(--night-rule);
  font-size: 0.8125rem;
  color: var(--moon-3);
}
@media (max-width: 980px) {
  .foot__cols {
    grid-template-columns: 1fr 1fr;
  }
  .foot__brand {
    grid-column: 1 / -1;
  }
  .foot__sign {
    grid-template-columns: 1fr;
  }
}

/* ---------- Shared content components ---------- */
.eyebrow-row {
  display: flex;
  align-items: center;
  gap: 12px;
}

.kv {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px 24px;
  padding: 14px 0;
  border-bottom: 1px solid var(--rule);
}
.night .kv {
  border-color: var(--night-rule);
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 40px;
  padding: 0 16px;
  border-radius: var(--r-pill);
  border: 1px solid var(--rule-strong);
  background: transparent;
  font-size: 0.9375rem;
  color: var(--ink);
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
  -webkit-tap-highlight-color: transparent;
}
.chip:hover {
  background: rgba(13, 22, 38, 0.06);
}
.chip[aria-pressed="true"],
.chip[aria-checked="true"],
.chip.is-on {
  background: var(--ink);
  color: var(--paper);
  border-color: var(--ink);
}
.night .chip {
  color: var(--moon);
  border-color: rgba(203, 213, 226, 0.35);
}
.night .chip:hover {
  background: rgba(203, 213, 226, 0.1);
}
.night .chip[aria-pressed="true"],
.night .chip[aria-checked="true"],
.night .chip.is-on {
  background: var(--moon);
  color: var(--ink);
  border-color: var(--moon);
}

/* FAQ / disclosure */
.faq {
  border-top: 1px solid var(--rule-strong);
}
.faq details {
  border-bottom: 1px solid var(--rule);
}
.faq summary {
  list-style: none;
  display: grid;
  grid-template-columns: 1fr 28px;
  gap: 24px;
  align-items: center;
  padding: 22px 0;
  cursor: pointer;
  font-size: clamp(1.125rem, 1.6vw, 1.375rem);
  letter-spacing: -0.01em;
}
.faq summary::-webkit-details-marker {
  display: none;
}
.faq summary::after {
  content: "";
  width: 14px;
  height: 14px;
  justify-self: end;
  background:
    linear-gradient(currentColor, currentColor) center / 100% 1.5px no-repeat,
    linear-gradient(currentColor, currentColor) center / 1.5px 100% no-repeat;
  transition: transform 0.4s var(--ease);
}
.faq details[open] summary::after {
  transform: rotate(45deg);
}
.faq .faq__a {
  padding: 0 52px 26px 0;
  color: var(--ink-2);
  max-width: 46em;
}
.faq .faq__a p + p {
  margin-top: 12px;
}

/* Page hero for interior pages */
.phero {
  padding-top: calc(var(--nav-h) + clamp(72px, 10vw, 140px));
  padding-bottom: clamp(56px, 8vw, 112px);
}
