/* rampguide.com — shared stylesheet. No build step, no framework.
   Typeface: Nebula Sans (self-hosted, SIL OFL — see fonts/license.txt).
   Identity: official paperwork, made light. Near-white paper, one
   confident federal blue, gold and green accents, restrained rules and actual product photography. */

@font-face {
  font-family: "Nebula Sans";
  src: url(fonts/NebulaSans-Book.woff2) format("woff2");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "Nebula Sans";
  src: url(fonts/NebulaSans-Medium.woff2) format("woff2");
  font-weight: 500;
  font-display: swap;
}
@font-face {
  font-family: "Nebula Sans";
  src: url(fonts/NebulaSans-Bold.woff2) format("woff2");
  font-weight: 700;
  font-display: swap;
}

:root {
  --bg: #fbfaf7;
  --bg-2: #f3f4f7;
  --sheet: #ffffff;
  --ink: #14161c;
  --ink-2: #4b5060;
  --ink-3: #656b78;
  --line: rgba(20, 22, 28, 0.12);
  --line-soft: rgba(20, 22, 28, 0.07);
  --blue: #2457a6;
  --blue-deep: #1a3f7a;
  --blue-soft: #e6eef9;
  --blue-line: rgba(36, 87, 166, 0.22);
  --gold: #d99a1e;
  --gold-deep: #b57d0f;
  --gold-soft: #fbf0d3;
  --green: #1f8a4c;
  --green-deep: #176b3a;
  --green-soft: #ddf2e4;
  --red: #c9302c;
  --red-soft: #fbe1df;
  --amber: #b57d0f;
  --navy: #0f1a2b;
  --navy-2: #172538;
  --term: #0f1a2b;
  --term-2: #172538;
  --term-fg: #e9eef7;
  --term-dim: #8ea0bd;
  --term-green: #6fd39a;
  --term-gold: #f3c35b;
  --term-red: #f08a86;
  --sans:
    "Nebula Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui,
    sans-serif;
  --mono:
    ui-monospace, "SF Mono", Menlo, Consolas, "Liberation Mono", monospace;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --shadow:
    0 2px 6px rgba(20, 22, 28, 0.04), 0 12px 36px -12px rgba(36, 87, 166, 0.18);
  --shadow-lg:
    0 2px 6px rgba(20, 22, 28, 0.05), 0 30px 70px -24px rgba(36, 87, 166, 0.35);
  --glow:
    0 24px 80px -20px rgba(36, 87, 166, 0.45),
    0 0 0 1px rgba(255, 255, 255, 0.06) inset;
  --radius: 12px;
  --gutter: clamp(16px, 4vw, 48px);
  --measure: 1180px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img,
svg {
  display: block;
  max-width: 100%;
}
a {
  color: inherit;
  text-decoration: none;
}
p {
  margin: 0 0 1em;
}
h1,
h2,
h3,
h4 {
  margin: 0;
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.02;
  text-wrap: balance;
}
h1 {
  font-size: clamp(2.7rem, 5.6vw, 4.7rem);
  letter-spacing: -0.04em;
}
h2 {
  font-size: clamp(2rem, 4.2vw, 3.4rem);
}
h3 {
  font-size: 1.35rem;
  letter-spacing: -0.015em;
  line-height: 1.2;
}
code,
kbd,
pre {
  font-family: var(--mono);
  font-size: 0.92em;
}
:focus-visible {
  outline: 3px solid var(--blue);
  outline-offset: 3px;
  border-radius: 3px;
}
::selection {
  background: var(--gold-soft);
}
.wrap {
  width: min(var(--measure), 100% - 2 * var(--gutter));
  margin-inline: auto;
}
.muted {
  color: var(--ink-2);
}
.faint {
  color: var(--ink-3);
}
.mono {
  font-family: var(--mono);
}
.lede {
  font-size: clamp(1.1rem, 1.5vw, 1.3rem);
  line-height: 1.5;
  color: var(--ink-2);
  max-width: 34em;
}
.grid > *,
.tiers > *,
.hero .wrap > *,
.strip > *,
.split > *,
.step > * {
  min-width: 0;
}
.grad {
  background: linear-gradient(92deg, var(--blue) 0%, var(--green) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.kicker {
  font-family: var(--mono);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--blue);
  display: inline-block;
}
.kicker::before {
  content: "▛ ";
  color: var(--gold);
}
/* ---------- buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5em;
  font: inherit;
  font-weight: 500;
  line-height: 1;
  padding: 0.9em 1.4em;
  border-radius: 4px;
  border: 1px solid var(--blue);
  background: var(--blue);
  color: #fff;
  cursor: pointer;
  white-space: nowrap;
  box-shadow: none;
  transition:
    background 0.15s,
    border-color 0.15s;
}
.btn:hover {
  background: var(--blue-deep);
  border-color: var(--blue-deep);
}
.btn:active {
  transform: translateY(0);
}
.btn.ghost {
  background: rgba(255, 255, 255, 0.6);
  color: var(--blue);
  border-color: var(--blue-line);
  box-shadow: none;
}
.btn.ghost:hover {
  border-color: var(--blue);
  background: #fff;
}
.btn.ink {
  background: var(--ink);
  border-color: var(--ink);
  box-shadow: 0 6px 18px -8px rgba(20, 22, 28, 0.6);
}
.btn.gold {
  background: linear-gradient(180deg, #ecb544, var(--gold));
  border-color: var(--gold);
  color: #2a1e05;
  box-shadow: 0 6px 18px -8px rgba(217, 154, 30, 0.7);
}
.btn.lg {
  font-size: 1.05rem;
  padding: 1.05em 1.7em;
}
.btn.block {
  width: 100%;
}
.btn .arrow {
  transition: transform 0.45s var(--ease);
}
.btn:hover .arrow {
  transform: translateX(4px);
}

.nav {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(16px) saturate(1.3);
  -webkit-backdrop-filter: blur(16px) saturate(1.3);
  background: var(--bg);
  border-bottom: 1px solid var(--line);
}
.nav .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 66px;
  gap: 1rem;
}
.wordmark {
  display: inline-flex;
  align-items: baseline;
  gap: 0.35em;
  font-weight: 700;
  font-size: 1.2rem;
  letter-spacing: -0.02em;
}
.wordmark::before {
  content: "▛";
  color: var(--blue);
  font-size: 0.85em;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: clamp(0.9rem, 2.6vw, 2.2rem);
  font-size: 0.95rem;
  color: var(--ink-2);
}
.nav-links a:hover {
  color: var(--ink);
}
.nav-links .btn {
  font-size: 0.9rem;
  padding: 0.7em 1.15em;
}
@media (max-width: 640px) {
  .nav-links a:not(.btn) {
    display: none;
  }
}

section {
  padding: clamp(56px, 8vw, 112px) 0;
}
section.tight {
  padding: clamp(28px, 4vw, 56px) 0;
}
.faq details {
  border-top: 1px solid var(--line);
  padding: 1.05rem 0;
}
.faq details:last-child {
  border-bottom: 1px solid var(--line);
}
.faq summary {
  cursor: pointer;
  font-weight: 500;
  font-size: 1.08rem;
  list-style: none;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  letter-spacing: -0.01em;
}
.faq summary::-webkit-details-marker {
  display: none;
}
.faq summary::after {
  content: "+";
  font-family: var(--mono);
  color: var(--blue);
  font-weight: 400;
}
.faq details[open] summary::after {
  content: "–";
}
.faq details p {
  color: var(--ink-2);
  margin: 0.8rem 0 0;
  max-width: 60em;
}

/* ---------- notices ---------- */
.notice {
  border: 1px solid var(--line);
  border-left: 4px solid var(--amber);
  background: var(--sheet);
  border-radius: 8px;
  padding: 14px 18px;
  font-size: 0.95rem;
  color: var(--ink-2);
}
.notice.bad {
  border-left-color: var(--red);
}
.notice.good {
  border-left-color: var(--green);
}

/* ---------- footer ---------- */
footer {
  border-top: 2px solid var(--blue);
  padding: 34px 0 44px;
  font-size: 0.88rem;
  color: var(--ink-2);
}
footer .row {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem 2rem;
  align-items: flex-start;
}
footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.4rem;
}
footer nav a:hover {
  color: var(--blue);
  text-decoration: underline;
  text-underline-offset: 3px;
}
footer .legal {
  margin-top: 1.4rem;
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.02em;
  line-height: 1.6;
  color: var(--ink-3);
  max-width: 70em;
}

/* ---------- drafts ---------- */
.draft {
  background: var(--red-soft);
  color: var(--red);
  font-weight: 500;
  text-align: center;
  padding: 0.6em 1em;
  font-size: 0.9rem;
}
.prose {
  max-width: 42em;
}
.prose h2 {
  font-size: 1.5rem;
  margin: 2rem 0 0.6rem;
}
.prose p,
.prose li {
  color: var(--ink-2);
}

/* Current product photography and editorial layouts. */
.eyebrow {
  color: var(--blue);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  margin: 0 0 20px;
}
.story-hero {
  padding: 76px 0 42px;
}
.story-hero h1 {
  max-width: 980px;
  font-size: clamp(42px, 5.4vw, 72px);
  line-height: 1.06;
  font-weight: 500;
  letter-spacing: -0.045em;
}
.story-hero .lede {
  margin: 26px 0 0;
  max-width: 760px;
}
.hero-line {
  display: grid;
  grid-template-columns: 1.8fr 1fr;
  gap: 56px;
  align-items: end;
}
.home-hero h1 {
  font-size: clamp(40px, 4.2vw, 58px);
}
.home-hero h1 em {
  color: var(--blue);
  font-style: normal;
}
.hero-aside {
  max-width: 390px;
  padding-bottom: 4px;
}
.hero-aside p {
  color: var(--ink-2);
  font-size: 19px;
  line-height: 1.55;
  margin-bottom: 24px;
}
.actions {
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}
.text-link {
  color: var(--blue);
  text-decoration: underline;
  text-underline-offset: 5px;
  text-decoration-thickness: 1px;
}
.text-link:hover {
  color: var(--blue-deep);
}
.hero-product {
  padding: 12px 0 0;
}
.app-shot {
  margin: 28px 0 24px;
}
.app-shot > a {
  display: block;
  border: 1px solid #d8d9d5;
  background: #f5f4f0;
  box-shadow: 0 8px 30px #162d4810;
}
.app-shot img {
  display: block;
  width: 100%;
  height: auto;
}
.app-shot figcaption {
  display: flex;
  justify-content: space-between;
  gap: 12px 32px;
  flex-wrap: wrap;
  color: var(--ink-2);
  font-size: 13px;
  line-height: 1.5;
  padding: 14px 0 0;
}
.app-shot figcaption span {
  color: #686e78;
}
.demo-note {
  color: #646975;
  font-size: 12px;
  line-height: 1.6;
  max-width: 850px;
  margin: 24px 0 0;
}
.section-intro {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  column-gap: 96px;
  align-items: end;
}
.section-intro .eyebrow {
  grid-column: 1 / -1;
}
.section-intro h2,
.feature-heading h2,
.mobile-feature h2,
.closing h2 {
  font-size: clamp(32px, 3.8vw, 48px);
  font-weight: 500;
  letter-spacing: -0.035em;
  line-height: 1.1;
}
.section-intro > p:last-child {
  color: var(--ink-2);
  max-width: 450px;
  margin: 0;
  font-size: 19px;
}
.principles {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  margin-top: 48px;
}
.principles article {
  border-top: 1px solid #cbd0d3;
  padding-top: 22px;
}
.index-no {
  display: block;
  font-size: 13px;
  color: var(--blue);
  margin-bottom: 30px;
  font-variant-numeric: tabular-nums;
}
.principles h3 {
  font-size: 22px;
  font-weight: 500;
  margin-bottom: 14px;
}
.principles p {
  color: var(--ink-2);
  margin: 0;
  font-size: 16px;
  line-height: 1.65;
}
.paper-band {
  background: #f0f1ee;
  border-block: 1px solid #e1e3df;
}
.feature-heading {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 24px 96px;
  align-items: end;
  margin-bottom: 40px;
}
.feature-heading > p,
.feature-heading > div:last-child > p {
  color: var(--ink-2);
  max-width: 440px;
  line-height: 1.65;
  margin: 0;
}
.feature-heading > div:last-child > p + p {
  margin-top: 20px;
}
.boundary-note {
  border-left: 2px solid var(--blue);
  padding: 4px 0 4px 22px;
  margin: 32px 0 0;
  max-width: 900px;
  color: var(--ink-2);
  font-size: 15px;
  line-height: 1.7;
}
.tour-index {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0 24px;
  margin: 40px 0 0;
}
.tour-index a {
  padding: 14px 0;
  border-top: 1px solid var(--line);
  font-size: 14px;
  color: var(--blue);
}
.tour-section {
  scroll-margin-top: 76px;
  padding: 80px 0 0;
}
.tour-section:last-of-type {
  padding-bottom: 80px;
}
.mobile-feature {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 100px;
  align-items: center;
  max-width: 950px;
}
.mobile-feature > div > p:not(.eyebrow) {
  margin-top: 24px;
  color: var(--ink-2);
  max-width: 490px;
}
.mobile-feature .app-shot {
  margin: 0;
}
.mobile-feature figcaption {
  font-size: 12px;
}
.mobile-feature figcaption span {
  display: none;
}
.closing {
  border-top: 1px solid var(--line);
}
.closing .wrap {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 32px;
}
.closing h2 {
  max-width: 650px;
}
.pricing-body {
  padding: 10px 0 80px;
}
.plan-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  margin: 26px 0;
}
.plan {
  min-width: 0;
  padding: 36px;
  background: #fff;
  border: 1px solid #d8d9d5;
  border-top: 3px solid var(--blue);
}
.plan h2 {
  font-size: 46px;
  font-weight: 500;
  margin-bottom: 10px;
}
.plan h2 span {
  font-size: 17px;
  color: var(--ink-2);
  letter-spacing: 0;
}
.plan > p {
  color: var(--ink-2);
}
.plan > .eyebrow {
  color: var(--blue);
}
.plan .plain-list {
  padding-left: 20px;
  line-height: 1.6;
  margin: 24px 0 30px;
  font-size: 16px;
}
.plan .plain-list li {
  padding-bottom: 9px;
}
.plan .btn {
  white-space: normal;
  line-height: 1.4;
}
.plan > .small {
  margin-top: 12px;
  overflow-wrap: anywhere;
}
.plan-help {
  padding: 28px 0;
  max-width: 480px;
}
.plan-help h2 {
  font-size: clamp(28px, 3vw, 36px);
  margin-bottom: 24px;
}
.plan-help h3 {
  margin-top: 30px;
}
.plan-help p {
  color: var(--ink-2);
}
.framework-list {
  margin: 0;
}
.framework-list > div {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 40px;
  border-top: 1px solid #cdd2d1;
  padding: 24px 0;
}
.framework-list dt {
  font-size: 20px;
  font-weight: 500;
}
.framework-list dd {
  margin: 0;
  color: var(--ink-2);
  line-height: 1.65;
}
.faq-wrap > h2 {
  margin-bottom: 36px;
  font-weight: 500;
}
.workflow-body {
  padding-top: 0;
}
.workflow-list {
  list-style: none;
  padding: 0;
  margin: 25px 0 55px;
}
.workflow-list li {
  display: grid;
  grid-template-columns: 100px 1fr;
  border-top: 1px solid var(--line);
  padding: 32px 0;
}
.workflow-list li > span {
  color: var(--blue);
  font-size: 14px;
  padding-top: 6px;
}
.workflow-list h2 {
  font-size: 30px;
  font-weight: 500;
  margin-bottom: 14px;
}
.workflow-list p {
  color: var(--ink-2);
  max-width: 700px;
  margin: 0;
}
.api-reference {
  margin: 70px 0;
  border-block: 1px solid var(--line);
  padding: 40px 0;
}
.api-reference h2 {
  font-size: 36px;
  font-weight: 500;
}
.api-reference p:not(.eyebrow) {
  color: var(--ink-2);
  margin: 22px 0;
  max-width: 700px;
}
.small {
  font-size: 14px;
  line-height: 1.65;
}
.skip-link {
  position: fixed;
  z-index: 100;
  top: 8px;
  left: 8px;
  padding: 10px 18px;
  background: white;
  color: var(--blue);
  transform: translateY(-180%);
}
.skip-link:focus {
  transform: none;
}
@media (max-width: 1000px) {
  .hero-line {
    grid-template-columns: 1fr;
    gap: 28px;
  }
  .hero-aside {
    max-width: 650px;
  }
  .hero-aside p {
    max-width: 550px;
  }
  .feature-heading,
  .section-intro {
    gap: 28px 40px;
  }
  .nav-links {
    gap: 20px;
  }
}
@media (max-width: 760px) {
  .story-hero {
    padding: 44px 0 26px;
  }
  .principles,
  .feature-heading,
  .section-intro,
  .plan-grid {
    grid-template-columns: 1fr;
  }
  .principles {
    gap: 28px;
    margin-top: 32px;
  }
  .index-no {
    margin-bottom: 18px;
  }
  .feature-heading {
    margin-bottom: 26px;
  }
  .tour-index {
    grid-template-columns: 1fr 1fr;
    gap: 0 20px;
  }
  .tour-section {
    padding-top: 52px;
  }
  .mobile-feature {
    grid-template-columns: 1fr;
    gap: 36px;
  }
  .mobile-feature .app-shot {
    max-width: 330px;
    margin-inline: auto;
  }
  .closing .wrap {
    display: block;
  }
  .closing .btn {
    margin-top: 28px;
  }
  .framework-list > div {
    grid-template-columns: 1fr;
    gap: 10px;
  }
  .workflow-list li {
    grid-template-columns: 48px 1fr;
  }
  .plan {
    padding: 26px;
  }
  .nav .wrap {
    position: relative;
    height: auto;
    min-height: 70px;
    flex-wrap: wrap;
    padding-block: 14px;
    gap: 15px;
  }
  .nav-links {
    width: 100%;
    justify-content: space-between;
    gap: 10px;
    font-size: 14px;
  }
  .nav-links a:not(.btn) {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
  }
  .nav-links .signin {
    position: absolute;
    top: 4px;
    right: 0;
    min-height: 44px;
  }
  .nav-links .btn {
    font-size: 13px;
    padding: 9px 12px;
  }
  .app-shot figcaption {
    font-size: 12px;
    gap: 6px;
  }
  .app-shot picture img {
    max-height: 650px;
    width: auto;
    margin-inline: auto;
  }
  .app-shot:has(picture) > a {
    background: #f4f3ef;
  }
}

.faq-wrap {
  max-width: 900px;
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .btn,
  .btn .arrow {
    transition: none;
  }
}

/* Native validation and keyboard focus must clear the sticky navigation. */
html { scroll-padding-top: 140px; }
input, select, textarea, button { scroll-margin-top: 140px; }
