/* ─────────────────────────────────────────────────────────────
   Steps marketing site — page styles
   Values mirror the "Steps Website v4" design reference 1:1.
   ───────────────────────────────────────────────────────────── */

/* ── Base ── */
html { scroll-behavior: smooth; }
html, body { margin: 0; padding: 0; background: var(--linen-bg); }
body {
  font-family: var(--font-sans);
  color: var(--forest);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-align: center;
  overflow-x: hidden; /* fallback for engines without `clip` */
  overflow-x: clip;
}
a { color: var(--olive); text-decoration: none; }
a:hover { color: var(--forest); }
button { font: inherit; }
:focus-visible { outline: 2px solid var(--olive); outline-offset: 3px; }
.visually-hidden {
  position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* Material Symbols glyphs */
.icon {
  font-family: var(--font-icon);
  font-weight: normal;
  font-style: normal;
  line-height: 1;
  letter-spacing: normal;
  text-transform: none;
  display: inline-block;
  white-space: nowrap;
  direction: ltr;
  font-feature-settings: "liga";
  font-variation-settings: "FILL" 0, "wght" 400, "GRAD" 0, "opsz" 24;
}
.icon--fill { font-variation-settings: "FILL" 1, "wght" 400, "GRAD" 0, "opsz" 24; }

/* Scroll reveal */
[data-reveal] {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 900ms var(--ease-reveal), transform 900ms var(--ease-reveal);
}
[data-reveal].rv-in { opacity: 1; transform: none; }

@keyframes heroZoom { from { transform: scale(1.06); } to { transform: scale(1); } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  [data-reveal] { opacity: 1; transform: none; transition: none; }
  .hero__zoom { animation: none; }
}

/* ── Shared type ── */
.eyebrow {
  font-size: 12px; font-weight: 600; letter-spacing: 2px;
  text-transform: uppercase; color: var(--olive);
}
.section__title {
  margin: 30px 0 0;
  font-family: var(--font-serif); font-weight: 400;
  font-size: clamp(30px, 5vw, 46px); line-height: 1.12; letter-spacing: -0.5px;
  color: var(--forest); text-wrap: balance;
}
.section__title em, .hero__title em { font-style: italic; }

/* ── Primary CTA (design-system PrimaryCTA; site weight override 500 → 600) ── */
.cta {
  height: var(--h-cta);
  display: inline-flex; align-items: center; justify-content: center;
  padding: 0 28px; border: none; border-radius: var(--radius-pill);
  background: var(--cta-bg); color: var(--cta-fg);
  font-family: var(--font-sans); font-size: 15px; font-weight: 600;
  letter-spacing: 1.5px; text-transform: uppercase;
  cursor: pointer; box-shadow: var(--shadow-cta);
  box-sizing: border-box;
  transition: transform var(--dur-fast) var(--ease-out), opacity var(--dur-fast);
}
.cta:hover { transform: scale(1.02); color: var(--cta-fg); }
.cta:active { transform: scale(0.97); }
.cta[disabled] { opacity: 0.3; cursor: default; transform: none; }
.cta--full { width: 100%; }
.cta__spinner {
  width: 20px; height: 20px; display: none;
  border: 2px solid rgba(236, 233, 227, 0.4); border-top-color: var(--cta-fg);
  border-radius: 50%; animation: steps-spin 0.7s linear infinite;
}
.cta.is-loading .cta__label { display: none; }
.cta.is-loading .cta__spinner { display: inline-block; }
@keyframes steps-spin { to { transform: rotate(360deg); } }

/* ── Header ── */
.hdr { position: fixed; top: 0; left: 0; right: 0; z-index: 40; pointer-events: none; }
.hdr__wordmark {
  pointer-events: auto;
  position: absolute; top: 16px; left: 50%; transform: translateX(-50%);
  display: inline-flex; align-items: center; padding: 6px 10px 8px;
  font-family: var(--font-serif); font-size: 32px; font-weight: 400; letter-spacing: 0.2px;
  color: #FFFFFF; text-shadow: 0 1px 16px rgba(10, 15, 25, 0.55);
  transition: left 0.35s ease, transform 0.35s ease, color 0.35s ease, opacity 0.3s ease;
}
.hdr__wordmark:hover { color: #FFFFFF; }
body.is-past-hero .hdr__wordmark,
body.is-past-hero .hdr__wordmark:hover { color: var(--forest); text-shadow: none; }
@media (min-width: 720px) {
  body.is-scrolled .hdr__wordmark { left: 18px; transform: translateX(0); }
}
@media (max-width: 719.98px) {
  body.is-scrolled .hdr__wordmark { opacity: 0; pointer-events: none; }
}
.hdr__nav {
  pointer-events: none;
  position: absolute; top: 14px; left: 50%;
  transform: translateX(-50%) translateY(-12px); opacity: 0;
  transition: opacity 0.3s ease, transform 0.3s ease;
  display: flex; align-items: center; gap: 2px; padding: 5px 6px;
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px);
  border: 1px solid var(--forest-18); border-radius: var(--radius-pill);
  box-shadow: 0 12px 40px rgba(44, 51, 38, 0.16);
}
body.is-scrolled .hdr__nav { pointer-events: auto; opacity: 1; transform: translateX(-50%) translateY(0); }
@media (max-width: 720px) { .hdr__nav { display: none; } }
.hdr__link {
  font-size: 13px; font-weight: 500; color: var(--forest-70);
  padding: 9px 13px; border-radius: var(--radius-pill);
  transition: background 0.18s ease, color 0.18s ease;
}
.hdr__link:hover { background: var(--forest-06); color: var(--forest); }
.hdr__cta {
  margin-left: 4px; display: inline-flex; align-items: center;
  background: var(--forest); color: var(--linen-bg);
  border: none; border-radius: var(--radius-pill); padding: 10px 18px;
  font-family: var(--font-sans); font-size: 12px; font-weight: 600;
  letter-spacing: 1.5px; text-transform: uppercase; cursor: pointer;
  transition: opacity 0.18s ease;
}
.hdr__cta:hover { opacity: 0.9; }

/* ── Hero ── */
.hero {
  position: relative; min-height: 100vh; min-height: 100svh; background: var(--night-base); overflow: hidden;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: 120px 22px 80px; box-sizing: border-box;
}
.hero__layer { position: absolute; inset: 0; }
.hero__poster {
  background-image: url("../assets/backgrounds/landegode_day_1.jpg");
  background-size: cover; background-position: center 35%;
}
.hero__zoom { animation: heroZoom 24s ease-out forwards; }
.hero__video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity 900ms ease; }
.hero__video.is-ready { opacity: 1; }
.hero__blur {
  backdrop-filter: blur(3px); -webkit-backdrop-filter: blur(3px);
  -webkit-mask-image: linear-gradient(to bottom, transparent 55%, #000 78%);
  mask-image: linear-gradient(to bottom, transparent 55%, #000 78%);
}
.hero__tint { background: rgba(10, 15, 25, 0.28); }
.hero__grad {
  background: linear-gradient(to bottom, rgba(10, 15, 25, 0.45) 0%, rgba(10, 15, 25, 0) 24%, rgba(10, 15, 25, 0) 60%, rgba(10, 15, 25, 0.55) 100%);
}
.hero__content { position: relative; display: flex; flex-direction: column; align-items: center; max-width: 820px; }
.hero__title {
  margin: 0; font-family: var(--font-serif); font-weight: 400;
  font-size: clamp(42px, 8vw, 78px); line-height: 1.06; letter-spacing: -1px;
  color: #FFFFFF; text-wrap: balance; text-shadow: 0 2px 28px rgba(10, 15, 25, 0.5);
}
.hero__sub {
  margin: 28px 0 0; max-width: 420px;
  font-size: 14px; line-height: 1.55; color: var(--white-68); text-wrap: pretty;
}
.hero__actions { display: flex; flex-direction: column; align-items: center; gap: 18px; margin-top: 38px; }
/* Hero buttons: a step smaller than the section CTAs, with a hairline
   top highlight and a tighter shadow so they read as finished objects. */
.btn-hero {
  height: 50px; padding: 0 36px; border: none; border-radius: var(--radius-pill);
  background: var(--linen-bg); color: var(--forest);
  font-family: var(--font-sans); font-size: 13.5px; font-weight: 600;
  letter-spacing: 1.6px; text-transform: uppercase; cursor: pointer;
  box-shadow: 0 10px 30px rgba(10, 15, 25, 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.7);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.btn-hero:hover { transform: translateY(-1px); box-shadow: 0 14px 34px rgba(10, 15, 25, 0.32), inset 0 1px 0 rgba(255, 255, 255, 0.7); }
.btn-hero:active { transform: translateY(0) scale(0.98); }
.hero__link {
  display: inline-flex; align-items: center; gap: 6px; padding: 8px 12px;
  color: var(--white-85); font-size: 14px; font-weight: 500; letter-spacing: 0.2px;
  text-shadow: 0 1px 12px rgba(10, 15, 25, 0.55); transition: color 0.18s ease;
}
.hero__link:hover { color: #FFFFFF; }
.hero__link .icon { font-size: 15px; }

/* ── Sections ── */
.section {
  scroll-margin-top: 80px;
  background: var(--linen-bg);
  border-top: 1px solid var(--forest-10);
  padding: clamp(64px, 10vw, 96px) 22px;
}
.section--why { background: radial-gradient(70% 55% at 50% 0%, rgba(108, 112, 91, 0.10), transparent 70%), #ECE9E3; }
.section--companies { background: radial-gradient(60% 50% at 50% 100%, rgba(197, 190, 177, 0.40), transparent 75%), #ECE9E3; }
.section--contact { padding-bottom: 40px; }
.section__inner { max-width: 820px; margin: 0 auto; display: flex; flex-direction: column; align-items: center; }
.section__inner--about { max-width: 680px; }
.section__inner--contact { max-width: 440px; }

/* Why */
.section--why .section__title { max-width: 640px; }
.why__lead {
  margin: 20px 0 0; max-width: 540px;
  font-size: 16px; line-height: 1.6; color: var(--forest-70); text-wrap: pretty;
}
.why__lead em { font-family: var(--font-serif); font-style: italic; font-size: 20px; line-height: 1; color: var(--forest); }
.why__lead .why__line { display: block; margin-top: 2px; }
.why__cols { display: flex; flex-wrap: wrap; gap: 36px 48px; justify-content: center; margin-top: 52px; }
.why__col { flex: 1 1 200px; max-width: 240px; }
.why__col h3 {
  margin: 0; font-family: var(--font-serif); font-size: 23px; font-weight: 400;
  letter-spacing: -0.2px; color: var(--forest);
}
.why__col p { margin: 8px 0 0; font-size: 14.5px; line-height: 1.6; color: var(--forest-70); }

/* The app */
.section--app .section__title { font-style: italic; }
.app__cta { display: flex; flex-direction: column; align-items: center; gap: 12px; margin-top: 34px; }
.features { display: flex; flex-direction: column; align-items: center; margin-top: 44px; width: min(460px, 100%); }
.feature { width: 100%; padding: 18px 0; display: flex; flex-direction: column; gap: 7px; }
.feature__eyebrow { font-size: 11px; font-weight: 600; letter-spacing: 2.2px; text-transform: uppercase; color: var(--olive); }
.feature__text { font-family: var(--font-serif); font-size: 19px; line-height: 1.4; color: var(--forest-85); text-wrap: balance; }
.feature__rule { width: 64px; height: 1px; background: var(--forest-16); }
.dots { display: flex; gap: 8px; justify-content: center; margin-top: 22px; }
.dots__dot { width: 7px; height: 7px; border-radius: var(--radius-pill); background: var(--forest-25); transition: background 0.3s ease; }
.dots__dot.is-active { background: var(--forest); }

/* For companies / pricing */
.section--companies .section__title { max-width: 620px; }
.price-card {
  margin-top: 44px; width: min(420px, 100%);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.78), rgba(255, 255, 255, 0.55));
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border: 1px solid var(--forest-22); border-radius: var(--radius-card);
  padding: 46px 36px 42px;
  box-shadow: 0 24px 70px rgba(44, 51, 38, 0.16), inset 0 1px 0 rgba(255, 255, 255, 0.9);
  box-sizing: border-box;
}
.price-card__amount { font-family: var(--font-serif); font-size: 72px; font-weight: 400; letter-spacing: -1.5px; color: var(--forest); line-height: 1; }
.price-card__unit { margin-top: 10px; font-size: 13px; font-weight: 600; letter-spacing: 1.8px; text-transform: uppercase; color: var(--forest-55); }
.price-card__model { margin: 14px auto 0; max-width: 300px; font-size: 14px; line-height: 1.55; color: var(--forest-72); text-wrap: balance; }
.price-card__rule { height: 1px; background: var(--forest-12); margin: 26px 0; }
.price-card__bullets { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; align-items: center; }
.price-card__bullets li { font-size: 14.5px; font-weight: 500; color: var(--forest-80); }
.pricing__cta { margin-top: 30px; display: flex; flex-direction: column; align-items: center; gap: 14px; }
.pricing__note { margin: 18px 0 0; font-size: 13px; color: var(--forest-55); }
.pricing__fallback { margin: 26px 0 0; max-width: 420px; font-size: 14px; line-height: 1.6; color: var(--forest-60); text-wrap: balance; }
.pricing__fallback a { display: inline-flex; align-items: center; gap: 4px; font-weight: 600; color: var(--forest); transition: opacity 0.18s ease; }
.pricing__fallback a:hover { opacity: 0.7; color: var(--forest); }
.pricing__fallback a .icon { font-size: 15px; }

/* About */
.about__p { margin: 18px 0 0; font-size: 16px; line-height: 1.7; color: var(--forest-70); text-wrap: pretty; }
.about__p:first-of-type { margin-top: 26px; }
.about__p--strong { font-weight: 500; color: var(--forest); }

/* Contact */
.section--contact .section__title { font-size: clamp(30px, 5vw, 44px); }
.form { width: 100%; margin-top: 38px; display: flex; flex-direction: column; gap: 18px; text-align: left; }
.form__submit { margin-top: 8px; }
.form__helper { text-align: center; font-size: 12.5px; color: var(--forest-50); }
.form__helper.is-error { color: var(--clay); }
.form[hidden] { display: none; }

/* GlassField */
.field { display: block; }
.field__label { display: block; font-size: 12px; font-weight: 600; letter-spacing: 2px; text-transform: uppercase; color: var(--forest-70); padding-left: 2px; margin-bottom: 8px; }
.field__box {
  display: flex; align-items: center; gap: 12px;
  height: var(--h-field); padding: 0 16px; border-radius: var(--radius-pill);
  background: var(--linen-glass-fill); border: 1px solid var(--linen-glass-border);
  box-shadow: var(--shadow-glass);
  backdrop-filter: blur(var(--blur-md)); -webkit-backdrop-filter: blur(var(--blur-md));
  transition: background var(--dur-fast), border-color var(--dur-fast);
}
.field__box:focus-within { background: var(--linen-glass-fill-strong); border-color: var(--linen-glass-border-strong); }
.field.is-invalid .field__box { border-color: var(--clay); }
.field__icon { font-size: 18px; color: var(--forest-70); }
.field__input {
  flex: 1; min-width: 0; border: none; outline: none; background: transparent;
  font-family: var(--font-sans); font-size: 14px; font-weight: 500; letter-spacing: 0.05px; color: var(--forest);
}
.field__input::placeholder { color: var(--forest-35); }
.field__textarea {
  width: 100%; box-sizing: border-box; display: block;
  background: var(--linen-glass-fill); border: 1px solid var(--linen-glass-border);
  border-radius: var(--radius-md); padding: 14px 16px;
  font-family: var(--font-sans); font-size: 15px; color: var(--forest);
  resize: vertical; outline: none;
  transition: background var(--dur-fast), border-color var(--dur-fast);
}
.field__textarea:focus { background: var(--linen-glass-fill-strong); border-color: var(--linen-glass-border-strong); }
.field__textarea::placeholder { color: var(--forest-35); }

/* Success card */
.success {
  width: 100%; margin-top: 38px;
  background: rgba(255, 255, 255, 0.55); border: 1px solid var(--forest-18);
  border-radius: var(--radius-lg); padding: 36px 28px;
  box-shadow: 0 12px 40px rgba(44, 51, 38, 0.10); box-sizing: border-box;
}
.success[hidden] { display: none; }
.success__icon { font-size: 34px; color: var(--olive); }
.success__title { margin-top: 12px; font-family: var(--font-serif); font-size: 24px; color: var(--forest); }
.success__text { margin: 14px 0 0; font-size: 14.5px; line-height: 1.6; color: var(--forest-70); text-wrap: balance; }
.success__cta { margin-top: 18px; display: flex; justify-content: center; }
.success__link { display: inline-flex; align-items: center; gap: 6px; margin-top: 18px; font-size: 13.5px; font-weight: 600; color: var(--forest-70); }
.success__link .icon { font-size: 16px; }

/* Footer */
.footer { background: var(--linen-bg); padding: 40px 22px 36px; }
.footer__inner { max-width: 820px; margin: 0 auto; display: flex; flex-direction: column; align-items: center; gap: 14px; }
.footer__rule { width: 100%; height: 1px; background: var(--forest-10); }
.footer__wordmark { font-family: var(--font-serif); font-size: 20px; color: var(--forest); margin-top: 10px; }
.footer__links { display: flex; flex-wrap: wrap; gap: 8px 22px; justify-content: center; }
.footer__links a { font-size: 13px; color: var(--forest-70); }
.footer__links a:hover { color: var(--forest); }
.footer__copy { font-size: 12.5px; color: var(--forest-50); }

/* ── Secondary pages (Support / Privacy) ── */
.page { min-height: 100vh; min-height: 100svh; background: var(--linen-bg); padding: 0 22px 64px; box-sizing: border-box; }
.page--support { background: radial-gradient(70% 45% at 50% 0%, rgba(108, 112, 91, 0.10), transparent 70%), #ECE9E3; }
.page__inner { max-width: 620px; margin: 0 auto; display: flex; flex-direction: column; align-items: center; }
.page--privacy .page__inner { max-width: 640px; display: block; }
.page__head { text-align: center; }
.page__wordmark { display: inline-block; margin-top: 34px; font-family: var(--font-serif); font-size: 30px; font-weight: 400; color: var(--forest); }
.page__wordmark:hover { color: var(--olive); }
.page__eyebrow { margin-top: 44px; }
.page__title {
  margin: 22px 0 0; font-family: var(--font-serif); font-weight: 400;
  font-size: clamp(30px, 5vw, 42px); line-height: 1.12; letter-spacing: -0.5px; color: var(--forest); text-wrap: balance;
}
.page__intro { margin: 16px 0 0; max-width: 460px; font-size: 15.5px; line-height: 1.6; color: var(--forest-70); }
.page__intro a, .legal a { font-weight: 600; color: var(--forest); text-decoration: underline; text-underline-offset: 3px; }
.page__intro a:hover, .legal a:hover { color: var(--olive); }
.page__meta { margin: 14px 0 0; font-size: 13.5px; color: var(--forest-55); }
.page__footer { margin-top: 56px; font-size: 12.5px; color: var(--forest-50); text-align: center; }
.page__footer a { color: var(--forest-70); }
.page__footer a:hover { color: var(--forest); }

.faq { width: 100%; max-width: 460px; margin-top: 40px; text-align: left; display: flex; flex-direction: column; gap: 12px; }
.faq__eyebrow { text-align: center; margin-bottom: 6px; }
.faq__item { background: rgba(255, 255, 255, 0.55); border: 1px solid var(--forest-16); border-radius: var(--radius-md); padding: 18px 20px; }
.faq__q { margin: 0; font-size: 15px; font-weight: 600; color: var(--forest); }
.faq__a { margin: 8px 0 0; font-size: 14px; line-height: 1.6; color: var(--forest-72); text-wrap: pretty; }

.support-form { width: 100%; max-width: 460px; margin-top: 48px; }
.support-form .form { margin-top: 20px; gap: 14px; }
.support-form .form__submit { display: flex; justify-content: center; margin-top: 4px; }
.support-form .success { margin-top: 20px; box-shadow: none; }
.support-form .success__text { margin-top: 10px; }
.field__label--plain { font-size: 11px; letter-spacing: 1.8px; color: var(--forest-55); padding-left: 0; }

.legal { margin-top: 44px; text-align: left; display: flex; flex-direction: column; gap: 28px; }
.legal h2 { margin: 0; font-family: var(--font-serif); font-weight: 400; font-size: 24px; color: var(--forest); }
.legal p { margin: 10px 0 0; font-size: 15px; line-height: 1.7; color: var(--forest-72); text-wrap: pretty; }
