/* R-Tech site styles. Colours from Munch design tokens (tokens.json). */
:root {
  --paprika: #FF6B3D;
  --paprika-shade: #D9481C;
  --paprika-tint: #FFE4D9;
  --basil: #2DBE6C;
  --basil-shade: #1F9A54;
  --basil-tint: #DDF7E8;
  --butter: #FFC531;
  --butter-tint: #FFF3C9;
  --blueberry: #3E7BFA;
  --blueberry-shade: #2A5ED1;
  --blueberry-tint: #E1EBFF;
  --ink: #2B2118;
  --ink-soft: #5C4E42;
  --muted: #9A8B7D;
  --line: #EFE3D3;
  --line-strong: #E2D2BD;
  --surface: #FFFFFF;
  --bg: #FFF8EE;
  --dough: #FFF1D9;
  --night: #1F1A2E;
  --radius: 16px;
  --radius-lg: 22px;
  --shadow: 0 4px 0 #E2D2BD;
  --max: 1040px;
  --font: "Nunito", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

@font-face {
  font-family: "Nunito";
  src: url("../fonts/Nunito.woff2") format("woff2");
  font-weight: 500 900;
  font-style: normal;
  font-display: swap;
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.6;
  font-weight: 500;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--blueberry-shade); text-underline-offset: 2px; }
a:hover { color: var(--paprika-shade); }
a:focus-visible, button:focus-visible {
  outline: 3px solid var(--paprika);
  outline-offset: 2px;
}

.skip {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--night);
  color: #fff;
  padding: 8px 12px;
  z-index: 20;
}
.skip:focus { left: 8px; }

.wrap {
  width: min(var(--max), calc(100% - 40px));
  margin-inline: auto;
}

header.site {
  background: rgba(255, 248, 238, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 2px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 10;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 0;
  flex-wrap: wrap;
}

.wordmark {
  display: flex;
  align-items: baseline;
  gap: 8px;
  text-decoration: none;
  color: var(--ink);
  font-weight: 800;
  font-size: 22px;
  letter-spacing: -0.4px;
}
.wordmark span { color: var(--paprika); }

nav.primary {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 16px;
}
nav.primary a {
  color: var(--ink-soft);
  text-decoration: none;
  font-weight: 700;
  font-size: 15px;
}
nav.primary a:hover,
nav.primary a[aria-current="page"] { color: var(--paprika-shade); }

main { flex: 1; padding: 40px 0 72px; }

h1, h2, h3 { line-height: 1.2; letter-spacing: -0.4px; margin: 0 0 12px; }
h1 { font-size: clamp(32px, 6vw, 52px); font-weight: 900; }
h2 { font-size: clamp(24px, 4vw, 32px); font-weight: 800; }
h3 { font-size: 20px; font-weight: 800; }
p { margin: 0 0 16px; color: var(--ink-soft); }
.lede { font-size: 20px; line-height: 1.5; max-width: 38rem; }

.hero {
  display: grid;
  gap: 32px;
  align-items: center;
  margin-bottom: 48px;
}
@media (min-width: 800px) {
  .hero.with-art { grid-template-columns: 1.1fr 0.9fr; }
}

.eyebrow {
  display: inline-block;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: var(--paprika-shade);
  margin-bottom: 10px;
}

.btn-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 8px; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 10px 18px;
  border-radius: 999px;
  font-weight: 800;
  text-decoration: none;
  border: 2px solid transparent;
}
.btn-primary {
  background: var(--paprika);
  color: #fff;
  box-shadow: 0 4px 0 var(--paprika-shade);
}
.btn-primary:hover { color: #fff; background: var(--paprika-shade); }
.btn-ghost {
  background: var(--surface);
  color: var(--ink);
  border-color: var(--line-strong);
  box-shadow: var(--shadow);
}
.btn-ghost:hover { color: var(--ink); }

.card-grid {
  display: grid;
  gap: 20px;
  grid-template-columns: 1fr;
}
@media (min-width: 720px) {
  .card-grid.two { grid-template-columns: 1.2fr 0.8fr; }
}

.card {
  background: var(--surface);
  border: 2px solid var(--line-strong);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  padding: 24px;
  overflow: hidden;
}
.card h2, .card h3 { margin-top: 0; }
.card .meta { color: var(--muted); font-size: 14px; font-weight: 700; margin-bottom: 8px; }
.card.coming {
  background: var(--dough);
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 100%;
}
.app-icon {
  width: 72px;
  height: 72px;
  border-radius: 18px;
  border: 2px solid var(--line-strong);
  margin-bottom: 14px;
  background: #fff;
}

.feature-art {
  border-radius: var(--radius-lg);
  border: 2px solid var(--line-strong);
  box-shadow: var(--shadow);
  overflow: hidden;
  background: var(--dough);
}
.feature-art img { width: 100%; }

.shots {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin: 28px 0 36px;
}
@media (min-width: 800px) {
  .shots { grid-template-columns: repeat(3, 1fr); }
}
.shots figure {
  margin: 0;
  background: var(--surface);
  border: 2px solid var(--line-strong);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
}
.shots img { width: 100%; }
.shots figcaption {
  padding: 10px 12px 12px;
  font-size: 13px;
  font-weight: 700;
  color: var(--ink-soft);
}

.notice {
  background: var(--butter-tint);
  border: 2px solid var(--butter);
  border-radius: 14px;
  padding: 14px 16px;
  margin: 20px 0 28px;
  color: var(--ink);
}
.notice strong { color: var(--ink); }

.store-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 8px 0 24px;
}
.store-badge {
  display: inline-flex;
  align-items: center;
  min-height: 48px;
  padding: 8px 16px;
  border-radius: 12px;
  border: 2px solid var(--night);
  background: var(--night);
  color: #fff;
  font-weight: 800;
  font-size: 14px;
  letter-spacing: 0.2px;
  opacity: 0.92;
}
.store-badge small {
  display: block;
  font-size: 11px;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  color: var(--butter);
  font-weight: 800;
}
.store-badge .label { display: flex; flex-direction: column; line-height: 1.2; }

ul.plain { margin: 0 0 20px; padding-left: 1.15em; color: var(--ink-soft); }
ul.plain li { margin: 0 0 8px; }

.prose { max-width: 760px; }
.prose h2 { margin-top: 32px; }
.prose .meta { color: var(--muted); font-size: 14px; margin-bottom: 16px; }

.contact-box {
  background: var(--surface);
  border: 2px solid var(--line-strong);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  padding: 28px;
  max-width: 560px;
}
.contact-box a.email {
  font-size: 20px;
  font-weight: 800;
  text-decoration: none;
  color: var(--paprika-shade);
}
.contact-box a.email:hover { text-decoration: underline; }

footer.site {
  border-top: 2px solid var(--line);
  background: var(--dough);
  padding: 28px 0 36px;
  color: var(--ink-soft);
  font-size: 14px;
  font-weight: 700;
}
.footer-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 24px;
  justify-content: space-between;
  align-items: center;
}
footer.site nav { display: flex; flex-wrap: wrap; gap: 12px 16px; }
footer.site a { color: var(--ink-soft); text-decoration: none; }
footer.site a:hover { color: var(--paprika-shade); }

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