/* Rough-In Redlines — dark-first hero, then cool light sections (dark mode keeps them ink).
   One accent: redline red. Display: Bricolage Grotesque · Body: Geist · Trade details: Geist Mono. */
:root {
  --ink: #0B0E13;
  --ink-2: #131821;
  --ink-line: rgba(255, 255, 255, 0.09);
  --on-ink: #F2F4F7;
  --on-ink-dim: #A7AFBB;
  --red: #E0352B;
  --red-ink: #C42A21;
  --bg: #F4F5F7;
  --surface: #FFFFFF;
  --fg: #0F1319;
  --fg-dim: #4B5462;
  --line: #DCE0E6;
  --chip: #E9ECF0;
  --shadow: 0 30px 80px -30px rgba(10, 14, 20, 0.45), 0 12px 30px -18px rgba(10, 14, 20, 0.35);
  --display: "Bricolage Grotesque", "Arial Narrow", system-ui, sans-serif;
  --body: "Geist", "Segoe UI", system-ui, -apple-system, sans-serif;
  --mono: "Geist Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;
  --wrap: 1180px;
  --gutter: clamp(16px, 4vw, 40px);
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0E1117;
    --surface: #151A22;
    --fg: #EEF1F5;
    --fg-dim: #A3ACB9;
    --line: #262D38;
    --chip: #1D232D;
    --red-ink: #FF5A4F;
    color-scheme: dark;
  }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; background: var(--bg); color: var(--fg); font: 400 17px/1.6 var(--body); -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
a:focus-visible, .btn:focus-visible { outline: 3px solid var(--red); outline-offset: 3px; border-radius: 6px; }
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding-inline: var(--gutter); }
h1, h2, h3 { font-family: var(--display); line-height: 1.02; letter-spacing: -0.025em; margin: 0; text-wrap: balance; }
p { margin: 0; }
.mono { font-family: var(--mono); font-size: 12.5px; letter-spacing: 0.06em; text-transform: uppercase; }

/* ---------- nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 20;
  background: rgba(11, 14, 19, 0.97);
  backdrop-filter: saturate(160%) blur(14px); -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid var(--ink-line);
  color: var(--on-ink);
}
.nav .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 64px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--on-ink); }
.brand svg { flex: none; }
.brand > span, .nav-links a { white-space: nowrap; }
.brand b { font: 700 19px/1 var(--display); letter-spacing: -0.02em; }
.brand small { font: 500 11px/1 var(--mono); letter-spacing: 0.18em; color: var(--on-ink-dim); margin-left: 2px; }
.nav-links { display: flex; align-items: center; gap: clamp(10px, 2.4vw, 28px); font-size: 15px; }
.nav-links a { text-decoration: none; color: var(--on-ink-dim); }
.nav-links a:hover { color: var(--on-ink); }
.nav-links .pill { color: var(--on-ink); border: 1px solid rgba(255,255,255,0.22); padding: 7px 14px; border-radius: 999px; }
@media (max-width: 640px) { .nav-links .hide-sm { display: none; } }
@media (max-width: 430px) { .brand small { display: none; } .nav-links .pill { padding: 7px 12px; } }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; gap: 10px; min-height: 48px; padding: 0 22px; border-radius: 12px; font: 600 16px/1 var(--body); text-decoration: none; border: 1px solid transparent; }
.btn-red { background: var(--red); color: #fff; box-shadow: 0 10px 30px -10px rgba(224, 53, 43, 0.7); }
.btn-red:hover { background: #EC4237; }
.btn-ghost { color: var(--on-ink); border-color: rgba(255,255,255,0.22); }
.btn-ghost:hover { border-color: rgba(255,255,255,0.45); }
.btn .apple { width: 17px; height: 17px; }

/* ---------- hero ---------- */
.hero { background: var(--ink); color: var(--on-ink); overflow: hidden; position: relative; }
.hero::before { /* a faint print grid only behind the device, fading out */
  content: ""; position: absolute; inset: 0;
  background-image: linear-gradient(rgba(255,255,255,0.045) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,0.045) 1px, transparent 1px);
  background-size: 32px 32px;
  -webkit-mask-image: radial-gradient(ellipse 60% 70% at 72% 55%, #000 10%, transparent 70%);
  mask-image: radial-gradient(ellipse 60% 70% at 72% 55%, #000 10%, transparent 70%);
  pointer-events: none;
}
.hero .wrap { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.08fr); gap: clamp(28px, 4vw, 56px); align-items: center; padding-block: clamp(56px, 9vw, 120px) clamp(64px, 9vw, 128px); }
.kicker { display: inline-flex; align-items: center; gap: 10px; color: var(--on-ink-dim); }
.kicker i { width: 8px; height: 8px; border-radius: 50%; background: var(--red); box-shadow: 0 0 0 4px rgba(224,53,43,0.18); }
.hero h1 { font-size: clamp(44px, 5.5vw, 78px); font-weight: 800; margin-top: 18px; }
.hero h1 .mark { position: relative; white-space: nowrap; }
.hero h1 .mark svg { position: absolute; left: -4%; bottom: -0.16em; width: 108%; height: 0.36em; overflow: visible; }
.hero .lede { color: var(--on-ink-dim); font-size: clamp(18px, 1.6vw, 21px); max-width: 30em; margin-top: 22px; }
.hero .ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.hero .fine { margin-top: 18px; color: var(--on-ink-dim); font-size: 14px; }
.hero .fine a { color: var(--on-ink); }

/* iPad frame */
.ipad { position: relative; border-radius: clamp(22px, 3vw, 38px); padding: clamp(9px, 1.2vw, 16px); background: linear-gradient(145deg, #2A303A, #11151B 55%, #1C2129); box-shadow: inset 0 0 0 1px rgba(255,255,255,0.12), inset 0 0 0 3px #07090C, var(--shadow); }
.ipad::before { /* front camera on the long edge (landscape) */
  content: ""; position: absolute; top: 50%; left: clamp(3px, 0.45vw, 6px); width: 5px; height: 5px; margin-top: -2.5px; border-radius: 50%; background: #2C333D; box-shadow: inset 0 0 0 1px #3B4450;
}
.ipad img { border-radius: clamp(13px, 1.8vw, 24px); width: 100%; }
.hero .device { perspective: 1800px; position: relative; }
.hero .ipad { transform: rotateY(-11deg) rotateX(5deg) rotateZ(1deg); transform-origin: 30% 50%; }
.hero .callout { position: absolute; right: -2%; bottom: -6%; display: flex; flex-direction: column; gap: 4px; background: rgba(19, 24, 33, 0.86); border: 1px solid var(--ink-line); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); padding: 12px 16px; border-radius: 14px; color: var(--on-ink); }
.hero .callout b { font: 600 15px/1.2 var(--body); }
.hero .callout span { color: var(--on-ink-dim); }

/* ---------- sections ---------- */
section { padding-block: clamp(72px, 10vw, 136px); }
.sec-head { max-width: 760px; }
.sec-head .mono { color: var(--red-ink); }
.sec-head h2 { font-size: clamp(36px, 4.6vw, 60px); font-weight: 750; margin-top: 14px; }
.sec-head p { color: var(--fg-dim); font-size: 19px; margin-top: 16px; max-width: 36em; }

/* feature rows */
.rows { display: flex; flex-direction: column; gap: clamp(72px, 9vw, 120px); margin-top: clamp(48px, 6vw, 80px); }
.row { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 72px); align-items: center; }
.row.flip { grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); }
.row.flip .media { order: 2; }
.row .media .ipad { box-shadow: inset 0 0 0 1px rgba(255,255,255,0.12), inset 0 0 0 3px #07090C, 0 30px 70px -36px rgba(10,14,20,0.55); }
.row .text .mono { color: var(--red-ink); }
.row h3 { font-size: clamp(30px, 3.4vw, 44px); font-weight: 750; margin-top: 12px; }
.row .text > p { color: var(--fg-dim); font-size: 18px; margin-top: 16px; }
.ticks { list-style: none; padding: 0; margin: 22px 0 0; display: flex; flex-direction: column; gap: 10px; }
.ticks li { display: grid; grid-template-columns: 22px minmax(0, 1fr); gap: 10px; font-size: 16.5px; }
.ticks li::before { content: ""; width: 18px; height: 18px; margin-top: 3px; border-radius: 50%; background: var(--red) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 18 18'%3E%3Cpath d='M5 9.4l2.6 2.5L13 6.4' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/18px no-repeat; }
.outputs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1px; margin-top: 24px; background: var(--line); border: 1px solid var(--line); border-radius: 16px; overflow: hidden; }
.outputs div { background: var(--surface); padding: 16px 18px; }
.outputs b { display: block; font-size: 16px; }
.outputs span { color: var(--fg-dim); font-size: 14.5px; line-height: 1.45; display: block; margin-top: 4px; }

/* bento of the smaller features */
.bento { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin-top: clamp(40px, 5vw, 64px); }
.tile { background: var(--surface); border: 1px solid var(--line); border-radius: 20px; padding: 24px; display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.tile.wide { grid-column: span 2; }
.tile.ink { background: var(--ink); border-color: var(--ink); color: var(--on-ink); }
.tile.ink p { color: var(--on-ink-dim); }
.tile .icon { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: rgba(224,53,43,0.1); color: var(--red-ink); }
.tile.ink .icon { background: rgba(224,53,43,0.18); color: #FF6B61; }
.tile h3 { font-size: 22px; font-weight: 700; letter-spacing: -0.015em; margin-top: 6px; }
.tile p { color: var(--fg-dim); font-size: 15.5px; line-height: 1.5; }
.tile .big { font: 800 clamp(48px, 5vw, 64px)/1 var(--display); letter-spacing: -0.03em; }
.libs { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 6px; }
.libs span { font: 500 13px/1 var(--body); padding: 8px 11px; border-radius: 999px; background: rgba(255,255,255,0.08); color: var(--on-ink); }

/* how it works */
.steps-band { background: var(--surface); border-block: 1px solid var(--line); }
.steps { list-style: none; padding: 0; margin: clamp(48px, 5vw, 64px) 0 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(20px, 3vw, 40px); counter-reset: step; }
.steps li { position: relative; padding-top: 30px; border-top: 2px solid var(--line); counter-increment: step; }
.steps li::before { content: counter(step, decimal-leading-zero); position: absolute; top: -16px; left: 0; font: 600 13px/30px var(--mono); padding: 0 12px; border-radius: 999px; background: var(--fg); color: var(--bg); }
.steps li:first-child { border-top-color: var(--red); }
.steps li:first-child::before { background: var(--red); color: #fff; }
.steps h3 { font-size: 26px; font-weight: 700; }
.steps p { color: var(--fg-dim); margin-top: 10px; }

/* who it's for */
.trades { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 32px; }
.trades span { font: 600 clamp(18px, 2vw, 24px)/1 var(--display); letter-spacing: -0.01em; padding: 14px 20px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); }

/* pricing teaser */
.plans { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin-top: clamp(36px, 5vw, 56px); }
.plan { border: 1px solid var(--line); border-radius: 22px; padding: clamp(24px, 3vw, 36px); background: var(--surface); display: flex; flex-direction: column; gap: 14px; }
.plan.pro { border-color: var(--red); box-shadow: 0 0 0 1px var(--red) inset; }
.plan .name { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.plan .name h3 { font-size: 30px; font-weight: 750; }
.plan .name .mono { color: var(--fg-dim); }
.plan.pro .name .mono { color: var(--red-ink); }
.plan > p { color: var(--fg-dim); }
.plan .ticks { margin-top: 4px; }

/* final CTA */
.final { background: var(--ink); color: var(--on-ink); position: relative; overflow: hidden; }
.final .wrap { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 28px; align-items: end; }
.final h2 { font-size: clamp(38px, 5.4vw, 72px); font-weight: 800; }
.final p { color: var(--on-ink-dim); font-size: 19px; margin-top: 16px; max-width: 32em; }
.final .cloud { position: absolute; right: -80px; top: -60px; width: 460px; opacity: 0.16; pointer-events: none; }

/* footer */
footer { background: var(--ink); color: var(--on-ink-dim); border-top: 1px solid var(--ink-line); font-size: 14.5px; }
footer .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; padding-block: 28px; }
footer nav { display: flex; gap: 22px; }
footer a { color: var(--on-ink-dim); text-decoration: none; }
footer a:hover { color: var(--on-ink); }

/* long-form pages */
.page-head { background: var(--ink); color: var(--on-ink); }
.page-head .wrap { padding-block: clamp(48px, 7vw, 96px) clamp(40px, 6vw, 72px); }
.page-head .mono { color: #FF6B61; }
.page-head h1 { font-size: clamp(40px, 6vw, 72px); font-weight: 800; margin-top: 14px; }
.page-head p { color: var(--on-ink-dim); margin-top: 14px; font-size: 18px; max-width: 40em; }
.prose { max-width: 720px; padding-block: clamp(40px, 6vw, 72px) clamp(64px, 8vw, 110px); }
.prose h2 { font-size: 26px; font-weight: 700; margin: 40px 0 10px; letter-spacing: -0.015em; }
.prose h2:first-child { margin-top: 0; }
.prose p, .prose li, .prose dd { color: var(--fg-dim); }
.prose p + p { margin-top: 12px; }
.prose ul { padding-left: 20px; margin: 10px 0 0; display: flex; flex-direction: column; gap: 8px; }
.prose strong { color: var(--fg); }
.prose a { color: var(--red-ink); }
.prose dl { margin: 12px 0 0; border-top: 1px solid var(--line); }
.prose dt { font-weight: 600; color: var(--fg); padding-top: 18px; font-size: 18px; }
.prose dd { margin: 6px 0 0; padding-bottom: 18px; border-bottom: 1px solid var(--line); }

/* gentle scroll-in (motion only: content is fully visible without it) */
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .rise { animation: rise linear both; animation-timeline: view(); animation-range: entry 0% entry 40%; }
    @keyframes rise { from { transform: translateY(28px); } to { transform: none; } }
  }
}

/* ---------- responsive ---------- */
@media (max-width: 1024px) {
  .bento { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
  .hero .wrap { grid-template-columns: minmax(0, 1fr); }
  .hero .ipad { transform: none; }
  .row, .row.flip { grid-template-columns: minmax(0, 1fr); }
  .row.flip .media { order: 0; }
  .final .wrap { grid-template-columns: minmax(0, 1fr); align-items: start; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .steps, .plans { grid-template-columns: minmax(0, 1fr); }
  .steps { gap: 44px; }
  .bento { grid-template-columns: minmax(0, 1fr); }
  .tile.wide { grid-column: auto; }
  .outputs { grid-template-columns: minmax(0, 1fr); }
  .hero .callout { position: static; margin-top: 18px; align-self: flex-start; }
  .hero .device { display: flex; flex-direction: column; }
  .hero .ctas .btn { width: 100%; justify-content: center; }
}

/* RR logo in the hero */
.hero-logo { display: block; width: clamp(92px, 9vw, 132px); height: auto; margin: 0 0 6px -10px; }
