/* ==========================================================================
   Kreebi — design system
   ========================================================================== */

:root {
  color-scheme: light;

  --accent: #2C7CF6;
  --accent-hover: #1E6AE0;
  --accent-soft: rgba(44, 124, 246, 0.09);
  --accent-ink: #1B62C9;

  --bg: #FFFFFF;
  --surface: #F8FAFC;
  --surface-2: #FFFFFF;
  --text: #0F172A;
  --muted: #475569;
  --border: #E2E8F0;
  --border-strong: #CBD5E1;
  --header-bg: rgba(255, 255, 255, 0.82);
  --grid-line: rgba(15, 23, 42, 0.055);
  --shadow: 0 1px 2px rgba(15, 23, 42, 0.05);
  --shadow-lift: 0 6px 24px rgba(15, 23, 42, 0.07);

  --radius-sm: 8px;
  --radius: 12px;
  --radius-lg: 16px;

  --max: 1120px;
  --pad: 20px;
  --header-h: 64px;

  --font: "Inter", "Geist", ui-sans-serif, system-ui, -apple-system,
    "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;
}

/* ---------- reset ---------- */

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

h1, h2, h3, h4 {
  margin: 0;
  font-weight: 600;
  letter-spacing: -0.022em;
  line-height: 1.15;
  color: var(--text);
  text-wrap: balance;
}

p { margin: 0; text-wrap: pretty; }

a { color: inherit; text-decoration: none; }

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

img, svg { display: block; max-width: 100%; }

button { font: inherit; color: inherit; }

::selection {
  background: var(--accent-soft);
  color: var(--text);
}

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

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

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

/* Wider layout on the inner pages (home page keeps its 1120px) */
body[data-page]:not([data-page="home"]) {
  --max: 1440px;
}

.section {
  padding-block: clamp(56px, 9vw, 104px);
  border-top: 1px solid var(--border);
}

.section-head {
  max-width: 640px;
  margin-bottom: clamp(32px, 5vw, 52px);
}

.eyebrow {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 14px;
}

.section-head h2 {
  font-size: clamp(1.6rem, 3.6vw, 2.35rem);
}

.section-head p {
  margin-top: 14px;
  color: var(--muted);
  font-size: clamp(0.98rem, 1.6vw, 1.075rem);
}

[id] { scroll-margin-top: calc(var(--header-h) + 24px); }

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

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

.btn {
  --btn-bg: transparent;
  --btn-fg: var(--text);
  --btn-border: var(--border);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 46px;
  padding: 0 20px;
  border: 1px solid var(--btn-border);
  border-radius: 10px;
  background: var(--btn-bg);
  color: var(--btn-fg);
  font-size: 0.9375rem;
  font-weight: 550;
  letter-spacing: -0.01em;
  cursor: pointer;
  transition: background-color 0.16s ease, border-color 0.16s ease,
    color 0.16s ease, transform 0.16s ease;
}

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

.btn-primary {
  --btn-bg: var(--accent);
  --btn-fg: #FFFFFF;
  --btn-border: var(--accent);
}

.btn-primary:hover {
  --btn-bg: var(--accent-hover);
  --btn-border: var(--accent-hover);
}

.btn-ghost {
  --btn-bg: var(--bg);
  --btn-fg: var(--text);
  --btn-border: var(--border);
}

.btn-ghost:hover {
  --btn-border: var(--border-strong);
  --btn-bg: var(--surface);
}

.btn-sm {
  min-height: 40px;
  padding: 0 16px;
  font-size: 0.875rem;
}

.btn .arw {
  display: inline-block;
  transition: transform 0.16s ease;
}

.btn:hover .arw { transform: translateX(2px); }

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: var(--header-bg);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  min-height: var(--header-h);
  padding-block: 10px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin-right: auto;
  padding: 6px 2px;
  border-radius: 8px;
  color: var(--accent);
}

.brand-mark { width: 26px; height: 26px; }

.brand-name {
  font-size: 1.0625rem;
  font-weight: 650;
  letter-spacing: -0.028em;
  color: var(--text);
}

/* menu button — mobile only */
.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--bg);
  color: var(--text);
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: background-color 0.16s ease, border-color 0.16s ease;
}

.nav-toggle:hover {
  background: var(--surface);
  border-color: var(--border-strong);
}

.nav-toggle-box {
  position: relative;
  display: block;
  width: 18px;
  height: 12px;
}

.nav-toggle-box span {
  position: absolute;
  left: 0;
  width: 18px;
  height: 1.6px;
  border-radius: 2px;
  background: currentColor;
  transition: transform 0.22s ease, opacity 0.14s ease, top 0.22s ease;
}

.nav-toggle-box span:nth-child(1) { top: 0; }
.nav-toggle-box span:nth-child(2) { top: 5px; }
.nav-toggle-box span:nth-child(3) { top: 10px; }

.nav-toggle[aria-expanded="true"] .nav-toggle-box span:nth-child(1) {
  top: 5px;
  transform: rotate(45deg);
}

.nav-toggle[aria-expanded="true"] .nav-toggle-box span:nth-child(2) { opacity: 0; }

.nav-toggle[aria-expanded="true"] .nav-toggle-box span:nth-child(3) {
  top: 5px;
  transform: rotate(-45deg);
}

/* nav */
.site-nav { flex: 1 1 100%; order: 3; }

.site-nav > ul {
  display: flex;
  flex-wrap: wrap;
  gap: 2px;
}

.site-nav a {
  display: block;
  padding: 10px 10px;
  border-radius: 8px;
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--muted);
  transition: color 0.16s ease, background-color 0.16s ease;
}

.site-nav a:hover { color: var(--text); background: var(--surface); }

body[data-page="home"] .site-nav a[data-nav="home"],
body[data-page="about"] .site-nav a[data-nav="about"],
body[data-page="contact"] .site-nav a[data-nav="contact"],
body[data-page="products"] .site-nav a[data-nav="products"],
body[data-page="ai-builder"] .site-nav a[data-nav="products"],
body[data-page="kreebi-forms"] .site-nav a[data-nav="products"],
body[data-page="future-tools"] .site-nav a[data-nav="products"] {
  color: var(--text);
  background: var(--surface);
}

/* products dropdown */
.site-nav > ul > li {
  position: relative;
  display: flex;
  align-items: center;
}

/* needs to out-rank the generic ".site-nav a { display: block }" rule */
.site-nav a.nav-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
}

.nav-caret {
  flex: 0 0 auto;
  display: block;
  width: 11px;
  height: 11px;
  margin-top: 1px;
  opacity: 0.55;
  transition: transform 0.18s ease, opacity 0.18s ease;
}

.nav-sub {
  list-style: none;
  margin: 0;
  padding: 0;
  display: block;
}

.nav-sub a {
  display: block;
  padding: 9px 12px;
  border-radius: 8px;
  white-space: nowrap;
  color: var(--muted);
}

.nav-sub a:hover { color: var(--text); background: var(--surface); }

body[data-page="ai-builder"] .nav-sub a[data-nav="ai-builder"],
body[data-page="kreebi-forms"] .nav-sub a[data-nav="kreebi-forms"],
body[data-page="future-tools"] .nav-sub a[data-nav="future-tools"] {
  color: var(--accent-ink);
  background: var(--accent-soft);
}

@media (max-width: 899px) {
  .nav-caret { display: none; }

  .site-nav .nav-sub {
    margin: 0 0 10px 6px;
    padding-left: 10px;
    border-left: 1px solid var(--border);
  }

  .js .site-nav.is-open .nav-sub li + li { border-top: 0; }

  .js .site-nav.is-open a.nav-sub-link,
  .site-nav .nav-sub a {
    padding: 11px 10px;
    font-size: 0.9375rem;
    border-radius: 8px;
  }
}

@media (min-width: 900px) {
  .nav-sub {
    position: absolute;
    top: calc(100% + 14px);
    left: -6px;
    min-width: 244px;
    padding: 6px;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: 0 16px 36px rgba(15, 23, 42, 0.1);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-4px);
    transition: opacity 0.16s ease, transform 0.16s ease, visibility 0.16s ease;
  }

  /* invisible bridge so the menu stays open while the pointer travels down */
  .nav-sub::before {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    top: -16px;
    height: 16px;
  }

  .nav-item.has-sub:hover > .nav-sub,
  .nav-item.has-sub:focus-within > .nav-sub {
    opacity: 1;
    visibility: visible;
    transform: none;
  }

  .nav-item.has-sub:hover .nav-caret,
  .nav-item.has-sub:focus-within .nav-caret {
    opacity: 1;
    transform: rotate(180deg);
  }

  .site-nav .nav-sub a {
    padding: 10px 12px;
    font-size: 0.9375rem;
  }
}

@media (max-width: 899px) {
  .js .site-nav { display: none; }

  .js .site-nav.is-open {
    display: block;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    padding: 6px var(--pad) 14px;
    background: var(--bg);
    border-bottom: 1px solid var(--border);
    box-shadow: 0 14px 28px rgba(15, 23, 42, 0.07);
  }

  .js .site-nav.is-open > ul { flex-direction: column; gap: 0; }

  .js .site-nav.is-open li + li { border-top: 1px solid var(--border); }

  .js .site-nav.is-open a {
    padding: 15px 4px;
    font-size: 1rem;
    border-radius: 0;
  }

  .js .nav-toggle { display: inline-flex; }
}

@media (min-width: 900px) {
  .site-header { --header-h: 68px; }
  .header-inner {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    gap: 24px;
    padding-block: 0;
  }
  .brand { margin-right: auto; }
  .site-nav { flex: 0 0 auto; order: 0; }
  .site-nav ul { gap: 2px; }
  .site-nav a { padding: 8px 12px; }
  .nav-toggle { display: none; }
}

/* ---------- hero (shared) ---------- */

.hero {
  position: relative;
  overflow: hidden;
  padding-block: clamp(56px, 11vw, 116px) clamp(52px, 9vw, 104px);
  text-align: center;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: linear-gradient(to right, var(--grid-line) 1px, transparent 1px),
    linear-gradient(to bottom, var(--grid-line) 1px, transparent 1px);
  background-size: 64px 64px;
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 0%, #000 10%, transparent 75%);
  mask-image: radial-gradient(ellipse 70% 60% at 50% 0%, #000 10%, transparent 75%);
  pointer-events: none;
}

.hero > .wrap { position: relative; }

.hero h1 {
  max-width: 24ch;
  margin: 0 auto;
  font-size: clamp(2.05rem, 5.8vw, 3.75rem);
  font-weight: 650;
  letter-spacing: -0.035em;
  line-height: 1.06;
}

.hero-line { display: block; }

.hero h1 .accent { color: var(--accent); }

.hero-sub {
  max-width: 60ch;
  margin: 20px auto 0;
  font-size: clamp(1rem, 2vw, 1.15rem);
  line-height: 1.65;
  color: var(--muted);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 32px;
}

.hero-actions .btn { min-width: 180px; }

.hero-note {
  margin-top: 26px;
  font-size: 0.8125rem;
  color: var(--muted);
  letter-spacing: 0.01em;
}

/* ---------- products ---------- */

.card-grid {
  display: grid;
  gap: 16px;
  grid-template-columns: 1fr;
}

@media (min-width: 700px) {
  .card-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
  .card-grid .card-featured { grid-column: 1 / -1; }
}

@media (min-width: 960px) {
  .card-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .card-grid .card-featured { grid-column: auto; }
}

.card {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 24px;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--surface-2);
  transition: border-color 0.18s ease, background-color 0.18s ease,
    transform 0.18s ease, box-shadow 0.18s ease;
}

.card:hover {
  border-color: var(--border-strong);
  transform: translateY(-2px);
  box-shadow: var(--shadow-lift);
}

.card-featured {
  background: var(--surface);
}

.card-top {
  display: flex;
  align-items: center;
  gap: 10px;
  justify-content: space-between;
}

.card-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--bg);
  color: var(--accent);
}

.card-icon svg { width: 19px; height: 19px; }

.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border: 1px solid var(--border);
  border-radius: 999px;
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  background: var(--bg);
  white-space: nowrap;
}

.badge-live {
  color: var(--accent-ink);
  border-color: rgba(44, 124, 246, 0.35);
  background: var(--accent-soft);
}

.badge-live .dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: currentColor;
}

.card h3 {
  font-size: 1.125rem;
  letter-spacing: -0.018em;
}

.card h3 + p,
.card p {
  color: var(--muted);
  font-size: 0.9375rem;
  line-height: 1.62;
}

.card-foot { margin-top: auto; padding-top: 6px; }

.card-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 44px;
  font-size: 0.9375rem;
  font-weight: 550;
  color: var(--accent);
  transition: gap 0.16s ease, color 0.16s ease;
}

.card-link:hover { gap: 10px; color: var(--accent-hover); }

.card-meta {
  font-size: 0.8125rem;
  color: var(--muted);
  font-family: var(--mono);
  letter-spacing: -0.01em;
}

/* ---------- architecture ---------- */

.principles {
  display: grid;
  gap: 0;
  grid-template-columns: 1fr;
  border-top: 1px solid var(--border);
}

.principle {
  padding: 28px 0;
  border-bottom: 1px solid var(--border);
}

.principle-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  margin-bottom: 16px;
  border: 1px solid var(--border);
  border-radius: 9px;
  background: var(--surface);
  color: var(--accent);
}

.principle-icon svg { width: 17px; height: 17px; }

.principle h3 {
  font-size: 1.0625rem;
  letter-spacing: -0.018em;
}

.principle p {
  margin-top: 8px;
  max-width: 42ch;
  color: var(--muted);
  font-size: 0.9375rem;
  line-height: 1.65;
}

@media (min-width: 820px) {
  .principles {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0 40px;
    border-top: 0;
  }
  .principle {
    padding: 0;
    border-bottom: 0;
    border-top: 1px solid var(--border);
    padding-top: 26px;
  }
}

/* ---------- teaser list ---------- */

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

.teaser-list {
  list-style: none;
  padding: 0;
  margin-top: 32px;
  border-top: 1px solid var(--border);
}

.teaser {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr) 36px;
  grid-template-areas:
    "icon head arw"
    "icon desc arw";
  align-items: center;
  column-gap: 18px;
  row-gap: 4px;
  padding: 20px 12px 20px 8px;
  border-bottom: 1px solid var(--border);
  transition: background-color 0.18s ease;
}

.teaser:hover { background: var(--surface); }

.teaser:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: -2px;
  border-radius: var(--radius-sm);
}

/* title line */
.teaser-head {
  grid-area: head;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px 10px;
  min-width: 0;
}

.teaser-name {
  font-size: 1.0625rem;
  font-weight: 600;
  letter-spacing: -0.022em;
  line-height: 1.3;
  color: var(--text);
  transition: color 0.18s ease;
}

.teaser:hover .teaser-name { color: var(--accent-ink); }

/* supporting line — always starts on the same left edge as the title */
.teaser-desc {
  grid-area: desc;
  max-width: 62ch;
  font-size: 0.9375rem;
  line-height: 1.55;
  color: var(--muted);
}

/* arrow chip, vertically centred across both text lines */
.teaser-arw {
  grid-area: arw;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border: 1px solid var(--border);
  border-radius: 50%;
  color: var(--border-strong);
  font-size: 0.95rem;
  line-height: 1;
  transition: color 0.18s ease, background-color 0.18s ease,
    border-color 0.18s ease, transform 0.18s ease;
}

.teaser:hover .teaser-arw {
  color: #FFFFFF;
  background: var(--accent);
  border-color: var(--accent);
  transform: translate(1px, -1px);
}

@media (max-width: 560px) {
  .teaser {
    grid-template-columns: 42px minmax(0, 1fr) 28px;
    column-gap: 13px;
    padding: 17px 4px;
  }
  .teaser-name { font-size: 1rem; }
  .teaser-desc { font-size: 0.875rem; }
  .teaser-arw { width: 28px; height: 28px; font-size: 0.8rem; }
}

.section-foot { margin-top: 24px; }

/* ---------- product icons ---------- */

.product-icon,
.teaser-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  border-radius: 8px;
  background: #FFFFFF;
  border: 1px solid var(--border);
  box-shadow: none;
}

.product-icon {
  width: 56px;
  height: 56px;
  margin-bottom: 16px;
}

img.product-icon,
img.teaser-icon {
  object-fit: contain;
  padding: 2px;
}

.teaser-icon {
  grid-area: icon;
  width: 52px;
  height: 52px;
  align-self: center;
}

.teaser-icon svg { width: 26px; height: 26px; }

@media (max-width: 560px) {
  .teaser-icon { width: 42px; height: 42px; }
  .teaser-icon svg { width: 22px; height: 22px; }
}

/* Kreebi Core uses the site's own brand mark */
.icon-core {
  color: var(--accent);
  background: var(--surface);
}


.text-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--accent);
}

.text-link:hover { color: var(--accent-hover); }

/* ---------- products overview ---------- */

.product-list-section { padding-block: clamp(8px, 2vw, 20px) clamp(40px, 6vw, 64px); }

.product-list {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--border);
}

.product-row {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 6px 18px;
  align-items: start;
  padding: 26px 2px;
  border-bottom: 1px solid var(--border);
  transition: background-color 0.16s ease;
}

.product-row:hover { background: var(--surface); }

.product-row-icon {
  grid-column: 1;
  width: 46px;
  height: 46px;
  padding: 3px;
  border: 1px solid var(--border);
  border-radius: 9px;
  background: var(--bg);
  object-fit: contain;
}

.product-row-body {
  grid-column: 2;
  display: block;
  min-width: 0;
}

.product-row-title {
  display: block;
  font-size: 1.0625rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--text);
}

.product-row-desc {
  display: block;
  margin-top: 4px;
  max-width: 62ch;
  font-size: 0.9375rem;
  line-height: 1.62;
  color: var(--muted);
}

.product-row-tags {
  display: block;
  margin-top: 10px;
  font-size: 0.8125rem;
  letter-spacing: 0.01em;
  color: var(--muted);
}

.product-row-arw {
  grid-column: 3;
  align-self: center;
  width: 32px;
  height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border);
  border-radius: 50%;
  color: var(--muted);
  transition: color 0.16s ease, border-color 0.16s ease, transform 0.16s ease;
}

.product-row:hover .product-row-arw {
  color: var(--accent);
  border-color: var(--accent);
  transform: translateX(2px);
}

@media (max-width: 480px) {
  .product-row-icon { width: 40px; height: 40px; border-radius: 8px; }
  .product-row-mark { width: 40px; height: 40px; border-radius: 8px; }
  .product-row { padding: 22px 2px; }
}

.product-row-mark {
  grid-column: 1;
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border: 1px solid var(--border);
  border-radius: 9px;
  background: var(--bg);
  color: var(--accent);
}

.product-row-mark svg { width: 24px; height: 24px; }

/* ---------- product detail pages ---------- */

.pd-hero {
  padding-block: clamp(36px, 6vw, 64px) clamp(26px, 4vw, 42px);
  border-bottom: 1px solid var(--border);
}

.pd-id {
  display: flex;
  align-items: center;
  gap: 14px;
}

.pd-logo {
  width: 50px;
  height: 50px;
  padding: 3px;
  border: 1px solid var(--border);
  border-radius: 9px;
  background: var(--bg);
  object-fit: contain;
}

.pd-mark { color: var(--accent); width: 30px; height: 30px; }

.pd-logo-mark {
  display: grid;
  place-items: center;
  color: var(--accent);
}

.pd-logo-mark svg { width: 26px; height: 26px; }

.quote {
  max-width: 60ch;
  margin: 28px 0 0;
  padding-left: 20px;
  border-left: 2px solid var(--accent);
}

.quote p {
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--text);
}

.quote footer {
  margin-top: 12px;
  font-size: 0.8125rem;
  color: var(--muted);
}

.quote footer a { color: var(--accent); }

.pd-hero h1 {
  margin-top: 22px;
  max-width: 26ch;
  font-size: clamp(1.85rem, 4.6vw, 2.9rem);
  font-weight: 650;
  letter-spacing: -0.032em;
  line-height: 1.12;
}

.pd-lead {
  margin-top: 16px;
  max-width: 60ch;
  font-size: clamp(1rem, 1.6vw, 1.0625rem);
  line-height: 1.68;
  color: var(--muted);
}

.pd-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 26px;
}

.pd-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 16px;
  margin-top: 22px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
  font-size: 0.8125rem;
  color: var(--muted);
}

.pd-meta span { display: inline-flex; align-items: center; gap: 6px; }

.pd-section { padding-block: clamp(34px, 5.5vw, 60px); border-bottom: 1px solid var(--border); }
.pd-section:last-of-type { border-bottom: 0; }

.pd-split { display: grid; gap: 20px; }

@media (min-width: 880px) {
  .pd-split {
    grid-template-columns: minmax(0, 0.66fr) minmax(0, 1.34fr);
    gap: 20px 64px;
    align-items: start;
  }
}

.pd-head h2 {
  font-size: clamp(1.25rem, 2.4vw, 1.5rem);
  font-weight: 650;
  letter-spacing: -0.025em;
}

.pd-head p {
  margin-top: 10px;
  max-width: 38ch;
  font-size: 0.9375rem;
  line-height: 1.65;
  color: var(--muted);
}

.pd-body p {
  max-width: 66ch;
  font-size: 1rem;
  line-height: 1.72;
  color: var(--muted);
}

.pd-body p + p { margin-top: 14px; }

.pd-features {
  list-style: none;
  margin: 0;
  padding: 0;
  max-width: 68ch;
}

.pd-features > li {
  padding-block: 15px;
  border-top: 1px solid var(--border);
}

.pd-features > li:first-child { border-top: 0; padding-top: 0; }

.pd-features strong {
  display: block;
  font-size: 0.9375rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--text);
}

.pd-features span {
  display: block;
  margin-top: 3px;
  font-size: 0.9375rem;
  line-height: 1.62;
  color: var(--muted);
}

.pd-features li a { color: var(--accent); }

.pd-steps {
  list-style: none;
  margin: 0;
  padding: 0;
  max-width: 66ch;
  display: grid;
  gap: 20px;
  counter-reset: pd-step;
}

.pd-steps li {
  position: relative;
  padding-left: 44px;
  counter-increment: pd-step;
}

.pd-steps li::before {
  content: counter(pd-step);
  position: absolute;
  left: 0;
  top: 0;
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border: 1px solid var(--border);
  border-radius: 50%;
  background: var(--bg);
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--accent-ink);
}

.pd-steps strong {
  display: block;
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--text);
}

.pd-steps span {
  display: block;
  margin-top: 3px;
  font-size: 0.9375rem;
  line-height: 1.62;
  color: var(--muted);
}

.pd-specs { margin: 0; padding: 0; max-width: 68ch; border-top: 1px solid var(--border); }

.pd-specs > div {
  display: grid;
  gap: 2px 24px;
  padding-block: 14px;
  border-bottom: 1px solid var(--border);
}

@media (min-width: 620px) {
  .pd-specs > div { grid-template-columns: 170px minmax(0, 1fr); align-items: baseline; }
}

.pd-specs dt {
  font-size: 0.6875rem;
  font-weight: 650;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--muted);
}

.pd-specs dd {
  margin: 0;
  font-size: 0.9375rem;
  line-height: 1.6;
  color: var(--text);
}

.roadmap { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--border); }

.roadmap > li {
  display: grid;
  gap: 6px 20px;
  padding-block: 18px;
  border-bottom: 1px solid var(--border);
}

@media (min-width: 700px) {
  .roadmap > li { grid-template-columns: minmax(0, 1fr) auto; align-items: baseline; }
}

.roadmap h3 {
  font-size: 0.9375rem;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.roadmap p {
  margin-top: 2px;
  max-width: 62ch;
  font-size: 0.9375rem;
  line-height: 1.62;
  color: var(--muted);
}

.status {
  justify-self: start;
  padding: 3px 10px;
  border: 1px solid var(--border);
  border-radius: 999px;
  font-size: 0.6875rem;
  font-weight: 650;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--muted);
  white-space: nowrap;
}

.status-next { color: var(--accent-ink); border-color: rgba(44, 124, 246, 0.35); background: var(--accent-soft); }

/* ---------- contact page ---------- */

.contact-section { padding-block: clamp(36px, 6vw, 64px); }

.contact-grid { display: grid; gap: 30px; }

@media (min-width: 900px) {
  .contact-grid {
    grid-template-columns: minmax(0, 1.12fr) minmax(0, 0.88fr);
    gap: 60px;
    align-items: start;
  }
}

.contact-card {
  padding: clamp(20px, 3vw, 28px);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--surface-2);
}

.contact-card-title {
  font-size: 1rem;
  font-weight: 650;
  letter-spacing: -0.015em;
  margin-bottom: 18px;
}

.contact-aside h2 {
  font-size: clamp(1.15rem, 2.2vw, 1.35rem);
  letter-spacing: -0.022em;
}

.contact-aside > p {
  margin-top: 10px;
  font-size: 0.9375rem;
  line-height: 1.68;
  color: var(--muted);
  max-width: 40ch;
}

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

.cta-band { border-top: 1px solid var(--border); }

.cta-inner {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
  padding-block: clamp(48px, 8vw, 80px);
}

.cta-inner h2 {
  font-size: clamp(1.5rem, 3.4vw, 2.15rem);
  max-width: 24ch;
}

.cta-inner p {
  margin-top: 10px;
  color: var(--muted);
  max-width: 46ch;
  font-size: 1rem;
}

.cta-actions { display: flex; flex-wrap: wrap; gap: 12px; }

@media (min-width: 820px) {
  .cta-inner {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
  }
}

/* ---------- plain reading pages (about and the product pages) ---------- */

/* one centred column with a narrow measure */
.doc-page .page-hero {
  border-bottom: 0;
  padding-bottom: clamp(16px, 3vw, 28px);
  text-align: center;
}

.doc-page .page-hero h1 {
  max-width: 26ch;
  margin-inline: auto;
}

.doc-page .page-hero p {
  margin-inline: auto;
  max-width: 58ch;
}

/* small product mark above the eyebrow */
.doc-topline {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  margin-bottom: 16px;
}

.doc-topline img {
  width: 30px;
  height: 30px;
  border-radius: 7px;
  object-fit: cover;
  background: var(--surface);
}

.doc-topline .doc-mark {
  display: inline-flex;
  color: var(--accent);
}

.doc-topline .doc-mark svg { width: 26px; height: 26px; }

.doc-topline .eyebrow { margin: 0; }

.doc-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-top: 26px;
}

.doc-body .doc-actions { justify-content: flex-start; }

.doc-meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 3px 16px;
  margin-top: 18px;
  color: var(--muted);
  font-size: 0.8125rem;
}

.doc-body {
  max-width: 66ch;
  margin-inline: auto;
  padding-bottom: clamp(56px, 9vw, 100px);
}

/* the reading column grows with the wider inner-page container */
@media (min-width: 1024px) {
  body[data-page]:not([data-page="home"]) .doc-body { max-width: 900px; }
}

@media (min-width: 1280px) {
  body[data-page]:not([data-page="home"]) .doc-body { max-width: 980px; }
}

.doc-body section {
  padding-top: clamp(34px, 5vw, 52px);
  margin-top: clamp(34px, 5vw, 52px);
  border-top: 1px solid var(--border);
}

.doc-body section:first-of-type {
  padding-top: 0;
  margin-top: 0;
  border-top: 0;
}

.doc-body h2 {
  font-size: clamp(1.15rem, 2.2vw, 1.35rem);
  letter-spacing: -0.022em;
  margin-bottom: 14px;
}

.doc-body p {
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.74;
  margin-bottom: 16px;
}

.doc-body p:last-child { margin-bottom: 0; }

.plain-list {
  list-style: none;
  margin: 22px 0 0;
  padding: 0;
}

.plain-list li {
  padding: 15px 0;
  border-top: 1px solid var(--border);
  font-size: 0.9375rem;
  line-height: 1.68;
  color: var(--muted);
}

.plain-list li:first-child { border-top: 0; padding-top: 0; }

.plain-list strong {
  color: var(--text);
  font-weight: 600;
}

.plain-list a { color: var(--accent); }
.plain-list a:hover { text-decoration: underline; }

/* the form block gets extra breathing room above it */
.doc-page .doc-body section.contact-form-block {
  margin-top: clamp(84px, 13vw, 148px);
  padding-top: 0;
  border-top: 0;
}

/* a single closing line that carries a bit more weight */
.doc-body .doc-emphasis {
  margin-top: 26px;
  color: var(--text);
  font-size: clamp(1.0625rem, 2vw, 1.1875rem);
  line-height: 1.6;
  letter-spacing: -0.012em;
  font-weight: 500;
}

/* numbered steps, plain */
.step-list {
  list-style: none;
  counter-reset: step;
  margin: 22px 0 0;
  padding: 0;
}

.step-list li {
  display: grid;
  grid-template-columns: 24px 1fr;
  gap: 5px 14px;
  padding: 16px 0;
  border-top: 1px solid var(--border);
  font-size: 0.9375rem;
  line-height: 1.68;
  color: var(--muted);
}

.step-list li:first-child { border-top: 0; padding-top: 0; }

.step-list li::before {
  counter-increment: step;
  content: counter(step);
  grid-row: span 2;
  align-self: start;
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  margin-top: 1px;
  border: 1px solid var(--border-strong);
  border-radius: 50%;
  color: var(--muted);
  font-size: 0.75rem;
  font-variant-numeric: tabular-nums;
}

.step-list strong {
  color: var(--text);
  font-weight: 600;
}

/* small status label inside a list line */
.doc-tag {
  display: inline-block;
  margin-left: 6px;
  padding: 1px 8px;
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 500;
  white-space: nowrap;
  vertical-align: 1px;
}

.plain-facts {
  margin: 4px 0 0;
  display: grid;
  gap: 14px;
}

.plain-facts div {
  display: flex;
  gap: 4px 16px;
  font-size: 0.9375rem;
  line-height: 1.6;
}

.plain-facts dt {
  flex: 0 0 124px;
  color: var(--muted);
}

.plain-facts dd {
  margin: 0;
  color: var(--text);
}

.plain-facts a { color: var(--accent); }
.plain-facts a:hover { color: var(--accent-hover); }

@media (max-width: 520px) {
  .plain-facts div { flex-direction: column; gap: 2px; }
  .plain-facts dt { flex: none; font-size: 0.8125rem; }
}

/* founder block: photo, name, intro, email */

.founder-photo {
  display: block;
  width: clamp(168px, 46vw, 232px);
  height: auto;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: center 18%;
  margin: 0 0 22px;
  border-radius: var(--radius-lg);
  background: var(--surface);
}

.founder-name,
.doc-body .founder-role { text-align: left; }

.founder-name {
  margin-bottom: 2px;
  color: var(--text);
  font-size: 1.0625rem;
  font-weight: 640;
  letter-spacing: -0.015em;
}

.doc-body .founder-role {
  margin-bottom: 20px;
  color: var(--muted);
  font-size: 0.875rem;
}

.doc-body .founder-contact {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-start;
  gap: 8px 16px;
  margin-top: 26px;
}

.founder-mail {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-height: 44px;
  padding: 0 18px 0 14px;
  border: 1px solid var(--border-strong);
  border-radius: 999px;
  background: var(--bg);
  color: var(--text);
  font-size: 0.9375rem;
  font-weight: 550;
  text-decoration: none;
  transition: border-color 0.16s ease, background-color 0.16s ease, color 0.16s ease;
}

.founder-mail:hover {
  border-color: var(--accent);
  background: var(--accent-soft);
  color: var(--accent-ink);
}

.founder-mail-icon {
  display: inline-flex;
  color: var(--accent);
}

.founder-mail-icon svg { width: 17px; height: 17px; }

.doc-body .founder-alt {
  font-size: 0.875rem;
  color: var(--muted);
}

.founder-alt a { color: var(--accent); }
.founder-alt a:hover { color: var(--accent-hover); }

@media (max-width: 560px) {
  .founder-photo { margin-inline: 0; }
  .founder-name,
  .doc-body .founder-role { text-align: left; }
}

.page-hero {
  padding-block: clamp(44px, 8vw, 84px) clamp(32px, 5vw, 56px);
  border-bottom: 1px solid var(--border);
}

.page-hero h1 {
  font-size: clamp(2rem, 5.4vw, 3.25rem);
  font-weight: 650;
  letter-spacing: -0.033em;
  max-width: 20ch;
}

.page-hero p {
  margin-top: 18px;
  max-width: 62ch;
  color: var(--muted);
  font-size: clamp(1rem, 1.8vw, 1.125rem);
  line-height: 1.65;
}

.prose-section { padding-block: clamp(44px, 7vw, 76px); }

.split {
  display: grid;
  gap: 32px;
  grid-template-columns: 1fr;
}

@media (min-width: 880px) {
  .split { grid-template-columns: 1.15fr 0.85fr; gap: 56px; }
}

.prose h2 {
  font-size: clamp(1.25rem, 2.4vw, 1.5rem);
  margin-bottom: 12px;
}

.prose h2 + p { margin-bottom: 26px; }

.prose p {
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.72;
  margin-bottom: 18px;
}

.prose p:last-child { margin-bottom: 0; }

.info-card {
  padding: 24px;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--surface);
  align-self: start;
}

.info-card h2 {
  font-size: 1rem;
  letter-spacing: -0.01em;
}

.info-list {
  margin-top: 16px;
  display: grid;
  gap: 14px;
}

.info-list li {
  display: grid;
  gap: 2px;
  font-size: 0.9375rem;
}

.info-list .k {
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.info-list a { color: var(--accent); }
.info-list a:hover { text-decoration: underline; }

.stack-list { display: grid; gap: 12px; margin-top: 18px; }

.stack-list li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 14px 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface-2);
  font-size: 0.9375rem;
  color: var(--muted);
  line-height: 1.55;
}

.stack-list strong { color: var(--text); font-weight: 600; }

.stack-list .tick {
  flex: 0 0 auto;
  color: var(--accent);
  margin-top: 3px;
}

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

.site-footer {
  border-top: 1px solid var(--border);
  background: var(--bg);
}

.footer-main {
  display: grid;
  gap: 28px;
  padding-block: clamp(32px, 5vw, 48px);
}

@media (min-width: 760px) {
  .footer-main {
    grid-template-columns: 1fr auto;
    align-items: start;
    gap: 48px;
  }
}

.footer-brand .brand { margin: 0 0 12px; }

.footer-tagline {
  color: var(--muted);
  font-size: 0.9375rem;
  max-width: 34ch;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 24px;
  align-items: center;
}

.footer-links a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-size: 0.9375rem;
  color: var(--muted);
  transition: color 0.16s ease;
}

.footer-links a:hover { color: var(--text); }

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  align-items: center;
  justify-content: space-between;
  padding-block: 18px;
  border-top: 1px solid var(--border);
  font-size: 0.8125rem;
  color: var(--muted);
}

.footer-powered a {
  color: var(--text);
  font-weight: 500;
  border-bottom: 1px solid var(--border-strong);
  padding-bottom: 1px;
  transition: color 0.16s ease, border-color 0.16s ease;
}

.footer-powered a:hover {
  color: var(--accent);
  border-color: var(--accent);
}

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

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    transition-duration: 0.001ms !important;
  }
  .btn:hover, .card:hover { transform: none; }
}
