/* Ordo's app palettes, adapted for the landing page. */

:root {
  color-scheme: dark;
  --bg: #1a1a16;
  --bg-raise: #28281f;
  --bg-deep: #151511;
  --line: rgba(235, 221, 178, 0.14);
  --line-soft: rgba(235, 221, 178, 0.08);
  --text: #ebddb2;
  --muted: #d5c4a1;
  --faint: #928374;
  --accent: #ed6f5c;
  --accent-deep: #d65c4d;
  --accent-hover: #f47d6b;
  --accent-ink: #ffffff;
  --accent-soft: rgba(237, 111, 92, 0.16);
  --green: #8aaa5a;
  --blue: #7daea3;
  --phone: #22221d;
  --phone-inset: #11110e;
  --phone-nav: #28281f;
  --phone-status: #6c6457;
  --sheet: #28281f;
  --sheet-strong: rgba(235, 221, 178, 0.2);
  --share-item: #1a1a16;
  --web-bg: #101820;
  --web-surface: #15242b;
  --web-text: #e3edf0;
  --web-muted: #95aab3;
  --web-accent: #59b7d2;
  --web-art: #246071;
  --reader: #28281f;
  --terminal: #10100d;
  --footer: #151511;
  --shadow: rgba(0, 0, 0, 0.82);
  --serif: "Newsreader", "Iowan Old Style", Georgia, serif;
  --sans: "Inter", system-ui, -apple-system, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, monospace;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --wrap: 74rem;
}

:root[data-theme="light"] {
  color-scheme: light;
  --bg: #efe7d2;
  --bg-raise: #fbf6e6;
  --bg-deep: #e7dec6;
  --line: rgba(21, 20, 15, 0.18);
  --line-soft: rgba(21, 20, 15, 0.1);
  --text: #15140f;
  --muted: #2a2620;
  --faint: #5a5448;
  --accent: #ed6f5c;
  --accent-deep: #d65c4d;
  --accent-hover: #df604e;
  --accent-ink: #ffffff;
  --accent-soft: rgba(237, 111, 92, 0.12);
  --green: #6c8f3a;
  --blue: #4f7da6;
  --phone: #f7f1de;
  --phone-inset: #d8cfb8;
  --phone-nav: #e7dec6;
  --phone-status: #8b8676;
  --sheet: #fbf6e6;
  --sheet-strong: rgba(21, 20, 15, 0.22);
  --share-item: #f7f1de;
  --web-bg: #eef5f6;
  --web-surface: #fbffff;
  --web-text: #14242b;
  --web-muted: #587079;
  --web-accent: #167c9c;
  --web-art: #8fd0dc;
  --reader: #fbf6e6;
  --terminal: #e7dec6;
  --footer: #e7dec6;
  --shadow: rgba(21, 20, 15, 0.2);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  display: flex;
  min-height: 100vh;
  min-height: 100svh;
  flex-direction: column;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.7;
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body > main { width: 100%; flex: 1 0 auto; }

::selection { background: var(--accent-soft); }

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: clamp(1.25rem, 3.5vw, 2.75rem); }

a { color: inherit; }
a, button { -webkit-tap-highlight-color: transparent; }
button { font: inherit; }
:focus:not(:focus-visible) { outline: none; box-shadow: none; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

svg { fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.btn svg { fill: currentColor; stroke: none; }

/* ---------- progress and navigation ---------- */
.progress { position: fixed; inset: 0 0 auto 0; z-index: 60; height: 2px; }
.progress span {
   display: block; height: 100%;
   background: linear-gradient(90deg, var(--accent-deep), var(--accent));
   transform: scaleX(0); transform-origin: 0 50%; will-change: transform;
}

.nav {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--bg) 78%, transparent);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.35s var(--ease);
}
.nav.scrolled { border-bottom-color: var(--line-soft); }
.nav-inner { display: flex; align-items: center; height: 4rem; }
.brand { display: inline-flex; align-items: center; gap: 0.48rem; color: var(--text); line-height: 1; text-decoration: none; }
.brand-mark { display: block; flex: none; width: 1.3rem; height: 1.3rem; color: var(--accent); }
.brand-mark-loop { fill: none; stroke: currentColor; stroke-width: 4.7; stroke-linecap: round; }
.brand-mark-ribbon { fill: currentColor; stroke: none; }
html.js .brand, html.js .brand-mark, html.js .wordmark { animation: none; opacity: 1; transform: none; }
.wordmark {
  font-family: var(--serif); font-size: 1.45rem; font-weight: 500;
  letter-spacing: 0.01em; line-height: 1;
}
.nav-links { display: flex; align-items: center; margin-left: auto; line-height: 1; }
.theme-toggle {
  position: relative; display: inline-grid; width: 2.3rem; height: 2.3rem; place-items: center;
  overflow: hidden; border: 1px solid var(--line); border-radius: 0.72rem; background: var(--bg-raise); color: var(--muted); cursor: pointer;
  transition: color 0.22s, border-color 0.22s, background-color 0.22s;
}
.theme-toggle:hover { border-color: var(--sheet-strong); color: var(--accent); }
.theme-toggle:focus-visible { outline-offset: 3px; }
.theme-icon { position: absolute; width: 1rem; height: 1rem; transition: opacity 0.28s var(--ease), transform 0.45s var(--ease); }
.theme-icon-sun { opacity: 0; transform: rotate(-90deg) scale(0.65); }
.theme-icon-moon { opacity: 1; transform: rotate(0) scale(1); }
:root[data-theme="light"] .theme-icon-sun { opacity: 1; transform: rotate(0) scale(1); }
:root[data-theme="light"] .theme-icon-moon { opacity: 0; transform: rotate(90deg) scale(0.65); }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 0.55rem;
  border: 1px solid var(--line); border-radius: 0.76rem;
  padding: 0.72rem 1.3rem;
  font-size: 0.95rem; font-weight: 500; text-decoration: none; touch-action: manipulation;
  transition: transform 0.3s var(--ease), border-color 0.25s, background-color 0.25s, box-shadow 0.3s var(--ease);
}
.btn svg { width: 0.85rem; height: 0.85rem; }
.btn-solid { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.btn-solid:hover { transform: translateY(-2px); background: var(--accent-hover); border-color: var(--accent-hover); box-shadow: 0 10px 30px -12px var(--accent-soft); }
.btn-ghost { color: var(--text); background: transparent; }
.btn-ghost:hover { transform: translateY(-1px); border-color: color-mix(in srgb, var(--accent) 55%, var(--line)); background: color-mix(in srgb, var(--accent) 8%, transparent); }
.btn:active { transform: translateY(0); }
.btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; box-shadow: 0 0 0 5px var(--accent-soft); }

/* ---------- hero ---------- */
.hero { padding-top: clamp(2.75rem, 5vh, 4rem); text-align: center; }
.verse {
  margin-inline: auto;
  font-family: var(--serif); font-size: clamp(2.8rem, 6vw, 5rem);
  font-weight: 500; line-height: 1.04; letter-spacing: -0.015em;
}
.verse .line { display: block; overflow: hidden; }
html.js .verse .line > span { display: inline-block; transform: translateY(110%); animation: rise 1s var(--ease) forwards; }
html.js .verse .line:nth-child(2) > span { animation-delay: 0.09s; }
html.js .verse .line:nth-child(3) > span { animation-delay: 0.18s; }
.line-italic > span { color: var(--muted); font-style: italic; font-weight: 400; }
@keyframes rise { to { transform: translateY(0); } }

.hero-actions { display: flex; width: min(19rem, 100%); flex-direction: column; align-items: center; margin: 1.6rem auto 0; }
.btn-download { width: 100%; justify-content: center; }
.source-link { margin-top: 0.72rem; color: var(--muted); font-size: 0.86rem; text-decoration: underline; text-decoration-color: var(--line); text-decoration-offset: 0.3rem; transition: color 0.2s, text-decoration-color 0.2s; }
.source-link:hover { color: var(--accent); text-decoration-color: currentColor; }
.source-link:focus-visible { outline-offset: 5px; }
html.js .reveal { opacity: 0; transform: translateY(14px); animation: fade-up 0.85s var(--ease) forwards; }
html.js .reveal.d1 { animation-delay: 0.35s; }
html.js .reveal.d2 { animation-delay: 0.5s; }
html.js .reveal.d3 { animation-delay: 0.65s; }
@keyframes fade-up { to { opacity: 1; transform: none; } }

/* ---------- app preview ---------- */
.hero-showcase {
  position: relative; display: flex; justify-content: center;
  margin-top: clamp(2.5rem, 5vh, 3.25rem); padding-bottom: clamp(1.5rem, 3vh, 2rem);
}
.hero-showcase::before {
  content: ""; position: absolute; z-index: -1;
  width: min(33rem, 100%); aspect-ratio: 1;
  top: 3.25rem; border-radius: 50%;
   background: radial-gradient(circle, color-mix(in srgb, var(--accent) 8%, transparent), transparent 68%);
}
.showcase-stack { display: flex; flex-direction: column; align-items: center; width: min(20rem, 100%); }
.phone { position: relative; width: 100%; }
.phone-frame {
  position: relative; display: flex; flex-direction: column;
  height: 38rem; overflow: hidden;
  padding: 0.68rem 0.9rem 0.9rem;
  background: var(--phone); border: 1px solid var(--line); border-radius: 2.45rem;
  box-shadow: 0 40px 72px -42px var(--shadow), inset 0 0 0 5px var(--phone-inset);
}
.cam {
  position: absolute; z-index: 2; top: 1rem; left: 50%;
  width: 0.5rem; height: 0.5rem; transform: translateX(-50%);
  border: 1px solid var(--line); border-radius: 50%; background: var(--phone-inset);
}
.status { display: flex; align-items: center; justify-content: space-between; padding: 0.04rem 0.35rem 0.24rem; color: var(--faint); font-family: var(--mono); font-size: 0.57rem; }
.status-icons { display: inline-flex; align-items: center; gap: 3px; }
.status-icons i { display: inline-block; width: 9px; height: 5px; border-radius: 1px; background: var(--phone-status); }
.status-icons b { display: inline-block; width: 12px; height: 6px; border: 1px solid var(--phone-status); border-radius: 2px; }

.app-shell { position: relative; display: flex; flex: 1; min-height: 0; }
.app-screen { display: none; flex: 1; min-height: 0; flex-direction: column; }
.app-screen.is-active { display: flex; animation: app-screen-in 0.2s var(--ease); }
@keyframes app-screen-in { from { opacity: 0.2; transform: translateY(3px); } to { opacity: 1; transform: none; } }
.app-head { position: relative; display: flex; align-items: center; justify-content: space-between; flex: none; min-height: 2.25rem; padding: 0.02rem 0.25rem 0.43rem; }
.app-head-title { position: absolute; left: 50%; transform: translateX(-50%); color: var(--text); font-family: var(--mono); font-size: 0.68rem; font-weight: 500; letter-spacing: 0.19em; text-transform: uppercase; }
.app-head-spacer { width: 1.45rem; height: 1.45rem; }
.app-head-icons { display: inline-flex; gap: 0.5rem; color: var(--muted); }
.app-head-icons i { display: inline-block; width: 0.85rem; height: 0.85rem; }
.hi-sort { background: linear-gradient(currentColor, currentColor) 100% 15% / 70% 1.5px no-repeat, linear-gradient(currentColor, currentColor) 0 50% / 70% 1.5px no-repeat, linear-gradient(currentColor, currentColor) 100% 85% / 70% 1.5px no-repeat; }
.hi-tag { position: relative; border: 1.5px solid currentColor; border-radius: 3px 3px 3px 1px; }
.hi-tag::after { content: ""; position: absolute; inset: 28%; border-radius: 50%; background: currentColor; }
.app-scroll { flex: 1; min-height: 0; overflow: hidden; }
.app-list, .settings-list { list-style: none; }
.app-list > li + li, .settings-list > li + li { border-top: 1px solid var(--line-soft); }
.app-list-row { display: flex; align-items: center; gap: 0.64rem; padding: 0.48rem 0.18rem; }
.tile { display: inline-flex; flex: none; align-items: center; justify-content: center; width: 1.95rem; height: 1.95rem; border: 1px solid var(--line-soft); border-radius: 0.58rem; background: var(--bg-raise); color: var(--accent); }
.tile svg { width: 0.95rem; height: 0.95rem; }
.tile-fav { border-color: color-mix(in srgb, var(--fav) 42%, transparent); background: color-mix(in srgb, var(--fav) 30%, var(--bg-raise)); color: var(--text); font-family: var(--mono); font-size: 0.68rem; font-weight: 500; }
.row-copy { min-width: 0; flex: 1; }
.row-copy b { display: block; overflow: hidden; font-size: 0.75rem; font-weight: 500; line-height: 1.32; text-overflow: ellipsis; white-space: nowrap; }
.row-copy s { display: block; overflow: hidden; color: var(--faint); font-family: var(--mono); font-size: 0.56rem; text-decoration: none; text-overflow: ellipsis; white-space: nowrap; }
.meta-dot { color: var(--faint); }
.reminder-due { color: var(--accent); font-weight: 500; }
.row-chevron { color: var(--faint); font-family: var(--serif); font-size: 1.2rem; line-height: 1; }

.search-screen { padding: 0.05rem 0.08rem; }
.search-preview-row { display: flex; align-items: center; gap: 0.45rem; }
.app-search { display: flex; flex: 1; align-items: center; gap: 0.5rem; min-width: 0; padding: 0.58rem 0.65rem; border: 1px solid var(--line); border-radius: 0.6rem; background: var(--bg-raise); color: var(--faint); font-size: 0.67rem; }
.app-search svg { flex: none; width: 0.84rem; height: 0.84rem; }
.filter-preview { display: inline-flex; align-items: center; justify-content: center; width: 2.15rem; height: 2.15rem; border: 1px solid var(--line); border-radius: 0.6rem; color: var(--muted); }
.filter-preview svg { width: 0.9rem; height: 0.9rem; }
.search-empty { display: flex; flex-direction: column; align-items: center; justify-content: center; min-height: 13.5rem; padding: 1rem; color: var(--faint); text-align: center; }
.search-empty svg { width: 1.6rem; height: 1.6rem; margin-bottom: 0.65rem; color: var(--accent); }
.search-empty b { display: block; color: var(--text); font-size: 0.76rem; font-weight: 500; }
.search-empty p { margin-top: 0.22rem; font-family: var(--mono); font-size: 0.57rem; line-height: 1.5; }

.settings-screen { padding: 0.05rem 0.1rem; }
.settings-group-label { padding: 0.15rem 0.08rem 0.42rem; color: var(--faint); font-family: var(--mono); font-size: 0.57rem; letter-spacing: 0.1em; text-transform: uppercase; }
.settings-list { border: 1px solid var(--line-soft); border-radius: 0.7rem; overflow: hidden; background: color-mix(in srgb, var(--text) 2%, transparent); }
.settings-list li { display: grid; grid-template-columns: 1.4rem minmax(0, 1fr) auto; align-items: center; gap: 0.42rem; padding: 0.48rem 0.45rem; }
.settings-icon { display: inline-flex; align-items: center; justify-content: center; color: var(--muted); }
.settings-icon svg { width: 0.9rem; height: 0.9rem; }
.settings-list b { font-size: 0.68rem; font-weight: 500; line-height: 1.2; }
.settings-list i { color: var(--faint); font-family: var(--serif); font-size: 1.05rem; font-style: normal; line-height: 1; }
.settings-signout { display: flex; height: 2.25rem; align-items: center; justify-content: center; margin-top: 0.72rem; border: 1px solid var(--accent); border-radius: 0.48rem; color: var(--accent); font-size: 0.67rem; font-weight: 500; text-align: center; }

.bottom-nav { display: flex; align-items: center; justify-content: space-around; flex: none; margin-top: auto; padding: 0.38rem 0.24rem; border: 1px solid var(--line); border-radius: 1rem; background: var(--phone-nav); }
.app-nav-item { display: inline-flex; flex: 1; flex-direction: column; align-items: center; gap: 0.14rem; border: 0; border-radius: 0.65rem; background: transparent; color: var(--faint); cursor: pointer; font-size: 0.54rem; padding: 0.27rem 0.18rem; transition: color 0.2s, background-color 0.2s; }
.app-nav-item svg { width: 0.86rem; height: 0.86rem; }
.app-nav-item:hover { color: var(--muted); }
.app-nav-item.is-active { background: var(--accent-soft); color: var(--accent); }

/* ---------- app moments ---------- */
.quick-section, .reminder-section { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(22rem, 1.1fr); align-items: center; gap: clamp(3rem, 6vw, 5rem); border-top: 1px solid var(--line-soft); }
.quick-section { padding-top: clamp(3.5rem, 6.5vh, 4.75rem); padding-bottom: clamp(3.25rem, 6vh, 4.25rem); }
.reminder-section { padding-top: clamp(3.25rem, 6vh, 4.25rem); padding-bottom: clamp(4.5rem, 8vh, 5.5rem); }
.quick-copy h2, .reminder-copy h2, .reading-copy h2, .selfhost-copy h2 { font-family: var(--serif); font-size: clamp(2rem, 4vw, 3.2rem); font-weight: 500; line-height: 1.1; letter-spacing: -0.015em; }
.quick-copy p:not(.section-kicker), .reminder-copy p:not(.section-kicker), .reading-copy p:not(.section-kicker), .selfhost-copy p:not(.section-kicker) { max-width: 31em; margin-top: 0.9rem; color: var(--muted); }
.section-kicker { display: flex; align-items: center; gap: 0.55rem; margin-bottom: 0.72rem; color: var(--accent); font-family: var(--mono); font-size: 0.58rem; font-weight: 500; letter-spacing: 0.08em; line-height: 1.2; text-transform: uppercase; }
.section-kicker::before { content: ""; width: 1.6rem; height: 1px; background: currentColor; }

/* ---------- scroll reveals ---------- */
@media (prefers-reduced-motion: no-preference) {
  html.js [data-scroll-reveal] {
    opacity: 0;
    filter: blur(2px);
    transform: translate3d(0, 1.15rem, 0);
    transition: opacity 0.55s ease-out, transform 0.9s var(--ease), filter 0.65s ease-out;
    will-change: opacity, transform;
  }
  html.js [data-scroll-reveal="copy"] { transform: translate3d(-2rem, 0.6rem, 0); }
  html.js [data-scroll-reveal="preview"] { transform: translate3d(2.25rem, 1rem, 0) rotate(1.2deg) scale(0.965); transform-origin: 50% 65%; transition-delay: 0.1s; }
  html.js [data-scroll-reveal="copy"] .section-kicker::before { transform: scaleX(0); transform-origin: left center; transition: transform 0.5s var(--ease) 0.12s; }
  html.js [data-scroll-reveal].is-visible { opacity: 1; filter: none; transform: translate3d(0, 0, 0) rotate(0) scale(1); will-change: auto; }
  html.js [data-scroll-reveal="copy"].is-visible .section-kicker::before { transform: scaleX(1); }

  .hero-showcase .showcase-stack {
    transform: translate3d(0, var(--showcase-lift, 0px), 0) rotate(var(--showcase-tilt, 0deg));
    transform-origin: 50% 58%;
    will-change: transform;
  }
  .hero-showcase::before {
    opacity: var(--showcase-glow-opacity, 1);
    transform: translate3d(0, var(--showcase-glow-lift, 0px), 0) scale(var(--showcase-glow-scale, 1));
  }

  html.js [data-scroll-reveal="preview"] .shared-item,
  html.js [data-scroll-reveal="preview"] .share-actions,
  html.js [data-scroll-reveal="preview"] .share-target,
  html.js [data-scroll-reveal="preview"] .reminder-card,
  html.js [data-scroll-reveal="preview"] .browser-card,
  html.js [data-scroll-reveal="preview"] .reader-card,
  html.js [data-scroll-reveal="preview"] .terminal pre {
    opacity: 0;
    transform: translate3d(0, 0.72rem, 0);
    transition: opacity 0.42s ease-out, transform 0.7s var(--ease);
  }
  html.js [data-scroll-reveal="preview"].is-visible .shared-item,
  html.js [data-scroll-reveal="preview"].is-visible .share-actions,
  html.js [data-scroll-reveal="preview"].is-visible .share-target,
  html.js [data-scroll-reveal="preview"].is-visible .reminder-card,
  html.js [data-scroll-reveal="preview"].is-visible .browser-card,
  html.js [data-scroll-reveal="preview"].is-visible .reader-card,
  html.js [data-scroll-reveal="preview"].is-visible .terminal pre {
    opacity: 1;
    transform: translate3d(0, 0, 0);
  }
  html.js [data-scroll-reveal="preview"].is-visible .shared-item { transition-delay: 0.18s; }
  html.js [data-scroll-reveal="preview"].is-visible .share-actions { transition-delay: 0.25s; }
  html.js [data-scroll-reveal="preview"].is-visible .share-target:nth-child(1) { transition-delay: 0.32s; }
  html.js [data-scroll-reveal="preview"].is-visible .share-target:nth-child(2) { transition-delay: 0.37s; }
  html.js [data-scroll-reveal="preview"].is-visible .share-target:nth-child(3) { transition-delay: 0.42s; }
  html.js [data-scroll-reveal="preview"].is-visible .share-target:nth-child(4) { transition-delay: 0.47s; }
  html.js [data-scroll-reveal="preview"].is-visible .share-target:nth-child(5) { transition-delay: 0.52s; }
  html.js [data-scroll-reveal="preview"].is-visible .reminder-card:nth-child(2) { transition-delay: 0.18s; }
  html.js [data-scroll-reveal="preview"].is-visible .reminder-card:nth-child(3) { transition-delay: 0.27s; }
  html.js [data-scroll-reveal="preview"].is-visible .reminder-card:nth-child(4) { transition-delay: 0.36s; }
  html.js [data-scroll-reveal="preview"].is-visible .browser-card { transition-delay: 0.16s; }
  html.js [data-scroll-reveal="preview"].is-visible .reader-card { transition-delay: 0.3s; }
  html.js [data-scroll-reveal="preview"].is-visible .terminal pre { transition-delay: 0.2s; }
}

.share-sheet { width: min(100%, 23rem); justify-self: end; padding: 1.05rem 0.85rem 0.95rem; border: 1px solid var(--sheet-strong); border-radius: 1.35rem; background: var(--sheet); box-shadow: 0 28px 60px -42px var(--shadow); }
.share-sheet-title { display: flex; align-items: center; justify-content: space-between; font-size: 1rem; }
.share-sheet-title span { color: var(--muted); font-size: 1.65rem; font-weight: 300; line-height: 0.65; }
.shared-item { display: flex; align-items: center; gap: 0.65rem; margin-top: 0.85rem; padding: 0.72rem; border: 1px solid var(--line); border-radius: 0.95rem; background: color-mix(in srgb, var(--text) 7%, var(--share-item)); }
.shared-item-icon { display: inline-flex; align-items: center; justify-content: center; width: 2.1rem; height: 2.1rem; border-radius: 0.6rem; background: var(--blue); color: #ffffff; font-family: var(--mono); font-size: 0.72rem; }
.shared-item b, .shared-item s { display: block; }
.shared-item b { overflow: hidden; font-size: 0.69rem; font-weight: 500; text-overflow: ellipsis; white-space: nowrap; }
.shared-item s { overflow: hidden; color: var(--faint); font-family: var(--mono); font-size: 0.51rem; text-decoration: none; text-overflow: ellipsis; white-space: nowrap; }
.shared-copy { display: inline-flex; flex: none; align-items: center; justify-content: center; width: 1.7rem; height: 1.7rem; margin-left: auto; color: var(--muted); }
.shared-copy svg { width: 1rem; height: 1rem; }
.share-actions { display: flex; gap: 0.42rem; margin-top: 0.82rem; }
.share-action { display: inline-flex; min-width: 0; flex: 1; align-items: center; justify-content: center; gap: 0.3rem; padding: 0.47rem 0.28rem; border: 1px solid var(--line); border-radius: 0.62rem; background: color-mix(in srgb, var(--text) 8%, var(--sheet)); color: var(--muted); }
.share-action svg { flex: none; width: 0.8rem; height: 0.8rem; }
.share-action b { overflow: hidden; font-size: 0.5rem; font-weight: 500; text-overflow: ellipsis; white-space: nowrap; }
.share-targets { display: grid; grid-template-columns: repeat(5, 1fr); gap: 0.18rem; margin-top: 0.85rem; padding-top: 0.8rem; border-top: 1px solid var(--line-soft); }
.share-target { display: flex; min-width: 0; flex-direction: column; align-items: center; gap: 0.25rem; padding: 0.18rem 0.02rem; color: var(--muted); text-align: center; }
.share-app-icon { display: inline-flex; align-items: center; justify-content: center; width: 2.2rem; height: 2.2rem; border: 1px solid var(--line); border-radius: 0.65rem; background: var(--bg-raise); color: var(--faint); }
.share-target-ordo .share-app-icon { border-color: transparent; background: #10111c; }
.share-app-icon img { width: 1.35rem; height: 1.35rem; object-fit: contain; }
.share-app-icon svg { width: 0.98rem; height: 0.98rem; }
.share-target b { overflow: hidden; max-width: 100%; font-size: 0.54rem; font-weight: 500; text-overflow: ellipsis; white-space: nowrap; }
.share-target s { min-height: 1.1em; color: var(--faint); font-family: var(--sans); font-size: 0.46rem; line-height: 1.1; text-decoration: none; }

.reminder-preview { width: min(100%, 22rem); justify-self: end; padding: 0.8rem; border: 1px solid var(--line); border-radius: 0.85rem; background: var(--bg-deep); }
.reminder-preview-head { padding: 0 0.1rem 0.55rem; color: var(--faint); font-family: var(--mono); font-size: 0.56rem; }
.reminder-card { display: flex; align-items: center; gap: 0.62rem; padding: 0.55rem 0.15rem; border-top: 1px solid var(--line-soft); }
.reminder-card > span:last-child { min-width: 0; flex: 1; }
.reminder-card b, .reminder-card s { display: block; }
.reminder-card b { overflow: hidden; font-size: 0.74rem; font-weight: 500; text-overflow: ellipsis; white-space: nowrap; }
.reminder-card s { overflow: hidden; color: var(--faint); font-family: var(--mono); font-size: 0.54rem; text-decoration: none; text-overflow: ellipsis; white-space: nowrap; }
.reminder-card s strong { color: var(--accent); font-weight: 500; }
.reminder-card s i { font-style: normal; }

.reading-section { border-block: 1px solid var(--line-soft); background: var(--bg-deep); }
.reading-grid { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(22rem, 1.1fr); align-items: center; gap: clamp(3rem, 6vw, 5rem); padding-block: clamp(4.5rem, 8vh, 5.5rem); }
.reading-stack { position: relative; width: min(100%, 28rem); height: 20.5rem; justify-self: end; }
.browser-card { position: absolute; top: 0; right: 0; width: 86%; height: 14.35rem; overflow: hidden; border: 1px solid color-mix(in srgb, var(--web-muted) 42%, transparent); border-radius: 0.85rem; background: var(--web-bg); }
.browser-bar { display: flex; align-items: center; gap: 0.5rem; padding: 0.55rem 0.65rem; border-bottom: 1px solid color-mix(in srgb, var(--web-muted) 28%, transparent); background: color-mix(in srgb, var(--web-surface) 72%, var(--web-bg)); color: var(--web-muted); font-family: var(--mono); font-size: 0.54rem; }
.browser-dots { display: inline-flex; gap: 0.2rem; }
.browser-dots i { width: 0.32rem; height: 0.32rem; border-radius: 50%; background: color-mix(in srgb, var(--web-muted) 65%, transparent); }
.browser-page { min-height: calc(100% - 2.1rem); background: var(--web-bg); }
.browser-site-nav { display: flex; align-items: center; gap: 0.34rem; padding: 0.62rem 0.76rem; border-bottom: 1px solid color-mix(in srgb, var(--web-muted) 22%, transparent); background: var(--web-surface); color: var(--web-text); }
.browser-site-mark { width: 0.74rem; height: 0.74rem; border-radius: 0.22rem; background: linear-gradient(var(--web-accent), var(--web-accent)) 0 0 / 100% 26% no-repeat, linear-gradient(var(--web-accent), var(--web-accent)) 0 50% / 72% 26% no-repeat, linear-gradient(var(--web-accent), var(--web-accent)) 0 100% / 100% 26% no-repeat; }
.browser-site-nav b { font-size: 0.67rem; font-weight: 600; }
.browser-site-links { display: inline-flex; gap: 0.45rem; margin-left: auto; color: var(--web-muted); font-size: 0.48rem; }
.browser-hero { position: relative; min-height: 8.9rem; overflow: hidden; padding: 0.82rem 0.82rem; }
.browser-hero > span { position: relative; z-index: 1; display: block; color: var(--web-accent); font-family: var(--mono); font-size: 0.48rem; letter-spacing: 0.09em; text-transform: uppercase; }
.browser-hero h3 { position: relative; z-index: 1; max-width: 8.3rem; margin-top: 0.38rem; color: var(--web-text); font-family: var(--sans); font-size: 1.02rem; font-weight: 600; line-height: 1.08; }
.browser-hero p { position: relative; z-index: 1; max-width: 7.8rem; margin-top: 0.42rem; color: var(--web-muted); font-size: 0.52rem; line-height: 1.4; }
.browser-art { position: absolute; right: -2.1rem; bottom: -3rem; width: 9.4rem; height: 7.2rem; border: 1px solid color-mix(in srgb, var(--web-accent) 55%, transparent); border-radius: 2.5rem 2.5rem 0.75rem 0.75rem; background: radial-gradient(circle at 42% 38%, var(--web-accent) 0 10%, transparent 11%), linear-gradient(135deg, var(--web-art), transparent 70%); transform: rotate(-17deg); }
.reader-card { position: absolute; z-index: 1; bottom: 0.9rem; left: 0; width: 76%; padding: 0.88rem 0.98rem 0.96rem; border: 1px solid var(--sheet-strong); border-radius: 0.85rem; background: var(--reader); box-shadow: 0 24px 40px -28px var(--shadow); }
.reader-kicker { display: block; color: var(--accent); font-family: var(--mono); font-size: 0.51rem; }
.reader-card h3 { margin-top: 0.3rem; font-family: var(--serif); font-size: 1.28rem; font-weight: 500; line-height: 1.06; }
.reader-card p { margin-top: 0.42rem; color: var(--muted); font-family: var(--serif); font-size: 0.69rem; line-height: 1.4; }
.reader-card mark { display: inline; padding: 0.03rem 0.1rem; background: color-mix(in srgb, var(--accent) 22%, transparent); color: var(--text); font-family: var(--serif); font-size: 0.68rem; line-height: 1.45; }

/* ---------- self-host ---------- */
.selfhost-section { background: var(--bg-deep); }
.selfhost-grid {
  display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(22rem, 1.1fr);
  align-items: center; gap: clamp(3rem, 6vw, 5rem);
  padding-block: clamp(4.5rem, 8vh, 5.5rem);
}
.selfhost-copy .btn { margin-top: 1.8rem; }
.terminal {
  overflow: hidden; border: 1px solid var(--line); border-radius: 0.9rem;
  background: var(--terminal); box-shadow: 0 40px 90px -50px var(--shadow);
  font-family: var(--mono); font-size: 0.78rem; line-height: 1.8;
}
.terminal-bar {
  display: flex; align-items: center; gap: 0.4rem;
  padding: 0.7rem 0.95rem; border-bottom: 1px solid var(--line-soft);
  color: var(--faint); font-size: 0.65rem;
}
.terminal-bar i { width: 0.55rem; height: 0.55rem; border-radius: 50%; background: var(--line); }
.terminal-bar span { margin-left: 0.5rem; }
.terminal pre { overflow-x: auto; padding: 1.2rem; white-space: pre-wrap; overflow-wrap: anywhere; }
.terminal code { white-space: pre-wrap; }
.t-prompt { color: var(--accent); }
.t-ok { color: var(--green); }

/* ---------- footer ---------- */
.footer { background: var(--footer); border-top: 1px solid var(--line-soft); }
.footer-inner {
  display: grid; grid-template-columns: minmax(0, 1fr) auto auto; align-items: baseline; gap: 0.75rem 1.75rem;
  padding-block: 1.8rem;
  color: var(--faint); font-family: var(--mono); font-size: 0.72rem;
}
.footer-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.35rem 1rem; }
.footer-links a { color: var(--muted); text-decoration: none; transition: color 0.2s; }
.footer-links a:hover { color: var(--accent); }
.footer-links a[aria-current="page"] { color: var(--accent); }
.footer-axolet { color: inherit; text-decoration-color: var(--line); text-underline-offset: 0.2rem; transition: color 0.2s, text-decoration-color 0.2s; }
.footer-axolet:hover { color: var(--accent); text-decoration-color: currentColor; }

/* ---------- legal pages ---------- */
.legal-main { flex: 1 0 auto; }
.legal { max-width: 54rem; padding-top: clamp(2.25rem, 4.5vh, 3.5rem); padding-bottom: clamp(4.5rem, 8vh, 6rem); }
.legal > .section-kicker { margin-bottom: 0.6rem; }
.legal h1 { max-width: 16ch; font-family: var(--serif); font-size: clamp(2.75rem, 5.5vw, 4.35rem); font-weight: 500; line-height: 1.02; letter-spacing: -0.02em; }
.legal-lede { max-width: 42rem; margin-top: 1rem; color: var(--muted); font-size: clamp(1rem, 1.8vw, 1.1rem); line-height: 1.65; }
.legal-updated { margin-top: 0.9rem; color: var(--faint); font-family: var(--mono); font-size: 0.67rem; }
.legal-nav { display: flex; align-items: center; gap: 0.35rem 1.4rem; margin-top: 1.8rem; padding-block: 0.75rem; border-block: 1px solid var(--line-soft); font-size: 0.82rem; }
.legal-nav a { color: var(--muted); text-decoration: none; transition: color 0.2s; }
.legal-nav a:hover, .legal-nav a[aria-current="page"] { color: var(--accent); }
.legal-note { margin-top: 2rem; padding: 1rem 1.15rem; border-left: 2px solid var(--accent); background: color-mix(in srgb, var(--accent) 6%, transparent); }
.legal-note strong { display: block; font-family: var(--serif); font-size: 1.12rem; font-weight: 500; line-height: 1.3; }
.legal-note p { margin-top: 0.35rem; color: var(--muted); font-size: 0.95rem; line-height: 1.65; }
.legal-note code, .legal-details code { font-family: var(--mono); font-size: 0.86em; overflow-wrap: anywhere; }
.legal-report .btn { margin-top: 0.85rem; font-family: var(--sans); font-size: 0.84rem; }
.legal-details { margin-top: 2rem; border-top: 1px solid var(--line); }
.legal-details section { padding-block: clamp(1.35rem, 3vw, 1.75rem); border-bottom: 1px solid var(--line-soft); }
.legal-details h2 { font-family: var(--serif); font-size: clamp(1.3rem, 2.5vw, 1.55rem); font-weight: 500; line-height: 1.2; }
.legal-details p, .legal-details li { max-width: 46rem; color: var(--muted); }
.legal-details p { margin-top: 0.55rem; }
.legal-details p + p { margin-top: 0.75rem; }
.legal-details ul { margin-top: 0.7rem; padding-left: 1.2rem; }
.legal-details li { padding-left: 0.25rem; }
.legal-details li + li { margin-top: 0.38rem; }
.legal-details strong { color: var(--text); font-weight: 600; }
.legal-details a { color: var(--text); text-decoration-color: var(--line); text-underline-offset: 0.22rem; }
.legal-details a:hover { color: var(--accent); text-decoration-color: currentColor; }

/* ---------- responsive ---------- */
@media (max-width: 55rem) {
  .hero { padding-top: 2.25rem; }
  .verse { font-size: clamp(2.5rem, 11vw, 3.4rem); }
  .hero-showcase { margin-top: 2.35rem; }
  .showcase-stack, .phone { width: min(19.25rem, 100%); }
  .phone-frame { height: 35.75rem; }
  .quick-section, .reminder-section, .reading-grid, .selfhost-grid { grid-template-columns: 1fr; }
  .quick-section, .reminder-section { gap: 2rem; }
  .quick-section { padding-top: 3.5rem; padding-bottom: 2.75rem; }
  .reminder-section { padding-top: 2.75rem; padding-bottom: 4.25rem; }
  .reading-grid { gap: 2.45rem; padding-block: 4.25rem; }
  .quick-copy, .reminder-copy, .reading-copy, .selfhost-copy { text-align: center; }
  .quick-copy p:not(.section-kicker), .reminder-copy p:not(.section-kicker), .reading-copy p:not(.section-kicker), .selfhost-copy p:not(.section-kicker) { margin-inline: auto; }
  .feature-section .section-kicker { justify-content: center; }
  .share-sheet, .reminder-preview, .reading-stack, .terminal { justify-self: center; }
  .reading-stack { width: min(100%, 22rem); }
  .terminal { width: min(100%, 32rem); }
  .selfhost-grid { gap: 2.35rem; padding-block: 4.25rem; }
  .footer-inner { display: flex; flex-direction: column; align-items: center; gap: 0.85rem; text-align: center; }
  .legal { padding-top: 2rem; }
}

@media (prefers-reduced-motion: no-preference) and (max-width: 55rem) {
  html.js [data-scroll-reveal="copy"], html.js [data-scroll-reveal="preview"] { transform: translate3d(0, 1rem, 0); }
}

@media (max-width: 25rem) {
  .btn { font-size: 0.88rem; padding-inline: 1rem; }
  .phone-frame { height: 35rem; padding-inline: 0.78rem; }
  .app-list-row { gap: 0.55rem; padding-block: 0.42rem; }
  .phone .tile { width: 1.8rem; height: 1.8rem; }
  .app-nav-item { padding-inline: 0.2rem; }
  .settings-list li { padding-inline: 0.32rem; }
  .legal-nav { justify-content: space-between; gap: 0.5rem; }
  .legal-note { padding: 0.9rem 1rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  html.js .verse .line > span, html.js .reveal, .app-screen.is-active { animation: none; transform: none; opacity: 1; }
  .btn, .nav, .theme-toggle, .theme-icon, .source-link, .app-nav-item, [data-scroll-reveal], [data-scroll-reveal] * { transition: none !important; }
}
