/* Rostara guides. Same tokens, type and phone frames as the welcome page
   (web/index.html), so moving between the two never feels like a different
   site. Pages are generated by tool/guides/build_guides.dart; this file is
   written by hand and linked with a content hash for cache busting. */

:root {
  --teal: #007A7A;
  --teal-dark: #006161;
  --teal-soft: #007A7A14;
  --teal-tint: #007A7A0A;
  --ink: #14201f;
  --muted: #55645f;
  --line: #e4eae8;
  --bg: #ffffff;
  --panel: #f6faf9;
  --amber-soft: #fff7e6;
  --amber-line: #f2d49b;
  --violet-soft: #f4f0ff;
  --violet-line: #d9cdfb;
  --violet: #6b4fd8;
  --shadow: 0 24px 60px -24px rgba(0, 70, 70, 0.30);
  --shadow-sm: 0 10px 30px -14px rgba(0, 70, 70, 0.28);
  --band-bg: #007A7A;
  --band-fg: #ffffff;
  --band-btn-bg: #ffffff;
  --band-btn-fg: #00615f;
  --band-btn-hover: #eafaf8;
}
@media (prefers-color-scheme: dark) {
  :root {
    --teal: #2fbdb4;
    --teal-dark: #47cfc5;
    --teal-soft: #2fbdb41f;
    --teal-tint: #2fbdb412;
    --ink: #e9f2f0;
    --muted: #9fb2ad;
    --line: #23342f;
    --bg: #0d1615;
    --panel: #121e1c;
    --amber-soft: #2a2213;
    --amber-line: #5c4a24;
    --violet-soft: #1d1830;
    --violet-line: #3d3366;
    --violet: #b5a3ff;
    --shadow: 0 24px 60px -24px rgba(0, 0, 0, 0.65);
    --shadow-sm: 0 10px 30px -14px rgba(0, 0, 0, 0.6);
    --band-bg: #0f2f2c;
    --band-fg: #e9f2f0;
    --band-btn-bg: #2fbdb4;
    --band-btn-fg: #04211f;
    --band-btn-hover: #6fe0d6;
  }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
body {
  margin: 0;
  font-family: "Onest", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--teal); }
img, video { max-width: 100%; display: block; }
.wrap { max-width: 1160px; margin: 0 auto; padding: 0 24px; }
.skip {
  position: absolute; left: -9999px; top: 0; background: var(--teal); color: #fff;
  padding: 10px 16px; border-radius: 0 0 8px 0; z-index: 50;
}
.skip:focus { left: 0; }

/* ---- Nav (as on the welcome page) ---- */
.site-nav {
  position: sticky; top: 0; z-index: 20;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 14px 24px;
  background: var(--bg);
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--line);
}
.nav-brand { display: inline-flex; align-items: center; gap: 9px; text-decoration: none; }
.nav-brand .mark { height: 28px; width: auto; }
.nav-brand .wordmark { height: 18px; width: auto; }
@media (prefers-color-scheme: dark) { .nav-brand img { filter: brightness(1.6); } }
.nav-links { display: flex; align-items: center; gap: 22px; font-size: 15px; }
.nav-links a { text-decoration: none; }
.nav-links a.plain { color: var(--muted); font-weight: 500; }
.nav-links a.plain:hover, .nav-links a.plain[aria-current="page"] { color: var(--teal); }
.nav-links a.signin { color: var(--ink); font-weight: 600; }
.nav-links a.signin:hover { color: var(--teal); }
.nav-cta {
  background: var(--teal); color: #fff; font-weight: 600; font-size: 15px;
  padding: 9px 18px; border-radius: 999px; transition: background 0.15s ease;
}
.nav-cta:hover { background: var(--teal-dark); }
@media (max-width: 640px) { .nav-links .plain, .nav-links .signin { display: none; } }

/* ---- Buttons ---- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-weight: 600; font-size: 16px; padding: 14px 28px; border-radius: 999px;
  text-decoration: none; transition: transform 0.15s ease, background 0.15s ease, border-color 0.15s ease;
}
.btn-primary { background: var(--teal); color: #fff; }
.btn-primary:hover { background: var(--teal-dark); transform: translateY(-1px); }
.btn-ghost { color: var(--teal); border: 1.5px solid var(--line); background: var(--bg); }
.btn-ghost:hover { border-color: var(--teal); }

/* ---- Page header ---- */
.crumbs { font-size: 14px; color: var(--muted); padding-top: 22px; }
.crumbs ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.crumbs li + li::before { content: "›"; margin-right: 6px; color: var(--line); }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--teal); }
.page-head {
  padding-block: 18px 34px;
  background: radial-gradient(60% 100% at 0% 0%, var(--teal-soft) 0%, transparent 70%);
}
.eyebrow {
  display: inline-block; font-size: 13px; font-weight: 600; letter-spacing: 0.06em;
  text-transform: uppercase; color: var(--teal);
  background: var(--teal-soft); padding: 6px 12px; border-radius: 999px; margin: 18px 0 16px;
}
.page-head h1 {
  font-size: clamp(32px, 4.6vw, 48px); line-height: 1.1; letter-spacing: -0.03em;
  margin: 0 0 16px; max-width: 22ch; text-wrap: balance;
}
.lede { font-size: clamp(17px, 2vw, 20px); color: var(--muted); margin: 0 0 18px; max-width: 62ch; }
.meta { font-size: 14px; color: var(--muted); display: flex; flex-wrap: wrap; gap: 6px 18px; }

/* ---- Article + contents ---- */
.layout { display: grid; grid-template-columns: minmax(0, 1fr) 260px; gap: 56px; align-items: start; padding-bottom: 40px; }
@media (max-width: 1023px) { .layout { grid-template-columns: minmax(0, 1fr); gap: 0; } }
.toc { position: sticky; top: 92px; font-size: 14.5px; border-left: 2px solid var(--line); padding-left: 16px; }
.toc p { font-weight: 700; margin: 0 0 10px; font-size: 13px; letter-spacing: 0.05em; text-transform: uppercase; color: var(--muted); }
.toc ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.toc a { color: var(--muted); text-decoration: none; }
.toc a:hover { color: var(--teal); }
@media (max-width: 1023px) { .toc { display: none; } }
.toc-mobile { display: none; border: 1px solid var(--line); border-radius: 14px; padding: 4px 16px; margin: 0 0 28px; background: var(--panel); }
@media (max-width: 1023px) { .toc-mobile { display: block; } }
.toc-mobile summary { cursor: pointer; padding: 12px 0; font-weight: 600; }
.toc-mobile ol { margin: 0 0 14px; padding-left: 20px; display: grid; gap: 6px; }
.toc-mobile a { text-decoration: none; }

.article { min-width: 0; max-width: 760px; }
.article h2 { font-size: clamp(25px, 3vw, 31px); line-height: 1.2; letter-spacing: -0.02em; margin: 56px 0 14px; text-wrap: balance; }
.article h2:first-child { margin-top: 8px; }
.article h3 { font-size: 20px; line-height: 1.3; margin: 34px 0 10px; letter-spacing: -0.01em; }
.article p, .article li { font-size: 17px; }
.article p { margin: 0 0 16px; }
.article ul, .article ol { padding-left: 24px; margin: 0 0 18px; }
.article li { margin: 6px 0; }
.article strong { font-weight: 650; }
/* An app label, quoted exactly as it appears on screen. */
.ui {
  font-weight: 600; white-space: nowrap; color: var(--ink);
  background: var(--panel); border: 1px solid var(--line); border-radius: 6px; padding: 1px 6px;
  font-size: 0.94em;
}

/* Numbered how-to steps. */
ol.steps { list-style: none; padding: 0; counter-reset: step; margin: 8px 0 24px; display: grid; gap: 14px; }
ol.steps > li { counter-increment: step; position: relative; padding-left: 50px; margin: 0; min-height: 34px; }
ol.steps > li::before {
  content: counter(step); position: absolute; left: 0; top: -2px;
  width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center;
  background: var(--teal); color: #fff; font-weight: 700; font-size: 15px;
}
@media (prefers-color-scheme: dark) { ol.steps > li::before { color: #04211f; } }

/* Tables scroll sideways on a phone rather than squashing. */
.table-wrap { overflow-x: auto; margin: 8px 0 26px; border: 1px solid var(--line); border-radius: 14px; }
.table-wrap table { border-collapse: collapse; width: 100%; font-size: 15.5px; min-width: 520px; }
.table-wrap th, .table-wrap td { text-align: left; padding: 11px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
.table-wrap thead th { background: var(--panel); font-size: 13.5px; letter-spacing: 0.02em; color: var(--muted); font-weight: 650; }
.table-wrap tbody tr:last-child td { border-bottom: 0; }

/* Callouts. */
.callout { border-radius: 14px; padding: 16px 18px 2px; margin: 8px 0 26px; border: 1px solid var(--line); background: var(--panel); }
.callout > :first-child { margin-top: 0; }
.callout-title { font-weight: 700; margin-bottom: 6px; display: block; }
.callout.tip { background: var(--teal-tint); border-color: color-mix(in srgb, var(--teal) 30%, transparent); }
.callout.tip .callout-title { color: var(--teal); }
.callout.note { background: var(--amber-soft); border-color: var(--amber-line); }
.callout.pro { background: var(--violet-soft); border-color: var(--violet-line); }
.callout.pro .callout-title { color: var(--violet); }

/* ---- Phone frames (as on the welcome page) ---- */
.phone {
  position: relative; width: 100%; max-width: 360px; margin: 0 auto;
  border: 10px solid #12201e; border-radius: 42px; background: #12201e;
  box-shadow: var(--shadow); overflow: hidden; aspect-ratio: 390 / 844;
}
.phone img, .phone video { width: 100%; height: 100%; object-fit: cover; object-position: top; border-radius: 30px; }
.shot { margin: 18px 0 34px; }
.shot figcaption { margin: 14px auto 0; max-width: 46ch; text-align: center; font-size: 14.5px; color: var(--muted); }
.shot figcaption b { color: var(--ink); }
.shots-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; margin: 18px 0 34px; }
.shots-2 .shot { margin: 0; }
@media (max-width: 640px) { .shots-2 { grid-template-columns: minmax(0, 1fr); } }
/* Above the frame, not on it: every clip shows the player's controls, whose
   bar runs along the bottom of the video, and the app's own header is at the top. */
.clip::before {
  content: "Screen recording"; display: block; width: fit-content; margin: 0 auto 10px;
  font-size: 12px; font-weight: 600; letter-spacing: 0.04em; color: var(--muted);
  background: var(--panel); border: 1px solid var(--line); padding: 3px 10px; border-radius: 999px;
}
.clip .replay {
  display: block; margin: 12px auto 0; border: 1px solid var(--line); background: var(--bg); color: var(--ink);
  border-radius: 999px; padding: 6px 16px; font: inherit; font-size: 14px; cursor: pointer;
}
.clip .replay:hover { border-color: var(--teal); color: var(--teal); }

/* ---- FAQ ---- */
.faq details { border-bottom: 1px solid var(--line); padding: 2px 0; }
.faq summary {
  cursor: pointer; list-style: none; padding: 16px 40px 16px 0; position: relative; font-weight: 600; font-size: 17px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; position: absolute; right: 6px; top: 50%; transform: translateY(-50%);
  font-size: 24px; font-weight: 400; color: var(--teal); line-height: 1;
}
.faq details[open] summary::after { content: "−"; }
.faq details > p { margin: 0 0 18px; color: var(--muted); }

/* ---- Related guides and the hub ---- */
.related { padding-block: 40px 64px; border-top: 1px solid var(--line); }
.related h2, .hub-section h2 { font-size: 24px; letter-spacing: -0.02em; margin: 0 0 18px; }
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 16px; }
.card {
  display: block; text-decoration: none; color: inherit;
  border: 1px solid var(--line); border-radius: 16px; padding: 20px; background: var(--bg);
  transition: border-color 0.15s ease, transform 0.15s ease;
}
.card:hover { border-color: var(--teal); transform: translateY(-2px); }
.card b { display: block; font-size: 17px; margin-bottom: 6px; color: var(--ink); }
.card span { display: block; font-size: 14.5px; color: var(--muted); }
.card em { display: inline-block; margin-top: 12px; font-style: normal; font-size: 14px; font-weight: 600; color: var(--teal); }
.hub-section { padding-block: 26px; }
.hub-section > p { color: var(--muted); margin: -8px 0 18px; max-width: 62ch; }

/* ---- CTA band and footer (as on the welcome page) ---- */
.cta-band { background: var(--band-bg); color: var(--band-fg); text-align: center; padding: 64px 24px; }
.cta-band h2 { font-size: clamp(26px, 4vw, 34px); margin: 0 0 14px; letter-spacing: -0.02em; line-height: 1.2; }
.cta-band p { margin: 0 auto 28px; max-width: 50ch; opacity: 0.94; font-size: 17px; }
.cta-band .btn-primary { background: var(--band-btn-bg); color: var(--band-btn-fg); }
.cta-band .btn-primary:hover { background: var(--band-btn-hover); }
.site-footer { padding: 36px 24px; border-top: 1px solid var(--line); color: var(--muted); font-size: 14px; }
.site-footer .wrap { display: flex; flex-wrap: wrap; gap: 16px 28px; align-items: center; justify-content: space-between; }
.site-footer a { color: var(--muted); text-decoration: none; }
.site-footer a:hover { color: var(--teal); }
.footer-links { display: flex; gap: 20px; flex-wrap: wrap; }

@media (max-width: 460px) { .wrap { padding: 0 16px; } }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
