/* ro site. Cream + ink only. ro itself follows "ro pet viz": ink layers on cream, cream layers on ink in dark mode.
   System fonts on purpose: the page should read like the app, and no font request leaves the visitor's browser. */
:root {
  --ink: #1A1917;
  --paper: #F5F2EB;
  --paper-soft: #EFE9DC;
  --card: #FFFFFF;
  --line: #E2DCCD;
  --muted: #6E695F;
  --notice: #BC2F0E;
  --sans: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", sans-serif;
  --display: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Helvetica Neue", sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, monospace;
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root {
    --ink: #F3EFE6;
    --paper: #1A1917;
    --paper-soft: #232220;
    --card: #232220;
    --line: #33312E;
    --muted: #9E988C;
    --notice: #FF6A42;
  }
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font: 17px/1.6 var(--sans); -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-underline-offset: 3px; }
a:focus-visible, button:focus-visible, summary:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; border-radius: 6px; }
.wrap { max-width: 1040px; margin: 0 auto; padding: 0 24px; }
.narrow { max-width: 720px; }

/* header / footer */
.top { display: flex; align-items: center; justify-content: space-between; padding-top: 20px; padding-bottom: 20px; }
.brand { min-height: 44px; display: flex; align-items: center; gap: 10px; font-weight: 700; text-decoration: none; letter-spacing: -0.01em; }
.ro-mark .ro-b { fill: var(--ink); }
.ro-mark .ro-e { fill: var(--paper); }
.ro-mark--brand { width: 26px; height: auto; }
.nav { display: flex; gap: 22px; font-size: 15px; }
.nav a { text-decoration: none; color: var(--muted); display: inline-flex; align-items: center; min-height: 44px; padding: 0 6px; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--ink); }
.foot { border-top: 1px solid var(--line); margin-top: 96px; padding-top: 28px; padding-bottom: 48px; font-size: 14px; color: var(--muted); }
.foot nav { display: flex; flex-wrap: wrap; gap: 4px 20px; margin-bottom: 8px; }
.foot a { text-decoration: none; display: inline-flex; align-items: center; min-height: 44px; }
.foot a:hover { color: var(--ink); }

/* type */
h1, h2, h3 { font-family: var(--display); letter-spacing: -0.025em; line-height: 1.1; margin: 0; text-wrap: balance; }
p, li { text-wrap: pretty; }
h1 { font-size: clamp(40px, 6.4vw, 72px); font-weight: 800; }
h2 { font-size: clamp(28px, 3.6vw, 40px); font-weight: 750; margin-bottom: 28px; }
h3 { font-size: 20px; font-weight: 700; letter-spacing: -0.01em; margin-bottom: 8px; }
.kicker { font-size: 15px; font-weight: 600; color: var(--muted); margin: 0 0 10px; }  /* no uppercase: the name is lowercase ro */
.lede { font-size: clamp(19px, 2vw, 22px); color: var(--muted); max-width: 34em; margin: 20px 0 0; }
.muted { color: var(--muted); }
.small { font-size: 14px; }
code, kbd { font-family: var(--mono); font-size: 0.9em; background: var(--paper-soft); border-radius: 6px; padding: 1px 6px; }
section { padding: 88px 0 0; }

/* hero */
.hero { display: grid; grid-template-columns: 1.3fr 1fr; gap: 48px; align-items: center; padding: 56px 0 8px; }
.hero-art { justify-self: center; width: min(260px, 70%); }
.hero-stage .hero-art { width: min(330px, 84%); }  /* the home card: ro at a size you can actually look at */
.hero-stage { justify-self: stretch; display: grid; place-items: center; aspect-ratio: 1 / 1; max-width: 400px; background: var(--paper-soft); border-radius: 40px; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; margin-top: 32px; }

/* /pro hero: copy first, then the product doing the thing it's sold for */
.hero--stacked { grid-template-columns: 1fr; max-width: 760px; padding-top: 16px; padding-bottom: 0; }
.hero--stacked h1 { font-size: clamp(38px, 4.4vw, 54px); }
.hero--stacked .lede { margin-top: 14px; font-size: clamp(18px, 1.6vw, 20px); }
.hero--stacked .hero-actions { margin-top: 20px; }
.demo { margin: 20px 0 0; }
.demo-stage { position: relative; max-width: 720px; margin: 0 auto; }
/* Reserve the stage's own shape before the script loads, so nothing below jumps */
.demo-stage:not(.is-live) { aspect-ratio: 720 / 380; display: grid; place-items: center; }
.demo-stage:not(.is-live) .hero-art { width: 160px; }
.demo figcaption { max-width: 720px; margin: 12px auto 0; }
.demo-toggle {
  position: absolute; right: 0; bottom: -40px; min-height: 32px; padding: 0 14px; border-radius: 999px;
  border: 0; background: transparent; color: var(--muted); font: 600 13px/1 var(--sans); cursor: pointer;
  box-shadow: inset 0 0 0 1px var(--line);
}
.demo-toggle:hover { color: var(--ink); }
.demo figcaption { padding-right: 140px; }

/* buttons: ink only */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 24px;
  border-radius: 999px; background: var(--ink); color: var(--paper); font-weight: 650; text-decoration: none; border: 0;
  font-size: 16px; cursor: pointer;
}
.btn:hover { opacity: 0.88; }
.btn.ghost { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--ink); }
.btn[aria-disabled="true"] { background: transparent; color: var(--muted); box-shadow: inset 0 0 0 1.5px var(--line); cursor: not-allowed; pointer-events: none; }

/* grids and cards */
.grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.card { background: var(--card); border: 1px solid var(--line); border-radius: 20px; padding: 28px; }
.card p { margin: 0; color: var(--muted); }
.card h3 + p { margin-top: 2px; }
.card .how { margin-top: 14px; font-size: 14px; color: var(--ink); }
.list { padding-left: 1.2em; margin: 0; }
.list li { margin: 8px 0; }

/* sample output */
.term {
  background: #1A1917; color: #F3EFE6; border-radius: 16px; padding: 22px 24px; overflow-x: auto;
  font: 14px/1.7 var(--mono); margin: 0;
}
.term .p { color: #9E988C; }

/* compare */
.table-card { background: var(--card); border: 1px solid var(--line); border-radius: 20px; padding: 8px 20px; }
.compare { width: 100%; border-collapse: collapse; font-size: 16px; }
.compare tr:last-child td { border-bottom: 0; }
.compare th, .compare td { text-align: left; padding: 16px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
.compare th { font-size: 14px; color: var(--muted); font-weight: 600; }
.compare td:not(:first-child), .compare th:not(:first-child) { text-align: center; width: 22%; }

/* pricing */
.prices { display: grid; grid-template-columns: 1.15fr 1fr; gap: 16px; align-items: stretch; }
.price { display: flex; flex-direction: column; gap: 10px; }
.price.main { border: 2px solid var(--ink); }
.amount { font-family: var(--display); font-size: 48px; font-weight: 800; letter-spacing: -0.03em; line-height: 1; }
.amount span { font-size: 18px; font-weight: 600; color: var(--muted); letter-spacing: 0; }
.price .btn { margin-top: auto; }
.fine { margin-top: 16px; font-size: 14px; color: var(--muted); }

/* steps */
.steps { counter-reset: s; list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.steps li { counter-increment: s; display: grid; grid-template-columns: 44px 1fr; gap: 16px; align-items: start; background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 20px; }
.steps li::before { content: counter(s); display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: var(--ink); color: var(--paper); font-weight: 700; }
.steps strong { display: block; margin-bottom: 2px; }

/* faq */
details { border-bottom: 1px solid var(--line); padding: 6px 0; }
summary { cursor: pointer; min-height: 44px; align-items: center; font-weight: 650; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; color: var(--muted); font-weight: 400; }
details[open] summary::after { content: "–"; }
details p { margin: 10px 0 0; color: var(--muted); }

/* long text pages */
.doc h1 { font-size: clamp(36px, 5vw, 52px); margin-bottom: 8px; }
.doc h2 { font-size: 24px; margin: 40px 0 10px; }
.doc p, .doc li { color: var(--ink); }
.doc .updated { color: var(--muted); font-size: 14px; margin: 0 0 32px; }
.draft { border: 1.5px solid var(--notice); color: var(--notice); border-radius: 12px; padding: 12px 16px; font-size: 14px; margin: 24px 0 0; }

@media (max-width: 900px) { .grid--3 { grid-template-columns: 1fr; } }
@media (max-width: 760px) {
  body { font-size: 16px; }
  .hero { grid-template-columns: 1fr; gap: 24px; padding-top: 24px; }
  .hero-art { width: 55%; }
  .hero-stage .hero-art { width: 80%; }
  .hero-stage { order: -1; max-width: 220px; justify-self: start; border-radius: 28px; }
  .grid, .grid--3, .prices { grid-template-columns: 1fr; }
  .nav { gap: 14px; }
  section { padding-top: 64px; }
  .card { padding: 22px; border-radius: 18px; }
  .compare { font-size: 14px; }
  .demo-stage:not(.is-live) { aspect-ratio: 358 / 520; }
  .demo { margin-top: 28px; }
}
@media (prefers-reduced-motion: no-preference) {
  .hero-art .ro-e { animation: blink 6s infinite; transform-origin: center; transform-box: fill-box; }
}
@keyframes blink { 0%, 96%, 100% { transform: scaleY(1); } 98% { transform: scaleY(0.1); } }

/* =========================================================
   Interactive Local Sandbox (site/pro/index.html)
   ========================================================= */
.sandbox-box {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 22px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  max-width: 100%;
  overflow: hidden;
}
.sb-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}
.sb-tabs {
  display: inline-flex;
  background: var(--paper-soft);
  padding: 3px;
  border-radius: 999px;
  gap: 2px;
  max-width: 100%;
  flex-wrap: wrap;
}
.sb-tab {
  min-height: 32px;
  padding: 0 14px;
  border-radius: 999px;
  border: 0;
  background: transparent;
  color: var(--muted);
  font: 650 13px/1 var(--sans);
  cursor: pointer;
}
.sb-tab.active {
  background: var(--ink);
  color: var(--paper);
}
.sb-search-bar {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.sb-input-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--paper-soft);
  border: 1.5px solid var(--ink);
  border-radius: 999px;
  padding: 4px 14px;
}
.sb-input {
  flex: 1;
  min-width: 0;
  border: 0;
  background: transparent;
  color: var(--ink);
  font: 15px/1.4 var(--sans);
  outline: none;
  min-height: 34px;
}
.sb-presets {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
}
.sb-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 14px;
  align-items: start;
}
.sb-results {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.sb-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  width: 100%;
  text-align: left;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: var(--paper);
  color: var(--ink);
  font: inherit;
  cursor: pointer;
}
.sb-row.is-selected {
  border: 1.5px solid var(--ink);
  background: var(--paper-soft);
}
.sb-ext {
  flex: none;
  min-width: 38px;
  height: 26px;
  padding: 0 6px;
  border-radius: 6px;
  background: var(--ink);
  color: var(--paper);
  font: 700 11px/26px var(--mono);
  text-align: center;
}
.sb-row-main {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.sb-name {
  font-size: 14px;
  line-height: 1.3;
  overflow-wrap: anywhere;
}
.sb-where {
  font: 12px/1.35 var(--mono);
  color: var(--muted);
  overflow-wrap: anywhere;
}
.sb-why {
  font-size: 12px;
  color: var(--ink);
  font-weight: 600;
}
.sb-rank {
  font: 600 12px var(--mono);
  color: var(--muted);
}
.sb-preview {
  background: var(--paper-soft);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-width: 0;
}
.sb-preview-head {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}
.sb-preview-body {
  font-size: 14px;
  line-height: 1.5;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 10px 12px;
  overflow-wrap: anywhere;
}
.sb-preview-foot, .sb-meta {
  font-size: 12px;
  color: var(--muted);
  overflow-wrap: anywhere;
}
.sb-tidy-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}
.sb-tidy-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.sb-btn {
  min-height: 34px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1.5px solid var(--ink);
  background: var(--ink);
  color: var(--paper);
  font: 650 13px/1 var(--sans);
  cursor: pointer;
}
.sb-btn.ghost {
  background: transparent;
  color: var(--ink);
}
.sb-btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}
.sb-tidy-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
  max-height: 310px;
  overflow-y: auto;
}
.sb-tidy-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 8px 10px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: var(--paper);
  cursor: pointer;
}
.sb-tidy-row.is-applied {
  background: var(--paper-soft);
}
.sb-tidy-row input[type="checkbox"] {
  margin-top: 3px;
  accent-color: var(--ink);
}
.sb-tidy-main {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.sb-tidy-top {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  font-size: 13px;
}
.sb-badge {
  font-size: 11px;
  font-weight: 650;
  padding: 1px 8px;
  border-radius: 999px;
  background: var(--paper-soft);
  border: 1px solid var(--line);
}
.sb-status-banner {
  font-size: 13px;
  font-weight: 600;
  padding: 8px 12px;
  border-radius: 10px;
  background: var(--paper-soft);
  border: 1px solid var(--line);
  overflow-wrap: anywhere;
}
@media (max-width: 760px) {
  .sb-grid { grid-template-columns: 1fr; }
  .sandbox-box { padding: 14px; }
}
