/* Homepage overrides: hero URL bar, step tabs, customer row, and pricing/FAQ rhythm. */

.policy-skip {
  position: fixed;
  z-index: 100;
  top: 12px;
  left: 12px;
  padding: 12px 16px;
  background: #dbff65;
  border-radius: 6px;
  font: 12px/1.4 var(--mono);
  transform: translateY(-200%);
}

.policy-skip:focus {
  transform: none;
}

/* 1. Hero URL bar */
.sky-hero .hero-copy {
  max-width: 1120px;
  margin-inline: auto;
}

.sky-hero .hero-copy .engine-word {
  line-height: 1;
  padding: 0 0 0.12em;
}

.hero-url-form {
  margin: clamp(24px, 2.6vw, 34px) auto 0;
  width: 100%;
  max-width: 480px;
}

.hero-url-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 5px 5px 5px 18px;
  background: #ffffff;
  border-radius: 999px;
  box-shadow: 0 12px 32px rgba(7, 26, 15, 0.18);
}

.hero-url-bar input {
  flex: 1 1 auto;
  min-width: 0;
  border: 0;
  background: transparent;
  padding: 8px 0;
  font: 13px/1.4 var(--mono);
  color: #111613;
}

.hero-url-bar input::placeholder {
  color: #707972;
}

.hero-url-bar input:focus {
  outline: none;
}

.hero-url-bar:focus-within {
  outline: 2px solid #0a4d2c;
  outline-offset: 2px;
}

.hero-url-submit {
  flex: none;
  border: 0;
  border-radius: 999px;
  padding: 11px 20px;
  background: #dbff65;
  color: #111613;
  font: 500 18px/1 var(--display);
  letter-spacing: -0.01em;
  cursor: pointer;
  white-space: nowrap;
  transition: background-color 0.16s ease;
}

.hero-url-submit:hover {
  background: #cef64c;
}

.hero-url-error {
  margin: 10px 0 0 14px;
  font: 12px/1.4 var(--mono);
  color: #ffe7df;
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.55);
}

/* 2. Walk-through tabs (#how-it-works) */
.walk-tabs-section {
  padding-block: var(--chapter-space);
}

.walk-tabs-intro {
  margin-bottom: clamp(28px, 3vw, 40px);
}

.walk-tabs-bar {
  display: flex;
  flex-wrap: wrap;
  gap: clamp(20px, 3.5vw, 48px);
  border-bottom: 1px solid #dfe2dd;
  margin-bottom: clamp(28px, 3.2vw, 44px);
}

.walk-tabs-bar button {
  appearance: none;
  border: 0;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  padding: 0 0 14px;
  background: transparent;
  color: #6b716b;
  font: 500 clamp(20px, 1.6vw, 24px)/1.1 var(--display);
  letter-spacing: -0.01em;
  cursor: pointer;
  transition: color 0.15s ease, border-color 0.15s ease;
}

.walk-tabs-bar button:hover {
  color: #111613;
}

.walk-tabs-bar button[aria-selected="true"] {
  color: #0a4d2c;
  border-bottom-color: #0a4d2c;
}

.walk-tabs-bar button:focus-visible {
  outline: 2px solid #0a4d2c;
  outline-offset: 4px;
}

.walk-panel {
  padding-block: 0;
}

.walk-panel .step-copy {
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.walk-panel .step-body {
  padding: 0;
}

.walk-tabs-section .walk-panel .step-copy {
  aspect-ratio: auto;
}

.walk-panel[hidden] {
  display: none;
}

/* 3. Traffic share chart */
.traffic-shift {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  align-items: center;
  gap: 20px clamp(40px, 6vw, 96px);
  padding-block: clamp(8px, 2vw, 32px) var(--meadow-grid);
  scroll-margin-top: 84px;
}

.traffic-copy h2,
.proof-head {
  margin: 0;
  font-size: clamp(34px, 3.47vw, 50px);
  font-weight: 500;
  line-height: 1.12;
  letter-spacing: var(--title-tracking);
}

.traffic-lede {
  max-width: 36ch;
  margin: 20px 0 0;
  font-size: clamp(18px, 1.5vw, 21px);
  line-height: 1.35;
  color: var(--description-color);
}

.traffic-facts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
  margin-top: clamp(28px, 3vw, 44px);
  padding-top: 24px;
  border-top: 1px solid rgba(17, 22, 19, 0.12);
}

.traffic-facts p {
  display: grid;
  align-content: start;
  gap: 8px;
  margin: 0;
}

.traffic-facts strong {
  font-size: clamp(40px, 3.6vw, 52px);
  font-weight: 500;
  line-height: 1;
  letter-spacing: -1px;
  color: #0a4d2c;
}

.traffic-facts span {
  font-size: 17px;
  line-height: 1.3;
  color: var(--description-color);
}

.traffic-figure {
  --auto: #007c55;
  --human: #8a918b;
  --end-gutter: 48px;
  position: relative;
  margin: 0;
  padding: clamp(16px, 1.8vw, 24px) clamp(16px, 1.8vw, 24px) clamp(14px, 1.5vw, 20px);
  background: #ffffff;
}

.traffic-caption {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px 16px;
  margin-bottom: 18px;
}

.traffic-title {
  font-size: 20px;
  line-height: 1.2;
  letter-spacing: -0.3px;
}

.traffic-legend {
  display: flex;
  gap: 16px;
  font: 11px/1.4 var(--mono);
  color: var(--description-color);
}

.traffic-key {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.traffic-key::before {
  content: "";
  width: 14px;
  height: 2px;
  border-radius: 1px;
  background: var(--key);
}

.traffic-key.is-auto {
  --key: var(--auto);
}

.traffic-key.is-human {
  --key: var(--human);
}

.traffic-plot {
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr);
  grid-template-rows: clamp(220px, 23vw, 320px) auto;
  column-gap: 10px;
}

.traffic-y,
.traffic-x {
  position: relative;
  font: 11px/1 var(--mono);
  font-variant-numeric: tabular-nums;
  color: #7b817d;
}

.traffic-y span {
  position: absolute;
  right: 0;
  transform: translateY(-50%);
}

.traffic-canvas {
  position: relative;
  margin-right: var(--end-gutter);
  touch-action: pan-y;
}

.traffic-canvas svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
}

.traffic-grid path {
  fill: none;
  stroke: #e7eae5;
  stroke-width: 1;
  vector-effect: non-scaling-stroke;
}

.traffic-grid .is-half {
  stroke: #c5cbc6;
}

.traffic-lines polyline {
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  vector-effect: non-scaling-stroke;
}

.traffic-lines .is-human {
  stroke: var(--human);
}

.traffic-lines .is-auto {
  stroke: var(--auto);
  stroke-width: 2.5;
}

.traffic-dot {
  position: absolute;
  left: 100%;
  width: 10px;
  height: 10px;
  margin: -5px 0 0 -5px;
  border-radius: 50%;
  background: var(--key);
  box-shadow: 0 0 0 2px #ffffff;
}

.traffic-dot.is-auto {
  --key: var(--auto);
}

.traffic-dot.is-human {
  --key: var(--human);
}

.traffic-end {
  position: absolute;
  left: calc(100% + 13px);
  transform: translateY(-50%);
  font-size: 18px;
  font-weight: 600;
  line-height: 1;
  color: #0c110e;
}

.traffic-end.is-human {
  color: var(--description-color);
}

.traffic-cross {
  position: absolute;
  top: 7%;
  bottom: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  transform: translateX(-50%);
  font: 11px/1.35 var(--mono);
  color: var(--description-color);
  text-align: center;
  white-space: nowrap;
}

.traffic-cross b {
  font-weight: 600;
  color: #0c110e;
}

.traffic-cross::after {
  content: "";
  flex: 1;
  width: 1px;
  margin-top: 6px;
  background: #9aa19c;
}

.traffic-x {
  grid-column: 2;
  height: 12px;
  margin: 12px var(--end-gutter) 0 0;
}

.traffic-x span {
  position: absolute;
  transform: translateX(-50%);
}

.traffic-hover {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.traffic-rule {
  position: absolute;
  top: 0;
  bottom: 0;
  left: var(--x);
  width: 1px;
  background: #9aa19c;
}

.traffic-tip {
  position: absolute;
  top: 6px;
  left: var(--x);
  display: grid;
  gap: 3px;
  padding: 10px 12px;
  border: 1px solid #d7ded3;
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 8px 24px rgba(12, 17, 14, 0.12);
  font: 11px/1.4 var(--mono);
  color: var(--description-color);
  white-space: nowrap;
  transform: translateX(12px);
}

.traffic-hover.is-flipped .traffic-tip {
  transform: translateX(calc(-100% - 12px));
}

.traffic-tip b {
  font-weight: 600;
  color: #0c110e;
}

.traffic-tip-row {
  display: flex;
  align-items: center;
  gap: 6px;
}

.traffic-tip-row b {
  min-width: 5ch;
}

.traffic-sources {
  grid-column: 1 / -1;
  margin: 8px 0 0;
  font: 11px/1.6 var(--mono);
  color: #7b817d;
}

.traffic-sources a {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.traffic-sources a:hover {
  color: #0c110e;
}

.traffic-figure.is-armed .traffic-lines {
  clip-path: inset(-8px 100% -8px 0);
}

.traffic-figure.is-armed .traffic-dot,
.traffic-figure.is-armed .traffic-end,
.traffic-figure.is-armed .traffic-cross {
  opacity: 0;
}

.traffic-figure.is-in .traffic-lines {
  clip-path: inset(-8px -8px -8px 0);
  transition: clip-path 1.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.traffic-figure.is-in .traffic-dot,
.traffic-figure.is-in .traffic-end,
.traffic-figure.is-in .traffic-cross {
  opacity: 1;
  transition: opacity 0.4s ease 1.25s;
}

.traffic-figure.is-in .traffic-cross {
  transition-delay: 1s;
}

/* 3b. Case studies */
.proof-head {
  margin-bottom: clamp(28px, 3vw, 44px);
}

.proof-lead {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 440px);
  align-items: end;
  justify-content: space-between;
  gap: clamp(32px, 5vw, 80px);
  padding: clamp(28px, 3.4vw, 52px);
  border-radius: 12px;
  background: linear-gradient(135deg, #0d3a32b8, #06261bd1), url('assets/story/feature-forest.webp') center / cover;
  color: #ffffff;
  text-decoration: none;
}

.proof-lead:focus-visible,
.proof-item:focus-visible {
  outline: 2px solid #0a4d2c;
  outline-offset: 4px;
}

.proof-lead p {
  margin: 0;
}

.proof-client {
  display: grid;
  gap: 4px;
}

.proof-client b {
  font-size: clamp(22px, 1.9vw, 28px);
  font-weight: 500;
  line-height: 1.1;
  letter-spacing: -0.4px;
}

.proof-client span,
.proof-dots-label {
  font: 12px/1.5 var(--mono);
  color: #d5e0d8;
}

.proof-lead .proof-figure {
  margin-top: clamp(28px, 3.2vw, 48px);
  font-size: clamp(96px, 11vw, 168px);
  font-weight: 500;
  line-height: 0.86;
  letter-spacing: -4px;
}

.proof-lead .proof-claim {
  max-width: 22ch;
  margin-top: 16px;
  font-size: clamp(22px, 2vw, 30px);
  line-height: 1.15;
  letter-spacing: -0.4px;
}

.proof-read {
  display: inline-block;
  margin-top: 28px;
  font: 12px/1.4 var(--mono);
  text-decoration: underline;
  text-underline-offset: 4px;
}

.proof-lead:hover .proof-read {
  text-decoration-thickness: 2px;
}

.proof-lead-data {
  display: grid;
  gap: 22px;
  padding-top: 24px;
  border-top: 1px solid #ffffff3d;
}

.proof-dots {
  display: grid;
  gap: 22px;
}

.proof-dots-row {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: baseline;
  gap: 10px 16px;
}

.proof-dots-value {
  font-size: 22px;
  font-weight: 500;
  line-height: 1;
  letter-spacing: -0.3px;
}

.proof-dots-marks {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(15, minmax(0, 1fr));
  gap: clamp(4px, 0.6vw, 8px);
}

.proof-dots-marks i {
  aspect-ratio: 1;
  border-radius: 50%;
  box-shadow: inset 0 0 0 1.5px #ffffff73;
}

.proof-dots-marks .is-on {
  background: #dbff65;
  box-shadow: none;
}

.proof-lead .proof-note {
  font-size: 16px;
  line-height: 1.35;
  color: #e3ebe5;
}

.proof-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(24px, 3vw, 40px);
  margin-top: clamp(32px, 3.6vw, 52px);
}

.proof-item {
  display: grid;
  grid-template-rows: auto 1fr auto;
  gap: 12px;
  padding-top: 22px;
  border-top: 1px solid rgba(17, 22, 19, 0.18);
  color: #0c110e;
  text-decoration: none;
  transition: border-color 0.2s ease;
}

.proof-number {
  font-size: clamp(56px, 5.2vw, 76px);
  font-weight: 500;
  line-height: 0.95;
  letter-spacing: -2px;
  color: #0a4d2c;
}

.proof-text {
  font-size: clamp(17px, 1.35vw, 19px);
  line-height: 1.3;
  color: #2c322e;
}

.proof-who {
  display: grid;
  gap: 2px;
  margin-top: 10px;
}

.proof-who b {
  font-size: 18px;
  font-weight: 600;
  line-height: 1.2;
}

.proof-who span {
  font: 11px/1.5 var(--mono);
  color: var(--description-color);
}

.proof-item:hover {
  border-top-color: #0a4d2c;
}

.proof-item:hover .proof-who b {
  text-decoration: underline;
  text-underline-offset: 4px;
}

@media (max-width: 900px) {
  .traffic-shift,
  .proof-lead {
    grid-template-columns: minmax(0, 1fr);
  }

  .traffic-shift {
    gap: 28px;
  }

  .traffic-copy {
    display: contents;
  }

  .traffic-lede {
    margin-top: -8px;
  }

  .traffic-figure {
    order: 1;
  }

  .traffic-facts {
    order: 2;
    margin-top: 0;
    padding-top: 0;
    border-top: 0;
  }

  .traffic-sources {
    order: 3;
    margin-top: -4px;
  }

  .proof-lead {
    align-items: start;
  }

  .proof-lead-data {
    max-width: 440px;
  }

  .proof-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 599px) {
  .traffic-figure {
    --end-gutter: 42px;
  }

  .traffic-cross span {
    display: none;
  }

  .traffic-end {
    font-size: 16px;
  }

  .proof-lead .proof-figure {
    letter-spacing: -3px;
  }

  .proof-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 0;
  }

  .proof-item {
    grid-template-columns: 104px minmax(0, 1fr);
    grid-template-rows: auto auto;
    column-gap: 16px;
    row-gap: 8px;
    padding-block: 18px;
  }

  .proof-number {
    grid-row: 1 / span 2;
    font-size: 50px;
    letter-spacing: -1.5px;
  }

  .proof-who {
    margin-top: 0;
  }
}

/* 4. Pricing and open FAQ */
.home-chapter {
  padding-block: var(--chapter-space);
  scroll-margin-top: 84px;
}

.home-plans-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px 32px;
  margin-bottom: clamp(28px, 3vw, 40px);
}

.home-plans-head h2 {
  margin: 0;
  font-size: clamp(38px, 4vw, 58px);
  font-weight: 500;
  line-height: 0.98;
  letter-spacing: var(--title-tracking);
}

.home-plans-intro p {
  max-width: 48ch;
  margin: 12px 0 0;
  font-size: 19px;
  line-height: 1.35;
}

.home-plans-controls {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px 24px;
}

.home-open-faq {
  scroll-margin-top: 84px;
  margin-top: 0;
  padding-block: clamp(36px, 4.5vw, 64px) var(--chapter-space);
  border-top: 1px solid #e3e5e0;
}

/* 5. Mobile adjustments */
/* The AI view divider rests at 93% of the width, or 40px from the right edge on narrow screens. */
.sky-hero .hero-layout {
  padding-inline: calc(7% + 40px);
}

@media (max-width: 599px) {
  .sky-hero .hero-layout {
    padding-inline: 24px 56px;
  }
}

@media (max-width: 639px) {
  .hero-url-bar {
    flex-direction: column;
    align-items: stretch;
    border-radius: 16px;
    padding: 10px;
    gap: 8px;
  }

  .hero-url-bar input {
    padding: 8px 6px;
    font-size: 16px;
  }

  .hero-url-submit {
    width: 100%;
    padding: 13px 18px;
  }

  .walk-tabs-bar {
    flex-wrap: nowrap;
    gap: 16px;
    overflow-x: auto;
    scrollbar-width: none;
  }

  .walk-tabs-bar button {
    flex: none;
    font-size: 14px;
    white-space: nowrap;
  }
}
