/* Bema marketing site.
   Colours are the app's own tokens (frontend/tailwind.config.js): the ink ramp,
   the gold accent, canvas. If the app's palette changes, change it here too. */

/* Schibsted Grotesk, self-hosted (SIL Open Font License, fonts/OFL.txt) so no
   visitor's browser is sent to a third party just to render text. */
@font-face {
  font-family: 'Schibsted Grotesk';
  src: url('/assets/fonts/schibsted-grotesk-latin-wght-normal.woff2') format('woff2');
  font-weight: 400 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --paper: #FFFFFF;
  --canvas: #F6F7F9;
  --ink: #111827;
  --ink-2: #333C4A;
  --muted: #616C7A;
  --line: #DFE3E8;
  --line-strong: #AEB7C3;
  --gold: #B8912F;
  --gold-deep: #735920;
  --gold-wash: #FBF7EC;
  --gold-line: #EBD9A6;
  --ok: #1F7A4D;
  --ok-wash: #EAF5EF;
  --warn: #8A5A00;
  --warn-wash: #FFF4DC;

  --font: 'Schibsted Grotesk', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --measure: 66ch;
  --wrap: 1120px;
  --gutter: clamp(16px, 4vw, 40px);
  --r-sm: 8px;
  --r-md: 14px;
  --r-lg: 22px;
  --shadow: 0 1px 2px rgba(17,24,39,.04), 0 10px 30px rgba(17,24,39,.07);
  --focus: 0 0 0 3px rgba(17,24,39,.45);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 88px; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  /* clip, not hidden: hidden turns body into a scroll container on iOS
     Safari, which can make momentum scrolling stutter and fight the sticky
     header. Older browsers ignore clip and fall back to hidden. */
  overflow-x: hidden;
  overflow-x: clip;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
p { margin: 0 0 1em; }
h1, h2, h3, h4 { margin: 0; font-weight: 700; letter-spacing: -0.02em; line-height: 1.12; text-wrap: balance; }
:focus-visible { outline: none; box-shadow: var(--focus); border-radius: 6px; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.skip { position: absolute; left: -9999px; top: 8px; background: var(--ink); color: #fff; padding: 10px 14px; border-radius: var(--r-sm); z-index: 100; }
.skip:focus { left: 8px; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 40;
  background: rgba(255,255,255,.92);
  backdrop-filter: saturate(1.4) blur(10px);
  -webkit-backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s;
}
.site-header.scrolled { border-bottom-color: var(--line); }
.header-row { display: flex; align-items: center; gap: 24px; height: 68px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 700; font-size: 21px; letter-spacing: -0.02em; min-height: 44px; }
.brand img { width: 26px; height: auto; }
.nav { display: flex; gap: 4px; margin-left: 12px; }
.nav a { text-decoration: none; color: var(--ink-2); font-size: 15px; font-weight: 500; padding: 10px 12px; border-radius: var(--r-sm); }
.nav a:hover { color: var(--ink); background: var(--canvas); }
.nav a[aria-current="page"] { color: var(--ink); box-shadow: inset 0 -2px 0 var(--gold); border-radius: 0; }
.header-actions { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.header-actions .menu-btn { display: none; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; padding: 0 20px; border-radius: 999px;
  font: 600 15px/1 var(--font); text-decoration: none; cursor: pointer;
  border: 1px solid transparent; transition: background .15s, border-color .15s, color .15s;
  white-space: nowrap;
}
.btn-primary { background: var(--ink); color: #fff; }
.btn-primary:hover { background: #1F2733; }
.btn-quiet { background: transparent; color: var(--ink); border-color: var(--line-strong); }
.btn-quiet:hover { border-color: var(--ink); }
.btn-text { background: none; color: var(--ink-2); padding: 0 12px; }
.btn-text:hover { color: var(--ink); }
.btn-lg { min-height: 52px; padding: 0 26px; font-size: 16px; }

/* ---------- Type ---------- */
.display { font-size: clamp(40px, 5.2vw, 64px); letter-spacing: -0.035em; line-height: 1.02; }
.h2 { font-size: clamp(30px, 3.8vw, 46px); letter-spacing: -0.03em; }
.h3 { font-size: 22px; letter-spacing: -0.015em; line-height: 1.25; }
.lede { font-size: clamp(18px, 1.6vw, 21px); color: var(--ink-2); max-width: 36em; line-height: 1.55; }
.muted { color: var(--muted); }
.small { font-size: 14px; }

/* ---------- Sections ---------- */
.section { padding: clamp(64px, 9vw, 120px) 0; }
.section-tight { padding: clamp(48px, 6vw, 80px) 0; }
.section-canvas { background: var(--canvas); }
.section-head { max-width: 44rem; margin-bottom: clamp(32px, 4vw, 56px); }
.section-head .h2 + p { margin-top: 18px; }

/* ---------- Home hero ---------- */
.hero { padding: clamp(40px, 7vw, 96px) 0 clamp(56px, 8vw, 104px); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 72px); align-items: center; }
.hero h1 { margin-bottom: 24px; }
.hero .lede { margin-bottom: 32px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.hero-note { margin-top: 18px; font-size: 14px; color: var(--muted); }

/* The season board: the one memorable object on the page. A real
   application season, the way Bema lays it out, with the parent's view one
   tap away. */
.board {
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-lg);
  box-shadow: var(--shadow); overflow: hidden;
}
.board-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 18px; border-bottom: 1px solid var(--line); background: var(--canvas); }
.board-who { display: flex; align-items: center; gap: 10px; font-weight: 600; font-size: 15px; }
.avatar { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; font-size: 13px; font-weight: 700; background: var(--gold-wash); color: var(--gold-deep); border: 1px solid var(--gold-line); }
.switch { display: inline-flex; padding: 3px; background: #fff; border: 1px solid var(--line); border-radius: 999px; }
.switch button { font: 600 13px/1 var(--font); color: var(--muted); background: none; border: 0; padding: 0 12px; min-height: 36px; border-radius: 999px; cursor: pointer; }
.switch button[aria-pressed="true"] { background: var(--ink); color: #fff; }
.board-body { padding: 8px 0; }
.row { display: grid; grid-template-columns: 1fr auto; gap: 4px 16px; padding: 14px 18px; border-bottom: 1px solid var(--canvas); }
.row:last-child { border-bottom: 0; }
.row-title { font-weight: 600; font-size: 15px; }
.row-sub { font-size: 13px; color: var(--muted); grid-column: 1 / -1; }
.row-date { text-align: right; font-size: 13px; line-height: 1.35; }
.row-date strong { display: block; font-size: 14px; }
.meter { grid-column: 1 / -1; height: 6px; background: var(--canvas); border-radius: 999px; overflow: hidden; margin-top: 6px; }
.meter i { display: block; height: 100%; background: var(--ink); border-radius: inherit; }
.tag { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 600; padding: 3px 9px; border-radius: 999px; background: var(--canvas); color: var(--ink-2); }
.tag-gold { background: var(--gold-wash); color: var(--gold-deep); }
.tag-ok { background: var(--ok-wash); color: var(--ok); }
.tag-warn { background: var(--warn-wash); color: var(--warn); }
.note-card { margin: 8px 18px 14px; padding: 12px 14px; border-radius: var(--r-md); background: var(--gold-wash); border: 1px solid var(--gold-line); font-size: 14px; }
.note-card b { display: block; font-size: 13px; color: var(--gold-deep); margin-bottom: 2px; }
.board [hidden] { display: none; }

/* ---------- Problem list ---------- */
.pains { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; border-top: 1px solid var(--line); }
.pain { padding: 28px 28px 8px 0; border-bottom: 1px solid var(--line); }
.pain + .pain { padding-left: 28px; border-left: 1px solid var(--line); }
.pain h3 { font-size: 19px; margin-bottom: 10px; line-height: 1.3; }
.pain p { color: var(--ink-2); font-size: 16px; }

/* ---------- Feature rows ---------- */
.feature { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 72px); align-items: center; padding: clamp(40px, 5vw, 64px) 0; border-top: 1px solid var(--line); }
.section-head + .feature { border-top: 0; padding-top: 0; }
.feature.flip .feature-copy { order: 2; }
.feature h3 { font-size: clamp(24px, 2.4vw, 30px); letter-spacing: -0.025em; margin-bottom: 14px; }
.feature p { color: var(--ink-2); max-width: 32em; }
.checks { list-style: none; padding: 0; margin: 18px 0 0; }
.checks li { position: relative; padding-left: 28px; margin-bottom: 10px; color: var(--ink-2); font-size: 16px; }
.checks li::before { content: ''; position: absolute; left: 2px; top: .5em; width: 12px; height: 7px; border-left: 2px solid var(--gold); border-bottom: 2px solid var(--gold); transform: rotate(-45deg); }
.panel { background: var(--canvas); border-radius: var(--r-lg); padding: clamp(18px, 3vw, 32px); }
.panel .board { box-shadow: 0 1px 2px rgba(17,24,39,.05); }
.mini { background: #fff; border: 1px solid var(--line); border-radius: var(--r-md); padding: 16px 18px; }
.mini + .mini { margin-top: 12px; }
.mini-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; font-size: 13px; color: var(--muted); margin-bottom: 8px; }
.essay-line { font-size: 15px; line-height: 1.7; color: var(--ink-2); }
.essay-line mark { background: var(--gold-wash); box-shadow: inset 0 -2px 0 var(--gold-line); color: inherit; padding: 0 2px; }
.essay-line del { color: var(--muted); }
.essay-line ins { text-decoration: none; background: var(--ok-wash); color: var(--ok); padding: 0 2px; }
.chat-bubble { font-size: 14px; line-height: 1.55; padding: 10px 13px; border-radius: 14px; max-width: 88%; }
.chat-bubble.me { background: var(--ink); color: #fff; margin-left: auto; border-bottom-right-radius: 4px; }
.chat-bubble.ai { background: var(--canvas); border-bottom-left-radius: 4px; }
.chat-stack { display: flex; flex-direction: column; gap: 8px; }
.field-mock { font-size: 14px; }
.field-mock label { display: block; font-weight: 600; margin-bottom: 6px; }
.field-mock .box { border: 1px solid var(--line-strong); border-radius: var(--r-sm); padding: 10px 12px; background: #fff; color: var(--ink-2); }
.field-mock .count { display: flex; justify-content: space-between; gap: 12px; font-size: 12px; color: var(--muted); margin-top: 6px; }

/* ---------- Principles ---------- */
.principles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 clamp(28px, 5vw, 64px); }
.principle { padding: 26px 0; border-top: 1px solid var(--line); }
.principle h3 { font-size: 19px; margin-bottom: 8px; line-height: 1.3; }
.principle p { color: var(--ink-2); font-size: 16px; margin: 0; }

/* ---------- Two-place (web + phone) ---------- */
.sync { display: grid; grid-template-columns: 1fr auto 1fr; gap: 20px; align-items: center; }
.device { background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); padding: 22px; }
.device h3 { font-size: 18px; margin-bottom: 6px; }
.device p { font-size: 15px; color: var(--ink-2); margin: 0; }
.sync-mid { text-align: center; font-size: 13px; color: var(--muted); max-width: 11rem; }
.sync-mid span { display: grid; place-items: center; width: 44px; height: 44px; margin: 0 auto 8px; border-radius: 50%; border: 1px solid var(--gold-line); background: var(--gold-wash); color: var(--gold-deep); }

/* ---------- CTA band ---------- */
.cta-band { background: var(--ink); color: #fff; border-radius: var(--r-lg); padding: clamp(36px, 6vw, 72px); display: grid; grid-template-columns: 1fr auto; gap: 24px; align-items: center; }
.cta-band h2 { font-size: clamp(28px, 3.4vw, 42px); letter-spacing: -0.03em; }
.cta-band p { color: #C9CFD8; margin: 12px 0 0; max-width: 34em; }
.cta-band .btn-primary { background: #fff; color: var(--ink); }
.cta-band .btn-primary:hover { background: var(--gold-wash); }

/* ---------- Inner pages ---------- */
.page-head { padding: clamp(48px, 7vw, 96px) 0 clamp(32px, 4vw, 56px); border-bottom: 1px solid var(--line); }
.page-head h1 { font-size: clamp(36px, 5vw, 60px); letter-spacing: -0.035em; line-height: 1.04; max-width: 16em; }
.page-head .lede { margin-top: 20px; }
.prose { max-width: var(--measure); }
.prose h2 { font-size: 28px; letter-spacing: -0.025em; margin: 56px 0 14px; }
.prose h3 { font-size: 20px; margin: 32px 0 10px; }
.prose p, .prose li { color: var(--ink-2); }
.prose ul, .prose ol { padding-left: 1.25em; margin: 0 0 1em; }
.prose li { margin-bottom: .45em; }
.prose a { color: var(--ink); text-decoration-color: var(--gold); text-underline-offset: 3px; }
.prose code { font-family: var(--font); font-size: .95em; background: var(--canvas); padding: 1px 6px; border-radius: 5px; }
.prose table { width: 100%; border-collapse: collapse; margin: 0 0 1.5em; font-size: 15px; display: block; overflow-x: auto; }
.prose th, .prose td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
.prose th { font-weight: 600; }
.prose blockquote { margin: 0 0 1em; padding: 12px 16px; background: var(--canvas); border-radius: var(--r-sm); }
.prose hr { border: 0; border-top: 1px solid var(--line); margin: 40px 0; }
.prose > h1:first-child { display: none; }

.split { display: grid; grid-template-columns: 15rem minmax(0, 1fr); gap: clamp(32px, 6vw, 88px); }
.side-nav { position: sticky; top: 100px; align-self: start; font-size: 15px; }
.side-nav a { display: block; text-decoration: none; color: var(--ink-2); padding: 8px 0 8px 14px; border-left: 2px solid var(--line); min-height: 40px; }
.side-nav a:hover { color: var(--ink); border-left-color: var(--line-strong); }
.side-nav a[aria-current="page"] { color: var(--ink); font-weight: 600; border-left-color: var(--gold); }

.cards-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.cards-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.plain-card { border: 1px solid var(--line); border-radius: var(--r-md); padding: 24px; background: #fff; }
.plain-card h3 { font-size: 19px; margin-bottom: 8px; line-height: 1.3; }
.plain-card p { color: var(--ink-2); font-size: 16px; margin: 0; }
.plain-card .btn { margin-top: 18px; }

/* Steps: a real sequence, so numbers earn their place. */
.steps { list-style: none; padding: 0; margin: 0; counter-reset: s; }
.steps li { counter-increment: s; display: grid; grid-template-columns: 44px 1fr; gap: 16px; padding: 22px 0; border-top: 1px solid var(--line); }
.steps li::before { content: counter(s); width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--line-strong); display: grid; place-items: center; font-weight: 700; font-size: 15px; }
.steps h3 { font-size: 18px; margin-bottom: 4px; line-height: 1.3; }
.steps p { margin: 0; color: var(--ink-2); font-size: 16px; }

/* FAQ */
.faq-group + .faq-group { margin-top: 56px; }
.faq-group > h2 { font-size: 24px; letter-spacing: -0.02em; margin-bottom: 8px; }
details.qa { border-bottom: 1px solid var(--line); }
details.qa summary { list-style: none; cursor: pointer; padding: 20px 40px 20px 0; font-weight: 600; font-size: 17px; position: relative; min-height: 44px; }
details.qa summary::-webkit-details-marker { display: none; }
details.qa summary::after { content: ''; position: absolute; right: 8px; top: 27px; width: 9px; height: 9px; border-right: 2px solid var(--ink-2); border-bottom: 2px solid var(--ink-2); transform: rotate(45deg); transition: transform .2s; }
details.qa[open] summary::after { transform: rotate(-135deg); top: 31px; }
details.qa .qa-body { padding: 0 0 22px; color: var(--ink-2); max-width: var(--measure); }
details.qa .qa-body p:last-child { margin-bottom: 0; }

/* Pricing */
.price-card { border: 1px solid var(--ink); border-radius: var(--r-lg); padding: clamp(28px, 4vw, 44px); max-width: 560px; }
.price { font-size: clamp(56px, 7vw, 80px); font-weight: 700; letter-spacing: -0.04em; line-height: 1; margin: 12px 0 8px; }

/* Founders */
.people { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
.person { border-top: 2px solid var(--ink); padding-top: 16px; }
.person h3 { font-size: 19px; margin-bottom: 2px; }
.person p { margin: 0; color: var(--muted); font-size: 15px; }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--line); padding: 56px 0 40px; margin-top: 24px; font-size: 15px; }
.foot-grid { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 32px; }
.foot-grid h2 { font-size: 14px; font-weight: 600; color: var(--muted); letter-spacing: 0; margin-bottom: 12px; }
.foot-grid ul { list-style: none; padding: 0; margin: 0; }
.foot-grid li a { display: inline-block; text-decoration: none; color: var(--ink-2); padding: 5px 0; }
.foot-grid li a:hover { color: var(--ink); text-decoration: underline; text-decoration-color: var(--gold); }
.foot-legal { margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--line); color: var(--muted); font-size: 13px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; }

/* ---------- Question box (chat) ---------- */
.ask-launch {
  position: fixed; right: 20px; bottom: 20px; z-index: 60;
  display: inline-flex; align-items: center; gap: 10px;
  min-height: 52px; padding: 0 20px 0 16px; border-radius: 999px;
  background: var(--ink); color: #fff; border: 0; cursor: pointer;
  font: 600 15px/1 var(--font); box-shadow: 0 10px 30px rgba(17,24,39,.22);
}
.ask-launch svg { width: 20px; height: 20px; }
.ask-launch[aria-expanded="true"] { display: none; }
.ask-panel {
  position: fixed; right: 20px; bottom: 20px; z-index: 61;
  width: min(400px, calc(100vw - 32px)); height: min(620px, calc(100vh - 40px));
  background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg);
  box-shadow: 0 24px 60px rgba(17,24,39,.22);
  display: flex; flex-direction: column; overflow: hidden;
}
.ask-panel[hidden] { display: none; }
.ask-head { display: flex; align-items: center; gap: 10px; padding: 14px 12px 14px 18px; border-bottom: 1px solid var(--line); }
.ask-head img { width: 20px; }
.ask-head h2 { font-size: 16px; letter-spacing: -0.01em; flex: 1; }
.icon-btn { width: 44px; height: 44px; display: grid; place-items: center; border: 0; background: none; border-radius: 50%; cursor: pointer; color: var(--ink-2); }
.icon-btn:hover { background: var(--canvas); }
.ask-log { flex: 1; overflow-y: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; padding: 18px; display: flex; flex-direction: column; gap: 10px; }
.ask-log .chat-bubble { font-size: 15px; white-space: pre-wrap; }
.ask-log .chat-bubble.err { background: var(--warn-wash); color: var(--warn); }
.ask-starters { display: flex; flex-direction: column; gap: 8px; margin-top: 4px; }
.ask-starters button { text-align: left; font: 500 14px/1.35 var(--font); padding: 10px 14px; min-height: 44px; border: 1px solid var(--line); border-radius: var(--r-md); background: #fff; color: var(--ink); cursor: pointer; }
.ask-starters button:hover { border-color: var(--line-strong); background: var(--canvas); }
.ask-form { display: flex; gap: 8px; padding: 12px; border-top: 1px solid var(--line); }
.ask-form textarea { flex: 1; resize: none; font: 400 16px/1.4 var(--font); padding: 11px 14px; border: 1px solid var(--line-strong); border-radius: 22px; min-height: 44px; max-height: 120px; color: var(--ink); }
.ask-form textarea:focus { outline: none; border-color: var(--ink); box-shadow: var(--focus); }
.ask-form .btn { padding: 0 16px; }
.ask-foot { padding: 0 16px 12px; font-size: 12px; color: var(--muted); }
.typing { display: inline-flex; gap: 4px; padding: 14px; }
.typing i { width: 6px; height: 6px; border-radius: 50%; background: var(--muted); animation: blink 1s infinite; }
.typing i:nth-child(2) { animation-delay: .15s; } .typing i:nth-child(3) { animation-delay: .3s; }
@keyframes blink { 0%, 80%, 100% { opacity: .25; } 40% { opacity: 1; } }

/* ---------- Page-load: one orchestrated moment on the home board ---------- */
.board-anim .row { opacity: 0; transform: translateY(6px); animation: rise .5s cubic-bezier(.22,1,.36,1) forwards; }
.board-anim .row:nth-child(1) { animation-delay: .15s; }
.board-anim .row:nth-child(2) { animation-delay: .25s; }
.board-anim .row:nth-child(3) { animation-delay: .35s; }
.board-anim .row:nth-child(4) { animation-delay: .45s; }
.board-anim .row:nth-child(5) { animation-delay: .55s; }
@keyframes rise { to { opacity: 1; transform: none; } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .board-anim .row { opacity: 1; transform: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .nav, .header-actions .btn-text { display: none; }
  .header-actions .menu-btn { display: grid; }
  .nav.open { display: flex; flex-direction: column; position: absolute; top: 68px; left: 0; right: 0; background: #fff; border-bottom: 1px solid var(--line); padding: 8px var(--gutter) 16px; margin: 0; }
  .nav.open a { padding: 12px 4px; font-size: 17px; border-bottom: 1px solid var(--canvas); }
  .nav.open a[aria-current="page"] { box-shadow: none; color: var(--gold-deep); }
  .hero-grid, .feature, .split, .cta-band { grid-template-columns: 1fr; }
  .feature.flip .feature-copy { order: 0; }
  .side-nav { position: static; display: flex; flex-wrap: wrap; gap: 4px 16px; }
  .side-nav a { border-left: 0; padding: 8px 0; }
  .people { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .foot-grid { grid-template-columns: 1fr 1fr; }
  .cards-3 { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 720px) {
  body { font-size: 16px; }
  .pains, .principles, .cards-2, .cards-3 { grid-template-columns: 1fr; }
  .pain, .pain + .pain { padding: 22px 0 6px; border-left: 0; }
  .sync { grid-template-columns: 1fr; }
  .sync-mid { max-width: none; }
  .header-actions .btn-quiet { display: none; }
  .row { padding: 12px 14px; }
  .board-top { padding: 12px 14px; flex-wrap: wrap; }
  .ask-panel { right: 8px; left: 8px; bottom: 8px; width: auto; height: calc(100vh - 16px); height: calc(100dvh - 16px); }
  .ask-launch { right: 12px; bottom: 12px; width: 52px; padding: 0; justify-content: center; }
  .ask-launch .ask-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
}
@media (max-width: 420px) {
  .people, .foot-grid { grid-template-columns: 1fr; }
  .header-actions .btn-primary { padding: 0 14px; }
}
