/* Modrz website styles. Flame & Volt palette: see .claude/skills/modrz-design/SKILL.md.
   Orange (flame) = the one main action. Blue (volt) = links and focus. Everything else is chrome. */

/* ---------- Fonts (self-hosted, OFL 1.1: licences in fonts/) ---------- */
@font-face {
  font-family: "Inter";
  src: url("fonts/Inter-Regular.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Inter";
  src: url("fonts/Inter-SemiBold.ttf") format("truetype");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Saira Condensed";
  src: url("fonts/SairaCondensed-Bold.ttf") format("truetype");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Saira Condensed";
  src: url("fonts/SairaCondensed-Black.ttf") format("truetype");
  font-weight: 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Space Grotesk";
  src: url("fonts/SpaceGrotesk-Bold.ttf") format("truetype");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

/* ---------- Tokens ---------- */
:root {
  color-scheme: dark;
  --bg: #0E1117;          /* page background (carbon) */
  --surface: #161B22;     /* cards, panels, footer */
  --raised: #1E242D;      /* hover on outlined buttons */
  --border: #2A313C;      /* decorative borders and dividers */
  --control: #636E7E;     /* outlined button border (3:1) */
  --text: #E8ECF1;        /* body text, never pure white */
  --muted: #ADB8C7;       /* one-line captions and secondary text only */
  --flame-fill: #FF8533;  /* main button fill */
  --flame-hi: #FF9447;    /* main button hover */
  --on-flame: #0E1117;    /* label on the main button (w700 caps) */
  --volt: #4DA3FF;        /* focus ring */
  --volt-text: #7AB8FF;   /* links */
  --pill: rgba(173, 184, 199, 0.10); /* muted 10% tint: the one pill tint step */
  --signature: linear-gradient(90deg, #FF6B00 0%, #FFB37A 28%, #EEF2F6 50%, #9CCBFF 72%, #2F8CFF 100%);

  --font-display: "Saira Condensed", "Arial Narrow", "Roboto Condensed", Arial, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --font-label: "Space Grotesk", "Inter", system-ui, -apple-system, "Segoe UI", Arial, sans-serif;

  --gutter: 16px;
  --max: 1120px;
  --radius: 12px;
  --measure: 35em;        /* comfortable line length for running text (at most about 75 characters) */
}
@media (min-width: 720px) {
  :root { --gutter: 24px; }
}
@media (min-width: 1024px) {
  :root { --gutter: 32px; }
}

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  background: var(--bg);
}

/* Header, main and footer in a column, so the footer reaches the bottom of short pages. */
body {
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.6;
  font-synthesis: none;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-wrap: break-word;
}
body > main { flex: 1 0 auto; }
@media (min-width: 720px) {
  body { font-size: 1.0625rem; }
}

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

strong,
b { font-weight: 600; }

p { margin: 0 0 16px; }

a {
  color: var(--volt-text);
  text-decoration-line: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
}
a:hover { text-decoration-thickness: 2px; }

:focus-visible {
  outline: 3px solid var(--volt);
  outline-offset: 3px;
}

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

.skip-link {
  position: absolute;
  left: var(--gutter);
  top: -200px;
  z-index: 10;
  padding: 12px 16px;
  background: var(--surface);
  color: var(--text);
  border: 1px solid var(--control);
  border-radius: 8px;
  font-weight: 600;
  text-decoration: none;
}
.skip-link:focus { top: 12px; }

.wrap {
  width: 100%;
  max-width: calc(var(--max) + 2 * var(--gutter));
  margin-inline: auto;
  padding-inline: var(--gutter);
}

/* ---------- Type ---------- */
h1,
h2 {
  font-family: var(--font-display);
  text-transform: uppercase;
  letter-spacing: 0.01em;
  text-wrap: balance;
}
h1 {
  font-weight: 900;
  font-size: clamp(2.5rem, 1.6rem + 4.5vw, 5rem);
  line-height: 0.98;
  margin: 0 0 24px;
}
h2 {
  font-weight: 700;
  font-size: clamp(2rem, 1.55rem + 2vw, 3rem);
  line-height: 1.02;
  margin: 0 0 16px;
}
h3 {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 1.1875rem;
  line-height: 1.35;
  margin: 0 0 8px;
}

.eyebrow {
  font-family: var(--font-label);
  font-weight: 700;
  font-size: 0.8125rem;
  line-height: 1.4;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 16px;
}

.lead {
  font-size: 1.125rem;
  line-height: 1.6;
  max-width: var(--measure);
}
@media (min-width: 720px) {
  .lead { font-size: 1.25rem; }
}

.section-intro { max-width: var(--measure); margin-bottom: 32px; }

/* Smaller full sentences (disclaimers, notes): body colour, not muted, so they stay easy to read. */
.note {
  color: var(--text);
  font-size: 0.9375rem;
  max-width: 33em;
}

/* ---------- Header ---------- */
.site-header { border-bottom: 1px solid var(--border); }
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 72px;
  padding-block: 8px;
}
.brand { display: block; flex: none; border-radius: 4px; }
.brand img { width: 150px; }
@media (max-width: 359px) {
  .brand img { width: 140px; }
}
@media (min-width: 720px) {
  .brand img { width: 192px; }
}

.site-nav { min-width: 0; }
.site-nav ul {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  align-items: center;
  gap: 0 16px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.site-nav .nav-section { display: none; }
@media (min-width: 760px) {
  .site-nav ul { gap: 0 24px; }
  .site-nav .nav-section { display: list-item; }
}
/* Every nav item looks the same: muted, turning to text colour with an underline on hover. */
.site-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-family: var(--font-label);
  font-weight: 700;
  font-size: 0.8125rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  text-decoration: none;
}
.site-nav a:hover {
  color: var(--text);
  text-decoration: underline;
  text-decoration-thickness: 2px;
}

/* ---------- Hero ---------- */
.hero { padding-block: 40px 48px; }
.hero-grid {
  display: grid;
  gap: 40px;
  align-items: center;
}
.hero-status {
  color: var(--muted);
  margin-bottom: 32px;
}
.hero-shot {
  margin: 0;
  width: 100%;
  max-width: 280px;
}
/* A surface bezel, so the screenshot reads as a picture of the app, not as a form on this page. */
.shot-frame {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 8px;
}
.shot-frame img {
  width: 100%;
  border-radius: 12px;
}
.hero-shot figcaption {
  margin-top: 12px;
  font-size: 0.875rem;
  line-height: 1.5;
  color: var(--muted);
}
@media (min-width: 900px) {
  .hero { padding-block: 80px 64px; }
  .hero-grid { grid-template-columns: minmax(0, 1fr) 280px; gap: 64px; }
}

/* The signature gradient: once per page, never behind text. */
.signature {
  height: 4px;
  border-radius: 2px;
  background: var(--signature);
}

/* ---------- Buttons ---------- */
/* Every button has a 1 px border (transparent unless outlined), so Windows contrast themes still draw its shape. */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 52px;
  padding: 15px 27px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  font-family: var(--font-label);
  font-weight: 700;
  font-size: 1rem;
  line-height: 1.2;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
  text-align: center;
}
.btn-main {
  background: var(--flame-fill);
  color: var(--on-flame);
}
.btn-main:hover { background: var(--flame-hi); }
.btn-outline {
  background: transparent;
  color: var(--text);
  border-color: var(--control);
}
.btn-outline:hover { background: var(--raised); }
.btn svg { width: 20px; height: 20px; flex: none; }

/* ---------- Sections ---------- */
.section {
  padding-block: 48px;
  scroll-margin-top: 16px;
}
.section + .section { border-top: 1px solid var(--border); }
@media (min-width: 900px) {
  .section { padding-block: 72px; }
}

/* How it works: 2 x 2 from tablet up, so each step keeps a readable line length. */
.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 16px;
}
@media (min-width: 640px) {
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
.step,
.card,
.panel,
.status-box {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
.step { padding: 24px; }
@media (min-width: 900px) {
  .step { padding: 32px; }
}
.step-num {
  display: block;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 2.25rem;
  line-height: 1;
  color: var(--muted);
  margin-bottom: 12px;
}
@media (min-width: 1024px) {
  .step-num { font-size: 2.75rem; margin-bottom: 16px; }
}
.step p { margin: 0; }

/* Features */
.cards {
  display: grid;
  gap: 16px;
}
@media (min-width: 720px) {
  .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
.card { padding: 24px; }
@media (min-width: 720px) {
  .card { padding: 32px; }
}
.card-icon {
  width: 32px;
  height: 32px;
  color: var(--muted);
  margin-bottom: 16px;
}
.card ul {
  margin: 0 0 16px;
  padding-left: 1.25em;
}
.card li + li { margin-top: 4px; }
.card p:last-child,
.card ul:last-child { margin-bottom: 0; }

.categories { margin-top: 48px; }
.categories h3 { margin-bottom: 16px; }

.pills {
  list-style: none;
  margin: 0 0 16px;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
/* 7/15 padding + the 1 px border = 8/16 on the grid. */
.pills li {
  background: var(--pill);
  color: var(--text);
  border: 1px solid transparent;
  border-radius: 999px;
  padding: 7px 15px;
  font-size: 0.9375rem;
  line-height: 1.4;
}

/* Brands, retailers, fitters */
.audience {
  display: grid;
  gap: 16px;
}
@media (min-width: 900px) {
  .audience { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
.panel {
  padding: 28px 24px;
  scroll-margin-top: 16px;
}
@media (min-width: 720px) {
  .panel { padding: 40px; }
}
.panel h2 { font-size: clamp(1.75rem, 1.45rem + 1.3vw, 2.25rem); }
.panel ul {
  margin: 0 0 24px;
  padding-left: 1.25em;
}
.panel ul,
.panel p { max-width: var(--measure); }
.panel li + li { margin-top: 8px; }
.panel p:last-child { margin-bottom: 0; }

/* Status and contact */
.status-box {
  padding: 32px 24px;
  display: grid;
  gap: 24px;
}
.status-box h2 { margin-bottom: 16px; }
.status-box p { max-width: var(--measure); }
.status-box p:last-child { margin-bottom: 0; }
/* Full-width button on phones only; its own width from 600 px. */
.status-box .btn { width: 100%; }
@media (min-width: 600px) {
  .status-box .btn { width: auto; justify-self: start; }
}
@media (min-width: 900px) {
  .status-box {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 48px;
    padding: 48px;
  }
}

/* Disclosures */
.disclosures {
  border-top: 1px solid var(--border);
  padding-block: 40px;
}
.disclosures p { margin-bottom: 8px; }
.disclosures p:last-child { margin-bottom: 0; }
.disclosures .commission { max-width: var(--measure); font-weight: 600; color: var(--text); }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--surface);
  border-top: 1px solid var(--border);
  padding-block: 48px 40px;
  font-size: 0.9375rem;
}
.footer-grid {
  display: grid;
  gap: 32px;
}
@media (min-width: 720px) {
  .footer-grid { grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); }
}
.site-footer p { margin: 0 0 8px; color: var(--muted); }
.site-footer .footer-company { color: var(--text); font-weight: 600; }
.footer-heading {
  font-family: var(--font-label);
  font-weight: 700;
  font-size: 0.8125rem;
  line-height: 1.4;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 12px;
}
.footer-links {
  list-style: none;
  margin: 0;
  padding: 0;
}
.footer-links li + li { margin-top: 8px; }
.footer-links .sub { color: var(--muted); }
.footer-legal {
  border-top: 1px solid var(--border);
  margin-top: 32px;
  padding-top: 24px;
}

/* ---------- Plain pages (privacy, 404) ---------- */
/* .prose sits inside .wrap, so its text starts on the same left line as the logo and the footer. */
.page { padding-block: 48px 72px; }
@media (min-width: 900px) {
  .page { padding-block: 80px 96px; }
}
.prose { max-width: var(--measure); }
.prose h1 { font-size: clamp(2.25rem, 1.7rem + 2.6vw, 3.5rem); }
.prose h2 {
  font-size: clamp(1.5rem, 1.3rem + 0.9vw, 1.875rem);
  margin: 40px 0 12px;
}
.prose ul { padding-left: 1.25em; margin: 0 0 16px; }
.prose li + li { margin-top: 8px; }

/* ---------- Motion ---------- */
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
  a,
  .btn { transition: background-color 0.15s ease, color 0.15s ease; }
}
