@font-face {
  font-family: "WT Serif";
  src: url("/assets/fonts/display-serif-400.woff2") format("woff2");
  font-display: swap;
  font-weight: 400;
}

@font-face {
  font-family: "WT Serif";
  src: url("/assets/fonts/display-serif-600.woff2") format("woff2");
  font-display: swap;
  font-weight: 600;
}

/* Comparison-table fonts (self-hosted; used only inside .cmp) */
@font-face {
  font-family: "Marcellus";
  src: url("/assets/fonts/marcellus-400.woff2") format("woff2");
  font-display: swap;
  font-weight: 400;
}

@font-face {
  font-family: "Archivo";
  src: url("/assets/fonts/archivo-400.woff2") format("woff2");
  font-display: swap;
  font-weight: 400;
}

@font-face {
  font-family: "Archivo";
  src: url("/assets/fonts/archivo-500.woff2") format("woff2");
  font-display: swap;
  font-weight: 500;
}

@font-face {
  font-family: "Archivo";
  src: url("/assets/fonts/archivo-600.woff2") format("woff2");
  font-display: swap;
  font-weight: 600;
}

@font-face {
  font-family: "Archivo";
  src: url("/assets/fonts/archivo-700.woff2") format("woff2");
  font-display: swap;
  font-weight: 700;
}

@font-face {
  font-family: "IBM Plex Mono";
  src: url("/assets/fonts/ibm-plex-mono-400.woff2") format("woff2");
  font-display: swap;
  font-weight: 400;
}

@font-face {
  font-family: "IBM Plex Mono";
  src: url("/assets/fonts/ibm-plex-mono-500.woff2") format("woff2");
  font-display: swap;
  font-weight: 500;
}

:root {
  --bg: #11100e;
  --bg-soft: #191713;
  --ink: #f4ecd8;
  --muted: #c7bca6;
  --faint: #8d8476;
  --gold: #c9962f;
  --amber: #e2a85a;
  --moss: #6f8762;
  --steel: #8ba4aa;
  --line: rgba(244, 236, 216, 0.16);
  --line-gold: rgba(201, 150, 47, 0.3);
  --shadow: 0 22px 70px rgba(0, 0, 0, 0.34);
  --serif: "WT Serif", Georgia, "Times New Roman", serif;
  --sans: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --maxw: 1120px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  line-height: 1.6;
}

body::selection {
  background: var(--gold);
  color: #17120d;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: var(--amber);
  text-underline-offset: 0.18em;
}

h1,
h2,
h3 {
  margin: 0;
  color: var(--ink);
  font-family: var(--serif);
  font-weight: 600;
  letter-spacing: 0;
  line-height: 1.08;
}

p {
  margin: 0;
}

button,
input {
  font: inherit;
}

.container {
  width: calc(100% - 2rem);
  max-width: var(--maxw);
  margin: 0 auto;
}

.eyebrow {
  color: var(--gold);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.muted {
  color: var(--muted);
}

.btn {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
  border-radius: 8px;
  background: var(--gold);
  color: #18110a;
  cursor: pointer;
  font-weight: 800;
  padding: 0.78rem 1.1rem;
  text-decoration: none;
  transition: background 160ms ease, border-color 160ms ease, transform 160ms ease;
  white-space: nowrap;
}

.btn:hover {
  background: var(--amber);
  transform: translateY(-1px);
}

.btn:disabled {
  cursor: wait;
  opacity: 0.7;
  transform: none;
}

.btn-ghost {
  background: rgba(17, 16, 14, 0.3);
  border-color: var(--line);
  color: var(--ink);
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: 0.5rem;
  z-index: 100;
  transform: translateY(-160%);
}

.skip-link:focus {
  transform: none;
}

.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid rgba(244, 236, 216, 0.1);
  background: rgba(17, 16, 14, 0.78);
  backdrop-filter: blur(14px);
}

.nav .container {
  display: flex;
  min-height: 78px;
  align-items: center;
  gap: 1rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  color: var(--ink);
  font-family: var(--serif);
  font-weight: 600;
  gap: 0.74rem;
  text-decoration: none;
}

.brand img {
  width: 48px;
  height: 48px;
  border: 1px solid rgba(201, 150, 47, 0.38);
  border-radius: 10px;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.4), 0 8px 26px rgba(0, 0, 0, 0.28);
}

.wordmark {
  position: relative;
  display: inline-flex;
  align-items: baseline;
  gap: 0.36rem;
  padding-top: 0.28rem;
  color: #fff5dc;
  font-family: var(--serif);
  font-size: clamp(1.18rem, 2.1vw, 1.55rem);
  font-weight: 600;
  letter-spacing: 0.055em;
  line-height: 0.92;
  text-transform: uppercase;
  white-space: nowrap;
}

.wordmark::before {
  position: absolute;
  top: -0.16rem;
  left: 0.06rem;
  width: 78%;
  height: 1px;
  background: linear-gradient(90deg, rgba(201, 150, 47, 0), rgba(201, 150, 47, 0.9), rgba(201, 150, 47, 0));
  content: "";
}

.wordmark span:first-child {
  color: var(--gold);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  margin-left: auto;
}

.nav-links a:not(.btn) {
  color: var(--muted);
  font-size: 0.94rem;
  font-weight: 650;
  text-decoration: none;
}

.nav-links a:not(.btn):hover {
  color: var(--ink);
}

.hero {
  position: relative;
  min-height: calc(100svh - 64px);
  display: grid;
  align-items: center;
  overflow: hidden;
  padding: clamp(5rem, 9vw, 8rem) 0 clamp(3rem, 7vw, 5rem);
}

.hero::before {
  position: absolute;
  inset: 0;
  z-index: -2;
  background: image-set(url("/assets/img/hero-product-real-ui.webp") type("image/webp"), url("/assets/img/hero-product-real-ui.jpg") type("image/jpeg")) center / cover;
  content: "";
}

.hero::after {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(90deg, rgba(17, 16, 14, 0.94) 0%, rgba(17, 16, 14, 0.76) 40%, rgba(17, 16, 14, 0.25) 100%),
    linear-gradient(0deg, var(--bg) 0%, rgba(17, 16, 14, 0) 34%);
  content: "";
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.82fr);
  gap: clamp(1.5rem, 4vw, 3rem);
  align-items: center;
}

.hero-copy {
  max-width: 680px;
}

.hero-copy h1 {
  margin-top: 0.65rem;
  font-size: clamp(2.4rem, 5vw, 4.6rem);
  white-space: nowrap;
}

.hero-copy .lede {
  max-width: 48rem;
  margin-top: 1.2rem;
  color: var(--muted);
  font-size: clamp(1.12rem, 2vw, 1.45rem);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-top: 1.6rem;
}

.appstore-badge {
  display: inline-flex;
  border-radius: 10px;
}

.appstore-badge img {
  height: 56px;
  width: auto;
}

.appstore-badge:focus-visible {
  outline: 3px solid rgba(201, 150, 47, 0.5);
  outline-offset: 3px;
}

.hero-meta {
  margin-top: 0.9rem;
  color: var(--faint);
  font-size: 0.92rem;
  letter-spacing: 0.02em;
}

.hero-privacy {
  margin-top: 1.4rem;
  color: var(--muted);
  font-size: 0.88rem;
}

.hero-proof {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  margin-top: 2rem;
  max-width: 620px;
  border: 1px solid rgba(244, 236, 216, 0.11);
  border-radius: 8px;
  overflow: hidden;
}

.hero-proof > span {
  min-height: 80px;
  display: grid;
  align-content: center;
  background: rgba(17, 16, 14, 0.5);
  padding: 0.85rem;
}

.hero-proof strong {
  display: block;
  color: var(--ink);
  font-family: var(--serif);
  font-size: 1.35rem;
  line-height: 1;
}

.hero-proof small {
  color: var(--faint);
  font-size: 0.76rem;
  line-height: 1.35;
}

.hero-devices {
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-devices .device-frame {
  width: 50%;
}

.hero-device-back {
  transform: translateY(6%) rotate(3deg);
  opacity: 0.92;
}

.hero-device-front {
  margin-left: -12%;
  z-index: 2;
}

.section {
  padding: clamp(4rem, 8vw, 7rem) 0;
}

.section-head {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(260px, 0.58fr);
  gap: 2rem;
  align-items: end;
  margin-bottom: 2rem;
}

.section-head h2 {
  margin-top: 0.5rem;
  font-size: clamp(2.1rem, 5vw, 4.2rem);
}

.section-head p {
  color: var(--muted);
  font-size: 1.08rem;
}

.features {
  background: linear-gradient(180deg, var(--bg) 0%, #151817 100%);
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(180px, 1fr));
  gap: 0.8rem;
}

.feature-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.02));
}

.feature-media {
  position: relative;
  overflow: hidden;
}

.feature-photo {
  display: block;
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
}

/* Mini phone peeking from the corner: shifted down so the photo edge
   crops it, clipped by .feature-media. */
.feature-inset {
  position: absolute;
  right: 0.55rem;
  bottom: 0;
  width: 42%;
  max-width: 120px;
  padding: 3px 3px 0;
  border: 1px solid rgba(201, 150, 47, 0.35);
  border-bottom: none;
  border-radius: 12px 12px 0 0;
  background: linear-gradient(160deg, #2a2620, #14110d);
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.55);
  transform: translateY(38%);
}

.feature-inset img {
  display: block;
  width: 100%;
  border-radius: 9px 9px 0 0;
}

.feature-card h3 {
  margin: 1rem 1rem 0;
  font-size: 1.22rem;
}

.feature-card p {
  margin: 0.52rem 1rem 1.1rem;
  color: var(--muted);
  font-size: 0.94rem;
}

.showcase {
  background:
    linear-gradient(90deg, rgba(17, 16, 14, 0.92), rgba(17, 16, 14, 0.68)),
    image-set(url("/assets/img/stilllife.webp") type("image/webp"), url("/assets/img/stilllife.jpg") type("image/jpeg")) center / cover fixed;
}

.showcase-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(300px, 0.62fr);
  gap: clamp(2rem, 6vw, 5rem);
  align-items: center;
}

.showcase-copy h2,
.palate-copy h2,
.cta-band h2 {
  margin-top: 0.5rem;
  font-size: clamp(2rem, 5vw, 4rem);
}

.showcase-copy p,
.palate-copy p,
.cta-band p {
  margin-top: 1rem;
  color: var(--muted);
  font-size: 1.12rem;
}

.showcase-device {
  display: flex;
  justify-content: center;
}

.device-frame {
  position: relative;
  width: min(100%, 300px);
  padding: 10px;
  border: 1px solid rgba(201, 150, 47, 0.28);
  border-radius: 30px;
  background: linear-gradient(160deg, #2a2620, #14110d);
  box-shadow: var(--shadow), 0 0 0 1px rgba(0, 0, 0, 0.5);
}

.device-frame img {
  width: 100%;
  aspect-ratio: 1179 / 2556;
  object-fit: cover;
  object-position: top center;
  border-radius: 22px;
}

.palate {
  background:
    linear-gradient(180deg, rgba(17, 16, 14, 0.88), rgba(17, 16, 14, 0.94)),
    image-set(url("/assets/img/amber-texture.webp") type("image/webp"), url("/assets/img/amber-texture.jpg") type("image/jpeg")) center / cover;
}

.palate-grid {
  display: grid;
  grid-template-columns: minmax(280px, 0.5fr) minmax(0, 0.85fr);
  gap: clamp(2rem, 6vw, 5rem);
  align-items: center;
}

.palate-phone {
  width: min(100%, 320px);
  margin: 0 auto;
}

.gallery {
  overflow: hidden;
  background: #101413;
}

.gallery-track {
  display: flex;
  gap: 1rem;
  overflow-x: auto;
  padding: 0.3rem max(1rem, calc((100vw - var(--maxw)) / 2)) 0.7rem;
  scroll-snap-type: x mandatory;
  scrollbar-color: var(--gold) rgba(255, 255, 255, 0.08);
}

.gallery-track .device-frame {
  width: min(66vw, 245px);
  flex: 0 0 auto;
  scroll-snap-align: center;
}

.cta-band {
  padding: clamp(4rem, 8vw, 6.5rem) 0;
  background:
    linear-gradient(90deg, rgba(17, 16, 14, 0.94), rgba(17, 16, 14, 0.58)),
    image-set(url("/assets/img/sommelier.webp") type("image/webp"), url("/assets/img/sommelier.jpg") type("image/jpeg")) center / cover;
  text-align: center;
}

.cta-band p {
  width: min(100%, 54ch);
  margin-left: auto;
  margin-right: auto;
}

.footer {
  border-top: 1px solid var(--line);
  background: #0e0f0e;
  padding: 2rem 0;
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-left: auto;
}

.footer-links a {
  color: var(--muted);
  font-size: 0.92rem;
  text-decoration: none;
}

.copyright {
  width: 100%;
  color: var(--faint);
  font-size: 0.86rem;
}

.pro {
  background: linear-gradient(180deg, #151817 0%, var(--bg) 100%);
}

.pro-list {
  margin-top: 1.2rem;
  padding-left: 1.2rem;
  color: var(--muted);
  font-size: 1.05rem;
}

.pro-list li {
  margin-top: 0.55rem;
}

.pro-list li::marker {
  color: var(--gold);
}

.pro-list strong {
  color: var(--ink);
}

.about {
  background: linear-gradient(180deg, var(--bg) 0%, #14110d 100%);
}

.about-grid {
  max-width: 760px;
}

.about-grid h2 {
  margin-top: 0.5rem;
  font-size: clamp(2rem, 5vw, 3.4rem);
}

.about-body {
  margin-top: 1.2rem;
  color: var(--muted);
  font-size: 1.15rem;
}

.prose {
  width: min(100% - 2rem, 720px);
  padding: clamp(4rem, 8vw, 6rem) 0;
}

.prose h1 {
  font-size: clamp(2.2rem, 5vw, 3.6rem);
}

.prose h2 {
  margin-top: 2rem;
  color: var(--gold);
  font-size: 1.45rem;
}

.prose h3 {
  margin-top: 1.4rem;
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1.05rem;
}

.prose p {
  margin-top: 0.85rem;
  color: var(--muted);
}

.prose ul {
  margin-top: 0.85rem;
  padding-left: 1.2rem;
  color: var(--muted);
}

.prose li {
  margin-top: 0.45rem;
}

.prose li::marker {
  color: var(--gold);
}

.prose .toc {
  margin-top: 1.5rem;
  padding: 0.9rem 1.1rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.03);
}

.prose .toc strong {
  display: block;
  margin-bottom: 0.4rem;
  color: var(--ink);
  font-family: var(--sans);
  font-size: 0.92rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.prose .toc ul {
  margin-top: 0.3rem;
  columns: 2;
}

.pill-pro {
  display: inline-block;
  margin-left: 0.4em;
  padding: 0.05em 0.5em;
  border: 1px solid var(--line-gold);
  border-radius: 999px;
  background: rgba(201, 150, 47, 0.14);
  color: var(--gold);
  font-family: var(--sans);
  font-size: 0.66em;
  font-weight: 800;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  vertical-align: middle;
  white-space: nowrap;
}

.oss-page {
  overflow: hidden;
  background: var(--bg);
}

.oss-hero {
  padding: clamp(2.75rem, 6vw, 4.25rem) 0 clamp(2.25rem, 5vw, 3.25rem);
  border-bottom: 1px solid var(--line);
  background: rgba(244, 236, 216, 0.015);
}

.oss-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.46fr);
  gap: clamp(1.5rem, 5vw, 3.5rem);
  align-items: start;
}

.oss-hero-grid > *,
.oss-section .section-head > *,
.license-family,
.package-group,
.font-card,
.notice-callout > * {
  min-width: 0;
}

.oss-page h1,
.oss-page h2,
.oss-page h3,
.oss-page p,
.oss-page li,
.oss-page strong,
.oss-page small {
  overflow-wrap: anywhere;
}

.oss-hero h1 {
  max-width: 19ch;
  margin-top: 0.55rem;
  font-size: clamp(2rem, 4.8vw, 3.2rem);
  text-wrap: balance;
}

.oss-lede {
  max-width: 62ch;
  margin-top: 1.25rem;
  color: var(--muted);
  font-size: clamp(1rem, 1.8vw, 1.14rem);
  text-wrap: pretty;
}

.oss-lede strong {
  color: var(--ink);
}

.oss-summary,
.license-family,
.package-group,
.font-card,
.notice-callout {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(244, 236, 216, 0.026);
  box-shadow: none;
}

.oss-summary {
  padding: 1.1rem;
}

.oss-summary-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.9rem;
}

.oss-summary-top strong {
  color: var(--ink);
  font-size: 0.92rem;
  font-variant-numeric: tabular-nums;
}

.license-badge {
  display: inline-flex;
  min-height: auto;
  align-items: center;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--faint);
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  padding: 0;
  text-transform: uppercase;
  white-space: nowrap;
}

.license-badge-steel {
  color: var(--faint);
}

.license-badge-moss {
  color: var(--faint);
}

.license-badge-font {
  color: var(--faint);
}

.oss-stat-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0;
  overflow: hidden;
  border: 1px solid rgba(244, 236, 216, 0.08);
  border-radius: 8px;
}

.oss-stat-grid span {
  min-height: 84px;
  display: grid;
  align-content: center;
  border-right: 1px solid rgba(244, 236, 216, 0.08);
  border-bottom: 1px solid rgba(244, 236, 216, 0.08);
  background: transparent;
  padding: 0.8rem;
}

.oss-stat-grid span:nth-child(2n) {
  border-right: 0;
}

.oss-stat-grid span:nth-last-child(-n + 2) {
  border-bottom: 0;
}

.oss-stat-grid strong {
  color: var(--ink);
  font-family: var(--serif);
  font-size: clamp(1.55rem, 3vw, 2.15rem);
  font-variant-numeric: tabular-nums;
  line-height: 1;
}

.oss-stat-grid small {
  color: var(--faint);
  font-size: 0.78rem;
  line-height: 1.35;
  margin-top: 0.35rem;
}

.oss-section .section-head h2 {
  max-width: 18ch;
  font-size: clamp(1.75rem, 3.8vw, 3rem);
  text-wrap: balance;
}

.oss-section .section-head p {
  text-wrap: pretty;
}

.oss-soft {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: rgba(244, 236, 216, 0.014);
}

.license-family-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.75rem;
}

.license-family {
  display: flex;
  min-height: 160px;
  flex-direction: column;
  align-items: flex-start;
  padding: 1rem;
}

.license-family strong,
.font-card strong {
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1.12rem;
  font-weight: 800;
  line-height: 1.1;
  margin-top: 0.75rem;
}

.license-family p,
.package-group p,
.font-card p {
  color: var(--muted);
  font-size: 0.96rem;
  margin-top: 0.7rem;
  text-wrap: pretty;
}

.package-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.75rem;
}

.package-group {
  padding: 1rem;
}

.package-group h3 {
  color: var(--ink);
  font-family: var(--sans);
  font-size: 0.86rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.package-group ul {
  display: grid;
  gap: 0.55rem;
  list-style: none;
  margin: 0.9rem 0 0;
  padding: 0;
}

.package-group li {
  display: flex;
  min-height: 36px;
  align-items: center;
  justify-content: space-between;
  gap: 0.85rem;
  border-bottom: 1px solid rgba(244, 236, 216, 0.08);
  color: var(--muted);
  padding-bottom: 0.52rem;
}

.package-group li:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.package-group li strong {
  color: var(--ink);
  font-size: 0.95rem;
  font-weight: 700;
  line-height: 1.25;
}

.package-group li span {
  color: var(--faint);
  font-size: 0.78rem;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.package-group-note {
  background: rgba(201, 150, 47, 0.035);
}

.package-group-note a {
  display: inline-flex;
  margin-top: 0.9rem;
  font-weight: 800;
  text-decoration: none;
}

.font-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.85rem;
}

.font-card {
  min-height: 188px;
  padding: 1rem;
}

.font-card span,
.font-card small {
  color: var(--faint);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.font-card small {
  display: block;
  color: var(--faint);
  margin-top: 1rem;
}

.font-card-serif strong {
  font-family: var(--serif);
  font-size: 1.45rem;
}

.font-card-mono strong {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 1.06rem;
}

.oss-final {
  padding-top: 0;
}

.notice-callout {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: clamp(1.2rem, 4vw, 2rem);
}

.notice-callout h2 {
  margin-top: 0.35rem;
  font-size: clamp(1.55rem, 3vw, 2.3rem);
}

.notice-callout p {
  max-width: 62ch;
  color: var(--muted);
  margin-top: 0.8rem;
}

.notice-callout strong {
  color: var(--ink);
}

@media (max-width: 700px) {
  .prose .toc ul {
    columns: 1;
  }
}

.reveal {
  opacity: 1;
  transform: none;
  transition: opacity 620ms ease, transform 620ms ease;
}

.reveal.will-reveal {
  opacity: 0;
  transform: translateY(16px);
}

.reveal.will-reveal.in {
  opacity: 1;
  transform: none;
}

@media (max-width: 980px) {
  .hero-grid,
  .section-head,
  .showcase-grid,
  .palate-grid {
    grid-template-columns: 1fr;
  }

  .hero-devices {
    margin-top: 1.5rem;
  }

  .hero-device-back {
    display: none;
  }

  .hero-device-front {
    margin-left: 0;
  }

  .hero-devices .device-frame {
    width: min(70%, 280px);
  }

  .feature-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 700px) {
  .nav .container {
    min-height: 64px;
  }

  .brand {
    gap: 0.5rem;
  }

  .brand img {
    width: 40px;
    height: 40px;
    border-radius: 9px;
  }

  .wordmark {
    gap: 0.24rem;
    font-size: 1rem;
    letter-spacing: 0.035em;
  }

  .nav-links a:not(.btn) {
    display: none;
  }

  .nav-links {
    gap: 0.5rem;
  }

  .nav-links .btn {
    min-height: 42px;
    padding: 0.58rem 0.78rem;
    font-size: 0.9rem;
  }

  .hero {
    min-height: auto;
    padding: 3.25rem 0 3.5rem;
  }

  .hero-grid {
    gap: 1.25rem;
  }

  .hero::after {
    background:
      linear-gradient(90deg, rgba(17, 16, 14, 0.98) 0%, rgba(17, 16, 14, 0.9) 56%, rgba(17, 16, 14, 0.72) 100%),
      linear-gradient(0deg, var(--bg) 0%, rgba(17, 16, 14, 0) 34%);
  }

  .hero::before {
    background-position: 67% top;
    opacity: 0.42;
  }

  .hero-copy h1 {
    font-size: clamp(2.72rem, 13vw, 3.72rem);
  }

  .hero-copy .lede {
    font-size: 1.05rem;
  }

  .feature-grid {
    grid-template-columns: 1fr;
  }

  .hero-proof {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    margin-top: 1.25rem;
  }

  .hero-proof > span {
    min-height: 58px;
    padding: 0.7rem 0.55rem;
  }

  .hero-proof strong {
    font-size: 1.08rem;
  }

  .hero-proof small {
    display: none;
  }

  .showcase {
    background-attachment: scroll;
  }

  .device-frame {
    width: min(82%, 280px);
  }

  .palate-grid {
    gap: 1.5rem;
  }

  .palate-phone {
    width: min(100%, 290px);
  }

  .gallery-track .device-frame {
    width: min(72vw, 235px);
  }

  .footer-links {
    width: 100%;
    margin-left: 0;
  }
}

@media (max-width: 980px) {
  .oss-hero-grid,
  .package-grid,
  .font-grid {
    grid-template-columns: 1fr;
  }

  .license-family-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .notice-callout {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 700px) {
  .oss-hero {
    padding-top: 2.6rem;
  }

  .oss-hero h1 {
    max-width: none;
    font-size: clamp(2rem, 12vw, 2.45rem);
    overflow-wrap: anywhere;
  }

  .oss-section .section-head h2 {
    max-width: none;
    font-size: clamp(1.75rem, 10vw, 2.2rem);
  }

  .oss-summary-top {
    align-items: flex-start;
    flex-direction: column;
  }

  .license-family-grid,
  .oss-stat-grid {
    grid-template-columns: 1fr;
  }

  .license-family,
  .font-card {
    min-height: auto;
  }

  .package-group li {
    align-items: flex-start;
    flex-direction: column;
    gap: 0.15rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}

/* Explainer video */
.section.explainer .container { max-width: 1080px; }
.explainer-video {
  width: min(100%, 420px);
  height: auto;
  aspect-ratio: 9 / 16;
  display: block;
  margin: 0 auto;
  background: #0d0906;
  border-radius: 22px;
  border: 1px solid rgba(212, 168, 67, 0.25);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.5);
}

/* ---- Journal ---- */
.article .container { max-width: 760px; }

.article-header { padding: 4.5rem 0 2rem; }
.article-header h1 { font-size: clamp(2rem, 4.5vw, 3rem); }

.byline { margin-top: 0.9rem; color: var(--faint); font-size: 0.95rem; }

.article-body { color: var(--muted); font-size: 1.06rem; }
.article-body p { margin: 0 0 1.15rem; }
.article-body h2 { margin: 2.4rem 0 0.9rem; font-size: 1.55rem; color: var(--ink); }
.article-body h3 { margin: 1.8rem 0 0.7rem; font-size: 1.2rem; color: var(--ink); }
.article-body ul, .article-body ol { margin: 0 0 1.15rem; padding-left: 1.3rem; }
.article-body li { margin-bottom: 0.45rem; }
.article-body strong { color: var(--ink); }
.article-body img { border-radius: 14px; border: 1px solid var(--line); margin: 1.4rem 0; }
.article-body table { width: 100%; border-collapse: collapse; margin: 1.4rem 0; font-size: 0.95rem; }
.article-body th, .article-body td { padding: 0.6rem 0.7rem; border: 1px solid var(--line); text-align: left; }
.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.article-body th { color: var(--ink); background: var(--bg-soft); }
.article-body figure { margin: 1.4rem 0; }
.article-body figcaption { color: var(--faint); font-size: 0.88rem; margin-top: 0.4rem; }

.download-card { display: block; margin: 1.8rem 0; padding: 1.3rem 1.5rem; border: 1px solid var(--line-gold); border-radius: 14px; background: var(--bg-soft); color: var(--muted); text-decoration: none; }
.download-card strong { display: block; color: var(--gold); margin-bottom: 0.3rem; }

.author-box { display: flex; gap: 1rem; align-items: flex-start; margin: 3rem 0 1rem; padding: 1.3rem 1.5rem; border: 1px solid var(--line); border-radius: 14px; color: var(--muted); font-size: 0.97rem; }
.author-box img { border-radius: 10px; flex-shrink: 0; }

.article-list { list-style: none; margin: 0; padding: 0; }
.article-list li { border-bottom: 1px solid var(--line); padding: 1.6rem 0; }
.article-list a { color: var(--ink); font-family: var(--serif); font-size: 1.35rem; text-decoration: none; }
.article-list a:hover { color: var(--amber); }
.article-list p { color: var(--muted); margin-top: 0.5rem; }
.article-list .byline { margin-top: 0.35rem; }

/* ---- Comparison table ---- */
.cmp {
  --cmp-pageBg: #16130d;
  --cmp-panel: #1e1a12;
  --cmp-cardOurs: #231d12;
  --cmp-line: rgba(228, 210, 170, 0.10);
  --cmp-lineStrong: rgba(228, 210, 170, 0.20);
  --cmp-ink: #efe9db;
  --cmp-sub: #a79e8b;
  --cmp-faint: #6e6757;
  --cmp-accent: #d9a44e;
  --cmp-accentSoft: rgba(217, 164, 78, 0.13);
  --cmp-accentLine: rgba(217, 164, 78, 0.42);
  --cmp-featBg: rgba(217, 164, 78, 0.07);
  --cmp-featBgHover: rgba(217, 164, 78, 0.11);
  --cmp-rowHover: rgba(236, 231, 219, 0.035);
  --cmp-good: #a8c69a;
  --cmp-goodSoft: rgba(168, 198, 154, 0.14);
  --cmp-goodLine: rgba(168, 198, 154, 0.40);
  --cmp-chipBg: rgba(236, 231, 219, 0.05);
  --cmp-chipLine: rgba(236, 231, 219, 0.15);
  --cmp-pillInk: #191207;
  --cmp-serif: "Marcellus", Georgia, serif;
  --cmp-sans: "Archivo", system-ui, sans-serif;
  --cmp-mono: "IBM Plex Mono", ui-monospace, monospace;
  container-type: inline-size;
  width: 100%;
}
.cmp-inner {
  box-sizing: border-box;
  width: 100%;
  font-family: var(--cmp-sans);
  color: var(--cmp-ink);
  background: var(--cmp-pageBg);
  padding: 32px 34px 28px;
  border-radius: 14px;
}
.cmp * { box-sizing: border-box; }

/* Layout switch: table (wide container) <-> cards (narrow container).
   NOTE: the design handoff specifies an 820px breakpoint, but this site's
   article column is hard-capped at 760px (`.article .container` in the
   Journal section of this file) — .cmp can never reach 820px here, which
   would make table mode permanently unreachable. Recalibrated to 700px so
   table mode is actually reachable at the article's real max width. */
.cmp-table-wrap { display: block; }
.cmp-cards { display: none; flex-direction: column; gap: 13px; }
@container (max-width: 700px) {
  .cmp-inner { padding: 22px 16px 24px; }
  .cmp-table-wrap { display: none; }
  .cmp-cards { display: flex; }
}

/* Table
   NOTE: table/th/td below are qualified with their element type (table.cmp-table,
   th.cmp-th, td.cmp-td, ...) to out-specificity the pre-existing generic
   `.article-body table/th/td` rules (Journal section, above) that style the
   site's plain markdown tables — otherwise those rules win on specificity
   and silently override this block's padding/border/color. */
table.cmp-table { width: 100%; border-collapse: collapse; table-layout: fixed; margin: 0; font-size: inherit; }
.cmp-col-app { width: 18%; }
.cmp-col-price { width: 12%; }
.cmp-col-platforms { width: 13%; }
.cmp-col-privacy { width: 14%; }
.cmp-col-approach { width: 13%; }
.cmp-col-ai { width: 18%; }
.cmp-col-value { width: 12%; }

th.cmp-th {
  padding: 0 16px 11px;
  text-align: left;
  font-family: var(--cmp-sans);
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: .09em;
  text-transform: uppercase;
  color: var(--cmp-sub);
  background: transparent;
  vertical-align: bottom;
  border: none;
  border-bottom: 2px solid var(--cmp-lineStrong);
  /* NOTE: no white-space:nowrap — the design's column percentages were
     tuned for a ~1060px prototype canvas; at this site's real 760px cap,
     "Value tracking" needs to wrap to two lines to avoid overflow. */
}
th.cmp-th--app { padding-left: 19px; }

.cmp-row { background: transparent; }
.cmp-row:hover { background: var(--cmp-rowHover); }
.cmp-row--ours { background: var(--cmp-featBg); }
.cmp-row--ours:hover { background: var(--cmp-featBgHover); }

td.cmp-td {
  padding: 15px 16px;
  vertical-align: top;
  border: none;
  border-bottom: 1px solid var(--cmp-line);
  font-family: var(--cmp-sans);
  text-align: left;
}
td.cmp-td--app { padding-left: 16px; border-left: 3px solid transparent; }
tr.cmp-row--ours td.cmp-td--app { border-left-color: var(--cmp-accent); }

/* Shared: app name, best-for, pills */
.cmp-app-name-wrap { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px; }
.cmp-name {
  font-family: var(--cmp-serif);
  font-size: 19px;
  line-height: 1.12;
  color: var(--cmp-ink);
  font-weight: 400;
  letter-spacing: .005em;
}
.cmp-pill {
  display: inline-flex;
  align-items: center;
  font-family: var(--cmp-sans);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--cmp-pillInk);
  background: var(--cmp-accent);
  border-radius: 4px;
  padding: 2px 6px;
}
.cmp-pill--card { flex: none; }
.cmp-bestfor {
  font-family: var(--cmp-sans);
  font-size: 12.5px;
  line-height: 1.35;
  color: var(--cmp-sub);
  margin-top: 5px;
  font-weight: 400;
}

/* Price */
.cmp-price-main {
  display: block;
  font-family: var(--cmp-mono);
  font-size: 13px;
  color: var(--cmp-ink);
  font-weight: 500;
  letter-spacing: -.01em;
}
.cmp-price-sub {
  font-family: var(--cmp-mono);
  font-size: 11px;
  color: var(--cmp-faint);
  margin-top: 4px;
  line-height: 1.35;
}

/* Chips: platforms, AI, privacy */
.cmp-platforms { display: flex; flex-wrap: wrap; gap: 6px; }
.cmp-chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-family: var(--cmp-sans);
  font-size: 11.5px;
  line-height: 1.05;
  padding: 4px 8px;
  border-radius: 6px;
  white-space: nowrap;
  font-weight: 500;
  letter-spacing: .01em;
}
.cmp-chip--neutral { color: var(--cmp-sub); background: var(--cmp-chipBg); border: 1px solid var(--cmp-chipLine); }
.cmp-chip--ai { color: var(--cmp-accent); background: var(--cmp-accentSoft); border: 1px solid var(--cmp-accentLine); }
.cmp-chip--good { color: var(--cmp-good); background: var(--cmp-goodSoft); border: 1px solid var(--cmp-goodLine); }
.cmp-tag {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-family: var(--cmp-sans);
  background: var(--cmp-accent);
  color: var(--cmp-pillInk);
  font-weight: 700;
  font-size: 9.5px;
  letter-spacing: .07em;
  text-transform: uppercase;
  padding: 3px 7px;
  border-radius: 5px;
  white-space: nowrap;
}

/* Privacy dot */
.cmp-priv-dot { width: 7px; height: 7px; border-radius: 50%; flex: none; }
.cmp-priv-dot--good { background: var(--cmp-good); }
.cmp-priv-dot--cloud { background: transparent; border: 1.5px solid var(--cmp-sub); }
.cmp-priv-micro { font-family: var(--cmp-sans); font-size: 11px; color: var(--cmp-faint); margin-top: 5px; }

/* Approach / AI / Value text */
.cmp-approach { font-family: var(--cmp-sans); font-size: 13px; line-height: 1.35; color: var(--cmp-ink); font-weight: 400; }
.cmp-ai-row { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.cmp-none { font-family: var(--cmp-sans); font-size: 12.5px; color: var(--cmp-faint); font-weight: 400; }
.cmp-ai-micro { font-family: var(--cmp-sans); font-size: 11px; color: var(--cmp-faint); margin-top: 6px; line-height: 1.3; font-style: italic; }
.cmp-value { font-family: var(--cmp-sans); font-size: 12.5px; line-height: 1.35; color: var(--cmp-ink); font-weight: 400; }
.cmp-value-empty { font-family: var(--cmp-sans); font-size: 15px; color: var(--cmp-faint); line-height: 1; }

/* Cards */
.cmp-card {
  background: var(--cmp-panel);
  border: 1px solid var(--cmp-line);
  border-radius: 14px;
  padding: 16px 16px 14px;
}
.cmp-card--ours { background: var(--cmp-cardOurs); border: 1.5px solid var(--cmp-accentLine); }
.cmp-card-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; }
.cmp-card-head-main { min-width: 0; }
.cmp-card-divider { height: 1px; background: var(--cmp-line); margin: 13px 0; }
.cmp-def-row { display: flex; gap: 12px; align-items: baseline; padding: 7px 0; }
.cmp-def-label {
  flex: 0 0 82px;
  font-family: var(--cmp-sans);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--cmp-sub);
  line-height: 1.4;
  padding-top: 2px;
}
.cmp-def-val { flex: 1 1 auto; min-width: 0; }

/* Legend / footer */
.cmp-legend { display: flex; flex-wrap: wrap; gap: 18px; align-items: center; margin-top: 18px; }
.cmp-legend-item { display: inline-flex; align-items: center; gap: 8px; font-family: var(--cmp-sans); font-size: 11.5px; color: var(--cmp-sub); }
.cmp-legend-note { font-family: var(--cmp-sans); font-size: 11.5px; color: var(--cmp-faint); margin-left: auto; }
