/*
 * How-to guides (Q-272, founder, Sept 27, 2026; refreshed Oct 6; again Oct 22, 2026 in the homepage's premium look):
 * one page per screen of the app, opened from the app's Help and from the homepage. Loads after styles.css (tokens,
 * type, the header), which privacy.html and terms.html share, and screens.css (the drawn phones, shared with the
 * homepage), so this file overrides and never edits them. A page: the screen's job in one line, the screen itself,
 * then every button on it and what it does, in the app's own words. Built by scripts/tools/guides-build.mjs.
 *
 * The look is the homepage's (home.css, the app's premium look in src/theme/premium.ts): a plain white canvas, cards
 * one warm step off it with a hairline and no shadow, charcoal ink, the deep emerald accent, Epilogue for every line
 * of text (Urbanist in the wordmark only). The concept colours (replies lavender, calls peach) appear only on the
 * drawn screens, their washes and the guide's icon.
 */
:root {
  --bg: #FFFFFF;
  --canvas-top: #FFFFFF;
  --canvas-mid: #FFFFFF;
  --canvas-bottom: #FFFFFF;
  --card: #F7F6F3;
  --card-glass: #F7F6F3;
  --border: #E0DDD7;
  --ink: #1E2320;
  --muted: #53574F;
  --faint: #5E625B;
  --secondary: #E6E4DE;
  --chip: #DDE4DC;
  --chip-ink: #1D5A41;
  --display: Epilogue, "Segoe UI", system-ui, -apple-system, Helvetica, Arial, sans-serif;
  --shadow: none;
  --column: 1120px;
}
body { background: #FFFFFF; }
h1, h2, h3 { font-family: var(--display); }

/* The header and the wordmark as on the homepage. */
.brand span, .foot-brand { font-family: Urbanist, Epilogue, sans-serif; }
.top { background: rgba(255, 255, 255, 0.88); border-bottom-color: var(--border); }
.top nav a.pill { background: var(--ink); color: #F5F2EC; border-color: var(--ink); font-weight: 600; padding: 11px 16px; white-space: nowrap; line-height: 1.2; }
.top nav a.pill:hover { background: #000; color: #F5F2EC; }
@media (max-width: 420px) { .top nav { gap: 12px; font-size: 14px; } }
/* Every header link a finger high (44 px). */
.top nav a { display: inline-flex; align-items: center; min-height: 44px; box-sizing: border-box; }
@media (max-width: 359px) { .top nav a.pill { padding: 11px 12px; font-size: 14px; } }

.g-main { max-width: var(--column); margin: 0 auto; padding: 32px var(--gutter) 24px; }
@media (min-width: 900px) { .g-main { padding-top: 64px; } }
.g-crumb { font-size: 15px; margin: 0 0 16px; }
.g-crumb a { display: inline-flex; align-items: center; min-height: 44px; color: var(--muted); text-decoration: none; font-weight: 500; }
.g-crumb a:hover { color: var(--ink); }
.g-crumb a::before { content: "\2190"; margin-right: 8px; }
.g-head { display: grid; gap: 4px; }
.g-head .g-ic { width: 56px; height: 56px; border-radius: 18px; display: grid; place-items: center; background: var(--chip); color: var(--green); margin-bottom: 16px; }
.g-head .g-ic svg { width: 26px; height: 26px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.g-head h1 { font-weight: 700; font-size: clamp(40px, 6vw, 64px); line-height: 1; letter-spacing: -0.045em; text-wrap: balance; }
.g-head .lede { margin: 20px 0 0; max-width: 34em; font-size: 19px; line-height: 1.55; color: var(--muted); }
@media (min-width: 900px) { .g-head .lede { font-size: 21px; } }
.g-jump { display: flex; flex-wrap: wrap; gap: 8px; margin: 28px 0 0; padding: 0; list-style: none; }
.g-jump a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px; border-radius: 999px; background: var(--card); border: 1px solid var(--border); color: var(--ink); text-decoration: none; font-size: 15px; font-weight: 500; box-sizing: border-box; }
.g-jump a:hover { border-color: var(--ink); }
/* clip, not hidden: the phone's wash may not widen the page, and the sticky phone keeps working. */
.g-grid { display: grid; gap: 48px; margin-top: 48px; overflow-x: clip; }
@media (min-width: 900px) { .g-grid { grid-template-columns: minmax(0, 1fr) 320px; gap: 80px; align-items: start; } .g-phone { position: sticky; top: 96px; grid-column: 2; grid-row: 1; } }

/* The drawn screen, on a soft wash in the guide's concept colour (as each step on the homepage). */
.g-phone { margin: 0; position: relative; width: min(320px, 100%); justify-self: center; --wash: rgba(87, 188, 128, 0.26); }
.g-phone[data-tone="lav"] { --wash: rgba(178, 160, 214, 0.42); }
.g-phone[data-tone="peach"] { --wash: rgba(241, 170, 146, 0.38); }
.g-phone::before { content: ""; position: absolute; inset: -10% -30% 0; z-index: -1; pointer-events: none; border-radius: 50%; background: radial-gradient(closest-side, var(--wash), transparent); }
.g-phone .iphone { margin: 0; }
.g-phone figcaption { text-align: center; font-size: 14px; color: var(--faint); margin: 16px auto 0; max-width: 260px; }

.g-body section { padding: 0; scroll-margin-top: 88px; }
.g-body section + section { margin-top: 56px; }
.g-body h2 { font-weight: 700; font-size: clamp(26px, 3vw, 32px); letter-spacing: -0.03em; line-height: 1.15; margin: 0 0 16px; }
.g-body > section > p { font-size: 17px; line-height: 1.6; }
.g-buttons { margin: 0; border-top: 1px solid var(--border); }
.g-buttons > div { display: grid; gap: 4px; padding: 18px 0; border-bottom: 1px solid var(--border); }
@media (min-width: 640px) { .g-buttons > div { grid-template-columns: 240px 1fr; gap: 24px; } }
.g-buttons dt { font-weight: 600; }
.g-buttons dt .where { display: block; font-weight: 400; font-size: 14px; color: var(--faint); margin-top: 2px; }
.g-buttons dd { margin: 0; color: var(--muted); line-height: 1.55; }
/* Steps: a numbered disc in the brand's tint beside each line. */
.g-steps { list-style: none; margin: 0 0 8px; padding: 0; display: grid; gap: 14px; counter-reset: step; }
.g-steps li { counter-increment: step; display: grid; grid-template-columns: 32px 1fr; gap: 14px; align-items: start; font-size: 17px; line-height: 1.55; }
.g-steps li::before { content: counter(step); width: 32px; height: 32px; border-radius: 999px; background: var(--chip); color: var(--chip-ink); display: grid; place-items: center; font-weight: 600; font-size: 15px; }
.g-note { background: var(--card); border: 1px solid var(--border); border-radius: 18px; padding: 16px 18px; color: var(--muted); font-size: 16px; line-height: 1.55; margin-top: 20px; }
.g-pager { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 72px; }
.g-pager a { display: grid; gap: 2px; align-content: start; padding: 18px 20px; border-radius: 20px; background: var(--card); border: 1px solid var(--border); text-decoration: none; color: var(--ink); font-weight: 700; font-size: 18px; letter-spacing: -0.01em; }
.g-pager a small { font-weight: 500; font-size: 14px; color: var(--muted); letter-spacing: 0; }
.g-pager a.next { text-align: right; }
.g-pager a:hover { border-color: var(--ink); }

/* The index: one tile per screen, its icon in the concept colour. */
.g-list { list-style: none; margin: 48px 0 0; padding: 0; display: grid; gap: 12px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 700px) { .g-list { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1000px) { .g-list { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; } }
.g-list a { display: grid; grid-template-columns: 44px 1fr; gap: 6px 14px; align-items: start; align-content: start; padding: 22px; border-radius: 24px; background: var(--card); border: 1px solid var(--border); text-decoration: none; color: var(--ink); height: 100%; box-sizing: border-box; transition: border-color 160ms ease, transform 220ms cubic-bezier(.2, .7, .2, 1); }
.g-list a:hover { border-color: var(--ink); transform: translate3d(0, -2px, 0); }
.g-list .g-ic { grid-row: 1; width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center; background: var(--chip); color: var(--green); }
.g-list .g-ic svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.g-list b { font-weight: 700; font-size: 20px; line-height: 1.2; letter-spacing: -0.01em; align-self: center; }
.g-list span:not(.g-ic) { grid-column: 2; color: var(--muted); font-size: 15px; line-height: 1.5; }
.g-ic.lav { background: #E9DEFF; color: #4F3B71; }
.g-ic.peach { background: #FFDBCF; color: #803C27; }
.kbd { display: inline-block; padding: 0 7px; border-radius: 7px; background: var(--secondary); color: var(--ink); font-weight: 600; font-size: 0.92em; white-space: nowrap; }

/* The footer as on the homepage: the brand, the socials as one row of names, then Privacy and Terms. */
.foot { display: grid; justify-items: center; gap: 14px; padding-top: 48px; margin-top: 56px; border-top: 1px solid var(--border); }
.foot-brand { display: inline-flex; align-items: center; gap: 8px; color: var(--ink); text-decoration: none; font-weight: 600; font-size: 17px; }
.foot-brand img { width: 28px; height: 28px; }
.social { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 0 4px; font-size: 15px; }
.social-at { color: var(--muted); margin-right: 8px; }
.social a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 10px; color: var(--ink); font-weight: 600; text-decoration: none; }
.social a:hover { color: var(--green); }
.social a + a::before { content: "·"; color: var(--muted); font-weight: 400; margin: 0 12px 0 -8px; }
/* On a phone the handle takes its own line, so the three names stay on one with no stray dot. */
@media (max-width: 480px) { .social-at { flex-basis: 100%; text-align: center; margin: 0 0 2px; } }
/* A key and the punctuation after it never part at a line end. */
.kbd-w { white-space: nowrap; }
.foot .legal { font-size: 15px; color: var(--muted); }
.foot .legal a { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; padding: 11px 8px; display: inline-block; }

@media (prefers-reduced-motion: reduce) { .g-list a { transition: none; } .g-list a:hover { transform: none; } }
