/* ==========================================================================
   AnyFreelance — Design System & Styles
   Static B2B marketing site. No external dependencies.
   ========================================================================== */

/* ---------- Design tokens ---------- */
:root {
  --ink: #0f1e38;          /* deep navy — headings & structure */
  --ink-soft: #1c2c48;
  --text: #33415a;         /* body copy */
  --muted: #5a6880;        /* secondary copy */
  --muted-2: #8592a8;      /* tertiary / meta */
  --accent: #4f46e5;       /* indigo accent */
  --accent-strong: #4338ca;
  --accent-ink: #3730a3;
  --accent-soft: #eef1ff;
  --accent-soft-2: #e3e8ff;

  --bg: #ffffff;
  --bg-soft: #f7f9fc;
  --bg-tint: #f1f4fa;
  --bg-navy: #0f1e38;

  --border: #e5eaf2;
  --border-strong: #d4dbe7;

  --shadow-sm: 0 1px 2px rgba(15, 30, 56, .05), 0 1px 3px rgba(15, 30, 56, .05);
  --shadow-md: 0 10px 30px -12px rgba(15, 30, 56, .18), 0 4px 10px -6px rgba(15, 30, 56, .10);
  --shadow-lg: 0 30px 60px -20px rgba(15, 30, 56, .25);

  --radius-sm: 10px;
  --radius: 14px;
  --radius-lg: 20px;
  --radius-xl: 28px;

  --container: 1120px;
  --gutter: clamp(1.15rem, 4vw, 2rem);

  --font-sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, "Times New Roman", serif;

  --ease: cubic-bezier(.22, .61, .36, 1);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 92px; /* offset for sticky header */
}

body {
  font-family: var(--font-sans);
  color: var(--text);
  background: var(--bg);
  line-height: 1.65;
  font-size: 1.0625rem;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; }

h1, h2, h3, h4 {
  color: var(--ink);
  font-family: var(--font-serif);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.012em;
  text-wrap: balance;
}

p { text-wrap: pretty; }

/* ---------- Accessibility helpers ---------- */
.skip-link {
  position: absolute;
  left: 1rem;
  top: -100px;
  z-index: 200;
  background: var(--ink);
  color: #fff;
  padding: .7rem 1.1rem;
  border-radius: 0 0 var(--radius-sm) var(--radius-sm);
  font-size: .95rem;
  transition: top .18s var(--ease);
}
.skip-link:focus { top: 0; }

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

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

/* ---------- Layout ---------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section { padding-block: clamp(4rem, 8vw, 7rem); }
.section--soft { background: var(--bg-soft); }
.section--tint { background: var(--bg-tint); }
.section--navy { background: var(--bg-navy); color: #c8d2e4; }
.section--navy h2, .section--navy h3 { color: #fff; }

.section-head { max-width: 720px; margin-bottom: clamp(2.25rem, 5vw, 3.5rem); }
.section-head--center { margin-inline: auto; text-align: center; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  font-family: var(--font-sans);
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .13em;
  text-transform: uppercase;
  color: var(--accent-strong);
  margin-bottom: 1rem;
}
.eyebrow::before {
  content: "";
  width: 22px; height: 2px;
  background: var(--accent);
  border-radius: 2px;
}
.section--navy .eyebrow { color: #a5b4fc; }
.section--navy .eyebrow::before { background: #818cf8; }

h2.display {
  font-size: clamp(1.85rem, 3.8vw, 2.7rem);
  margin-bottom: 1rem;
}
.lede {
  font-size: clamp(1.05rem, 1.6vw, 1.2rem);
  color: var(--muted);
  max-width: 62ch;
}
.section--navy .lede { color: #aab6cc; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .55rem;
  padding: .82rem 1.4rem;
  border-radius: 999px;
  font-family: var(--font-sans);
  font-size: .96rem;
  font-weight: 650;
  line-height: 1;
  border: 1px solid transparent;
  transition: transform .18s var(--ease), background-color .18s var(--ease),
              border-color .18s var(--ease), color .18s var(--ease), box-shadow .18s var(--ease);
  white-space: nowrap;
}
.btn svg { width: 1.05em; height: 1.05em; }

.btn--primary {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 6px 16px -6px rgba(79, 70, 229, .6);
}
.btn--primary:hover { background: var(--accent-strong); transform: translateY(-2px); }
.btn--primary:active { transform: translateY(0); }

.btn--ghost {
  background: #fff;
  color: var(--ink);
  border-color: var(--border-strong);
}
.btn--ghost:hover { border-color: var(--ink); transform: translateY(-2px); }

.btn--onnavy {
  background: rgba(255,255,255,.08);
  color: #fff;
  border-color: rgba(255,255,255,.28);
}
.btn--onnavy:hover { background: rgba(255,255,255,.16); transform: translateY(-2px); }

.btn--sm { padding: .62rem 1.05rem; font-size: .9rem; }

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  font-weight: 650;
  color: var(--accent-strong);
  font-family: var(--font-sans);
}
.link-arrow svg { width: 1em; height: 1em; transition: transform .18s var(--ease); }
.link-arrow:hover svg { transform: translateX(4px); }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, .82);
  backdrop-filter: saturate(180%) blur(12px);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--border);
}
.site-header.is-scrolled { box-shadow: 0 1px 20px rgba(15,30,56,.06); }

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 74px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  font-family: var(--font-sans);
  font-weight: 750;
  font-size: 1.18rem;
  letter-spacing: -0.02em;
  color: var(--ink);
}
.brand__mark { flex: none; width: 30px; height: 30px; }
.brand__name b { color: var(--accent); font-weight: 750; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.9rem;
  list-style: none;
  padding: 0;
}
.nav-links a {
  font-family: var(--font-sans);
  font-size: .95rem;
  font-weight: 550;
  color: var(--muted);
  transition: color .16s var(--ease);
  position: relative;
  padding-block: .3rem;
}
.nav-links a::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -.15rem;
  height: 2px;
  background: var(--accent);
  border-radius: 2px;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .2s var(--ease);
}
.nav-links a:hover { color: var(--ink); }
.nav-links a:hover::after { transform: scaleX(1); }

.nav-cta { display: inline-flex; }

.nav-toggle {
  display: none;
  width: 44px; height: 44px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border-strong);
  border-radius: 10px;
  background: #fff;
}
.nav-toggle__bars { position: relative; width: 20px; height: 14px; }
.nav-toggle__bars span {
  position: absolute; left: 0; right: 0; height: 2px;
  background: var(--ink); border-radius: 2px;
  transition: transform .22s var(--ease), opacity .18s var(--ease), top .22s var(--ease);
}
.nav-toggle__bars span:nth-child(1) { top: 0; }
.nav-toggle__bars span:nth-child(2) { top: 6px; }
.nav-toggle__bars span:nth-child(3) { top: 12px; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars span:nth-child(1) { top: 6px; transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars span:nth-child(3) { top: 6px; transform: rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(1100px 520px at 82% -8%, var(--accent-soft) 0%, rgba(238,241,255,0) 60%),
    linear-gradient(180deg, #fbfcff 0%, #ffffff 62%);
  border-bottom: 1px solid var(--border);
}
.hero__inner {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
  padding-block: clamp(3.5rem, 8vw, 6.5rem);
}
.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .4rem .85rem .4rem .5rem;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 999px;
  box-shadow: var(--shadow-sm);
  font-size: .82rem;
  font-weight: 600;
  color: var(--ink-soft);
  margin-bottom: 1.5rem;
}
.hero__badge .dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 0 4px rgba(34,197,94,.15);
  margin-left: .3rem;
}
.hero h1 {
  font-size: clamp(2.35rem, 5.6vw, 4rem);
  line-height: 1.04;
  letter-spacing: -0.028em;
  margin-bottom: 1.15rem;
}
.hero h1 em {
  font-style: normal;
  color: var(--accent-strong);
}
.hero__sub {
  font-family: var(--font-sans);
  font-size: clamp(1.05rem, 1.9vw, 1.3rem);
  font-weight: 650;
  color: var(--ink-soft);
  margin-bottom: 1rem;
}
.hero__sub span { color: var(--accent-strong); }
.hero__body {
  font-size: 1.075rem;
  color: var(--muted);
  max-width: 54ch;
  margin-bottom: 2rem;
}
.hero__cta { display: flex; flex-wrap: wrap; gap: .8rem; }

/* Hero visual */
.hero__visual {
  position: relative;
}
.hero__visual .frame {
  position: relative;
  border-radius: var(--radius-xl);
  padding: .8rem;
  background: #fff;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-lg);
}
.hero__visual .frame::before {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(140deg, rgba(79,70,229,.35), rgba(79,70,229,0) 40%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}
.hero__visual svg { width: 100%; height: auto; border-radius: calc(var(--radius-xl) - 8px); }
.hero__caption {
  margin-top: .9rem;
  text-align: center;
  font-size: .8rem;
  color: var(--muted-2);
  font-family: var(--font-sans);
}

/* ---------- Trust strip ---------- */
.trust {
  border-bottom: 1px solid var(--border);
  background: #fff;
}
.trust__inner {
  display: flex;
  flex-wrap: wrap;
  gap: 1.2rem 2.4rem;
  align-items: center;
  justify-content: center;
  padding-block: 1.5rem;
}
.trust__item {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  font-family: var(--font-sans);
  font-size: .92rem;
  font-weight: 600;
  color: var(--ink-soft);
}
.trust__item svg { width: 18px; height: 18px; color: var(--accent); flex: none; }

/* ---------- Generic grids & cards ---------- */
.grid { display: grid; gap: 1.25rem; }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }

.card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: clamp(1.4rem, 2.4vw, 1.9rem);
  transition: transform .2s var(--ease), box-shadow .2s var(--ease), border-color .2s var(--ease);
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--border-strong);
}
.card h3 {
  font-family: var(--font-sans);
  font-size: 1.12rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  margin-bottom: .5rem;
}
.card p { color: var(--muted); font-size: .98rem; }

.icon-badge {
  width: 46px; height: 46px;
  display: grid; place-items: center;
  border-radius: 12px;
  background: var(--accent-soft);
  color: var(--accent-strong);
  margin-bottom: 1.1rem;
}
.icon-badge svg { width: 24px; height: 24px; }

/* Problem list */
.problem-list { list-style: none; padding: 0; display: grid; gap: 1rem; }
.problem-list li {
  display: flex; gap: 1rem; align-items: flex-start;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.1rem 1.25rem;
}
.problem-list .check {
  flex: none; width: 34px; height: 34px; border-radius: 9px;
  display: grid; place-items: center;
  background: var(--bg-tint); color: var(--ink-soft);
}
.problem-list .check svg { width: 18px; height: 18px; }
.problem-list strong { color: var(--ink); font-weight: 650; }
.problem-list p { font-size: .97rem; color: var(--muted); margin-top: .1rem; }

/* Solution steps */
.solution { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(2rem,5vw,4rem); align-items: start; }
.flow { list-style: none; padding: 0; display: grid; gap: 1.25rem; }
.flow li { display: flex; gap: 1.1rem; }
.flow .num {
  flex: none;
  width: 40px; height: 40px; border-radius: 12px;
  display: grid; place-items: center;
  font-family: var(--font-sans); font-weight: 700; font-size: 1rem;
  color: #fff; background: var(--ink);
}
.flow h3 { font-family: var(--font-sans); font-size: 1.06rem; font-weight: 700; margin-bottom: .25rem; }
.flow p { color: var(--muted); font-size: .98rem; }

.note {
  margin-top: 1.75rem;
  padding: 1rem 1.15rem;
  border-left: 3px solid var(--accent);
  background: var(--accent-soft);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-size: .93rem;
  color: var(--accent-ink);
}

/* Service card */
.service-card { display: flex; flex-direction: column; }
.service-card .icon-badge { background: var(--bg-tint); color: var(--ink); }
.service-card:hover .icon-badge { background: var(--accent-soft); color: var(--accent-strong); }
.service-card .tag {
  margin-top: auto;
  padding-top: 1rem;
  font-size: .82rem;
  color: var(--muted-2);
  font-family: var(--font-sans);
  font-weight: 600;
}

/* Who we help */
.audience-card { display: flex; flex-direction: column; gap: .35rem; }
.audience-card .who-tag {
  font-family: var(--font-sans); font-size: .78rem; font-weight: 700;
  letter-spacing: .1em; text-transform: uppercase; color: var(--accent-strong);
  margin-bottom: .7rem;
}

/* Steps (How it works) */
.steps { counter-reset: step; display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.25rem; }
.step {
  position: relative;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.6rem 1.4rem;
}
.step__no {
  font-family: var(--font-serif);
  font-size: 2.6rem;
  line-height: 1;
  color: var(--accent-soft-2);
  margin-bottom: .6rem;
  display: block;
}
.step h3 { font-family: var(--font-sans); font-size: 1.08rem; font-weight: 700; margin-bottom: .5rem; }
.step p { color: var(--muted); font-size: .96rem; }
.step:not(:last-child)::after {
  content: "";
  position: absolute; top: 2.5rem; right: -.75rem;
  width: 1.5rem; height: 2px;
  background: var(--border-strong);
  z-index: 1;
}

/* Benefits */
.benefit {
  display: flex; gap: 1rem; align-items: flex-start;
  padding: 1.35rem 1.4rem;
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.10);
  border-radius: var(--radius-lg);
}
.benefit .icon-badge { background: rgba(129,140,248,.16); color: #c7d2fe; margin-bottom: 0; }
.benefit h3 { font-family: var(--font-sans); font-size: 1.05rem; font-weight: 700; margin-bottom: .3rem; }
.benefit p { color: #a9b5cb; font-size: .95rem; }

/* Illustrative example */
.example {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(1.5rem, 4vw, 3rem);
  align-items: center;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: clamp(1.6rem, 3.5vw, 2.8rem);
  box-shadow: var(--shadow-sm);
}
.example .label {
  display: inline-flex; align-items: center; gap: .45rem;
  font-family: var(--font-sans); font-size: .76rem; font-weight: 700;
  letter-spacing: .12em; text-transform: uppercase;
  color: var(--accent-strong); background: var(--accent-soft);
  padding: .35rem .7rem; border-radius: 999px; margin-bottom: 1rem;
}
.example h3 { font-size: clamp(1.4rem, 2.6vw, 1.9rem); margin-bottom: .75rem; }
.example p { color: var(--muted); }
.example .roles { list-style: none; padding: 0; margin-top: 1.25rem; display: flex; flex-wrap: wrap; gap: .5rem; }
.example .roles li {
  font-family: var(--font-sans); font-size: .85rem; font-weight: 600;
  color: var(--ink-soft); background: var(--bg-tint);
  border: 1px solid var(--border); border-radius: 999px; padding: .35rem .8rem;
}
.stages { list-style: none; padding: 0; display: grid; gap: .9rem; }
.stage {
  display: flex; align-items: center; gap: .9rem;
  padding: .9rem 1.1rem; border-radius: var(--radius); background: var(--bg-soft);
  border: 1px solid var(--border);
}
.stage .idx {
  flex: none; width: 30px; height: 30px; border-radius: 8px;
  display: grid; place-items: center; background: #fff;
  border: 1px solid var(--border-strong); color: var(--accent-strong);
  font-family: var(--font-sans); font-weight: 700; font-size: .85rem;
}
.stage span { font-family: var(--font-sans); font-weight: 600; color: var(--ink-soft); font-size: .95rem; }
.stage .arrow { margin-left: auto; color: var(--muted-2); }

.example__disclaimer {
  margin-top: 1.5rem; font-size: .85rem; color: var(--muted-2);
  border-top: 1px dashed var(--border-strong); padding-top: 1rem;
}

/* FAQ */
.faq { max-width: 820px; margin-inline: auto; display: grid; gap: .9rem; }
.faq details {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color .18s var(--ease), box-shadow .18s var(--ease);
}
.faq details[open] { border-color: var(--accent-soft-2); box-shadow: var(--shadow-sm); }
.faq summary {
  list-style: none;
  cursor: pointer;
  padding: 1.15rem 3.4rem 1.15rem 1.3rem;
  position: relative;
  font-family: var(--font-sans);
  font-weight: 650;
  color: var(--ink);
  font-size: 1.02rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary:hover { color: var(--accent-strong); }
.faq summary .marker {
  position: absolute; right: 1.15rem; top: 50%; transform: translateY(-50%);
  width: 22px; height: 22px; display: grid; place-items: center;
  color: var(--accent-strong);
  transition: transform .2s var(--ease);
}
.faq details[open] summary .marker { transform: translateY(-50%) rotate(45deg); }
.faq .answer { padding: 0 1.3rem 1.25rem; color: var(--muted); font-size: .98rem; }
.faq .answer p + p { margin-top: .6rem; }

/* Contact */
.contact-card {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: clamp(1.75rem, 4vw, 3.5rem);
  align-items: center;
  background: linear-gradient(160deg, #101f3a 0%, #14264a 100%);
  color: #cdd7e8;
  border-radius: var(--radius-xl);
  padding: clamp(1.9rem, 4.5vw, 3.4rem);
  box-shadow: var(--shadow-lg);
  position: relative;
  overflow: hidden;
}
.contact-card::after {
  content: "";
  position: absolute; right: -120px; top: -120px;
  width: 340px; height: 340px; border-radius: 50%;
  background: radial-gradient(circle, rgba(99,102,241,.45), rgba(99,102,241,0) 70%);
  pointer-events: none;
}
.contact-card h2 { color: #fff; font-size: clamp(1.7rem, 3.4vw, 2.5rem); margin-bottom: 1rem; }
.contact-card p { color: #aeb9cf; position: relative; }
.contact-actions { position: relative; }
.email-box {
  display: flex; align-items: center; gap: .75rem;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.16);
  border-radius: var(--radius);
  padding: .95rem 1.1rem;
  margin-bottom: 1.1rem;
}
.email-box svg { width: 20px; height: 20px; color: #a5b4fc; flex: none; }
.email-box a { font-family: var(--font-sans); font-weight: 650; color: #fff; word-break: break-all; }
.email-box a:hover { color: #c7d2fe; }
.contact-actions .btn { width: 100%; }
.contact-hint { margin-top: .85rem; font-size: .84rem; color: #93a1bd; text-align: center; }

/* Footer */
.site-footer { background: #0b1728; color: #93a1bd; padding-block: clamp(2.75rem, 5vw, 4rem) 2rem; }
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 2rem;
  padding-bottom: 2.25rem;
  border-bottom: 1px solid rgba(255,255,255,.10);
}
.site-footer .brand { color: #fff; margin-bottom: .85rem; }
.site-footer .brand__name b { color: #a5b4fc; }
.footer-about { font-size: .95rem; color: #93a1bd; max-width: 42ch; }
.footer-title {
  font-family: var(--font-sans); font-size: .8rem; font-weight: 700;
  letter-spacing: .12em; text-transform: uppercase; color: #cdd7e8; margin-bottom: 1rem;
}
.footer-list { list-style: none; padding: 0; display: grid; gap: .6rem; }
.footer-list a { font-size: .95rem; color: #93a1bd; transition: color .16s var(--ease); }
.footer-list a:hover { color: #fff; }
.footer-bottom {
  display: flex; flex-wrap: wrap; gap: .75rem 1.5rem;
  justify-content: space-between; align-items: center;
  padding-top: 1.75rem; font-size: .87rem;
}
.footer-bottom a:hover { color: #fff; }

/* ---------- Reveal animation (subtle, motion-safe) ---------- */
html.js .reveal { opacity: 0; transform: translateY(16px); }
html.js .reveal.is-visible {
  opacity: 1;
  transform: none;
  transition: opacity .6s var(--ease), transform .6s var(--ease);
}

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .hero__inner { grid-template-columns: 1fr; }
  .hero__visual { order: -1; max-width: 540px; margin-inline: auto; }
  .solution { grid-template-columns: 1fr; }
  .example { grid-template-columns: 1fr; }
  .contact-card { grid-template-columns: 1fr; }
  .grid--4 { grid-template-columns: repeat(2, 1fr); }
  .grid--3 { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .step:nth-child(2)::after { display: none; }
}

@media (max-width: 720px) {
  .nav-links, .nav-cta { display: none; }
  .nav-toggle { display: inline-flex; }

  .site-header.nav-open { box-shadow: var(--shadow-md); }
  .nav-links.is-open {
    display: flex;
    position: absolute;
    left: 0; right: 0; top: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: #fff;
    border-bottom: 1px solid var(--border);
    padding: .5rem var(--gutter) 1.25rem;
    box-shadow: var(--shadow-md);
  }
  .nav-links.is-open li { border-bottom: 1px solid var(--border); }
  .nav-links.is-open li:last-child { border-bottom: 0; }
  .nav-links.is-open a { display: block; padding: 1rem 0; font-size: 1.05rem; color: var(--ink); }
  .nav-links.is-open a::after { display: none; }
  .site-header .nav-cta.is-open {
    display: flex;
    position: absolute; left: var(--gutter); right: var(--gutter);
    top: calc(100% + 1px);
    margin-top: 0;
    z-index: 5;
  }

  .grid--2, .grid--3, .grid--4, .steps { grid-template-columns: 1fr; }
  .step::after { display: none !important; }
  .footer-grid { grid-template-columns: 1fr; gap: 1.75rem; }
}

@media (max-width: 480px) {
  body { font-size: 1.03rem; }
  .hero__cta .btn, .contact-actions .btn { width: 100%; }
  .btn { width: 100%; }
  .hero__cta { flex-direction: column; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
    scroll-behavior: auto !important;
  }
  .reveal, html.js .reveal { opacity: 1; transform: none; }
}

/* ---------- Print ---------- */
@media print {
  .site-header, .nav-toggle, .hero__visual, .contact-card, .site-footer { break-inside: avoid; }
  .reveal, html.js .reveal { opacity: 1; transform: none; }
  .btn { box-shadow: none; }
}

/* ---------- Legal pages ---------- */
.legal-hero {
  background: var(--bg-soft);
  border-bottom: 1px solid var(--border);
  padding-block: clamp(2.5rem, 6vw, 4rem);
}
.legal-hero h1 { font-size: clamp(1.9rem, 4vw, 2.75rem); margin-bottom: .6rem; }
.legal-hero p { color: var(--muted); max-width: 60ch; }
.legal {
  max-width: 780px;
  margin-inline: auto;
  padding-block: clamp(2.5rem, 6vw, 4.5rem);
}
.legal .updated {
  display: inline-block;
  font-family: var(--font-sans);
  font-size: .85rem;
  color: var(--muted-2);
  background: var(--bg-tint);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: .3rem .8rem;
  margin-bottom: 2rem;
}
.legal h2 {
  font-size: clamp(1.2rem, 2.4vw, 1.45rem);
  margin-top: 2.25rem;
  margin-bottom: .6rem;
}
.legal p, .legal li { color: var(--muted); }
.legal p + p { margin-top: .75rem; }
.legal ul { margin: .6rem 0 0; padding-left: 1.2rem; display: grid; gap: .4rem; }
.legal a { color: var(--accent-strong); text-decoration: underline; text-underline-offset: 2px; }
.legal .back { margin-top: 2.75rem; }
