/* =========================================================
   Flipbook Lab — design system
   Warm paper, ink, vermilion. Editorial rhythm, craft detail.
   ========================================================= */

:root {
  --paper: #f6f1e7;
  --paper-2: #efe7d8;
  --paper-3: #e6dbc7;
  --ink: #171310;
  --ink-2: #2b241d;
  --muted: #6b5f52;
  --line: rgba(23, 19, 16, 0.14);
  --line-strong: rgba(23, 19, 16, 0.3);
  --accent: #c1442e;
  --accent-soft: #f1dcd5;
  --cream: #f6f1e7;
  --dark: #171310;

  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Songti SC", "Noto Serif SC",
    "Source Han Serif SC", "Noto Serif CJK SC", Georgia, serif;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
    "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  --mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;

  --wrap: 1180px;
  --gutter: 24px;
  --radius: 3px;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  /* clip rather than hidden: hidden creates a scroll container and breaks position: sticky */
  overflow-x: clip;
}

/* paper grain */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 9998;
  pointer-events: none;
  opacity: 0.045;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

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

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

::selection {
  background: var(--accent);
  color: var(--cream);
}

h1,
h2,
h3,
h4 {
  font-family: var(--serif);
  font-weight: 400;
  line-height: 1.02;
  letter-spacing: -0.02em;
  margin: 0;
  text-wrap: balance;
}

p {
  margin: 0;
}

button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}

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

/* ---------- utilities ---------- */

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.wrap--narrow {
  max-width: 820px;
}

.section {
  padding: clamp(64px, 9vw, 128px) 0;
}

.section--tight {
  padding: clamp(40px, 5vw, 72px) 0;
}

.rule {
  height: 1px;
  background: var(--line);
  border: 0;
  margin: 0;
}

.eyebrow {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted);
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.eyebrow::before {
  content: "";
  width: 22px;
  height: 1px;
  background: currentColor;
  opacity: 0.6;
}

.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 32px;
  margin-bottom: clamp(32px, 5vw, 56px);
  padding-bottom: 20px;
  border-bottom: 1px solid var(--line-strong);
}

.section-head h2 {
  font-size: clamp(2rem, 4vw, 3.25rem);
}

.section-head p {
  max-width: 42ch;
  color: var(--muted);
  font-size: 15px;
}

.lead {
  font-size: clamp(1.05rem, 1.3vw, 1.2rem);
  line-height: 1.6;
  color: var(--ink-2);
  max-width: 58ch;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* ---------- buttons ---------- */

.btn {
  --btn-bg: var(--ink);
  --btn-fg: var(--cream);
  --btn-bd: var(--ink);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 0 24px;
  border: 1px solid var(--btn-bd);
  border-radius: var(--radius);
  background: var(--btn-bg);
  color: var(--btn-fg);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.01em;
  cursor: pointer;
  transition: transform 0.35s var(--ease), background 0.25s, color 0.25s, border-color 0.25s;
  white-space: nowrap;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn:active {
  transform: translateY(0);
}

.btn--ghost {
  --btn-bg: transparent;
  --btn-fg: var(--ink);
  --btn-bd: var(--line-strong);
}

.btn--ghost:hover {
  border-color: var(--ink);
}

.btn--accent {
  --btn-bg: var(--accent);
  --btn-bd: var(--accent);
  --btn-fg: #fff7f2;
}

.btn--light {
  --btn-bg: var(--cream);
  --btn-fg: var(--ink);
  --btn-bd: var(--cream);
}

.btn--block {
  width: 100%;
}

.btn--sm {
  min-height: 40px;
  padding: 0 16px;
  font-size: 13px;
}

.btn[disabled] {
  opacity: 0.45;
  cursor: not-allowed;
  transform: none;
}

.btn .arrow {
  transition: transform 0.35s var(--ease);
}

.btn:hover .arrow {
  transform: translateX(4px);
}

.link-underline {
  border-bottom: 1px solid var(--line-strong);
  padding-bottom: 2px;
  transition: border-color 0.2s, color 0.2s;
}

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

/* ---------- nav ---------- */

.site-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid var(--line);
  background: rgba(246, 241, 231, 0.86);
  backdrop-filter: saturate(1.4) blur(16px);
  -webkit-backdrop-filter: saturate(1.4) blur(16px);
}

.site-nav__inner {
  display: flex;
  align-items: center;
  gap: 32px;
  height: 68px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  flex: none;
}

.brand__mark {
  width: 26px;
  height: 26px;
  flex: none;
}

.brand__name {
  font-family: var(--serif);
  font-size: 19px;
  letter-spacing: -0.01em;
  line-height: 1;
}

.brand__name small {
  display: block;
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: 0.2em;
  color: var(--muted);
  margin-top: 4px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 26px;
  margin-left: auto;
  font-size: 13.5px;
}

.nav-links a {
  color: var(--ink-2);
  position: relative;
  padding: 4px 0;
}

.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s var(--ease);
}

.nav-links a:hover::after,
.nav-links a[aria-current="page"]::after {
  transform: scaleX(1);
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 14px;
  flex: none;
}

.lang-toggle {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 34px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--ink-2);
  transition: border-color 0.2s, background 0.2s;
}

.lang-toggle:hover {
  border-color: var(--ink);
  background: rgba(23, 19, 16, 0.04);
}

.nav-burger {
  display: none;
  width: 40px;
  height: 40px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: transparent;
  cursor: pointer;
  align-items: center;
  justify-content: center;
}

.nav-burger span,
.nav-burger span::before {
  width: 16px;
  height: 1px;
  background: var(--ink);
  display: block;
  content: "";
  position: relative;
}

.nav-burger span::before {
  position: absolute;
  top: -5px;
}

.nav-drawer {
  display: none;
  border-top: 1px solid var(--line);
  background: var(--paper);
}

.nav-drawer[open] {
  display: block;
}

.nav-drawer ul {
  list-style: none;
  margin: 0;
  padding: 8px var(--gutter) 24px;
}

.nav-drawer li + li {
  border-top: 1px solid var(--line);
}

.nav-drawer a {
  display: block;
  padding: 16px 0;
  font-family: var(--serif);
  font-size: 24px;
}

/* ---------- hero ---------- */

.hero {
  position: relative;
  padding: clamp(48px, 7vw, 96px) 0 clamp(40px, 6vw, 80px);
  overflow: hidden;
}

.hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
}

.hero h1 {
  font-size: clamp(3rem, 7.4vw, 6.2rem);
  line-height: 0.94;
  letter-spacing: -0.035em;
  margin: 22px 0 26px;
}

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

.hero .lead {
  max-width: 46ch;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 34px;
}

.hero__note {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  margin-top: 26px;
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.06em;
  color: var(--muted);
  text-transform: uppercase;
}

.hero__note span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.hero__note span::before {
  content: "✳";
  color: var(--accent);
  font-size: 9px;
}

.hero__figure {
  position: relative;
  margin: 0;
}

.hero__figure::before {
  content: "";
  position: absolute;
  inset: 14px -14px -14px 14px;
  border: 1px solid var(--line-strong);
  border-radius: 2px;
  z-index: 0;
}

.hero__figure img {
  position: relative;
  z-index: 1;
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: 2px;
  filter: saturate(0.9) contrast(1.02);
}

.hero__figure figcaption {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-top: 14px;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

/* ---------- marquee ---------- */

.marquee {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  overflow: hidden;
  padding: 14px 0;
  background: var(--paper-2);
}

.marquee__track {
  display: flex;
  width: max-content;
  animation: marquee 46s linear infinite;
}

.marquee:hover .marquee__track {
  animation-play-state: paused;
}

.marquee span {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-2);
  padding: 0 20px;
  display: inline-flex;
  align-items: center;
  gap: 20px;
  white-space: nowrap;
}

.marquee span::after {
  content: "✳";
  color: var(--accent);
  font-size: 9px;
}

@keyframes marquee {
  to {
    transform: translateX(-50%);
  }
}

/* ---------- steps ---------- */

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

.step {
  padding: 32px 32px 8px 0;
  border-right: 1px solid var(--line);
}

.step:last-child {
  border-right: 0;
  padding-right: 0;
}

.step + .step {
  padding-left: 32px;
}

.step__n {
  font-family: var(--serif);
  font-size: 13px;
  letter-spacing: 0.1em;
  color: var(--accent);
  display: block;
  margin-bottom: 22px;
}

.step h3 {
  font-size: clamp(1.4rem, 2vw, 1.75rem);
  margin-bottom: 12px;
}

.step p {
  color: var(--muted);
  font-size: 14.5px;
  line-height: 1.7;
}

/* ---------- manifesto ---------- */

.manifesto {
  background: var(--dark);
  color: var(--cream);
  position: relative;
  overflow: hidden;
}

.manifesto .eyebrow {
  color: rgba(246, 241, 231, 0.5);
}

.manifesto__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: clamp(32px, 6vw, 88px);
  align-items: center;
}

.manifesto h2 {
  font-size: clamp(2.2rem, 5vw, 4.4rem);
  line-height: 1;
  margin: 20px 0 28px;
}

.manifesto p {
  color: rgba(246, 241, 231, 0.68);
  font-size: 16px;
  line-height: 1.75;
  max-width: 46ch;
}

.manifesto blockquote {
  margin: 32px 0 0;
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(1.1rem, 1.6vw, 1.35rem);
  color: var(--cream);
}

.manifesto__figure {
  position: relative;
}

.manifesto__figure img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 2px;
  filter: saturate(0.85);
}

.manifesto__figure figcaption {
  margin-top: 12px;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(246, 241, 231, 0.45);
}

/* ---------- features ---------- */

.features {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border-top: 1px solid var(--line-strong);
  border-left: 1px solid var(--line);
}

.feature {
  padding: clamp(24px, 4vw, 44px);
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.18), transparent 60%);
}

.feature__k {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.16em;
  color: var(--accent);
}

.feature h3 {
  font-size: clamp(1.35rem, 2vw, 1.7rem);
  margin: 18px 0 10px;
}

.feature p {
  color: var(--muted);
  font-size: 14.5px;
  line-height: 1.7;
  max-width: 38ch;
}

/* ---------- sample flipbook ---------- */

.sample {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: clamp(32px, 6vw, 80px);
  align-items: center;
}

.sample h2 {
  font-size: clamp(2rem, 4vw, 3.4rem);
  margin: 18px 0 22px;
}

.sample p {
  color: var(--muted);
  max-width: 40ch;
}

.sample__stage {
  position: relative;
  display: flex;
  justify-content: center;
  padding: clamp(20px, 4vw, 44px);
  background: radial-gradient(80% 80% at 50% 40%, rgba(255, 255, 255, 0.55), transparent 70%),
    var(--paper-2);
  border: 1px solid var(--line);
  border-radius: 2px;
}

.flipbook {
  position: relative;
  width: min(100%, 420px);
  touch-action: pan-y;
  user-select: none;
  cursor: grab;
}

.flipbook.is-dragging {
  cursor: grabbing;
}

.flipbook canvas {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 2px;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.8) inset, 0 18px 40px -18px rgba(23, 19, 16, 0.35),
    0 2px 6px rgba(23, 19, 16, 0.12);
}

.flipbook__stack {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.flipbook__stack::before,
.flipbook__stack::after {
  content: "";
  position: absolute;
  inset: 0;
  border: 1px solid rgba(23, 19, 16, 0.12);
  background: var(--cream);
  border-radius: 2px;
  z-index: -1;
}

.flipbook__stack::before {
  transform: translate(5px, 5px) rotate(0.6deg);
}

.flipbook__stack::after {
  transform: translate(9px, 9px) rotate(1.2deg);
  opacity: 0.7;
}

.flipbook__badge {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 3;
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  background: rgba(246, 241, 231, 0.9);
  border: 1px solid var(--line);
  padding: 4px 8px;
  border-radius: 999px;
  pointer-events: none;
}

.flipbook__hint {
  position: absolute;
  left: 50%;
  bottom: 18px;
  transform: translateX(-50%);
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  background: rgba(246, 241, 231, 0.92);
  border: 1px solid var(--line);
  padding: 5px 10px;
  border-radius: 999px;
  pointer-events: none;
  transition: opacity 0.4s;
  white-space: nowrap;
}

.flipbook.has-interacted .flipbook__hint {
  opacity: 0;
}

/* ---------- pricing ---------- */

.price-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.price-card {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: clamp(26px, 4vw, 40px);
  border: 1px solid var(--line-strong);
  border-radius: 2px;
  background: var(--paper);
}

.price-card--featured {
  background: var(--dark);
  color: var(--cream);
  border-color: var(--dark);
}

.price-card--featured .price-card__note,
.price-card--featured .price-card__features li {
  color: rgba(246, 241, 231, 0.68);
}

.price-card--featured .price-card__features li::before {
  background: var(--accent);
}

.price-card__badge {
  position: absolute;
  top: -11px;
  left: clamp(26px, 4vw, 40px);
  background: var(--accent);
  color: #fff7f2;
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 999px;
}

.price-card__name {
  font-family: var(--sans);
  font-size: 13px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}

.price-card--featured .price-card__name {
  color: rgba(246, 241, 231, 0.6);
}

.price-card__price {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin: 18px 0 6px;
  font-family: var(--serif);
  font-size: clamp(2.6rem, 5vw, 3.6rem);
  line-height: 1;
}

.price-card__price small {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  color: var(--muted);
}

.price-card__note {
  font-size: 12.5px;
  color: var(--muted);
  margin-bottom: 26px;
}

.price-card__features {
  list-style: none;
  margin: 0 0 30px;
  padding: 0;
  display: grid;
  gap: 10px;
  font-size: 14px;
  flex: 1;
}

.price-card__features li {
  display: flex;
  gap: 10px;
  color: var(--ink-2);
}

.price-card__features li::before {
  content: "";
  flex: none;
  width: 5px;
  height: 5px;
  margin-top: 9px;
  border-radius: 50%;
  background: var(--ink);
}

.free-line {
  margin-top: 18px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  color: var(--muted);
}

.free-line strong {
  color: var(--ink);
  font-weight: 500;
}

/* ---------- physical ---------- */

.physical {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(28px, 6vw, 80px);
  align-items: center;
}

.physical__figure {
  position: relative;
  margin: 0;
}

.physical__figure img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 2px;
  border: 1px solid var(--line);
}

.physical h2 {
  font-size: clamp(2rem, 4vw, 3.25rem);
  margin: 18px 0 22px;
}

.physical p {
  color: var(--muted);
  max-width: 42ch;
}

.checklist {
  list-style: none;
  margin: 26px 0 0;
  padding: 0;
  display: grid;
  gap: 12px;
  border-top: 1px solid var(--line);
  padding-top: 24px;
}

.checklist li {
  display: flex;
  gap: 12px;
  font-size: 14.5px;
  align-items: baseline;
}

.checklist li::before {
  content: "—";
  color: var(--accent);
  font-family: var(--mono);
}

/* ---------- final cta ---------- */

.final-cta {
  background: var(--accent);
  color: #fff8f3;
  position: relative;
  overflow: hidden;
}

.final-cta::after {
  content: "";
  position: absolute;
  right: -120px;
  top: -120px;
  width: 420px;
  height: 420px;
  border: 1px solid rgba(255, 248, 243, 0.25);
  border-radius: 50%;
  pointer-events: none;
}

.final-cta h2 {
  font-size: clamp(2.4rem, 6vw, 4.8rem);
  margin: 16px 0 20px;
  max-width: 16ch;
}

.final-cta p {
  color: rgba(255, 248, 243, 0.78);
  max-width: 46ch;
}

.final-cta .eyebrow {
  color: rgba(255, 248, 243, 0.6);
}

.final-cta__actions {
  display: flex;
  align-items: center;
  gap: 22px;
  flex-wrap: wrap;
  margin-top: 34px;
}

.final-cta__note {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255, 248, 243, 0.6);
}

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

.site-footer {
  background: var(--dark);
  color: rgba(246, 241, 231, 0.72);
  padding: clamp(56px, 7vw, 90px) 0 28px;
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) repeat(3, minmax(0, 0.8fr));
  gap: 40px;
  padding-bottom: 56px;
  border-bottom: 1px solid rgba(246, 241, 231, 0.14);
}

.footer-brand p {
  max-width: 30ch;
  font-size: 14px;
  line-height: 1.7;
  margin-top: 18px;
}

.site-footer .brand__name {
  color: var(--cream);
}

.site-footer .brand__name small {
  color: rgba(246, 241, 231, 0.45);
}

.footer-col h4 {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(246, 241, 231, 0.45);
  margin-bottom: 16px;
}

.footer-col ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 9px;
  font-size: 13.5px;
}

.footer-col a:hover {
  color: var(--cream);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding-top: 24px;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(246, 241, 231, 0.4);
  flex-wrap: wrap;
}

.footer-wordmark {
  font-family: var(--serif);
  font-size: clamp(3rem, 13vw, 12rem);
  line-height: 0.8;
  letter-spacing: -0.04em;
  color: rgba(246, 241, 231, 0.07);
  padding: 28px 0 0;
  user-select: none;
  white-space: nowrap;
  overflow: hidden;
}

/* ---------- inner page header ---------- */

.page-head {
  padding: clamp(48px, 7vw, 88px) 0 clamp(32px, 4vw, 48px);
  border-bottom: 1px solid var(--line-strong);
}

.page-head h1 {
  font-size: clamp(2.6rem, 6vw, 4.6rem);
  margin: 18px 0 22px;
}

.page-head .lead {
  max-width: 54ch;
}

.page-body {
  padding: clamp(40px, 6vw, 72px) 0 clamp(64px, 9vw, 112px);
}

/* ---------- guide ---------- */

.guide-tools {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  margin: 0;
  padding: 0;
  list-style: none;
}

.guide-tools li {
  list-style: none;
  background: var(--paper);
  padding: 22px;
  font-size: 13.5px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.guide-tools li b {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.16em;
  color: var(--accent);
  font-weight: 400;
}

.guide-steps {
  display: grid;
  gap: 0;
}

.guide-step {
  display: grid;
  grid-template-columns: 88px minmax(0, 1fr);
  gap: clamp(20px, 4vw, 48px);
  padding: clamp(28px, 4vw, 44px) 0;
  border-bottom: 1px solid var(--line);
}

.guide-step__n {
  font-family: var(--serif);
  font-size: clamp(2rem, 3vw, 2.6rem);
  color: #c9b89f;
  line-height: 1;
}

.guide-step h3 {
  font-size: clamp(1.5rem, 2.4vw, 2rem);
  margin-bottom: 12px;
}

.guide-step p {
  color: var(--ink-2);
  font-size: 15px;
  line-height: 1.75;
  max-width: 62ch;
}

.guide-step__tip {
  margin-top: 16px;
  display: flex;
  gap: 10px;
  font-size: 13px;
  color: var(--muted);
  border-left: 2px solid var(--accent-soft);
  padding-left: 14px;
  max-width: 60ch;
}

.guide-step__tip::before {
  content: "TIP";
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.14em;
  color: var(--accent);
  flex: none;
  padding-top: 2px;
}

.mistakes {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}

.mistake {
  background: var(--paper);
  padding: clamp(22px, 3vw, 34px);
}

.mistake h4 {
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0;
  margin-bottom: 8px;
}

.mistake p {
  font-size: 13.5px;
  color: var(--muted);
  line-height: 1.7;
}

.diagram {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.9fr);
  gap: clamp(24px, 5vw, 60px);
  align-items: start;
  margin-top: 40px;
  padding: clamp(24px, 4vw, 40px);
  border: 1px solid var(--line);
  background: var(--paper-2);
}

.diagram svg {
  width: 100%;
  height: auto;
  display: block;
}

.diagram h3 {
  font-size: clamp(1.5rem, 2.4vw, 2rem);
  margin: 6px 0 12px;
}

.diagram p {
  font-size: 14px;
  color: var(--muted);
  max-width: 40ch;
}

/* ---------- faq ---------- */

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

.faq-item {
  border-bottom: 1px solid var(--line);
}

.faq-item summary {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 24px;
  padding: 24px 0;
  cursor: pointer;
  list-style: none;
  font-family: var(--serif);
  font-size: clamp(1.1rem, 1.6vw, 1.3rem);
  line-height: 1.35;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: "+";
  font-family: var(--mono);
  font-size: 18px;
  color: var(--muted);
  transition: transform 0.3s var(--ease), color 0.2s;
  flex: none;
}

.faq-item[open] summary::after {
  content: "−";
  color: var(--accent);
}

.faq-item__a {
  padding: 0 0 26px;
  max-width: 68ch;
  color: var(--muted);
  font-size: 14.5px;
  line-height: 1.8;
}

/* ---------- prose ---------- */

.prose h2 {
  font-size: clamp(1.4rem, 2vw, 1.75rem);
  margin: 40px 0 12px;
}

.prose h2:first-child {
  margin-top: 0;
}

.prose p {
  color: var(--ink-2);
  font-size: 15px;
  line-height: 1.8;
  max-width: 68ch;
}

.prose .updated {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 40px;
}

/* ---------- comparison table ---------- */

.compare {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

.compare th,
.compare td {
  text-align: left;
  padding: 15px 12px;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}

.compare thead th {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 400;
  border-bottom: 1px solid var(--line-strong);
}

.compare td:first-child {
  color: var(--muted);
}

/* ---------- studio ---------- */

.studio {
  padding: clamp(32px, 5vw, 56px) 0 clamp(64px, 8vw, 100px);
}

.studio-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 32px;
  flex-wrap: wrap;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--line-strong);
}

.studio-head h1 {
  font-size: clamp(2.2rem, 4.4vw, 3.4rem);
  margin: 14px 0 10px;
}

.studio-head p {
  color: var(--muted);
  font-size: 14.5px;
  max-width: 52ch;
}

.stepper {
  display: flex;
  gap: 8px;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

.stepper span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
}

.stepper span[data-active="true"] {
  border-color: var(--ink);
  color: var(--ink);
}

.stepper span[data-done="true"] {
  border-color: var(--accent);
  color: var(--accent);
}

.studio-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(24px, 4vw, 56px);
  margin-top: clamp(28px, 4vw, 44px);
  align-items: start;
}

.panel {
  border: 1px solid var(--line);
  background: var(--paper);
  padding: clamp(20px, 3vw, 32px);
}

.panel + .panel {
  margin-top: 18px;
}

.panel h2 {
  font-size: clamp(1.2rem, 1.8vw, 1.45rem);
  margin-bottom: 6px;
}

.panel__hint {
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 20px;
  line-height: 1.6;
}

.dropzone {
  border: 1px dashed var(--line-strong);
  border-radius: 2px;
  padding: clamp(28px, 5vw, 52px) 24px;
  text-align: center;
  background: var(--paper-2);
  transition: border-color 0.2s, background 0.2s;
}

.dropzone.is-over {
  border-color: var(--accent);
  background: var(--accent-soft);
}

.dropzone__title {
  font-family: var(--serif);
  font-size: clamp(1.25rem, 2vw, 1.6rem);
  margin-bottom: 8px;
}

.dropzone__hint {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 22px;
}

.dropzone__or {
  font-size: 12px;
  color: var(--muted);
  margin: 14px 0;
}

.clip-meta {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: 16px;
}

.clip-meta b {
  color: var(--ink);
  font-weight: 500;
}

.video-preview {
  width: 100%;
  border-radius: 2px;
  background: #0d0b09;
  display: block;
  margin-bottom: 18px;
  max-height: 260px;
  object-fit: contain;
}

.trim {
  padding-top: 8px;
}

.trim__labels {
  display: flex;
  justify-content: space-between;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.08em;
  color: var(--muted);
  margin-bottom: 10px;
}

.range-dual {
  position: relative;
  height: 32px;
  margin-bottom: 14px;
}

.range-dual__track {
  position: absolute;
  left: 0;
  right: 0;
  top: 15px;
  height: 2px;
  background: var(--line-strong);
}

.range-dual__fill {
  position: absolute;
  top: 15px;
  height: 2px;
  background: var(--accent);
}

.range-dual input[type="range"] {
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 32px;
  margin: 0;
  background: transparent;
  -webkit-appearance: none;
  appearance: none;
  pointer-events: none;
}

.range-dual input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  pointer-events: auto;
  width: 16px;
  height: 16px;
  margin-top: 8px;
  border-radius: 50%;
  background: var(--ink);
  border: 2px solid var(--paper);
  box-shadow: 0 0 0 1px var(--ink);
  cursor: grab;
}

.range-dual input[type="range"]::-moz-range-thumb {
  pointer-events: auto;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--ink);
  border: 2px solid var(--paper);
  cursor: grab;
}

.range-dual input[type="range"]::-moz-range-track {
  background: transparent;
}

.trim__values {
  display: flex;
  justify-content: space-between;
  font-family: var(--mono);
  font-size: 11px;
  color: var(--ink-2);
  margin-bottom: 4px;
}

.seg {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.seg button {
  min-width: 64px;
  padding: 10px 14px;
  border: 1px solid var(--line-strong);
  border-radius: 2px;
  background: transparent;
  cursor: pointer;
  font-size: 13px;
  transition: all 0.2s;
}

.seg button:hover {
  border-color: var(--ink);
}

.seg button[aria-pressed="true"] {
  background: var(--ink);
  color: var(--cream);
  border-color: var(--ink);
}

.note-line {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--muted);
}

.preview-stage {
  position: relative;
  display: flex;
  justify-content: center;
  padding: clamp(18px, 3vw, 32px);
  background: radial-gradient(70% 70% at 50% 30%, rgba(255, 255, 255, 0.5), transparent 70%),
    var(--paper-2);
  border: 1px solid var(--line);
  min-height: 260px;
}

.preview-empty {
  align-self: center;
  text-align: center;
  color: var(--muted);
  font-size: 13px;
  max-width: 30ch;
}

.preview-controls {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 16px;
}

.preview-controls .counter {
  margin-left: auto;
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.06em;
  color: var(--muted);
}

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

.progress__bar {
  height: 100%;
  width: 0;
  background: var(--accent);
  transition: width 0.25s linear;
}

.progress-label {
  display: flex;
  justify-content: space-between;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: 10px;
}

.buy-options {
  display: grid;
  gap: 10px;
}

.buy-option {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 16px;
  border: 1px solid var(--line-strong);
  border-radius: 2px;
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s;
  background: transparent;
  text-align: left;
  width: 100%;
}

.buy-option:hover {
  border-color: var(--ink);
}

.buy-option[aria-pressed="true"] {
  border-color: var(--ink);
  background: var(--paper-2);
  box-shadow: inset 0 0 0 1px var(--ink);
}

.buy-option__dot {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  border: 1px solid var(--line-strong);
  margin-top: 4px;
  flex: none;
  position: relative;
}

.buy-option[aria-pressed="true"] .buy-option__dot {
  border-color: var(--accent);
}

.buy-option[aria-pressed="true"] .buy-option__dot::after {
  content: "";
  position: absolute;
  inset: 3px;
  border-radius: 50%;
  background: var(--accent);
}

.buy-option__title {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: baseline;
  font-size: 14.5px;
  font-weight: 500;
}

.buy-option__price {
  font-family: var(--serif);
  font-size: 20px;
  white-space: nowrap;
}

.buy-option__desc {
  font-size: 12.5px;
  color: var(--muted);
  margin-top: 3px;
}

.field {
  margin-top: 16px;
}

.field label {
  display: block;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 8px;
}

.field input,
.field textarea,
.field select {
  width: 100%;
  padding: 12px 0;
  border: 0;
  border-bottom: 1px solid var(--line-strong);
  background: transparent;
  font-size: 15px;
  border-radius: 0;
  transition: border-color 0.2s;
}

.field input:focus,
.field textarea:focus,
.field select:focus {
  outline: none;
  border-bottom-color: var(--accent);
}

.field textarea {
  resize: vertical;
  min-height: 72px;
}

.field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.form-error {
  color: var(--accent);
  font-size: 12.5px;
  margin-top: 10px;
  min-height: 1em;
}

.notice {
  font-size: 12px;
  color: var(--muted);
  margin-top: 12px;
  line-height: 1.6;
}

.notice--accent {
  color: var(--accent);
}

.modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(23, 19, 16, 0.55);
  backdrop-filter: blur(6px);
}

.modal[open] {
  display: flex;
}

.modal__box {
  background: var(--paper);
  border: 1px solid var(--line-strong);
  max-width: 480px;
  width: 100%;
  padding: clamp(24px, 4vw, 40px);
  max-height: 90vh;
  overflow: auto;
  position: relative;
}

.modal__close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 32px;
  height: 32px;
  border: 1px solid var(--line);
  background: transparent;
  border-radius: 50%;
  cursor: pointer;
  line-height: 1;
}

.modal h2 {
  font-size: 1.8rem;
  margin-bottom: 8px;
}

.modal p {
  color: var(--muted);
  font-size: 14px;
}

/* ---------- quote + manual payment ---------- */

.quote {
  margin-top: 20px;
  border-top: 1px solid var(--line);
  padding-top: 14px;
  display: grid;
  gap: 8px;
}

.quote__row {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  font-size: 13.5px;
  color: var(--muted);
}

.quote__row b {
  color: var(--ink);
  font-weight: 500;
}

.quote__row--total {
  border-top: 1px solid var(--line);
  margin-top: 4px;
  padding-top: 10px;
  color: var(--ink);
  font-size: 14px;
  align-items: baseline;
}

.quote__row--total span:last-child,
.quote__row--total b {
  font-family: var(--serif);
  font-size: 22px;
}

.manual-qr {
  display: block;
  width: 180px;
  max-width: 60%;
  margin: 18px auto 0;
  border: 1px solid var(--line);
}

.standalone {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
}

.standalone main {
  width: 100%;
  max-width: 520px;
}

.standalone__box {
  border: 1px solid var(--line-strong);
  background: var(--paper);
  padding: clamp(28px, 5vw, 44px);
  text-align: center;
}

.standalone__box h1 {
  font-size: clamp(1.8rem, 4vw, 2.4rem);
  margin: 10px 0 14px;
}

.standalone__box p {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.7;
}

.standalone__spinner {
  width: 28px;
  height: 28px;
  border: 2px solid var(--line-strong);
  border-top-color: var(--accent);
  border-radius: 50%;
  margin: 0 auto 22px;
  animation: spin 0.9s linear infinite;
}

.standalone__ref {
  font-family: var(--mono);
  font-size: 12px;
  margin-top: 18px;
  color: var(--muted);
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

@media (prefers-reduced-motion: reduce) {
  .standalone__spinner {
    animation: none;
  }
}

/* ---------- download ---------- */

.download-box {
  border: 1px solid var(--line-strong);
  padding: clamp(24px, 4vw, 44px);
  background: var(--paper-2);
  max-width: 620px;
}

.download-box .status {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: 16px;
  min-height: 1.4em;
}

/* ---------- reveal ---------- */

[data-reveal] {
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
}

/* progressive enhancement: only hide when JS is definitely running */
html.js [data-reveal] {
  opacity: 0;
  transform: translateY(18px);
}

html.js [data-reveal].is-in,
html.reveal-fallback [data-reveal] {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  [data-reveal] {
    opacity: 1;
    transform: none;
    transition: none;
  }
  .marquee__track {
    animation: none;
  }
  .btn,
  .btn:hover {
    transform: none;
  }
}

/* ---------- responsive ---------- */

@media (max-width: 980px) {
  .hero__grid,
  .manifesto__grid,
  .sample,
  .physical,
  .diagram,
  .studio-grid {
    grid-template-columns: 1fr;
  }

  .hero__figure {
    max-width: 460px;
    margin: 8px auto 0;
  }

  .hero__figure img {
    aspect-ratio: 4 / 3;
  }

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

  .step,
  .step + .step {
    border-right: 0;
    border-bottom: 1px solid var(--line);
    padding: 28px 0;
  }

  .step:last-child {
    border-bottom: 0;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }

  .footer-brand {
    grid-column: 1 / -1;
  }

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

  .physical__figure {
    order: -1;
  }
}

@media (min-width: 981px) {
  .nav-drawer {
    display: none !important;
  }
}

@media (max-width: 720px) {
  :root {
    --gutter: 18px;
  }

  .nav-links {
    display: none;
  }

  .nav-burger {
    display: inline-flex;
  }

  .nav-right .btn {
    display: none;
  }

  .site-nav__inner {
    height: 60px;
    gap: 16px;
  }

  .hero h1 {
    font-size: clamp(2.6rem, 12.5vw, 4rem);
  }

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

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

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

  .guide-step {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .guide-step__n {
    font-size: 1.5rem;
  }

  .section-head {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

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

  .field-row {
    grid-template-columns: 1fr;
  }

  .studio-head {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }

  .stepper span {
    padding: 5px 9px;
    font-size: 9px;
  }

  .compare {
    font-size: 12.5px;
  }

  .compare th,
  .compare td {
    padding: 11px 8px;
  }
}

@media print {
  .site-nav,
  .site-footer,
  .marquee,
  .final-cta,
  .hero__actions {
    display: none;
  }
  body {
    background: #fff;
  }
}
