/* RigWay site — light, contemporary. Colors from the app.
   Fonts are self-hosted (SIL OFL). No external CDNs or trackers. */

@font-face {
  font-family: Asap;
  src: url("fonts/Asap-VariableFont_wdth_wght.ttf") format("truetype");
  font-weight: 100 900;
  font-stretch: 50% 125%;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Asap Condensed";
  src: url("fonts/AsapCondensed-Regular.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Asap Condensed";
  src: url("fonts/AsapCondensed-SemiBold.ttf") format("truetype");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Asap Condensed";
  src: url("fonts/AsapCondensed-Bold.ttf") format("truetype");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg: #ffffff;
  --bg-soft: #f4f7fb;
  --bg-card: #ffffff;
  --navy: #0b1e45;
  --blue: #4a90d9;
  --blue-hover: #3b7fc8;
  --blue-soft: #e8f1fb;
  --red: #d61f26;
  --text: #1c2a40;
  --muted: #5a6b80;
  --faint: #7a8798;
  --line: #e3e8ef;
  --shadow: 0 8px 28px rgba(11, 30, 69, 0.08);
  --radius: 20px;
  --max: 1080px;
}

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

html {
  scroll-behavior: smooth;
  background: var(--bg);
  color: var(--text);
}

body {
  margin: 0;
  font-family: Asap, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 1.0625rem;
  line-height: 1.65;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
}

img, video { max-width: 100%; height: auto; }

a { color: #2c6fb8; text-decoration-thickness: 1px; text-underline-offset: 0.18em; }
a:hover { color: var(--navy); }

h1, h2, h3, .brand, .tagline, .step-num {
  font-family: "Asap Condensed", Asap, "Segoe UI", sans-serif;
  letter-spacing: 0.01em;
  line-height: 1.15;
  color: var(--navy);
}

.skip {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--blue);
  color: var(--navy);
  padding: 0.5rem 1rem;
  z-index: 100;
}
.skip:focus { left: 0.5rem; top: 0.5rem; }

/* Header */
.topbar {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}

.topbar-inner {
  max-width: var(--max);
  margin: 0 auto;
  min-height: 68px;
  padding: 0 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  color: var(--navy);
  text-decoration: none;
  font-weight: 700;
  font-size: 1.5rem;
  letter-spacing: 0.02em;
}
.brand:hover { color: var(--navy); }
.brand img {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  display: block;
}
.brand .way { color: var(--red); }

.nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.2rem 1.25rem;
  justify-content: flex-end;
}
.nav a {
  color: var(--muted);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.98rem;
}
.nav a:hover, .nav a[aria-current="page"] { color: var(--navy); }

/* Layout */
.wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 1.5rem;
}

section { padding: 5rem 0; }
section.band { background: var(--bg-soft); }

h1 {
  font-size: clamp(2.8rem, 7vw, 4.6rem);
  font-weight: 700;
  margin: 0 0 0.65rem;
}
h1 .way { color: var(--red); }

h2 {
  font-size: clamp(2rem, 3.6vw, 2.7rem);
  font-weight: 700;
  margin: 0 0 0.75rem;
}

h3 {
  font-size: 1.35rem;
  font-weight: 700;
  margin: 0 0 0.45rem;
}

.kicker {
  font-family: "Asap Condensed", Asap, sans-serif;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--blue);
  font-size: 0.82rem;
  margin: 0 0 0.7rem;
}

.tagline {
  font-size: clamp(1.25rem, 2.4vw, 1.55rem);
  color: var(--navy);
  font-weight: 600;
  margin: 0 0 1rem;
}

.lede, .hero-lead {
  font-size: 1.15rem;
  color: var(--muted);
  margin: 0 auto 1.5rem;
  max-width: 36rem;
  font-weight: 400;
}

p { margin: 0 0 1rem; }
.muted { color: var(--muted); }
.faint { color: var(--faint); }

/* Hero — simple and open */
.hero {
  padding: 4.5rem 0 5rem;
  text-align: center;
  background:
    radial-gradient(900px 420px at 50% -40px, rgba(74, 144, 217, 0.12), transparent 70%),
    var(--bg);
}

.hero-icon {
  width: 128px;
  height: 128px;
  border-radius: 28px;
  box-shadow: 0 16px 40px rgba(11, 30, 69, 0.14);
  margin: 0 auto 1.4rem;
  display: block;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  justify-content: center;
  margin: 0 0 0.9rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  padding: 0.9rem 1.55rem;
  border-radius: 999px;
  font-family: "Asap Condensed", Asap, sans-serif;
  font-weight: 700;
  font-size: 1.12rem;
  letter-spacing: 0.03em;
  text-decoration: none;
  border: 2px solid transparent;
  cursor: pointer;
  line-height: 1.2;
}
.btn-primary {
  background: var(--blue);
  color: var(--navy);
}
.btn-primary:hover { background: var(--blue-hover); color: var(--navy); }
.btn-ghost {
  background: #fff;
  color: var(--navy);
  border-color: #c9d5e4;
}
.btn-ghost:hover { border-color: var(--blue); color: var(--navy); }

.fine {
  font-size: 0.92rem;
  color: var(--faint);
  margin: 0;
}

/* Feature cards */
.section-head {
  text-align: center;
  max-width: 36rem;
  margin: 0 auto 2.5rem;
}
.section-head .lede { margin-bottom: 0; }

.cards {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}
@media (min-width: 700px) {
  .cards { grid-template-columns: 1fr 1fr; }
}
@media (min-width: 1000px) {
  .cards { grid-template-columns: 1fr 1fr 1fr; }
}

.card {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.6rem 1.45rem 1.5rem;
  box-shadow: var(--shadow);
}
.card p {
  margin: 0;
  color: var(--muted);
  font-size: 1.02rem;
  line-height: 1.55;
}

.icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--blue-soft);
  color: var(--navy);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
}
.icon svg {
  width: 24px;
  height: 24px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.offline-note {
  text-align: center;
  max-width: 38rem;
  margin: 2.25rem auto 0;
  color: var(--muted);
  font-size: 1.02rem;
}
.offline-note strong { color: var(--navy); font-weight: 650; }

/* Screenshots — row on desktop, snap carousel on small screens */
.shots {
  display: flex;
  gap: 1.25rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-padding: 1.5rem;
  padding: 0.25rem 0.15rem 1rem;
  -webkit-overflow-scrolling: touch;
}
.shots::-webkit-scrollbar { height: 6px; }
.shots::-webkit-scrollbar-thumb { background: #c9d5e4; border-radius: 99px; }
.shot {
  margin: 0;
  flex: 0 0 220px;
  scroll-snap-align: start;
  background: #fff;
  border-radius: 24px;
  padding: 8px;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}
@media (min-width: 900px) {
  .shots { display: grid; grid-template-columns: repeat(4, 1fr); overflow: visible; padding-bottom: 0; }
  .shot { flex: none; }
}
.shot img {
  display: block;
  width: 100%;
  border-radius: 18px;
}
.shot figcaption {
  color: var(--faint);
  font-size: 0.85rem;
  text-align: center;
  padding: 0.7rem 0.3rem 0.35rem;
}

/* Video */
.video-block {
  text-align: center;
  max-width: 40rem;
  margin: 0 auto;
}
.video-block .lede { margin-bottom: 1.75rem; }
.video-frame {
  background: #0b1e45;
  border-radius: 22px;
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: 0 18px 44px rgba(11, 30, 69, 0.16);
  max-width: 320px;
  margin: 0 auto;
}
.video-frame video {
  display: block;
  width: 100%;
  height: auto;
  background: #0b1e45;
}

/* Tester */
.steps {
  display: grid;
  gap: 1.25rem;
  margin: 2rem 0 0;
}
@media (min-width: 800px) {
  .steps { grid-template-columns: 1fr 1fr; gap: 1.5rem; }
}

.step {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 2rem 1.75rem 1.75rem;
  box-shadow: var(--shadow);
}
.step-num {
  display: inline-block;
  background: var(--blue-soft);
  color: var(--navy);
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.28rem 0.75rem;
  margin-bottom: 0.9rem;
}
.step p { color: var(--muted); }
.step .btn { margin-top: 0.5rem; }
.note {
  font-size: 0.92rem;
  color: var(--faint);
  margin: 0.85rem 0 0;
}

/* Support */
.support { text-align: center; }
.support .lede { margin-bottom: 1rem; }
.mail {
  font-size: 1.35rem;
  font-weight: 650;
  color: #2c6fb8;
  text-decoration: none;
}
.mail:hover { color: var(--navy); }

/* Footer */
footer {
  border-top: 1px solid var(--line);
  padding: 2.25rem 0 2.75rem;
  color: var(--faint);
  font-size: 0.9rem;
  background: var(--bg);
}
.footer-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 1.5rem;
}
.footer-top {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem 1.5rem;
}
.footer-links { display: flex; flex-wrap: wrap; gap: 1rem 1.25rem; }
.footer-links a { color: var(--muted); text-decoration: none; }
.footer-links a:hover { color: var(--navy); }
.disclaimer { max-width: 46rem; margin: 0.45rem 0 0; line-height: 1.55; }
footer p { margin: 0; color: var(--faint); }

/* Privacy page */
.policy {
  padding: 3.5rem 0 4.5rem;
  max-width: 42rem;
}
.policy h1 { font-size: clamp(2.1rem, 4vw, 3rem); margin-bottom: 0.4rem; }
.policy h2 {
  font-size: 1.4rem;
  margin: 2.25rem 0 0.65rem;
  padding-top: 0.2rem;
}
.policy ul { margin: 0 0 1rem; padding-left: 1.2rem; }
.policy li { margin: 0.4rem 0; color: var(--text); }
.policy p { color: var(--text); }
.updated { color: var(--faint); margin-bottom: 1.6rem; }

@media (max-width: 799px) {
  .topbar-inner {
    flex-wrap: wrap;
    padding-top: 0.7rem;
    padding-bottom: 0.75rem;
    min-height: 0;
  }
  .nav {
    flex: 1 0 100%;
    justify-content: flex-start;
    gap: 0.4rem 1rem;
  }
  section { padding: 3.5rem 0; }
  .hero { padding: 3rem 0 3.5rem; }
  .hero-icon { width: 108px; height: 108px; border-radius: 24px; }
}

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