:root {
  --paper: #f3ecdd;
  --paper-deep: #ede2cf;
  --paper-dark: #e5d8c1;
  --paper-light: #fbf7ec;
  --ink: #2f2b25;
  --ink-soft: #4c453b;
  --ink-muted: #6b6256;
  --line: #cdbfa8;
  --line-strong: #b9a88c;
  --accent: #895c44;
  --accent-dark: #6e4633;
  --accent-soft: #b98d72;
  --success: #55745c;
  --error: #a2544d;
  --shadow: rgba(55, 43, 30, 0.12);
  --shadow-strong: rgba(55, 43, 30, 0.22);

  --font-mono: "IBM Plex Mono", "JetBrains Mono", "Cascadia Mono", "Courier New",
    "Noto Sans Mono CJK SC", monospace;
  --font-display: "Iowan Old Style", "Songti SC", "Source Han Serif SC", "Noto Serif CJK SC",
    "STSong", "SimSun", Georgia, serif;

  --page: 1180px;
  --pad: clamp(20px, 4vw, 56px);
  --ease: cubic-bezier(0.22, 0.68, 0.32, 1);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  background: var(--paper);
}

body {
  margin: 0;
  color: var(--ink);
  font-family: var(--font-mono);
  font-size: 14px;
  line-height: 1.65;
  background-color: var(--paper);
  background-image:
    radial-gradient(circle at 16% 8%, rgba(255, 255, 255, 0.55), transparent 40%),
    radial-gradient(circle at 84% 92%, rgba(137, 92, 68, 0.07), transparent 46%),
    repeating-linear-gradient(0deg, rgba(90, 72, 50, 0.028) 0 1px, transparent 1px 3px),
    repeating-linear-gradient(90deg, rgba(90, 72, 50, 0.018) 0 1px, transparent 1px 5px);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1,
h2,
h3,
h4,
p,
dl,
dd,
figure,
blockquote {
  margin: 0;
}

ul,
ol {
  margin: 0;
  padding: 0;
}

a {
  color: inherit;
  text-decoration: none;
}

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

button {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  cursor: pointer;
}

button:disabled {
  cursor: not-allowed;
  opacity: 0.42;
}

.btn:disabled,
.btn:disabled:hover {
  border-color: var(--line-strong);
  background: transparent;
  color: var(--ink-muted);
  box-shadow: none;
  transform: none;
}

sup {
  font-size: 0.68em;
  line-height: 0;
}

::selection {
  background: rgba(137, 92, 68, 0.24);
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.skip-link {
  position: fixed;
  top: -100px;
  left: 16px;
  z-index: 100;
  padding: 10px 16px;
  background: var(--ink);
  color: var(--paper-light);
  font-size: 12px;
  transition: top 0.2s var(--ease);
}

.skip-link:focus {
  top: 12px;
}

.wrap {
  width: min(var(--page), calc(100% - 2 * var(--pad)));
  margin-inline: auto;
}

.eyebrow {
  font-family: var(--font-mono);
  font-size: 10px;
  line-height: 1.6;
  letter-spacing: 0.24em;
  color: var(--accent);
  text-transform: uppercase;
}

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(243, 236, 221, 0.88);
  border-bottom: 1px solid var(--line);
  transition: box-shadow 0.3s var(--ease);
}

@supports (backdrop-filter: blur(8px)) {
  .site-header {
    background: rgba(243, 236, 221, 0.76);
    backdrop-filter: blur(12px);
  }
}

.site-header.is-scrolled {
  box-shadow: 0 12px 36px rgba(55, 43, 30, 0.07);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 32px;
  min-height: 72px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  flex: 0 0 auto;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border: 2px solid var(--ink);
  background: var(--paper-light);
  box-shadow: 3px 3px 0 rgba(55, 43, 30, 0.12);
  font-family: var(--font-display);
  font-size: 25px;
  line-height: 1;
}

.brand-type {
  display: flex;
  flex-direction: column;
  line-height: 1.12;
}

.brand-type strong {
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.2em;
}

.brand-type small {
  color: var(--ink-muted);
  font-size: 10px;
  letter-spacing: 0.32em;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: clamp(18px, 2.2vw, 30px);
  margin-left: auto;
  font-size: 11px;
  letter-spacing: 0.14em;
}

.site-nav a {
  position: relative;
  padding: 8px 0;
  color: var(--ink-muted);
  transition: color 0.2s var(--ease);
}

.site-nav a::after {
  content: "";
  position: absolute;
  right: 100%;
  bottom: 2px;
  left: 0;
  height: 2px;
  background: var(--accent);
  transition: right 0.28s var(--ease);
}

.site-nav a:hover,
.site-nav a.is-active {
  color: var(--ink);
}

.site-nav a.is-active::after {
  right: 0;
}

.header-cta {
  flex: 0 0 auto;
  padding: 9px 15px;
  border: 1px solid var(--ink);
  font-size: 11px;
  letter-spacing: 0.12em;
  transition:
    background 0.2s var(--ease),
    color 0.2s var(--ease);
}

.header-cta span {
  display: inline-block;
  margin-left: 6px;
  transition: transform 0.2s var(--ease);
}

.header-cta:hover {
  background: var(--ink);
  color: var(--paper-light);
}

.header-cta:hover span {
  transform: translateY(2px);
}

/* ---------- Hero ---------- */

.hero {
  padding: clamp(64px, 8.5vw, 118px) 0 clamp(56px, 7vw, 92px);
  overflow: clip;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(0, 0.98fr);
  align-items: center;
  gap: clamp(40px, 6vw, 90px);
}

.hero-copy {
  position: relative;
  z-index: 1;
}

.hero h1 {
  margin: 18px 0 26px;
  font-family: var(--font-display);
  font-size: clamp(54px, 7.2vw, 102px);
  font-weight: 400;
  line-height: 1.03;
  letter-spacing: -0.035em;
}

.hero h1 em {
  position: relative;
  font-style: normal;
  color: var(--accent);
}

.hero h1 em::after {
  content: "";
  position: absolute;
  right: 3%;
  bottom: 0.03em;
  left: 3%;
  height: 0.06em;
  background: var(--accent);
  opacity: 0.45;
  transform: rotate(-1.4deg);
}

.lede {
  max-width: 34em;
  color: var(--ink-soft);
  font-family: var(--font-display);
  font-size: clamp(17px, 1.42vw, 20px);
  line-height: 1.95;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 34px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 14px 22px;
  border: 1px solid var(--ink);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.09em;
  transition:
    background 0.2s var(--ease),
    border-color 0.2s var(--ease),
    color 0.2s var(--ease),
    transform 0.2s var(--ease),
    box-shadow 0.2s var(--ease);
}

.btn span {
  font-size: 14px;
}

.btn-ink {
  background: var(--ink);
  color: var(--paper-light);
  box-shadow: 4px 4px 0 rgba(55, 43, 30, 0.14);
}

.btn-ink:hover {
  background: var(--accent);
  border-color: var(--accent);
  box-shadow: 6px 6px 0 rgba(55, 43, 30, 0.18);
  transform: translate(-1px, -1px);
}

.btn-ghost {
  background: transparent;
}

.btn-ghost:hover {
  background: var(--paper-light);
}

.hero-fineprint {
  margin-top: 26px;
  color: var(--ink-muted);
  font-size: 9px;
  letter-spacing: 0.16em;
}

.hero-stage {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 540px;
  padding: 24px 0;
}

.hero-stage::before {
  content: "";
  position: absolute;
  inset: 11% -3% 4% 5%;
  border: 1px solid var(--line);
  background: rgba(251, 247, 236, 0.28);
  transform: rotate(1.7deg);
}

.paper-sheet {
  position: absolute;
  width: min(100%, 520px);
  height: 420px;
  background: var(--paper-dark);
  box-shadow: 0 18px 36px rgba(55, 43, 30, 0.08);
  transform: rotate(-3.6deg);
}

.paper-sheet::after {
  content: "";
  position: absolute;
  inset: 14px;
  border: 1px dashed rgba(47, 43, 37, 0.14);
}

.drill-card {
  position: relative;
  width: min(100%, 520px);
  padding: 24px 30px 22px;
  border: 1px solid var(--line-strong);
  background: var(--paper-light);
  background-image: repeating-linear-gradient(
    0deg,
    rgba(90, 72, 50, 0.018) 0 1px,
    transparent 1px 4px
  );
  box-shadow:
    9px 11px 0 rgba(55, 43, 30, 0.06),
    0 28px 56px rgba(55, 43, 30, 0.13);
}

.drill-card::before {
  content: "";
  position: absolute;
  top: -11px;
  left: 50%;
  width: 108px;
  height: 24px;
  background: rgba(205, 191, 168, 0.58);
  border-right: 1px dashed rgba(117, 109, 97, 0.25);
  border-left: 1px dashed rgba(117, 109, 97, 0.25);
  transform: translateX(-50%) rotate(-1.2deg);
}

.drill-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
  color: var(--ink-muted);
  font-size: 8px;
  letter-spacing: 0.18em;
}

.drill-meaning {
  min-height: 1.25em;
  margin: 24px 0 4px;
  font-family: var(--font-display);
  font-size: clamp(38px, 4vw, 54px);
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.drill-label {
  color: var(--ink-muted);
  font-size: 9px;
  letter-spacing: 0.16em;
}

.drill-answer {
  display: flex;
  align-items: flex-end;
  min-height: 62px;
  margin-top: 12px;
  padding-bottom: 7px;
  border-bottom: 2px solid var(--ink);
  font-size: clamp(27px, 3vw, 38px);
  line-height: 1.15;
  letter-spacing: 0.1em;
}

.letter {
  display: inline-block;
  min-width: 0.62em;
  text-align: center;
  transition: opacity 0.16s var(--ease);
}

.letter.is-pending {
  opacity: 0.15;
}

.caret {
  display: inline-block;
  width: 0.12em;
  height: 1.1em;
  margin: 0 0.04em 0.08em;
  background: var(--accent);
  animation: caret-blink 1.05s steps(1) infinite;
}

@keyframes caret-blink {
  50% {
    opacity: 0;
  }
}

.drill-feedback {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 30px;
  margin-top: 14px;
  color: var(--success);
  font-size: 10px;
  letter-spacing: 0.05em;
  opacity: 0;
  transform: translateY(4px);
  transition:
    opacity 0.25s var(--ease),
    transform 0.25s var(--ease);
}

.drill-feedback.is-visible {
  opacity: 1;
  transform: none;
}

.feedback-mark {
  display: grid;
  place-items: center;
  width: 21px;
  height: 21px;
  border: 1px solid var(--success);
  font-size: 11px;
}

.feedback-meta {
  margin-left: auto;
  color: var(--ink-muted);
  font-size: 8px;
  letter-spacing: 0.04em;
}

.drill-keys {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 14px;
  margin-top: 10px;
  color: var(--ink-muted);
  font-size: 9px;
}

kbd {
  display: inline-block;
  padding: 0 4px;
  border: 1px solid var(--line);
  background: var(--paper);
  box-shadow: 0 1px 0 var(--line);
  font-family: var(--font-mono);
  font-size: 8px;
  line-height: 1.7;
}

.drill-progress {
  height: 2px;
  margin-top: 18px;
  background: var(--line);
  overflow: hidden;
}

.drill-progress span {
  display: block;
  width: 60%;
  height: 100%;
  background: var(--accent);
  transition: width 0.6s var(--ease);
}

.drill-progress-label {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: 7px;
  color: var(--ink-muted);
  font-size: 8px;
  letter-spacing: 0.08em;
}

.stage-note {
  position: absolute;
  bottom: -4px;
  left: -12px;
  display: flex;
  align-items: baseline;
  gap: 7px;
  padding: 10px 15px;
  background: var(--ink);
  color: var(--paper-light);
  box-shadow: 4px 4px 0 rgba(55, 43, 30, 0.16);
  font-size: 8px;
  letter-spacing: 0.12em;
  transform: rotate(-2deg);
}

.stage-note strong {
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 400;
  letter-spacing: 0;
}

/* ---------- Ticker ---------- */

.ticker {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: rgba(251, 247, 236, 0.34);
}

.ticker-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}

.ticker-grid > div {
  display: flex;
  align-items: baseline;
  gap: 12px;
  padding: 20px 22px;
  border-left: 1px dashed var(--line);
}

.ticker-grid > div:first-child {
  border-left: 0;
  padding-left: 0;
}

.ticker-grid > div:last-child {
  padding-right: 0;
}

.ticker strong {
  font-family: var(--font-display);
  font-size: clamp(25px, 2.5vw, 36px);
  font-weight: 400;
  line-height: 1;
  white-space: nowrap;
}

.ticker span {
  color: var(--ink-muted);
  font-size: 9px;
  letter-spacing: 0.1em;
  line-height: 1.5;
}

/* ---------- Section shell ---------- */

.section {
  padding: clamp(72px, 9vw, 128px) 0;
  border-bottom: 1px solid var(--line);
}

section[id] {
  scroll-margin-top: 88px;
}

.section-head {
  display: grid;
  grid-template-columns: 110px minmax(0, 1fr) minmax(0, 0.92fr);
  gap: 22px clamp(24px, 3vw, 44px);
  align-items: start;
  margin-bottom: clamp(38px, 5vw, 64px);
}

.section-no {
  color: var(--line-strong);
  font-family: var(--font-display);
  font-size: clamp(54px, 6vw, 84px);
  font-weight: 400;
  line-height: 0.82;
  letter-spacing: -0.04em;
}

.section-heading .eyebrow {
  margin-bottom: 10px;
}

.section-heading h2 {
  font-family: var(--font-display);
  font-size: clamp(34px, 4.4vw, 60px);
  font-weight: 400;
  line-height: 1.14;
  letter-spacing: -0.025em;
}

.section-lede {
  padding-top: 34px;
  color: var(--ink-soft);
  font-family: var(--font-display);
  font-size: clamp(15px, 1.25vw, 18px);
  line-height: 1.95;
}

/* ---------- Why ---------- */

.why-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--line-strong);
  border-bottom: 1px solid var(--line-strong);
}

.why-card {
  padding: 30px 28px 34px;
  border-left: 1px dashed var(--line);
}

.why-card:first-child {
  border-left: 0;
  padding-left: 0;
}

.why-card:last-child {
  padding-right: 0;
}

.why-index {
  color: var(--accent);
  font-size: 9px;
  letter-spacing: 0.18em;
}

.why-card h3 {
  margin: 16px 0 12px;
  font-family: var(--font-display);
  font-size: clamp(22px, 2vw, 28px);
  font-weight: 400;
  line-height: 1.3;
}

.why-card p {
  max-width: 26em;
  color: var(--ink-muted);
  font-size: 12px;
  line-height: 1.9;
}

.pull-quote {
  position: relative;
  max-width: 860px;
  margin: clamp(50px, 7vw, 88px) auto 0;
  padding: 0 24px;
  text-align: center;
  font-family: var(--font-display);
  font-size: clamp(26px, 3.4vw, 44px);
  line-height: 1.55;
  letter-spacing: -0.015em;
}

.quote-mark {
  position: absolute;
  top: -0.28em;
  left: 50%;
  color: var(--line);
  font-family: Georgia, serif;
  font-size: 2.2em;
  line-height: 1;
  transform: translateX(-50%);
}

.quote-seal {
  display: inline-block;
  margin-left: 16px;
  padding: 3px 10px;
  border: 2px solid var(--accent);
  color: var(--accent);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  vertical-align: 0.12em;
  transform: rotate(-2deg);
}

/* ---------- Plates ---------- */

.plate {
  margin: 0;
}

.plate-wide {
  margin-bottom: clamp(32px, 4vw, 48px);
}

.plate-frame {
  padding: 10px;
  border: 1px solid var(--line-strong);
  background: var(--paper-light);
  box-shadow:
    7px 9px 0 rgba(55, 43, 30, 0.05),
    0 18px 40px rgba(55, 43, 30, 0.07);
}

.plate-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 0 2px 9px;
  padding-bottom: 8px;
  border-bottom: 1px dashed var(--line);
  color: var(--ink-muted);
  font-size: 8px;
  letter-spacing: 0.14em;
}

.plate-frame img {
  width: 100%;
  border: 1px solid var(--line);
  background: var(--paper);
}

.plate figcaption {
  display: flex;
  flex-direction: column;
  gap: 7px;
  margin-top: 13px;
  color: var(--ink-muted);
  font-size: 12px;
  line-height: 1.8;
}

.plate figcaption > span {
  color: var(--accent);
  font-size: 8px;
  letter-spacing: 0.18em;
}

.screen-duo {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(24px, 3vw, 40px);
  margin-bottom: clamp(48px, 6vw, 78px);
}

/* ---------- Feature split ---------- */

.feature-split {
  display: grid;
  grid-template-columns: minmax(0, 0.78fr) minmax(0, 1.22fr);
  gap: clamp(34px, 5vw, 72px);
  align-items: center;
  margin-bottom: clamp(48px, 6vw, 78px);
}

.feature-copy h3 {
  margin: 12px 0 18px;
  font-family: var(--font-display);
  font-size: clamp(30px, 3vw, 44px);
  font-weight: 400;
  line-height: 1.22;
  letter-spacing: -0.02em;
}

.feature-copy > p:not(.eyebrow) {
  color: var(--ink-soft);
  font-size: 13px;
  line-height: 1.95;
}

.check-list {
  display: grid;
  gap: 12px;
  margin-top: 24px;
  list-style: none;
}

.check-list li {
  position: relative;
  padding-left: 22px;
  color: var(--ink-muted);
  font-size: 12px;
  line-height: 1.85;
}

.check-list li strong {
  color: var(--ink-soft);
  font-weight: 500;
}

.check-list li::before {
  content: "";
  position: absolute;
  top: 0.62em;
  left: 1px;
  width: 8px;
  height: 8px;
  border: 1px solid var(--accent);
  transform: rotate(45deg);
}

/* ---------- Ambient ---------- */

.ambient-band {
  display: grid;
  grid-template-columns: minmax(0, 0.72fr) minmax(0, 1.28fr);
  gap: clamp(30px, 4vw, 60px);
  align-items: center;
  padding: clamp(28px, 4vw, 44px) 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.ambient-copy h3 {
  margin: 10px 0 14px;
  font-family: var(--font-display);
  font-size: clamp(28px, 2.6vw, 38px);
  font-weight: 400;
  line-height: 1.24;
}

.ambient-copy > p:not(.eyebrow) {
  max-width: 30em;
  color: var(--ink-muted);
  font-size: 12px;
  line-height: 1.9;
}

.ambient-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 20px;
}

.btn-small {
  padding: 8px 13px;
  font-size: 10px;
  letter-spacing: 0.08em;
}

.btn-quiet {
  border-color: var(--line-strong);
  color: var(--ink-muted);
}

.btn-quiet:hover {
  border-color: var(--ink);
  color: var(--ink);
  background: var(--paper-light);
}

.ambient-status {
  color: var(--ink-muted);
  font-size: 8px;
  letter-spacing: 0.12em;
}

.plate-ambient .plate-frame {
  padding: 7px;
}

/* ---------- Demo ---------- */

.section-demo {
  background:
    radial-gradient(circle at 50% 0%, rgba(255, 255, 255, 0.5), transparent 55%),
    rgba(251, 247, 236, 0.32);
}

.browser {
  border: 1px solid var(--ink);
  background: var(--paper-light);
  box-shadow:
    10px 12px 0 rgba(55, 43, 30, 0.06),
    0 30px 70px rgba(55, 43, 30, 0.09);
}

.browser-bar {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 9px 13px;
  border-bottom: 1px solid var(--line-strong);
  background: var(--paper-deep);
}

.browser-dots {
  display: flex;
  gap: 5px;
  flex: 0 0 auto;
}

.browser-dots i {
  width: 7px;
  height: 7px;
  border: 1px solid var(--ink-muted);
  border-radius: 50%;
}

.browser-path {
  min-width: 0;
  overflow: hidden;
  color: var(--ink-muted);
  font-size: 9px;
  letter-spacing: 0.1em;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.browser-actions {
  display: flex;
  flex: 0 0 auto;
  gap: 7px;
  margin-left: auto;
}

.browser-actions button,
.browser-actions a {
  padding: 5px 9px;
  border: 1px solid var(--line-strong);
  background: var(--paper-light);
  color: var(--ink-soft);
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.04em;
  transition:
    background 0.2s var(--ease),
    border-color 0.2s var(--ease),
    color 0.2s var(--ease);
}

.browser-actions button:hover,
.browser-actions a:hover {
  border-color: var(--ink);
  background: var(--ink);
  color: var(--paper-light);
}

.browser-body {
  position: relative;
  height: clamp(560px, 78vh, 840px);
  background: var(--paper);
}

.browser-body iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
  background: var(--paper);
}

.iframe-loading {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background:
    radial-gradient(circle at 50% 45%, rgba(255, 255, 255, 0.5), transparent 45%),
    var(--paper);
  text-align: center;
  opacity: 1;
  visibility: visible;
  transition:
    opacity 0.5s var(--ease),
    visibility 0.5s var(--ease);
}

.iframe-loading.is-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.loader-mark {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border: 2px solid var(--ink);
  background: var(--paper-light);
  box-shadow: 4px 4px 0 rgba(55, 43, 30, 0.1);
  font-family: var(--font-display);
  font-size: 32px;
  line-height: 1;
  animation: loader-pulse 1.8s var(--ease) infinite;
}

@keyframes loader-pulse {
  50% {
    transform: translateY(-4px);
    box-shadow: 4px 8px 0 rgba(55, 43, 30, 0.06);
  }
}

.iframe-loading p {
  font-family: var(--font-display);
  font-size: 22px;
}

.iframe-loading small {
  color: var(--ink-muted);
  font-size: 9px;
  letter-spacing: 0.06em;
}

.demo-note {
  max-width: 78em;
  margin-top: 20px;
  padding-left: 14px;
  border-left: 2px solid var(--accent-soft);
  color: var(--ink-muted);
  font-size: 11px;
  line-height: 1.9;
}

.inline-link {
  border-bottom: 1px solid var(--line-strong);
  color: var(--ink-soft);
}

.inline-link:hover {
  border-color: var(--accent);
  color: var(--accent);
}

/* ---------- Packs ---------- */

.packs-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.88fr) minmax(0, 1.12fr);
  gap: clamp(36px, 5vw, 72px);
  align-items: start;
}

.pack-sum {
  margin-top: 2px;
  border-top: 2px solid var(--ink);
  border-bottom: 1px solid var(--line-strong);
}

.pack-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 20px;
  padding: 14px 2px;
  border-bottom: 1px dashed var(--line);
}

.pack-row > span {
  font-size: 12px;
  letter-spacing: 0.03em;
}

.pack-row em {
  margin-left: 7px;
  color: var(--ink-muted);
  font-size: 8px;
  font-style: normal;
  letter-spacing: 0.08em;
}

.pack-row strong {
  font-family: var(--font-display);
  font-size: 27px;
  font-weight: 400;
  line-height: 1;
  white-space: nowrap;
}

.pack-total {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 20px;
  padding: 17px 2px 2px;
}

.pack-total span {
  color: var(--ink-muted);
  font-size: 10px;
  letter-spacing: 0.12em;
}

.pack-total strong {
  color: var(--accent);
  font-family: var(--font-display);
  font-size: 42px;
  font-weight: 400;
  line-height: 1;
}

.license-line {
  margin-top: 24px;
  color: var(--ink-muted);
  font-size: 9px;
  letter-spacing: 0.04em;
  line-height: 1.8;
}

.license-line a {
  border-bottom: 1px solid var(--line-strong);
  color: var(--ink-soft);
}

.license-line a:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.plate-packs figcaption {
  margin-top: 15px;
}

/* ---------- Tech ---------- */

.tech {
  position: relative;
  overflow: hidden;
  padding: clamp(72px, 9vw, 128px) 0;
  background: var(--ink);
  color: var(--paper);
}

.tech::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 82% 0%, rgba(185, 141, 114, 0.16), transparent 44%),
    repeating-linear-gradient(0deg, rgba(243, 236, 221, 0.035) 0 1px, transparent 1px 4px),
    repeating-linear-gradient(90deg, rgba(243, 236, 221, 0.025) 0 1px, transparent 1px 6px);
  pointer-events: none;
}

.tech .wrap {
  position: relative;
}

.section-head-dark .section-no {
  color: rgba(243, 236, 221, 0.14);
}

.section-head-dark .eyebrow {
  color: var(--accent-soft);
}

.section-head-dark h2 {
  color: var(--paper-light);
}

.section-head-dark .section-lede {
  color: rgba(243, 236, 221, 0.68);
}

.arch {
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1fr;
  align-items: stretch;
  gap: 14px;
  margin-bottom: clamp(36px, 4vw, 52px);
}

.arch-card {
  padding: 22px 22px 24px;
  border: 1px solid rgba(243, 236, 221, 0.22);
  background: rgba(243, 236, 221, 0.035);
}

.arch-label {
  color: var(--accent-soft);
  font-size: 8px;
  letter-spacing: 0.2em;
}

.arch-card strong {
  display: block;
  margin: 12px 0 9px;
  color: var(--paper-light);
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 400;
  line-height: 1.35;
}

.arch-card p {
  color: rgba(243, 236, 221, 0.58);
  font-size: 11px;
  line-height: 1.85;
}

.arch-arrow {
  display: grid;
  place-items: center;
  color: var(--accent-soft);
  font-size: 17px;
}

.specs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin: 0;
  border-top: 1px solid rgba(243, 236, 221, 0.2);
  border-left: 1px solid rgba(243, 236, 221, 0.2);
}

.specs > div {
  padding: 17px 18px;
  border-right: 1px solid rgba(243, 236, 221, 0.2);
  border-bottom: 1px solid rgba(243, 236, 221, 0.2);
}

.specs dt {
  color: rgba(243, 236, 221, 0.44);
  font-size: 8px;
  letter-spacing: 0.16em;
}

.specs dd {
  margin: 5px 0 0;
  color: var(--paper);
  font-size: 12px;
  line-height: 1.6;
}

.tech-note {
  margin-top: clamp(32px, 4vw, 48px);
  color: var(--paper-light);
  font-family: var(--font-display);
  font-size: clamp(20px, 2.4vw, 30px);
  line-height: 1.5;
}

/* ---------- Timeline ---------- */

.timeline {
  list-style: none;
  border-top: 1px solid var(--line-strong);
}

.timeline li {
  display: grid;
  grid-template-columns: 180px minmax(0, 1fr);
  gap: 24px;
  padding: 22px 0;
  border-bottom: 1px solid var(--line);
}

.timeline .ver {
  color: var(--ink-muted);
  font-size: 10px;
  letter-spacing: 0.08em;
  line-height: 1.8;
}

.timeline .ver em {
  display: inline-block;
  margin-left: 6px;
  padding: 1px 5px;
  border: 1px solid var(--accent);
  color: var(--accent);
  font-size: 7px;
  font-style: normal;
  letter-spacing: 0.14em;
  vertical-align: 1px;
}

.timeline strong {
  display: block;
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 400;
  line-height: 1.4;
}

.timeline p {
  margin-top: 5px;
  color: var(--ink-muted);
  font-size: 12px;
  line-height: 1.85;
}

.timeline li.is-current {
  margin: 0 -16px;
  padding-right: 16px;
  padding-left: 16px;
  background: linear-gradient(90deg, rgba(137, 92, 68, 0.09), transparent 72%);
}

.timeline li.is-current .ver {
  color: var(--accent);
}

/* ---------- CTA / footer ---------- */

.cta {
  padding: clamp(78px, 10vw, 140px) 0;
  text-align: center;
}

.cta h2 {
  margin: 14px 0 16px;
  font-family: var(--font-display);
  font-size: clamp(38px, 5vw, 70px);
  font-weight: 400;
  line-height: 1.15;
  letter-spacing: -0.03em;
}

.cta > .wrap > p:not(.eyebrow) {
  max-width: 36em;
  margin-inline: auto;
  color: var(--ink-muted);
  font-size: 13px;
  line-height: 1.9;
}

.cta .hero-actions {
  justify-content: center;
  margin-top: 28px;
}

.footer {
  border-top: 1px solid var(--line-strong);
  background: var(--paper-deep);
}

.footer .wrap {
  padding: 48px 0 38px;
}

.footer-word {
  color: var(--ink);
  font-family: var(--font-display);
  font-size: clamp(44px, 7vw, 88px);
  font-weight: 400;
  line-height: 1;
  letter-spacing: -0.05em;
}

.footer-line {
  margin-top: 10px;
  color: var(--ink-muted);
  font-family: var(--font-display);
  font-size: 17px;
}

.footer-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 26px;
  margin-top: 34px;
  padding-top: 18px;
  border-top: 1px dashed var(--line-strong);
  color: var(--ink-muted);
  font-size: 8px;
  letter-spacing: 0.08em;
}

.footer-meta a {
  margin-left: auto;
  border-bottom: 1px solid var(--line-strong);
  transition:
    border-color 0.2s var(--ease),
    color 0.2s var(--ease);
}

.footer-meta a:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.colophon {
  margin-top: 15px;
  color: var(--ink-muted);
  font-size: 8px;
  letter-spacing: 0.05em;
  opacity: 0.8;
}

/* ---------- Device switcher ---------- */

.demo-devices {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
}

.demo-device {
  padding: 7px 14px;
  border: 1px solid var(--line-strong);
  background: transparent;
  color: var(--ink-soft);
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.08em;
  cursor: pointer;
  transition:
    background 0.2s var(--ease),
    border-color 0.2s var(--ease),
    color 0.2s var(--ease);
}

.demo-device:hover {
  border-color: var(--ink);
}

.demo-device.is-active {
  border-color: var(--ink);
  background: var(--ink);
  color: var(--paper-light);
}

.demo-device-hint {
  margin-left: auto;
  color: var(--ink-muted);
  font-size: 9px;
  letter-spacing: 0.06em;
}

.browser {
  transition: max-width 0.4s var(--ease);
}

.browser.is-android,
.browser.is-ios {
  margin-inline: auto;
}

.browser.is-android {
  max-width: 430px;
}

.browser.is-ios {
  max-width: 392px;
}

.browser.is-android .browser-body,
.browser.is-ios .browser-body {
  height: clamp(600px, 78vh, 780px);
}

.browser.is-android .browser-path,
.browser.is-ios .browser-path {
  display: none;
}

/* ---------- Downloads ---------- */

.section-download {
  border-top: 1px dashed var(--line-strong);
  background:
    radial-gradient(circle at 85% 10%, rgba(255, 255, 255, 0.45), transparent 45%),
    rgba(251, 247, 236, 0.2);
}

.download-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.download-card {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 22px 22px 20px;
  border: 1px solid var(--ink);
  background: var(--paper-light);
  box-shadow: 6px 7px 0 rgba(55, 43, 30, 0.05);
}

.download-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.download-os {
  color: var(--ink);
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.14em;
}

.download-tag {
  padding: 3px 7px;
  border: 1px solid var(--line-strong);
  color: var(--ink-muted);
  font-family: var(--font-mono);
  font-size: 8px;
  letter-spacing: 0.08em;
}

.download-card h3 {
  font-family: var(--font-display);
  font-size: 27px;
  font-weight: 400;
  line-height: 1.2;
}

.download-card > p {
  color: var(--ink-muted);
  font-size: 11px;
  line-height: 1.85;
}

.download-facts {
  border-top: 1px dashed var(--line-strong);
  border-bottom: 1px dashed var(--line-strong);
}

.download-facts > div {
  display: flex;
  align-items: baseline;
  gap: 12px;
  padding: 7px 0;
  border-bottom: 1px dashed var(--line);
}

.download-facts > div:last-child {
  border-bottom: 0;
}

.download-facts dt {
  flex: 0 0 auto;
  color: var(--ink-muted);
  font-size: 9px;
  letter-spacing: 0.08em;
}

.download-facts dd {
  min-width: 0;
  margin-left: auto;
  overflow-wrap: anywhere;
  color: var(--ink-soft);
  font-family: var(--font-mono);
  font-size: 9px;
  text-align: right;
}

.download-btn {
  justify-content: center;
  width: 100%;
  margin-top: auto;
}

.download-steps {
  margin: 0;
  padding-left: 18px;
  color: var(--ink-soft);
  font-size: 11px;
  line-height: 2;
}

.download-steps li::marker {
  color: var(--accent);
  font-family: var(--font-mono);
  font-size: 10px;
}

.download-notes {
  padding-top: 10px;
  border-top: 1px dashed var(--line);
  color: var(--ink-muted);
  font-size: 10px;
  line-height: 1.8;
}

.download-notes summary {
  color: var(--ink-soft);
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.04em;
  cursor: pointer;
  transition: color 0.2s var(--ease);
}

.download-notes summary:hover {
  color: var(--accent);
}

.download-notes p {
  margin-top: 8px;
}

.download-notes p + p {
  margin-top: 6px;
}

.download-foot {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 28px;
  margin-top: 22px;
  padding-top: 16px;
  border-top: 1px dashed var(--line-strong);
}

.download-checksum {
  color: var(--ink-muted);
  font-family: var(--font-mono);
  font-size: 8px;
  letter-spacing: 0.02em;
  overflow-wrap: anywhere;
}

.download-checksum code {
  color: var(--ink-soft);
  font-family: inherit;
}

.download-meta {
  margin-left: auto;
  color: var(--ink-muted);
  font-size: 8px;
  letter-spacing: 0.08em;
}

/* ---------- Reveal ---------- */

.js .reveal {
  opacity: 0;
  transform: translateY(18px);
  transition:
    opacity 0.7s var(--ease) var(--delay, 0s),
    transform 0.7s var(--ease) var(--delay, 0s);
}

.js .reveal.is-visible {
  opacity: 1;
  transform: none;
}

/* ---------- Responsive ---------- */

@media (max-width: 1080px) {
  .site-nav {
    display: none;
  }

  .hero-grid {
    grid-template-columns: 1fr;
    gap: 48px;
  }

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

  .hero-stage {
    width: min(100%, 620px);
    margin-inline: auto;
  }

  .section-head {
    grid-template-columns: 84px minmax(0, 1fr);
  }

  .section-lede {
    grid-column: 2;
    max-width: 46em;
    padding-top: 0;
  }

  .feature-split,
  .packs-layout {
    grid-template-columns: 1fr;
  }

  .feature-copy {
    max-width: 620px;
  }

  .packs-copy {
    max-width: 720px;
  }

  .ambient-band {
    grid-template-columns: 1fr;
  }

  .ambient-copy {
    max-width: 620px;
  }

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

  .arch-arrow {
    transform: rotate(90deg);
  }

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

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

@media (max-width: 820px) {
  .header-inner {
    gap: 16px;
  }

  .download-grid {
    grid-template-columns: 1fr;
    max-width: 640px;
    margin-inline: auto;
  }

  .header-cta {
    margin-left: auto;
  }

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

  .ticker-grid > div {
    padding: 16px 18px;
    border-bottom: 1px dashed var(--line);
  }

  .ticker-grid > div:nth-child(odd) {
    padding-left: 0;
    border-left: 0;
  }

  .ticker-grid > div:nth-child(even) {
    padding-right: 0;
  }

  .ticker-grid > div:nth-last-child(-n + 2) {
    border-bottom: 0;
  }

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

  .why-card {
    padding: 24px 0 26px;
    border-top: 1px dashed var(--line);
    border-left: 0;
  }

  .why-card:first-child {
    border-top: 0;
    padding-top: 26px;
  }

  .why-card:last-child {
    padding-right: 0;
    padding-bottom: 28px;
  }

  .screen-duo {
    grid-template-columns: 1fr;
  }

  .timeline li {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .browser-bar {
    flex-wrap: wrap;
    gap: 8px 12px;
  }

  .browser-path {
    order: 3;
    flex-basis: 100%;
    padding-top: 2px;
  }

  .browser-body {
    height: 620px;
  }
}

@media (max-width: 620px) {
  :root {
    --pad: 20px;
  }

  .header-inner {
    min-height: 64px;
  }

  .brand-mark {
    width: 36px;
    height: 36px;
    font-size: 22px;
  }

  .brand-type strong {
    font-size: 11px;
  }

  .brand-type small {
    font-size: 9px;
  }

  .header-cta {
    padding: 7px 10px;
    font-size: 10px;
  }

  .hero {
    padding-top: 48px;
  }

  .hero h1 {
    font-size: clamp(48px, 15vw, 66px);
  }

  .hero-stage {
    min-height: 0;
    padding: 10px 0 26px;
  }

  .drill-card {
    padding: 22px 20px 20px;
  }

  .drill-meaning {
    font-size: 40px;
  }

  .drill-answer {
    min-height: 54px;
    font-size: 27px;
  }

  .feedback-meta {
    display: none;
  }

  .stage-note {
    right: 0;
    bottom: 0;
    left: auto;
    transform: rotate(1.5deg);
  }

  .section-head {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .section-no {
    font-size: 46px;
    line-height: 0.9;
  }

  .section-heading h2 {
    font-size: clamp(32px, 9vw, 44px);
  }

  .section-lede {
    grid-column: 1;
    font-size: 15px;
  }

  .section-head {
    margin-bottom: 32px;
  }

  .quote-seal {
    display: block;
    width: fit-content;
    margin: 16px auto 0;
  }

  .pull-quote {
    padding: 0;
    font-size: 25px;
  }

  .quote-mark {
    display: none;
  }

  .ambient-actions {
    gap: 8px;
  }

  .browser-actions {
    width: 100%;
    margin-left: 0;
  }

  .browser-actions button,
  .browser-actions a {
    flex: 1;
    text-align: center;
  }

  .browser-body {
    height: 560px;
  }

  .demo-device-hint {
    display: none;
  }

  .download-card {
    padding: 18px 16px 16px;
  }

  .download-foot {
    flex-direction: column;
    gap: 6px;
  }

  .download-meta {
    margin-left: 0;
  }

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

  .pack-row em {
    display: block;
    margin: 3px 0 0;
  }

  .pack-total strong {
    font-size: 36px;
  }

  .timeline .ver {
    font-size: 9px;
  }

  .timeline strong {
    font-size: 20px;
  }

  .footer-meta a {
    margin-left: 0;
  }
}

/* ---------- Motion preferences ---------- */

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

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

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

  .caret {
    animation: none;
  }
}
