/* Yerma marketing homepage — extracted from design/Yerma - Homepage (Replit style) */

:root {
  --ink: #17171a;
  --ink-soft: #33333a;
  --body: #55555e;
  --body-2: #52525a;
  --muted: #6a6a70;
  --muted-2: #6a6a70;
  --faint: #6d6c66;
  --faint-2: #6c6c62;
  --faint-3: #6c6b63;
  --line: #e7e6e2;
  --line-soft: #eceae4;
  --line-strong: #e2e1dc;
  --paper: #fff;
  --wash: #f2f1ed;
  --green: #1f9d63;
  --sage: #8FB27F;
  --sage-deep: #527745;
  --sage-wash: #f3f7f0;
  --sage-line: #dfe9d7;
  --mono: ui-monospace, 'SF Mono', Menlo, monospace;
  --display: 'Poppins', sans-serif;
  --logo-face: 'Satoshi', sans-serif;
}

html, body { margin: 0; padding: 0; scroll-behavior: smooth; }
body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Helvetica Neue", sans-serif;
  -webkit-font-smoothing: antialiased;
  letter-spacing: -0.01em;
  color: #1a1a1e;
  background: linear-gradient(180deg, #f6f7f6 0%, #eceeec 42%, #eceeec 58%, #f6f7f6 100%);
}
a { color: var(--ink); text-decoration: none; }
input { font-family: inherit; }
button { font-family: inherit; letter-spacing: inherit; border: none; background: none; padding: 0; cursor: pointer; }
::-webkit-scrollbar { width: 11px; height: 11px; }
::-webkit-scrollbar-thumb { background: rgba(120,110,90,0.28); border-radius: 6px; border: 3px solid transparent; background-clip: padding-box; }
#how, #difference, #pricing, #waitlist { scroll-margin-top: 72px; }

@keyframes ycfade { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes ycspin { to { transform: rotate(360deg); } }
@keyframes ycmarquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@keyframes ycfloat { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-7px); } }

/* ---------- shared ---------- */
.kicker { font-family: var(--mono); font-size: 12px; font-weight: 600; letter-spacing: 0.18em; color: var(--ink); }
.section-head { text-align: center; }
.section-head h2 { font-family: var(--display); font-weight: 600; letter-spacing: -0.02em; font-size: 50px; line-height: 1.04; margin: 14px 0 0; color: var(--ink); }
.section-head h2 em, h1 em, .cta-panel h2 em { font-style: italic; }
.section-head .lede { font-size: 16.5px; color: var(--body); max-width: 540px; margin: 14px auto 0; line-height: 1.55; }

.btn-primary {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  border-radius: 999px; font-weight: 600; color: #fff;
  background: radial-gradient(130% 170% at 50% -35%, var(--sage), transparent 58%), var(--ink);
  box-shadow: 0 6px 18px rgba(143,178,127,0.3);
}
.btn-primary:hover { background: radial-gradient(130% 170% at 50% -35%, #a5c795, transparent 58%), #000; color: #fff; }

/* ---------- nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(247,247,246,0.72);
  backdrop-filter: blur(16px) saturate(140%);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
}
.nav-inner { max-width: 1240px; margin: 0 auto; height: 66px; display: flex; align-items: center; gap: 26px; padding: 0 28px; }
.nav-logo { display: flex; align-items: center; gap: 10px; }
.nav-logo img { width: 27px; height: 27px; display: block; border-radius: 7px; }
.nav-logo span { font-family: var(--logo-face); font-size: 23px; color: #090C08; font-weight: 700; letter-spacing: -0.02em; }

.nav-links { display: flex; align-items: center; gap: 5px; }
.nav-drop { position: relative; }
.nav-tab {
  display: flex; align-items: center; gap: 5px; font-size: 14px; font-weight: 500; color: var(--ink-soft);
  padding: 8px 12px; border-radius: 9px; cursor: pointer; transition: background .15s, color .15s;
}
.nav-tab .caret { font-size: 15px; color: #6c6b63; transition: transform .2s; }
.nav-drop:hover .nav-tab, .nav-drop:focus-within .nav-tab { color: var(--ink); background: rgba(120,110,90,0.09); }
.nav-drop:hover .caret, .nav-drop:focus-within .caret { transform: rotate(180deg); }
.nav-plain { font-size: 14px; font-weight: 500; color: var(--ink-soft); padding: 8px 12px; border-radius: 9px; }
.nav-plain:hover { background: rgba(120,110,90,0.09); color: var(--ink); }

.nav-panel {
  position: absolute; top: 100%; left: 0; padding-top: 10px; z-index: 60;
  opacity: 0; transform: translateY(-6px) scale(0.98); transform-origin: top left;
  pointer-events: none; transition: opacity .18s ease, transform .18s ease;
}
.nav-drop:hover .nav-panel, .nav-drop:focus-within .nav-panel { opacity: 1; transform: translateY(0) scale(1); pointer-events: auto; }
.nav-card {
  background: var(--paper); border: 1px solid var(--line-soft); border-radius: 18px;
  box-shadow: 0 1px 2px rgba(20,20,25,0.04), 0 30px 60px rgba(20,20,25,0.16); padding: 14px;
}
.nav-card--product { width: 520px; display: grid; grid-template-columns: 1fr 1fr; gap: 4px; }
.nav-card--list { width: 300px; display: flex; flex-direction: column; gap: 2px; }
.nav-card-label { font-family: var(--mono); font-size: 10px; font-weight: 600; letter-spacing: 0.14em; color: var(--faint); padding: 6px 12px 8px; }
.nav-card--product .nav-card-label { grid-column: span 2; }
.nav-item { display: flex; align-items: flex-start; gap: 11px; padding: 10px 12px; border-radius: 11px; transition: background .13s; }
.nav-item:hover { background: #f6f6f3; }
.nav-ico { flex-shrink: 0; width: 34px; height: 34px; border-radius: 9px; background: #f5f5f2; display: flex; align-items: center; justify-content: center; margin-top: 1px; }
.nav-ico--green { background: #eef3ea; }
.nav-item-title { display: block; font-size: 13.5px; font-weight: 600; color: var(--ink); }
.nav-item-desc { display: block; font-size: 12px; color: var(--muted-2); line-height: 1.4; margin-top: 2px; }

.nav-spacer { flex: 1; }
.nav-actions { display: flex; align-items: center; gap: 32px; }
.nav-cta { height: 40px; padding: 0 18px; font-size: 14px; }
.nav-burger {
  display: none; align-items: center; justify-content: center; width: 40px; height: 40px;
  border-radius: 11px; border: 1px solid var(--line-strong); background: var(--paper); cursor: pointer;
  touch-action: manipulation; -webkit-tap-highlight-color: transparent;
}
.nav-burger .icon-close { display: none; }
.nav-burger[aria-expanded="true"] .icon-burger { display: none; }
.nav-burger[aria-expanded="true"] .icon-close { display: block; }

.mobile-menu { position: absolute; left: 0; right: 0; top: 100%; padding: 0 18px; display: none; }
.mobile-menu.is-open { display: block; }
.mobile-menu-card {
  max-width: 1240px; margin: 8px auto 0; background: var(--paper); border: 1px solid var(--line);
  border-radius: 18px; box-shadow: 0 24px 50px rgba(20,20,25,0.14); padding: 10px;
  display: flex; flex-direction: column; gap: 2px;
  max-height: calc(100svh - 90px); overflow-y: auto;
}
.mobile-menu-label { font-family: var(--mono); font-size: 10px; font-weight: 600; letter-spacing: 0.14em; color: var(--faint); padding: 12px 12px 6px; }
.mobile-menu-card .nav-item { display: flex; align-items: flex-start; gap: 11px; padding: 10px 12px; border-radius: 11px; transition: background .13s; }
.mobile-menu-card .nav-item:hover, .mobile-menu-card .nav-item:active { background: #f6f6f3; }
.mobile-menu-plain { font-size: 15px; font-weight: 600; color: var(--ink); padding: 14px 14px; border-radius: 11px; }
.mobile-menu-plain:hover { background: var(--wash); }
.mobile-menu-card hr { height: 1px; border: none; background: var(--line-soft); margin: 6px 8px; width: auto; }
.mobile-menu-card a.mobile-menu-cta { display: flex; align-items: center; justify-content: center; margin-top: 4px; height: 48px; padding: 0; box-sizing: border-box; border-radius: 12px; font-size: 15px; font-weight: 600; color: #fff; }
.mobile-menu-cta:hover { background: radial-gradient(130% 170% at 50% -35%, var(--sage), transparent 58%), var(--ink); }

/* ---------- hero ---------- */
.hero-wrap { position: relative; overflow: hidden; }
.hero {
  position: relative; max-width: 1080px; margin: 0 auto; padding: 48px 24px; text-align: center;
  min-height: calc(100vh - 66px); display: flex; flex-direction: column; justify-content: center;
  box-sizing: border-box; align-items: center;
}
.hero-badge {
  animation: ycfade .7s both;
  display: inline-flex; align-items: center; gap: 8px; margin-bottom: 20px;
  height: 32px; padding: 0 14px; border-radius: 999px;
  background: var(--paper); border: 1px solid var(--line-strong);
  box-shadow: 0 1px 2px rgba(60,50,30,0.04);
  font-size: 12.5px; font-weight: 600; color: var(--ink-soft);
}
.hero-badge svg { color: var(--ink); flex-shrink: 0; }
.hero h1 {
  animation: ycfade .7s both; animation-delay: .06s;
  font-family: var(--display); font-weight: 600; font-size: 56px; line-height: 1.04;
  letter-spacing: -0.02em; color: var(--ink); margin: 0; width: 950px; max-width: 100%;
}
.hero .sub {
  animation: ycfade .7s both; animation-delay: .12s;
  font-size: 17px; color: var(--body); max-width: 540px; margin: 20px auto 0; line-height: 1.55;
}

.composer {
  animation: ycfade .7s both; animation-delay: .18s;
  margin: 34px 0 0; width: 900px; max-width: 100%; box-sizing: border-box;
  background: var(--paper); border: 1px solid var(--line); border-radius: 20px;
  box-shadow: 0 1px 2px rgba(60,50,30,0.04), 0 30px 60px rgba(60,50,30,0.1);
  padding: 20px 20px 14px; text-align: left;
}
.composer input[type="text"] { width: 100%; border: none; outline: none; background: transparent; font-size: 17px; color: var(--ink); padding: 4px 2px 22px; box-sizing: border-box; }
.composer-row { display: flex; align-items: center; gap: 10px; }
.composer-add {
  width: 34px; height: 34px; border-radius: 10px; border: 1px solid var(--line);
  display: flex; align-items: center; justify-content: center; color: #62615b; font-size: 19px; line-height: 1; cursor: pointer;
}
.composer-add:hover { background: var(--wash); }
.composer-mode {
  display: flex; align-items: center; gap: 7px; height: 34px; padding: 0 12px; border-radius: 10px;
  border: 1px solid var(--line); font-size: 12.5px; color: var(--body); cursor: pointer;
}
.composer-mode:hover { background: var(--wash); }
.composer-mode img { width: 18px; height: 18px; display: block; }
.composer-send {
  width: 38px; height: 38px; border-radius: 50%; background: var(--ink);
  display: flex; align-items: center; justify-content: center; color: #fff; font-size: 17px; cursor: pointer;
}
.composer-send:hover { background: #000; }

.cat-row {
  animation: ycfade .7s both; animation-delay: .24s;
  display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 10px;
  margin: 26px auto 0; max-width: 800px;
}
.cat-pill {
  display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 16px;
  border-radius: 999px; font-size: 13.5px; font-weight: 600; cursor: pointer; white-space: nowrap;
  box-shadow: 0 1px 2px rgba(60,50,30,0.04); transition: background .15s, border-color .15s, color .15s;
  background: var(--paper); color: var(--ink-soft); border: 1px solid var(--line-strong);
}
.cat-pill.is-active { background: var(--ink); color: #fff; border-color: var(--ink); }

.stack-strip { max-width: 1000px; margin: 44px auto 0; width: 100%; }
.stack-strip-label { text-align: center; font-size: 11.5px; font-weight: 600; letter-spacing: 0.14em; color: var(--faint-2); text-transform: uppercase; margin-bottom: 16px; }
.marquee {
  position: relative; overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 9%, #000 91%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 9%, #000 91%, transparent);
}
.marquee-track {
  display: flex; gap: 48px; width: max-content; animation: ycmarquee 34s linear infinite;
  font-family: var(--mono); font-size: 15px; font-weight: 600; color: #6c6b63; white-space: nowrap;
}

/* ---------- three experts ---------- */
.experts { max-width: 1180px; margin: 0 auto; padding: 96px 24px; min-height: 69vh; box-sizing: border-box; display: flex; flex-direction: column; justify-content: center; }
.experts-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 48px; }
.expert-card { border: 1px solid var(--line); border-radius: 20px; background: var(--paper); box-shadow: 0 1px 2px rgba(60,50,30,0.04); padding: 30px; }
.expert-ico { width: 46px; height: 46px; border-radius: 13px; background: var(--wash); display: flex; align-items: center; justify-content: center; }
.expert-ico--green { background: #e7f2ec; }
.expert-ico--purple { background: #efe9fb; }
.expert-tag { font-family: var(--mono); font-size: 11px; font-weight: 600; letter-spacing: 0.1em; color: var(--faint-2); margin-top: 18px; }
.expert-title { font-family: var(--display); font-size: 25px; color: var(--ink); margin-top: 5px; }
.expert-desc { font-size: 14px; color: var(--body); line-height: 1.6; margin-top: 9px; }

/* ---------- how it works (bento) ---------- */
.how { max-width: 1180px; margin: 0 auto; padding: 96px 24px; min-height: 100vh; box-sizing: border-box; display: flex; flex-direction: column; justify-content: center; }
.bento { display: grid; grid-template-columns: repeat(6, 1fr); grid-auto-rows: minmax(150px, auto); gap: 16px; margin-top: 48px; }
.bento-card {
  border: 1px solid var(--line); border-radius: 26px; background: var(--paper);
  box-shadow: 0 1px 2px rgba(20,20,25,0.04), 0 20px 44px rgba(20,20,25,0.06);
  display: flex; flex-direction: column;
  transition: transform .28s ease, box-shadow .28s ease;
}
.bento-card:hover { transform: translateY(-3px); box-shadow: 0 1px 2px rgba(20,20,25,0.04), 0 32px 64px rgba(20,20,25,0.1); }
.bento-tag { font-family: var(--mono); font-size: 11px; font-weight: 600; letter-spacing: 0.14em; color: var(--faint); }
.bento-spacer { flex: 1; min-height: 12px; }

.bento-scope { grid-column: span 4; grid-row: span 2; padding: 34px; }
.bento-scope .bento-spacer { min-height: 20px; }
.bento-scope-title { font-family: var(--display); font-weight: 600; letter-spacing: -0.01em; font-size: 27px; line-height: 1.15; color: var(--ink); margin-top: 10px; }
.bento-scope-desc { font-size: 14.5px; color: var(--body-2); line-height: 1.55; margin-top: 10px; max-width: 440px; }
.spec-sheet { background: #f7f6f3; border: 1px solid var(--line-soft); border-radius: 16px; overflow: hidden; }
.spec-row { display: flex; gap: 12px; padding: 13px 16px; border-bottom: 1px solid var(--line-soft); }
.spec-row:last-child { border-bottom: none; }
.spec-key { font-family: var(--mono); font-size: 10px; font-weight: 600; color: var(--faint); width: 74px; flex-shrink: 0; padding-top: 1px; }
.spec-val { font-size: 13px; color: var(--ink-soft); line-height: 1.45; }

.bento-half { grid-column: span 2; padding: 26px; }
.bento-half-title { font-family: var(--display); font-weight: 600; font-size: 19px; color: var(--ink); margin-top: 8px; }
.bento-half-desc { font-size: 13px; color: var(--body-2); line-height: 1.5; margin-top: 6px; }

.stack-pick { display: flex; align-items: center; gap: 8px; margin-top: 14px; }
.stack-pick-radio { width: 14px; height: 14px; border-radius: 50%; border: 4px solid var(--ink); box-sizing: border-box; }
.stack-pick-name { font-size: 12.5px; font-weight: 600; color: var(--ink); }
.stack-pick-badge { font-size: 9px; font-weight: 600; color: var(--ink); background: var(--wash); border-radius: 999px; padding: 2px 7px; }
.meter-row { display: flex; gap: 10px; margin-top: 12px; }
.meter { flex: 1; }
.meter-label { font-size: 9px; color: var(--faint); margin-bottom: 3px; }
.meter-track { height: 4px; border-radius: 2px; background: #edece7; overflow: hidden; }
.meter-fill { height: 100%; background: var(--ink); }
.meter-fill--green { background: var(--green); }

.ticket-list { display: flex; flex-direction: column; gap: 8px; margin-top: 14px; }
.ticket { display: flex; align-items: center; gap: 9px; font-size: 12.5px; color: var(--ink-soft); }
.ticket-check { width: 16px; height: 16px; border-radius: 50%; background: #e7f2ec; color: var(--green); font-size: 9px; font-weight: 700; display: flex; align-items: center; justify-content: center; }
.ticket-spinner { width: 15px; height: 15px; border-radius: 50%; border: 2px solid #e5e4df; border-top-color: var(--ink); box-sizing: border-box; animation: ycspin 0.8s linear infinite; }
.ticket--active { font-weight: 600; color: var(--ink); }

.bento-wide { grid-column: span 3; padding: 28px; overflow: hidden; }
.bento-wide-title { font-family: var(--display); font-weight: 600; font-size: 21px; color: var(--ink); margin-top: 8px; }
.bento-wide-desc { font-size: 13.5px; color: var(--body-2); line-height: 1.5; margin-top: 6px; max-width: 300px; }
.refine-chip {
  display: inline-flex; align-items: center; gap: 8px; align-self: flex-start; margin-top: 14px;
  background: var(--ink); color: #fff; font-size: 12.5px; border-radius: 12px; padding: 9px 14px;
}
.refine-chip .ok { color: #7fd4a8; }

.bento-ship {
  border-color: rgba(255,255,255,0.1);
  background: radial-gradient(90% 130% at 12% 0%, #33333a, transparent 60%), var(--ink);
  box-shadow: 0 20px 44px rgba(20,20,25,0.18);
}
.bento-ship:hover { box-shadow: 0 30px 64px rgba(20,20,25,0.26); }
.bento-ship .bento-tag { color: rgba(255,255,255,0.5); }
.bento-ship .bento-wide-title { color: #fff; }
.bento-ship .bento-wide-desc { color: rgba(255,255,255,0.72); max-width: 320px; }
.ship-status { display: flex; align-items: center; gap: 10px; margin-top: 16px; }
.ship-check { width: 22px; height: 22px; border-radius: 50%; background: rgba(47,209,150,0.2); color: #57c98d; font-size: 11px; font-weight: 700; display: flex; align-items: center; justify-content: center; }
.ship-domain { font-family: var(--mono); font-size: 13px; color: #fff; }
.ship-live { font-size: 10px; font-weight: 600; color: #57c98d; background: rgba(47,209,150,0.16); border-radius: 999px; padding: 2px 9px; }

/* ---------- connect / providers ---------- */
.connect { max-width: 1180px; margin: 0 auto; padding: 96px 24px; min-height: 85vh; box-sizing: border-box; }
.connect-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; }
.connect h2 { font-family: var(--display); font-weight: 600; letter-spacing: -0.02em; font-size: 46px; line-height: 1.05; margin: 14px 0 0; color: var(--ink); }
.connect .lede { font-size: 16.5px; color: var(--body); line-height: 1.6; margin: 18px 0 0; max-width: 460px; }
.connect-tags { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px; }
.connect-tag { font-size: 12.5px; font-weight: 600; color: var(--ink-soft); background: var(--paper); border: 1px solid var(--line); border-radius: 999px; padding: 7px 14px; }
.connect-note { font-size: 12.5px; color: var(--muted); margin-top: 20px; }

.orbit-shell { --s: 1; width: 460px; height: 460px; margin: 0 auto; justify-self: center; overflow: hidden; }
.orbit { position: relative; width: 460px; height: 460px; transform-origin: top left; }
.orbit-glow { position: absolute; left: 50%; top: 50%; transform: translate(-50%,-50%); width: 300px; height: 300px; border-radius: 50%; background: radial-gradient(50% 50% at 50% 50%, rgba(23,23,26,0.12), transparent 70%); filter: blur(8px); }
.orbit-ring { position: absolute; left: 50%; top: 50%; transform: translate(-50%,-50%); width: 240px; height: 240px; border-radius: 50%; border: 1px dashed #d9d3c5; }
.orbit-ring--outer { width: 400px; height: 400px; border-color: #e0dbcf; animation: ycspin 90s linear infinite; }
.orbit-core {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%,-50%); width: 100px; height: 100px;
  border-radius: 50%; background: radial-gradient(circle at 50% 50%, #0b0d12, #000 70%);
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 12px 34px rgba(23,23,26,0.28), inset 0 0 22px rgba(143,178,127,0.22);
  z-index: 3; overflow: hidden;
  /* Keeps the multiply blending inside the disc instead of hitting the page. */
  isolation: isolate;
}
.orbit-core img { position: absolute; width: 94px; height: 94px; display: block; border-radius: 50%; filter: brightness(1.15) drop-shadow(0 0 3px rgba(143,178,127,0.5)); }
.orbit-swirl { position: absolute; inset: 0; border-radius: 50%; mix-blend-mode: multiply; pointer-events: none; }
.orbit-swirl--a { background: conic-gradient(from 0deg, #10131a 0deg, #10131a 205deg, rgba(143,178,127,0.95) 262deg, #ffffff 300deg, rgba(110,149,96,0.95) 338deg, #10131a 360deg); animation: ycspin 2.6s linear infinite; }
.orbit-swirl--b { background: conic-gradient(from 150deg, #ffffff 0deg, #ffffff 250deg, rgba(165,199,149,0.95) 302deg, #ffffff 330deg, #ffffff 360deg); animation: ycspin 4s linear infinite reverse; }
.orbit-node {
  position: absolute; width: 46px; height: 46px; border-radius: 13px; background: var(--paper);
  border: 1px solid var(--line); display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 12px rgba(60,50,30,0.08); animation: ycfloat 6s ease-in-out infinite;
  transition: transform .2s ease, box-shadow .2s ease;
}
.orbit-node svg { display: block; }
.orbit-node:hover { transform: scale(1.12); box-shadow: 0 8px 20px rgba(60,50,30,0.16); }

/* ---------- compare ---------- */
.difference { max-width: 1060px; margin: 0 auto; padding: 96px 24px; min-height: 100vh; box-sizing: border-box; display: flex; flex-direction: column; justify-content: center; }
.compare-card {
  margin-top: 40px; border: 1px solid var(--line); border-radius: 22px; background: var(--paper);
  box-shadow: 0 1px 2px rgba(20,20,25,0.04), 0 24px 60px rgba(20,20,25,0.06); overflow: hidden;
}
.compare-grid { display: grid; grid-template-columns: 1.7fr 1.05fr 0.82fr 0.82fr 0.82fr 0.82fr 0.82fr 0.82fr 0.82fr; }
.compare-grid--head { align-items: end; }
.compare-grid--row { border-top: 1px solid #f2f0ea; align-items: stretch; }
.compare-corner { padding: 22px 26px 18px; }
.compare-corner span { font-family: var(--mono); font-size: 10.5px; font-weight: 600; letter-spacing: 0.12em; color: var(--faint-3); }
.compare-yerma-head { padding: 16px 8px; text-align: center; background: var(--sage-wash); border: 1px solid var(--sage-line); border-bottom: none; border-radius: 14px 14px 0 0; }
.compare-yerma-head .brand { display: inline-flex; align-items: center; gap: 7px; }
.compare-yerma-head img { width: 20px; height: 20px; display: block; }
.compare-yerma-head .name { font-family: var(--display); font-weight: 600; font-size: 16px; color: var(--ink); }
.compare-yerma-head .price { font-size: 11px; color: var(--sage-deep); margin-top: 3px; font-weight: 500; }
.compare-col-head { padding: 18px 6px; text-align: center; }
.compare-col-head .name { font-size: 13.5px; font-weight: 600; color: #5c5b55; }
.compare-col-head .price { font-size: 10.5px; color: var(--faint-3); margin-top: 2px; }
.compare-label { padding: 16px 26px; font-size: 14px; font-weight: 500; color: var(--ink-soft); display: flex; align-items: center; }
.compare-cell { padding: 14px 4px; display: flex; align-items: center; justify-content: center; }
.compare-cell--yerma { background: var(--sage-wash); border-left: 1px solid var(--sage-line); border-right: 1px solid var(--sage-line); }
.badge { line-height: 1; }
.badge--y { color: var(--green); font-size: 17px; font-weight: 700; }
.badge--p { color: #c9a13f; font-size: 14px; font-weight: 600; }
.badge--n { color: #d3d1ca; font-size: 12px; font-weight: 600; }
.compare-legend { display: flex; align-items: center; justify-content: center; gap: 22px; margin-top: 20px; font-size: 12.5px; color: var(--muted-2); }
.compare-legend span { display: inline-flex; align-items: center; gap: 7px; }
.legend-y { color: var(--green); font-weight: 700; font-size: 15px; }
.legend-p { color: #c9a13f; font-size: 13px; }
.legend-n { color: #d3d1ca; font-size: 11px; font-weight: 600; }
.compare-foot { text-align: center; margin-top: 14px; font-size: 12px; color: var(--faint); }
.compare-foot a { color: var(--sage-deep); font-weight: 500; }

/* ---------- fair billing ---------- */
.fair-wrap { min-height: 955px; box-sizing: border-box; display: flex; }
.fair { max-width: 1180px; margin: auto; padding: 96px 24px; box-sizing: border-box; width: 100%; }
.fair-grid { display: grid; grid-template-columns: 1.15fr 1fr; gap: 18px; align-items: stretch; }
.fair-promise {
  border-radius: 24px; background: radial-gradient(80% 90% at 12% 8%, #33333a, transparent 62%), var(--ink);
  padding: 46px 44px; color: #fff; display: flex; flex-direction: column; justify-content: center;
}
.fair-promise .tag { font-family: var(--mono); font-size: 12px; font-weight: 600; letter-spacing: 0.18em; color: rgba(255,255,255,0.72); }
.fair-promise h2 { font-family: var(--display); font-weight: 400; font-size: 42px; line-height: 1.07; margin: 16px 0 0; }
.fair-promise p { font-size: 15px; color: rgba(255,255,255,0.9); line-height: 1.6; margin: 15px 0 0; max-width: 420px; }
.fair-points {
  border: 1px solid var(--line); border-radius: 24px; background: var(--paper);
  box-shadow: 0 1px 2px rgba(60,50,30,0.04); padding: 40px;
  display: flex; flex-direction: column; justify-content: center; gap: 22px;
}
.fair-point { display: flex; gap: 14px; }
.fair-point-ico { width: 40px; height: 40px; flex-shrink: 0; border-radius: 11px; background: #f0efeb; display: flex; align-items: center; justify-content: center; }
.fair-point-ico--green { background: #e7f2ec; }
.fair-point-ico--wash { background: var(--wash); }
.fair-point-title { font-size: 15.5px; font-weight: 600; color: var(--ink); }
.fair-point-desc { font-size: 13.5px; color: #5c5b55; line-height: 1.55; margin-top: 3px; }

.pricing-note { font-size: 13px; color: var(--faint); margin: 12px auto 0; max-width: 460px; }

/* ---------- pricing ---------- */
.pricing { max-width: 1180px; margin: 0 auto; padding: 96px 24px; min-height: 100vh; box-sizing: border-box; display: flex; flex-direction: column; justify-content: center; }
.plans { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 18px; max-width: 1120px; margin: 44px auto 0; align-items: stretch; width: 100%; }
.plan {
  position: relative; display: flex; flex-direction: column; border: 1px solid var(--line);
  border-radius: 22px; background: var(--paper); box-shadow: 0 1px 2px rgba(60,50,30,0.04); padding: 34px;
  box-sizing: border-box;
}
.plan--studio {
  border: 1.5px solid var(--sage);
  background: linear-gradient(180deg, rgba(143,178,127,0.1), #fff 40%);
  box-shadow: 0 24px 60px rgba(143,178,127,0.2);
}
.plan-flag { position: absolute; top: -12px; left: 34px; font-size: 11px; font-weight: 600; color: #fff; background: var(--sage-deep); border-radius: 999px; padding: 4px 13px; }
.plan-name { font-size: 14px; font-weight: 600; color: var(--muted); }
.plan--studio .plan-name { color: var(--sage-deep); }
.plan--pro .plan-name { color: var(--ink); }
.plan-price { margin-top: 10px; display: flex; align-items: baseline; gap: 6px; }
.plan-price .amount { font-family: var(--display); font-weight: 600; font-size: 46px; color: var(--ink); }
.plan-price .per { font-size: 14px; color: var(--muted); }
.plan-desc { font-size: 13.5px; color: #5c5b55; line-height: 1.6; margin-top: 12px; }
.plan-credits { margin-top: 20px; }
.plan-credits--pro { position: relative; z-index: 5; }
.plan-credits-label { font-family: var(--mono); font-size: 10.5px; font-weight: 600; letter-spacing: 0.1em; color: var(--faint-2); margin-bottom: 7px; }
.plan-credits-box { display: flex; align-items: center; height: 48px; padding: 0 14px; border: 1px solid var(--line-strong); border-radius: 12px; background: #f7f6f3; }
.plan-credits-box .val { font-size: 14.5px; font-weight: 600; color: var(--ink); }
.plan--studio .plan-credits-box { border-color: var(--sage-line); background: var(--sage-wash); }
.plan-features { display: flex; flex-direction: column; gap: 10px; margin-top: 20px; }
.plan-feature { display: flex; align-items: center; gap: 9px; font-size: 13.5px; color: var(--ink-soft); }
.plan-feature .ok { color: var(--green); }
.plan-cta-row { display: flex; align-items: center; justify-content: center; margin-top: auto; padding-top: 24px; }
.plan--starter .plan-cta-row { padding-top: 26px; }
.plan-cta-ghost {
  display: flex; align-items: center; justify-content: center; width: 100%; height: 46px;
  border: 1px solid var(--line-strong); border-radius: 999px; font-size: 13.5px; font-weight: 600; color: var(--ink);
}
.plan-cta { width: 100%; height: 46px; font-size: 13.5px; }

.tier-select {
  display: flex; align-items: center; gap: 10px; height: 48px; padding: 0 14px; width: 100%;
  border: 1px solid var(--line-strong); border-radius: 12px; background: #f7f6f3; cursor: pointer;
  box-sizing: border-box; text-align: left;
}
.tier-select:hover { border-color: var(--sage-deep); }
.tier-select .val { font-size: 14.5px; font-weight: 600; color: var(--ink); }
.tier-select .spacer { flex: 1; }
.tier-select .price { font-size: 13px; font-weight: 600; color: var(--ink); }
.tier-select .caret { color: var(--faint-2); font-size: 15px; transition: transform .2s ease; }
.tier-select.is-open .caret { transform: rotate(180deg); }
.tier-menu {
  position: absolute; top: 100%; left: 0; right: 0; margin-top: 6px; background: var(--paper);
  border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 16px 40px rgba(60,50,30,0.16);
  overflow: hidden; display: none;
}
.tier-menu.is-open { display: block; }
.tier-option { display: flex; align-items: center; gap: 8px; padding: 12px 14px; cursor: pointer; }
.tier-option:hover { background: var(--wash); }
.tier-option .label { font-size: 14px; font-weight: 600; color: var(--ink); }
.tier-option .tag { font-size: 9.5px; font-weight: 600; color: var(--sage-deep); background: #eef3ea; border-radius: 999px; padding: 2px 8px; }
.tier-option .spacer { flex: 1; }
.tier-option .price { font-size: 13px; font-weight: 600; color: var(--body); }
.tier-option .check { color: var(--sage-deep); font-weight: 700; font-size: 13px; margin-left: 6px; display: none; }
.tier-option.is-selected .check { display: inline; }

.topup {
  max-width: 1120px; margin: 18px auto 0; border: 1px solid var(--line); border-radius: 22px;
  background: var(--paper); box-shadow: 0 1px 2px rgba(60,50,30,0.04); padding: 30px 34px;
  display: grid; grid-template-columns: 1.1fr 1fr; gap: 40px; align-items: center; width: 100%; box-sizing: border-box;
}
.topup-head { display: flex; align-items: center; gap: 10px; }
.topup-title { font-size: 15.5px; font-weight: 600; color: var(--ink); }
.topup-flag { font-size: 10px; font-weight: 600; color: var(--sage-deep); background: #eef3ea; border-radius: 999px; padding: 3px 9px; }
.topup-desc { font-size: 13.5px; color: #5c5b55; line-height: 1.6; margin-top: 8px; max-width: 380px; }
.topup input[type="range"] { width: 100%; margin-top: 22px; accent-color: var(--sage-deep); cursor: pointer; }
.topup-scale { display: flex; justify-content: space-between; font-family: var(--mono); font-size: 10.5px; color: var(--faint-2); margin-top: 6px; }
.topup-receipt { border-radius: 16px; background: radial-gradient(90% 130% at 12% 0%, #26331d, transparent 62%), var(--ink); padding: 26px 28px; color: #fff; }
.topup-receipt .tag { font-family: var(--mono); font-size: 10.5px; font-weight: 600; letter-spacing: 0.12em; color: rgba(255,255,255,0.6); }
.topup-amount { display: flex; align-items: baseline; gap: 8px; margin-top: 10px; }
.topup-amount .num { font-family: var(--display); font-weight: 600; font-size: 40px; }
.topup-amount .unit { font-size: 14px; color: rgba(255,255,255,0.7); }
.topup-receipt hr { height: 1px; border: none; background: rgba(255,255,255,0.12); margin: 18px 0; }
.topup-total { display: flex; align-items: baseline; justify-content: space-between; }
.topup-total .label { font-size: 13.5px; color: rgba(255,255,255,0.8); }
.topup-total .cost { font-family: var(--display); font-weight: 600; font-size: 28px; }

/* ---------- faq ---------- */
.faq { max-width: 780px; margin: 0 auto; padding: 96px 24px; min-height: 100vh; box-sizing: border-box; display: flex; flex-direction: column; justify-content: center; }
.faq .section-head { margin-bottom: 40px; }
.faq .section-head h2 { font-size: 46px; line-height: 1.05; }
.faq-list { display: flex; flex-direction: column; gap: 12px; }
.faq-item { border: 1px solid var(--line); border-radius: 16px; background: var(--paper); box-shadow: 0 1px 2px rgba(60,50,30,0.04); overflow: hidden; }
.faq-q { display: flex; align-items: center; gap: 14px; padding: 20px 24px; cursor: pointer; width: 100%; box-sizing: border-box; text-align: left; }
.faq-q .q { flex: 1; font-size: 16px; font-weight: 600; color: var(--ink); }
.faq-q .caret { color: var(--faint-2); font-size: 18px; transition: transform 0.25s ease; }
.faq-item.is-open .faq-q .caret { transform: rotate(180deg); }
.faq-a { overflow: hidden; max-height: 0; opacity: 0; transition: max-height 0.3s ease, opacity 0.3s ease; }
.faq-item.is-open .faq-a { max-height: 320px; opacity: 1; }
.faq-a-inner { padding: 0 24px 22px; font-size: 14.5px; color: var(--body); line-height: 1.65; }

/* ---------- final cta ---------- */
.cta-wrap { min-height: 760px; box-sizing: border-box; }
.cta { max-width: 1180px; margin: 0 auto; padding: 40px 24px 84px; }
.cta-panel {
  position: relative; border-radius: 28px; padding: 88px 40px; text-align: center; overflow: hidden;
  background:
    radial-gradient(90% 120% at 12% -18%, rgba(143,178,127,0.55), transparent 52%),
    radial-gradient(78% 120% at 108% 120%, rgba(47,209,150,0.2), transparent 55%),
    linear-gradient(158deg, #26331d, #0c1208 74%);
  border: 1px solid rgba(255,255,255,0.1);
  box-shadow: 0 1px 0 rgba(255,255,255,0.09) inset, 0 40px 120px rgba(23,23,26,0.28);
}
.cta-grid-lines {
  position: absolute; inset: 0; pointer-events: none;
  background-image:
    linear-gradient(rgba(255,255,255,0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.045) 1px, transparent 1px);
  background-size: 46px 46px;
  -webkit-mask-image: radial-gradient(72% 68% at 50% 24%, #000, transparent 78%);
  mask-image: radial-gradient(72% 68% at 50% 24%, #000, transparent 78%);
}
.cta-halo {
  position: absolute; top: -140px; left: 50%; transform: translateX(-50%); width: 560px; height: 360px;
  background: radial-gradient(50% 50% at 50% 50%, rgba(165,199,149,0.42), transparent 70%);
  filter: blur(14px); pointer-events: none;
}
.cta-mark { position: relative; width: 66px; height: 66px; border-radius: 50%; background: #fff; display: inline-flex; align-items: center; justify-content: center; box-shadow: 0 14px 34px rgba(0,0,0,0.35); }
.cta-mark img { width: 66px; height: 66px; display: block; border-radius: 50%; }
.cta-panel h2 { font-family: var(--display); font-weight: 600; letter-spacing: -0.02em; font-size: 56px; line-height: 1.03; color: #fff; margin: 24px 0 0; }
.cta-panel h2 em { color: #cfe0c4; }
.cta-panel p { font-size: 16.5px; color: #cfd0d6; max-width: 480px; margin: 16px auto 0; line-height: 1.55; }
.cta-btn { margin-top: 30px; height: 52px; padding: 0 28px; font-size: 15px; }

.waitlist-form {
  position: relative; display: flex; align-items: center; gap: 8px;
  max-width: 470px; margin: 30px auto 0; padding: 6px 6px 6px 20px;
  background: #fff; border-radius: 999px;
  box-shadow: 0 14px 40px rgba(0,0,0,0.32);
}
.waitlist-form input {
  flex: 1; min-width: 0; border: none; outline: none; background: transparent;
  font-size: 15px; color: var(--ink); padding: 10px 0;
}
.waitlist-form input::placeholder { color: #6c6b63; }
.waitlist-btn { height: 44px; padding: 0 22px; font-size: 14px; flex-shrink: 0; }
.waitlist-form.is-error { box-shadow: 0 0 0 2px #d96b6b, 0 14px 40px rgba(0,0,0,0.32); }
.waitlist-success {
  position: relative; display: inline-flex; align-items: center; gap: 9px;
  margin-top: 30px; height: 52px; padding: 0 24px; border-radius: 999px;
  background: rgba(47,209,150,0.14); border: 1px solid rgba(87,201,141,0.4);
  font-size: 15px; font-weight: 600; color: #cfe0c4;
}
.waitlist-success .ok { color: #57c98d; font-weight: 700; }
.waitlist-success[hidden] { display: none; }
.waitlist-note { position: relative; font-size: 12.5px; color: rgba(255,255,255,0.55); margin-top: 16px; }

/* ---------- inner pages (product / blog / pricing) ---------- */
.page-hero { max-width: 860px; margin: 0 auto; padding: 76px 24px 16px; text-align: center; }
.page-hero h1 { font-family: var(--display); font-weight: 600; letter-spacing: -0.02em; font-size: 52px; line-height: 1.05; color: var(--ink); margin: 14px 0 0; }
.page-hero h1 em { font-style: italic; }
.page-hero .lede { font-size: 16.5px; color: var(--body); max-width: 560px; margin: 16px auto 0; line-height: 1.6; }
.page-section { max-width: 1180px; margin: 0 auto; padding: 48px 24px; }
.page-section--narrow { max-width: 880px; }
.page-section .section-head { margin-bottom: 36px; }

.product-badge {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 5px 16px 5px 6px; border-radius: 999px;
  background: var(--paper); border: 1px solid var(--line-strong);
  box-shadow: 0 1px 2px rgba(60,50,30,0.05), 0 12px 30px rgba(60,50,30,0.08);
}
.product-badge .ico {
  width: 27px; height: 27px; border-radius: 50%;
  background: var(--sage-wash); border: 1px solid var(--sage-line);
  display: flex; align-items: center; justify-content: center;
}
.product-badge .pb-kicker { font-family: var(--mono); font-size: 9.5px; font-weight: 600; letter-spacing: 0.16em; color: var(--faint-2); }
.product-badge .pb-dot { color: #cfcdc6; font-size: 13px; }
.product-badge .pb-name { font-size: 13px; font-weight: 600; color: var(--ink); }

.demo-card {
  max-width: 620px; margin: 40px auto 0; text-align: left;
  border: 1px solid var(--line); border-radius: 20px; background: var(--paper);
  box-shadow: 0 1px 2px rgba(20,20,25,0.04), 0 24px 60px rgba(20,20,25,0.08);
  padding: 26px;
}
.demo-card .bento-tag { margin-bottom: 12px; }
.cta-wrap.compact { min-height: 0; }

/* blog */
.blog-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.post-card {
  display: flex; flex-direction: column; text-align: left;
  border: 1px solid var(--line); border-radius: 20px; background: var(--paper);
  box-shadow: 0 1px 2px rgba(60,50,30,0.04); padding: 26px;
  transition: transform .28s ease, box-shadow .28s ease;
}
.post-card:hover { transform: translateY(-3px); box-shadow: 0 1px 2px rgba(20,20,25,0.04), 0 24px 48px rgba(20,20,25,0.09); }
.post-tag { align-self: flex-start; font-family: var(--mono); font-size: 10px; font-weight: 600; letter-spacing: 0.12em; color: var(--sage-deep); background: var(--sage-wash); border: 1px solid var(--sage-line); border-radius: 999px; padding: 4px 10px; }
.post-title { font-family: var(--display); font-weight: 600; font-size: 20px; line-height: 1.25; color: var(--ink); margin-top: 14px; }
.post-excerpt { font-size: 13.5px; color: var(--body); line-height: 1.6; margin-top: 8px; }
.post-meta { font-family: var(--mono); font-size: 11px; color: var(--faint); margin-top: auto; padding-top: 18px; }
.post-card--featured { grid-column: 1 / -1; display: grid; grid-template-columns: 1.2fr 1fr; gap: 30px; padding: 34px; align-items: center; }
.post-card--featured .post-title { font-size: 30px; }
.post-card--featured .post-excerpt { font-size: 14.5px; }
.featured-visual {
  position: relative; border-radius: 16px; min-height: 220px; overflow: hidden;
  background: radial-gradient(90% 130% at 12% 0%, #33333a, transparent 60%), var(--ink);
  display: flex; align-items: center; justify-content: center;
}
.featured-visual::before {
  content: ''; position: absolute; inset: 0;
  background-image: linear-gradient(rgba(255,255,255,0.05) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,0.05) 1px, transparent 1px);
  background-size: 36px 36px;
}
.featured-visual img { position: relative; width: 74px; height: 74px; border-radius: 50%; }

/* article */
.article { max-width: 720px; margin: 0 auto; padding: 64px 24px 24px; }
.article h1 { font-family: var(--display); font-weight: 600; letter-spacing: -0.02em; font-size: 42px; line-height: 1.1; color: var(--ink); margin: 18px 0 0; }
.article-meta { font-family: var(--mono); font-size: 11.5px; color: var(--faint); margin-top: 18px; display: flex; gap: 14px; flex-wrap: wrap; }
.back-link { display: inline-flex; align-items: center; gap: 7px; font-family: var(--mono); font-size: 12px; font-weight: 600; color: var(--sage-deep); }
.back-link:hover { color: var(--ink); }
.prose { margin-top: 36px; font-size: 16px; color: var(--ink-soft); line-height: 1.75; }
.prose p { margin: 0 0 20px; }
.prose h2 { font-family: var(--display); font-weight: 600; font-size: 26px; letter-spacing: -0.01em; color: var(--ink); margin: 38px 0 14px; }
.prose ul { margin: 0 0 20px; padding-left: 22px; }
.prose li { margin-bottom: 8px; }
.prose blockquote { border-left: 3px solid var(--sage); margin: 30px 0; padding: 6px 0 6px 22px; font-size: 19px; line-height: 1.55; font-style: italic; color: var(--sage-deep); }
.prose blockquote p { margin: 0; }

@media (max-width: 1080px) {
  .blog-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 860px) {
  .page-hero { padding: 48px 18px 8px; }
  .page-section { padding: 36px 18px; }
  .blog-grid, .post-card--featured { grid-template-columns: 1fr; }
  .article h1 { font-size: 30px; }
  .demo-card { padding: 20px; }
}

/* ---------- breadcrumbs ---------- */
.crumbs { max-width: 1180px; margin: 0 auto; padding: 22px 24px 0; }
.crumbs-inner { display: flex; flex-wrap: wrap; align-items: center; gap: 8px;
  font-family: var(--mono); font-size: 11.5px; letter-spacing: 0.04em; }
.crumbs a { color: var(--faint); }
.crumbs a:hover { color: var(--ink); text-decoration: underline; }
.crumbs [aria-current="page"] { color: var(--ink); font-weight: 600; }
.crumb-sep { color: #c9c8c2; }

/* ---------- article head, visual, table of contents ---------- */
.article-head { margin-top: 26px; }
.article-head .post-tag { display: inline-block; }
.article-head h1 { margin-top: 14px; }
.article-visual { margin: 30px 0 0; }
.article-visual .featured-visual { min-height: 260px; border-radius: 20px; }
.article-visual figcaption { font-size: 12.5px; color: var(--faint); margin-top: 10px; text-align: center; }

.toc {
  margin: 34px 0 0; padding: 20px 24px; border: 1px solid var(--line);
  border-radius: 16px; background: var(--paper); box-shadow: 0 1px 2px rgba(60,50,30,0.04);
}
.toc-title { font-family: var(--mono); font-size: 10.5px; font-weight: 600;
  letter-spacing: 0.14em; color: var(--faint); text-transform: uppercase; }
.toc ol { margin: 12px 0 0; padding: 0 0 0 20px; display: flex; flex-direction: column; gap: 9px; }
.toc li::marker { color: var(--faint); font-family: var(--mono); font-size: 12px; }
.toc a { font-size: 14.5px; font-weight: 500; color: var(--ink-soft); line-height: 1.4; }
.toc a:hover { color: var(--sage-deep); text-decoration: underline; }

.prose h2 { scroll-margin-top: 84px; }

@media (max-width: 860px) {
  .crumbs { padding: 16px 18px 0; }
  .toc { padding: 16px 18px; }
  .article-visual .featured-visual { min-height: 180px; }
}

/* ---------- reading progress ---------- */
.read-progress-track {
  position: fixed; top: 0; left: 0; right: 0; height: 4px; z-index: 60; pointer-events: none;
  /* No rail: the nav below is translucent and blurs the page behind it, so a
     tinted track picked up whatever was scrolling past and read as a second bar. */
}
.read-progress-bar {
  height: 100%; width: 100%; transform: scaleX(0); transform-origin: 0 50%;
  background: linear-gradient(90deg, #9ec48c, #4e8a3c);
  box-shadow: 0 1px 8px rgba(82,119,69,0.5);
  /* Short and linear: long enough to smooth the per-frame steps, short enough
     that the bar never visibly lags behind the scroll. */
  transition: transform .12s linear;
  will-change: transform;
}
@media (prefers-reduced-motion: reduce) { .read-progress-bar { transition: none; } }

/* ---------- article sidebar layout ---------- */
.article-body { display: grid; grid-template-columns: minmax(0, 720px); justify-content: center; }
@media (min-width: 1100px) {
  .article { max-width: 1240px; }
  .article-head, .article-visual { max-width: 720px; margin-left: auto; margin-right: auto; }
  .article-body { grid-template-columns: 1fr minmax(0, 720px) 1fr; gap: 44px; align-items: start; }
  .article-side { grid-column: 1; justify-self: end; width: 236px; position: sticky; top: 92px; }
  .article-side .toc { margin-top: 0; }
  .article-body .prose { grid-column: 2; }
}
.toc a.is-current { color: var(--sage-deep); font-weight: 600; }
.toc li { transition: opacity .2s; }

/* ---------- blog toolbar ---------- */
.blog-toolbar { display: flex; flex-direction: column; gap: 16px; margin-bottom: 28px; }
.blog-search {
  display: flex; align-items: center; gap: 10px; max-width: 420px; width: 100%;
  height: 46px; padding: 0 16px; border-radius: 999px;
  background: var(--paper); border: 1px solid var(--line-strong);
  box-shadow: 0 1px 2px rgba(60,50,30,0.04); color: var(--faint);
}
.blog-search:focus-within { border-color: var(--sage); box-shadow: 0 0 0 3px rgba(143,178,127,0.22); }
.blog-search input {
  flex: 1; min-width: 0; border: none; outline: none; background: transparent;
  font-size: 14.5px; color: var(--ink);
}
.blog-search input::-webkit-search-cancel-button { cursor: pointer; }

.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  height: 34px; padding: 0 14px; border-radius: 999px; font-size: 13px; font-weight: 600;
  color: var(--ink-soft); background: var(--paper); border: 1px solid var(--line-strong);
  cursor: pointer; transition: background .15s, border-color .15s, color .15s;
  touch-action: manipulation;
}
.chip:hover { border-color: var(--sage); }
.chip.is-active { background: var(--ink); border-color: var(--ink); color: #fff; }

.blog-empty { font-size: 14.5px; color: var(--body); margin: 0 0 20px; }
.blog-empty[hidden] { display: none; }
.link-btn { font: inherit; color: var(--sage-deep); font-weight: 600; text-decoration: underline; cursor: pointer; }
.post-card[hidden] { display: none; }
/* The pinned post sits above the filters and always stays visible. */
.blog-featured { margin-bottom: 30px; }
.blog-featured .post-card--featured { grid-column: auto; }
.post-pin {
  align-self: flex-start; margin-bottom: 10px; font-family: var(--mono); font-size: 9.5px;
  font-weight: 600; letter-spacing: 0.14em; color: var(--ink); background: var(--wash);
  border-radius: 999px; padding: 4px 10px;
}

/* ---------- beta & thanks ---------- */
.beta-hero .hero-badge { margin-bottom: 18px; }
.beta-form { max-width: 470px; margin: 32px auto 0; }
.beta-form .waitlist-form { box-shadow: 0 1px 2px rgba(60,50,30,0.05), 0 18px 44px rgba(60,50,30,0.12); border: 1px solid var(--line-strong); }
.beta-note { font-size: 12.5px; color: var(--faint); margin: 14px 0 0; }

.thanks-hero { padding-top: 84px; }
.thanks-mark {
  width: 62px; height: 62px; border-radius: 50%; margin: 0 auto 22px;
  display: flex; align-items: center; justify-content: center;
  background: radial-gradient(130% 170% at 50% -35%, var(--sage), transparent 58%), var(--ink);
  box-shadow: 0 10px 26px rgba(143,178,127,0.4);
}
.next-steps { list-style: none; margin: 0 auto; padding: 0; max-width: 560px; display: flex; flex-direction: column; gap: 18px; }
.next-steps li { display: flex; gap: 14px; align-items: flex-start; font-size: 14.5px; color: var(--body); line-height: 1.6; }
.next-steps strong { color: var(--ink); font-weight: 600; }
.step-n {
  flex-shrink: 0; width: 28px; height: 28px; border-radius: 50%; background: var(--wash);
  color: var(--ink); font-family: var(--mono); font-size: 12px; font-weight: 600;
  display: flex; align-items: center; justify-content: center;
}
.thanks-links { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-top: 34px; }

/* ---------- social links ---------- */
.socials { display: flex; align-items: center; gap: 8px; margin-top: 16px; }
.socials a {
  display: inline-flex; align-items: center; justify-content: center;
  width: 34px; height: 34px; border-radius: 10px;
  border: 1px solid var(--line); background: var(--paper); color: var(--body);
  transition: color .15s, border-color .15s, transform .15s;
}
.socials a:hover { color: var(--ink); border-color: var(--ink); transform: translateY(-2px); }
.socials--modal { justify-content: center; margin: 18px 0 0; }

/* ---------- waitlist modal ---------- */
.modal-overlay {
  position: fixed; inset: 0; z-index: 100;
  background: rgba(12,15,10,0.45);
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  display: flex; align-items: center; justify-content: center; padding: 20px;
}
.modal-overlay[hidden] { display: none; }
.modal {
  position: relative; width: 100%; max-width: 480px; box-sizing: border-box;
  background: #fff; border-radius: 24px; padding: 38px 32px 26px;
  box-shadow: 0 40px 100px rgba(20,20,25,0.35);
  text-align: center; animation: ycfade .3s both;
}
.modal-close {
  position: absolute; top: 14px; right: 14px; width: 34px; height: 34px;
  border-radius: 50%; display: flex; align-items: center; justify-content: center;
  color: #6c6b63; font-size: 14px; cursor: pointer;
}
.modal-close:hover { background: var(--wash); color: var(--ink); }
.modal-mark { width: 52px; height: 52px; border-radius: 50%; display: inline-block; }
.modal h3 { font-family: var(--display); font-weight: 600; letter-spacing: -0.01em; font-size: 25px; color: var(--ink); margin: 14px 0 0; }
.modal-copy { font-size: 14px; color: var(--body); line-height: 1.6; margin: 10px 0 0; }
.modal-idea[hidden] { display: none; }
.modal-idea {
  display: block; margin: 14px 0 0; padding: 9px 14px; border-radius: 11px;
  background: var(--sage-wash); border: 1px solid var(--sage-line);
  font-size: 12.5px; font-weight: 500; color: var(--sage-deep); font-style: italic;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.modal .waitlist-form { margin-top: 20px; box-shadow: none; border: 1px solid var(--line-strong); }
.modal .waitlist-form.is-error { box-shadow: 0 0 0 2px #d96b6b; }
.modal .waitlist-success {
  display: inline-flex; margin-top: 20px; height: 48px;
  background: #e7f2ec; border-color: #cfe6da; color: var(--green);
}
.modal .waitlist-success[hidden] { display: none; }
.modal .waitlist-success .ok { color: var(--green); }
.modal-note { font-size: 11.5px; color: var(--faint); margin-top: 14px; }

/* ---------- footer ---------- */
.footer-inner { max-width: 1180px; margin: 0 auto; padding: 52px 28px 40px; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 32px; }
.footer-brand { display: flex; align-items: center; gap: 10px; }
.footer-brand img { width: 32px; height: 32px; display: block; }
.footer-brand span { font-family: var(--logo-face); font-size: 22px; color: var(--ink); font-weight: 600; }
.footer-tagline { font-size: 13.5px; color: var(--muted); line-height: 1.6; margin-top: 14px; max-width: 280px; }
.footer-col-label { font-family: var(--mono); font-size: 11px; font-weight: 600; letter-spacing: 0.1em; color: var(--faint-2); margin-bottom: 14px; }
.footer-col-links { display: flex; flex-direction: column; gap: 10px; }
.footer-col-links a { font-size: 13.5px; color: var(--body); }
.footer-col-links a:hover { color: var(--ink); }
.footer-meta { display: flex; align-items: center; gap: 14px; margin-top: 38px; padding-top: 22px; }
.footer-meta .copyright { font-size: 12.5px; color: var(--muted); }
.footer-meta .spacer { flex: 1; }
.footer-meta .motto { font-family: var(--mono); font-size: 11px; color: #b0afa2; }

.bigmark-clip { overflow: hidden; padding: 0 20px; height: clamp(76px, 18vw, 220px); }
.bigmark {
  max-width: 1400px; margin: 0 auto; display: flex; align-items: flex-start; justify-content: center;
  gap: clamp(16px, 3vw, 44px); transform: translateY(60px); opacity: 0;
  transition: transform .1s linear, opacity .1s linear;
}
.bigmark img { height: clamp(80px, 22vw, 340px); width: auto; flex-shrink: 0; opacity: 0.55; }
.bigmark span {
  font-family: var(--logo-face); font-weight: 900; letter-spacing: -0.04em;
  font-size: clamp(80px, 22vw, 340px); line-height: 0.86; color: rgba(23,23,26,0.34); user-select: none;
}

/* ---------- one section = one screen (desktop) ----------
   Each major section snaps to the viewport and gets exactly the visible
   height (100svh minus the 66px nav). When the screen is shorter than the
   section's natural content height (the px denominator below), the inner
   content scales down proportionally (transform, GPU-safe) so everything
   stays visible without scrolling inside the section. */
@media (min-width: 1081px) {
  html.home { scroll-snap-type: y mandatory; scroll-padding-top: 66px; }
  .home #how, .home #difference, .home #pricing, .home #waitlist { scroll-margin-top: 0; }
  .home .hero-wrap, .home .experts, .home .how, .home .connect, .home .difference, .home .fair-wrap, .home .pricing, .home .faq, .home .cta-wrap { scroll-snap-align: start; }
  .home footer { scroll-snap-align: end; }

  .home .hero-wrap  { --z: min(1, calc((100svh - 66px) / 640px)); }
  .home .experts    { --z: min(1, calc((100svh - 66px) / 540px)); }
  .home .how        { --z: min(1, calc((100svh - 66px) / 880px)); }
  .home .connect    { --z: min(1, calc((100svh - 66px) / 550px)); }
  .home .difference { --z: min(1, calc((100svh - 66px) / 1020px)); }
  .home .fair-wrap  { --z: min(1, calc((100svh - 66px) / 460px)); }
  .home .pricing    { --z: min(1, calc((100svh - 66px) / 1090px)); }
  .home .faq        { --z: min(1, calc((100svh - 66px) / 660px)); }
  .home .cta-wrap   { --z: min(1, calc((100svh - 66px) / 700px)); }

  .home .hero-wrap, .home .experts, .home .how, .home .connect, .home .difference, .home .fair-wrap, .home .pricing, .home .faq, .home .cta-wrap {
    height: calc(100svh - 66px);
    min-height: 0;
    box-sizing: border-box;
    padding-top: 0;
    padding-bottom: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    overflow: clip;
  }
  .home .fit, .home .hero, .home .fair, .home .cta {
    transform: scale(var(--z));
    flex-shrink: 0;
    width: 100%;
    box-sizing: border-box;
  }
  .home .hero { min-height: 0; padding-top: 0; padding-bottom: 0; height: auto; }
  .home .fair, .home .cta { padding-top: 0; padding-bottom: 0; margin-top: 0; margin-bottom: 0; }
}

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

/* Tablet: relax the densest desktop layouts before the mobile breakpoint */
@media (max-width: 1080px) {
  .bento-scope { grid-column: span 6; grid-row: auto; }
  .bento-half { grid-column: span 3; }
  .plans, .topup { grid-template-columns: 1fr; max-width: 560px; }
  .topup { gap: 26px; }
}

/* The orbit graphic needs its own room: single column + fluid scaling */
@media (max-width: 1020px) {
  .connect-inner { grid-template-columns: 1fr; gap: 48px; }
  .orbit-shell { --s: min(1, calc((100vw - 72px) / 460px)); width: calc(460px * var(--s)); height: calc(460px * var(--s)); }
  .orbit { transform: scale(var(--s)); }
}

/* Mobile */
@media (max-width: 860px) {
  h1 { font-size: 34px !important; line-height: 1.1 !important; width: auto !important; max-width: 100% !important; }
  .hero h1 br { display: none; }
  h2 { font-size: 29px !important; line-height: 1.12 !important; }
  .nav-links, .nav-cta { display: none; }
  .nav-burger { display: flex; }
  .nav-inner { padding: 0 18px; gap: 16px; }
  .hero, .experts, .how, .connect, .difference, .pricing, .faq { min-height: 0; }
  .fair-wrap, .cta-wrap { min-height: 0; }
  .hero { padding: 40px 18px 56px; }
  .experts, .how, .connect, .difference, .fair, .pricing, .faq { padding: 60px 18px; }
  .composer { padding: 16px 14px 12px; }
  .cat-row { gap: 8px; }
  .experts-grid, .bento, .fair-grid, .footer-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 28px; }
  .footer-grid > div:first-child { grid-column: 1 / -1; }
  .bento-scope, .bento-half, .bento-wide { grid-column: auto; grid-row: auto; }
  .bento-scope { padding: 26px 22px; }
  .bento-half, .bento-wide { padding: 24px 22px; }
  .compare-card { overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .compare-grid { min-width: 780px; }
  .compare-corner, .compare-label { position: sticky; left: 0; z-index: 2; background: #fff; border-right: 1px solid #f2f0ea; }
  .fair-promise { padding: 34px 26px; }
  .fair-points { padding: 28px 22px; }
  .plan { padding: 28px 24px; }
  .topup { padding: 24px 22px; }
  .cta { padding: 24px 16px 64px; }
  .cta-panel { padding: 64px 24px; }
  .footer-inner { padding: 44px 18px 32px; }
}

@media (max-width: 480px) {
  .waitlist-form { flex-direction: column; align-items: stretch; gap: 10px; border-radius: 22px; padding: 14px; }
  .waitlist-form input { padding: 4px 8px 10px; text-align: center; }
  .waitlist-btn { width: 100%; height: 48px; }
}
