/* ============================================================
   Digital CFO — Beyond Borders
   Fluid, semantic, container-free layout system
   Grid + Flexbox on semantic tags · custom properties ·
   clamp() fluid type · light/dark theming
   ============================================================ */

/* ----------------------------- Tokens ----------------------------- */
:root {
  /* Brand primitives (from the Digital CFO identity) */
  --navy-950: #040037;
  --navy-900: #09053c;
  --navy-800: #032075;
  --navy-100: #efeff5;
  --crimson-500: #e21e51;
  --crimson-600: #c8154a;
  --slate-500: #767aa0;

  /* The rainbow ribbon from the wordmark */
  --ribbon: linear-gradient(90deg,
    #e21e51, #f7630c 25%, #f5a524 45%, #22a55b 65%, #1159af 85%, #7b4dff);

  /* Semantic — light */
  --bg: #ffffff;
  --bg-raised: #f7f7fb;
  --bg-inverse: var(--navy-950);
  --ink: var(--navy-950);
  --ink-soft: #3d3a5c;
  --ink-muted: var(--slate-500);
  --accent: var(--crimson-500);
  --accent-ink: #ffffff;
  --heading: var(--navy-800);
  --line: #e3e3ee;
  --card: #ffffff;
  --shadow: 0 1px 2px rgb(4 0 55 / .06), 0 12px 32px -12px rgb(4 0 55 / .18);

  /* Fluid type scale */
  --step--1: clamp(.83rem, .8rem + .17vw, .94rem);
  --step-0:  clamp(1rem, .95rem + .27vw, 1.125rem);
  --step-1:  clamp(1.2rem, 1.11rem + .47vw, 1.5rem);
  --step-2:  clamp(1.44rem, 1.28rem + .8vw, 2rem);
  --step-3:  clamp(1.73rem, 1.46rem + 1.33vw, 2.66rem);
  --step-4:  clamp(2.07rem, 1.65rem + 2.12vw, 3.55rem);
  --step-5:  clamp(2.49rem, 1.84rem + 3.24vw, 4.73rem);

  /* Fluid space scale */
  --space-2xs: clamp(.5rem, .46rem + .2vw, .63rem);
  --space-xs:  clamp(.75rem, .7rem + .3vw, .94rem);
  --space-s:   clamp(1rem, .93rem + .4vw, 1.25rem);
  --space-m:   clamp(1.5rem, 1.39rem + .54vw, 1.88rem);
  --space-l:   clamp(2rem, 1.85rem + .73vw, 2.5rem);
  --space-xl:  clamp(3rem, 2.78rem + 1.1vw, 3.75rem);
  --space-2xl: clamp(4rem, 3.42rem + 2.93vw, 6rem);
  --space-3xl: clamp(6rem, 5.12rem + 4.39vw, 9rem);

  /* Layout rhythm: every section shares one fluid gutter */
  --gutter: clamp(1.25rem, 4vw, 4rem);
  --measure: 65ch;
  --page: 75rem;
  --radius: 1rem;

  font-family: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  color-scheme: light;
}

/* Semantic — dark */
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #070518;
    --bg-raised: #0d0a28;
    --bg-inverse: #030214;
    --ink: #eceafb;
    --ink-soft: #c0bddd;
    --ink-muted: #8d8ab3;
    --heading: #a8c0ff;
    --line: #232047;
    --card: #100c30;
    --shadow: 0 1px 2px rgb(0 0 0 / .5), 0 16px 40px -16px rgb(0 0 0 / .7);
    color-scheme: dark;
  }
}
/* Explicit user choice always wins over the OS preference */
:root[data-theme="light"] {
  --bg: #ffffff; --bg-raised: #f7f7fb; --bg-inverse: #040037;
  --ink: #040037; --ink-soft: #3d3a5c; --ink-muted: #767aa0;
  --heading: #032075; --line: #e3e3ee; --card: #ffffff;
  --shadow: 0 1px 2px rgb(4 0 55 / .06), 0 12px 32px -12px rgb(4 0 55 / .18);
  color-scheme: light;
}
:root[data-theme="dark"] {
  --bg: #070518; --bg-raised: #0d0a28; --bg-inverse: #030214;
  --ink: #eceafb; --ink-soft: #c0bddd; --ink-muted: #8d8ab3;
  --heading: #a8c0ff; --line: #232047; --card: #100c30;
  --shadow: 0 1px 2px rgb(0 0 0 / .5), 0 16px 40px -16px rgb(0 0 0 / .7);
  color-scheme: dark;
}

/* ----------------------------- Reset ------------------------------ */
*, *::before, *::after { box-sizing: border-box; }
body, h1, h2, h3, h4, p, figure, dl, dd, menu, ul { margin: 0; }
menu, ul.industries { padding: 0; list-style: none; }
img { max-width: 100%; height: auto; display: block; }
:target { scroll-margin-top: 6rem; }
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* ----------------------------- Base ------------------------------- */
body {
  background: var(--bg);
  color: var(--ink);
  font-size: var(--step-0);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: "Sora", "Inter", system-ui, sans-serif;
  color: var(--heading);
  line-height: 1.12;
  letter-spacing: -0.02em;
  text-wrap: balance;
}
h1 { font-size: var(--step-5); font-weight: 800; }
h2 { font-size: var(--step-3); font-weight: 700; }
h3 { font-size: var(--step-1); font-weight: 700; }
p  { max-width: var(--measure); text-wrap: pretty; }

a { color: var(--accent); text-underline-offset: .2em; }
a:hover { color: var(--crimson-600); }

.eyebrow {
  font-size: var(--step--1);
  font-weight: 600;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--accent);
  /* Hanging indent: wrapped lines align under the text, not the tick */
  padding-inline-start: 3em;
  text-indent: -3em;
}
/* Ribbon tick before every eyebrow — the wordmark's wave, systematised */
.eyebrow::before {
  content: "";
  display: inline-block;
  inline-size: 2.25em;
  block-size: .35em;
  margin-inline-end: .75em;
  border-radius: 1em;
  background: var(--ribbon);
  vertical-align: .1em;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: .5em;
  padding: .8em 1.6em;
  border-radius: 100vmax;
  font-weight: 600;
  font-size: var(--step-0);
  text-decoration: none;
  border: 2px solid transparent;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary {
  background: var(--accent);
  color: var(--accent-ink);
  box-shadow: 0 8px 24px -8px color-mix(in srgb, var(--accent) 70%, transparent);
}
.btn-primary:hover { background: var(--crimson-600); color: var(--accent-ink); }
.btn-ghost { border-color: currentColor; color: inherit; }
.btn-light { background: #fff; color: var(--navy-950); }

/* ============================ HEADER ============================== */
header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  gap: var(--space-m);
  padding: var(--space-xs) var(--gutter);
  background: color-mix(in srgb, var(--bg) 96%, transparent);
  border-bottom: 1px solid var(--line);
}
/* Ribbon hairline across the very top of the page */
header::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  block-size: 3px;
  background: var(--ribbon);
}

/* Brand lockup — the supplied logo artwork (891×226, ~3.94:1) */
.brand {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  text-decoration: none;
}
.brand img {
  inline-size: auto;
  block-size: clamp(2.4rem, 1.95rem + 1.4vw, 3.35rem);
}

/* Show the variant that suits the surface. Header follows the theme; the
   footer only ever contains the reversed file, so it needs no switching. */
header .brand .on-dark { display: none; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) header .brand .on-light { display: none; }
  :root:not([data-theme="light"]) header .brand .on-dark  { display: block; }
}
:root[data-theme="dark"] header .brand .on-light { display: none; }
:root[data-theme="dark"] header .brand .on-dark  { display: block; }
:root[data-theme="light"] header .brand .on-light { display: block; }
:root[data-theme="light"] header .brand .on-dark  { display: none; }

footer .brand img { block-size: clamp(2rem, 1.7rem + .9vw, 2.5rem); }

header nav {
  display: flex;
  align-items: center;
  gap: clamp(.75rem, 2vw, 1.75rem);
  margin-inline-start: auto;
}
header nav a {
  color: var(--ink-soft);
  text-decoration: none;
  font-weight: 500;
  font-size: var(--step--1);
}
header nav a:hover { color: var(--accent); }
header nav a.cta {
  color: var(--accent);
  border: 2px solid var(--accent);
  border-radius: 100vmax;
  padding: .45em 1.2em;
}
header nav a.cta:hover { background: var(--accent); color: var(--accent-ink); }

#theme-toggle {
  inline-size: 2.4rem;
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--card);
  color: var(--ink-soft);
  cursor: pointer;
}
#theme-toggle svg { inline-size: 1.2rem; }
#theme-toggle .moon { display: none; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) #theme-toggle .moon { display: block; }
  :root:not([data-theme="light"]) #theme-toggle .sun { display: none; }
}
:root[data-theme="dark"] #theme-toggle .moon { display: block !important; }
:root[data-theme="dark"] #theme-toggle .sun { display: none !important; }

/* Mobile nav */
#nav-toggle { display: none; }
@media (max-width: 52rem) {
  #nav-toggle {
    display: grid;
    place-items: center;
    inline-size: 2.4rem;
    aspect-ratio: 1;
    background: none;
    border: 1px solid var(--line);
    border-radius: .6rem;
    cursor: pointer;
  }
  #nav-toggle span,
  #nav-toggle span::before,
  #nav-toggle span::after {
    content: "";
    display: block;
    inline-size: 1.1rem;
    block-size: 2px;
    border-radius: 2px;
    background: var(--ink);
    position: relative;
    transition: transform .2s ease;
  }
  #nav-toggle span::before { position: absolute; translate: 0 -5px; }
  #nav-toggle span::after  { position: absolute; translate: 0 5px; }
  .nav-open #nav-toggle span { background: transparent; }
  .nav-open #nav-toggle span::before { translate: 0; rotate: 45deg; }
  .nav-open #nav-toggle span::after  { translate: 0; rotate: -45deg; }

  header nav {
    position: fixed;
    inset: 0;
    top: 4.2rem;
    flex-direction: column;
    justify-content: start;
    padding-block: var(--space-xl);
    gap: var(--space-m);
    background: var(--bg);
    translate: 100% 0;
    transition: translate .25s ease;
    visibility: hidden;
  }
  .nav-open header nav { translate: 0 0; visibility: visible; }
  header nav a { font-size: var(--step-1); }
}

/* ============================== HERO ============================== */
.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr);
  align-items: center;
  gap: var(--space-2xl);
  padding: var(--space-3xl) var(--gutter);
  background:
    radial-gradient(50rem 30rem at 85% -10%, color-mix(in srgb, var(--navy-800) 55%, transparent), transparent 60%),
    radial-gradient(40rem 26rem at -10% 110%, color-mix(in srgb, var(--crimson-500) 35%, transparent), transparent 60%),
    var(--navy-950);
  color: #dfe2f5;
}
.hero .eyebrow { color: #ff89ab; }
.hero h1 { color: #fff; margin-block: var(--space-s); }
.hero h1 em {
  font-style: normal;
  background: var(--ribbon);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero hgroup > p:not(.eyebrow) { color: #b9bcd9; font-size: var(--step-1); line-height: 1.55; }
.hero menu {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-s);
  margin-block-start: var(--space-l);
}
.hero figure {
  position: relative;
  border-radius: var(--radius);
  rotate: 1.5deg;
}
.hero figure::after {          /* ribbon frame behind the photo */
  content: "";
  position: absolute;
  inset: 0;
  translate: -1rem 1rem;
  border-radius: inherit;
  background: var(--ribbon);
  opacity: .85;
  z-index: -1;
}
.hero img { border-radius: inherit; box-shadow: var(--shadow); }

/* ============================ E-INVOICE =========================== */
.einvoice {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-l);
  padding: var(--space-l) var(--gutter);
  background: linear-gradient(100deg, var(--crimson-500), var(--navy-800) 85%);
  color: #fff;
}
.einvoice img { inline-size: clamp(4.5rem, 8vw, 7rem); filter: drop-shadow(0 6px 16px rgb(0 0 0 / .35)); }
.einvoice hgroup { flex: 1 1 28rem; }
.einvoice h2 { color: #fff; font-size: var(--step-2); }
.einvoice p { color: #ffe3ec; margin-block-start: var(--space-2xs); }
.einvoice menu { display: flex; flex-wrap: wrap; gap: var(--space-s); }
.einvoice .btn-ghost { color: #fff; }

/* ============================== ABOUT ============================= */
.about {
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
  gap: var(--space-2xl);
  align-items: center;
  max-inline-size: var(--page);
  margin-inline: auto;
  padding: var(--space-3xl) var(--gutter);
}
.about figure {
  position: sticky;
  top: 7rem;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}
.about figure::after {         /* ribbon base bar on the photo */
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  block-size: .5rem;
  background: var(--ribbon);
}
.about h2 { margin-block: var(--space-xs) var(--space-m); }
.about article > p + p { margin-block-start: var(--space-s); }

.industries {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr));
  gap: var(--space-xs);
  margin-block: var(--space-m);
}
.industries li {
  display: flex;
  align-items: center;
  gap: .6em;
  padding: .7em 1em;
  font-size: var(--step--1);
  font-weight: 500;
  background: var(--bg-raised);
  border: 1px solid var(--line);
  border-radius: .6rem;
}
.industries li::before {
  content: "";
  inline-size: .55em;
  aspect-ratio: 1;
  border-radius: 50%;
  background: var(--ribbon);
  flex-shrink: 0;
}

/* ============================== STATS ============================= */
.stats {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  grid-template-areas: "head img" "nums img";
  gap: var(--space-l) var(--space-2xl);
  align-items: center;
  padding: var(--space-3xl) var(--gutter);
  background:
    radial-gradient(45rem 30rem at 110% 120%, color-mix(in srgb, var(--navy-800) 60%, transparent), transparent 65%),
    var(--navy-950);
  color: #c9cce6;
}
.stats hgroup { grid-area: head; }
.stats .eyebrow { color: #ff89ab; }
.stats h2 { color: #fff; margin-block-start: var(--space-xs); }
.stats figure { grid-area: img; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }

.stats dl {
  grid-area: nums;
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-l) var(--space-xl);
}
.stats dt {
  font-family: "Sora", sans-serif;
  font-size: var(--step-4);
  font-weight: 800;
  letter-spacing: -.03em;
  background: var(--ribbon);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.stats dd { font-size: var(--step--1); letter-spacing: .12em; text-transform: uppercase; }

/* ============================ CLIENTS ============================ */
.clients {
  display: grid;
  gap: var(--space-l);
  justify-items: center;
  text-align: center;
  max-inline-size: var(--page);
  margin-inline: auto;
  padding: var(--space-3xl) var(--gutter);
}
.clients hgroup { max-inline-size: 44rem; }
/* Centered eyebrow: neutralise the left hanging-indent */
.clients .eyebrow { padding-inline-start: 0; text-indent: 0; }
.clients h2 { margin-block-start: var(--space-xs); }

/* Flex, not grid: stays centered and balanced at any logo count. Chips are
   white in both themes so client marks are never shown on unapproved
   backgrounds. */
.logo-wall {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--space-s);
}
.logo-wall li {
  display: grid;
  place-items: center;
  padding: var(--space-m) var(--space-l);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: transform .2s ease, box-shadow .2s ease;
}
.logo-wall li:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
}
.logo-wall img {
  inline-size: auto;
  block-size: clamp(3rem, 2.5rem + 1.5vw, 4rem);
  max-inline-size: min(16rem, 60vw);
  object-fit: contain;
}

/* ============================ SERVICES ============================ */
.services {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(20rem, 100%), 1fr));
  gap: var(--space-m);
  max-inline-size: var(--page);
  margin-inline: auto;
  padding: var(--space-3xl) var(--gutter);
  counter-reset: service;
}
.services hgroup { grid-column: 1 / -1; max-inline-size: 44rem; margin-block-end: var(--space-m); }
.services h2 { margin-block-start: var(--space-xs); }

.services article {
  counter-increment: service;
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
  padding: var(--space-l);
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  position: relative;
  overflow: hidden;
  transition: translate .2s ease;
}
.services article:hover { translate: 0 -4px; }
.services article::before {   /* ribbon lip on hover */
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  block-size: .35rem;
  background: var(--ribbon);
  scale: 0 1;
  transform-origin: left;
  transition: scale .25s ease;
}
.services article:hover::before { scale: 1 1; }
.services article::after {    /* 01–05 index */
  content: "0" counter(service);
  position: absolute;
  top: var(--space-s);
  right: var(--space-m);
  font-family: "Sora", sans-serif;
  font-size: var(--step-3);
  font-weight: 800;
  color: var(--line);
  z-index: 0;
}
.services h3 { padding-inline-end: 2.5ch; }
.services p { color: var(--ink-soft); font-size: var(--step--1); }

/* ========================== WHAT WE OFFER ========================= */
.offer {
  display: grid;
  gap: var(--space-2xl);
  max-inline-size: var(--page);
  margin-inline: auto;
  padding: var(--space-3xl) var(--gutter);
  background: var(--bg-raised);
  border-block: 1px solid var(--line);
}
.offer > hgroup { max-inline-size: 44rem; }
.offer > hgroup h2 { margin-block-start: var(--space-xs); }

.offer article {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: var(--space-2xl);
  align-items: center;
}
/* Alternate image side on even rows */
.offer article:nth-of-type(even) figure { order: 2; }
.offer article figure {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  position: relative;
}
.offer article figure::after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  block-size: .4rem;
  background: var(--ribbon);
}
/* Official Zoho lockups have dark wordmarks; keep them on a white chip so
   they survive dark mode untouched (never recolour a third-party mark). */
.product-logo {
  inline-size: auto;
  block-size: clamp(3.4rem, 3rem + 1.2vw, 4.2rem);
  padding: .8em 1.1em;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: .6rem;
  margin-block-end: var(--space-m);
}
:root[data-theme="dark"] .product-logo { border-color: transparent; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .product-logo { border-color: transparent; }
}
.einvoice .product-logo { margin-block: var(--space-s) 0; border: none; }

/* Official Zoho partner badge — self-contained artwork, works on any surface */
.partner-badge {
  inline-size: auto;
  block-size: clamp(3rem, 2.6rem + 1.2vw, 3.75rem);
  border-radius: .55rem;
  box-shadow: 0 4px 16px -6px rgb(0 0 0 / .35);
}
.hero .partner-badge { margin-block-start: var(--space-l); }
footer .partner-badge { margin-block-start: var(--space-m); }

.offer article h3 { font-size: var(--step-2); margin-block: var(--space-xs) var(--space-s); }
.offer article p:not(.eyebrow) { color: var(--ink-soft); }
.offer article .btn { margin-block-start: var(--space-m); }

/* ============================ CONTACT ============================= */
.contact {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  grid-template-areas: "head head" "info form";
  gap: var(--space-xl) var(--space-2xl);
  max-inline-size: var(--page);
  margin-inline: auto;
  padding: var(--space-3xl) var(--gutter);
}
.contact > hgroup { grid-area: head; max-inline-size: 50rem; }
.contact > hgroup h2 { margin-block: var(--space-xs) var(--space-s); }
.contact > hgroup p:not(.eyebrow) { color: var(--ink-soft); }

.contact address {
  grid-area: info;
  font-style: normal;
  display: flex;
  flex-direction: column;
  gap: var(--space-m);
}
.contact address p {
  display: grid;
  gap: .35rem;
  padding: var(--space-m);
  background: var(--card);
  border: 1px solid var(--line);
  border-left: 4px solid transparent;
  border-image: var(--ribbon) 1;
  border-radius: 0 var(--radius) var(--radius) 0;
  box-shadow: var(--shadow);
}
.contact address strong {
  font-family: "Sora", sans-serif;
  color: var(--heading);
  font-size: var(--step-0);
}
.contact address a { font-weight: 600; text-decoration: none; }

.contact form {
  grid-area: form;
  display: grid;
  gap: var(--space-s);
  padding: var(--space-l);
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  align-content: start;
}
.contact label {
  display: grid;
  gap: .4rem;
  font-weight: 600;
  font-size: var(--step--1);
  color: var(--heading);
}
.contact input,
.contact select,
.contact textarea {
  font: inherit;
  color: var(--ink);
  padding: .7em .9em;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: .6rem;
}
.contact :is(input, select, textarea):focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 1px;
  border-color: var(--accent);
}
.contact button { justify-self: start; cursor: pointer; }
.contact output { font-size: var(--step--1); color: var(--ink-muted); }

/* ============================= FOOTER ============================= */
footer {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(0, 1fr) minmax(0, 1fr);
  gap: var(--space-xl);
  padding: var(--space-2xl) var(--gutter) var(--space-l);
  background: var(--bg-inverse);
  color: #b9bcd9;
  position: relative;
}
footer::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  block-size: 3px;
  background: var(--ribbon);
}
footer section p { margin-block-start: var(--space-s); font-size: var(--step--1); }
footer nav, footer address {
  display: flex;
  flex-direction: column;
  gap: .6rem;
  font-style: normal;
}
footer strong {
  font-family: "Sora", sans-serif;
  color: #fff;
  letter-spacing: .1em;
  text-transform: uppercase;
  font-size: var(--step--1);
  margin-block-end: .4rem;
}
footer a { color: #b9bcd9; text-decoration: none; font-size: var(--step--1); }
footer a:hover { color: #ff89ab; }
footer .legal {
  grid-column: 1 / -1;
  padding-block-start: var(--space-m);
  border-block-start: 1px solid rgb(255 255 255 / .1);
  font-size: var(--step--1);
  color: #767aa0;
}

/* =========================== RESPONSIVE =========================== */
@media (max-width: 64rem) {
  .hero { grid-template-columns: 1fr; padding-block: var(--space-2xl); }
  .hero figure { max-inline-size: 34rem; }
  .about { grid-template-columns: 1fr; }
  .about figure { position: static; order: 2; max-inline-size: 34rem; }
  .stats {
    grid-template-columns: 1fr;
    grid-template-areas: "head" "nums" "img";
  }
  .offer article,
  .offer article:nth-of-type(even) { grid-template-columns: 1fr; gap: var(--space-l); }
  .offer article:nth-of-type(even) figure { order: 0; }
  .contact { grid-template-columns: 1fr; grid-template-areas: "head" "info" "form"; }
}
@media (max-width: 40rem) {
  footer { grid-template-columns: 1fr; gap: var(--space-l); }
}
