/* beardfm.app — one stylesheet for the home page and every app page.
   Each app page sets data-app on <body>, which swaps the accent color. */

:root {
  --bg: #f6f5f1;
  --surface: #ffffff;
  --surface-2: #eeece6;
  --text: #16181d;
  --muted: #5d6370;
  --hairline: rgba(22, 24, 29, 0.11);
  --accent: #16181d;        /* links, glyphs, eyebrows */
  --accent-solid: #16181d;  /* button fill */
  --accent-fg: #ffffff;     /* text on the button fill */
  --blue: #1f6feb;
  --shadow: 0 1px 2px rgba(22, 24, 29, 0.05), 0 18px 48px -18px rgba(22, 24, 29, 0.28);
  --radius: 18px;
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --topbar-h: 60px;
  --menu-bg: rgba(255, 255, 255, 0.82);
  color-scheme: light dark;
}
[data-app="kan-do"] { --accent: #1f7f45; --accent-solid: #2a9450; }
[data-app="stash"] { --accent: #c23d22; --accent-solid: #d9482b; }
[data-app="shortcuts-menu"] { --accent: #5b33cc; --accent-solid: #6a3fe0; }
[data-app="ipod-pro-max"] { --accent: #1f5ae0; --accent-solid: #2f6df6; }
[data-app] { --accent-fg: #ffffff; --accent-soft: color-mix(in srgb, var(--accent-solid) 12%, transparent); }
:root { --accent-soft: color-mix(in srgb, var(--accent-solid) 8%, transparent); }

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0f1115;
    --surface: #181b22;
    --surface-2: #20242d;
    --text: #eef0f4;
    --muted: #9aa2b1;
    --hairline: rgba(255, 255, 255, 0.11);
    --accent: #eef0f4;
    --accent-solid: #eef0f4;
    --accent-fg: #111318;
    --blue: #6aa5ff;
    --shadow: 0 1px 2px rgba(0, 0, 0, 0.3), 0 18px 48px -18px rgba(0, 0, 0, 0.7);
    --menu-bg: rgba(40, 42, 50, 0.82);
  }
  [data-app="kan-do"] { --accent: #5fd08a; --accent-solid: #2a9450; }
  [data-app="stash"] { --accent: #ff8a6e; --accent-solid: #d9482b; }
  [data-app="shortcuts-menu"] { --accent: #b39dff; --accent-solid: #6a3fe0; }
  [data-app="ipod-pro-max"] { --accent: #7aa5ff; --accent-solid: #2f6df6; }
  [data-app] { --accent-fg: #ffffff; --accent-soft: color-mix(in srgb, var(--accent-solid) 22%, transparent); }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--topbar-h) + 16px); -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--font); font-size: 17px; line-height: 1.55; color: var(--text); background: var(--bg); -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); text-underline-offset: 0.16em; }
h1, h2, h3 { line-height: 1.12; letter-spacing: -0.025em; margin: 0; text-wrap: balance; }
p { margin: 0; }
code { font-family: var(--mono); font-size: 0.88em; background: var(--surface-2); padding: 0.1em 0.4em; border-radius: 6px; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 4px; }
.skip { position: absolute; left: -9999px; top: 8px; background: var(--surface); padding: 8px 14px; border-radius: 10px; z-index: 100; }
.skip:focus { left: 8px; }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 24px; }

/* ---------- top bar ---------- */
.topbar { position: sticky; top: 0; z-index: 50; background: color-mix(in srgb, var(--bg) 86%, transparent); backdrop-filter: saturate(1.6) blur(16px); -webkit-backdrop-filter: saturate(1.6) blur(16px); border-bottom: 1px solid var(--hairline); }
.topbar-inner { max-width: 1280px; margin: 0 auto; padding: 0 24px; min-height: var(--topbar-h); display: flex; align-items: center; gap: 12px; }
.site-brand { display: inline-flex; align-items: center; gap: 9px; font-weight: 700; font-size: 16px; letter-spacing: -0.01em; color: var(--text); text-decoration: none; }
.site-brand .mark { flex: none; }
.crumb { color: var(--muted); opacity: 0.6; }
.app-brand { display: inline-flex; align-items: center; gap: 8px; font-weight: 650; font-size: 16px; color: var(--text); text-decoration: none; white-space: nowrap; }
.app-brand img { width: 26px; height: 26px; }
.topnav { margin-left: auto; display: flex; align-items: center; gap: 4px; }
.topnav a { color: var(--muted); text-decoration: none; font-size: 15px; padding: 7px 11px; border-radius: 9px; white-space: nowrap; }
.topnav a:hover { color: var(--text); background: var(--accent-soft); }
.topnav-cta { background: var(--accent-solid); color: var(--accent-fg); text-decoration: none; font-size: 15px; font-weight: 600; padding: 7px 15px; border-radius: 999px; white-space: nowrap; }
.topnav-cta:hover { filter: brightness(1.08); }
@media (max-width: 860px) {
  .topbar-inner { flex-wrap: wrap; padding: 0 16px; row-gap: 0; }
  body[data-app] .site-brand span { display: none; }
  .topnav-cta { margin-left: auto; }
  .topnav { order: 5; width: calc(100% + 32px); margin: 0 -16px; padding: 0 10px 8px; overflow-x: auto; scrollbar-width: none; }
  .topnav::-webkit-scrollbar { display: none; }
  .topbar-inner { padding-top: 10px; min-height: 0; }
  .topbar-inner > :not(.topnav) { margin-bottom: 8px; }
  .home .topnav { margin-top: 0; }
  :root { --topbar-h: 96px; }
}

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 9px; font: inherit; font-weight: 600; font-size: 16.5px; padding: 12px 22px; border-radius: 999px; border: 1px solid transparent; text-decoration: none; cursor: pointer; transition: transform 0.12s ease, filter 0.12s ease, background 0.12s ease; }
.btn:active { transform: scale(0.98); }
.btn-primary { background: var(--accent-solid); color: var(--accent-fg); }
.btn-primary:hover { filter: brightness(1.1); }
.btn-secondary { background: var(--surface); color: var(--text); border-color: var(--hairline); }
.btn-secondary:hover { background: var(--surface-2); }
.btn[disabled] { opacity: 0.6; cursor: default; }
.cta-row { display: flex; flex-wrap: wrap; gap: 10px; }

/* ---------- shared bits ---------- */
.eyebrow { font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.09em; color: var(--accent); margin-bottom: 10px; }
.platforms { display: flex; flex-wrap: wrap; gap: 6px; }
.platforms span { font-size: 13px; font-weight: 550; color: var(--muted); border: 1px solid var(--hairline); background: var(--surface); padding: 3px 10px; border-radius: 999px; }
.price-note, .fine { font-size: 14.5px; color: var(--muted); }
.price-note strong { color: var(--text); }

/* ---------- app page hero ---------- */
.hero { text-align: center; padding-top: 64px; padding-bottom: 24px; }
.hero .app-icon img { width: 112px; height: 112px; margin: 0 auto; filter: drop-shadow(0 12px 24px rgba(22, 24, 29, 0.22)); }
.hero h1 { font-size: clamp(40px, 6.4vw, 72px); font-weight: 760; letter-spacing: -0.035em; margin: 26px auto 0; max-width: 16ch; }
.hero .tagline { font-size: clamp(18px, 2.2vw, 22px); color: var(--muted); max-width: 640px; margin: 18px auto 0; text-wrap: pretty; }
.hero .platforms { justify-content: center; margin-top: 22px; }
.hero .cta-row { justify-content: center; margin-top: 28px; }
.hero .price-note { margin-top: 14px; }
.hero-shot { margin: 52px auto 0; max-width: 1040px; border-radius: 16px; overflow: hidden; border: 1px solid var(--hairline); box-shadow: var(--shadow); background: var(--surface); }
.hero-shot.bare { border: 0; background: none; box-shadow: none; border-radius: 0; overflow: visible; filter: drop-shadow(0 24px 40px rgba(22, 24, 29, 0.22)); }
.hero-demo { margin-top: 52px; }

/* ---------- sections ---------- */
.section { padding-top: 96px; }
.section.narrow { max-width: 820px; }
.section-head { max-width: 720px; margin-bottom: 36px; }
.section-head h2 { font-size: clamp(28px, 3.8vw, 42px); font-weight: 740; }
.section-head p:not(.eyebrow) { color: var(--muted); font-size: 18.5px; margin-top: 12px; text-wrap: pretty; }
.section > .hero-shot { margin-top: 40px; }
.section > .fine { margin-top: 18px; }

.feature-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 16px; }
.feature { background: var(--surface); border: 1px solid var(--hairline); border-radius: var(--radius); padding: 24px; display: flex; flex-direction: column; gap: 8px; }
.feature .glyph { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent); margin-bottom: 6px; }
.feature h3 { font-size: 18.5px; letter-spacing: -0.015em; }
.feature p { color: var(--muted); font-size: 15.5px; }
.feature a { margin-top: auto; padding-top: 6px; font-size: 15px; font-weight: 600; text-decoration: none; }
.feature a:hover { text-decoration: underline; }

.showcase { display: grid; grid-template-columns: 1.25fr 1fr; gap: 56px; align-items: center; }
.showcase + .showcase { margin-top: 96px; }
.showcase.flip .showcase-media { order: 2; }
.showcase-media img { border-radius: 14px; box-shadow: var(--shadow); }
.showcase-copy h3 { font-size: clamp(26px, 3vw, 34px); font-weight: 720; }
.showcase-copy > p:not(.eyebrow) { color: var(--muted); margin-top: 14px; }
.showcase-copy ul { margin: 18px 0 0; padding: 0; list-style: none; display: grid; gap: 9px; }
.showcase-copy li { position: relative; padding-left: 26px; font-size: 16px; }
.showcase-copy li::before { content: ""; position: absolute; left: 2px; top: 0.5em; width: 12px; height: 7px; border-left: 2.5px solid var(--accent); border-bottom: 2.5px solid var(--accent); transform: rotate(-45deg); border-radius: 1px; }
.showcase-copy .more { display: inline-block; margin-top: 20px; font-weight: 600; text-decoration: none; }
.showcase-copy .more:hover { text-decoration: underline; }
@media (max-width: 860px) {
  .showcase { grid-template-columns: 1fr; gap: 28px; }
  .showcase.flip .showcase-media { order: 0; }
  .showcase + .showcase { margin-top: 64px; }
}

.platform-strip { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 14px; }
.platform { background: var(--surface); border: 1px solid var(--hairline); border-radius: var(--radius); padding: 20px; display: flex; flex-direction: column; gap: 4px; }
.platform svg { width: 30px; height: 30px; color: var(--accent); margin-bottom: 8px; }
.platform span { color: var(--muted); font-size: 14.5px; line-height: 1.4; }

.gallery { display: flex; gap: 16px; overflow-x: auto; padding: 4px 24px 20px; margin: 0 -24px; scroll-snap-type: x proximity; }
.gallery figure { margin: 0; flex: none; scroll-snap-align: center; border-radius: 14px; overflow: hidden; background: var(--surface); border: 1px solid var(--hairline); }
.gallery img { height: 420px; width: auto; max-width: none; }
.gallery figcaption { font-size: 13.5px; color: var(--muted); padding: 10px 14px; }

.phone-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.phone-row figure { margin: 0; }
.phone-row img { border-radius: 26px; border: 1px solid var(--hairline); box-shadow: var(--shadow); }
.phone-row figcaption { font-size: 14px; color: var(--muted); text-align: center; margin-top: 12px; }
@media (max-width: 760px) {
  .phone-row { display: flex; overflow-x: auto; margin: 0 -24px; padding: 4px 24px 24px; scroll-snap-type: x proximity; }
  .phone-row figure { flex: none; width: 62%; scroll-snap-align: center; }
}

.faq { max-width: 820px; display: grid; gap: 10px; }
.faq details { background: var(--surface); border: 1px solid var(--hairline); border-radius: 14px; padding: 0 20px; }
.faq summary { cursor: pointer; font-weight: 600; padding: 16px 28px 16px 0; list-style: none; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; position: absolute; right: 4px; top: 50%; width: 9px; height: 9px; border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted); transform: translateY(-70%) rotate(45deg); transition: transform 0.15s ease; }
.faq details[open] summary::after { transform: translateY(-30%) rotate(-135deg); }
.faq details p { color: var(--muted); padding-bottom: 18px; font-size: 16px; }

.spec-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 14px; }
.spec { background: var(--surface); border: 1px solid var(--hairline); border-radius: 14px; padding: 16px 18px; }
.spec strong { font-size: 16px; }
.spec p { color: var(--muted); font-size: 14.5px; margin-top: 4px; }
.pill { display: inline-block; font-size: 12px; font-weight: 650; padding: 2px 9px; border-radius: 999px; margin-left: 8px; vertical-align: 2px; }
.pill-ok { background: rgba(52, 199, 89, 0.16); color: #23803c; }
.pill-warn { background: rgba(255, 149, 0, 0.18); color: #b06200; }
@media (prefers-color-scheme: dark) { .pill-ok { color: #6fdc8c; } .pill-warn { color: #ffb650; } }

.steps { counter-reset: s; display: grid; gap: 12px; max-width: 820px; margin: 0; padding: 0; }
.steps li { list-style: none; background: var(--surface); border: 1px solid var(--hairline); border-radius: 14px; padding: 16px 18px 16px 60px; position: relative; font-size: 16px; }
.steps li::before { counter-increment: s; content: counter(s); position: absolute; left: 18px; top: 15px; width: 28px; height: 28px; border-radius: 50%; background: var(--accent-solid); color: var(--accent-fg); display: grid; place-items: center; font-weight: 700; font-size: 14px; }

.price-card { max-width: 380px; background: var(--surface); border: 1px solid var(--hairline); border-radius: 24px; padding: 32px; box-shadow: var(--shadow); display: flex; flex-direction: column; align-items: flex-start; gap: 10px; }
.price-card .price { font-size: 52px; font-weight: 760; letter-spacing: -0.04em; line-height: 1; margin-top: 8px; font-variant-numeric: tabular-nums; }
.price-card ul { margin: 10px 0 14px; padding: 0; list-style: none; display: grid; gap: 8px; }
.price-card li { position: relative; padding-left: 26px; }
.price-card li::before { content: ""; position: absolute; left: 2px; top: 0.5em; width: 12px; height: 7px; border-left: 2.5px solid var(--accent); border-bottom: 2.5px solid var(--accent); transform: rotate(-45deg); }
.price-card .btn { align-self: stretch; }

.note-card { background: var(--surface); border: 1px solid var(--hairline); border-radius: var(--radius); padding: 26px 28px; color: var(--muted); }

.cta-band { margin: 112px 24px 0; padding: 72px 24px; border-radius: 32px; text-align: center; background: var(--accent-soft); max-width: 1072px; }
@media (min-width: 1120px) { .cta-band { margin-left: auto; margin-right: auto; } }
.cta-band h2 { font-size: clamp(30px, 4.4vw, 48px); font-weight: 760; }
.cta-band p { color: var(--muted); font-size: 18.5px; margin: 12px 0 28px; }

/* ---------- home ---------- */
.home-hero { text-align: center; padding-top: 88px; }
.home-hero h1 { font-size: clamp(42px, 7.4vw, 88px); font-weight: 780; letter-spacing: -0.045em; margin: 0 auto; }
.home-hero .tagline { font-size: clamp(18px, 2.2vw, 22px); color: var(--muted); max-width: 600px; margin: 22px auto 0; text-wrap: pretty; }
.icon-row { display: flex; justify-content: center; gap: clamp(14px, 4vw, 40px); margin-top: 48px; flex-wrap: wrap; }
.icon-row a { display: flex; flex-direction: column; align-items: center; gap: 10px; width: 108px; text-decoration: none; color: var(--muted); font-size: 14px; font-weight: 550; }
.icon-row img { width: 76px; height: 76px; filter: drop-shadow(0 8px 16px rgba(22, 24, 29, 0.2)); transition: transform 0.18s ease; }
.icon-row a:hover { color: var(--text); }
.icon-row a:hover img { transform: translateY(-4px) scale(1.04); }

.app-list { display: grid; gap: 28px; margin-top: 80px; }
.app-card { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 48px; align-items: center; padding: 52px; border-radius: 34px; background: color-mix(in srgb, var(--accent-solid) 9%, var(--surface)); border: 1px solid color-mix(in srgb, var(--accent-solid) 16%, transparent); scroll-margin-top: calc(var(--topbar-h) + 20px); }
.app-card.flip .app-card-copy { order: 2; }
.app-card-icon { width: 68px; height: 68px; filter: drop-shadow(0 8px 16px rgba(22, 24, 29, 0.2)); }
.app-card h2 { font-size: clamp(30px, 3.6vw, 42px); font-weight: 770; margin-top: 18px; }
.app-card h2 a { color: inherit; text-decoration: none; }
.app-card-tag { font-size: 20px; font-weight: 600; color: var(--accent); margin-top: 6px; letter-spacing: -0.01em; }
.app-card-copy > p:not([class]) { color: var(--muted); margin-top: 14px; text-wrap: pretty; }
.app-card .platforms { margin-top: 18px; }
.app-card .cta-row { margin-top: 24px; }
.app-card .price-note { margin-top: 12px; }
.app-card-media { display: block; min-width: 0; }
.app-card-media > img { border-radius: 12px; box-shadow: var(--shadow); border: 1px solid var(--hairline); transition: transform 0.25s ease; }
.app-card-media > img.window { border: 0; border-radius: 0; box-shadow: none; filter: drop-shadow(0 20px 32px rgba(22, 24, 29, 0.24)); }
a.app-card-media:hover > img { transform: translateY(-4px); }
@media (max-width: 900px) {
  .app-card { grid-template-columns: 1fr; padding: 28px 22px; gap: 32px; border-radius: 26px; }
  .app-card.flip .app-card-copy { order: 0; }
}

.about { display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr); gap: 56px; align-items: start; }
.about-copy { display: grid; grid-template-columns: auto 1fr; column-gap: 28px; align-items: start; }
.about-copy > * { grid-column: 2; }
.about-photo { grid-column: 1; grid-row: 1 / span 2; width: 140px; height: 140px; border-radius: 50%; }
@media (max-width: 560px) { .about-copy { grid-template-columns: 1fr; } .about-copy > *, .about-photo { grid-column: 1; grid-row: auto; } .about-photo { width: 112px; height: 112px; margin-bottom: 20px; } }
@media (min-width: 861px) { .about h2 { white-space: nowrap; } }
.about h2 { font-size: clamp(32px, 3.9vw, 50px); font-weight: 770; letter-spacing: -0.035em; }
.about-copy > p:not(.eyebrow) { color: var(--muted); margin-top: 16px; font-size: 18px; text-wrap: pretty; }
.principles { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.principles li { background: var(--surface); border: 1px solid var(--hairline); border-radius: var(--radius); padding: 18px 22px; display: grid; gap: 2px; }
.principles span { color: var(--muted); font-size: 15.5px; }
@media (max-width: 860px) { .about { grid-template-columns: 1fr; gap: 28px; } }

/* ---------- Shortcuts Menu menu-bar mockup ---------- */
.menubar-demo { --menu-hover: #3478f6; position: relative; margin: 0 auto; max-width: 760px; height: 330px; font-size: 14px; text-align: left; color: var(--text); }
.menubar { display: flex; justify-content: flex-end; align-items: center; gap: 18px; height: 34px; padding: 0 18px; border-radius: 14px 14px 0 0; background: linear-gradient(90deg, #d9c8f3, #c9dcf7 60%, #f3d9c9); color: #1d1d1f; font-size: 13px; font-weight: 500; }
.menubar .status { display: inline-grid; place-items: center; width: 30px; height: 24px; border-radius: 7px; background: rgba(255, 255, 255, 0.55); }
.menubar .status svg { width: 16px; height: 16px; }
.menubar .dim { opacity: 0.55; }
.desktop { height: 296px; border-radius: 0 0 14px 14px; background: radial-gradient(120% 80% at 20% 0%, rgba(217, 200, 243, 0.9), transparent 60%), radial-gradient(90% 90% at 100% 100%, rgba(243, 217, 201, 0.9), transparent 60%), linear-gradient(180deg, #c9dcf7, #e6ddf7); box-shadow: var(--shadow); }
.menu { position: absolute; min-width: 190px; padding: 6px; border-radius: 12px; background: var(--menu-bg); backdrop-filter: blur(20px) saturate(1.6); -webkit-backdrop-filter: blur(20px) saturate(1.6); border: 1px solid var(--hairline); box-shadow: 0 18px 50px -12px rgba(0, 0, 0, 0.35); }
.menu .item { display: flex; align-items: center; gap: 9px; padding: 5px 10px; border-radius: 7px; white-space: nowrap; }
.menu .item.active { background: var(--menu-hover); color: #fff; }
.menu .chev { margin-left: auto; padding-left: 18px; opacity: 0.7; }
.menu hr { border: 0; border-top: 1px solid var(--hairline); margin: 5px 8px; }
.menu .gear { width: 16px; height: 16px; opacity: 0.8; }
.menu.root { top: 40px; right: 70px; }
.menu.sub { top: 44px; right: 268px; min-width: 250px; }
.tile { display: inline-grid; place-items: center; width: 20px; height: 20px; border-radius: 5px; color: #fff; flex: none; }
.tile svg { width: 12px; height: 12px; }
.app-card .menu.root { right: 16px; }
.app-card .menu.sub { right: 214px; min-width: 0; }
@media (max-width: 1100px) {
  .app-card .menubar-demo { height: 420px; }
  .app-card .desktop { height: 386px; }
  .app-card .menu.root { right: 8px; }
  .app-card .menu.sub { top: 150px; left: 8px; right: auto; }
}
@media (max-width: 640px) {
  .menubar-demo, .app-card .menubar-demo { height: 420px; }
  .desktop, .app-card .desktop { height: 386px; }
  .menubar .dim { display: none; }
  .menu.root, .app-card .menu.root { top: 40px; right: 8px; }
  .menu.sub, .app-card .menu.sub { top: 150px; left: 8px; right: auto; min-width: 0; }
}

/* ---------- footer ---------- */
.footer { margin-top: 112px; border-top: 1px solid var(--hairline); padding: 40px 0 56px; color: var(--muted); font-size: 14px; }
.footer-inner { max-width: 1120px; margin: 0 auto; padding: 0 24px; display: grid; gap: 22px; }
.footer-top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 32px; }
.footer-apps { display: flex; flex-wrap: wrap; gap: 6px 20px; }
.footer-apps a { display: inline-flex; align-items: center; gap: 7px; color: var(--text); text-decoration: none; font-weight: 550; font-size: 14.5px; }
.footer-apps a:hover { color: var(--accent); }
.footer-apps img { width: 20px; height: 20px; }
.footer-links { display: flex; flex-wrap: wrap; gap: 6px 22px; padding-top: 20px; border-top: 1px solid var(--hairline); }
.footer-links a, .footer p a { color: var(--muted); text-decoration: none; }
.footer-links a:hover, .footer p a:hover { color: var(--text); text-decoration: underline; }
.footer p { line-height: 1.6; }

/* ---------- plain pages (support, privacy, terms, release notes) ---------- */
.page { max-width: 780px; margin: 0 auto; padding: 64px 24px 0; }
.page h1 { font-size: clamp(36px, 5vw, 52px); font-weight: 760; letter-spacing: -0.035em; }
.page .lead { font-size: 19.5px; color: var(--muted); margin-top: 16px; text-wrap: pretty; }
.page .updated { color: var(--muted); font-size: 14.5px; margin-top: 10px; }
.page h2 { font-size: 26px; font-weight: 720; margin-top: 48px; }
.page > p, .page section > p { margin-top: 14px; }
.page ul { margin: 14px 0 0; padding-left: 22px; display: grid; gap: 9px; }
.page.notfound { text-align: center; padding-top: 120px; }
.page.notfound .btn { margin-top: 28px; }

/* ---------- contact form ---------- */
.contact-form { margin-top: 24px; display: grid; gap: 16px; background: var(--surface); border: 1px solid var(--hairline); border-radius: 22px; padding: 28px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 560px) { .field-row { grid-template-columns: 1fr; } .contact-form { padding: 20px; } }
.field { display: grid; gap: 6px; }
.field label { font-size: 14.5px; font-weight: 600; }
.field .req { color: var(--muted); font-weight: 400; }
.field input, .field textarea { font: inherit; font-size: 16px; color: var(--text); background: var(--bg); border: 1px solid var(--hairline); border-radius: 11px; padding: 11px 13px; width: 100%; }
.field textarea { resize: vertical; min-height: 140px; }
.field input:focus, .field textarea:focus { outline: 2px solid var(--accent); outline-offset: 0; border-color: transparent; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-actions { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.form-status { font-size: 15px; }
.form-status.ok { color: #23803c; }
.form-status.error { color: #c0392b; }
@media (prefers-color-scheme: dark) { .form-status.ok { color: #6fdc8c; } .form-status.error { color: #ff8478; } }
.form-note { color: var(--muted); font-size: 14.5px; margin-top: 14px; }

/* ---------- Kan Do guide ---------- */
.wiki-layout { max-width: 1280px; margin: 0 auto; display: grid; grid-template-columns: 272px minmax(0, 1fr); }
.sidebar { position: sticky; top: var(--topbar-h); align-self: start; height: calc(100vh - var(--topbar-h)); overflow-y: auto; padding: 24px 16px 40px 24px; border-right: 1px solid var(--hairline); font-size: 15px; }
.sidebar-search { position: relative; margin-bottom: 14px; }
.sidebar-search input, .wiki-hero-search input { width: 100%; font: inherit; font-size: 15px; color: var(--text); background: var(--surface); border: 1px solid var(--hairline); border-radius: 11px; padding: 9px 13px; }
.sidebar-search input:focus, .wiki-hero-search input:focus { outline: 2px solid var(--accent); border-color: transparent; }
.sidebar-home, .nav-group a { display: block; padding: 6px 10px; border-radius: 8px; color: var(--text); text-decoration: none; }
.sidebar-home { font-weight: 600; }
.sidebar a:hover { background: var(--accent-soft); }
.sidebar a.active { background: var(--accent-soft); color: var(--accent); font-weight: 600; }
.nav-group { margin-top: 20px; }
.nav-group-title { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); padding: 0 10px 6px; }
.nav-group ul { list-style: none; margin: 0; padding: 0; }
.menu-btn { display: none; align-items: center; gap: 8px; font: inherit; font-size: 15px; font-weight: 600; color: var(--text); background: var(--surface); border: 1px solid var(--hairline); border-radius: 10px; padding: 8px 14px; margin-bottom: 24px; cursor: pointer; }

.search-results { position: absolute; left: 0; right: 0; top: calc(100% + 6px); z-index: 30; background: var(--surface); border: 1px solid var(--hairline); border-radius: 14px; box-shadow: var(--shadow); padding: 6px; max-height: 70vh; overflow-y: auto; min-width: 300px; text-align: left; }
.search-results a { display: block; padding: 9px 11px; border-radius: 9px; text-decoration: none; color: var(--text); }
.search-results a:hover, .search-results a.selected { background: var(--accent-soft); }
.sr-title { font-weight: 600; font-size: 15px; }
.sr-section { font-size: 12px; color: var(--muted); text-transform: uppercase; letter-spacing: 0.06em; }
.sr-snippet { font-size: 13.5px; color: var(--muted); margin-top: 2px; }
.sr-empty { padding: 12px; color: var(--muted); font-size: 14.5px; }
.search-results mark { background: color-mix(in srgb, var(--accent-solid) 26%, transparent); color: inherit; border-radius: 3px; }

.content { min-width: 0; padding: 48px 40px 0; display: grid; grid-template-columns: minmax(0, 760px) 220px; gap: 48px; justify-content: center; align-items: start; }
.wiki-home .content { display: block; max-width: 920px; margin: 0 auto; }
.doc { min-width: 0; }
.doc-section { font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.09em; color: var(--accent); margin-bottom: 10px; }
.doc-title, .wiki-hero h1 { font-size: clamp(34px, 4.6vw, 48px); font-weight: 760; letter-spacing: -0.035em; }
.doc-summary { font-size: 19.5px; color: var(--muted); margin-top: 14px; text-wrap: pretty; }
.wiki-hero-search { position: relative; margin-top: 26px; max-width: 520px; }
.wiki-hero-search input { font-size: 16.5px; padding: 13px 16px; border-radius: 14px; }
.wiki-section { margin-top: 56px; }
.wiki-section h2 { font-size: 26px; font-weight: 720; }
.wiki-section-blurb { color: var(--muted); margin-top: 6px; }
.card-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 12px; margin-top: 18px; }
.card { display: block; background: var(--surface); border: 1px solid var(--hairline); border-radius: 14px; padding: 18px; text-decoration: none; color: var(--text); transition: border-color 0.12s ease, transform 0.12s ease; }
.card:hover { border-color: var(--accent); transform: translateY(-2px); }
.card h3 { font-size: 16.5px; letter-spacing: -0.01em; }
.card p { color: var(--muted); font-size: 14.5px; margin-top: 5px; }

.doc-body { margin-top: 32px; }
.doc-body > * + * { margin-top: 1.05em; }
.doc-body h2 { font-size: 27px; font-weight: 720; margin-top: 2em; position: relative; }
.doc-body h3 { font-size: 20px; font-weight: 680; margin-top: 1.7em; letter-spacing: -0.015em; position: relative; }
.doc-body ul, .doc-body ol { padding-left: 24px; }
.doc-body li + li { margin-top: 0.4em; }
.doc-body li > ul, .doc-body li > ol { margin-top: 0.4em; }
.doc-body img { border-radius: 12px; }
.doc-body hr { border: 0; border-top: 1px solid var(--hairline); margin: 2em 0; }
.doc-body blockquote { margin-left: 0; padding-left: 18px; border-left: 3px solid var(--hairline); color: var(--muted); }
.anchor { position: absolute; left: -0.9em; opacity: 0; text-decoration: none; color: var(--muted); font-weight: 400; }
h2:hover > .anchor, h3:hover > .anchor, .anchor:focus { opacity: 1; }
.doc-body figure.shot { margin: 1.5em 0; text-align: center; }
.doc-body figure.shot img { display: inline-block; max-height: 560px; width: auto; max-width: 100%; border: 1px solid var(--hairline); }
.doc-body figure.shot.phone img { max-height: 520px; }
.doc-body figure.shot figcaption { font-size: 13.5px; color: var(--muted); margin-top: 8px; }
.doc-body kbd { font-family: var(--font); font-size: 0.85em; background: var(--surface); border: 1px solid var(--hairline); border-bottom-width: 2px; border-radius: 6px; padding: 1px 7px; white-space: nowrap; }
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.doc-body table { border-collapse: collapse; width: 100%; font-size: 15px; }
.doc-body th, .doc-body td { text-align: left; padding: 9px 12px; border-bottom: 1px solid var(--hairline); vertical-align: top; }
.doc-body th { font-size: 13px; text-transform: uppercase; letter-spacing: 0.05em; color: var(--muted); }
.callout { border-radius: 14px; padding: 14px 18px; background: var(--surface-2); border: 1px solid var(--hairline); }
.callout > * + * { margin-top: 0.6em; }
.callout-label { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.07em; color: var(--muted); }
.callout-tip { background: var(--accent-soft); border-color: transparent; }
.callout-tip .callout-label { color: var(--accent); }
.callout-warning { background: rgba(255, 149, 0, 0.14); border-color: transparent; }
.callout-warning .callout-label { color: #b06200; }
.callout-mac, .callout-ios { background: color-mix(in srgb, var(--blue) 10%, transparent); border-color: transparent; }
.callout-mac .callout-label, .callout-ios .callout-label { color: var(--blue); }
@media (prefers-color-scheme: dark) { .callout-warning .callout-label { color: #ffb650; } }

.pager { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 56px; }
.pager a { display: block; background: var(--surface); border: 1px solid var(--hairline); border-radius: 14px; padding: 14px 18px; text-decoration: none; color: var(--text); font-weight: 600; }
.pager a:hover { border-color: var(--accent); }
.pager a span { display: block; font-size: 12.5px; font-weight: 500; color: var(--muted); text-transform: uppercase; letter-spacing: 0.06em; }
.pager-next { text-align: right; }

.outline { position: sticky; top: calc(var(--topbar-h) + 32px); font-size: 14px; max-height: calc(100vh - var(--topbar-h) - 64px); overflow-y: auto; }
.outline-title { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); margin-bottom: 8px; }
.outline ul { list-style: none; margin: 0; padding: 0; border-left: 1px solid var(--hairline); }
.outline a { display: block; padding: 4px 12px; margin-left: -1px; border-left: 2px solid transparent; color: var(--muted); text-decoration: none; }
.outline .lvl3 a { padding-left: 24px; }
.outline a:hover { color: var(--text); }
.outline a.current { color: var(--accent); border-left-color: var(--accent); }

@media (max-width: 1180px) {
  .content { grid-template-columns: minmax(0, 760px); }
  .outline { display: none; }
}
@media (max-width: 860px) {
  .wiki-layout { grid-template-columns: 1fr; }
  .menu-btn { display: inline-flex; }
  .sidebar { position: fixed; z-index: 40; top: 0; left: 0; bottom: 0; height: auto; width: min(86vw, 320px); background: var(--bg); transform: translateX(-102%); transition: transform 0.22s ease; box-shadow: var(--shadow); padding-top: 20px; }
  .sidebar-open .sidebar { transform: none; }
  .sidebar-open::after { content: ""; position: fixed; inset: 0; z-index: 39; background: rgba(0, 0, 0, 0.35); }
  .topbar { z-index: 30; }
  .content { padding: 28px 20px 0; }
  .anchor { display: none; }
}

/* ---------- release notes ---------- */
.release-index ul { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; padding: 0; margin: 28px 0 0; }
.release-index a { display: block; font-size: 14px; font-weight: 600; padding: 4px 12px; border-radius: 999px; background: var(--surface); border: 1px solid var(--hairline); text-decoration: none; color: var(--text); font-variant-numeric: tabular-nums; }
.release-index a:hover { border-color: var(--accent); color: var(--accent); }
.release { margin-top: 56px; padding-top: 40px; border-top: 1px solid var(--hairline); }
.release-head h2 { margin-top: 0; font-size: 32px; position: relative; font-variant-numeric: tabular-nums; }
.release-meta { color: var(--muted); font-size: 14.5px; margin-top: 6px; }
.release-summary { margin-top: 14px; font-size: 18px; }
.release .doc-body { margin-top: 18px; }
.release .doc-body h3 { font-size: 18px; margin-top: 1.4em; }
.release .doc-body ul { display: block; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
