/* Shared look for the Lifebot guides in docs-public. install-guide.html is also printed to PDF by the bundle build. */
:root {
  --ink: #14122b; --text: #3b3852; --muted: #6b6882;
  --purple: #522375; --purple-2: #6c3399; --lavender: #c4a5e8; --tint: #f1eaf9;
  --line: #e7e3f2; --soft: #f6f4fa; --white: #ffffff;
  --night: #150a24; --warn: #8a4b00; --warn-bg: #fff5e6; --warn-line: #f0c27a;
}
* { box-sizing: border-box; }
html { -webkit-print-color-adjust: exact; print-color-adjust: exact; scroll-behavior: smooth; }
body { margin: 0; background: var(--white); color: var(--text); font: 400 16px/1.65 Roboto, -apple-system, "Segoe UI", Arial, sans-serif; letter-spacing: -0.1px; -webkit-font-smoothing: antialiased; }
a { color: var(--purple); text-underline-offset: 3px; text-decoration-color: var(--lavender); }
a:hover { text-decoration-color: var(--purple); }
img { max-width: 100%; }
.wrap { max-width: 880px; margin: 0 auto; padding: 0 28px; }
h1, h2, h3, h4 { color: var(--ink); font-weight: 700; margin: 0; text-wrap: pretty; }
h2 { font-size: 32px; line-height: 1.18; letter-spacing: -0.8px; }
h3 { font-size: 19px; letter-spacing: -0.2px; margin: 30px 0 8px; }
h4 { font-size: 16px; margin: 20px 0 6px; }
p { margin: 0 0 12px; text-wrap: pretty; }
ul, ol { padding-left: 22px; margin: 0 0 14px; }
li { margin-bottom: 6px; }
.eyebrow { font-size: 12px; font-weight: 700; letter-spacing: 1.9px; text-transform: uppercase; color: var(--purple); margin-bottom: 10px; }
code, kbd { font-family: "Roboto Mono", ui-monospace, Menlo, Consolas, monospace; font-size: 0.88em; }
code { background: var(--tint); color: var(--purple); padding: 2px 7px; border-radius: 6px; overflow-wrap: anywhere; }
kbd { display: inline-block; padding: 1px 7px; border: 1px solid var(--line); border-bottom-width: 2px; border-radius: 6px; background: var(--white); color: var(--ink); white-space: nowrap; }
.cmd { display: block; margin: 10px 0 12px; padding: 12px 16px; border-radius: 10px; background: var(--night); color: #efe6fb; font-family: "Roboto Mono", ui-monospace, Menlo, Consolas, monospace; font-size: 14px; white-space: pre-wrap; overflow-wrap: anywhere; }
.cmd .hint { color: #a99bc0; }
.file { font-weight: 700; color: var(--ink); }
.ui { font-weight: 700; color: var(--ink); }

/* top bar shared by every guide */
.topbar { background: var(--night); color: rgba(255,255,255,.8); font-size: 14px; }
.topbar .wrap { display: flex; align-items: center; gap: 6px 18px; flex-wrap: wrap; padding-top: 10px; padding-bottom: 10px; }
.topbar b { color: #fff; margin-right: 8px; }
.topbar a { color: rgba(255,255,255,.78); text-decoration: none; }
.topbar a:hover, .topbar a[aria-current] { color: #fff; }
.topbar a[aria-current] { font-weight: 700; }

/* hero */
.hero { position: relative; overflow: hidden; color: #fff; background: radial-gradient(120% 90% at 85% 10%, #4b2372 0%, rgba(75, 35, 114, 0) 60%), linear-gradient(165deg, #12081f 0%, #241038 55%, #3a1a5c 100%); padding: 40px 0 52px; }
.hero svg.net { position: absolute; right: -40px; top: 0; width: 460px; height: 100%; opacity: .5; }
.brand { display: flex; align-items: center; gap: 10px; font-size: 18px; font-weight: 500; color: rgba(255,255,255,.85); margin-bottom: 36px; }
.brand b { color: #fff; font-weight: 700; }
.hero .eyebrow { color: rgba(255,255,255,.72); }
.hero h1 { color: #fff; font-size: 50px; line-height: 1.06; letter-spacing: -1.8px; max-width: 660px; }
.hero h1 span { color: var(--lavender); }
.hero p.lede { color: rgba(255,255,255,.82); font-size: 18px; line-height: 1.55; max-width: 580px; margin: 18px 0 26px; }
.jump { display: flex; flex-wrap: wrap; gap: 12px; }
.jump a { color: #fff; text-decoration: none; font-weight: 700; border: 1px solid rgba(255,255,255,.45); border-radius: 10px; padding: 11px 20px; font-size: 15px; }
.jump a.primary { background: #fff; color: #1b0b2e; border-color: #fff; }

section { padding: 56px 0; }
section.soft { background: var(--soft); }
.intro { max-width: 660px; margin: 12px 0 26px; color: var(--muted); font-size: 17px; }

/* contents list with time pills (hermeshowto style) */
.contents { border: 1px solid var(--line); border-radius: 16px; overflow: hidden; background: var(--white); margin: 8px 0 8px; }
.contents a { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 13px 20px; border-bottom: 1px solid var(--line); color: var(--ink); text-decoration: none; font-weight: 500; }
.contents a:last-child { border-bottom: 0; }
.contents a:hover { background: var(--soft); }
.contents .left { display: flex; align-items: center; gap: 14px; }
.contents .num { flex: none; width: 30px; height: 30px; border: 1.5px solid var(--purple); border-radius: 50%; display: grid; place-items: center; font-size: 13px; color: var(--purple); }
.contents .pill { flex: none; padding: 4px 10px; background: var(--tint); border-radius: 999px; font-size: 12.5px; color: var(--muted); white-space: nowrap; }

/* cards */
.grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.grid.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.card { background: var(--white); border: 1px solid var(--line); border-radius: 16px; padding: 22px 22px 18px; box-shadow: 0 1px 2px rgba(20, 18, 43, .04); break-inside: avoid; }
a.card { display: block; text-decoration: none; color: var(--text); }
a.card:hover { border-color: var(--lavender); }
.card h3 { margin: 0 0 6px; }
.card p:last-child { margin-bottom: 0; }
.icon { width: 42px; height: 42px; border-radius: 50%; background: var(--tint); display: grid; place-items: center; margin-bottom: 12px; color: var(--purple); font-size: 20px; }
.icon svg { width: 22px; height: 22px; }

/* section heads */
.os-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 8px; }
.badge { display: inline-block; background: var(--purple); color: #fff; font-size: 11px; font-weight: 700; letter-spacing: 1.4px; text-transform: uppercase; border-radius: 999px; padding: 6px 12px; white-space: nowrap; }
.badge.light { background: var(--tint); color: var(--purple); }
.time { display: inline-block; margin-left: 8px; padding: 3px 10px; background: var(--tint); border-radius: 999px; font-size: 12.5px; font-weight: 500; color: var(--muted); vertical-align: middle; letter-spacing: 0; }

/* numbered step cards */
ol.steps { list-style: none; counter-reset: step; margin: 0; padding: 0; }
ol.steps > li { counter-increment: step; position: relative; padding: 18px 20px 14px 72px; margin-bottom: 12px; background: var(--white); border: 1px solid var(--line); border-radius: 16px; }
ol.steps > li::before { content: counter(step); position: absolute; left: 20px; top: 16px; width: 34px; height: 34px; border-radius: 50%; background: var(--purple); color: #fff; font-weight: 700; display: grid; place-items: center; font-size: 15px; }
ol.steps > li h3 { margin: 0 0 4px; }
ol.steps > li p { margin-bottom: 8px; }
ol.steps > li > :last-child { margin-bottom: 4px; }

/* plain numbered list with ring numbers */
ol.rings { list-style: none; padding: 0; margin: 0 0 16px; counter-reset: r; }
ol.rings > li { position: relative; counter-increment: r; padding-left: 40px; margin: 0 0 10px; }
ol.rings > li::before { content: counter(r); position: absolute; left: 0; top: 0; width: 26px; height: 26px; border: 1.5px solid var(--purple); border-radius: 50%; display: grid; place-items: center; font-size: 12px; font-weight: 500; color: var(--purple); }

/* callouts */
.note { border-left: 3px solid var(--lavender); background: var(--tint); border-radius: 0 12px 12px 0; padding: 12px 16px; margin: 12px 0; font-size: 15px; color: var(--text); break-inside: avoid; }
.note b { color: var(--ink); }
.note.warn { border-left-color: var(--warn-line); background: var(--warn-bg); }
.done { position: relative; padding: 14px 18px 14px 54px; border: 1px solid var(--line); border-radius: 12px; font-size: 15px; color: var(--ink); margin: 18px 0 6px; background: var(--white); break-inside: avoid; }
.done::before { content: "✓"; position: absolute; left: 17px; top: 13px; width: 24px; height: 24px; border: 1.5px solid var(--purple); border-radius: 50%; display: grid; place-items: center; font-size: 12px; font-weight: 700; color: var(--purple); }

/* screenshots */
figure.shot { margin: 14px 0 18px; break-inside: avoid; }
figure.shot img { display: block; width: 100%; height: auto; border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 6px 24px rgba(20, 18, 43, .08); background: var(--white); }
figure.shot.bare img { border: 0; box-shadow: none; background: none; border-radius: 0; width: auto; max-width: 100%; margin: 0 auto; }
figure.shot.narrow img { max-width: 560px; }
figure.shot figcaption { font-size: 13.5px; color: var(--muted); margin-top: 8px; text-align: center; }
.shots { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 14px; align-items: end; margin: 14px 0 18px; }
.shots figure { margin: 0; text-align: center; break-inside: avoid; }
.shots img { display: block; width: 100%; max-width: 240px; height: auto; margin: 0 auto; }
.shots figcaption { font-size: 12.5px; color: var(--muted); margin-top: 6px; }
.shots.small { grid-template-columns: repeat(auto-fit, minmax(110px, 1fr)); }

/* placeholders for screenshots or videos still to be captured */
.ph { margin: 14px 0 18px; padding: 16px 18px; border: 2px dashed var(--lavender); border-radius: 12px; background: repeating-linear-gradient(135deg, #fbf9fe 0 12px, #f5f0fb 12px 24px); color: var(--purple); font-size: 14px; line-height: 1.55; break-inside: avoid; }
.ph b { color: var(--ink); }
.ph .tag { display: inline-block; margin-right: 6px; padding: 2px 9px; background: var(--purple); color: #fff; border-radius: 999px; font-size: 11px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; vertical-align: 1px; }

/* prompts to copy into chat */
.prompt { margin: 10px 0 14px; padding: 12px 16px 12px 44px; position: relative; background: var(--white); border: 1px solid var(--line); border-radius: 14px 14px 14px 4px; color: var(--ink); font-size: 15.5px; break-inside: avoid; }
.prompt::before { content: "💬"; position: absolute; left: 14px; top: 11px; font-size: 16px; }
.prompt small { display: block; color: var(--muted); font-size: 13px; margin-top: 4px; }

/* tables */
.table-wrap { overflow-x: auto; margin: 10px 0 20px; border-radius: 16px; }
table { width: 100%; border-collapse: separate; border-spacing: 0; background: var(--white); border: 1px solid var(--line); border-radius: 16px; overflow: hidden; font-size: 15px; }
th, td { text-align: left; vertical-align: top; padding: 12px 16px; border-bottom: 1px solid var(--line); }
tr:last-child td { border-bottom: 0; }
th { font-size: 12px; letter-spacing: 1.4px; text-transform: uppercase; color: var(--purple); background: var(--soft); }
td:first-child { color: var(--ink); font-weight: 500; }
tr { break-inside: avoid; }

/* faq */
.faq { display: grid; gap: 12px; }
.qa { background: var(--white); border: 1px solid var(--line); border-radius: 16px; padding: 18px 20px 12px; break-inside: avoid; }
.qa h3 { font-size: 16.5px; margin: 0 0 6px; display: flex; gap: 10px; align-items: baseline; }
.qa h3 .badge { font-size: 9.5px; padding: 4px 9px; letter-spacing: 1.2px; flex: none; }
.qa p { margin-bottom: 8px; font-size: 15px; }

/* checklist */
.checklist { margin-top: 20px; padding: 36px 40px; background: #2a1245; border-radius: 20px; color: #fff; break-inside: avoid; }
.checklist h2 { color: #fff; font-size: 26px; margin-bottom: 18px; }
.checklist .eyebrow { color: #d9c7f5; }
.checklist label { display: flex; gap: 14px; align-items: flex-start; margin: 0 0 12px; font-size: 15px; line-height: 1.5; color: #f3eefc; cursor: pointer; }
.checklist label.optional { color: #c3b4e3; }
.checklist input { margin: 2px 0 0; width: 18px; height: 18px; accent-color: #a98be0; flex: none; }
.checklist .fine { font-size: 14.5px; color: #d9cff0; padding-top: 16px; margin-top: 8px; border-top: 1px solid rgba(255,255,255,.16); }

/* check-mark list */
ul.checks { list-style: none; padding: 0; margin: 0 0 14px; }
ul.checks li { position: relative; padding: 0 0 10px 36px; }
ul.checks li::before { content: ""; position: absolute; left: 0; top: 2px; width: 22px; height: 22px; border-radius: 50%; background: var(--purple) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12.5l4 4 8-9'/%3E%3C/svg%3E") center / 13px no-repeat; }
ul.checks b { color: var(--ink); }

/* key legend */
.keys td:first-child { white-space: nowrap; width: 26%; }

footer { background: var(--night); color: rgba(255,255,255,.72); padding: 36px 0; font-size: 15px; }
footer h3 { color: #fff; margin: 0 0 6px; }
.footer-row { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.footer-cta { flex: none; background: #fff; color: #1b0b2e; font-weight: 700; text-decoration: none; border-radius: 10px; padding: 12px 22px; }
.next { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-top: 30px; }
.next a { flex: 1 1 240px; border: 1px solid var(--line); border-radius: 14px; padding: 14px 18px; text-decoration: none; color: var(--ink); background: var(--white); }
.next a small { display: block; color: var(--muted); font-size: 12px; letter-spacing: 1.4px; text-transform: uppercase; font-weight: 700; }
.next a:hover { border-color: var(--lavender); }

@media (max-width: 680px) {
  .wrap { padding: 0 16px; }
  .hero h1 { font-size: 36px; }
  h2 { font-size: 26px; }
  .grid, .grid.three { grid-template-columns: 1fr; }
  ol.steps > li { padding-left: 60px; padding-right: 16px; }
  ol.steps > li::before { left: 14px; }
  .hero svg.net { opacity: .2; }
  .checklist { padding: 26px 20px; }
  .contents a { padding: 12px 14px; }
}
@page { size: Letter; margin: 0.45in 0; }
@page :first { margin-top: 0; }
@media print {
  html { zoom: 0.8; }
  .topbar, .jump { display: none; }
  .wrap { max-width: none; padding: 0 56px; }
  section { padding: 26px 0 30px; }
  section.soft { background: none; }
  .hero { padding: 30px 0 40px; }
  .page { break-before: page; }
  a { text-decoration: none; }
  ol.steps > li { break-inside: avoid; }
  footer { break-inside: avoid; }
}

/* Install guide: embedded media and print layout. */
#hermes .jump { margin-top: 28px; }
#hermes .jump a { color: var(--purple); border-color: var(--lavender); }
#hermes .jump .primary { background: var(--purple); color: white; }
h2 { margin-bottom: 18px; }
figure.dialog { max-width: 360px; margin: 20px auto; }
.permission-shots { display: grid; grid-template-columns: 1.5fr 1fr; align-items: center; gap: 16px; }
.permission-shots figure { margin: 8px 0 16px; }
video { display: block; width: 100%; border-radius: 12px; background: #150a24; }
details { margin: 18px 0; }
summary { color: var(--purple); font-weight: 700; cursor: pointer; }
summary:focus-visible, a:focus-visible { outline: 3px solid var(--lavender); outline-offset: 4px; }
h2, h3 { break-after: avoid; }
#launch { padding-top: 20px; }
@media (max-width: 600px) {
 .wrap { padding-left: 20px; padding-right: 20px; }
 ol.steps > li { padding: 62px 18px 18px; }
 .permission-shots { grid-template-columns: 1fr; }
 .qa h3 { display: block; }
 .qa h3 .badge { margin-right: 8px; }
 .cmd { font-size: 12px; }
}
@media print {
 html { zoom: 1; }
 body { font-size: 10.5pt; line-height: 1.48; }
 .wrap { padding: 0 44px; }
 .hero { padding: 30px 0 34px; }
 .hero h1 { font-size: 40px; }
 .hero p.lede { font-size: 15px; }
 .brand { margin-bottom: 24px; }
 h2 { font-size: 26px; margin-bottom: 14px; }
 h3 { font-size: 17px; }
 section { padding: 18px 0; }
 .screen-only, video { display: none !important; }
 figure.dialog { max-width: 235px; margin: 10px auto; }
 .permission-shots { grid-template-columns: 1.45fr 1fr; gap: 16px; }
 ol.steps > li { padding: 12px 16px 10px 55px; }
 ol.steps > li::before { width: 27px; height: 27px; left: 14px; top: 11px; font-size: 12px; }
 #mac ol.steps > li:nth-child(4) { break-before: page; }
 #mac ol.steps > li:nth-child(5) { break-before: page; }
 .note, table, .qa p { font-size: 10.5pt; }
 .qa { padding: 12px 16px 6px; }
 .qa h3 { font-size: 11pt; }
 .faq { display: block; }
 .qa { margin-bottom: 9px; }
 .cmd { font-size: 10pt; padding: 9px 12px; }
 figure.shot figcaption { font-size: 9pt; }
 #hermes .jump { display: flex; }
 #hermes .jump a { font-size: 11px; padding: 7px 12px; }
 #mac ol.steps > li:nth-child(6) .shot img { width: auto; max-height: 210px; margin: auto; }
 #help { break-before: auto; }
 footer { padding: 20px 0; font-size: 10.5pt; }
 .next { margin-top: 20px; }
}
/* The same selected recording frames are used in browser print and START_HERE.html. */
.print-story { display: none; }
.frame-step { margin: 18px 0 24px; break-inside: avoid; }
.frame-step h4 { margin: 0 0 8px; color: var(--purple); }
.frame-step img { display: block; width: 100%; height: auto; border: 1px solid var(--line); border-radius: 9px; }
.frame-step figcaption { margin-top: 7px; color: var(--muted); font-size: 13px; }
.story-intro { color: var(--muted); font-size: 13px; }
html.pdf-source .print-story { display: block; }
html.pdf-source .screen-only, html.pdf-source .topbar { display: none; }
@media print {
 .print-story { display: block; }
 .coding-heading { break-before: page; margin-top: 8px; }
 .frame-step { margin: 14px 0 20px; }
 .frame-step h4 { font-size: 11pt; }
 .frame-step img { width: 100%; max-height: 215px; object-fit: contain; background: #141414; }
 .frame-step figcaption { font-size: 9pt; }
}
