/* BuiltByBadge · paper & ink
   ground: warm paper · text: warm near-black ink · one accent: ultramarine stamp ink */

@font-face {
  font-family: "Inter var";
  src: url("fonts/InterVariable.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --paper: #FAF8F4;
  --surface: #FFFFFF;
  --ink: #1A1815;
  --ink-2: #5F5B51;
  --line: #E8E3D9;
  --line-2: #D9D3C5;
  --stamp: #2B35C5;
  --stamp-deep: #202899;
  --stamp-soft: #9BA3F0;

  --sans: "Inter var", "Inter", system-ui, -apple-system, sans-serif;
  --mono: ui-monospace, "SF Mono", "Cascadia Code", Menlo, Consolas, monospace;

  --t-xs: 0.8125rem;   /* 13 */
  --t-sm: 0.90625rem;  /* 14.5 */
  --t-base: 1.03125rem;/* 16.5 */
  --t-md: 1.1875rem;   /* 19 */
  --t-lg: 1.5rem;      /* 24 */
  --t-xl: clamp(2.1rem, 3.2vw, 2.6rem);

  --r-sm: 6px;
  --r-md: 8px;
  --r-lg: 12px;

  --shadow-1: 0 1px 2px rgba(26,24,21,.04), 0 4px 14px rgba(26,24,21,.05);
  --shadow-2: 0 2px 4px rgba(26,24,21,.05), 0 16px 40px rgba(26,24,21,.09);

  --sec: clamp(80px, 9.5vw, 132px);
  --wrap: 1120px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

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

body {
  font-family: var(--sans);
  font-size: var(--t-base);
  line-height: 1.55;
  letter-spacing: -0.011em;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* faint paper grain, barely there */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.35;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0.35 0 0 0 0 0.33 0 0 0 0 0.29 0 0 0 0.05 0'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)'/%3E%3C/svg%3E");
}
body > * { position: relative; z-index: 1; }

.wrap {
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: clamp(20px, 4vw, 40px);
}

h1, h2, h3 { text-wrap: balance; font-weight: 680; }

a { color: inherit; }

::selection { background: var(--stamp); color: #fff; }

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

/* ---------- header ---------- */

.site-head {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(250, 248, 244, 0.72);
  -webkit-backdrop-filter: blur(14px) saturate(1.4);
  backdrop-filter: blur(14px) saturate(1.4);
  border-bottom: 1px solid rgba(26, 24, 21, 0.08);
}

.head-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}

.mark {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-weight: 680;
  font-size: var(--t-md);
  letter-spacing: -0.022em;
  text-decoration: none;
}

.mark-pill { color: var(--stamp); flex: none; }

.head-nav { display: flex; gap: 30px; }

.head-nav a {
  font-size: var(--t-sm);
  font-weight: 500;
  color: var(--ink-2);
  text-decoration: none;
  transition: color 120ms ease;
}
.head-nav a:hover { color: var(--ink); }

/* ---------- sections ---------- */

.sec { padding-block: var(--sec); }

.sec-head { margin-bottom: 60px; }

.sec-head h2 {
  font-size: var(--t-xl);
  letter-spacing: -0.03em;
  line-height: 1.1;
}

.sec-lede {
  margin-top: 14px;
  font-size: var(--t-md);
  color: var(--ink-2);
}

/* ---------- hero ---------- */

.hero { padding-block: clamp(68px, 8vw, 112px) var(--sec); }

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(44px, 6vw, 76px);
  align-items: center;
}

h1 {
  font-size: clamp(2.6rem, 5.3vw, 4.15rem);
  line-height: 1.02;
  letter-spacing: -0.037em;
}

.lede {
  margin-top: 24px;
  font-size: var(--t-md);
  line-height: 1.55;
  color: var(--ink-2);
}

/* claim form */

.claim { margin-top: 40px; }

.claim-label {
  display: block;
  font-size: var(--t-sm);
  font-weight: 550;
  margin-bottom: 10px;
}

.claim-row { display: flex; gap: 10px; max-width: 500px; }

.claim-field {
  flex: 1;
  display: flex;
  align-items: center;
  min-width: 0;
  height: 50px;
  background: var(--surface);
  border: 1px solid var(--line-2);
  border-radius: 99px;
  padding-left: 19px;
  box-shadow: var(--shadow-1);
  transition: border-color 120ms ease, box-shadow 120ms ease;
}
.claim-field:focus-within {
  border-color: var(--stamp);
  box-shadow: 0 0 0 3px rgba(43, 53, 197, 0.12);
}

.claim-prefix {
  font-family: var(--mono);
  font-size: var(--t-sm);
  color: var(--ink-2);
  white-space: nowrap;
}

.claim-field input {
  flex: 1;
  min-width: 0;
  height: 100%;
  border: 0;
  background: none;
  font-family: var(--mono);
  font-size: var(--t-sm);
  color: var(--ink);
  padding-right: 12px;
}
.claim-field input:focus { outline: none; }
.claim-field input::placeholder { color: #A9A396; }

.claim-note {
  margin-top: 12px;
  font-size: var(--t-xs);
  color: var(--ink-2);
}

/* buttons */

.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 50px;
  padding-inline: 26px;
  border: 0;
  border-radius: 99px;
  font-family: var(--sans);
  font-size: var(--t-sm);
  font-weight: 550;
  letter-spacing: -0.006em;
  text-decoration: none;
  cursor: pointer;
  overflow: hidden;
  transition: box-shadow 160ms ease, filter 160ms ease, transform 160ms cubic-bezier(.34,1.4,.64,1);
}
.btn:active { transform: scale(0.97); }

/* liquid primary: layered light on stamp ink */
.btn-primary {
  color: #fff;
  background: linear-gradient(180deg, #3B48DE 0%, #2732B4 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.32),
    inset 0 -1px 1px rgba(10, 14, 80, 0.35),
    0 1px 2px rgba(26, 24, 21, 0.10),
    0 8px 22px rgba(43, 53, 197, 0.28);
}
.btn-primary::before {
  content: "";
  position: absolute;
  inset: 1px 1px 55%;
  border-radius: 99px 99px 40px 40px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.30), rgba(255, 255, 255, 0.02));
  pointer-events: none;
}
.btn-primary:hover {
  filter: brightness(1.07);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.38),
    inset 0 -1px 1px rgba(10, 14, 80, 0.35),
    0 1px 2px rgba(26, 24, 21, 0.10),
    0 10px 28px rgba(43, 53, 197, 0.38);
}
.btn-primary:active { filter: brightness(0.96); }

/* glass chip: quiet actions */
.btn-quiet {
  color: var(--ink);
  background: rgba(255, 255, 255, 0.5);
  -webkit-backdrop-filter: blur(10px) saturate(1.3);
  backdrop-filter: blur(10px) saturate(1.3);
  border: 1px solid rgba(26, 24, 21, 0.12);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7), 0 1px 3px rgba(26, 24, 21, 0.05);
}
.btn-quiet:hover {
  background: rgba(255, 255, 255, 0.75);
  border-color: rgba(26, 24, 21, 0.2);
}
.btn-quiet:active { background: rgba(255, 255, 255, 0.6); }

/* ---------- hero demo ---------- */

.hero-demo { min-width: 0; }

.demo-themes {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
}

.demo-themes-label {
  flex-basis: 100%;
  font-size: var(--t-xs);
  font-weight: 550;
  color: var(--ink-2);
  margin-bottom: 2px;
}

.swatch {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  height: 34px;
  padding-inline: 13px;
  background: rgba(255, 255, 255, 0.45);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.6);
  border: 1px solid rgba(26, 24, 21, 0.1);
  border-radius: 99px;
  font-family: var(--sans);
  font-size: var(--t-xs);
  font-weight: 550;
  color: var(--ink-2);
  cursor: pointer;
  transition: border-color 120ms ease, color 120ms ease, background-color 120ms ease;
}
.swatch:hover { border-color: var(--ink-2); color: var(--ink); }
.swatch.is-active { border-color: var(--ink); color: var(--ink); background: var(--surface); }

.swatch-dot { width: 10px; height: 10px; border-radius: 50%; flex: none; }
.dot-ink { background: var(--ink); }
.dot-paper { background: #fff; border: 1px solid var(--line-2); }
.dot-stamp { background: var(--stamp); }
.dot-face {
  background: var(--stamp);
  position: relative;
}
.dot-face::after {
  content: "";
  position: absolute;
  inset: 2.5px;
  border-radius: 50%;
  background: #FAF8F4;
}
.dot-glass {
  background: linear-gradient(135deg, rgba(255,255,255,0.95), rgba(255,255,255,0.35));
  border: 1px solid rgba(26, 24, 21, 0.18);
}

/* the stacked browser frames */

.frames {
  position: relative;
  padding-top: 34px;   /* room for the frame peeking behind */
  padding-right: 26px;
}

.browser {
  position: relative;
  z-index: 1;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: var(--shadow-2);
}

.browser-back {
  position: absolute;
  z-index: 0;
  top: 0;
  right: 0;
  width: 72%;
  box-shadow: var(--shadow-1);
}
.browser-back .browser-body { min-height: 96px; padding: 18px 18px 24px; }

.browser-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 10px 14px;
  border-bottom: 1px solid var(--line);
}

.b-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--line-2); }

.b-url {
  margin-left: 10px;
  font-family: var(--mono);
  font-size: 12px;
  color: var(--ink-2);
  background: var(--paper);
  border-radius: 99px;
  padding: 4px 12px;
}

.browser-body {
  position: relative;
  padding: 26px 26px 62px;
  min-height: 236px;
}

.sk { background: var(--line); border-radius: 4px; }
.sk-title { height: 18px; width: 46%; margin-bottom: 16px; }
.sk-line { height: 9px; margin-bottom: 10px; }
.w-80 { width: 80%; }
.w-60 { width: 60%; }

.sk-cards { display: flex; gap: 12px; margin-top: 24px; }
.sk-card { flex: 1; height: 66px; border-radius: var(--r-sm); background: var(--paper); border: 1px solid var(--line); }
.sk-card-img {
  background: linear-gradient(130deg, #DCE0F5 0%, #C9CFF0 38%, #E8DFD0 100%);
  border-color: transparent;
}

/* the badge, all three preset themes */

.badge-demo {
  position: absolute;
  right: 16px;
  bottom: 16px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font: 550 13px/1 system-ui, sans-serif;
  padding: 9px 14px;
  border-radius: 99px;
  text-decoration: none;
  transition: transform 140ms ease;
}
.badge-demo.is-stamped { transform: scale(1.06); }

.badge-dot { width: 7px; height: 7px; border-radius: 50%; flex: none; }

.badge-ava {
  display: none;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--stamp);
  color: #fff;
  align-items: center;
  justify-content: center;
  font: 600 11px/1 var(--sans);
  text-transform: uppercase;
  flex: none;
}

.theme-ink   { color: #FAF8F4; background: var(--ink); }
.theme-ink   .badge-dot { background: #7C85F0; }
.theme-paper { color: var(--ink); background: #fff; border: 1px solid var(--line-2); }
.theme-paper .badge-dot { background: var(--stamp); }
.theme-stamp { color: #fff; background: var(--stamp); }
.theme-stamp .badge-dot { background: #FAF8F4; }
.theme-glass {
  color: var(--ink);
  background: rgba(255, 255, 255, 0.5);
  -webkit-backdrop-filter: blur(12px) saturate(1.4);
  backdrop-filter: blur(12px) saturate(1.4);
  border: 1px solid rgba(255, 255, 255, 0.65);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.4), 0 4px 16px rgba(26, 24, 21, 0.12);
}
.theme-glass .badge-dot { background: var(--stamp); }
.theme-face {
  color: var(--ink);
  background: #fff;
  border: 1px solid var(--line-2);
  padding: 5px 13px 5px 5px;
  box-shadow: 0 2px 10px rgba(26, 24, 21, 0.08);
}
.theme-face .badge-ava { display: inline-flex; }
.theme-face .badge-dot { display: none; }
.theme-face .js-handle { color: var(--stamp); }

/* snippet */

.snippet {
  margin-top: 16px;
  background: var(--ink);
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: var(--shadow-2);
}

.snippet-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 16px;
  border-bottom: 1px solid rgba(250, 248, 244, 0.1);
}

.snippet-hint {
  font-size: var(--t-xs);
  color: rgba(250, 248, 244, 0.55);
}
.snippet-hint code { font-family: var(--mono); font-size: 12px; }

.btn-copy {
  height: 30px;
  padding-inline: 14px;
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  background: rgba(250, 248, 244, 0.08);
  border: 1px solid rgba(250, 248, 244, 0.16);
  border-radius: var(--r-sm);
  font-family: var(--sans);
  font-size: var(--t-xs);
  font-weight: 550;
  color: #FAF8F4;
  cursor: pointer;
  transition: background-color 120ms ease;
}
.btn-copy:hover { background: rgba(250, 248, 244, 0.16); }
.btn-copy.is-copied { background: var(--stamp); border-color: var(--stamp); }

.snippet pre {
  padding: 16px 18px 18px;
  overflow-x: auto;
  font-family: var(--mono);
  font-size: 12.5px;
  line-height: 1.7;
  color: #E9E5DC;
  white-space: pre;
}

.snippet .c { color: #756F63; }
.snippet .t { color: var(--stamp-soft); }
.snippet .a { color: #C8C2B4; }
.snippet .s { color: #A8B49A; }

/* ---------- steps ---------- */

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(24px, 3vw, 32px);
}

.step {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 24px 24px 28px;
  box-shadow: var(--shadow-1);
}

.step-fig {
  height: 132px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  margin-bottom: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

/* fig 1: the claim input */
.fig-claim {
  display: flex;
  align-items: center;
  background: var(--surface);
  border: 1px solid var(--stamp);
  border-radius: 99px;
  box-shadow: 0 0 0 3px rgba(43, 53, 197, 0.12);
  padding: 10px 12px;
  font-family: var(--mono);
  font-size: 12px;
  color: var(--ink-2);
}
.fig-claim strong { color: var(--ink); font-weight: 550; }
.fig-caret {
  width: 1.5px;
  height: 14px;
  background: var(--stamp);
  margin-left: 2px;
  animation: caret 1.1s steps(1) infinite;
}
@keyframes caret { 50% { opacity: 0; } }

/* fig 2: the hub card */
.fig-hub {
  width: 72%;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  padding: 12px 14px;
}
.fig-hub-top { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; }
.fig-ava { width: 18px; height: 18px; border-radius: 50%; background: var(--stamp); flex: none; }
.fig-name { height: 8px; width: 56px; border-radius: 4px; background: var(--ink); opacity: .85; }
.fig-row { display: flex; align-items: center; gap: 7px; padding: 5px 0; }
.fig-row + .fig-row { border-top: 1px solid var(--line); }
.fig-fav { width: 9px; height: 9px; border-radius: 3px; flex: none; }
.fig-fav-a { background: #E0A458; }
.fig-fav-b { background: #7C85F0; }
.fig-fav-c { background: #8FAF7E; }
.fig-bar { height: 7px; border-radius: 4px; background: var(--line); }

/* fig 3: the snippet */
.fig-code {
  width: 78%;
  background: var(--ink);
  border-radius: var(--r-sm);
  padding: 13px 15px;
  font-family: var(--mono);
  font-size: 10.5px;
  line-height: 1.8;
  color: #756F63;
}
.fig-code .fc-a { color: var(--stamp-soft); }
.fig-code .fc-b { color: #C8C2B4; }

.step-head { display: flex; align-items: baseline; gap: 10px; }

.step-num {
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 550;
  color: var(--stamp);
}

.step h3 {
  font-size: var(--t-md);
  letter-spacing: -0.015em;
}

.step p {
  margin-top: 10px;
  font-size: var(--t-sm);
  line-height: 1.6;
  color: var(--ink-2);
}

/* ---------- ink band ---------- */

.band-ink {
  background: var(--ink);
  color: var(--paper);
}



.band-line {
  font-size: clamp(1.45rem, 2.6vw, 1.95rem);
  line-height: 1.32;
  letter-spacing: -0.022em;
  font-weight: 550;
}

.band-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 40px;
}

.mini-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font: 550 13px/1 system-ui, sans-serif;
  color: var(--ink);
  background: var(--paper);
  padding: 9px 14px;
  border-radius: 99px;
}
.mini-badge::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--stamp);
}
.mini-ghost {
  color: rgba(250, 248, 244, 0.6);
  background: none;
  border: 1px dashed rgba(250, 248, 244, 0.35);
  padding: 8px 13px;
}
.mini-ghost::before { display: none; }

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

.plans {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.plan {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 34px 32px 32px;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-1);
}

.plan-name {
  font-size: var(--t-base);
  font-weight: 650;
  letter-spacing: -0.01em;
  display: flex;
  align-items: center;
  gap: 10px;
}

.plan-tag {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 500;
  color: var(--stamp);
  border: 1px solid currentColor;
  border-radius: 99px;
  padding: 3px 9px;
}

.plan-price {
  margin-top: 16px;
  font-size: 3rem;
  font-weight: 680;
  letter-spacing: -0.035em;
  line-height: 1;
}

.plan-list {
  list-style: none;
  margin-top: 24px;
  margin-bottom: 32px;
  flex: 1;
}

.plan-list li {
  font-size: var(--t-sm);
  color: var(--ink-2);
  padding: 10px 0 10px 24px;
  position: relative;
}
.plan-list li + li { border-top: 1px solid var(--line); }
.plan-list li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 17px;
  width: 10px;
  height: 5px;
  border-radius: 99px;
  background: var(--stamp);
}

.plan-note {
  margin-top: 14px;
  font-size: var(--t-xs);
  color: var(--ink-2);
}

/* Pro: the ink card */
.plan-pro {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--paper);
  box-shadow: var(--shadow-2);
}
.plan-pro .plan-tag { color: var(--stamp-soft); }
.plan-pro .plan-list li { color: rgba(250, 248, 244, 0.72); }
.plan-pro .plan-list li + li { border-top-color: rgba(250, 248, 244, 0.12); }
.plan-pro .plan-list li::before { background: var(--stamp-soft); }
.plan-pro .plan-note { color: rgba(250, 248, 244, 0.55); }

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

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

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

.faq summary {
  list-style: none;
  cursor: pointer;
  padding: 22px 44px 22px 0;
  font-size: var(--t-md);
  font-weight: 550;
  letter-spacing: -0.014em;
  position: relative;
}
.faq summary::-webkit-details-marker { display: none; }

.faq summary::after {
  content: "";
  position: absolute;
  right: 6px;
  top: 50%;
  width: 12px;
  height: 12px;
  translate: 0 -50%;
  background:
    linear-gradient(var(--ink-2), var(--ink-2)) center / 12px 2px no-repeat,
    linear-gradient(var(--ink-2), var(--ink-2)) center / 2px 12px no-repeat;
  transition: transform 140ms ease;
}
.faq details[open] summary::after { transform: rotate(45deg); }

.faq details p {
  padding: 0 44px 24px 0;
  font-size: var(--t-sm);
  line-height: 1.65;
  color: var(--ink-2);
}

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

.site-foot {
  border-top: 1px solid var(--line);
  padding-block: 60px 76px;
}

.foot-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr 1fr;
  gap: 40px;
  align-items: start;
}

.foot-brand p {
  margin-top: 14px;
  font-size: var(--t-sm);
  color: var(--ink-2);
}

.foot-nav { display: flex; flex-direction: column; gap: 12px; }
.foot-nav a {
  font-size: var(--t-sm);
  color: var(--ink-2);
  text-decoration: none;
  width: fit-content;
  transition: color 120ms ease;
}
.foot-nav a:hover { color: var(--ink); }

.foot-badge-note {
  margin-top: 12px;
  font-size: var(--t-xs);
  color: var(--ink-2);
}

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

@media (max-width: 980px) {
  .hero-grid { grid-template-columns: 1fr; gap: 56px; }
  
  .steps { grid-template-columns: 1fr; max-width: 520px; }
  .plans { grid-template-columns: 1fr; max-width: 480px; }
  .foot-grid { grid-template-columns: 1fr; gap: 36px; }
}

@media (max-width: 680px) {
  .browser-back { display: none; }
  .frames { padding-top: 0; padding-right: 0; }
}

@media (max-width: 560px) {
  .head-nav { display: none; }
  .claim-row { flex-direction: column; }
  .claim-row .btn { width: 100%; }
  .browser-body { padding: 20px 18px 58px; min-height: 200px; }
  .sk-cards .sk-card:last-child { display: none; }
  .step-fig { height: 120px; }
}

/* ---------- skill-product additions ---------- */

.cta-row { display: flex; gap: 10px; margin-top: 14px; }

.claim-row { max-width: 300px; }

.works-with {
  margin-top: 28px;
  font-size: var(--t-xs);
  color: var(--ink-2);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 7px;
}
.works-with span {
  border: 1px solid var(--line);
  border-radius: 99px;
  padding: 4px 10px;
  background: rgba(255, 255, 255, 0.45);
  font-weight: 500;
  color: var(--ink-2);
}

/* step figures: skill file + chat bubbles */
.fig-skill {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  background: var(--surface);
  border: 1px solid var(--line-2);
  border-radius: var(--r-md);
  padding: 11px 16px;
  font-family: var(--mono);
  font-size: 12.5px;
  color: var(--ink);
  box-shadow: var(--shadow-1);
}

.fig-chat {
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: 82%;
}
.bubble {
  font-size: 12px;
  line-height: 1.45;
  padding: 8px 12px;
  border-radius: 12px;
  max-width: 86%;
}
.bubble.them {
  background: var(--surface);
  border: 1px solid var(--line);
  color: var(--ink);
  align-self: flex-start;
  border-bottom-left-radius: 4px;
}
.bubble.you {
  background: var(--stamp);
  color: #fff;
  align-self: flex-end;
  border-bottom-right-radius: 4px;
}

/* notes cards */
.notes-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.note-card {
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 26px 24px 22px;
  text-decoration: none;
  box-shadow: var(--shadow-1);
  transition: border-color 120ms ease;
}
.note-card:hover { border-color: var(--line-2); }
.note-card h3 { font-size: var(--t-md); letter-spacing: -0.015em; line-height: 1.3; }
.note-card p { margin-top: 10px; font-size: var(--t-sm); color: var(--ink-2); line-height: 1.55; flex: 1; }
.note-card:hover h3 { color: var(--stamp); }
.note-more {
  margin-top: 18px;
  font-size: var(--t-xs);
  font-weight: 550;
  color: var(--stamp);
}

@media (max-width: 980px) {
  .notes-grid { grid-template-columns: 1fr; max-width: 520px; }
}
@media (max-width: 560px) {
  .cta-row { flex-direction: column; }
  .cta-row .btn { width: 100%; }
}

/* ---------- article pages ---------- */

.article { width: 100%; padding: clamp(48px, 7vw, 88px) 0 var(--sec); }
.article h1 { font-size: clamp(1.9rem, 3.6vw, 2.7rem); line-height: 1.12; letter-spacing: -0.03em; }
.article .byline { margin-top: 16px; font-size: var(--t-sm); color: var(--ink-2); }
.article .byline b { color: var(--ink); font-weight: 550; }
.article h2 { font-size: var(--t-lg); letter-spacing: -0.02em; margin-top: 44px; }
.article p { margin-top: 16px; color: #3B3830; line-height: 1.68; }
.article h2 + p { margin-top: 12px; }
.article a { color: var(--stamp); text-decoration-thickness: 1px; text-underline-offset: 2px; }
.article .lead { font-size: var(--t-md); color: var(--ink-2); margin-top: 20px; }
.article pre {
  margin-top: 18px;
  background: var(--ink);
  color: #E9E5DC;
  border-radius: var(--r-lg);
  padding: 18px 20px;
  overflow-x: auto;
  font-family: var(--mono);
  font-size: 12.5px;
  line-height: 1.7;
  white-space: pre;
}
.article ul { margin: 14px 0 0 20px; color: #3B3830; }
.article li { margin-top: 8px; }
.article .foot-link { margin-top: 44px; padding-top: 22px; border-top: 1px solid var(--line); font-size: var(--t-sm); }

.post-list { width: 100%; }
.post-item { display: block; padding: 24px 0; border-bottom: 1px solid var(--line); text-decoration: none; }
.post-item h2 { font-size: var(--t-lg); letter-spacing: -0.02em; }
.post-item:hover h2 { color: var(--stamp); }
.post-item p { margin-top: 8px; font-size: var(--t-sm); color: var(--ink-2); }


/* ---------- footer credit ---------- */
.foot-legal {
  margin-top: 44px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  font-size: var(--t-xs);
  color: var(--ink-2);
}
.foot-legal a { color: var(--ink-2); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 2px; }
.foot-legal a:hover { color: var(--ink); }

/* ---------- expanded landing ---------- */

.sec-tight { padding-block: calc(var(--sec) * 0.72); }

.prose { width: 100%; }
.prose p { color: #3B3830; line-height: 1.68; }
.prose p + p { margin-top: 16px; }

/* badge gallery */
.gallery {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 18px;
}
.g-tile { display: flex; flex-direction: column; }
.g-stage {
  height: 108px;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
}
.stage-light { background: var(--surface); }
.stage-grad { background: linear-gradient(130deg, #DCE0F5 0%, #C9CFF0 42%, #E8DFD0 100%); }
.badge-inline { position: static; }
.g-blue { color: var(--stamp); }
.g-name { font-size: var(--t-sm); font-weight: 650; letter-spacing: -0.01em; }
.g-desc { font-size: var(--t-xs); color: var(--ink-2); margin-top: 2px; }

/* stats */
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-top: 48px;
}
.stat { border-top: 2px solid var(--ink); padding-top: 14px; }
.stat b {
  display: block;
  font-size: var(--t-xl);
  font-weight: 680;
  letter-spacing: -0.03em;
  line-height: 1;
}
.stat span { display: block; margin-top: 6px; font-size: var(--t-xs); color: var(--ink-2); }

/* hub demo card */
.hub-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: clamp(44px, 6vw, 80px);
  align-items: center;
}
.sec-head-flush { margin-bottom: 24px; }
.hubdemo {
  max-width: 360px;
  justify-self: center;
  width: 100%;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 24px 22px 18px;
  box-shadow: var(--shadow-2);
}
.hd-who { display: flex; align-items: center; gap: 12px; }
.hd-ava {
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--stamp); color: #fff;
  display: inline-flex; align-items: center; justify-content: center;
  font: 650 18px/1 var(--sans); text-transform: uppercase; flex: none;
}
.hd-who b { display: block; font-size: var(--t-base); font-weight: 650; letter-spacing: -0.015em; }
.hd-who i { font-style: normal; font-size: var(--t-xs); color: var(--stamp); font-weight: 550; }
.hd-bio { margin-top: 12px; font-size: var(--t-sm); color: var(--ink-2); }
.hd-rows { margin-top: 16px; border-top: 1px solid var(--line); }
.hd-row {
  display: flex; align-items: center; gap: 11px;
  padding: 11px 0; border-bottom: 1px solid var(--line);
}
.hd-fav { width: 20px; height: 20px; border-radius: 6px; flex: none; border: 1px solid var(--line); }
.hd-row b { display: block; font-size: var(--t-sm); font-weight: 600; letter-spacing: -0.01em; }
.hd-row i { display: block; font-style: normal; font-size: 12px; color: var(--ink-2); margin-top: 1px; }
.hd-row em { margin-left: auto; font-style: normal; color: var(--ink-2); font-size: 12px; }
.hd-more { display: block; text-align: center; padding: 12px 0 2px; font-size: var(--t-xs); font-weight: 550; color: var(--ink-2); }

/* about */
.about { display: flex; align-items: flex-start; gap: 18px; }
.about svg { flex: none; margin-top: 4px; }
.about p { font-size: var(--t-md); line-height: 1.55; color: var(--ink-2); }
.about a { color: var(--ink); font-weight: 550; text-decoration-thickness: 1px; text-underline-offset: 2px; }
.about a:hover { color: var(--stamp); }

@media (max-width: 980px) {
  .gallery { grid-template-columns: repeat(2, 1fr); }
  .gallery .g-tile:last-child { grid-column: 1 / -1; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .hub-grid { grid-template-columns: 1fr; gap: 40px; }
  .hubdemo { justify-self: start; }
}

/* ---------- hub popup ---------- */
.bbb-overlay {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(26, 24, 21, 0.38);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  display: flex;
  align-items: flex-end;
  justify-content: flex-end;
  padding: 20px;
  opacity: 0;
  transition: opacity 160ms ease;
}
.bbb-overlay.is-open { opacity: 1; }

.bbb-panel {
  position: relative;
  width: min(400px, 100%);
  height: min(600px, calc(100vh - 40px));
  background: var(--paper);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 24px 80px rgba(26, 24, 21, 0.35);
  transform: translateY(14px) scale(0.985);
  transition: transform 200ms cubic-bezier(.32,1.25,.6,1);
}
.bbb-overlay.is-open .bbb-panel { transform: none; }

.bbb-frame { width: 100%; height: 100%; border: 0; display: block; }

.bbb-close {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 2;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--ink-2);
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
  transition: color 120ms ease, border-color 120ms ease;
}
.bbb-close:hover { color: var(--ink); border-color: var(--line-2); }

@media (max-width: 560px) {
  .bbb-overlay { padding: 0; align-items: stretch; justify-content: stretch; }
  .bbb-panel { width: 100%; height: 100%; border-radius: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .bbb-overlay, .bbb-panel { transition: none; }
}
