/* Buckleaps landing page
   One stylesheet, one set of tokens. Light and dark themes switch on html[data-theme].
   Layout: a full-bleed grid for the hero, a centred container everywhere else. */

:root {
  --max: 1400px;
  --gutter: clamp(18px, 4vw, 56px);
  --radius-lg: 26px;
  --radius-md: 18px;
  --radius-sm: 12px;
  --header-h: 76px;

  --blue: #1557e8;
  --blue-deep: #0b45c5;
  --blue-text: #0f4ed0;
  --paper: #f5f8ff;
  --paper-2: #edf3ff;
  --surface: #ffffff;
  --surface-glass: rgba(255, 255, 255, 0.9);
  --ink: #101729;
  --ink-2: #303c57;
  --muted: #4b5873;
  --soft: #66718c;
  --line: #d4def3;
  --line-strong: #bccbe8;
  --navy: #0f2a5a;
  --amber: #e99a1c;
  --green: #4f7a3a;
  --shadow-sm: 0 1px 2px rgba(29, 67, 130, 0.06), 0 2px 8px rgba(29, 67, 130, 0.06);
  --shadow-md: 0 6px 20px rgba(29, 67, 130, 0.1);
  --shadow-lg: 0 18px 55px rgba(29, 67, 130, 0.14);
  --focus: #0b55c9;
  /* Bevel system: a soft top highlight, a hard bottom edge and a soft drop shadow. */
  --edge: rgba(177, 207, 255, 0.85);
  --edge-strong: #073eae;
  --highlight: rgba(255, 255, 255, 0.95);
  --bevel: inset 0 1px 0 var(--highlight), 0 3px 0 var(--edge), 0 6px 14px rgba(29, 67, 130, 0.1);
  --bevel-hover: inset 0 1px 0 var(--highlight), 0 4px 0 var(--edge), 0 10px 20px rgba(29, 67, 130, 0.14);
  --bevel-active: inset 0 1px 0 var(--highlight), 0 1px 0 var(--edge), 0 3px 8px rgba(29, 67, 130, 0.1);
  --btn-gradient: linear-gradient(180deg, #2b6cf6 0%, #1557e8 55%, #0a4ad6 100%);
  --btn-gradient-hover: linear-gradient(180deg, #3777ff 0%, #1c5ce9 55%, #0d4dd0 100%);
  --btn-bevel: inset 0 1px 0 rgba(255, 255, 255, 0.38), 0 3px 0 var(--edge-strong), 0 7px 14px rgba(18, 79, 210, 0.22);
  --btn-bevel-hover: inset 0 1px 0 rgba(255, 255, 255, 0.42), 0 4px 0 var(--edge-strong), 0 10px 18px rgba(18, 79, 210, 0.26);
  --btn-bevel-active: inset 0 2px 4px rgba(0, 25, 90, 0.18), 0 1px 0 var(--edge-strong), 0 3px 7px rgba(18, 79, 210, 0.18);
  --hero-fade-start: rgba(245, 248, 255, 1);
  --hero-fade-end: rgba(245, 248, 255, 0);
  --image-filter: none;
  --font-display: "Manrope", "DM Sans", system-ui, sans-serif;
  --font-body: "DM Sans", system-ui, sans-serif;

  color-scheme: light;
}

html[data-theme="dark"] {
  --blue: #1f5fe6;
  --blue-deep: #1750c4;
  --blue-text: #9cc2ff;
  --paper: #0b1424;
  --paper-2: #101c31;
  --surface: #15233b;
  --surface-glass: rgba(21, 35, 59, 0.92);
  --ink: #f3f6fc;
  --ink-2: #dfe7f5;
  --muted: #c3cfe3;
  --soft: #a9b7cf;
  --line: #2c3d58;
  --line-strong: #4a5f80;
  --navy: #071428;
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.3), 0 2px 8px rgba(0, 0, 0, 0.25);
  --shadow-md: 0 6px 20px rgba(0, 0, 0, 0.35);
  --shadow-lg: 0 18px 55px rgba(0, 0, 0, 0.45);
  --focus: #9cc2ff;
  --edge: rgba(0, 0, 0, 0.45);
  --edge-strong: #0a3390;
  --highlight: rgba(255, 255, 255, 0.08);
  --bevel: inset 0 1px 0 var(--highlight), 0 3px 0 var(--edge), 0 6px 14px rgba(0, 0, 0, 0.3);
  --bevel-hover: inset 0 1px 0 var(--highlight), 0 4px 0 var(--edge), 0 10px 20px rgba(0, 0, 0, 0.35);
  --bevel-active: inset 0 1px 0 var(--highlight), 0 1px 0 var(--edge), 0 3px 8px rgba(0, 0, 0, 0.3);
  --btn-gradient: linear-gradient(180deg, #3272f3 0%, #1f5fe6 55%, #164fcc 100%);
  --btn-gradient-hover: linear-gradient(180deg, #3d7cff 0%, #2566ea 55%, #1a54d0 100%);
  --btn-bevel: inset 0 1px 0 rgba(255, 255, 255, 0.3), 0 3px 0 var(--edge-strong), 0 7px 14px rgba(0, 0, 0, 0.35);
  --btn-bevel-hover: inset 0 1px 0 rgba(255, 255, 255, 0.34), 0 4px 0 var(--edge-strong), 0 10px 18px rgba(0, 0, 0, 0.4);
  --btn-bevel-active: inset 0 2px 4px rgba(0, 0, 0, 0.3), 0 1px 0 var(--edge-strong), 0 3px 7px rgba(0, 0, 0, 0.3);
  --hero-fade-start: rgba(11, 20, 36, 1);
  --hero-fade-end: rgba(11, 20, 36, 0);
  --image-filter: brightness(0.62) saturate(0.8);

  color-scheme: dark;
}

/* Base ------------------------------------------------------------------ */

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

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

button {
  font: inherit;
  color: inherit;
}

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

h1,
h2,
h3,
p,
ul {
  margin-top: 0;
}

ul {
  padding-left: 0;
  list-style: none;
}

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

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

.skip-link {
  position: absolute;
  left: 12px;
  top: -60px;
  z-index: 100;
  padding: 12px 16px;
  background: var(--blue);
  color: #fff;
  border-radius: var(--radius-sm);
  font-weight: 700;
}

.skip-link:focus {
  top: 12px;
}

.container {
  width: min(var(--max), 100% - 2 * var(--gutter));
  margin-inline: auto;
}

.icon {
  width: 1.25em;
  height: 1.25em;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex: none;
}

/* Type ------------------------------------------------------------------ */

.kicker {
  font-size: 13px;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--blue-text);
  font-weight: 800;
  margin: 0 0 14px;
}

.section-title {
  font: 800 clamp(32px, 4vw, 52px) / 1.06 var(--font-display);
  letter-spacing: -0.045em;
  margin-bottom: 18px;
}

.section-lead {
  max-width: 640px;
  font-size: 18px;
  line-height: 1.6;
  color: var(--muted);
}

/* Buttons --------------------------------------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 52px;
  padding: 0 24px;
  border-radius: var(--radius-md);
  font-size: 16px;
  font-weight: 700;
  border: 1px solid transparent;
  cursor: pointer;
  transition:
    transform 0.18s ease,
    box-shadow 0.18s ease,
    background-color 0.18s ease,
    border-color 0.18s ease;
}

.btn-primary {
  background: var(--btn-gradient);
  color: #fff;
  border-color: rgba(7, 62, 190, 0.35);
  box-shadow: var(--btn-bevel);
  text-shadow: 0 1px 0 rgba(0, 36, 130, 0.2);
}

.btn-primary:hover {
  background: var(--btn-gradient-hover);
  box-shadow: var(--btn-bevel-hover);
  transform: translateY(-1px);
}

.btn-primary:active {
  transform: translateY(2px);
  box-shadow: var(--btn-bevel-active);
}

.btn-secondary {
  background: linear-gradient(180deg, var(--surface) 0%, var(--paper-2) 100%);
  color: var(--ink);
  border-color: var(--line-strong);
  box-shadow: var(--bevel);
}

.btn-secondary:hover {
  border-color: var(--blue);
  box-shadow: var(--bevel-hover);
  transform: translateY(-1px);
}

.btn-secondary:active {
  transform: translateY(2px);
  box-shadow: var(--bevel-active);
}

.btn-pill {
  border-radius: 999px;
}

.btn-sm {
  min-height: 44px;
  padding: 0 18px;
  font-size: 15px;
  border-radius: 14px;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  height: var(--header-h);
  background: color-mix(in srgb, var(--paper) 88%, transparent);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  position: relative;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: none;
  min-height: 44px;
}

.brand-mark {
  width: 44px;
  height: 44px;
}

.brand-name {
  font: 800 27px / 1 var(--font-display);
  letter-spacing: -0.05em;
}

.brand-tag {
  display: none;
  margin-left: 14px;
  padding-left: 14px;
  border-left: 1px solid var(--line-strong);
  font-size: 15px;
  color: var(--soft);
  white-space: nowrap;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 8px;
}

.main-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 14px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 16px;
  color: var(--ink-2);
  transition:
    color 0.18s,
    background-color 0.18s;
}

.main-nav a:hover {
  color: var(--blue-text);
  background: var(--paper-2);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.theme-toggle {
  display: flex;
  gap: 2px;
  padding: 3px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: linear-gradient(180deg, var(--paper-2) 0%, var(--surface) 100%);
  box-shadow: var(--bevel);
}

.theme-toggle button {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--ink-2);
  cursor: pointer;
  transition:
    background-color 0.18s,
    color 0.18s;
}

.theme-toggle button .icon {
  width: 20px;
  height: 20px;
}

.theme-toggle button:hover {
  color: var(--blue-text);
}

.theme-toggle button[aria-pressed="true"] {
  background: linear-gradient(180deg, var(--surface) 0%, var(--paper-2) 100%);
  color: var(--blue-text);
  border: 1px solid var(--line);
  box-shadow: inset 0 1px 0 var(--highlight), 0 2px 6px rgba(25, 58, 119, 0.14);
}

.theme-toggle--nav {
  display: none;
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: linear-gradient(180deg, var(--surface) 0%, var(--paper-2) 100%);
  box-shadow: var(--bevel);
  cursor: pointer;
}

.menu-toggle .icon {
  width: 22px;
  height: 22px;
}

.menu-toggle .icon-close,
.menu-toggle[aria-expanded="true"] .icon-menu {
  display: none;
}

.menu-toggle[aria-expanded="true"] .icon-close {
  display: block;
}

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

.hero {
  display: grid;
  grid-template-columns:
    minmax(var(--gutter), 1fr)
    minmax(0, calc(var(--max) * 0.5))
    minmax(0, calc(var(--max) * 0.5))
    minmax(var(--gutter), 1fr);
  align-items: stretch;
  overflow: hidden;
}

.hero-copy {
  grid-column: 2;
  align-self: center;
  padding: 72px 32px 110px 0;
  position: relative;
  z-index: 2;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 40px;
  padding: 0 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: linear-gradient(180deg, var(--surface) 0%, var(--paper-2) 100%);
  color: var(--ink-2);
  font-weight: 700;
  font-size: 14px;
  box-shadow: var(--bevel);
}

.eyebrow .icon {
  color: var(--blue-text);
}

.hero h1 {
  font: 800 clamp(44px, 5vw, 72px) / 1 var(--font-display);
  letter-spacing: -0.05em;
  margin: 26px 0 24px;
  max-width: 15ch;
  text-wrap: balance;
}

.hero h1 .accent {
  color: var(--blue-text);
  font-style: italic;
  position: relative;
  display: inline-block;
}

.hero h1 .accent::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0.1em;
  bottom: -0.1em;
  height: 0.09em;
  background: var(--blue);
  border-radius: 999px;
  transform: rotate(-1.2deg);
  opacity: 0.9;
}

.hero-lead {
  max-width: 560px;
  font-size: 20px;
  line-height: 1.5;
  color: var(--ink-2);
  margin-bottom: 32px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.hero-visual {
  grid-column: 3 / 5;
  position: relative;
  min-height: 640px;
  z-index: 1;
}

.hero-scene {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 62% 45%;
  filter: var(--image-filter);
}

.hero-fade {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(90deg, var(--hero-fade-start) 0%, var(--hero-fade-end) 52%),
    linear-gradient(180deg, var(--hero-fade-end) 60%, var(--hero-fade-start) 100%);
}

.hero-mascot {
  position: absolute;
  bottom: 0;
  left: 14%;
  height: 86%;
  width: auto;
  filter: drop-shadow(0 16px 24px rgba(10, 30, 70, 0.28));
}

/* Apps ------------------------------------------------------------------ */

.apps {
  position: relative;
  z-index: 3;
  margin-top: -80px;
}

.app-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}

.app-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 26px 28px 24px;
  background: var(--surface-glass);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow:
    inset 0 1px 0 var(--highlight),
    0 4px 0 var(--card-edge, var(--edge)),
    0 8px 20px rgba(29, 67, 130, 0.1);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  overflow: hidden;
  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease;
}

.app-card::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 5px;
  background: var(--card-accent, var(--blue));
}

.app-card--race {
  --card-accent: var(--amber);
  --card-edge: rgba(233, 154, 28, 0.55);
}

.app-card--ultra {
  --card-accent: var(--green);
  --card-edge: rgba(79, 122, 58, 0.5);
}

html[data-theme="dark"] .app-card--race {
  --card-edge: rgba(233, 154, 28, 0.4);
}

html[data-theme="dark"] .app-card--ultra {
  --card-edge: rgba(106, 149, 82, 0.45);
}

.app-card:hover {
  transform: translateY(-3px);
  box-shadow:
    inset 0 1px 0 var(--highlight),
    0 6px 0 var(--card-edge, var(--edge)),
    0 16px 32px rgba(29, 67, 130, 0.14);
}

.app-head {
  display: grid;
  grid-template-columns: 64px 1fr;
  column-gap: 16px;
  align-items: center;
}

.app-icon {
  width: 64px;
  height: 64px;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 2px 0 var(--edge), 0 4px 10px rgba(29, 67, 130, 0.12);
}

.app-icon svg {
  width: 100%;
  height: 100%;
}

.app-head h3 {
  font: 800 26px / 1.1 var(--font-display);
  letter-spacing: -0.04em;
  margin: 0 0 4px;
}

.app-head h3 a {
  display: inline-block;
  padding: 10px 0;
  margin: -10px 0;
}

.app-head h3 a:hover {
  color: var(--blue-text);
}

.app-tag {
  margin: 0;
  font-size: 15px;
  font-weight: 600;
  color: var(--soft);
}

.app-status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin: 0;
  font-size: 13px;
  font-weight: 700;
  color: var(--card-accent-text, var(--blue-text));
}

.app-card--race .app-status {
  --card-accent-text: #a86404;
}

.app-card--ultra .app-status {
  --card-accent-text: #3c6230;
}

html[data-theme="dark"] .app-card--race .app-status {
  --card-accent-text: #f2b44e;
}

html[data-theme="dark"] .app-card--ultra .app-status {
  --card-accent-text: #b5cd9f;
}

.app-status::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: currentColor;
}

.app-desc {
  margin: 0;
  color: var(--ink-2);
  font-size: 16px;
  line-height: 1.55;
}

.app-points {
  display: grid;
  gap: 8px;
  margin: 0;
}

.app-points li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 15px;
  color: var(--muted);
}

.app-points .icon {
  width: 18px;
  height: 18px;
  margin-top: 2px;
  color: var(--card-accent, var(--blue));
  stroke-width: 2.6;
}

.app-price {
  margin: 0;
  padding-top: 14px;
  border-top: 1px solid var(--line);
  font-size: 14px;
  color: var(--soft);
}

.app-price strong {
  color: var(--ink);
}

.app-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 2px;
}

.store-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 16px;
  border: 1px solid var(--line-strong);
  border-radius: 14px;
  background: linear-gradient(180deg, var(--surface) 0%, var(--paper-2) 100%);
  box-shadow: var(--bevel);
  font-size: 14px;
  font-weight: 700;
  color: var(--ink-2);
  transition:
    border-color 0.18s,
    color 0.18s,
    transform 0.18s,
    box-shadow 0.18s;
}

.store-link:hover {
  border-color: var(--blue);
  color: var(--blue-text);
  box-shadow: var(--bevel-hover);
  transform: translateY(-1px);
}

.store-link:active {
  transform: translateY(2px);
  box-shadow: var(--bevel-active);
}

.store-link .icon {
  width: 18px;
  height: 18px;
}

.store-note {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-size: 14px;
  color: var(--soft);
}

/* Benefits -------------------------------------------------------------- */

.benefits {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin: 56px auto 0;
  padding: 0 0 8px;
}

.benefit {
  display: grid;
  grid-template-columns: 40px 1fr;
  grid-template-rows: auto auto;
  column-gap: 14px;
  align-items: center;
  padding: 4px 28px;
  border-right: 1px solid var(--line);
}

.benefit:first-child {
  padding-left: 4px;
}

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

.benefit .icon {
  grid-row: 1 / 3;
  width: 40px;
  height: 40px;
  color: var(--blue-text);
  stroke-width: 1.9;
}

.benefit strong {
  font-size: 16px;
  font-weight: 800;
  color: var(--ink);
}

.benefit small {
  font-size: 14px;
  color: var(--soft);
  line-height: 1.4;
}

/* Sections -------------------------------------------------------------- */

.section {
  padding: 96px 0;
}

.about {
  background: var(--paper-2);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.about-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 72px;
  align-items: start;
}

.about-copy {
  font-size: 17px;
  line-height: 1.75;
  color: var(--muted);
}

.about-copy p:last-child {
  margin-bottom: 0;
}

.about-note {
  display: flex;
  gap: 18px;
  align-items: center;
  margin-top: 28px;
  padding: 22px 24px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  box-shadow: var(--bevel);
}

.about-note .icon {
  width: 36px;
  height: 36px;
  color: var(--blue-text);
  stroke-width: 1.8;
}

.about-note h3 {
  font: 800 19px / 1.25 var(--font-display);
  letter-spacing: -0.03em;
  margin: 0 0 4px;
  color: var(--ink);
}

.about-note p {
  margin: 0;
  font-size: 15px;
  line-height: 1.5;
}

.principles {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-top: 56px;
}

.principle {
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: var(--surface);
  box-shadow: var(--bevel);
}

.principle .number {
  font: 800 15px / 1 var(--font-display);
  letter-spacing: 0.08em;
  color: var(--blue-text);
  margin-bottom: 18px;
}

.principle h3 {
  font: 800 20px / 1.2 var(--font-display);
  letter-spacing: -0.03em;
  margin-bottom: 10px;
}

.principle p {
  font-size: 15px;
  line-height: 1.6;
  color: var(--muted);
  margin: 0;
}

/* FAQ ------------------------------------------------------------------- */

.faq {
  background: var(--paper);
}

.faq-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: 72px;
  align-items: start;
}

.faq-list {
  border-top: 1px solid var(--line);
}

.faq-list details {
  border-bottom: 1px solid var(--line);
}

.faq-list summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  min-height: 44px;
  padding: 18px 0;
  font-weight: 700;
  font-size: 17px;
  cursor: pointer;
  list-style: none;
}

.faq-list summary::-webkit-details-marker {
  display: none;
}

.faq-list summary .icon {
  width: 22px;
  height: 22px;
  color: var(--blue-text);
  transition: transform 0.2s ease;
}

.faq-list details[open] summary .icon {
  transform: rotate(45deg);
}

.faq-list details p {
  color: var(--muted);
  font-size: 15px;
  line-height: 1.65;
  margin: 0 40px 20px 0;
}

.faq-list a,
.about a,
.contact a.inline {
  color: var(--blue-text);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* Contact --------------------------------------------------------------- */

.contact {
  background: var(--navy);
  color: #fff;
  padding: 80px 0;
}

.contact-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
}

.contact .kicker {
  color: #b8d2ff;
}

.contact .section-title {
  margin-bottom: 12px;
}

.contact p {
  color: #d6e2f7;
  line-height: 1.6;
  max-width: 600px;
  margin: 0;
}

.contact .btn {
  background: linear-gradient(180deg, #ffffff 0%, #e9f0ff 100%);
  color: var(--navy);
  border-color: rgba(255, 255, 255, 0.6);
  box-shadow:
    inset 0 1px 0 #fff,
    0 3px 0 #9fbdf5,
    0 8px 18px rgba(0, 0, 0, 0.25);
  white-space: nowrap;
  text-shadow: none;
}

.contact .btn:hover {
  background: linear-gradient(180deg, #ffffff 0%, #f1f5ff 100%);
  box-shadow:
    inset 0 1px 0 #fff,
    0 4px 0 #9fbdf5,
    0 12px 22px rgba(0, 0, 0, 0.3);
  transform: translateY(-1px);
}

.contact .btn:active {
  transform: translateY(2px);
  box-shadow:
    inset 0 1px 0 #fff,
    0 1px 0 #9fbdf5,
    0 3px 8px rgba(0, 0, 0, 0.25);
}

html[data-theme="dark"] .contact .btn {
  color: #0f2a5a;
}

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

.site-footer {
  padding: 36px 0;
  background: var(--paper);
  color: var(--soft);
  font-size: 14px;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--ink);
  font: 800 19px / 1 var(--font-display);
  letter-spacing: -0.04em;
  min-height: 44px;
}

.footer-brand svg {
  width: 30px;
  height: 30px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 6px;
}

.footer-links a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 10px;
  border-radius: 999px;
  color: var(--ink-2);
}

.footer-links a:hover {
  color: var(--blue-text);
  background: var(--paper-2);
}

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

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition:
    opacity 0.7s ease,
    transform 0.7s ease;
}

.reveal.visible {
  opacity: 1;
  transform: none;
}

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

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }

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

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

@media (min-width: 1180px) {
  .brand-tag {
    display: inline;
  }
}

@media (max-width: 1100px) {
  .hero {
    grid-template-columns:
      minmax(var(--gutter), 1fr)
      minmax(0, calc(var(--max) * 0.55))
      minmax(0, calc(var(--max) * 0.45))
      minmax(var(--gutter), 1fr);
  }

  .hero-visual {
    min-height: 560px;
  }

  .hero-mascot {
    left: 6%;
    height: 80%;
  }

  .benefit {
    padding: 4px 16px;
  }

  .about-grid,
  .faq-layout {
    gap: 44px;
  }
}

@media (max-width: 900px) {
  :root {
    --header-h: 64px;
  }

  .main-nav {
    display: none;
    position: absolute;
    left: 0;
    right: 0;
    top: calc(var(--header-h) + 1px);
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    padding: 12px;
    background: var(--surface);
    border: 1px solid var(--line);
    border-top: 0;
    border-radius: 0 0 var(--radius-md) var(--radius-md);
    box-shadow: var(--bevel-hover);
  }

  .main-nav.open {
    display: flex;
  }

  .main-nav a {
    min-height: 48px;
    padding: 0 16px;
    font-size: 17px;
  }

  .menu-toggle {
    display: grid;
  }

  .header-contact,
  .theme-toggle--header {
    display: none;
  }

  .theme-toggle--nav {
    display: flex;
    align-self: flex-start;
    margin: 8px 4px 4px;
  }

  .hero {
    grid-template-columns:
      minmax(var(--gutter), 1fr)
      minmax(0, var(--max))
      minmax(var(--gutter), 1fr);
  }

  .hero-copy {
    grid-column: 2;
    padding: 44px 0 28px;
  }

  .hero-visual {
    grid-column: 1 / 4;
    min-height: 0;
    height: 380px;
  }

  .hero-fade {
    background:
      linear-gradient(180deg, var(--hero-fade-start) 0%, var(--hero-fade-end) 32%),
      linear-gradient(180deg, var(--hero-fade-end) 70%, var(--hero-fade-start) 100%);
  }

  .hero-scene {
    object-position: 55% 60%;
  }

  .hero-mascot {
    left: auto;
    right: 8%;
    height: 90%;
  }

  .apps {
    margin-top: -60px;
  }

  .app-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .benefits {
    grid-template-columns: 1fr 1fr;
    gap: 22px 0;
    margin-top: 40px;
  }

  .benefit {
    border-right: 0;
    padding: 0 6px;
  }

  .section {
    padding: 68px 0;
  }

  .about-grid,
  .faq-layout {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .principles {
    grid-template-columns: 1fr;
    gap: 12px;
    margin-top: 32px;
  }

  .contact-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 24px;
  }

  .contact {
    padding: 60px 0;
  }

  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 480px) {
  .brand-mark {
    width: 38px;
    height: 38px;
  }

  .brand-name {
    font-size: 22px;
  }

  .hero h1 {
    font-size: clamp(40px, 11.5vw, 48px);
    margin: 22px 0 18px;
  }

  .hero-lead {
    font-size: 17px;
  }

  .hero-actions .btn {
    width: 100%;
  }

  .hero-visual {
    height: 320px;
  }

  .app-card {
    padding: 22px 18px 20px;
  }

  .app-head {
    grid-template-columns: 56px 1fr;
    column-gap: 12px;
  }

  .app-icon {
    width: 56px;
    height: 56px;
    border-radius: 16px;
  }

  .app-head h3 {
    font-size: 23px;
  }

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

  .benefit {
    grid-template-columns: 36px 1fr;
  }

  .faq-list details p {
    margin-right: 0;
  }
}
