/* ============================================================
   Feasy Pro Landing — Base / reset / typography / utilities
   ============================================================ */

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

* {
  margin: 0;
}

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

html:focus-within {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  color: var(--text);
  background: var(--linen);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}

img,
svg,
canvas,
video {
  display: block;
  max-width: 100%;
}

button,
input {
  font: inherit;
  color: inherit;
}

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

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

/* ── Headings ── */
h1,
h2,
h3 {
  font-family: var(--font-heading);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.08;
  text-wrap: balance;
}

h4,
h5 {
  font-family: var(--font-ui);
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1.25;
}

p {
  text-wrap: pretty;
}

::selection {
  background: rgba(255, 204, 188, 0.65);
  color: #52382f;
}

/* ── Accessibility ── */
.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 200;
  padding: 12px 20px;
  border-radius: var(--r-pill);
  background: var(--ink);
  color: var(--text-on-dark);
  font-family: var(--font-ui);
  font-weight: 600;
  font-size: 15px;
  transform: translateY(-200%);
  transition: transform 0.25s var(--ease-out);
}

.skip-link:focus-visible {
  transform: translateY(0);
}

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

.on-dark :focus-visible,
.site-header :focus-visible {
  outline-color: var(--peach);
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* ── Layout primitives ── */
.container {
  width: min(var(--container), 100% - clamp(40px, 8vw, 96px));
  margin-inline: auto;
}

.section {
  position: relative;
  padding-block: var(--section-pad);
}

/* ── Section header pattern ── */
.section-head {
  max-width: 680px;
  margin-bottom: clamp(44px, 6vw, 72px);
}

.section-head--center {
  margin-inline: auto;
  text-align: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-ui);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--teal);
}

.eyebrow::before {
  content: "";
  width: 22px;
  height: 2px;
  border-radius: 2px;
  background: var(--grad-sunrise);
}

.section-head--center .eyebrow::after {
  content: "";
  width: 22px;
  height: 2px;
  border-radius: 2px;
  background: var(--grad-sunrise);
}

.on-dark .eyebrow {
  color: #7fd0cd;
}

.section-title {
  margin-top: 18px;
  font-size: clamp(30px, 4.4vw, 46px);
}

.section-title em {
  font-style: italic;
  font-weight: 400;
  color: var(--terracotta);
}

.on-dark .section-title em {
  color: var(--peach);
}

.section-sub {
  margin-top: 18px;
  font-size: clamp(16px, 1.6vw, 19px);
  line-height: 1.65;
  color: var(--text-soft);
}

.on-dark .section-sub {
  color: var(--text-on-dark-soft);
}

/* ── Scroll reveal ── */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition:
    opacity var(--dur) var(--ease-out),
    transform var(--dur) var(--ease-out);
  transition-delay: var(--reveal-delay, 0s);
}

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

/* Stagger helper — parents mark children */
.stagger > * {
  opacity: 0;
  transform: translateY(26px);
  transition:
    opacity var(--dur) var(--ease-out),
    transform var(--dur) var(--ease-out);
}

.stagger.in-view > * {
  opacity: 1;
  transform: none;
}

.stagger.in-view > :nth-child(1) { transition-delay: 0.05s; }
.stagger.in-view > :nth-child(2) { transition-delay: 0.13s; }
.stagger.in-view > :nth-child(3) { transition-delay: 0.21s; }
.stagger.in-view > :nth-child(4) { transition-delay: 0.29s; }
.stagger.in-view > :nth-child(5) { transition-delay: 0.37s; }
.stagger.in-view > :nth-child(6) { transition-delay: 0.45s; }
.stagger.in-view > :nth-child(7) { transition-delay: 0.53s; }
.stagger.in-view > :nth-child(8) { transition-delay: 0.61s; }

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

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    transition-delay: 0s !important;
  }

  .reveal,
  .stagger > * {
    opacity: 1;
    transform: none;
  }
}
