/* Kalpa free tools — styles built from the Kalpa Design System
   ("Kalpa Liquid Glass"): terracotta primary, slate neutrals,
   Space Grotesk display + Manrope body. */

:root {
  --primary-50: #FEF3F2;
  --primary-100: #FDE8E5;
  --primary-200: #FCD4CF;
  --primary-300: #FAB5AD;
  --primary-400: #F78B7F;
  --primary-600: #E86B5F;
  --primary-700: #D45B4F;
  --primary-800: #B14842;
  --primary-900: #923D39;
  --primary-950: #501D1A;

  --gray-50: #F8FAFC;
  --gray-100: #F1F5F9;
  --gray-200: #E2E8F0;
  --gray-300: #CBD5E1;
  --gray-400: #94A3B8;
  --gray-500: #64748B;
  --gray-600: #475569;
  --gray-700: #334155;
  --gray-900: #0F172A;

  --success-50: #ECFDF5;
  --success-600: #10B981;
  --success-700: #047857;

  --desert-warm: #FCE2DB;
  --desert-mid: #FBEDE8;
  --orb-core: #F8B3A6;

  --font-display: "Space Grotesk", "Manrope", system-ui, sans-serif;
  --font-body: "Manrope", "Segoe UI", system-ui, sans-serif;

  --shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.08);
  --shadow-card: 0 20px 45px rgba(33, 43, 56, 0.08);
  --shadow-lg: 0 20px 45px rgba(33, 43, 56, 0.11);
  --shadow-primary: 0 10px 24px rgba(177, 72, 66, 0.33);
  --shadow-primary-hover: 0 16px 28px rgba(177, 72, 66, 0.34);
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);

  --container: 1120px;
  --radius-md: 14px;
  --radius-lg: 18px;
  --radius-xl: 20px;
  --radius-2xl: 24px;
  --radius-3xl: 28px;
  --pill: 999px;
}

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--gray-50);
  font-family: var(--font-body);
  color: var(--gray-900);
  line-height: 1.5;
}

a { color: var(--primary-800); }
a:hover { color: var(--primary-900); }
img, svg { display: block; }
h1, h2, h3, p { margin: 0; }
button, input, select { font: inherit; }

:focus-visible { outline: 3px solid var(--primary-400); outline-offset: 2px; }

[hidden] { display: none !important; }

.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: 16px; top: -60px; z-index: 50;
  padding: 10px 16px; border-radius: var(--pill);
  background: var(--gray-900); color: #fff; font-weight: 800; text-decoration: none;
}
.skip-link:focus { top: 12px; color: #fff; }

/* ---------- Page canvas ---------- */
.page {
  position: relative;
  overflow-x: clip;
  background:
    radial-gradient(900px 520px at 8% -6%, rgba(248, 139, 127, 0.30), transparent 70%),
    radial-gradient(800px 480px at 96% 2%, rgba(177, 72, 66, 0.16), transparent 70%),
    var(--gray-50);
}

.container { max-width: var(--container); margin: 0 auto; }

main.container {
  padding: 8px 24px 0;
  display: flex;
  flex-direction: column;
  gap: 88px;
}
main.hub { padding-top: 40px; gap: 72px; }

/* ---------- Buttons & badges ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border: 0; cursor: pointer; text-decoration: none;
  border-radius: var(--pill);
  font-family: var(--font-body); font-weight: 800; line-height: 1;
  transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease), background 0.2s var(--ease);
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn-sm { padding: 9px 16px; font-size: 0.9rem; min-height: 40px; }
.btn-md { padding: 12px 22px; font-size: 0.96rem; min-height: 44px; }
.btn-lg { padding: 15px 28px; font-size: 1.05rem; min-height: 54px; }
.btn-primary {
  color: #fff;
  background: linear-gradient(135deg, var(--primary-600), var(--primary-800));
  box-shadow: var(--shadow-primary);
}
.btn-primary:hover { color: #fff; box-shadow: var(--shadow-primary-hover); }
.btn-ghost {
  color: var(--primary-800);
  background: rgba(255, 255, 255, 0.65);
  border: 1px solid var(--primary-200);
}
.btn-white {
  color: var(--primary-900);
  background: #fff;
  box-shadow: 0 16px 28px rgba(80, 29, 26, 0.28);
}
.btn-white:hover { color: var(--primary-950); }

.badge {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 4px 11px; border-radius: var(--pill);
  font-size: 0.75rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.06em;
}
.badge-brand { color: var(--primary-900); background: var(--primary-50); border: 1px solid var(--primary-200); }
.badge-success { color: var(--success-700); background: var(--success-50); border: 1px solid var(--success-600); }

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 20; padding: 16px 24px; }
.nav-shell {
  max-width: var(--container); margin: 0 auto;
  display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px;
  padding: 10px 12px 10px 16px;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(226, 232, 240, 0.7);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  box-shadow: var(--shadow-card);
}
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--gray-900); }
.brand:hover { color: var(--gray-900); }
.brand img { width: 32px; height: 32px; border-radius: 8px; }
.brand span { font-family: var(--font-display); font-weight: 700; font-size: 20px; letter-spacing: -0.02em; }
.nav-links { display: flex; flex-wrap: wrap; gap: 8px 20px; flex-grow: 1; font-size: 15px; font-weight: 700; }
.nav-links a { color: var(--gray-700); text-decoration: none; }
.nav-links a:hover, .nav-links a[aria-current="page"], .nav-links a.is-active { color: var(--primary-800); }

.lang-menu { position: relative; }
.lang-menu summary {
  display: inline-flex; align-items: center; gap: 6px; min-height: 40px;
  padding: 0 14px; border-radius: var(--pill);
  border: 1px solid var(--gray-300); background: #fff;
  font-size: 14px; font-weight: 700; color: var(--gray-700);
  cursor: pointer; list-style: none;
}
.lang-menu summary::-webkit-details-marker { display: none; }
.lang-menu summary::after { content: "▾"; font-size: 11px; color: var(--gray-500); }
.lang-menu ul {
  position: absolute; right: 0; top: calc(100% + 8px); z-index: 30;
  min-width: 180px; margin: 0; padding: 6px; list-style: none;
  border-radius: var(--radius-md); background: #fff;
  border: 1px solid var(--gray-200); box-shadow: var(--shadow-lg);
}
.lang-menu li a {
  display: block; padding: 10px 12px; border-radius: 10px;
  color: var(--gray-700); font-size: 14px; font-weight: 700; text-decoration: none;
}
.lang-menu li a:hover { background: var(--primary-50); color: var(--primary-900); }
.lang-menu li a[aria-current="page"] { color: var(--primary-800); }

@media (max-width: 720px) {
  .site-header { padding: 12px 16px; }
  .nav-shell { gap: 10px; padding: 8px 8px 8px 12px; }
  .nav-links { order: 3; flex-basis: 100%; font-size: 14px; gap: 6px 16px; padding: 2px 4px 4px; }
  .lang-menu { margin-left: auto; }
  .lang-menu summary { padding: 0 10px; font-size: 13px; }
  .nav-shell .btn-sm { padding: 9px 12px; font-size: 0.85rem; }
  .hero-app-cta { display: none; }
}

/* ---------- Typography ---------- */
.eyebrow {
  font-size: 13px; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--primary-900);
}
.display, .h2, .h2-sm, .h3-lg {
  font-family: var(--font-display); font-weight: 700; letter-spacing: -0.02em;
}
.display { font-size: clamp(2.4rem, 4.8vw, 3.9rem); line-height: 1.05; text-wrap: balance; }
.display.hub-title { font-size: clamp(2.6rem, 5.2vw, 4.2rem); max-width: 14em; }
.accent { color: var(--primary-800); }
.lead { font-size: clamp(1.05rem, 1.3vw, 1.22rem); line-height: 1.55; color: var(--gray-700); max-width: 34em; }
.h2 { font-size: clamp(1.7rem, 3vw, 2.4rem); line-height: 1.1; }
.h2-sm { font-size: clamp(1.5rem, 2.4vw, 2rem); line-height: 1.1; }
.h3-lg { font-size: 26px; line-height: 1.15; }
.muted { color: var(--gray-600); }

/* ---------- Breadcrumbs ---------- */
.crumbs ol { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; font-size: 14px; color: var(--gray-600); }
.crumbs li { display: flex; gap: 8px; }
.crumbs li + li::before { content: "/"; color: var(--gray-400); }
.crumbs a { color: var(--gray-600); text-decoration: none; display: inline-block; padding: 3px 0; }
.crumbs a:hover { color: var(--primary-800); }
.crumbs [aria-current="page"] { color: var(--gray-900); font-weight: 700; }

/* ---------- Hero ---------- */
.hero {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(min(460px, 100%), 1fr));
  gap: 48px; align-items: center; padding-top: 24px;
}
.hero-copy { display: flex; flex-direction: column; gap: 20px; min-width: 0; }

.tool-card {
  display: flex; flex-direction: column; gap: 12px;
  padding: 20px; border-radius: var(--radius-2xl);
  background: rgba(255, 255, 255, 0.8);
  border: 1px solid rgba(226, 232, 240, 0.8);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  box-shadow: var(--shadow-lg);
}
.tabs {
  display: flex; flex-wrap: wrap; gap: 6px; padding: 4px;
  border-radius: var(--pill); background: var(--gray-100); align-self: flex-start;
}
.tab {
  border: 0; border-radius: var(--pill); padding: 8px 16px; min-height: 36px;
  font-weight: 700; font-size: 14px; background: transparent; color: var(--gray-600); cursor: pointer;
}
.tab[aria-selected="true"] { background: #fff; color: var(--gray-900); box-shadow: var(--shadow-sm); }
@media (max-width: 520px) {
  /* Phones: tabs share one row (a long label wraps inside its own pill), and the card gives the input more room. */
  .tool-card { padding: 16px; }
  .tabs { align-self: stretch; flex-wrap: nowrap; }
  .tab { flex: 1 1 0; min-width: 0; padding: 8px 10px; line-height: 1.15; }
  .input { padding: 0 14px; }
}

.field { display: flex; flex-direction: column; gap: 10px; }
.field-label { font-size: 14px; font-weight: 700; color: var(--gray-700); }
.url-row { display: flex; flex-wrap: wrap; gap: 10px; }
.input {
  flex: 1 1 260px; min-width: 0; height: 54px; padding: 0 18px;
  border-radius: var(--pill); border: 1px solid var(--gray-300); background: #fff;
  font-weight: 500; font-size: 16px; color: var(--gray-900);
}
.input::placeholder { color: var(--gray-500); }
.input:focus { outline: none; border-color: var(--primary-400); box-shadow: 0 0 0 4px rgba(247, 139, 127, 0.25); }

.dropzone {
  display: flex; flex-direction: column; align-items: center; gap: 12px;
  padding: 28px 20px; border-radius: var(--radius-xl);
  border: 2px dashed var(--primary-400); background: var(--primary-50); text-align: center;
  transition: background 0.2s var(--ease);
}
.dropzone.is-over { background: var(--primary-100); }
.dropzone-title { font-size: 17px; font-weight: 800; }
.dropzone-hint { font-size: 14px; color: var(--gray-600); }
.dropzone input[type="file"] { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }

.recbox {
  display: flex; flex-wrap: wrap; align-items: center; gap: 18px;
  padding: 20px; border-radius: var(--radius-xl);
  background: var(--primary-50); border: 1px solid var(--primary-200);
}
.rec-btn {
  width: 72px; height: 72px; flex: none; border-radius: 50%; border: 0; cursor: pointer;
  background: radial-gradient(circle at 38% 30%, var(--orb-core), var(--primary-700) 68%, var(--primary-800));
  box-shadow: 0 18px 40px rgba(177, 72, 66, 0.36);
  display: flex; align-items: center; justify-content: center;
}
.rec-btn[aria-pressed="true"] { animation: kalpa-breath 1.6s ease-in-out infinite; }
.recbox-text { display: flex; flex-direction: column; gap: 4px; flex: 1 1 200px; }
.recbox-title { font-size: 17px; font-weight: 800; }
.recbox-hint { font-size: 14px; color: var(--gray-600); }
.rec-timer { font-variant-numeric: tabular-nums; font-weight: 800; color: var(--primary-900); }

.tool-meta { display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: 14px; color: var(--gray-600); }
.tool-status {
  font-size: 14px; font-weight: 700; color: var(--primary-900);
  padding: 10px 14px; border-radius: var(--radius-md); background: var(--primary-50);
}
.tool-status[hidden] { display: none; }

.hero-app {
  display: flex; align-items: center; gap: 12px; padding: 12px 16px;
  border-radius: 16px; background: rgba(255, 255, 255, 0.6);
  border: 1px solid var(--primary-200); text-decoration: none; color: var(--gray-900);
}
.hero-app:hover { color: var(--gray-900); background: rgba(255, 255, 255, 0.85); }
.hero-app img { width: 36px; height: 36px; border-radius: 9px; flex: none; }
.hero-app-text { display: flex; flex-direction: column; gap: 2px; flex-grow: 1; }
.hero-app-text strong { font-size: 15px; font-weight: 800; }
.hero-app-text span { font-size: 13px; color: var(--gray-600); }
.hero-app-cta { font-size: 14px; font-weight: 800; color: var(--primary-800); white-space: nowrap; }

.hero-visual {
  position: relative; height: 440px;
  display: flex; align-items: center; justify-content: center;
  border-radius: var(--radius-3xl);
  background: radial-gradient(circle at 50% 46%, var(--desert-warm), var(--desert-mid) 52%, rgba(255, 255, 255, 0) 78%);
}
.float-chip {
  position: absolute; padding: 10px 16px; border-radius: var(--pill);
  background: rgba(255, 255, 255, 0.82); border: 1px solid var(--primary-200);
  font-size: 14px; font-weight: 800; color: var(--primary-900);
  box-shadow: 0 10px 24px rgba(33, 43, 56, 0.08);
}
.float-chip:nth-of-type(1) { top: 60px; left: 26px; }
.float-chip:nth-of-type(2) { top: 118px; right: 20px; }
.float-chip:nth-of-type(3) { bottom: 92px; left: 40px; }
.float-chip:nth-of-type(4) { bottom: 54px; right: 44px; }
@media (max-width: 720px) {
  .hero-visual { height: 300px; }
  .float-chip:nth-of-type(1) { top: 24px; left: 12px; }
  .float-chip:nth-of-type(2) { top: 70px; right: 8px; }
  .float-chip:nth-of-type(3) { bottom: 60px; left: 16px; }
  .float-chip:nth-of-type(4) { bottom: 18px; right: 20px; }
}

/* ---------- Memory orb ---------- */
.orb { position: relative; display: inline-flex; align-items: center; justify-content: center; }
.orb-aura {
  position: absolute; width: 140%; height: 140%; border-radius: 50%;
  background: radial-gradient(circle, rgba(232, 107, 95, 0.30), transparent 66%);
  filter: blur(7px); pointer-events: none;
  animation: kalpa-breath 4.6s ease-in-out infinite;
}
.orb-core {
  position: relative; width: 100%; height: 100%; border-radius: 50%;
  background: radial-gradient(circle at 38% 30%, var(--orb-core), var(--primary-700) 68%, var(--primary-800));
  box-shadow: 0 18px 40px rgba(177, 72, 66, 0.36), inset 0 2px 7px rgba(255, 255, 255, 0.40);
  display: flex; align-items: center; justify-content: center; color: #fff;
  animation: kalpa-breath 4.6s ease-in-out infinite;
}
.orb-core svg { width: 34%; height: 34%; }
@keyframes kalpa-breath {
  0%, 100% { transform: scale(1); opacity: 0.92; }
  50% { transform: scale(1.07); opacity: 1; }
}
@media (prefers-reduced-motion: reduce) {
  .orb-aura, .orb-core, .rec-btn[aria-pressed="true"] { animation: none; }
  .btn:hover { transform: none; }
}

/* ---------- Answer block ---------- */
.answer {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(min(320px, 100%), 1fr));
  gap: 32px; padding: 36px; border-radius: var(--radius-2xl);
  background: var(--primary-50); border: 1px solid var(--primary-200);
}
.answer h2 { font-size: clamp(1.6rem, 2.6vw, 2.1rem); line-height: 1.15; }
.answer p { font-size: 17px; line-height: 1.65; color: var(--gray-700); }
@media (max-width: 520px) { .answer { padding: 24px 20px; } }

/* ---------- Result: transcript + gate ---------- */
.section { display: flex; flex-direction: column; gap: 20px; }
.section-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px; }
.section-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.result-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(min(420px, 100%), 1fr));
  gap: 24px; align-items: stretch;
}
.card {
  display: flex; flex-direction: column; gap: 16px;
  padding: 28px; border-radius: var(--radius-2xl);
  background: #fff; border: 1px solid var(--gray-200); box-shadow: var(--shadow-card);
}
.meta-row { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; font-size: 14px; color: var(--gray-600); }
.meta-row strong { font-weight: 800; color: var(--gray-900); }
/* "·" separators: the separator spans are hidden and the dot is drawn in the gap before the next item, where the
   row's overflow clips it whenever that item starts a new line — a wrapped row never begins or ends with a lone dot. */
.tool-meta, .meta-row { overflow: hidden; column-gap: 26px; }
.tool-meta > span[aria-hidden="true"], .meta-row > span[aria-hidden="true"] { display: none; }
.tool-meta > span[aria-hidden="true"] + *, .meta-row > span[aria-hidden="true"] + * { position: relative; }
.tool-meta > span[aria-hidden="true"] + *::before, .meta-row > span[aria-hidden="true"] + *::before {
  content: "·"; position: absolute; left: -17px; width: 8px; text-align: center; color: var(--gray-400, #94A3B8); font-weight: 700;
}
[data-result] { scroll-margin-top: 110px; }
.transcript { display: grid; grid-template-columns: 52px 1fr; gap: 14px 12px; margin: 0; font-size: 16px; line-height: 1.6; }
.transcript dt { font-variant-numeric: tabular-nums; color: var(--gray-500); font-weight: 700; }
.transcript dd { margin: 0; }
.more-in-app {
  display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-radius: 16px;
  background: linear-gradient(135deg, var(--primary-600), var(--primary-800)); color: #fff;
  font-size: 15px; font-weight: 800; text-decoration: none; box-shadow: var(--shadow-primary);
}
.more-in-app:hover { color: #fff; box-shadow: var(--shadow-primary-hover); }
.more-in-app img { width: 28px; height: 28px; border-radius: 7px; flex: none; }
.more-in-app span:nth-of-type(1) { flex-grow: 1; }
.tool-card.is-busy button[type="submit"], .tool-card.is-busy [data-choose], .tool-card.is-busy [data-rec] { opacity: 0.6; pointer-events: none; }
.ts-box { position: fixed; bottom: 16px; left: 16px; z-index: 40; }
.save-link {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  margin-top: auto; padding: 14px 16px; border-radius: 16px;
  background: var(--primary-50); border: 1px solid var(--primary-200);
  text-decoration: none; color: var(--gray-900);
}
.save-link:hover { color: var(--gray-900); background: var(--primary-100); }
.save-link span:first-child { font-size: 15px; font-weight: 700; }
.save-link span:last-child { font-size: 14px; font-weight: 800; color: var(--primary-800); white-space: nowrap; }

.wall {
  display: flex; flex-direction: column; gap: 18px;
  padding: 28px; border-radius: var(--radius-2xl);
  background: linear-gradient(160deg, var(--primary-100), var(--primary-50) 55%, #fff);
  border: 1px solid var(--primary-200);
  box-shadow: 0 20px 45px rgba(177, 72, 66, 0.12);
  scroll-margin-top: 110px;
  transition: box-shadow 0.3s var(--ease);
}
.wall.is-gated { box-shadow: 0 0 0 4px var(--primary-300), 0 20px 45px rgba(177, 72, 66, 0.22); }
.wall p { font-size: 16px; line-height: 1.6; color: var(--gray-700); }
.bullets { display: flex; flex-direction: column; gap: 12px; margin: 0; padding: 0; list-style: none; font-size: 15px; font-weight: 600; }
.bullets li { display: flex; align-items: center; gap: 12px; }
.bullets svg { color: var(--primary-800); flex: none; }
.app-row { display: flex; flex-wrap: wrap; align-items: center; gap: 18px; margin-top: auto; }
.app-row-cta { display: flex; flex-direction: column; gap: 8px; }
.app-row-cta small { font-size: 13px; color: var(--gray-600); }
.qr {
  width: 104px; height: 104px; flex: none; border-radius: 14px; background: #fff;
  border: 1px dashed var(--primary-400);
  display: flex; align-items: center; justify-content: center; padding: 8px;
  font-size: 12px; font-weight: 800; color: var(--primary-900); text-align: center;
}
.qr img { width: 100%; height: 100%; }
@media (hover: none) and (pointer: coarse) { .qr { display: none; } }

/* ---------- Steps ---------- */
.steps {
  margin: 0; padding: 0; list-style: none;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr)); gap: 20px;
}
.step {
  display: flex; flex-direction: column; gap: 10px; padding: 24px;
  border-radius: var(--radius-xl); background: rgba(255, 255, 255, 0.8); border: 1px solid var(--gray-200);
}
.step-n { font-family: var(--font-display); font-weight: 700; font-size: 32px; color: var(--primary-600); line-height: 1.2; }
.step h3 { font-size: 18px; font-weight: 800; }
.step p { font-size: 15px; line-height: 1.6; color: var(--gray-700); }

/* ---------- Mid band ---------- */
.mid-band {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(min(380px, 100%), 1fr));
  gap: 28px; align-items: center; padding: 36px 40px; border-radius: var(--radius-3xl);
  background: linear-gradient(135deg, var(--primary-950), var(--primary-900) 60%, var(--primary-800));
  color: #fff;
}
.mid-band .eyebrow { color: var(--primary-200); }
.mid-band h2 { font-size: clamp(1.6rem, 2.6vw, 2.2rem); line-height: 1.1; }
.mid-band p { font-size: 17px; line-height: 1.6; color: var(--primary-100); }
.mid-band-copy { display: flex; flex-direction: column; gap: 12px; }
.mid-band-cta { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 18px; }
.mid-band .qr { width: 112px; height: 112px; border: 0; border-radius: 16px; }
@media (max-width: 520px) { .mid-band { padding: 28px 22px; } .mid-band-cta { justify-content: flex-start; } }

/* ---------- Tips + uses ---------- */
.split {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(min(340px, 100%), 1fr));
  gap: 32px; align-items: start;
}
.tips {
  display: flex; flex-direction: column; gap: 16px; padding: 28px;
  border-radius: var(--radius-2xl); background: #fff; border: 1px solid var(--gray-200);
}
.tips ul { margin: 0; padding: 0 0 0 20px; display: flex; flex-direction: column; gap: 12px; font-size: 15px; line-height: 1.6; color: var(--gray-700); }
.uses { display: flex; flex-direction: column; gap: 16px; }
.use {
  display: flex; flex-direction: column; gap: 6px; padding: 20px 22px;
  border-radius: var(--radius-lg); background: rgba(255, 255, 255, 0.8); border: 1px solid var(--gray-200);
}
.use h3 { font-size: 17px; font-weight: 800; }
.use p { font-size: 15px; line-height: 1.6; color: var(--gray-700); }

/* ---------- Compare table ---------- */
.table-wrap { overflow-x: auto; border-radius: var(--radius-2xl); border: 1px solid var(--gray-200); background: #fff; }
.compare { width: 100%; min-width: 560px; border-collapse: collapse; font-size: 16px; }
.compare thead tr { background: var(--gray-50); text-align: left; }
.compare th, .compare td { padding: 14px 24px; text-align: left; vertical-align: top; }
.compare thead th { padding-top: 16px; padding-bottom: 16px; font-weight: 800; }
.compare thead th:last-child { color: var(--primary-800); }
.compare tbody tr { border-top: 1px solid var(--gray-200); }
.compare tbody th { font-weight: 700; }
.compare tbody td:nth-of-type(1) { color: var(--gray-700); }

/* ---------- FAQ ---------- */
.faq {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(min(320px, 100%), 1fr)); gap: 40px;
}
.faq-list { display: flex; flex-direction: column; gap: 12px; }
.faq details { padding: 20px 24px; border-radius: var(--radius-lg); background: #fff; border: 1px solid var(--gray-200); }
.faq summary {
  display: flex; justify-content: space-between; gap: 16px;
  font-size: 17px; font-weight: 800; cursor: pointer; list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--primary-800); font-weight: 800; transition: transform 0.2s var(--ease); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { margin-top: 12px; font-size: 15px; line-height: 1.6; color: var(--gray-700); }

/* ---------- Related ---------- */
.link-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr)); gap: 12px; }
.link-tile {
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
  min-height: 56px; padding: 0 20px; border-radius: 16px;
  background: #fff; border: 1px solid var(--gray-200);
  text-decoration: none; color: var(--gray-900); font-weight: 800;
  transition: border-color 0.2s var(--ease), transform 0.2s var(--ease);
}
.link-tile::after { content: "›"; color: var(--gray-400); }
.link-tile:hover { color: var(--gray-900); border-color: var(--primary-200); transform: translateY(-2px); }
.more-link { font-weight: 800; font-size: 15px; display: inline-block; padding: 6px 0; }

/* ---------- Final CTA ---------- */
.final-cta {
  display: flex; flex-direction: column; align-items: center; gap: 18px; text-align: center;
  padding: 64px 28px; border-radius: var(--radius-3xl);
  background: radial-gradient(700px 360px at 50% 0%, var(--orb-core), var(--primary-600) 55%, var(--primary-800));
  color: #fff;
}
.final-cta h2 { font-family: var(--font-display); font-weight: 700; letter-spacing: -0.02em; font-size: clamp(1.9rem, 3.4vw, 2.8rem); line-height: 1.08; max-width: 18em; text-wrap: balance; }
.final-cta p { font-size: 18px; line-height: 1.55; max-width: 34em; color: #FFF5F3; }

/* ---------- Sticky bar ---------- */
.sticky-bar {
  position: sticky; bottom: 16px; z-index: 15;
  display: flex; justify-content: center; padding: 24px 16px 0; pointer-events: none;
}
.sticky-bar a {
  pointer-events: auto; display: flex; align-items: center; gap: 12px;
  padding: 8px 8px 8px 12px; border-radius: var(--pill);
  background: rgba(255, 255, 255, 0.88); border: 1px solid rgba(226, 232, 240, 0.9);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  box-shadow: 0 20px 45px rgba(33, 43, 56, 0.16);
  text-decoration: none; color: var(--gray-900);
}
.sticky-bar a:hover { color: var(--gray-900); }
.sticky-bar img { width: 32px; height: 32px; border-radius: 8px; }
.sticky-bar-t { font-size: 15px; font-weight: 700; }
.sticky-bar-btn {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 20px;
  border-radius: var(--pill); background: linear-gradient(135deg, var(--primary-600), var(--primary-800));
  color: #fff; font-weight: 800; font-size: 15px; white-space: nowrap;
}
@media (max-width: 520px) {
  .sticky-bar-t { font-size: 13px; line-height: 1.25; flex: 1 1 auto; min-width: 0; }
  /* Localized labels run long: the button wraps to two lines instead of squeezing the text into a narrow column. */
  .sticky-bar a { max-width: 100%; }
  .sticky-bar-btn { flex: 0 0 auto; max-width: 52%; white-space: normal; text-align: center; line-height: 1.15; padding: 4px 16px; font-size: 14px; }
}

/* ---------- Hubs ---------- */
.hub-hero { display: flex; flex-direction: column; align-items: center; gap: 20px; text-align: center; }
.hub-hero .lead { max-width: 36em; }
.hub-form { display: flex; flex-wrap: wrap; gap: 10px; width: 100%; max-width: 640px; }
.hub-form .input { height: 56px; padding: 0 20px; flex-basis: 280px; box-shadow: var(--shadow-card); }
.hub-section { display: flex; flex-direction: column; gap: 20px; scroll-margin-top: 110px; }
.hub-section-head { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 14px; }
.hub-section-title { display: flex; align-items: center; gap: 14px; }
.hub-section-title svg { color: var(--primary-800); flex: none; }
.hub-section-title h2 a { color: inherit; text-decoration: none; }
.hub-section-title h2 a:hover { color: var(--primary-800); }
.tile-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(250px, 100%), 1fr)); gap: 16px; }
.tile {
  display: flex; flex-direction: column; gap: 8px; padding: 22px;
  border-radius: var(--radius-xl); background: rgba(255, 255, 255, 0.86);
  border: 1px solid var(--gray-200); text-decoration: none; color: var(--gray-900);
  transition: border-color 0.2s var(--ease), transform 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
.tile:hover { color: var(--gray-900); border-color: var(--primary-200); box-shadow: var(--shadow-card); transform: translateY(-2px); }
.tile.is-featured { border-color: var(--primary-200); box-shadow: var(--shadow-card); }
.tile strong { font-size: 18px; font-weight: 800; }
.tile span { font-size: 15px; line-height: 1.55; color: var(--gray-600); }
.pill-row { display: flex; flex-wrap: wrap; gap: 10px; }
.pill-link {
  padding: 10px 18px; border-radius: var(--pill); background: #fff;
  border: 1px solid var(--gray-200); font-weight: 700; text-decoration: none; color: var(--gray-700);
}
.pill-link:hover { border-color: var(--primary-200); color: var(--primary-900); }
.pill-link.is-featured { border-color: var(--primary-200); color: var(--primary-900); }
.hub-cta {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(min(380px, 100%), 1fr));
  gap: 32px; align-items: center; padding: 48px; border-radius: var(--radius-3xl);
  background: radial-gradient(circle at 80% 50%, var(--desert-warm), var(--desert-mid) 50%, #fff 85%);
  border: 1px solid var(--primary-200);
}
.hub-cta-copy { display: flex; flex-direction: column; gap: 16px; }
.hub-cta-copy p { font-size: 17px; line-height: 1.6; color: var(--gray-700); }
.hub-cta-orb { display: flex; justify-content: center; padding: 24px; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }
@media (max-width: 520px) { .hub-cta { padding: 28px 22px; } }

/* ---------- Footer ---------- */
.site-footer { margin-top: 96px; padding: 56px 24px 40px; border-top: 1px solid var(--gray-200); background: rgba(255, 255, 255, 0.6); }
.footer-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(min(170px, 100%), 1fr));
  gap: 32px; font-size: 14px;
}
.footer-brand { display: flex; flex-direction: column; gap: 10px; }
.footer-brand strong { font-family: var(--font-display); font-weight: 700; font-size: 20px; }
.footer-brand span { color: var(--gray-600); line-height: 1.6; }
.footer-col { display: flex; flex-direction: column; gap: 10px; }
.footer-col h2 { font-size: 14px; font-weight: 800; }
.footer-col h2 a { color: inherit; text-decoration: none; }
.footer-col a { color: var(--gray-700); text-decoration: none; display: inline-block; padding: 4px 0; min-height: 24px; }
.footer-col a:hover { color: var(--primary-800); }
.footer-bottom {
  margin-top: 40px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px;
  font-size: 13px; color: var(--gray-600);
}
.footer-bottom nav { display: flex; flex-wrap: wrap; gap: 18px; }
.footer-bottom a { color: var(--gray-600); display: inline-block; padding: 4px 0; }
