/* ===================================================================
   OfferBite marketing site — shared stylesheet.

   Visual direction: a service counter for one business. Pale cool sage
   ground, deep pine identity, ink type. One signal colour (persimmon)
   reserved for the only two things you can press.

   Plain CSS with custom properties; no build step, no framework. Pages
   share this file plus the header/footer markup.
   =================================================================== */

:root {
  --bg: #eff1ed;
  --surface: #ffffff;
  --ink: #14181a;
  --ink-soft: #4c5559;
  --ink-faint: #7b8488;
  --line: #d6dad4;
  --line-soft: #e4e7e1;
  --brand: #0f4c3a;
  --brand-soft: #e2ece6;
  --signal: #e4572e;
  --signal-dark: #c4431f;

  --display: "Familjen Grotesk", "Helvetica Neue", Arial, sans-serif;
  --body: "Public Sans", -apple-system, BlinkMacSystemFont, "Segoe UI",
    Roboto, Helvetica, Arial, sans-serif;

  --step--1: clamp(0.82rem, 0.79rem + 0.14vw, 0.9rem);
  --step-0: clamp(1rem, 0.96rem + 0.2vw, 1.08rem);
  --step-1: clamp(1.2rem, 1.12rem + 0.4vw, 1.4rem);
  --step-2: clamp(1.5rem, 1.34rem + 0.8vw, 1.95rem);
  --step-3: clamp(2rem, 1.66rem + 1.7vw, 3rem);
  --step-4: clamp(2.5rem, 1.85rem + 3.2vw, 4.6rem);

  --gap: clamp(1.5rem, 1.1rem + 2vw, 3rem);
  --pad: clamp(1.25rem, 0.7rem + 3vw, 4rem);
  --radius: 10px;
  --radius-lg: 18px;
}

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

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--body);
  font-size: var(--step-0);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1,
h2,
h3 {
  font-family: var(--display);
  font-weight: 600;
  line-height: 1.04;
  letter-spacing: -0.025em;
  margin: 0;
  text-wrap: balance;
}

p {
  margin: 0;
  text-wrap: pretty;
}

a {
  color: inherit;
}

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

.shell {
  width: min(1180px, 100% - var(--pad) * 2);
  margin-inline: auto;
}

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

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

.site-header {
  border-bottom: 1px solid var(--line);
}

.top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding-block: 1.4rem;
}

.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--display);
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  text-decoration: none;
  color: var(--ink);
}

.wordmark__mark {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 8px 8px 8px 2px;
  background: var(--brand);
  color: #fff;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0;
}

.top__nav {
  display: flex;
  align-items: center;
  gap: 1.6rem;
  margin-left: auto;
}

.top__nav a {
  font-size: var(--step--1);
  font-weight: 500;
  color: var(--ink-soft);
  text-decoration: none;
  padding-block: 0.4rem;
}

.top__nav a:hover,
.top__nav a[aria-current="page"] {
  color: var(--ink);
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.7rem 1.15rem;
  border: 1px solid transparent;
  border-radius: 999px;
  font-family: var(--body);
  font-size: var(--step--1);
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 140ms ease, border-color 140ms ease,
    transform 140ms ease;
}

.btn--primary {
  background: var(--signal);
  color: #fff;
}

.btn--primary:hover {
  background: var(--signal-dark);
}

.btn--quiet {
  border-color: var(--line);
  background: var(--surface);
  color: var(--ink);
}

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

.btn:active {
  transform: translateY(1px);
}

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

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(0, 0.98fr);
  gap: clamp(2rem, 1rem + 3vw, 4rem);
  align-items: center;
  padding-block: clamp(2.5rem, 1.5rem + 4vw, 5.5rem);
}

.hero__copy {
  display: grid;
  gap: 1.5rem;
  justify-items: start;
}

.hero h1 {
  font-size: var(--step-4);
  letter-spacing: -0.035em;
}

.hero__lede {
  max-width: 46ch;
  font-size: var(--step-1);
  line-height: 1.5;
  color: var(--ink-soft);
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.9rem;
  margin-top: 0.25rem;
}

.hero__note {
  font-size: var(--step--1);
  color: var(--ink-faint);
}

/* ---- Product preview board ---------------------------------------- */

.board {
  position: relative;
  padding: 1rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: 0 24px 60px -34px rgba(20, 24, 26, 0.4);
}

.board::after {
  /* The single decorative flourish: a persimmon corner tab that reads as
     a price tag on the board, tying the identity to the product name. */
  content: "";
  position: absolute;
  inset-block-start: -10px;
  inset-inline-end: 22px;
  width: 46px;
  height: 22px;
  border-radius: 4px 4px 0 0;
  background: var(--signal);
  opacity: 0.9;
}

.board__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.25rem 0.35rem 0.9rem;
  border-bottom: 1px solid var(--line-soft);
}

.board__business {
  display: grid;
  gap: 0.15rem;
}

.board__name {
  font-family: var(--display);
  font-size: 0.98rem;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.board__badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--brand);
}

.board__badge::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--brand);
}

.board__credit {
  display: grid;
  justify-items: end;
  gap: 0.1rem;
}

.board__credit span {
  font-size: 0.62rem;
  color: var(--ink-faint);
}

.board__credit strong {
  font-family: var(--display);
  font-size: 0.95rem;
  font-weight: 600;
}

.board__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.55rem;
  padding-top: 0.75rem;
}

.tile {
  display: grid;
  gap: 0.2rem;
  padding: 0.65rem 0.7rem;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  background: #fbfcfa;
  opacity: 0;
  transform: translateY(6px);
}

.tile__name {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: -0.005em;
}

.tile__name i {
  display: grid;
  place-items: center;
  width: 15px;
  height: 15px;
  border-radius: 4px;
  background: var(--brand-soft);
  color: var(--brand);
  font-style: normal;
  font-size: 0.55rem;
  font-weight: 700;
}

.tile__stat {
  font-family: var(--display);
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1.1;
}

.tile__label {
  font-size: 0.6rem;
  color: var(--ink-faint);
}

.tile--wide {
  grid-column: span 2;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
}

.tile--wide .tile__stat {
  justify-self: end;
}

/* ---- Section furniture -------------------------------------------- */

.section {
  padding-block: clamp(3rem, 2rem + 4vw, 6rem);
  border-top: 1px solid var(--line);
}

.section__grid {
  display: grid;
  grid-template-columns: minmax(0, 0.34fr) minmax(0, 0.66fr);
  gap: clamp(1.5rem, 1rem + 3vw, 4rem);
  align-items: start;
}

.rail {
  position: sticky;
  top: 2rem;
  display: grid;
  gap: 0.85rem;
}

.rail h2 {
  font-size: var(--step-2);
  max-width: 14ch;
}

.rail p {
  font-size: var(--step--1);
  color: var(--ink-soft);
  max-width: 34ch;
  line-height: 1.55;
}

/* ---- Areas list --------------------------------------------------- */

.areas {
  display: grid;
  border-top: 1px solid var(--line);
}

.area {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 1rem;
  padding-block: 1.4rem;
  border-bottom: 1px solid var(--line);
  align-items: start;
}

.area__glyph {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
  color: var(--brand);
  font-family: var(--display);
  font-size: 0.9rem;
  font-weight: 700;
}

.area__body {
  display: grid;
  gap: 0.35rem;
}

.area__head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.6rem;
}

.area__name {
  font-family: var(--display);
  font-size: var(--step-1);
  font-weight: 600;
  letter-spacing: -0.015em;
}

.area__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.area__tags li {
  padding: 0.12rem 0.5rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 0.68rem;
  font-weight: 500;
  color: var(--ink-soft);
  white-space: nowrap;
}

.area p {
  font-size: var(--step--1);
  color: var(--ink-soft);
  max-width: 52ch;
  line-height: 1.55;
}

/* ---- The loop ----------------------------------------------------- */

.loop {
  display: grid;
  gap: clamp(1.5rem, 1rem + 2vw, 2.5rem);
}

.loop__head {
  display: grid;
  gap: 0.85rem;
  max-width: 52ch;
}

.loop__head h2 {
  font-size: var(--step-3);
}

.loop__head p {
  color: var(--ink-soft);
  font-size: var(--step-0);
  line-height: 1.6;
}

.steps {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0;
  border-top: 1px solid var(--line);
}

.step {
  display: grid;
  gap: 0.5rem;
  padding: 1.15rem 1rem 0 0;
  border-right: 1px solid var(--line);
  padding-inline-end: 1rem;
}

.step:last-child {
  border-right: 0;
}

.step__num {
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--brand);
  color: #fff;
  font-family: var(--display);
  font-size: 0.72rem;
  font-weight: 600;
}

.step h3 {
  font-family: var(--display);
  font-size: 0.98rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.25;
}

.step p {
  font-size: 0.78rem;
  line-height: 1.5;
  color: var(--ink-soft);
}

/* ---- Audiences ---------------------------------------------------- */

.audiences {
  display: grid;
  gap: 0;
  border-top: 1px solid var(--line);
}

.audience {
  display: grid;
  grid-template-columns: minmax(0, 0.32fr) minmax(0, 0.36fr) minmax(0, 0.32fr);
  gap: clamp(1rem, 0.5rem + 2vw, 2.5rem);
  padding-block: 1.6rem;
  border-bottom: 1px solid var(--line);
  align-items: start;
}

.audience h3 {
  font-family: var(--display);
  font-size: var(--step-1);
  font-weight: 600;
  letter-spacing: -0.015em;
  line-height: 1.2;
}

.audience p {
  font-size: var(--step--1);
  color: var(--ink-soft);
  line-height: 1.55;
}

.audience p strong {
  color: var(--ink);
  font-weight: 600;
}

/* ---- Facts -------------------------------------------------------- */

.facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(1rem, 0.5rem + 2vw, 2.5rem);
  padding-block: clamp(2rem, 1rem + 3vw, 3.5rem);
  border-top: 1px solid var(--line);
}

.fact {
  display: grid;
  gap: 0.4rem;
  padding-inline-start: 1.1rem;
  border-inline-start: 2px solid var(--brand);
}

.fact h3 {
  font-family: var(--display);
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.fact p {
  font-size: var(--step--1);
  color: var(--ink-soft);
  line-height: 1.55;
}

/* ---- Closing ------------------------------------------------------ */

.closing {
  display: grid;
  gap: 1.5rem;
  justify-items: center;
  text-align: center;
  padding-block: clamp(3rem, 2rem + 4vw, 5.5rem);
  border-top: 1px solid var(--line);
}

.closing h2 {
  font-size: var(--step-3);
  max-width: 20ch;
}

.closing p {
  max-width: 52ch;
  color: var(--ink-soft);
  font-size: var(--step-0);
}

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

.site-footer {
  border-top: 1px solid var(--line);
}

.foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-block: 1.75rem;
  font-size: 0.78rem;
  color: var(--ink-faint);
}

.foot a {
  color: var(--ink-soft);
  text-decoration: none;
}

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

.foot nav {
  display: flex;
  flex-wrap: wrap;
  gap: 1.2rem;
}

/* ---- Motion ------------------------------------------------------- */

.tile.is-in {
  animation: tile-in 520ms cubic-bezier(0.22, 0.68, 0.35, 1) forwards;
}

@keyframes tile-in {
  to {
    opacity: 1;
    transform: none;
  }
}

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

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

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

  .rail {
    position: static;
  }

  .rail h2,
  .rail p {
    max-width: 46ch;
  }

  .steps {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    border-top: 0;
  }

  .step {
    border-top: 1px solid var(--line);
    border-right: 0;
    padding-inline-end: 0;
    padding-block: 1rem;
  }

  .audience {
    grid-template-columns: 1fr;
    gap: 0.6rem;
  }

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

@media (max-width: 640px) {
  .top__nav {
    display: none;
  }

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

  .tile--wide {
    grid-column: span 1;
    grid-template-columns: 1fr;
  }

  .tile--wide .tile__stat {
    justify-self: start;
  }

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

  .area {
    grid-template-columns: 34px minmax(0, 1fr);
    gap: 0.75rem;
  }

  .area__glyph {
    width: 34px;
    height: 34px;
    border-radius: 10px;
    font-size: 0.78rem;
  }
}

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

  .tile {
    opacity: 1;
    transform: none;
  }

  .tile.is-in {
    animation: none;
  }

  .btn {
    transition: none;
  }
}
