/* AutoSteers - tokens */
:root {
  --paper: #F4F7F6;      /* page: cool paper white */
  --sheet: #FFFFFF;      /* document sheets, panels */
  --ink: #0E2A33;        /* headings, dark band */
  --ink-2: #3B5560;      /* body text */
  --ink-3: #6B828B;      /* quiet text */
  --teal: #0F8B7E;       /* brand accent, actions */
  --teal-deep: #0B6E64;
  --mint: #E2F1EC;       /* tint sections */
  --line: #D6E0DD;

  --display: "Bricolage Grotesque", "Plus Jakarta Sans", system-ui, sans-serif;
  --body: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", sans-serif;

  --wrap: 1160px;
  --wrap-wide: 1320px;   /* menu bar + hero, so the video can be big */
  --gutter: clamp(16px, 4vw, 40px);
  --radius-lg: 22px;
  --radius-md: 14px;
  --radius-sm: 8px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink-2);
  font-family: var(--body);
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 { color: var(--ink); font-family: var(--display); margin: 0; }
h1 { font-size: clamp(2.2rem, 4.3vw, 3.55rem); line-height: 1.05; font-weight: 800; letter-spacing: -0.025em; }
h2 { font-size: clamp(1.75rem, 3.2vw, 2.6rem); line-height: 1.1; font-weight: 700; letter-spacing: -0.02em; }
h3 { font-size: 1.22rem; line-height: 1.25; font-weight: 700; letter-spacing: -0.01em; }
p { margin: 0; }
a { color: var(--teal-deep); }
a:hover { color: var(--ink); }

:focus-visible { outline: 3px solid var(--teal); outline-offset: 3px; border-radius: 6px; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }

.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: #fff; padding: 8px 14px; border-radius: 8px; z-index: 100; }
.skip:focus { left: 8px; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 52px; padding: 0 22px;
  background: var(--teal); color: #fff;
  font: 600 1rem/1 var(--body); text-decoration: none;
  border-radius: 999px; border: 2px solid var(--teal);
  transition: background-color .15s ease, border-color .15s ease, color .15s ease;
}
.btn:hover { background: var(--teal-deep); border-color: var(--teal-deep); color: #fff; }
.btn-small { min-height: 42px; padding: 0 18px; font-size: .95rem; }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { background: var(--sheet); color: var(--ink); border-color: var(--ink-3); }
.btn-light { background: #fff; color: var(--ink); border-color: #fff; }
.btn-light:hover { background: var(--mint); border-color: var(--mint); color: var(--ink); }
.btn-outline-light { background: transparent; color: #fff; border-color: rgba(255,255,255,.4); }
.btn-outline-light:hover { background: rgba(255,255,255,.08); border-color: #fff; color: #fff; }

/* Nav: floating pill */
.nav-wrap { position: sticky; top: 0; z-index: 50; padding: 14px var(--gutter) 0; }
.nav {
  max-width: var(--wrap-wide); margin: 0 auto;
  display: flex; align-items: center; gap: 24px;
  padding: 8px 8px 8px 18px;
  background: rgba(255,255,255,.86);
  -webkit-backdrop-filter: saturate(1.4) blur(12px); backdrop-filter: saturate(1.4) blur(12px);
  border: 1px solid var(--line); border-radius: 999px;
}
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font: 800 1.2rem/1 var(--display); letter-spacing: -0.01em; }
.brand-mark { width: 30px; height: 30px; }
.nav-links { display: flex; gap: 22px; list-style: none; margin: 0 0 0 auto; padding: 0; }
.nav-links a { color: var(--ink-2); text-decoration: none; font-weight: 500; font-size: .96rem; }
.nav-links a:hover { color: var(--ink); }
@media (max-width: 760px) {
  .nav-links { display: none; }
  .nav .btn-small { margin-left: auto; }
}

/* Hero: two columns, text left (fixed width), video right (takes all the rest) */
.hero { padding: clamp(40px, 5vw, 72px) 0 clamp(56px, 8vw, 104px); }
.hero .wrap.hero-grid { max-width: calc(var(--wrap-wide) + 2 * var(--gutter)); } /* edges line up with the menu bar */
.hero-grid {
  display: grid; grid-template-columns: minmax(0, 29rem) minmax(0, 1fr);
  gap: clamp(32px, 3.5vw, 52px); align-items: center;
}
.hero-copy h1 { font-size: clamp(2.2rem, 3.2vw, 2.9rem); }

/* Headline animations, in order:
   1. words rise in one by one (blur to sharp)
   2. mint marker sweeps across "tires you most."
   3. hand-drawn underline draws under "automate it."
   4. a quick light shine passes over "We'll automate it." every 2.4 s (repeats) */
.hero-title { line-height: 1.07; letter-spacing: -0.03em; }
.hero-title .w {
  display: inline-block;
  animation: word-in .65s cubic-bezier(.2, .75, .25, 1) calc(var(--i) * 65ms + 100ms) both;
}
.hero-title .hl {
  background-image: linear-gradient(rgba(127, 216, 201, .62), rgba(127, 216, 201, .62));
  background-repeat: no-repeat;
  background-position: 0 86%;
  background-size: 100% .44em;
  -webkit-box-decoration-break: clone; box-decoration-break: clone;
  padding: 0 .1em; margin: 0 -.1em; border-radius: .14em;
  animation: hl-sweep .8s cubic-bezier(.2, .7, .2, 1) 1.05s both;
}
.hero-title .accent .w {
  background-image: linear-gradient(100deg, var(--teal) 0%, var(--teal) 40%, #4FD8C3 50%, var(--teal) 60%, var(--teal) 100%);
  background-size: 300% 100%;
  background-position: 100% 0;
  -webkit-background-clip: text; background-clip: text;
  color: var(--teal); -webkit-text-fill-color: transparent;
  animation:
    word-in .65s cubic-bezier(.2, .75, .25, 1) calc(var(--i) * 65ms + 100ms) both,
    shine 2.4s ease-in-out calc(2.6s + (var(--i) - 11) * 80ms) infinite;
}
.hero-title .swoosh { position: relative; white-space: nowrap; }
.hero-title .swoosh::after {
  content: ""; position: absolute; left: -3%; right: -4%; bottom: -.26em; height: .34em;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 300 26' preserveAspectRatio='none'%3E%3Cpath d='M4 15 C 70 5, 170 3, 296 11' fill='none' stroke='%237FD8C9' stroke-width='7' stroke-linecap='round'/%3E%3Cpath d='M46 22 C 120 15, 200 14, 262 18' fill='none' stroke='%237FD8C9' stroke-width='4.5' stroke-linecap='round'/%3E%3C/svg%3E") no-repeat center / 100% 100%;
  animation: swoosh-draw .7s cubic-bezier(.3, .6, .2, 1) 1.75s both;
}
@keyframes word-in { from { opacity: 0; transform: translateY(.45em); filter: blur(6px); } to { opacity: 1; transform: none; filter: none; } }
@keyframes hl-sweep { from { background-size: 0% .44em; } to { background-size: 100% .44em; } }
@keyframes swoosh-draw { from { clip-path: inset(0 100% 0 0); } to { clip-path: inset(0 0 0 0); } }
@keyframes shine { 0% { background-position: 100% 0; } 25%, 100% { background-position: 0% 0; } }
.lede { margin-top: 30px; font-size: 1.12rem; line-height: 1.55; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }
.fine { margin-top: 16px; font-size: .92rem; color: var(--ink-3); }
@media (max-width: 1200px) {
  .hero-grid { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); }
}
@media (max-width: 960px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-copy { max-width: 40rem; }
}

/* Hero video: big, no frame or border, plays by itself */
.testimonial { margin: 0 0 clamp(28px, 4vw, 56px); } /* space under the video */
.video-frame { position: relative; }
.video-frame video,
.video-frame iframe {
  display: block; width: 100%; height: auto; border: 0;
  border-radius: var(--radius-lg);
  box-shadow: 0 40px 80px -40px rgba(14, 42, 51, .45);
}
.video-frame iframe { aspect-ratio: 16 / 9; }
.video-placeholder {
  aspect-ratio: 16 / 9;
  background: var(--ink);
  border-radius: var(--radius-lg);
  display: grid; place-content: center; justify-items: center; gap: 14px;
  color: #A9C3C9; text-align: center; padding: 24px;
}
.video-placeholder svg { width: 64px; height: 64px; }
.video-placeholder p { font-weight: 600; color: #fff; }
.video-placeholder span { font-size: .9rem; }
.testimonial figcaption { margin-top: 14px; font-size: .95rem; color: var(--ink-3); }
.testimonial figcaption strong { color: var(--ink); }

/* Sections */
.section { padding: clamp(64px, 9vw, 112px) 0; }
.section-tint { background: var(--mint); }
.section-head { max-width: 36rem; }
.section-head p { margin-top: 14px; font-size: 1.1rem; }

/* Savings calculator */
.calc { margin-top: 40px; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(20px, 3vw, 32px); align-items: stretch; }
.calc-inputs {
  background: var(--sheet); border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: clamp(26px, 3vw, 40px); display: grid; gap: 32px; align-content: space-evenly;
}
.calc-label { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; }
.calc-label label { font-weight: 600; color: var(--ink); }
.calc-label output { font: 700 1.3rem/1 var(--display); color: var(--teal-deep); white-space: nowrap; }
.calc-hint { margin-top: 10px; font-size: .88rem; color: var(--ink-3); }
.calc input[type="range"] {
  -webkit-appearance: none; appearance: none; display: block;
  width: 100%; height: 8px; margin: 16px 0 0; border-radius: 999px; cursor: pointer;
  background: linear-gradient(90deg, var(--teal) var(--p, 50%), var(--line) var(--p, 50%));
}
.calc input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none; appearance: none; width: 26px; height: 26px; border-radius: 50%;
  background: #fff; border: 3px solid var(--teal); box-shadow: 0 2px 8px rgba(14, 42, 51, .25);
}
.calc input[type="range"]::-moz-range-thumb {
  width: 20px; height: 20px; border-radius: 50%;
  background: #fff; border: 3px solid var(--teal); box-shadow: 0 2px 8px rgba(14, 42, 51, .25);
}
.calc input[type="range"]::-moz-range-track { background: transparent; }

.calc-result {
  background: var(--ink); color: #C9DADF; border-radius: var(--radius-lg);
  padding: clamp(24px, 3vw, 40px); display: flex; flex-direction: column;
}
.calc-kicker { font-weight: 600; color: #A9C3C9; }
.calc-big { margin-top: 8px; font: 800 clamp(2.6rem, 5vw, 3.9rem)/1 var(--display); letter-spacing: -0.02em; color: #7FD8C9; font-variant-numeric: tabular-nums; }
.calc-lakh { margin-top: 8px; color: #A9C3C9; min-height: 1.5em; }
.calc-stats {
  margin: 24px 0 0; padding-top: 20px; border-top: 1px solid rgba(255, 255, 255, .12);
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px;
}
.calc-stats dt { font-size: .84rem; color: #A9C3C9; }
.calc-stats dd { margin: 4px 0 0; font: 700 1.15rem/1.25 var(--display); color: #fff; font-variant-numeric: tabular-nums; }
.calc-247 { margin-top: 22px; padding-top: 20px; border-top: 1px solid rgba(255, 255, 255, .12); }
.bar { display: grid; grid-template-columns: 6.2rem minmax(0, 1fr) 9.5rem; align-items: center; gap: 12px; margin-top: 10px; font-size: .9rem; }
.bar i { position: relative; display: block; height: 10px; border-radius: 999px; background: rgba(255, 255, 255, .1); overflow: hidden; }
.bar i::after { content: ""; position: absolute; inset: 0 auto 0 0; width: var(--w); border-radius: inherit; background: #7FD8C9; }
.bar-person i::after { background: #6B828B; }
.bar b { color: #fff; font-weight: 600; text-align: right; }
.calc-submit { justify-self: start; min-width: 11rem; }
.calc-result { scroll-margin-top: 96px; } /* keeps the results below the sticky menu bar */
.calc [hidden] { display: none !important; }
.calc-wait { margin: auto; display: grid; justify-items: center; gap: 10px; text-align: center; color: #A9C3C9; padding: 24px 0; }
.calc-wait svg { width: 56px; height: 56px; margin-bottom: 6px; }
.calc-wait strong { font: 700 1.45rem/1.2 var(--display); color: #fff; }
.calc-kicker:focus { outline: none; }
.calc-result.is-shown .calc-out { animation: calc-in .5s cubic-bezier(.2, .7, .2, 1) both; }
.calc-result.is-shown .bar i::after { animation: bar-grow 1.1s cubic-bezier(.2, .7, .2, 1) .25s both; }
@keyframes calc-in { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes bar-grow { from { width: 0; } }
.calc-note { margin-top: 14px; font-size: .84rem; color: #8FA9B0; }
@media (max-width: 900px) { .calc { grid-template-columns: 1fr; } }
@media (max-width: 520px) {
  .calc-stats { grid-template-columns: 1fr; }
  .bar { grid-template-columns: 5.2rem minmax(0, 1fr); }
  .bar b { grid-column: 2; text-align: left; margin-top: -4px; font-weight: 500; font-size: .84rem; }
}

/* What we automate: big heading, then 4 service cards */
.automate-title { font-size: clamp(2.4rem, 5.2vw, 4.3rem); line-height: 1.02; font-weight: 800; letter-spacing: -0.03em; max-width: 14ch; }

.auto-cards { list-style: none; margin: 44px 0 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.auto-card {
  position: relative; overflow: hidden;
  background: #fff; border: 1px solid rgba(14, 42, 51, .08); border-radius: var(--radius-lg);
  padding: clamp(24px, 3vw, 38px);
  box-shadow: 0 1px 2px rgba(14, 42, 51, .05);
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.auto-card::before { /* teal line that grows along the top on hover */
  content: ""; position: absolute; left: 0; top: 0; height: 4px; width: 0;
  background: linear-gradient(90deg, var(--teal), #7FD8C9); transition: width .4s ease;
}
.auto-card:hover { transform: translateY(-4px); border-color: rgba(15, 139, 126, .3); box-shadow: 0 28px 50px -30px rgba(14, 42, 51, .4); }
.auto-card:hover::before { width: 100%; }
.auto-icon {
  display: grid; place-items: center; width: 58px; height: 58px; margin-bottom: 24px;
  border-radius: 17px; background: var(--mint); color: var(--teal-deep);
  transition: background-color .25s ease, color .25s ease;
}
.auto-card:hover .auto-icon { background: var(--teal); color: #fff; }
.auto-icon svg { width: 28px; height: 28px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.auto-card h3 { font-size: 1.35rem; }
.auto-card p { margin-top: 10px; max-width: 32rem; }

/* cards rise in one by one when the section scrolls into view (JS adds .reveal, then .in) */
.auto-cards.reveal:not(.in) .auto-card { opacity: 0; }
.auto-cards.reveal.in .auto-card { animation: card-in .7s cubic-bezier(.2, .7, .2, 1) calc(var(--i) * 120ms) backwards; }
@keyframes card-in { from { opacity: 0; transform: translateY(28px); } }

@media (max-width: 700px) {
  .auto-cards { grid-template-columns: 1fr; }
}

/* Proof */
.proof { background: var(--sheet); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.proof-grid { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); gap: clamp(28px, 6vw, 80px); align-items: start; }
.proof-text { margin-top: 18px; font-size: 1.2rem; line-height: 1.6; max-width: 38rem; color: var(--ink); }
.proof-list { list-style: none; margin: 0; padding: 0; }
.proof-list li { position: relative; padding: 12px 0 12px 32px; border-bottom: 1px solid var(--line); font-weight: 500; }
.proof-list li::before {
  content: ""; position: absolute; left: 0; top: 15px; width: 18px; height: 18px; border-radius: 50%;
  background: var(--mint) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4 8.5l2.5 2.5L12 5.5' fill='none' stroke='%230B6E64' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/12px no-repeat;
}
@media (max-width: 860px) { .proof-grid { grid-template-columns: 1fr; } }

/* FAQ */
.faq-grid { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(28px, 6vw, 80px); align-items: start; }
.faq details { border-bottom: 1px solid var(--line); }
.faq details:first-child { border-top: 1px solid var(--line); }
.faq summary {
  list-style: none; cursor: pointer;
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
  padding: 20px 0; font: 700 1.1rem/1.3 var(--display); color: var(--ink);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; width: 12px; height: 12px; flex: none;
  border-right: 2px solid var(--ink-3); border-bottom: 2px solid var(--ink-3);
  transform: rotate(45deg) translateY(-3px); transition: transform .2s ease;
}
.faq details[open] summary::after { transform: rotate(225deg) translateY(-2px); }
.faq details p { padding: 0 0 20px; max-width: 40rem; }
@media (max-width: 860px) { .faq-grid { grid-template-columns: 1fr; } }

/* Final CTA band */
.cta { background: var(--ink); color: #C9DADF; padding: clamp(64px, 9vw, 104px) 0; }
.cta h2 { color: #fff; max-width: 20ch; font-size: clamp(2rem, 4.2vw, 3.3rem); }
.cta-inner { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 32px; }
.cta-actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* Footer */
.footer { padding: 28px 0 40px; font-size: .92rem; color: var(--ink-3); }
.footer-inner { display: flex; flex-wrap: wrap; gap: 10px 32px; }
.footer strong { color: var(--ink); }

@media (prefers-reduced-motion: reduce) {
  .btn, .faq summary::after { transition: none; }
  .hero-title .w, .hero-title .accent .w, .hero-title .hl, .hero-title .swoosh::after { animation: none; }
  .calc-result.is-shown .calc-out, .calc-result.is-shown .bar i::after { animation: none; }
  .auto-card, .auto-card::before, .auto-icon { transition: none; }
  .auto-card:hover { transform: none; }
}

/* Floating WhatsApp button, bottom right */
.wa-float {
  position: fixed; right: clamp(16px, 2.5vw, 28px); bottom: clamp(16px, 2.5vw, 28px); z-index: 60;
  display: block; text-decoration: none; border-radius: 50%;
  animation: wa-pop .5s cubic-bezier(.2, .8, .3, 1.3) 1.2s both;
}
.wa-float-icon {
  position: relative; display: grid; place-items: center;
  width: 62px; height: 62px; border-radius: 50%;
  background: #25D366; box-shadow: 0 10px 24px -6px rgba(14, 42, 51, .45);
  transition: transform .2s ease, background-color .2s ease;
}
.wa-float-icon::before { /* soft pulse ring */
  content: ""; position: absolute; inset: 0; border-radius: 50%;
  border: 2px solid #25D366; animation: wa-pulse 2.4s ease-out 2s infinite;
}
.wa-float-icon svg { width: 32px; height: 32px; fill: #fff; }
.wa-float-label { /* sits to the left of the circle, outside the clickable box */
  position: absolute; right: calc(100% + 12px); top: 50%; margin-top: -19px;
  padding: 9px 14px; border-radius: 999px; background: #fff; color: var(--ink);
  font-weight: 600; font-size: .92rem; white-space: nowrap;
  box-shadow: 0 8px 22px -8px rgba(14, 42, 51, .35);
  opacity: 0; transform: translateX(8px); pointer-events: none;
  transition: opacity .2s ease, transform .2s ease;
}
.wa-float:hover .wa-float-icon, .wa-float:focus-visible .wa-float-icon { transform: scale(1.07); background: #1EBE5A; }
.wa-float:hover .wa-float-label, .wa-float:focus-visible .wa-float-label { opacity: 1; transform: none; }
.wa-float:focus-visible { outline: none; }
.wa-float:focus-visible .wa-float-icon { outline: 3px solid var(--teal); outline-offset: 3px; }
@keyframes wa-pop { from { opacity: 0; transform: scale(.5) translateY(20px); } }
@keyframes wa-pulse { 0% { transform: scale(1); opacity: .7; } 100% { transform: scale(1.6); opacity: 0; } }
@media (max-width: 560px) {
  .wa-float-icon { width: 56px; height: 56px; }
  .wa-float-icon svg { width: 29px; height: 29px; }
  .wa-float-label { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .wa-float, .wa-float-icon::before { animation: none; }
}
