/*
 * Plan Awaryjny — landing page. Hand-written CSS, no build step, light theme only.
 * Colours come from the app (packages/ui/src/tokens.ts). Every text/background pair is
 * listed with its WCAG 2.2 contrast ratio in apps/landing/README.md.
 * Hashed asset names (*.xxxxxxxx.*) are rewritten by tools/build-assets.mjs.
 */

@font-face {
  font-family: Inter;
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('/assets/fonts/inter-400.776b884b.woff2') format('woff2');
  unicode-range:
    U+0020-007E, U+00A0-017F, U+2000-200A, U+2010-2027, U+202F, U+2030, U+2039-203A, U+20AC, U+2122,
    U+2190-2193, U+2212;
}

@font-face {
  font-family: Inter;
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('/assets/fonts/inter-600.83a5e8f9.woff2') format('woff2');
  unicode-range:
    U+0020-007E, U+00A0-017F, U+2000-200A, U+2010-2027, U+202F, U+2030, U+2039-203A, U+20AC, U+2122,
    U+2190-2193, U+2212;
}

@font-face {
  font-family: Inter;
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('/assets/fonts/inter-700.615853cc.woff2') format('woff2');
  unicode-range:
    U+0020-007E, U+00A0-017F, U+2000-200A, U+2010-2027, U+202F, U+2030, U+2039-203A, U+20AC, U+2122,
    U+2190-2193, U+2212;
}

:root {
  color-scheme: light;

  /* Brand (app tokens). #ff5a00 only for graphics and large text: white on it is 3.1:1. */
  --orange: #ff5a00;
  --orange-pressed: #e04e00;
  --orange-strong: #c94400; /* white text 4.9:1 */
  --orange-deep: #a83800; /* white text 6.5:1 */
  --orange-text: #b33d00; /* on white 5.9:1, on cream 5.7:1 */
  --orange-soft: #ffe6d6;
  --orange-tint: #fff2e9;
  --cream: #fff9f4;
  --surface: #fff;
  --surface-muted: #fbf4ee;
  --ink: #242424;
  --ink-muted: #555;
  --ink-subtle: #6b6b6b;
  --border: #efe4db;
  --success: #16825d;
  --warning: #8a5300;
  --warning-soft: #fff2d4;

  --font: Inter, system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  --shadow-card: 0 4px 14px rgb(138 74 31 / 8%);
  --shadow-raised: 0 18px 44px rgb(120 45 0 / 16%);
  --shadow-phone: 0 28px 56px rgb(70 24 0 / 30%);
  --gutter: clamp(16px, 4vw, 40px);
  --max: 1200px;
  --header-h: 76px;
  --focus: var(--ink);
}

/* Base */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  text-size-adjust: 100%;
  scroll-padding-top: 24px;
}

@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--ink);
  background: var(--cream);
  overflow-wrap: break-word;
  -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
p,
ul,
ol,
figure {
  margin: 0;
}

ul,
ol {
  padding: 0;
  list-style: none;
}

img,
svg,
picture {
  display: block;
}

img {
  max-width: 100%;
  height: auto;
}

h2 {
  font-size: clamp(1.875rem, 1.35rem + 2.2vw, 2.875rem);
  line-height: 1.12;
  font-weight: 700;
  letter-spacing: -0.02em;
  text-wrap: balance;
}

h3 {
  font-size: 1.1875rem;
  line-height: 1.3;
  font-weight: 700;
  letter-spacing: -0.01em;
}

strong {
  font-weight: 700;
}

a {
  color: var(--orange-text);
  text-decoration-thickness: 0.08em;
  text-underline-offset: 0.18em;
}

a:hover {
  text-decoration-thickness: 0.14em;
}

:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
  border-radius: 6px;
}

main:focus {
  outline: none;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

.sprite {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

.icon {
  flex: none;
  width: 24px;
  height: 24px;
  fill: none;
  stroke: currentcolor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.container {
  width: min(100% - 2 * var(--gutter), var(--max));
  margin-inline: auto;
}

.container--narrow {
  --max: 820px;
}

.skip-link {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 100;
  padding: 12px 18px;
  border-radius: 12px;
  background: var(--surface);
  color: var(--ink);
  font-weight: 700;
  text-decoration: none;
  box-shadow: var(--shadow-raised);
  transform: translateY(-200%);
}

.skip-link:focus {
  transform: none;
}

/* Header (sits on the hero) */

.site-header {
  --focus: #fff;

  position: absolute;
  inset: 0 0 auto;
  z-index: 10;
  color: #fff;
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: var(--header-h);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  color: inherit;
  font-size: 1.125rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  text-decoration: none;
}

.brand__logo {
  width: 38px;
  height: 38px;
}

.site-nav {
  display: none;
}

@media (min-width: 760px) {
  .site-nav {
    display: block;
  }

  .site-nav ul {
    display: flex;
    gap: clamp(8px, 1.5vw, 20px);
  }

  .site-nav a {
    display: inline-block;
    padding: 10px 8px;
    color: #fff;
    font-size: 0.9375rem;
    font-weight: 600;
    text-decoration: none;
  }

  .site-nav a:hover {
    text-decoration: underline;
    text-decoration-thickness: 2px;
  }
}

/* Buttons and chips */

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 52px;
  padding: 12px 22px;
  border-radius: 16px;
  font-size: 1.0625rem;
  font-weight: 700;
  line-height: 1.2;
  text-decoration: none;
}

.button--light {
  background: var(--surface);
  color: var(--orange-text);
  box-shadow: 0 6px 18px rgb(70 24 0 / 22%);
}

.button--light:hover {
  background: var(--orange-tint);
}

.button .icon {
  width: 20px;
  height: 20px;
}

.status-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 8px 16px;
  border-radius: 999px;
  background: rgb(60 18 0 / 32%);
  color: #fff;
  font-size: 0.9375rem;
  font-weight: 600;
  line-height: 1.3;
}

.status-chip .icon {
  width: 20px;
  height: 20px;
}

/* Hero */

.hero {
  --focus: #fff;

  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding-block: calc(var(--header-h) + clamp(12px, 3vw, 40px)) clamp(104px, 11vw, 144px);
  color: #fff;

  /* The photo is grey; multiply tints it with the gradient and can only darken it. */
  background-color: #fff;
  background-image:
    linear-gradient(160deg, #cc4500 0%, #c04100 50%, #a63700 100%),
    url('/assets/img/hero-siren-940.ba53b621.jpg');
  background-image:
    linear-gradient(160deg, #cc4500 0%, #c04100 50%, #a63700 100%),
    image-set(
      url('/assets/img/hero-siren-940.250e3458.webp') type('image/webp'),
      url('/assets/img/hero-siren-940.ba53b621.jpg') type('image/jpeg')
    );
  background-repeat: no-repeat;
  background-position:
    center,
    62% 24%;
  background-size: cover;
  background-blend-mode: multiply;
}

/* Warm glow behind the phones only (never behind text). */
.hero::before {
  content: '';
  position: absolute;
  z-index: -1;
  bottom: -260px;
  left: 50%;
  width: 640px;
  height: 640px;
  transform: translateX(-50%);
  background: radial-gradient(closest-side, rgb(255 120 40 / 80%), rgb(255 120 40 / 0%));
  pointer-events: none;
}

.hero__inner {
  display: grid;
  gap: 40px;
  align-items: center;
}

.hero__kicker {
  display: inline-block;
  margin-bottom: 18px;
  font-size: 0.875rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero__title {
  max-width: 13ch;
  font-size: clamp(2.125rem, 1.3rem + 4.2vw, 4.5rem);
  line-height: 1.04;
  font-weight: 700;
  letter-spacing: -0.03em;
  text-wrap: balance;
}

.hero__lead {
  max-width: 32em;
  margin-top: 22px;
  font-size: clamp(1.1875rem, 1.05rem + 0.5vw, 1.4375rem);
  line-height: 1.45;
  font-weight: 600;
}

.hero__sub {
  max-width: 36em;
  margin-top: 12px;
  font-size: clamp(1.0625rem, 1rem + 0.25vw, 1.1875rem);
  line-height: 1.55;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px 16px;
  margin-top: 32px;
}

.hero__note {
  margin-top: 14px;
  font-size: 0.9375rem;
}

.hero__visual {
  position: relative;
  display: flex;
  justify-content: center;
}

.hero .phone--front {
  --phone-w: 248px;

  position: relative;
  z-index: 1;
}

.hero .phone--back {
  display: none;
}

@media (min-width: 600px) {
  .hero .phone--front {
    margin-right: 120px;
  }

  .hero .phone--back {
    --phone-w: 220px;

    display: block;
    position: absolute;
    top: 56px;
    left: 50%;
    margin-left: -8px;
    transform: rotate(5deg);
  }
}

@media (min-width: 960px) {
  .hero__inner {
    grid-template-columns: minmax(0, 1.12fr) minmax(0, 0.88fr);
    gap: 48px;
  }

  .hero::before {
    top: 50%;
    right: -160px;
    bottom: auto;
    left: auto;
    width: 760px;
    height: 760px;
    transform: translateY(-46%);
  }

  .hero__visual {
    justify-content: flex-start;
    padding-left: 8px;
  }

  .hero .phone--front {
    --phone-w: 284px;

    margin-right: 0;
  }

  .hero .phone--back {
    --phone-w: 248px;

    top: 72px;
    left: 216px;
    margin-left: 0;
  }
}

/* Phone frame around a real screenshot */

.phone {
  --phone-w: 260px;

  flex: none;
  width: var(--phone-w);
  padding: calc(var(--phone-w) * 0.032);
  border-radius: calc(var(--phone-w) * 0.16);
  background: #1f1f1f;
  box-shadow:
    inset 0 0 0 1px #3b3b3b,
    var(--shadow-phone);
}

.phone__screen {
  position: relative;
  overflow: hidden;
  padding-top: calc(var(--phone-w) * 0.085);
  border-radius: calc(var(--phone-w) * 0.13);
  background: var(--screen-bg, var(--cream));
}

.phone__screen::before {
  content: '';
  position: absolute;
  top: calc(var(--phone-w) * 0.026);
  left: 50%;
  width: 30%;
  height: calc(var(--phone-w) * 0.062);
  transform: translateX(-50%);
  border-radius: 999px;
  background: #1f1f1f;
}

.phone img {
  width: 100%;
}

.phone--sos {
  --screen-bg: #a93800;
}

.phone--crisis {
  --screen-bg: #c94400;
}

/* Promise strip (overlaps the hero) */

.promises {
  position: relative;
  z-index: 2;
  margin-top: calc(-1 * clamp(64px, 7vw, 88px));
}

.promises__list {
  display: grid;
  gap: 2px;
  padding: 8px;
  border-radius: 24px;
  background: var(--surface);
  box-shadow: var(--shadow-raised);
}

.promise {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 14px 16px;
}

.promise .icon {
  width: 28px;
  height: 28px;
  color: var(--orange-strong);
}

.promise__title {
  font-weight: 700;
  line-height: 1.35;
}

.promise__text {
  margin-top: 2px;
  color: var(--ink-muted);
  font-size: 0.9375rem;
  line-height: 1.45;
}

@media (min-width: 600px) {
  .promises__list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1080px) {
  .promises__list {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    padding: 12px;
  }

  .promise {
    padding: 16px 18px;
  }
}

/* Sections */

.section {
  padding-block: clamp(64px, 9vw, 112px);
}

.section--white {
  background: var(--surface);
}

.section--tint {
  background: var(--orange-tint);
}

.section-head {
  max-width: 760px;
  margin-bottom: clamp(32px, 5vw, 52px);
}

.section-head--center {
  margin-inline: auto;
  text-align: center;
}

.eyebrow {
  margin-bottom: 12px;
  color: var(--orange-text);
  font-size: 0.875rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.eyebrow--badge {
  display: inline-block;
  padding: 5px 12px;
  border-radius: 999px;
  background: var(--warning-soft);
  color: var(--warning);
  letter-spacing: 0.05em;
}

.section-lead {
  margin-top: 16px;
  color: var(--ink-muted);
  font-size: clamp(1.0625rem, 1rem + 0.3vw, 1.25rem);
  line-height: 1.55;
}

/* Steps */

.steps {
  display: grid;
  gap: 20px;
}

.step {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-radius: 28px;
  background: var(--surface);
  box-shadow: var(--shadow-card);
}

.step__text {
  padding: 28px 28px 0;
}

.step__text p {
  margin-top: 8px;
  color: var(--ink-muted);
}

.step__num {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  margin-bottom: 16px;
  border-radius: 50%;
  background: var(--orange-pressed);
  color: #fff;
  font-size: 1.25rem;
  font-weight: 700;
}

.step__visual {
  display: flex;
  justify-content: center;
  height: 340px;
  margin-top: auto;
  padding-top: 28px;
  overflow: hidden;
  background: linear-gradient(180deg, var(--surface) 0%, var(--orange-tint) 100%);
}

.step .phone {
  --phone-w: 236px;

  align-self: flex-start;
}

@media (min-width: 600px) and (max-width: 899px) {
  .step {
    flex-direction: row;
    align-items: center;
  }

  .step__text {
    flex: 1;
    padding: 32px 8px 32px 32px;
  }

  .step__visual {
    flex: none;
    width: 270px;
    height: 330px;
    margin-top: 0;
    align-self: stretch;
    padding-top: 32px;
    overflow: visible; /* the card clips the phone; keeps its shadow soft */
    background: none;
  }
}

@media (min-width: 900px) {
  .steps {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
  }

  .step__visual {
    height: 360px;
  }
}

/* Feature grid */

.features {
  display: grid;
  gap: 16px;
}

.feature {
  padding: 24px;
  border: 1px solid var(--border);
  border-radius: 20px;
  background: var(--cream);
}

.feature__icon {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  margin-bottom: 16px;
  border-radius: 14px;
  background: var(--orange-soft);
  color: var(--orange-strong);
}

.feature p {
  margin-top: 6px;
  color: var(--ink-muted);
  font-size: 1rem;
  line-height: 1.55;
}

@media (min-width: 600px) {
  .features {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .feature:last-child:nth-child(odd) {
    grid-column: 1 / -1;
  }
}

@media (min-width: 960px) {
  .features {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
  }

  .feature:last-child:nth-child(odd) {
    grid-column: auto;
  }
}

/* Text + phones */

.split {
  display: grid;
  gap: 48px;
  align-items: center;
}

.split__visual {
  display: flex;
  flex-direction: column;
  align-items: center;
}

@media (min-width: 960px) {
  .split {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 64px;
  }

  .split--reverse .split__visual {
    order: -1;
  }
}

.duo {
  flex-direction: row;
  align-items: flex-start;
  justify-content: center;
  gap: 16px;
}

.duo .phone {
  --phone-w: 136px;
}

.duo .phone:nth-child(2) {
  margin-top: 40px;
}

@media (min-width: 400px) {
  .duo .phone {
    --phone-w: 162px;
  }
}

@media (min-width: 600px) {
  .duo {
    gap: 24px;
  }

  .duo .phone {
    --phone-w: 236px;
  }

  .duo .phone:nth-child(2) {
    margin-top: 64px;
  }
}

.checklist {
  display: grid;
  gap: 14px;
  margin-top: 28px;
}

.checklist li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.checklist .icon {
  width: 26px;
  height: 26px;
  margin-top: 1px;
  padding: 5px;
  border-radius: 50%;
  background: var(--success);
  color: #fff;
  stroke-width: 3;
}

.note {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-top: 28px;
  padding: 16px 18px;
  border-radius: 16px;
  background: var(--surface-muted);
  color: var(--ink-muted);
  font-size: 0.9375rem;
  line-height: 1.5;
}

.section--white .note {
  background: var(--cream);
}

.note .icon {
  color: var(--orange-text);
}

.icon-list {
  display: grid;
  gap: 20px;
  margin-top: 28px;
}

.icon-list li {
  display: flex;
  gap: 16px;
}

.icon-list__icon {
  display: grid;
  flex: none;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--orange-soft);
  color: var(--orange-strong);
}

.icon-list h3 {
  font-size: 1.0625rem;
}

.icon-list p {
  margin-top: 2px;
  color: var(--ink-muted);
  font-size: 1rem;
}

.phone--map {
  --phone-w: 264px;
}

.split figcaption {
  max-width: 300px;
  margin-top: 18px;
  color: var(--ink-subtle);
  font-size: 0.875rem;
  line-height: 1.45;
  text-align: center;
}

/* Safety block */

.safety {
  --focus: #fff;

  position: relative;
  display: grid;
  gap: 20px;
  margin-top: clamp(56px, 8vw, 96px);
  padding: clamp(28px, 5vw, 48px);
  overflow: hidden;
  border-radius: 28px;
  background: linear-gradient(135deg, var(--orange-strong) 0%, var(--orange-deep) 100%);
  color: #fff;
  box-shadow: var(--shadow-raised);
}

.safety__icon {
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  border-radius: 16px;
  background: rgb(255 255 255 / 16%);
}

.safety__icon .icon {
  width: 30px;
  height: 30px;
}

.safety__body {
  position: relative;
  z-index: 1;
}

.safety h2 {
  max-width: 24ch;
  font-size: clamp(1.5rem, 1.15rem + 1.4vw, 2.125rem);
}

.safety ul {
  display: grid;
  gap: 10px;
  max-width: 46em;
  margin-top: 18px;
  font-size: clamp(1.0625rem, 1rem + 0.2vw, 1.1875rem);
}

.safety li {
  position: relative;
  padding-left: 22px;
}

.safety li::before {
  content: '';
  position: absolute;
  top: 0.65em;
  left: 2px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #fff;
}

.safety__links {
  margin-top: 20px;
  font-size: 0.9375rem;
}

.safety a {
  color: #fff;
  font-weight: 600;
}

.safety__number {
  display: none;
  position: absolute;
  right: -0.06em;
  bottom: -0.22em;
  color: rgb(255 255 255 / 10%);
  font-size: clamp(7rem, 4rem + 14vw, 15rem);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.06em;
  pointer-events: none;
  user-select: none;
}

@media (min-width: 760px) {
  .safety {
    grid-template-columns: auto minmax(0, 1fr);
    gap: 28px;
  }
}

/* Decorative "112" only where it can sit beside the text, not under it. */
@media (min-width: 1100px) {
  .safety {
    padding-right: 300px;
  }

  .safety__number {
    display: block;
  }
}

/* Privacy cards */

.cards {
  display: grid;
  gap: 16px;
}

.card {
  padding: 24px;
  border-radius: 20px;
  background: var(--surface);
  box-shadow: var(--shadow-card);
}

.card__icon {
  width: 28px;
  height: 28px;
  margin-bottom: 14px;
  color: var(--orange-strong);
}

.card p {
  margin-top: 6px;
  color: var(--ink-muted);
  font-size: 1rem;
  line-height: 1.55;
}

@media (min-width: 600px) {
  .cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 960px) {
  .cards--3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
  }
}

.aside-note {
  max-width: 40em;
  margin: 32px auto 0;
  color: var(--ink-muted);
  font-size: 0.9375rem;
  text-align: center;
}

/* Roadmap (not available yet) */

.roadmap {
  display: grid;
  gap: 14px;
}

.roadmap__item {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: start;
  gap: 4px 14px;
  padding: 20px 22px;
  border: 2px dashed #e6cdb9;
  border-radius: 20px;
}

.roadmap__item > .icon {
  margin-top: 1px;
  color: var(--ink-subtle);
}

.roadmap__item h3 {
  font-size: 1.0625rem;
}

.roadmap__item p {
  margin-top: 4px;
  color: var(--ink-muted);
  font-size: 0.9375rem;
  line-height: 1.5;
}

.tag {
  grid-column: 2;
  justify-self: start;
  margin-top: 10px;
  padding: 3px 10px;
  border-radius: 999px;
  background: var(--warning-soft);
  color: var(--warning);
  font-size: 0.8125rem;
  font-weight: 600;
}

@media (min-width: 760px) {
  .roadmap {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* FAQ */

.faq {
  display: grid;
  gap: 12px;
}

.faq details {
  border: 1px solid var(--border);
  border-radius: 18px;
  background: var(--cream);
}

.faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 44px;
  padding: 18px 22px;
  border-radius: 18px;
  font-size: 1.0625rem;
  font-weight: 600;
  line-height: 1.4;
  list-style: none;
  cursor: pointer;
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary .icon {
  color: var(--orange-text);
  transition: transform 0.2s ease;
}

.faq details[open] summary .icon {
  transform: rotate(180deg);
}

.faq details p {
  padding: 0 22px 20px;
  color: var(--ink-muted);
}

/* Closing band */

.closing {
  --focus: #fff;

  padding-block: clamp(64px, 9vw, 104px);
  background: linear-gradient(160deg, var(--orange-strong) 0%, var(--orange-deep) 100%);
  color: #fff;
  text-align: center;
}

.closing__inner {
  display: grid;
  justify-items: center;
  gap: 20px;
}

.closing__logo {
  width: 76px;
  height: 76px;
}

.closing h2 {
  max-width: 16ch;
}

.closing__note {
  font-size: 0.9375rem;
}

/* Footer */

.site-footer {
  padding-block: 40px;
  border-top: 1px solid var(--border);
  background: var(--surface);
  color: var(--ink-muted);
  font-size: 0.9375rem;
}

.site-footer__inner {
  display: grid;
  gap: 24px;
}

.site-footer__brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.site-footer__logo {
  width: 44px;
  height: 44px;
  color: var(--orange-strong);
}

.site-footer__name {
  color: var(--ink);
  font-weight: 700;
}

.site-footer__meta {
  display: grid;
  gap: 6px;
}

@media (min-width: 760px) {
  .site-footer__inner {
    grid-template-columns: auto auto;
    align-items: center;
    justify-content: space-between;
  }

  .site-footer__meta {
    text-align: right;
  }
}

/* 404 */

.not-found {
  display: grid;
  min-height: 100vh;
  min-height: 100svh;
  place-items: center;
  padding: 48px var(--gutter);
  text-align: center;
}

.not-found__inner {
  display: grid;
  justify-items: center;
  gap: 18px;
  max-width: 34em;
}

.not-found__logo {
  width: 72px;
  height: 72px;
  color: var(--orange-strong);
}

.not-found h1 {
  font-size: clamp(1.875rem, 1.4rem + 2vw, 2.5rem);
  line-height: 1.15;
  letter-spacing: -0.02em;
}

.not-found p {
  color: var(--ink-muted);
}

.button--primary {
  background: var(--orange-strong);
  color: #fff;
}

.button--primary:hover {
  background: var(--orange-deep);
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
