/* ==========================================================
   Drive Digital — style.css
   ========================================================== */

:root {
  /* Brand */
  --green-900: #121a13;
  --green-800: #19241a;
  --green-700: #253025;
  --green-600: #2f3d2f;
  --accent: #86c47e;
  --accent-soft: #b7ea7c;
  --ink: #f5ffe9;
  --ink-muted: rgba(245, 255, 233, 0.62);
  --ink-faint: rgba(245, 255, 233, 0.38);
  --line: rgba(245, 255, 233, 0.12);

  /* Type */
  --font-display: "Host Grotesk", "Geist", system-ui, sans-serif;
  --font-body: "Geist", system-ui, -apple-system, "Segoe UI", sans-serif;

  /* Layout */
  --gutter: clamp(16px, 4vw, 40px);
  --max: 1360px;
  --section-y: clamp(96px, 14vw, 180px);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  -webkit-tap-highlight-color: transparent;
  background: var(--green-800);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
  text-decoration: none;
}

h1,
h2,
h3,
h4,
p,
ul,
ol,
dl,
dd {
  margin: 0;
}

ul,
ol {
  padding: 0;
  list-style: none;
}

em {
  font-style: normal;
  color: var(--accent);
}

::selection {
  background: var(--accent);
  color: var(--green-900);
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -60px;
  z-index: 100;
  padding: 10px 16px;
  background: var(--accent);
  color: var(--green-900);
  border-radius: 80px;
  font-weight: 600;
}

.skip-link:focus {
  top: 16px;
}

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

.grid-12 {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: 24px;
}

/* ---------- Shared type ---------- */

.display {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(52px, 8.4vw, 120px);
  line-height: 0.92;
  letter-spacing: -0.045em;
}

.label,
.eyebrow {
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-muted);
}

.section {
  padding-block: var(--section-y);
  border-top: 1px solid var(--line);
}

.section-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 32px 64px;
  flex-wrap: wrap;
  margin-bottom: clamp(48px, 7vw, 96px);
}

.section-head-side {
  max-width: 380px;
  display: grid;
  gap: 20px;
  color: var(--ink-muted);
}

.link-arrow {
  justify-self: start;
  color: var(--ink);
  font-weight: 500;
  border-bottom: 1px solid var(--line);
  padding-bottom: 4px;
  transition: border-color 0.3s, color 0.3s;
}

.link-arrow:hover {
  color: var(--accent);
  border-color: var(--accent);
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 52px;
  padding: 14px 28px;
  border-radius: 80px;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  transition: background 0.3s, color 0.3s, border-color 0.3s, transform 0.3s var(--ease);
}

@media (hover: hover) {
  .btn:hover {
    transform: translateY(-2px);
  }
}

.btn-primary {
  background: var(--accent);
  color: var(--green-900);
}

.btn-primary:hover {
  background: var(--accent-soft);
}

.btn-ghost {
  border: 1px solid var(--line);
  color: var(--ink);
}

.btn-ghost:hover {
  border-color: var(--ink);
}

/* ---------- Header ---------- */

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  transition: background 0.4s, border-color 0.4s, backdrop-filter 0.4s;
  border-bottom: 1px solid transparent;
}

/* Blur lives on a pseudo-element: backdrop-filter on the header itself would
   become the containing block of the fixed mobile nav and trap it in 76px */
.site-header::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  opacity: 0;
  background: rgba(25, 36, 26, 0.78);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  transition: opacity 0.4s;
}

.site-header.is-scrolled::before {
  opacity: 1;
}

.site-header.is-scrolled {
  border-bottom-color: var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: 76px;
}

.brand {
  position: relative;
  z-index: 2;
}

.brand {
  display: flex;
  align-items: center;
  min-height: 44px;
}

.brand img {
  height: 18px;
  width: auto;
}

.nav {
  display: flex;
  align-items: center;
  gap: 36px;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.nav a {
  color: var(--ink-muted);
  transition: color 0.3s;
}

.nav a:hover {
  color: var(--ink);
}

.nav .nav-cta {
  padding: 10px 20px;
  border-radius: 80px;
  background: var(--ink);
  color: var(--green-900);
  transition: background 0.3s;
}

.nav .nav-cta:hover {
  color: var(--green-900);
  background: var(--accent);
}

.menu-toggle {
  display: none;
  position: relative;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: transparent;
  cursor: pointer;
}

.menu-toggle span {
  position: absolute;
  left: 13px;
  right: 13px;
  height: 1.5px;
  background: var(--ink);
  transition: transform 0.35s var(--ease), top 0.35s var(--ease);
}

.menu-toggle span:first-child {
  top: 17px;
}

.menu-toggle span:last-child {
  top: 25px;
}

.menu-open .menu-toggle span:first-child {
  top: 21px;
  transform: rotate(45deg);
}

.menu-open .menu-toggle span:last-child {
  top: 21px;
  transform: rotate(-45deg);
}

/* ---------- Hero ---------- */

.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: flex-end;
  padding: 140px 0 clamp(48px, 7vw, 88px);
  background:
    radial-gradient(ellipse 80% 60% at 85% 10%, rgba(134, 196, 126, 0.14), transparent 60%),
    var(--green-700);
  overflow: hidden;
}

.hero .wrap {
  position: relative;
}

.hero .eyebrow {
  margin-bottom: clamp(24px, 4vw, 40px);
}

.hero-title {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 1em;
  line-height: 0.88;
  letter-spacing: -0.05em;
}

.hero-title .line {
  display: block;
}

.hero-bottom {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 32px 64px;
  flex-wrap: wrap;
  margin-top: clamp(40px, 6vw, 72px);
  padding-top: 32px;
  border-top: 1px solid var(--line);
}

.hero-lead {
  max-width: 440px;
  font-size: 18px;
  color: var(--ink-muted);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

/* Font-size lives here so the seal can be sized in em, relative to the title */
.hero-heading {
  position: relative;
  font-size: clamp(56px, 10.2vw, 150px);
}

/* Last title line: "lembram." left, seal pushed to the right edge */
.hero-title .line:last-child {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.3em;
}

/* Never taller than one title line */
.seal {
  position: relative;
  flex: none;
  width: 0.76em;
  aspect-ratio: 1;
  opacity: 0.9;
  pointer-events: none;
}

.seal img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.seal-ring {
  animation: spin 28s linear infinite;
}

.footer-brand img {
  filter: invert(1);
  mix-blend-mode: screen;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* ---------- Marquee ---------- */

.marquee {
  overflow: hidden;
  padding: 22px 0;
  background: var(--accent);
  color: var(--green-900);
}

.marquee-track {
  display: flex;
  width: max-content;
  animation: marquee var(--marquee-time, 30s) linear infinite;
}

.marquee-group {
  display: flex;
  align-items: center;
  gap: 32px;
  padding-right: 32px;
}

.marquee {
  position: relative;
}

/* Pause button for the looping motion (marquee + hero seal): WCAG 2.2.2 */
.motion-toggle {
  position: absolute;
  top: 50%;
  right: var(--gutter);
  z-index: 2;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  margin-top: -22px;
  border: 0;
  border-radius: 50%;
  background: var(--green-900);
  color: var(--ink);
  cursor: pointer;
  box-shadow: 0 0 0 6px var(--accent);
}

.motion-toggle svg,
.story-icons .story-pause svg {
  fill: currentColor;
}

.ico-play,
[aria-pressed="true"] .ico-pause {
  display: none;
}

[aria-pressed="true"] .ico-play {
  display: block;
}

html.motion-paused .marquee-track,
html.motion-paused .seal-ring {
  animation-play-state: paused;
}

.marquee span {
  font-family: var(--font-display);
  font-size: clamp(24px, 3vw, 40px);
  font-weight: 500;
  letter-spacing: -0.03em;
  white-space: nowrap;
}

.marquee i {
  font-style: normal;
  font-size: 18px;
}

@keyframes marquee {
  to {
    transform: translateX(calc(-1 * var(--marquee-shift, 50%)));
  }
}

/* ---------- Intro / Why ---------- */

.intro,
.why {
  border-top: 0;
}

.intro .label,
.why .label {
  grid-column: 1 / span 3;
  padding-top: 0.6em;
}

.intro-body,
.why-body {
  grid-column: 4 / -1;
}

.intro-text,
.why-text {
  font-family: var(--font-display);
  font-size: clamp(28px, 3.6vw, 52px);
  font-weight: 400;
  line-height: 1.12;
  letter-spacing: -0.03em;
}

.intro-sub {
  margin-top: 40px;
  max-width: 460px;
  font-size: 18px;
  color: var(--ink-muted);
}

.why {
  background: var(--green-700);
}

.stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px;
  margin-top: clamp(56px, 8vw, 104px);
}

.stat {
  display: flex;
  flex-direction: column-reverse;
  gap: 12px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}

.stat dt {
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-muted);
}

.stat dd {
  font-family: var(--font-display);
  font-size: clamp(56px, 6.4vw, 96px);
  font-weight: 500;
  line-height: 1;
  letter-spacing: -0.05em;
  color: var(--ink);
}

/* ---------- Work ---------- */

.showcase {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 48px clamp(48px, 8vw, 120px);
}

.showcase-lead {
  max-width: 440px;
  margin-top: 32px;
  font-size: 18px;
  color: var(--ink-muted);
}

.showcase-points {
  margin-top: 32px;
  max-width: 440px;
  border-bottom: 1px solid var(--line);
}

.showcase-points li {
  display: flex;
  gap: 14px;
  padding: 14px 0;
  border-top: 1px solid var(--line);
}

.showcase-points li::before {
  content: "✦";
  color: var(--accent);
}

.showcase-actions {
  margin-top: 40px;
}

/* Phone mockup: iPhone 18 Pro Max style (19.5:9, thin bezel, smaller Dynamic Island) */
.phone {
  --frame: var(--green-600);
  --pw: clamp(260px, 26vw, 340px); /* phone width: every frame size derives from it */
  position: relative;
  width: var(--pw);
  aspect-ratio: 9 / 19.5;
  padding: calc(var(--pw) * 0.026);
  border-radius: calc(var(--pw) * 0.165);
  background: #0d130e;
  box-shadow:
    0 0 0 calc(var(--pw) * 0.011) var(--frame),
    0 0 0 calc(var(--pw) * 0.011 + 1px) rgba(245, 255, 233, 0.16),
    inset 0 0 0 1px rgba(245, 255, 233, 0.08),
    0 0 0 calc(var(--pw) * 0.04) rgba(134, 196, 126, 0.06),
    0 40px 100px rgba(0, 0, 0, 0.45);
}

/* Left: Action button + volume up/down */
.phone::before,
.phone::after {
  content: "";
  position: absolute;
  width: calc(var(--pw) * 0.011);
  border-radius: calc(var(--pw) * 0.01);
}

.phone::before {
  left: calc(var(--pw) * -0.022);
  top: 17%;
  height: 27%;
  background: linear-gradient(to bottom,
    var(--frame) 0 15%, transparent 15% 27%,
    var(--frame) 27% 59%, transparent 59% 68%,
    var(--frame) 68% 100%);
}

/* Right: side button + Camera Control */
.phone::after {
  right: calc(var(--pw) * -0.022);
  top: 26%;
  height: 40%;
  background: linear-gradient(to bottom,
    var(--frame) 0 30%, transparent 30% 78%,
    var(--frame) 78% 100%);
}

.phone-screen {
  --story-top: 12.5cqw;
  --bar-h: max(44px, 12.5cqw);
  /* Story fills down to the reply bar, which sits just above the home indicator (no dead band) */
  --story-h: calc(100cqh - var(--story-top) - var(--bar-h) - 10cqw);
  position: relative;
  height: 100%;
  container-type: size;
  border-radius: calc(var(--pw) * 0.14);
  overflow: hidden;
  background: #000;
  isolation: isolate;
}

/* Like Instagram on a tall phone: the story is a 9:16 area under the status bar,
   with the reply bar (our CTA) below it — so 9:16 media is never cropped */
.stories {
  position: absolute;
  top: var(--story-top);
  left: 0;
  right: 0;
  height: var(--story-h);
  border-radius: 12px;
  overflow: hidden;
}

.story,
.story-fallback,
.story video {
  position: absolute;
  inset: 0;
}

.story {
  opacity: 0;
  transition: opacity 0.5s ease;
}

.story.is-active {
  opacity: 1;
}

.story video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 0.4s;
}

.story.has-video video {
  opacity: 1;
}

/* Instagram post as a story: slow zoom while active */
.story-photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1);
}

.story.is-active .story-photo {
  transform: scale(1.08);
  transition: transform var(--story-ms, 5000ms) linear;
}

/* Feed post (4:5) shared into a story: full post as a card over a blurred copy */
.story-blur {
  filter: blur(28px) brightness(0.7) saturate(1.2);
  transform: scale(1.3);
}

.story.is-active .story-blur {
  transform: scale(1.4);
}

.story-post {
  position: absolute;
  top: 50%;
  left: 9%;
  width: 82%;
  height: auto;
  border-radius: 14px;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.35);
  transform: translateY(-50%) scale(0.96);
  opacity: 0;
  transition: transform 0.6s var(--ease), opacity 0.5s;
}

.story.is-active .story-post {
  transform: translateY(-50%) scale(1);
  opacity: 1;
}

/* Keeps the header and button readable over any photo */
.stories::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.45), transparent 22%),
    linear-gradient(0deg, rgba(0, 0, 0, 0.4), transparent 20%);
  opacity: 0;
  transition: opacity 0.4s;
}

.phone.has-photo .stories::after {
  opacity: 1;
}

.story-fallback {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 16px;
  padding: 28px 22px 28px;
}

.story-fallback p {
  font-family: var(--font-display);
  font-size: clamp(34px, 3.4vw, 44px);
  font-weight: 500;
  line-height: 0.95;
  letter-spacing: -0.045em;
}

.story-tag {
  align-self: flex-start;
  padding: 6px 12px;
  border-radius: 80px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border: 1px solid currentColor;
}

.story-a {
  background:
    radial-gradient(circle at 80% 15%, rgba(183, 234, 124, 0.35), transparent 50%),
    var(--green-700);
}

.story-b {
  background: var(--accent);
  color: var(--green-900);
}

.story-b em {
  color: var(--green-600);
}

.story-c {
  background:
    linear-gradient(160deg, var(--green-600), var(--green-900) 70%);
}

.story-d {
  background: var(--ink);
  color: var(--green-900);
}

.story-d em {
  color: #4f8f48;
}

/* Animate the slide text in each time it becomes active */
.story .story-fallback > * {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.6s var(--ease), transform 0.6s var(--ease);
}

.story.is-active .story-fallback > * {
  opacity: 1;
  transform: none;
}

.story.is-active .story-fallback p {
  transition-delay: 0.12s;
}

/* Instagram-like chrome. Sizes use cqw (1% of the phone screen width) so the
   whole UI scales with the mockup from small phones to desktop. */
.status-bar {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 3;
  height: var(--story-top);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 7.5cqw 0 10.5cqw;
  color: #fff;
  font-size: max(12px, 4.4cqw);
  font-weight: 600;
  letter-spacing: -0.01em;
}

/* Dynamic Island, ~35% narrower than the previous generation */
.island {
  position: absolute;
  top: 2.8cqw;
  left: 50%;
  width: 21cqw;
  height: 7.6cqw;
  margin-left: -10.5cqw;
  border-radius: 8cqw;
  background: #000;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.05);
}

.sb-icons {
  display: flex;
  align-items: center;
  gap: 1.6cqw;
}

.sb-icons svg {
  width: auto;
  height: max(9px, 3.6cqw);
  fill: currentColor;
}

.story-bars {
  position: absolute;
  top: calc(var(--story-top) + 2.5cqw);
  left: 2.5cqw;
  right: 2.5cqw;
  z-index: 3;
  display: flex;
  gap: 1.2cqw;
}

.story-bar {
  flex: 1;
  height: 2px;
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.35);
  overflow: hidden;
}

.story-bar i {
  display: block;
  height: 100%;
  width: 100%;
  background: #fff;
  transform: scaleX(0);
  transform-origin: left;
}

.story-bar.is-done i {
  transform: scaleX(1);
}

.story-head {
  position: absolute;
  top: calc(var(--story-top) + 5.5cqw);
  left: 3.5cqw;
  right: 2.5cqw;
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 2.4cqw;
  font-size: max(12px, 4.1cqw);
  color: #fff;
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.35);
}

.story-head .story-icons {
  flex: none;
}

/* Pause/play for the stories: 44px tap area, icon sized like the others */
.story-pause {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  margin: -11px -6px;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  cursor: pointer;
}

.story-icons .story-pause svg {
  width: 6cqw;
  height: 6cqw;
  filter: drop-shadow(0 1px 4px rgba(0, 0, 0, 0.3));
}

.story-head strong {
  min-width: 0;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.story-avatar {
  display: grid;
  place-items: center;
  flex: none;
  width: 10cqw;
  height: 10cqw;
  border-radius: 50%;
  background: var(--green-800);
  overflow: hidden;
}

.story-avatar img {
  width: 70%;
  transform: scale(1.6);
}

.story-time {
  color: rgba(255, 255, 255, 0.75);
  white-space: nowrap;
}

.story-icons {
  display: flex;
  align-items: center;
  gap: 1.5cqw;
  margin-left: auto;
}

.story-icons svg {
  width: 7cqw;
  height: 7cqw;
  fill: currentColor;
  filter: drop-shadow(0 1px 4px rgba(0, 0, 0, 0.3));
}

/* Light slides need dark chrome */
.phone.is-light .story-head {
  color: var(--green-900);
  text-shadow: none;
}

.phone.is-light .story-time {
  color: rgba(18, 26, 19, 0.6);
}

.phone.is-light .story-icons svg {
  filter: none;
}

.phone.is-light .story-bar {
  background: rgba(18, 26, 19, 0.2);
}

.phone.is-light .story-bar i {
  background: var(--green-900);
}

.story-nav {
  position: absolute;
  top: var(--story-top);
  height: var(--story-h);
  z-index: 2;
  width: 40%;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.story-prev {
  left: 0;
}

.story-next {
  right: 0;
}

/* Reply bar right under the story, as in the app: outlined field (opens WhatsApp) + heart + send */
.story-bottom {
  position: absolute;
  left: 3.2cqw;
  right: 3.2cqw;
  top: calc(var(--story-top) + var(--story-h) + 2.6cqw);
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 4.2cqw;
  height: var(--bar-h);
  color: #fff;
}

.story-reply {
  flex: 1;
  min-width: 0;
  display: flex;
  align-items: center;
  height: 100%;
  padding: 0 4.6cqw;
  border-radius: 80px;
  border: 1px solid rgba(255, 255, 255, 0.4);
  color: rgba(255, 255, 255, 0.9);
  font-size: max(12px, 4.3cqw);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  transition: border-color 0.3s, background 0.3s;
}

.story-reply:hover {
  border-color: #fff;
  background: rgba(255, 255, 255, 0.08);
}

/* Name + avatar = link to the post, like tapping a profile in the app */
.story-profile {
  display: flex;
  align-items: center;
  gap: 2.4cqw;
  min-width: 0;
  min-height: 44px;
  color: inherit;
}

.home-indicator {
  position: absolute;
  left: 50%;
  bottom: 2.2cqw;
  z-index: 3;
  width: 36cqw;
  height: max(4px, 1.5cqw);
  margin-left: -18cqw;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.9);
}

.story-ico {
  flex: none;
  width: 7.5cqw;
  height: 7.5cqw;
}

/* Backup: Elfsight feed (?feed=widget) */
.feed-box {
  min-height: clamp(320px, 50vw, 640px);
  padding: clamp(12px, 2vw, 24px);
  border-radius: 24px;
  background: var(--green-700);
  border: 1px solid var(--line);
  overflow: hidden;
}

.feed-box > div {
  max-width: 100%;
}

/* ---------- Process ---------- */

.steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px;
}

.step {
  display: grid;
  align-content: start;
  gap: 16px;
  padding: 28px 0 0;
  border-top: 1px solid var(--line);
}

.step-num,
.service-num,
.faq-num {
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.08em;
  color: var(--accent);
}

.step h3 {
  font-family: var(--font-display);
  font-size: clamp(28px, 2.6vw, 36px);
  font-weight: 500;
  letter-spacing: -0.03em;
  line-height: 1.05;
}

.step p {
  color: var(--ink-muted);
  max-width: 280px;
}

/* ---------- Compare ---------- */

.compare {
  background: var(--green-700);
}

.compare-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.compare-col {
  padding: clamp(28px, 4vw, 48px);
  border-radius: 24px;
}

.compare-col h3 {
  font-family: var(--font-display);
  font-size: clamp(28px, 3vw, 40px);
  font-weight: 500;
  letter-spacing: -0.04em;
  margin-bottom: 32px;
}

.compare-col li {
  display: flex;
  gap: 14px;
  padding: 16px 0;
  border-top: 1px solid currentColor;
  border-top-color: var(--rule);
  font-size: 17px;
}

.compare-col li::before {
  flex: none;
  width: 20px;
  font-weight: 600;
}

.compare-us {
  --rule: rgba(18, 26, 19, 0.16);
  background: var(--accent);
  color: var(--green-900);
}

.compare-us li::before {
  content: "✓";
}

.compare-them {
  --rule: var(--line);
  border: 1px solid var(--line);
  color: var(--ink-muted);
}

.compare-them h3 {
  color: var(--ink);
}

.compare-them li::before {
  content: "—";
  color: var(--ink-faint);
}

/* ---------- Services ---------- */

.service-list {
  border-bottom: 1px solid var(--line);
}

.service {
  display: grid;
  grid-template-columns: 80px minmax(0, 1.1fr) minmax(0, 1fr);
  gap: 24px;
  align-items: baseline;
  padding: clamp(28px, 3.4vw, 44px) 0;
  border-top: 1px solid var(--line);
  transition: padding 0.5s var(--ease);
}

.service h3 {
  font-family: var(--font-display);
  font-size: clamp(36px, 5vw, 72px);
  font-weight: 500;
  line-height: 1;
  letter-spacing: -0.045em;
  transition: color 0.4s, transform 0.5s var(--ease);
}

.service p {
  color: var(--ink-muted);
  max-width: 420px;
}

@media (hover: hover) {
  .service:hover h3 {
    color: var(--accent);
    transform: translateX(12px);
  }
}

/* ---------- FAQ ---------- */

.faq .display {
  grid-column: 1 / span 4;
}

.faq-list {
  grid-column: 5 / -1;
  border-bottom: 1px solid var(--line);
}

.faq-item {
  border-top: 1px solid var(--line);
}

.faq-item summary {
  position: relative;
  display: flex;
  align-items: baseline;
  gap: 24px;
  padding: 28px 56px 28px 0;
  cursor: pointer;
  list-style: none;
  font-family: var(--font-display);
  font-size: clamp(20px, 2vw, 26px);
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.25;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary i {
  position: absolute;
  right: 0;
  top: 50%;
  width: 36px;
  height: 36px;
  margin-top: -18px;
  border: 1px solid var(--line);
  border-radius: 50%;
  transition: transform 0.4s var(--ease), background 0.3s;
}

.faq-item summary i::before,
.faq-item summary i::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 12px;
  height: 1.5px;
  margin: -0.75px 0 0 -6px;
  background: var(--ink);
}

.faq-item summary i::after {
  transform: rotate(90deg);
}

.faq-item[open] summary i {
  transform: rotate(45deg);
  background: var(--accent);
  border-color: var(--accent);
}

.faq-item[open] summary i::before,
.faq-item[open] summary i::after {
  background: var(--green-900);
}

.faq-item p {
  max-width: 560px;
  padding: 0 0 32px 48px;
  color: var(--ink-muted);
}

/* ---------- Final CTA ---------- */

.cta-link {
  display: block;
  background: var(--accent);
  color: var(--green-900);
  transition: background 0.5s;
}

.cta-link:hover {
  background: var(--accent-soft);
}

.cta-inner {
  display: grid;
  gap: 32px;
  padding-block: clamp(88px, 13vw, 168px);
}

.cta-kicker {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.cta-title {
  font-family: var(--font-display);
  font-size: clamp(48px, 8.6vw, 132px);
  font-weight: 500;
  line-height: 0.92;
  letter-spacing: -0.05em;
}

.cta-title em {
  color: var(--green-600);
}

.cta-action {
  justify-self: start;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 52px;
  padding: 14px 28px;
  border-radius: 80px;
  background: var(--green-900);
  color: var(--ink);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  transition: transform 0.4s var(--ease);
}

@media (hover: hover) {
  .cta-link:hover .cta-action {
    transform: translateX(8px);
  }
}

/* ---------- Footer ---------- */

.site-footer {
  padding-top: clamp(48px, 6vw, 72px);
  background: var(--green-900);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 48px 24px;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 24px;
  max-width: 440px;
}

.footer-brand img {
  flex: none;
  width: 96px;
}

.footer-brand p {
  color: var(--ink-muted);
}

.footer-col {
  display: grid;
  align-content: start;
}

.footer-col a,
.footer-col span {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  min-width: 44px;
}

.footer-bottom a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
}

.footer-col h4 {
  margin-bottom: 8px;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-faint);
}

.footer-col a,
.footer-col span {
  justify-self: start;
  color: var(--ink-muted);
  white-space: nowrap;
}

.footer-col a {
  transition: color 0.3s;
}

.footer-col a:hover {
  color: var(--accent);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 8px 24px;
  flex-wrap: wrap;
  position: relative;
  padding-block: 24px;
  margin-top: clamp(40px, 5vw, 56px);
  font-size: 13px;
  color: var(--ink-faint);
}

.footer-bottom::before {
  content: "";
  position: absolute;
  top: 0;
  left: var(--gutter);
  right: var(--gutter);
  border-top: 1px solid var(--line);
}

.footer-bottom a {
  color: var(--ink-muted);
}

.footer-bottom a:hover {
  color: var(--accent);
}

/* ---------- WhatsApp float ---------- */

.wa-float {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 40;
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--accent);
  color: var(--green-900);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.28);
  transition: transform 0.4s var(--ease), background 0.3s, opacity 0.4s, visibility 0.4s;
}

/* Hidden while the hero CTAs are on screen */
.wa-float.is-hidden {
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
}

@media (hover: hover) {
  .wa-float:hover {
    transform: scale(1.08);
    background: var(--accent-soft);
  }
}

/* ---------- Reveal ---------- */

.js .reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
  transition-delay: var(--d, 0s);
}

.js .reveal.is-in {
  opacity: 1;
  transform: none;
}

/* ---------- Responsive ---------- */

@media (max-width: 1024px) {
  .steps {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    row-gap: 48px;
  }

  .stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    row-gap: 40px;
  }

  .faq .display,
  .faq-list {
    grid-column: 1 / -1;
  }

  .faq .display {
    margin-bottom: 40px;
  }
}

@media (max-width: 900px) {
  .menu-toggle {
    display: block;
    z-index: 2;
  }

  .nav {
    position: fixed;
    inset: 0;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    gap: 8px;
    padding: 96px var(--gutter) 40px;
    background: var(--green-800);
    font-family: var(--font-display);
    font-size: 44px;
    letter-spacing: -0.04em;
    text-transform: lowercase;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s, visibility 0.4s;
  }

  .nav a {
    color: var(--ink);
  }

  .nav .nav-cta {
    margin-top: 24px;
    padding: 14px 28px;
    font-family: var(--font-body);
    font-size: 14px;
    letter-spacing: 0.06em;
    text-transform: uppercase;
  }

  .menu-open .nav {
    opacity: 1;
    visibility: visible;
  }

  .menu-open,
  html:has(.menu-open) {
    overflow: hidden;
  }

  .intro .label,
  .why .label,
  .intro-body,
  .why-body {
    grid-column: 1 / -1;
  }

  .intro .label,
  .why .label {
    margin-bottom: 24px;
  }

  .compare-grid {
    grid-template-columns: 1fr;
  }

  .showcase {
    grid-template-columns: 1fr;
  }

  /* Whole phone visible on screen: never taller than the viewport minus the header */
  .phone {
    justify-self: center;
    --pw: min(300px, 82vw, max(220px, calc((100svh - 100px) * 9 / 19.5)));
  }

  .service {
    grid-template-columns: 48px minmax(0, 1fr);
  }

  .service p {
    grid-column: 2;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }

  .footer-brand {
    grid-column: 1 / -1;
  }
}

@media (max-width: 600px) {
  :root {
    --section-y: 72px;
  }

  .header-inner {
    height: 64px;
  }

  .hero {
    padding-top: 104px;
  }

  .section-head {
    margin-bottom: 40px;
  }

  .intro-text,
  .why-text {
    font-size: clamp(23px, 6.6vw, 28px);
    line-height: 1.18;
  }

  .intro-sub,
  .showcase-lead {
    font-size: 16px;
  }

  .stats {
    margin-top: 48px;
  }

  /* Services: number above the title, text at full width */
  .service {
    grid-template-columns: 1fr;
    gap: 10px;
    padding: 28px 0;
  }

  .service p {
    grid-column: auto;
  }

  .compare-col li {
    font-size: 16px;
  }

  .footer-bottom {
    padding-block: 12px 16px;
  }

  .hero-heading {
    font-size: clamp(46px, 14vw, 64px);
  }

  .hero-lead {
    font-size: 16px;
  }

  .btn {
    padding-inline: 20px;
    letter-spacing: 0.04em;
  }

  .hero-actions,
  .hero-actions .btn {
    width: 100%;
  }

  .wa-float {
    right: 16px;
    bottom: calc(16px + env(safe-area-inset-bottom));
    width: 52px;
    height: 52px;
  }

  .steps {
    grid-template-columns: 1fr;
  }

  .faq-item summary {
    gap: 14px;
  }

  .faq-item p {
    padding-left: 0;
  }

  .footer-brand {
    gap: 16px;
  }

  .footer-brand img {
    width: 64px;
  }

  .footer-brand p {
    font-size: 14px;
  }
}

@media (max-width: 600px) and (max-height: 700px) {
  .hero {
    padding-top: 88px;
    padding-bottom: 32px;
  }

  .hero .eyebrow {
    margin-bottom: 16px;
  }

  .hero-heading {
    font-size: clamp(40px, 12.5vw, 56px);
  }

  .hero-bottom {
    margin-top: 24px;
    padding-top: 20px;
    gap: 20px;
  }

  .hero-lead {
    font-size: 15px;
    line-height: 1.5;
  }

  .hero-actions .btn {
    min-height: 48px;
  }

  .hero-actions .btn-ghost {
    display: none;
  }
}

/* Phone in landscape: the hero must not be taller than the screen */
@media (orientation: landscape) and (max-height: 500px) {
  .hero {
    min-height: 0;
    padding-top: 96px;
    padding-bottom: 40px;
  }

  .hero .eyebrow {
    margin-bottom: 16px;
  }

  .hero-heading {
    font-size: clamp(36px, 10vh, 52px);
  }

  .hero-bottom {
    margin-top: 20px;
    padding-top: 20px;
    flex-wrap: nowrap;
    align-items: center;
  }

  .hero-lead {
    font-size: 15px;
    line-height: 1.5;
  }

  .hero-actions {
    flex: none;
  }

  .hero-actions .btn-ghost {
    display: none;
  }

  .nav {
    justify-content: flex-start;
    padding-top: 80px;
    overflow-y: auto;
    font-size: 32px;
  }
}

@media (max-width: 340px) {
  .footer-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 420px) {
  .stat dt {
    font-size: 12px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  /* Keep fades and the brand loops (marquee, seal); drop slide/hover movement */
  .js .reveal {
    transform: none;
    transition: opacity 0.8s ease;
    transition-delay: var(--d, 0s);
  }

  .btn:hover,
  .wa-float:hover,
  .cta-link:hover .cta-action,
  .service:hover h3 {
    transform: none;
  }
}
