/* ==========================================================================
   Rank Kiwi — premium layer (v2.0.0)
   Loaded after styles.min.css on every page. Holds the 2026-11 redesign:
   hero, proof strip, card links, screenshot framing, mobile install sheet,
   research table tools and privacy-tab feedback.
   ========================================================================== */

:root {
  --rk-ink: #0b1a0e;
  --rk-ink-soft: #3d4f40;
  --rk-line: #e3e8e0;
  --rk-glow: rgba(203, 249, 144, 0.55);
  --rk-shadow-card: 0 1px 2px rgba(11, 26, 14, 0.04), 0 8px 24px -12px rgba(11, 26, 14, 0.12);
  --rk-shadow-lift: 0 2px 4px rgba(11, 26, 14, 0.05), 0 24px 48px -20px rgba(1, 55, 11, 0.28);
  --rk-ease: cubic-bezier(0.16, 1, 0.3, 1);
}

body {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

::selection {
  background: #cbf990;
  color: #01370b;
}

/* ---------- Header: frosted glass once scrolled ---------- */
.site-header .nav {
  transition: background 0.25s var(--rk-ease), box-shadow 0.25s var(--rk-ease), border-color 0.25s;
}
.site-header.is-scrolled .nav {
  background: rgba(255, 255, 255, 0.78);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  backdrop-filter: saturate(180%) blur(14px);
  box-shadow: 0 1px 0 rgba(11, 26, 14, 0.04), 0 10px 30px -18px rgba(11, 26, 14, 0.25);
}

/* ---------- Buttons ---------- */
.button {
  background-image: linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12), 0 1px 2px rgba(1, 55, 11, 0.25), 0 6px 16px -8px rgba(1, 55, 11, 0.45);
}
.button:hover {
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.14), 0 2px 4px rgba(1, 55, 11, 0.22), 0 12px 26px -10px rgba(1, 55, 11, 0.55);
}
.button:focus-visible,
.text-button:focus-visible,
.rk-card-link:focus-visible {
  outline: 2px solid #01370b;
  outline-offset: 3px;
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  isolation: isolate;
}
.hero::before {
  content: "";
  position: absolute;
  inset: -120px -20vw auto;
  height: 620px;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(ellipse 45% 55% at 50% 0%, rgba(203, 249, 144, 0.45), transparent 70%),
    radial-gradient(ellipse 30% 40% at 85% 20%, rgba(203, 249, 144, 0.18), transparent 70%),
    radial-gradient(ellipse 30% 40% at 15% 25%, rgba(186, 243, 120, 0.14), transparent 70%);
}
.hero::after {
  content: "";
  position: absolute;
  inset: -120px 0 auto;
  height: 620px;
  z-index: -1;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(1, 55, 11, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(1, 55, 11, 0.045) 1px, transparent 1px);
  background-size: 44px 44px;
  -webkit-mask-image: radial-gradient(ellipse 60% 70% at 50% 10%, #000 30%, transparent 75%);
  mask-image: radial-gradient(ellipse 60% 70% at 50% 10%, #000 30%, transparent 75%);
}

.hero h1 {
  font-size: clamp(38px, 5.4vw, 64px);
  line-height: 1.02;
  letter-spacing: -0.045em;
  font-weight: 800;
  color: var(--rk-ink);
  margin-bottom: 18px;
}
.hero .hero-text {
  font-size: clamp(16px, 1.45vw, 18.5px);
  line-height: 1.55;
  color: var(--rk-ink-soft);
  max-width: 640px;
  margin-bottom: 30px;
}
.hero .hero-text strong {
  color: var(--rk-ink);
  font-weight: 650;
  background: linear-gradient(180deg, transparent 62%, rgba(203, 249, 144, 0.75) 62%);
  padding: 0 2px;
}
.hero-actions {
  margin-bottom: 22px;
}
.hero-actions .button {
  min-height: 48px;
  padding: 0 24px;
  font-size: 15.5px;
  border-radius: 10px;
}

.rk-hero-pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 auto 22px;
  padding: 5px 12px 5px 5px;
  border: 1px solid #d2f2b2;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.75);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  color: var(--rk-ink-soft);
  font-size: 13px;
  font-weight: 550;
  text-decoration: none;
  box-shadow: 0 1px 2px rgba(11, 26, 14, 0.05);
  transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s var(--rk-ease);
}
.rk-hero-pill:hover {
  border-color: #b7e98a;
  transform: translateY(-1px);
  box-shadow: 0 6px 18px -10px rgba(1, 55, 11, 0.4);
}
.rk-hero-pill-tag {
  padding: 3px 9px;
  border-radius: 999px;
  background: #01370b;
  color: #cbf990;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.02em;
}
.rk-hero-pill b {
  color: #01370b;
  font-weight: 700;
}

.rk-trust-row {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 22px;
  margin: 0 auto 40px;
  padding: 0;
  color: var(--rk-ink-soft);
  font-size: 13.5px;
  font-weight: 550;
}
.rk-trust-row li {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}
.rk-trust-row li::before {
  content: "";
  width: 16px;
  height: 16px;
  flex: none;
  border-radius: 50%;
  background: #cbf990 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='%2301370b'%3E%3Cpath fill-rule='evenodd' d='M16.7 5.3a1 1 0 010 1.4l-8 8a1 1 0 01-1.4 0l-4-4a1 1 0 011.4-1.4L8 12.6l7.3-7.3a1 1 0 011.4 0z' clip-rule='evenodd'/%3E%3C/svg%3E") center / 11px no-repeat;
}

/* Hero demo stage: deeper, softer frame */
.product-visual-stage {
  border-radius: 18px;
  box-shadow: 0 0 0 1px rgba(1, 55, 11, 0.08), 0 30px 80px -30px rgba(1, 55, 11, 0.45), 0 0 120px -40px var(--rk-glow);
}
.hero-video,
.workflow-video {
  background: #0c1014;
}

/* ---------- Proof strip ---------- */
.rk-proof {
  padding: 8px 0 clamp(24px, 4vw, 48px);
}
.rk-proof-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border: 1px solid var(--rk-line);
  border-radius: 18px;
  background: #ffffff;
  box-shadow: var(--rk-shadow-card);
  overflow: hidden;
}
.rk-proof-item {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 22px 22px 24px;
  border-left: 1px solid var(--rk-line);
}
.rk-proof-item:first-child {
  border-left: 0;
}
.rk-proof-num {
  font-size: clamp(28px, 3vw, 38px);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1;
  color: #01370b;
  font-variant-numeric: tabular-nums;
}
.rk-proof-item:first-child .rk-proof-num {
  background: linear-gradient(120deg, #01370b 20%, #3c8a1e 90%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.rk-proof-label {
  color: var(--rk-ink-soft);
  font-size: 13.5px;
  line-height: 1.45;
}
@media (max-width: 860px) {
  .rk-proof-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .rk-proof-item:nth-child(3) { border-left: 0; }
  .rk-proof-item:nth-child(n + 3) { border-top: 1px solid var(--rk-line); }
}
@media (max-width: 420px) {
  .rk-proof-item { padding: 18px 16px; }
}

/* ---------- Cards: whole card is clickable via a stretched link ---------- */
.feature-card {
  position: relative;
  display: flex;
  flex-direction: column;
  box-shadow: var(--rk-shadow-card);
  transition: transform 0.25s var(--rk-ease), box-shadow 0.25s var(--rk-ease), border-color 0.2s;
}
.feature-card:hover {
  transform: translateY(-3px);
  border-color: #c9e9a8;
  box-shadow: var(--rk-shadow-lift);
}
.rk-card-link {
  margin-top: auto;
  padding-top: 14px;
  color: #01370b;
  font-size: 13.5px;
  font-weight: 650;
  text-decoration: none;
}
.rk-card-link::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
}
.rk-card-link span {
  display: inline-block;
  transition: transform 0.2s var(--rk-ease);
}
.feature-card:hover .rk-card-link span {
  transform: translateX(3px);
}
.rk-inline-link {
  display: inline-block;
  margin-top: 14px;
  color: #01370b;
  font-weight: 650;
  font-size: 14px;
  text-decoration: underline;
  text-decoration-color: #b7e98a;
  text-underline-offset: 4px;
  text-decoration-thickness: 2px;
}
.rk-inline-link:hover {
  text-decoration-color: #01370b;
}

.who-card {
  box-shadow: var(--rk-shadow-card);
}

/* ---------- Screenshots: show at natural size, framed like product shots ---------- */
.annotated-shot-img {
  width: auto;
  max-width: 100%;
  height: auto;
  margin: 0 auto;
}
.annotated-shot-wrap {
  border-radius: 14px;
  overflow: hidden;
  background: linear-gradient(180deg, #f6faf2, #eef5e8);
  border: 1px solid var(--rk-line);
  box-shadow: var(--rk-shadow-card);
}
.annotated-shot-wrap > img,
.annotated-shot-wrap > picture {
  padding: 14px 14px 0;
  box-sizing: border-box;
}
.annotated-shot-wrap > img {
  border-radius: 22px 22px 0 0;
}
.annotated-shot-wrap figcaption {
  border-top: 1px solid var(--rk-line);
}

/* ---------- Mobile install sheet ---------- */
.rk-sheet {
  position: fixed;
  inset: 0;
  z-index: 3000;
}
.rk-sheet[hidden] {
  display: none;
}
.rk-sheet-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(6, 18, 9, 0.45);
  opacity: 0;
  transition: opacity 0.22s ease;
}
.rk-sheet-panel {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  max-width: 520px;
  margin: 0 auto;
  padding: 26px 22px calc(22px + env(safe-area-inset-bottom));
  border-radius: 22px 22px 0 0;
  background: #ffffff;
  box-shadow: 0 -20px 60px -20px rgba(0, 0, 0, 0.35);
  text-align: center;
  transform: translateY(100%);
  transition: transform 0.28s var(--rk-ease);
}
.rk-sheet.is-open .rk-sheet-backdrop { opacity: 1; }
.rk-sheet.is-open .rk-sheet-panel { transform: translateY(0); }
.rk-sheet-x {
  position: absolute;
  top: 10px;
  right: 12px;
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 50%;
  background: #f2f5f0;
  color: #3d4f40;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
}
.rk-sheet-icon {
  display: inline-flex;
  padding: 10px;
  border-radius: 14px;
  background: #f2faea;
  border: 1px solid #d2f2b2;
  margin-bottom: 12px;
}
.rk-sheet h2 {
  font-size: 21px;
  letter-spacing: -0.02em;
  margin: 0 0 8px;
  color: var(--rk-ink);
}
.rk-sheet p {
  color: var(--rk-ink-soft);
  font-size: 14.5px;
  line-height: 1.5;
  margin: 0 auto 16px;
  max-width: 380px;
}
.rk-sheet-form {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.rk-sheet-form input {
  height: 48px;
  padding: 0 14px;
  border: 1px solid #cdd6c8;
  border-radius: 10px;
  font: inherit;
  font-size: 16px;
  color: var(--rk-ink);
  background: #fbfdf9;
}
.rk-sheet-form input:focus {
  outline: 2px solid #01370b;
  outline-offset: 1px;
  border-color: transparent;
}
.rk-sheet-form .button {
  min-height: 48px;
  width: 100%;
  font-size: 15.5px;
  border-radius: 10px;
}
.rk-sheet-note {
  font-size: 12.5px !important;
  margin: 12px auto 6px !important;
}
.rk-sheet-alt {
  display: flex;
  justify-content: center;
  gap: 18px;
  flex-wrap: wrap;
  padding-top: 8px;
  border-top: 1px solid #eef2ec;
}
.rk-sheet-link {
  padding: 10px 2px;
  border: 0;
  background: none;
  color: #01370b;
  font: inherit;
  font-size: 14px;
  font-weight: 650;
  text-decoration: none;
  cursor: pointer;
}

/* ---------- Research tables: copy / CSV / cite ---------- */
.rk-table-tools {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin: 10px 0 22px;
}
.rk-table-tools-label {
  color: #64748b;
  font-size: 12px;
  font-weight: 650;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-right: 4px;
}
.rk-table-tools button {
  height: 32px;
  padding: 0 12px;
  border: 1px solid var(--rk-line);
  border-radius: 8px;
  background: #ffffff;
  color: #01370b;
  font: inherit;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s;
}
.rk-table-tools button:hover {
  border-color: #b7e98a;
  background: #f2faea;
}

/* ---------- Privacy tabs: make the switch visible ---------- */
.privacy-scope-btn {
  transition: background 0.2s, color 0.2s, box-shadow 0.2s, transform 0.15s var(--rk-ease);
}
.privacy-scope-btn:active {
  transform: scale(0.98);
}
.privacy-scope-btn.active {
  box-shadow: 0 0 0 2px #01370b inset;
}
.rk-scope-count {
  margin: 10px 0 0;
  font-size: 13px;
  color: #3d4f40;
  font-weight: 550;
}
@keyframes rk-pulse {
  0% { box-shadow: 0 0 0 0 rgba(203, 249, 144, 0.9); }
  100% { box-shadow: 0 0 0 14px rgba(203, 249, 144, 0); }
}
.rk-pulse {
  animation: rk-pulse 0.9s ease-out 1;
}
.legal-content section[data-privacy-scope] {
  transition: opacity 0.25s ease;
}

/* ---------- Mobile tuning ---------- */
@media (max-width: 640px) {
  .hero h1 { font-size: clamp(34px, 10vw, 44px); }
  .rk-hero-pill { font-size: 12px; max-width: 100%; }
  .rk-hero-pill span:not(.rk-hero-pill-tag) {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .hero-actions { flex-direction: column; gap: 12px; }
  .hero-actions .button { width: 100%; }
  .rk-trust-row { gap: 8px 14px; font-size: 12.5px; margin-bottom: 28px; }
}

@media (prefers-reduced-motion: reduce) {
  .feature-card,
  .rk-hero-pill,
  .rk-sheet-panel,
  .rk-sheet-backdrop { transition: none; }
  .rk-pulse { animation: none; }
}

/* ==========================================================================
   Interactive hero tour (desktop/tablet). Phones keep the video.
   ========================================================================== */
.rk-tour-on .hero-videos-stack { display: none; }
.rk-tour { position: relative; }
.rk-tour-screen {
  position: relative;
  overflow: hidden;
  border-radius: 10px;
  background: #0c1014;
  aspect-ratio: 1200 / 784;
}
.rk-tour-img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: opacity 0.22s ease, transform 0.5s var(--rk-ease);
}
.rk-tour-fade {
  position: absolute;
  inset: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.42s cubic-bezier(0.22, 1, 0.36, 1);
}
.rk-tour-fade:not([src]) { display: none; }
.rk-tour-fade.is-on { opacity: 1; transition: none; }
.rk-tour.is-swapping .rk-tour-hotspot,
.rk-tour.is-swapping .rk-tour-callout { opacity: 0 !important; transition: opacity 0.12s ease; }
.rk-tour-dim {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(circle at var(--hx, 50%) var(--hy, 50%), transparent 0, rgba(0, 0, 0, 0.0) 100%);
}
.rk-tour-hotspot {
  position: absolute;
  z-index: 3;
  width: 38px;
  height: 38px;
  margin: -19px 0 0 -19px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: #cbf990;
  color: #01370b;
  font: 800 15px/38px var(--font-body, Inter, sans-serif);
  cursor: pointer;
  box-shadow: 0 0 0 3px #01370b, 0 10px 24px rgba(0, 0, 0, 0.45);
  transition: left 0.45s var(--rk-ease), top 0.45s var(--rk-ease), transform 0.15s;
}
.rk-tour-hotspot:hover { transform: scale(1.08); }
.rk-tour-hotspot:focus-visible { outline: 3px solid #fff; outline-offset: 3px; }
.rk-tour-ring {
  position: absolute;
  inset: -3px;
  border-radius: 50%;
  border: 3px solid #cbf990;
  animation: rk-ring 1.6s ease-out infinite;
  pointer-events: none;
}
@keyframes rk-ring {
  0% { transform: scale(1); opacity: 0.9; }
  100% { transform: scale(2.3); opacity: 0; }
}
.rk-tour-num { position: relative; }

.rk-tour-callout {
  position: absolute;
  z-index: 2;
  width: min(300px, 34%);
  padding: 14px 16px 15px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.97);
  color: #0b1a0e;
  text-align: left;
  box-shadow: 0 24px 50px -18px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(1, 55, 11, 0.08);
  transition: left 0.45s var(--rk-ease), top 0.45s var(--rk-ease), opacity 0.2s;
}
.rk-tour-callout.is-left { left: var(--x); top: var(--y); transform: translate(-100%, -50%); }
.rk-tour-callout.is-right { left: var(--x); top: var(--y); transform: translate(0, -50%); }
.rk-tour-callout.is-center { left: 50%; top: 78%; transform: translate(-50%, -50%); width: min(380px, 60%); text-align: center; }
.rk-tour-kicker {
  margin: 0 0 4px;
  font-size: 11px;
  font-weight: 750;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #3c8a1e;
}
.rk-tour-title { margin: 0 0 4px; font-size: 16px; font-weight: 750; letter-spacing: -0.015em; line-height: 1.25; }
.rk-tour-text { margin: 0; font-size: 13.5px; line-height: 1.45; color: #3d4f40; }
.rk-tour-text b { color: #01370b; }
.rk-tour-bar { height: 4px; margin-top: 12px; border-radius: 4px; background: #e6eee0; overflow: hidden; }
.rk-tour-bar span { display: block; height: 100%; width: 0; background: #01370b; border-radius: 4px; }

.rk-tour-finish {
  position: absolute;
  inset: 0;
  z-index: 4;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 24px;
  text-align: center;
  background: rgba(6, 20, 10, 0.78);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  color: #fff;
}
.rk-tour-finish[hidden] { display: none; }
.rk-tour-finish .rk-tour-kicker { color: #cbf990; }
.rk-tour-finish h3 { margin: 0 0 6px; font-size: clamp(20px, 2.4vw, 28px); letter-spacing: -0.03em; color: #fff; }
.rk-tour-finish p { margin: 0 0 18px; color: #c2d6c0; }
.rk-tour-finish-actions { display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; }
.rk-tour-finish .button { background: #cbf990; border-color: #cbf990; color: #01370b; }
.rk-tour-finish .button .btn-microcopy { color: rgba(1, 55, 11, 0.7); }
.rk-tour-finish .rk-tour-ghost { color: #fff; border-color: rgba(255, 255, 255, 0.35); }

.rk-tour-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 4px 2px;
}
.rk-tour-steps {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.rk-tour-step {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  height: 30px;
  padding: 0 10px 0 4px;
  border: 1px solid #dfe8d8;
  border-radius: 999px;
  background: #fff;
  color: #3d4f40;
  font: 600 12.5px/1 var(--font-body, Inter, sans-serif);
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s, color 0.2s;
}
.rk-tour-step span {
  display: inline-grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #eef3ea;
  font-weight: 800;
  font-size: 11.5px;
}
.rk-tour-step em { font-style: normal; max-width: 0; overflow: hidden; white-space: nowrap; transition: max-width 0.3s var(--rk-ease); }
.rk-tour-step.is-active { border-color: #01370b; color: #01370b; }
.rk-tour-step.is-active span { background: #01370b; color: #cbf990; }
.rk-tour-step.is-active em { max-width: 220px; }
.rk-tour-step.is-done span { background: #cbf990; color: #01370b; }
.rk-tour-btns { display: flex; gap: 8px; flex: none; }
.rk-tour-ghost,
.rk-tour-next {
  height: 36px;
  padding: 0 14px;
  border-radius: 8px;
  font: 650 13.5px/1 var(--font-body, Inter, sans-serif);
  cursor: pointer;
}
.rk-tour-ghost { border: 1px solid #cdd6c8; background: transparent; color: #01370b; }
.rk-tour-ghost:disabled { opacity: 0.4; cursor: default; }
.rk-tour-next { border: 1px solid #01370b; background: #01370b; color: #fff; }
@media (max-width: 1024px) {
  .rk-tour-callout { width: min(260px, 40%); }
  .rk-tour-step em { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .rk-tour-ring { animation: none; }
  .rk-tour-hotspot, .rk-tour-callout, .rk-tour-img, .rk-tour-fade { transition: none; }
}

.rk-tour-on .stage-actions { display: none !important; }

/* ==========================================================================
   Site header dropdowns (Free tools / Learn) + mobile drawer + footer band
   ========================================================================== */
.rk-nav-group { position: relative; }
.rk-nav-trigger {
  display: inline-flex; align-items: center; gap: 6px; height: 36px; padding: 0 12px;
  border: 0; border-radius: 8px; background: transparent; color: inherit;
  font: inherit; font-size: 14.5px; font-weight: 500; cursor: pointer;
}
.rk-nav-trigger:hover, .rk-nav-group.is-open .rk-nav-trigger { background: rgba(1, 55, 11, 0.06); }
.rk-nav-trigger svg { transition: transform 0.2s var(--rk-ease); }
.rk-nav-group.is-open .rk-nav-trigger svg { transform: rotate(180deg); }
.rk-nav-new { padding: 2px 7px; border-radius: 999px; background: #cbf990; color: #01370b; font-size: 10.5px; font-weight: 750; letter-spacing: 0.02em; }
.rk-nav-menu {
  position: absolute; top: calc(100% + 10px); left: 50%; z-index: 1200;
  display: grid; grid-template-columns: repeat(2, minmax(220px, 1fr)); gap: 4px 18px;
  width: max-content; max-width: min(560px, 92vw); padding: 14px;
  border: 1px solid var(--rk-line); border-radius: 16px; background: #fff;
  box-shadow: 0 2px 4px rgba(11, 26, 14, 0.05), 0 28px 60px -24px rgba(11, 26, 14, 0.35);
  opacity: 0; visibility: hidden; transform: translate(-50%, -4px) scale(0.96); transform-origin: 50% 0;
  /* closes a little faster than it opens, back into the trigger */
  transition: opacity 0.15s ease-in, transform 0.15s ease-in, visibility 0s linear 0.15s;
  pointer-events: auto;
}
.rk-nav-menu-sm { grid-template-columns: minmax(220px, 1fr); }
.rk-nav-group.is-open .rk-nav-menu { opacity: 1; visibility: visible; transform: translate(-50%, 0) scale(1); transition: opacity 0.2s cubic-bezier(0.22, 1, 0.36, 1), transform 0.2s cubic-bezier(0.22, 1, 0.36, 1), visibility 0s; }
.rk-nav-col { display: flex; flex-direction: column; gap: 2px; }
.rk-nav-col-title { margin: 2px 10px 6px; font-size: 13px; font-weight: 650; letter-spacing: 0; color: #5b6b5d; }
.rk-nav-col a {
  display: flex; align-items: center; gap: 10px; padding: 9px 10px; border-radius: 10px;
  color: var(--rk-ink); font-size: 14px; font-weight: 550; text-decoration: none;
}
.rk-nav-col a:hover, .rk-nav-col a:focus-visible { background: #f2faea; color: #01370b; }
.rk-nav-col a img { flex: none; }
.rk-nav-all {
  grid-column: 1 / -1; margin-top: 6px; padding: 10px 12px; border-radius: 10px;
  background: #f6faf2; color: #01370b !important; font-size: 13.5px; font-weight: 700; text-decoration: none;
}
.rk-nav-all:hover { background: #e4f9c5; }

@media (max-width: 720px) {
  .nav-links.is-open {
    max-height: calc(100vh - 90px); max-height: calc(100dvh - 90px);
    overflow-y: auto; -webkit-overflow-scrolling: touch;
  }
  .nav-links > a:not(.button) { min-height: 44px; display: flex; align-items: center; font-size: 15.5px; font-weight: 550; }
  .rk-nav-group { width: 100%; }
  .rk-nav-trigger { width: 100%; height: 48px; justify-content: flex-start; padding: 0 12px; font-size: 15.5px; font-weight: 550; }
  .rk-nav-trigger svg { margin-left: auto; }
  .rk-nav-menu {
    position: static; transform: none; width: auto; max-width: none;
    grid-template-columns: 1fr; gap: 0; padding: 0 0 6px 6px;
    border: 0; box-shadow: none; background: transparent;
    display: none; opacity: 1; visibility: visible; transition: none;
  }
  .rk-nav-group.is-open .rk-nav-menu { display: grid; transform: none; }
  .rk-nav-col a { min-height: 44px; font-size: 15px; }
  .rk-nav-col-title { margin-top: 8px; }
  .rk-nav-mobile-cta { min-height: 48px !important; height: 48px !important; font-size: 15px !important; }
}

/* Footer: "paste any link" band + 5 columns */
.rk-footer-band {
  display: grid; grid-template-columns: 1fr minmax(320px, 520px); gap: 24px; align-items: center;
  margin-bottom: 40px; padding: clamp(20px, 3vw, 32px); border-radius: 20px;
  background: radial-gradient(ellipse at top right, rgba(203, 249, 144, 0.22), transparent 60%), #01370b; color: #fff;
}
.rk-footer-kicker { margin: 0 0 6px; color: #cbf990; font-size: 14px; font-weight: 650; letter-spacing: 0; }
.rk-footer-band h2 { margin: 0 0 6px; color: #fff; font-size: clamp(20px, 2.4vw, 28px); letter-spacing: -0.03em; }
.rk-footer-band p { margin: 0; color: #c2d6c0; font-size: 14.5px; }
.rk-router { position: relative; display: flex; gap: 8px; padding: 6px; border-radius: 14px; background: #fff; }
.rk-router input { flex: 1; min-width: 0; height: 48px; padding: 0 12px; border: 0; border-radius: 10px; font: inherit; font-size: 16px; color: var(--rk-ink); background: transparent; }
.rk-router input:focus { outline: none; }
.rk-router:focus-within { box-shadow: 0 0 0 3px #cbf990; }
.rk-router .button { min-height: 48px; padding: 0 22px; border-radius: 10px; }
.rk-router-msg { position: absolute; left: 6px; top: calc(100% + 8px); margin: 0; color: #cbf990 !important; font-size: 13px !important; }
.rk-footer-grid { grid-template-columns: 1.4fr repeat(4, 1fr) !important; gap: 28px !important; }
.rk-footer-grid .footer-brand-col .button { margin: 6px 0 14px; width: max-content; }
.rk-footer-grid b.rk-footer-sub { margin-top: 18px; }
.rk-footer-more { font-weight: 700; color: #01370b !important; }
@media (max-width: 980px) {
  .rk-footer-grid { grid-template-columns: repeat(2, 1fr) !important; }
  .rk-footer-grid .footer-brand-col { grid-column: 1 / -1; }
}
@media (max-width: 720px) {
  .rk-footer-band { grid-template-columns: 1fr; margin-bottom: 28px; }
  .rk-router { flex-direction: column; }
  .rk-router .button { width: 100%; }
  .rk-router-msg { position: static; margin-top: 4px; }
  .rk-footer-grid a { min-height: 36px; display: inline-flex; align-items: center; }
}

.rk-sheet { z-index: 2147483000; }

/* Keep header items on one line on tablets */
.nav-links > a, .rk-nav-trigger { white-space: nowrap; }
@media (min-width: 721px) and (max-width: 960px) {
  .nav-links { gap: 2px; }
  .nav-links > a, .rk-nav-trigger { padding-left: 8px; padding-right: 8px; font-size: 14px; }
  .rk-nav-new { display: none; }
}

/* ==========================================================================
   Global type scale: calmer hero headings so sections fit laptop screens
   (1280x720, 1366x768). Overrides the larger .hero h1 sizes above.
   ========================================================================== */
.hero h1 { font-size: clamp(32px, 3.6vw, 52px); line-height: 1.05; }
@media (max-width: 640px) {
  .hero h1 { font-size: clamp(30px, 8.8vw, 34px); }
}

/* Footer "Add to Chrome": base .footer-grid a styles turned its text grey on
   green. Keep it a clear white-on-green button. */
.site-footer .footer-brand-col a.button {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 44px;
  padding: 0 18px;
  border: 1px solid #01370b !important;
  border-radius: 10px;
  background: #01370b !important;
  color: #fff !important;
  font-size: 14.5px;
  font-weight: 650;
  text-decoration: none !important;
}
.site-footer .footer-brand-col a.button:hover { background: #0a4a16 !important; color: #fff !important; }
.site-footer .footer-brand-col a.button .btn-microcopy { color: #cbf990 !important; opacity: 1; }

/* ---------- Header CTA: same motion as the homepage hero button ---------- */
.nav-cta-btn { position: relative; overflow: hidden; isolation: isolate; transition: color 0.2s cubic-bezier(0.22, 1, 0.36, 1), border-color 0.2s, scale 0.15s cubic-bezier(0.22, 1, 0.36, 1); }
.nav-cta-btn:active { scale: 0.97; }
.nav-cta-btn::before { content: ""; position: absolute; left: var(--bx, 50%); top: var(--by, 50%); z-index: -1; width: 260%; aspect-ratio: 1; border-radius: 50%;
  background: #cbf990; translate: -50% -50%; scale: 0; transition: scale 0.35s cubic-bezier(0.16, 1, 0.3, 1); pointer-events: none; }
.nav-cta-btn:active { scale: 0.95; }
.rk-roll { display: inline-block; overflow: hidden; vertical-align: top; height: 1.3em; line-height: 1.3; }
.rk-roll > span { display: block; text-shadow: 0 1.3em 0 currentColor; transition: translate 0.25s cubic-bezier(0.22, 1, 0.36, 1); }
@media (hover: hover) and (pointer: fine) {
  .nav-cta-btn:hover { color: #01370b !important; border-color: #cbf990; }
  .nav-cta-btn:hover::before { scale: 1; }
  .nav-cta-btn:hover .rk-roll > span { translate: 0 -1.3em; }
}
@media (prefers-reduced-motion: reduce) { .nav-cta-btn, .nav-cta-btn::before, .rk-roll > span { transition: none; } }
.nav-cta-btn .rk-roll, .nav-cta-btn .rk-roll > span { color: inherit !important; opacity: 1 !important; margin: 0 !important; padding: 0 !important; font-size: inherit !important; font-weight: inherit !important; letter-spacing: inherit; background: none !important; pointer-events: none; }

/* Cookie choice: compact, opt-in, two equal buttons (Decline is as easy as Accept).
   Enters in 240ms ease-out, leaves in 180ms; 44px buttons on touch screens. */
.cookie-banner { width: min(calc(100% - 32px), 400px); padding: 16px; gap: 12px; transition: opacity 180ms ease-in, transform 180ms ease-in; }
.cookie-banner.is-visible { transition: opacity 240ms cubic-bezier(0.16, 1, 0.3, 1), transform 240ms cubic-bezier(0.16, 1, 0.3, 1); }
.cookie-banner-body { font-size: 14px; line-height: 1.5; }
.cookie-banner-actions { margin-top: 0; }
.cookie-btn-decline, .cookie-btn-accept { min-height: 40px; min-width: 96px; padding: 8px 16px; font-size: 14px; }
.cookie-btn-accept:active, .cookie-btn-decline:active { transform: scale(0.97); }
.cookie-btn-accept:focus-visible, .cookie-btn-decline:focus-visible { outline: 2px solid #01370b; outline-offset: 2px; }
@media (max-width: 600px), (pointer: coarse) {
  .cookie-btn-decline, .cookie-btn-accept { min-height: 44px; }
}
@media (max-width: 600px) {
  .cookie-banner { padding: 12px; gap: 8px; }
  .cookie-banner-body { font-size: 14px; line-height: 1.45; }
}
@media (prefers-reduced-motion: reduce) { .cookie-banner, .cookie-banner.is-visible { transform: none; transition: opacity 120ms linear; } }

/* Phones: a solid header instead of live blur, so scrolling stays smooth */
@media (max-width: 767px), (hover: none) {
  .site-header.is-scrolled .nav { background: rgba(255, 255, 255, 0.96); -webkit-backdrop-filter: none; backdrop-filter: none; }
}

/* Faster taps (INP): skip rendering the footer until it is near the screen. */
.site-footer { content-visibility: auto; contain-intrinsic-size: auto 900px; }

/* ==========================================================================
   Quality pass (Nov 2026): long-read layout, focus, tap targets, contrast
   ========================================================================== */

/* Legal pages: a 70-character text column at 16px, with a sticky "On this page" panel
   (built by script.js from the section headings) on wide screens. */
.legal-page { max-width: 1120px; }
.legal-page > * { max-width: 70ch; }
.legal-lead { font-size: 17px; line-height: 1.6; }
.updated { color: var(--muted); font-size: 14px; }
.legal-content p, .legal-content li { font-size: 16px; line-height: 1.65; }
.legal-content h2 { scroll-margin-top: 96px; }
.legal-toc { display: none; }
@media (min-width: 1100px) {
  .legal-page.has-toc { display: grid; grid-template-columns: minmax(0, 70ch) 220px; column-gap: 64px; align-items: start; }
  .legal-page.has-toc > * { grid-column: 1; }
  .legal-page.has-toc > .legal-toc { display: block; grid-column: 2; grid-row: 1 / span 40; position: sticky; top: 96px; max-width: none; }
}
.legal-toc p { margin: 0 0 8px; font-size: 14px; font-weight: 650; color: var(--text, #0b1a0e); }
.legal-toc ol { list-style: none; margin: 0; padding: 0 0 0 12px; border-left: 1px solid var(--line); }
.legal-toc a { display: block; padding: 4px 0; font-size: 14px; line-height: 1.4; color: var(--muted); text-decoration: none; }
.legal-toc a:hover, .legal-toc a[aria-current="true"] { color: #01370b; }
.legal-toc a:focus-visible { outline: 2px solid #01370b; outline-offset: 2px; border-radius: 4px; }

/* Docs prose: about 70 characters per line */
.dx-prose { max-width: 70ch; }

/* Focus rings that stay visible on dark green surfaces */
.hm-final :focus-visible, .rk-footer-band :focus-visible, .site-footer :focus-visible,
.cta-banner :focus-visible, .final-cta :focus-visible { outline: 2px solid #cbf990 !important; outline-offset: 3px; }
.hm-tool-all:focus-visible { outline: 2px solid #01370b; outline-offset: 3px; }
.hm-tools-light .hm-intent:focus-visible, .hm-tools-light .hm-tool:focus-visible { outline: 2px solid #01370b; outline-offset: 2px; }

/* Field hint text at 4.5:1 or better */
.hm-router-field input::placeholder, .tools-hero input::placeholder { color: #5b6b5d; }

/* Comparison table scrolls sideways on phones instead of being clipped */
.hm-cmp-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }

/* Touch screens: 44px tap targets */
@media (pointer: coarse) {
  .video-ctrl-btn, .hero-tab-btn, .social-icon-link, .button-small, .hm-intent,
  .rk-nav-col a, .rk-footer-grid div > a:not(.button):not(.brand):not(.social-icon-link) { min-height: 44px; }
  .video-ctrl-btn, .social-icon-link { min-width: 44px; }
  .hm-reel-link, .hm-pill { min-height: 44px; display: inline-flex; align-items: center; }
  .hm-hero-actions .button { min-height: 44px; }
  .rk-footer-grid div > a:not(.button):not(.brand):not(.social-icon-link), .rk-nav-col a { display: inline-flex; align-items: center; }
}

/* Eyebrow labels in sentence case, like the home page: small ALL-CAPS labels add noise, not meaning. */
.eyebrow { text-transform: none; letter-spacing: 0; font-size: 14px; font-weight: 650; }

/* Metric-matched fallback: text keeps the same size and line breaks while Inter downloads,
   so nothing shifts when it swaps in (the About page founder card moved by 0.13 CLS). */
@font-face { font-family: "Inter Fallback"; src: local("Arial"), local("ArialMT"); size-adjust: 107.12%; ascent-override: 90.44%; descent-override: 22.52%; line-gap-override: 0%; }
:root {
  --font-display: 'Inter', 'Inter Fallback', ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-body: 'Inter', 'Inter Fallback', ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

/* Nav install button: same layered depth as the main buttons */
.nav-cta-btn { box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12), 0 1px 1px rgba(1, 55, 11, 0.22), 0 3px 6px -2px rgba(1, 55, 11, 0.2), 0 10px 20px -10px rgba(1, 55, 11, 0.35); }
@media (prefers-reduced-motion: reduce) { .rk-nav-menu, .rk-nav-group.is-open .rk-nav-menu { transition: opacity 0.1s linear; transform: translate(-50%, 0); } }
