/*
 * Weavyrn marketing site.
 * Charcoal-and-parchment palette and system sans type from the suite design contract
 * (docs/design-system-redesign/semantic-tokens.json, dark appearance). No serif fonts,
 * no green. Image panels are square-edged by request; controls keep the suite radii.
 */
:root {
  color-scheme: dark;
  --canvas: #1c1c1e;
  --navigation: #171719;
  --surface: #242426;
  --control: #303032;
  --hover: #3a3938;
  --selected: #393630;
  --border: #41403d;
  --control-border: #77736d;
  --text: #f0e8d8;
  --muted: #b7b0a4;
  --accent: #dfccaa;
  --accent-hover: #eadfc8;
  --on-accent: #282522;
  --danger: #efaaa0;
  --radius-control: 7px;
  --radius-panel: 9px;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, monospace;
  --ease: cubic-bezier(.2, .7, .2, 1);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--text);
  background: var(--canvas);
  font: 16px/1.6 var(--sans);
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; }
h1, h2, h3, p { margin-top: 0; }
h1, h2, h3 { color: var(--text); font-family: var(--sans); }
code { padding: 1px 6px; border-radius: 5px; background: var(--control); font: .9em var(--mono); }
.wrap { width: min(1200px, calc(100% - 48px)); margin: 0 auto; }

/* ---- Header ------------------------------------------------------------------- */
.topbar {
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--border);
}
.brand { display: inline-flex; gap: 12px; align-items: center; text-decoration: none; }
.brand-mark {
  display: block;
  flex: 0 0 auto;
  width: 46px;
  height: 46px;
  background: var(--accent);
  -webkit-mask: url("assets/weavyrn-header-mark.png") center / contain no-repeat;
  mask: url("assets/weavyrn-header-mark.png") center / contain no-repeat;
}
.brand-name { color: var(--text); font-size: 21px; font-weight: 700; letter-spacing: -.01em; }
.nav { display: flex; align-items: center; gap: 28px; font-size: 14px; }
.nav a { color: var(--muted); text-decoration: none; transition: color 120ms; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--text); }
.nav .nav-cta {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 0 14px;
  border: 1px solid var(--control-border);
  border-radius: var(--radius-control);
  color: var(--text);
  font-weight: 600;
}
.nav .nav-cta:hover { border-color: var(--accent); background: var(--hover); }

/* ---- Shared type and controls -------------------------------------------------- */
.eyebrow { color: var(--accent); font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; }
.button {
  display: inline-flex;
  min-height: 44px;
  justify-content: center;
  align-items: center;
  gap: 10px;
  border: 1px solid var(--accent);
  border-radius: var(--radius-control);
  padding: 0 20px;
  background: var(--accent);
  color: var(--on-accent);
  font: 650 14px var(--sans);
  text-decoration: none;
  transition: background 120ms, border-color 120ms, transform 180ms;
}
.button:hover { background: var(--accent-hover); border-color: var(--accent-hover); transform: translateY(-1px); }
button.button { cursor: pointer; }
.button-light { border-color: var(--control-border); background: var(--control); color: var(--text); }
.text-link {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  padding: 0 18px;
  border: 1px solid var(--control-border);
  border-radius: var(--radius-control);
  background: var(--control);
  color: var(--text);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  transition: background 120ms, border-color 120ms;
}
.text-link:hover { background: var(--hover); border-color: var(--accent); }
.section-head { display: flex; justify-content: space-between; align-items: end; gap: 32px; margin-bottom: 40px; }
.section-head h2 { max-width: 620px; margin: 12px 0 0; font-size: clamp(32px, 4vw, 48px); font-weight: 700; line-height: 1.08; letter-spacing: -.025em; }
.section-head p { max-width: 380px; margin: 0 0 4px; color: var(--muted); font-size: 15px; }

/* ---- Hero ---------------------------------------------------------------------- */
.hero { padding: 72px 0 88px; }
.hero-intro { display: grid; grid-template-columns: 1.1fr .9fr; gap: 24px 64px; align-items: end; margin-bottom: 44px; }
h1 { max-width: 640px; margin: 18px 0 0; font-size: clamp(46px, 6.4vw, 84px); font-weight: 750; line-height: .98; letter-spacing: -.04em; }
.hero-copy { max-width: 470px; margin: 0; color: var(--muted); font-size: 18px; line-height: 1.65; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin-top: 26px; }
.hero-note { display: flex; align-items: center; gap: 10px; margin-top: 22px; color: var(--muted); font-size: 13px; }
.hero-note::before { content: ""; width: 24px; height: 1px; background: var(--accent); }

/* Expanding image panels: square edges, the active panel opens to show its art and label. */
.hero-art { position: relative; }
.hero-caption { display: block; margin-bottom: 12px; color: var(--muted); font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; }
.art-grid { display: flex; gap: 10px; height: clamp(360px, 46vw, 540px); }
.art-tile {
  position: relative;
  flex: .55 1 0;
  min-width: 0;
  margin: 0;
  padding: 0;
  overflow: hidden;
  border: 0;
  border-radius: 0;
  background: var(--surface);
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
  transition: flex 700ms var(--ease);
}
.art-tile.is-active { flex: 5 1 0; cursor: default; }
.art-tile img {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 0;
  transition: transform 900ms var(--ease), filter 400ms;
}
.art-tile:not(.is-active) img { filter: brightness(.62); }
.art-tile:not(.is-active):hover img { filter: brightness(.85); }
.art-tile.is-active img { transform: scale(1.02); }
.art-tile::after {
  content: "";
  position: absolute;
  inset: 45% 0 0;
  background: linear-gradient(transparent, rgba(12, 12, 13, .82));
  pointer-events: none;
}
.art-label {
  position: absolute;
  z-index: 1;
  left: 24px;
  bottom: 22px;
  color: #fff8eb;
  font-size: 24px;
  font-weight: 700;
  letter-spacing: -.01em;
  white-space: nowrap;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 200ms, transform 300ms var(--ease);
}
.art-tile.is-active .art-label { opacity: 1; transform: none; transition: opacity 300ms 380ms, transform 400ms var(--ease) 380ms; }
.art-tile:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

/* ---- Manifesto band ------------------------------------------------------------ */
.manifesto { border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); background: var(--surface); }
.manifesto-inner { display: grid; grid-template-columns: .85fr 1.15fr; gap: 64px; padding: 72px 0; align-items: center; }
.manifesto h2 { margin: 12px 0 0; font-size: 36px; font-weight: 700; line-height: 1.12; letter-spacing: -.02em; }
.manifesto-copy { color: var(--muted); font-size: 17px; line-height: 1.75; }
.manifesto-copy p { margin: 0; }
.manifesto-copy strong { color: var(--text); font-weight: 600; }

/* ---- Suite --------------------------------------------------------------------- */
.suite { padding: 96px 0; }
.app-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; border: 1px solid var(--border); background: var(--border); }
.app-card { min-height: 168px; padding: 24px; background: var(--canvas); transition: background 180ms; }
.app-card:hover { background: var(--surface); }
.app-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; margin-bottom: 14px; }
.app-title-line { display: flex; align-items: center; gap: 12px; }
.app-icon { display: block; width: 40px; height: 40px; flex: 0 0 40px; object-fit: contain; }
.app-card h3 { margin: 0; font-size: 20px; font-weight: 650; letter-spacing: -.01em; }
.app-index { color: var(--muted); font: 12px var(--mono); }
.app-card p { max-width: 320px; margin: 0; color: var(--muted); font-size: 14px; line-height: 1.6; }

/* ---- Principle ----------------------------------------------------------------- */
.principle { padding: 80px 0; border-top: 1px solid var(--border); }
.principle-inner { display: grid; grid-template-columns: .7fr 1.3fr; gap: 64px; align-items: start; }
.principle h2 { margin: 12px 0 0; font-size: 36px; font-weight: 700; line-height: 1.12; letter-spacing: -.02em; }
.principle-copy { color: var(--muted); font-size: 16px; line-height: 1.8; }
.principle-copy p { margin-bottom: 16px; }
.principle-copy p:last-child { margin: 0; }
.principle-copy a { color: var(--accent); font-weight: 600; text-underline-offset: 4px; }

/* ---- Pricing ------------------------------------------------------------------- */
.pricing { padding: 96px 0; border-top: 1px solid var(--border); background: var(--navigation); }
.plan-grid { display: grid; grid-template-columns: 1fr 1.25fr; gap: 24px; align-items: stretch; }
.plan { padding: 34px 36px; border: 1px solid var(--border); border-radius: var(--radius-panel); background: var(--surface); }
.plan-feature { border-color: var(--accent); box-shadow: 0 24px 60px rgba(0, 0, 0, .35); }
.plan h3 { margin: 10px 0 6px; font-size: 38px; font-weight: 750; line-height: 1.1; letter-spacing: -.03em; }
.plan h3 small { color: var(--muted); font-size: 15px; font-weight: 500; letter-spacing: 0; }
.plan-lede { margin: 0 0 18px; color: var(--muted); font-size: 15px; line-height: 1.7; }
.ticks { margin: 0; padding: 0; list-style: none; color: var(--muted); font-size: 14.5px; line-height: 1.65; }
.ticks li { position: relative; padding: 9px 0 9px 24px; border-top: 1px solid var(--border); }
.ticks li::before { content: ""; position: absolute; left: 2px; top: 19px; width: 10px; height: 2px; background: var(--accent); }
.ticks strong { color: var(--text); font-weight: 600; }
.plan-action { margin-top: 24px; }
.notice { padding: 16px 18px; border: 1px solid var(--border); border-left: 3px solid var(--accent); border-radius: var(--radius-control); background: var(--control); color: var(--muted); font-size: 14.5px; line-height: 1.65; }
.notice strong { display: block; margin-bottom: 4px; color: var(--text); font-size: 17px; font-weight: 650; }
.notice p { margin: 0 0 10px; }
.notice p:last-child { margin: 0; }
.fine { margin: 14px 0 0; color: var(--muted); font-size: 13px; line-height: 1.65; }
.detail-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 28px 56px; margin-top: 56px; }
.detail-grid h3, .manage h3 { margin: 10px 0 12px; font-size: 26px; font-weight: 700; line-height: 1.18; letter-spacing: -.02em; }
.detail-grid p, .manage p { color: var(--muted); font-size: 15px; line-height: 1.75; }
.manage { margin-top: 56px; padding-top: 40px; border-top: 1px solid var(--border); display: grid; grid-template-columns: .65fr 1.35fr; gap: 26px 64px; }
.manage p:last-child { margin-bottom: 0; }

/* ---- Download ------------------------------------------------------------------ */
.download { padding: 88px 0; border-top: 1px solid var(--border); background: var(--surface); }
.download h2 { margin: 12px 0 14px; font-size: clamp(32px, 4vw, 46px); font-weight: 700; line-height: 1.08; letter-spacing: -.025em; }
.download-inner { display: grid; grid-template-columns: .82fr 1.18fr; gap: 56px; align-items: start; }
.download p { color: var(--muted); font-size: 15px; line-height: 1.75; }
.download a { color: var(--accent); }
.download-list { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 0; padding: 0; list-style: none; }
.download-list a {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  min-height: 52px;
  padding: 8px 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius-control);
  background: var(--control);
  color: var(--text);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  transition: background 120ms, border-color 120ms;
}
.download-list a:hover { border-color: var(--accent); background: var(--hover); }
.download-item { display: grid; gap: 10px; padding: 12px 14px; border: 1px solid var(--border); border-radius: var(--radius-control); background: var(--control); }
.download-item-head { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; color: var(--text); font-size: 14px; font-weight: 600; }
.download-arch { display: flex; flex-wrap: wrap; gap: 8px; }
.download-list .download-arch a { flex: 1 1 0; min-height: 40px; padding: 6px 12px; border-color: var(--control-border); background: var(--surface); font-size: 13px; white-space: nowrap; }
.download-list .download-arch a:hover { border-color: var(--accent); background: var(--hover); }
.download-list small { color: var(--muted); font-size: 11px; font-weight: 600; letter-spacing: .06em; text-align: right; text-transform: uppercase; }
.download-release { margin: 0 0 12px; color: var(--accent); font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.download-notes { margin: 14px 0 0; font-size: 13px; line-height: 1.6; }
.download .download-notes { color: var(--muted); font-size: 13px; }
.download-notes a { color: var(--accent); }
/* The suite installer: one full-width download item above the per-app list (same item pattern). */
.installer-list { grid-template-columns: 1fr; }
.download .installer-about { margin: 0; font-size: 13px; line-height: 1.6; }
.download-release-next { margin-top: 28px; }

/* Phone and tablet apps, under the Mac list (same item pattern as the downloads). */
.companions { margin-top: 28px; }
.companion-list { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 0; padding: 0; list-style: none; }
.companion-item { align-content: start; gap: 8px; }
.download .companion-role, .download .companion-note { margin: 0; font-size: 13px; line-height: 1.6; }
.download .companion-note { color: var(--muted); font-size: 12.5px; }
.companion-platforms { display: grid; gap: 6px; margin: 0; padding: 0; list-style: none; font-size: 13px; }
.companion-platforms li { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 2px 10px; padding: 6px 10px; border: 1px solid var(--border); border-radius: var(--radius-control); background: var(--surface); }
.companion-platform { color: var(--text); font-weight: 600; }
.companion-status { color: var(--muted); }
.companion-platforms a { color: var(--accent); font-weight: 600; }

/* ---- Library, support and feature request pages -------------------------------- */
.page-section { margin-top: 48px; }
.page-section > h2 { margin: 10px 0 10px; font-size: 28px; font-weight: 700; line-height: 1.18; letter-spacing: -.02em; }
.page-section > p, .page-section [data-adventures] > p { max-width: 720px; color: var(--muted); font-size: 15.5px; line-height: 1.75; }
.page-section a:not(.text-link):not(.button) { color: var(--accent); font-weight: 600; text-underline-offset: 4px; }
.library-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-top: 22px; }
.library-card { display: flex; flex-direction: column; gap: 10px; min-width: 0; padding: 24px 26px; border: 1px solid var(--border); border-radius: var(--radius-panel); background: var(--surface); }
.library-card h3 { margin: 0; font-size: 24px; font-weight: 700; line-height: 1.2; letter-spacing: -.015em; }
.library-card p { margin: 0; color: var(--muted); font-size: 14.5px; line-height: 1.7; }
.library-label { color: var(--text); font-weight: 600; }
.library-attribution { padding: 12px 14px; border-left: 3px solid var(--accent); border-radius: var(--radius-control); background: var(--control); font-size: 13.5px !important; overflow-wrap: anywhere; }
.library-meta { font: 12px/1.6 var(--mono) !important; overflow-wrap: anywhere; }
.library-actions { display: flex; flex-wrap: wrap; gap: 10px 16px; align-items: center; margin-top: auto; padding-top: 6px; }
.library-coming { display: inline-flex; min-height: 44px; align-items: center; padding: 0 18px; border: 1px dashed var(--control-border); border-radius: var(--radius-control); color: var(--muted); font-size: 14px; font-weight: 600; }
.library-size { color: var(--muted); font: 12px var(--mono); overflow-wrap: anywhere; }
.faq { margin: 22px 0 0; padding: 0; list-style: none; border-top: 1px solid var(--border); }
.faq li { padding: 18px 0; border-bottom: 1px solid var(--border); }
.faq h3 { margin: 0 0 6px; font-size: 17px; font-weight: 650; line-height: 1.35; }
.faq p { margin: 0 0 8px; color: var(--muted); font-size: 15px; line-height: 1.7; }
.faq p:last-child { margin-bottom: 0; }
.faq a { color: var(--accent); font-weight: 600; text-underline-offset: 4px; }
.request-template { margin: 16px 0; padding: 14px 16px; border: 1px dashed var(--control-border); border-radius: var(--radius-control); background: var(--control); color: var(--text); font: 13.5px/1.7 var(--mono); white-space: pre-wrap; overflow-wrap: anywhere; }

/* ---- Signup -------------------------------------------------------------------- */
.signup { padding: 96px 0; border-top: 1px solid var(--border); }
.signup-box { display: grid; grid-template-columns: 1fr .85fr; gap: 64px; padding: 44px 48px; border: 1px solid var(--border); border-radius: var(--radius-panel); background: var(--surface); }
.signup h2 { margin: 12px 0 12px; font-size: 40px; font-weight: 700; line-height: 1.08; letter-spacing: -.025em; }
.signup-copy { max-width: 400px; margin: 0; color: var(--muted); font-size: 15px; }
.signup-form { align-self: center; }
.signup-form label { display: block; margin-bottom: 8px; color: var(--text); font-size: 13px; font-weight: 650; }

/* ---- Forms --------------------------------------------------------------------- */
.email-row { display: flex; gap: 8px; }
.email-row input {
  min-width: 0;
  flex: 1;
  height: 44px;
  padding: 0 13px;
  border: 1px solid var(--control-border);
  border-radius: var(--radius-control);
  outline: 0;
  background: var(--control);
  color: var(--text);
  font: 15px var(--sans);
}
.email-row input::placeholder { color: var(--muted); }
.email-row button {
  height: 44px;
  padding: 0 18px;
  border: 1px solid var(--accent);
  border-radius: var(--radius-control);
  background: var(--accent);
  color: var(--on-accent);
  font: 650 14px var(--sans);
  cursor: pointer;
}
.email-row button:hover { background: var(--accent-hover); }
.form-note, .form-status { margin: 9px 0 0; color: var(--muted); font-size: 12px; }
.form-status { min-height: 16px; color: var(--accent); }
.field-label { display: block; margin-bottom: 8px; color: var(--text); font-size: 14px; font-weight: 650; }
.recover-form { max-width: 520px; margin-top: 26px; }
.recover-form .email-row input { font-size: 16px; }
.recover-form button[disabled] { opacity: .6; cursor: default; }
.form-result { margin-top: 16px; }

/* ---- Footer -------------------------------------------------------------------- */
footer { padding: 28px 0; border-top: 1px solid var(--border); background: var(--navigation); color: var(--muted); }
.footer-inner { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 20px; font-size: 12px; }
.footer-brand { display: inline-flex; align-items: center; gap: 10px; color: var(--text); font-size: 16px; font-weight: 700; }
.footer-brand .brand-mark { width: 28px; height: 28px; }
.footer-links { display: flex; flex-wrap: wrap; gap: 6px 20px; font-size: 13px; }
.footer-links a { padding: 4px 0; color: var(--muted); text-decoration: none; }
.footer-links a:hover { color: var(--text); text-decoration: underline; }
.footer-note { text-align: right; }

/* ---- Sub-pages ----------------------------------------------------------------- */
.page { padding: 64px 0 88px; }
.page-narrow { max-width: 760px; }
.page h1 { max-width: none; margin: 14px 0 18px; font-size: clamp(38px, 5vw, 56px); line-height: 1.04; letter-spacing: -.03em; }
.page-lede { max-width: 620px; color: var(--muted); font-size: 17px; line-height: 1.7; }
.prose { color: var(--muted); font-size: 16px; line-height: 1.75; }
.prose h2 { margin: 40px 0 10px; color: var(--text); font-size: 26px; font-weight: 700; line-height: 1.18; letter-spacing: -.02em; }
.prose h3 { margin: 24px 0 6px; color: var(--text); font-size: 16px; font-weight: 650; }
.prose strong { color: var(--text); }
.prose ul, .prose ol { padding-left: 22px; }
.prose li { margin-bottom: 7px; }
.prose a, .page a.inline, .notice a, .fine a, .manage a, .detail-grid a { color: var(--accent); font-weight: 600; text-decoration-color: currentColor; text-underline-offset: 4px; }
.draft-banner { margin: 0 0 30px; padding: 14px 18px; border: 2px solid var(--danger); border-radius: var(--radius-control); background: rgba(239, 170, 160, .12); color: #f8d9d3; font-size: 15px; line-height: 1.6; }
.draft-banner strong { display: block; color: var(--danger); font-size: 17px; }
.owner-note { padding: 1px 6px; border-radius: 4px; background: rgba(239, 170, 160, .16); color: #f8d9d3; font-size: .93em; box-shadow: inset 0 0 0 1px rgba(239, 170, 160, .45); }
.steps { margin: 32px 0 0; padding: 0; list-style: none; counter-reset: step; border-top: 1px solid var(--border); }
.steps li { position: relative; padding: 22px 0 22px 64px; border-bottom: 1px solid var(--border); counter-increment: step; }
.steps li:last-child { border-bottom: 0; }
.steps li::before { content: counter(step, decimal-leading-zero); position: absolute; left: 0; top: 22px; color: var(--accent); font: 600 22px var(--mono); }
.steps h2 { margin: 0 0 5px; font-size: 21px; font-weight: 650; line-height: 1.25; }
.steps p { margin: 0; color: var(--muted); font-size: 15px; line-height: 1.7; }
.key-panel { margin: 32px 0 0; padding: 26px 28px; border: 1px solid var(--border); border-radius: var(--radius-panel); background: var(--surface); }
.key-panel h2 { margin: 8px 0 8px; font-size: 25px; font-weight: 700; line-height: 1.18; letter-spacing: -.02em; }
.key-panel p { margin: 0 0 10px; color: var(--muted); font-size: 15px; line-height: 1.7; }
.key-panel p:last-child { margin-bottom: 0; }
.key-value { display: block; margin: 14px 0; padding: 14px 16px; border: 1px dashed var(--accent); border-radius: var(--radius-control); background: var(--control); color: var(--text); font: 600 clamp(15px, 4.3vw, 21px)/1.4 var(--mono); overflow-wrap: anywhere; user-select: all; }
.key-actions { display: flex; flex-wrap: wrap; gap: 12px 18px; align-items: center; margin-bottom: 14px; }
.help-block { margin-top: 44px; padding-top: 30px; border-top: 1px solid var(--border); }
.help-block h2 { margin: 0 0 8px; font-size: 23px; font-weight: 700; line-height: 1.2; letter-spacing: -.015em; }
.help-block p { color: var(--muted); font-size: 15px; line-height: 1.7; }

[hidden] { display: none !important; }
a:focus-visible, button:focus-visible, input:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

/* ---- Responsive ---------------------------------------------------------------- */
@media (max-width: 900px) { .nav { gap: 20px; } }
@media (max-width: 860px) {
  .hero-intro { grid-template-columns: 1fr; }
  .manifesto-inner, .principle-inner, .signup-box, .plan-grid, .detail-grid, .manage, .download-inner { grid-template-columns: 1fr; }
  .manifesto-inner { gap: 20px; }
  .principle-inner { gap: 20px; }
  .signup-box { gap: 28px; }
  .detail-grid { gap: 32px; }
  .manage { gap: 10px; }
  .download-inner { gap: 28px; }
  .section-head { align-items: start; flex-direction: column; gap: 14px; }
  .section-head p { max-width: 560px; }
}
@media (max-width: 760px) {
  .nav { gap: 0; }
  .nav a:not(.nav-cta) { display: none; }
  .app-grid { grid-template-columns: repeat(2, 1fr); }
}
/* On phones the panels stack: collapsed panels become labeled strips, the active one opens tall. */
@media (max-width: 600px) {
  .wrap { width: calc(100% - 32px); }
  .topbar { height: 64px; }
  .brand .brand-mark { width: 40px; height: 40px; }
  .brand-name { font-size: 19px; }
  .hero { padding: 44px 0 64px; }
  .hero-intro { margin-bottom: 32px; }
  h1 { font-size: clamp(42px, 13vw, 60px); }
  .hero-copy { font-size: 16px; }
  .art-grid { flex-direction: column; height: auto; gap: 8px; }
  .art-tile { flex: none; height: 64px; transition: height 600ms var(--ease); }
  .art-tile.is-active { flex: none; height: 300px; }
  .art-tile .art-label { opacity: 1; transform: none; left: 16px; bottom: 50%; translate: 0 50%; font-size: 17px; }
  .art-tile.is-active .art-label { bottom: 16px; translate: none; font-size: 21px; }
  .art-tile::after { inset: 0; background: linear-gradient(90deg, rgba(12, 12, 13, .7), transparent 75%); }
  .art-tile.is-active::after { inset: 45% 0 0; background: linear-gradient(transparent, rgba(12, 12, 13, .82)); }
  .manifesto-inner { padding: 52px 0; }
  .manifesto h2, .principle h2 { font-size: 30px; }
  .suite, .pricing, .signup { padding: 64px 0; }
  .principle, .download { padding: 60px 0; }
  .plan { padding: 26px 22px; }
  .plan h3 { font-size: 32px; }
  .signup-box { padding: 28px 22px; gap: 22px; }
  .signup h2 { font-size: 32px; }
  .email-row { flex-direction: column; }
  .email-row input { flex: none; height: 48px; }
  .email-row button { height: 48px; }
  .download-list, .companion-list, .library-grid { grid-template-columns: 1fr; }
  .library-card { padding: 20px 18px; }
  .page-section > h2 { font-size: 24px; }
  .page { padding: 40px 0 60px; }
  .steps li { padding-left: 48px; }
  .key-panel { padding: 22px 18px; }
  .footer-inner { align-items: start; flex-direction: column; }
  .footer-note { text-align: left; }
  .footer-links a { padding: 8px 0; }
}
/* Two app cards side by side are wider than a phone screen (the longest app name
   cannot wrap), which made the whole page scroll sideways. Stack them instead. */
@media (max-width: 440px) {
  .app-grid { grid-template-columns: 1fr; }
  .app-card { min-height: 0; }
  .app-card p { max-width: none; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; transition-delay: 0s !important; animation-duration: .01ms !important; }
}
