/* OUUUT API — Token Harbor design language
   Single brand, dual theme (light/dark). Real tokens extracted from tokenharbor.ai
   production CSS. No gradients, no capsule buttons, no serif display font.
*/

/* ── Design tokens ─────────────────────────────────────────────────────── */

/* Light theme — opt-in */
html[data-theme="light"] {
  color-scheme: light;
  --background: #f7f6f2;
  --card: #ffffff;
  --raised: #faf9f5;
  --foreground: #17170f;
  --muted: #6b6a64;
  --muted-soft: #96948d;
  --border: #17170f1a;
  --border-hairline: #17170f0f;
  --border-field: #17170f3d;
  --border-control: #17170f80;
  --surface-hover: #17170f09;
  --surface-pressed: #17170f0f;
  --accent-fg: #17170f;
  --accent-bg: #17170f0f;
  --promo-bg: #17170f;
  --promo-fg: #f7f6f2;
  --footer-bg: #11120d;
  --footer-fg: #fafaf9;
  --shadow-btn:
    0 1px #0000000f,
    0 2px 4px #1a191824,
    0 8px 22px -4px #1a191847;
  --shadow-card:
    0 1px 2px #17170f0a,
    0 8px 24px -12px #17170f1a;
  --shadow-pill:
    0 1px #1a19180d,
    0 2px 4px #1a19180f,
    0 12px 28px -8px #1a191829;
}

/* Dark theme — default */
:root,
html[data-theme="dark"] {
  color-scheme: dark;
  --background: #141413;
  --card: #1b1b19;
  --raised: #232320;
  --foreground: #e8e6e1;
  --muted: #9a9793;
  --muted-soft: #6f6c68;
  --border: #ffffff17;
  --border-hairline: #ffffff0d;
  --border-field: #ffffff29;
  --border-control: #ffffff5c;
  --surface-hover: #ffffff0a;
  --surface-pressed: #ffffff14;
  --accent-fg: #e8e6e1;
  --accent-bg: #ffffff14;
  --promo-bg: #e8e6e1;
  --promo-fg: #141413;
  --footer-bg: #0c0d09;
  --footer-fg: #fafaf9;
  --shadow-btn:
    0 1px #0000001a,
    0 2px 4px #00000033,
    0 8px 22px -4px #00000059;
  --shadow-card:
    0 1px 2px #00000022,
    0 8px 24px -12px #00000044;
  --shadow-pill:
    0 1px #00000026,
    0 2px 4px #00000033,
    0 12px 28px -8px #00000055;
}

/* ── Base ──────────────────────────────────────────────────────────────── */

*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; }
body {
  background: var(--background);
  color: var(--foreground);
  font-family: "Inter", "Inter var", -apple-system, BlinkMacSystemFont,
    "Segoe UI", "Hiragino Kaku Gothic ProN", "Hiragino Sans",
    "Noto Sans JP", "Yu Gothic", "Meiryo", sans-serif;
  font-feature-settings: "cv11", "ss01", "ss03";
  font-size: 14px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  transition: background 0.2s ease, color 0.2s ease;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color 0.16s ease, opacity 0.16s ease;
}
a:hover { color: var(--foreground); }

button, input, textarea, select {
  font: inherit;
  color: inherit;
}

img, svg { display: block; max-width: 100%; }

::selection {
  background: var(--accent-fg);
  color: var(--card);
}

.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0);
  white-space: nowrap; border: 0;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: auto;
}
.skip-link:focus {
  left: 8px; top: 8px;
  z-index: 9999;
  padding: 8px 16px;
  background: var(--foreground);
  color: var(--card);
  border-radius: 4px;
}

.btn:focus-visible,
.theme-toggle:focus-visible,
.menu-toggle:focus-visible,
.nav a:focus-visible,
.lang-switch a:focus-visible {
  outline: 2px solid var(--foreground);
  outline-offset: 3px;
}

/* Layout wrappers */
.wrap {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 24px;
}
.wrap-narrow { max-width: 880px; }
.wrap-wide { max-width: 1440px; }

/* ── Typography helpers (match Token Harbor) ──────────────────────────── */

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--muted-soft);
  font-size: 10.5px;
  font-weight: 800;
}

/* .serif is a class name in Token Harbor but actually maps to sans.
   We keep the class for parity but render Inter (sans). */
.serif {
  font-family: inherit;
  letter-spacing: -0.02em;
}

.h-display {
  font-size: 64px;
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -0.02em;
  color: var(--foreground);
  margin: 0;
}
.h-section {
  font-size: 40px;
  font-weight: 500;
  letter-spacing: -0.022em;
  line-height: 1.18;
  color: var(--foreground);
  margin: 0;
}
.h-card {
  font-size: 17px;
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.01em;
  color: var(--foreground);
  margin: 0;
}

.lede {
  font-size: 16px;
  font-weight: 500;
  line-height: 1.5;
  color: var(--foreground);
  opacity: 0.75;
}

.body-sm {
  font-size: 13.5px;
  line-height: 1.55;
  color: var(--foreground);
  opacity: 0.75;
}

.muted { color: var(--muted); }
.muted-soft { color: var(--muted-soft); }

@media (max-width: 768px) {
  .h-display { font-size: 34px; }
  .h-section { font-size: 28px; }
}

/* ── Buttons (Token Harbor real: 4px radius, NOT capsule) ─────────────── */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 36px;
  padding: 0 16px;
  font-size: 13px;
  font-weight: 500;
  line-height: 1;
  border: 0;
  border-radius: 4px;
  cursor: pointer;
  white-space: nowrap;
  transition:
    transform 0.16s cubic-bezier(0.22, 0.61, 0.36, 1),
    box-shadow 0.2s cubic-bezier(0.22, 0.61, 0.36, 1),
    opacity 0.16s ease,
    background 0.16s ease;
}

.btn-primary {
  background: var(--foreground);
  color: var(--card);
  box-shadow: var(--shadow-btn);
}
.btn-primary:hover {
  transform: translateY(-1px);
  color: var(--card);
  opacity: 0.95;
}
.btn-primary:active {
  transform: translateY(0);
  opacity: 0.9;
}

.btn-ghost {
  background: transparent;
  color: var(--muted);
  border: 0;
}
.btn-ghost:hover {
  background: var(--surface-hover);
  color: var(--foreground);
}

.btn-outline {
  background: transparent;
  color: var(--foreground);
  border: 1px solid var(--border-field);
}
.btn-outline:hover {
  background: var(--surface-hover);
  border-color: var(--border-control);
}

.btn-lg {
  height: 44px;
  padding: 0 24px;
  font-size: 14px;
}

.btn-sm {
  height: 32px;
  padding: 0 12px;
  font-size: 12px;
}

/* ── Cards ───────────────────────────────────────────────────────────── */

.card-float {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 14px;
  box-shadow: var(--shadow-card);
}

.card-plain {
  background: var(--card);
  border: 1px solid var(--border-hairline);
  border-radius: 14px;
}

.card-hover {
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}
.card-hover:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-card);
  border-color: var(--border-field);
}

/* ── Tag pills (low-contrast, NOT lime) ───────────────────────────────── */

.tag {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: -0.005em;
  background: var(--surface-pressed);
  color: var(--foreground);
  border-radius: 999px;
  line-height: 1.2;
}

/* All badges use the same neutral ink/surface scale. */

/* Icon chip (44px rounded square) */
.icon-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  background: var(--surface-pressed);
  color: var(--foreground);
  border-radius: 10px;
  flex-shrink: 0;
}
.icon-chip svg {
  width: 20px;
  height: 20px;
  stroke-width: 2.2;
}

/* ── Announcement bar (Token Harbor has one promo bar) ────────────────── */

.announce {
  background: var(--promo-bg);
  color: var(--promo-fg);
  font-size: 12px;
  font-weight: 500;
  line-height: 1.4;
  padding: 8px 0;
  border-bottom: 1px solid var(--border-hairline);
}
.announce-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
  text-align: center;
}
.announce a {
  font-weight: 600;
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.announce-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--promo-fg);
  flex-shrink: 0;
}

/* ── Site header ─────────────────────────────────────────────────────── */

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: var(--background);
  border-bottom: 1px solid var(--border-hairline);
}
.header-inner {
  display: flex;
  align-items: center;
  gap: 24px;
  padding-top: 14px;
  padding-bottom: 14px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--foreground);
  font-size: 16px;
  font-weight: 800;
  letter-spacing: -0.01em;
  flex-shrink: 0;
}
.brand-mark {
  display: inline-block;
  width: 28px;
  height: 28px;
  flex-shrink: 0;
  background: currentColor;
  -webkit-mask: url("/assets/img/logo-mark-2026.svg") center / contain no-repeat;
  mask: url("/assets/img/logo-mark-2026.svg") center / contain no-repeat;
}
.brand-text { font-weight: 800; }
.brand-sub {
  font-size: 11px;
  font-weight: 500;
  color: var(--muted-soft);
  letter-spacing: 0.04em;
  padding-left: 6px;
  margin-left: 4px;
  border-left: 1px solid var(--border-hairline);
}

.nav {
  display: flex;
  align-items: center;
  gap: 24px;
  font-size: 14px;
  font-weight: 500;
  color: var(--muted);
  margin-left: 8px;
}
.nav a {
  color: var(--muted);
  transition: color 0.16s ease;
}
.nav a:hover { color: var(--foreground); }
.nav a.is-active { color: var(--foreground); }
.nav-auth { display: none; }

.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-left: auto;
}

.lang-switch {
  display: flex;
  align-items: center;
  gap: 2px;
  font-size: 12px;
  font-weight: 500;
}
.lang-switch a {
  padding: 4px 8px;
  border-radius: 4px;
  color: var(--muted-soft);
  transition: color 0.16s ease, background 0.16s ease;
}
.lang-switch a:hover {
  background: var(--surface-hover);
  color: var(--foreground);
}
.lang-switch a.is-active {
  color: var(--foreground);
  background: var(--surface-pressed);
}

.theme-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  padding: 0;
  border: 1px solid var(--border-hairline);
  border-radius: 4px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  transition: color 0.16s ease, background 0.16s ease, border-color 0.16s ease;
}
.theme-toggle:hover {
  background: var(--surface-hover);
  border-color: var(--border-field);
  color: var(--foreground);
}
.theme-toggle svg {
  width: 16px;
  height: 16px;
  stroke-width: 1.8;
}
.theme-toggle .icon-moon { display: none; }
html[data-theme="light"] .theme-toggle .icon-sun { display: none; }
html[data-theme="light"] .theme-toggle .icon-moon { display: block; }

.menu-toggle {
  display: none;
  background: none;
  border: 0;
  width: 36px;
  height: 36px;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 4px;
  cursor: pointer;
  border-radius: 4px;
  color: var(--foreground);
}
.menu-toggle:hover { background: var(--surface-hover); }
.menu-toggle span {
  display: block;
  width: 18px;
  height: 1.5px;
  background: currentColor;
  transition: transform 0.18s ease;
}
.menu-toggle[aria-expanded="true"] span:first-child {
  transform: translateY(2.75px) rotate(45deg);
}
.menu-toggle[aria-expanded="true"] span:last-child {
  transform: translateY(-2.75px) rotate(-45deg);
}

@media (max-width: 960px) {
  .nav {
    display: none;
    position: absolute;
    left: 0; right: 0;
    top: 100%;
    flex-direction: column;
    align-items: stretch;
    background: var(--background);
    border-bottom: 1px solid var(--border-hairline);
    padding: 12px 24px 20px;
    gap: 4px;
  }
  .nav.is-open { display: flex; }
  .nav a {
    padding: 10px 12px;
    border-radius: 6px;
  }
  .nav a:hover { background: var(--surface-hover); }
  .menu-toggle { display: inline-flex; }
  .header-login { display: none; }
}

@media (max-width: 380px) {
  .header-cta { display: none; }
  .header-inner { gap: 12px; }
}

@media (max-width: 640px) {
  .brand-sub { display: none; }
  .lang-switch { display: none; }
}

/* ── Footer (Token Harbor: independent dark footer) ──────────────────── */

.site-footer {
  margin-top: auto;
  background: var(--footer-bg);
  color: var(--footer-fg);
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr 1fr;
  gap: 40px;
  padding-top: 64px;
  padding-bottom: 48px;
}
.footer-brand .brand {
  color: var(--footer-fg);
  margin-bottom: 16px;
}
.footer-brand .brand-mark {
  width: 26px;
  height: 26px;
}
.footer-tagline {
  max-width: 280px;
  font-size: 13.5px;
  line-height: 1.5;
  color: rgba(250, 250, 249, 0.5);
  margin: 16px 0 20px;
}
.footer-company,
.footer-meta {
  font-size: 11.5px;
  line-height: 1.6;
  color: rgba(250, 250, 249, 0.4);
  margin: 6px 0 0;
}
.footer-col h2 {
  font-size: 13px;
  font-weight: 500;
  color: var(--footer-fg);
  margin: 0 0 16px;
}
.footer-col a {
  display: block;
  font-size: 13px;
  line-height: 1.6;
  color: rgba(250, 250, 249, 0.7);
  margin-bottom: 10px;
  transition: opacity 0.16s ease;
}
.footer-col a:hover {
  opacity: 0.8;
  color: rgba(250, 250, 249, 0.9);
}
.footer-bottom {
  border-top: 1px solid rgba(250, 250, 249, 0.08);
  padding-top: 24px;
  padding-bottom: 24px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px 24px;
  justify-content: space-between;
  align-items: center;
  font-size: 12.5px;
  color: rgba(250, 250, 249, 0.45);
}
.footer-bottom p { margin: 0; }
.footer-lang {
  display: flex;
  gap: 16px;
}
.footer-lang a {
  color: rgba(250, 250, 249, 0.55);
  transition: opacity 0.16s ease;
}
.footer-lang a:hover { opacity: 0.8; }

@media (max-width: 960px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
    padding-top: 48px;
  }
  .footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 560px) {
  .footer-grid { grid-template-columns: 1fr; }
}

/* ── Hero (Token Harbor centered layout) ──────────────────────────────── */

.hero {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: calc(100dvh - 200px);
  padding: 48px 24px 64px;
  text-align: center;
  overflow: hidden;
}

/* Promo pill (Token Harbor has ONE capsule on the page; subtle aurora inside) */
.hero-pill {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  max-width: 92vw;
  padding: 10px 14px 10px 20px;
  font-size: 13px;
  font-weight: 600;
  color: var(--foreground);
  background: var(--card);
  border: 0;
  border-radius: 9999px;
  box-shadow: var(--shadow-pill);
  overflow: hidden;
  transition: transform 0.22s cubic-bezier(0.22, 0.61, 0.36, 1),
    box-shadow 0.22s cubic-bezier(0.22, 0.61, 0.36, 1);
  margin-bottom: 28px;
}
.hero-pill:hover {
  transform: translateY(-1px);
  color: var(--foreground);
}
/* The single promotional pill stays monochrome: no aurora, no gradient. */

.hero-title {
  margin: 0;
  font-size: 64px;
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -0.02em;
  color: var(--foreground);
  max-width: 920px;
}
.hero-sub {
  margin: 16px 0 0;
  max-width: 680px;
  font-size: 16px;
  font-weight: 500;
  line-height: 1.5;
  color: var(--foreground);
  opacity: 0.75;
}

/* Hero search input (real Token Harbor search) */
.hero-search {
  position: relative;
  width: 100%;
  max-width: 640px;
  margin-top: 32px;
}
.hero-search input {
  width: 100%;
  padding: 20px 56px 20px 28px;
  font-size: 17px;
  color: var(--foreground);
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 14px;
  box-shadow: var(--shadow-card);
  outline: none;
  transition: border-color 0.16s ease;
}
.hero-search input::placeholder { color: var(--muted-soft); }
.hero-search input:focus { border-color: var(--border-field); }
.hero-search-btn {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  background: var(--foreground);
  color: var(--card);
  border: 0;
  border-radius: 4px;
  cursor: pointer;
  transition: opacity 0.16s ease;
}
.hero-search-btn:hover { opacity: 0.9; }

/* Provider logos row */
.hero-providers {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-top: 32px;
}
.provider-dot {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  color: var(--foreground);
  background: var(--surface-pressed);
  border: 1px solid var(--border-hairline);
  font-size: 11px;
  font-weight: 700;
  flex-shrink: 0;
}

.hero-connect {
  margin-top: 24px;
  font-size: 13px;
  color: var(--muted);
}
.hero-connect a {
  font-weight: 500;
  color: var(--foreground);
  text-decoration: underline;
  text-decoration-style: dotted;
  text-underline-offset: 4px;
}
.hero-connect a:hover { text-decoration-style: solid; }

@media (max-width: 768px) {
  .hero { min-height: auto; padding: 40px 20px 48px; }
  .hero-title { font-size: 34px; }
  .hero-sub { font-size: 14px; }
  .hero-pill { font-size: 12px; padding: 8px 12px 8px 16px; }
}

/* ── Sections ────────────────────────────────────────────────────────── */

.section {
  padding: 80px 24px 64px;
}
.section-head {
  text-align: center;
  margin-bottom: 48px;
}
.section-head .eyebrow {
  display: block;
  margin-bottom: 8px;
}
.section-head h2 {
  margin: 0;
}

/* ── Promises grid (2x2 cards) ──────────────────────────────────────── */

.promises-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
@media (max-width: 768px) {
  .promises-grid { grid-template-columns: 1fr; }
}
.promise-card {
  display: flex;
  flex-direction: column;
  gap: 14px;
  background: var(--card);
  border: 1px solid var(--border-hairline);
  border-radius: 14px;
  padding: 28px;
}
.promise-card .icon-chip { margin-bottom: 4px; }
.promise-card .tag { align-self: flex-start; }
.promise-card h3 { margin: 0; }
.promise-card p {
  margin: 0;
  font-size: 13.5px;
  line-height: 1.55;
  color: var(--foreground);
  opacity: 0.75;
}
.promises-meta {
  margin-top: 24px;
  text-align: center;
  font-size: 12px;
  line-height: 1.6;
  color: var(--muted-soft);
}
.promises-meta a {
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* ── Pricing ────────────────────────────────────────────────────────── */

.pricing-hero {
  padding: 64px 24px 32px;
  text-align: center;
}
.pricing-hero .lede { max-width: 640px; margin: 16px auto 0; }

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  padding: 32px 0 48px;
}
@media (max-width: 1100px) {
  .pricing-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
  .pricing-grid { grid-template-columns: 1fr; }
}

.sku-card {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 28px 24px;
  background: var(--card);
  border: 1px solid var(--border-hairline);
  border-radius: 14px;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}
.sku-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-card);
  border-color: var(--border-field);
}
.sku-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  min-height: 24px;
}
.sku-name {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  font-size: 14px;
  font-weight: 600;
  color: var(--muted);
}
.sku-price {
  display: flex;
  align-items: baseline;
  gap: 6px;
  flex-wrap: wrap;
  margin-top: 4px;
}
.sku-price-num {
  font-size: 36px;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1;
  color: var(--foreground);
}
.sku-price-unit {
  font-size: 13px;
  color: var(--muted);
}
.sku-desc {
  font-size: 13px;
  line-height: 1.55;
  color: var(--muted);
  margin: 0;
  flex: 1;
}
.sku-features {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 13px;
  line-height: 1.5;
  color: var(--foreground);
}
.sku-features li {
  display: flex;
  align-items: flex-start;
  gap: 8px;
}
.sku-features li::before {
  content: "✓";
  color: var(--accent-fg);
  font-weight: 700;
  flex-shrink: 0;
}
html[data-theme="light"] .sku-features li::before {
  color: var(--foreground);
}

/* Featured card: inverted (white on dark bg) */
.sku-card.is-featured {
  background: #e8e6e1;
  color: #141413;
  border-color: #e8e6e1;
  box-shadow: var(--shadow-card);
}
html[data-theme="light"] .sku-card.is-featured {
  background: #17170f;
  color: #f7f6f2;
  border-color: #17170f;
}
.sku-card.is-featured .sku-name,
.sku-card.is-featured .sku-price-unit,
.sku-card.is-featured .sku-desc {
  color: rgba(20, 20, 19, 0.7);
}
html[data-theme="light"] .sku-card.is-featured .sku-name,
html[data-theme="light"] .sku-card.is-featured .sku-price-unit,
html[data-theme="light"] .sku-card.is-featured .sku-desc {
  color: rgba(247, 246, 242, 0.7);
}
.sku-card.is-featured .sku-price-num {
  color: #141413;
}
html[data-theme="light"] .sku-card.is-featured .sku-price-num {
  color: #f7f6f2;
}
.sku-card.is-featured .sku-features { color: #141413; }
html[data-theme="light"] .sku-card.is-featured .sku-features {
  color: #f7f6f2;
}
.sku-card.is-featured .sku-features li::before {
  color: #141413;
}
html[data-theme="light"] .sku-card.is-featured .sku-features li::before {
  color: #f7f6f2;
}
.sku-card.is-featured .btn-primary {
  background: #141413;
  color: #e8e6e1;
  box-shadow: none;
}
html[data-theme="light"] .sku-card.is-featured .btn-primary {
  background: #f7f6f2;
  color: #17170f;
}
.sku-card.is-featured .tag {
  background: rgba(20, 20, 19, 0.1);
  color: #141413;
}
html[data-theme="light"] .sku-card.is-featured .tag {
  background: rgba(247, 246, 242, 0.15);
  color: #f7f6f2;
}

/* ── Models page ────────────────────────────────────────────────────── */

.models-hero {
  padding: 48px 24px 24px;
  text-align: center;
}
.models-search {
  position: relative;
  max-width: 480px;
  margin: 24px auto 0;
}
.models-search input {
  width: 100%;
  padding: 12px 16px 12px 40px;
  font-size: 14px;
  color: var(--foreground);
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 14px;
  outline: none;
  transition: border-color 0.16s ease;
}
.models-search input::placeholder { color: var(--muted-soft); }
.models-search input:focus { border-color: var(--border-field); }
.models-search-icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--muted-soft);
  pointer-events: none;
}

.models-table {
  background: var(--card);
  border: 1px solid var(--border-hairline);
  border-radius: 14px;
  overflow: hidden;
}
.pricing-models .models-table-head,
.pricing-models .model-row {
  grid-template-columns: minmax(220px, 1.6fr) 110px 1fr 1fr 1fr 100px;
}
.models-table-head,
.model-row {
  display: grid;
  grid-template-columns: 64px minmax(240px, 1.7fr) 150px 120px 120px 110px;
  gap: 16px;
  align-items: center;
  padding: 16px 24px;
}
.models-table-head {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted-soft);
  border-bottom: 1px solid var(--border-hairline);
  background: var(--raised);
}
.model-row {
  border-bottom: 1px solid var(--border-hairline);
  font-size: 13px;
  color: var(--foreground);
  transition: background 0.16s ease;
}
.model-row:last-child { border-bottom: 0; }
.model-row:hover { background: var(--surface-hover); }
.model-rank {
  font-size: 11px;
  font-weight: 700;
  color: var(--muted-soft);
  letter-spacing: 0.04em;
}
.model-id {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.model-name {
  font-size: 14px;
  font-weight: 600;
  color: var(--foreground);
}
.model-slug {
  font-size: 11.5px;
  font-family: ui-monospace, "SF Mono", Menlo, monospace;
  color: var(--muted-soft);
}
.model-provider {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: var(--muted);
}
.model-provider-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}
.model-price {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.model-price-label {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted-soft);
  font-weight: 600;
}
.model-price-val {
  font-size: 13px;
  font-weight: 600;
  color: var(--foreground);
  font-variant-numeric: tabular-nums;
}
.model-ctx {
  font-size: 12px;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}
.model-release {
  font-size: 12px;
  color: var(--muted);
  font-family: ui-monospace, "SF Mono", Menlo, monospace;
  font-variant-numeric: tabular-nums;
}

@media (max-width: 1100px) {
  .models-table-head { display: none; }
  .model-row {
    grid-template-columns: 1fr;
    gap: 8px;
  }
  .pricing-models .models-table-head,
  .pricing-models .model-row {
    grid-template-columns: 1fr;
  }
  .model-row > [data-label]::before {
    content: attr(data-label);
    display: block;
    margin-bottom: 2px;
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--muted-soft);
  }
}

/* ── Connect page ───────────────────────────────────────────────────── */

.connect-hero {
  padding: 48px 24px 32px;
  text-align: center;
}
.connect-hero h1 { max-width: 720px; margin: 0 auto; }
.connect-hero .lede {
  max-width: 640px;
  margin: 16px auto 0;
}
.connect-steps {
  display: grid;
  gap: 16px;
  max-width: 720px;
  margin: 32px auto 0;
}
.connect-step {
  background: var(--card);
  border: 1px solid var(--border-hairline);
  border-radius: 14px;
  overflow: hidden;
}
.connect-step-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 20px;
  border-bottom: 1px solid var(--border-hairline);
  background: var(--raised);
}
.connect-step-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted-soft);
}
.connect-copy {
  background: transparent;
  border: 0;
  color: var(--muted);
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
  padding: 4px 8px;
  border-radius: 4px;
  transition: color 0.16s ease, background 0.16s ease;
}
.connect-copy:hover {
  color: var(--foreground);
  background: var(--surface-hover);
}
.connect-code {
  margin: 0;
  padding: 18px 20px;
  font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  font-size: 13px;
  line-height: 1.6;
  color: var(--foreground);
  background: var(--card);
  overflow-x: auto;
  white-space: pre;
}

/* Terminal preview */
.terminal {
  background: #1b1b19;
  border: 1px solid var(--border-hairline);
  border-radius: 14px;
  overflow: hidden;
  max-width: 720px;
  margin: 32px auto 0;
}
html[data-theme="light"] .terminal {
  background: #17170f;
}
.terminal-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 12px 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
.terminal-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}
.terminal-dot.r { background: #8a8882; }
.terminal-dot.y { background: #6f6c68; }
.terminal-dot.g { background: #55534f; }
.terminal-title {
  margin-left: auto;
  font-size: 11px;
  color: #6f6c68;
  font-family: ui-monospace, monospace;
}
.terminal-body {
  padding: 16px 20px;
  font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  font-size: 12.5px;
  line-height: 1.7;
  color: #e8e6e1;
}
.terminal-line {
  display: flex;
  gap: 10px;
  white-space: pre-wrap;
}
.terminal-ok { color: #e8e6e1; }
.terminal-muted { color: #6f6c68; }

/* ── Generic content pages (docs/legal/trust) ──────────────────────── */

.page-hero {
  padding: 48px 24px 24px;
  max-width: 880px;
  margin: 0 auto;
}
.page-hero .lede { margin-top: 16px; }
.page-body {
  max-width: 880px;
  margin: 0 auto;
  padding: 24px 24px 64px;
}
.prose h2 {
  font-size: 24px;
  font-weight: 600;
  letter-spacing: -0.01em;
  margin: 40px 0 16px;
  color: var(--foreground);
}
.prose h3 {
  font-size: 17px;
  font-weight: 600;
  margin: 28px 0 12px;
  color: var(--foreground);
}
.prose p, .prose li {
  font-size: 14px;
  line-height: 1.7;
  color: var(--foreground);
  opacity: 0.85;
}
.prose ul, .prose ol {
  padding-left: 22px;
}
.prose li { margin-bottom: 8px; }
.prose code {
  font-family: ui-monospace, "SF Mono", Menlo, monospace;
  font-size: 0.9em;
  background: var(--surface-pressed);
  padding: 2px 6px;
  border-radius: 4px;
}
.prose pre {
  background: var(--card);
  border: 1px solid var(--border-hairline);
  border-radius: 10px;
  padding: 16px 20px;
  overflow-x: auto;
  font-size: 13px;
  line-height: 1.6;
}
.prose pre code {
  background: transparent;
  padding: 0;
}

/* ── Utility ────────────────────────────────────────────────────────── */

.text-center { text-align: center; }
.mt-1 { margin-top: 4px; }
.mt-2 { margin-top: 8px; }
.mt-3 { margin-top: 12px; }
.mt-4 { margin-top: 16px; }
.mt-6 { margin-top: 24px; }
.mt-8 { margin-top: 32px; }
.mt-12 { margin-top: 48px; }
.mb-2 { margin-bottom: 8px; }
.mb-4 { margin-bottom: 16px; }
.mb-6 { margin-bottom: 24px; }
.flex { display: flex; }
.flex-col { flex-direction: column; }
.items-center { align-items: center; }
.justify-center { justify-content: center; }
.gap-2 { gap: 8px; }
.gap-3 { gap: 12px; }
.gap-4 { gap: 16px; }
.gap-6 { gap: 24px; }
