:root {
  --bg: #f4f0e8;
  --paper: #fffdf8;
  --ink: #1c1917;
  --muted: #57534e;
  --line: #e7e0d4;
  --accent: #9a3412;
  --accent-dark: #7c2d12;
  --good: #166534;
  --max: 1120px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.65;
}
a { color: var(--accent-dark); }
img { max-width: 100%; }
.wrap { width: min(var(--max), calc(100% - 32px)); margin: 0 auto; }
header.top {
  position: sticky; top: 0; z-index: 20;
  background: rgba(244, 240, 232, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.bar { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 14px 0; }
.brand { display: flex; flex-direction: row; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); }
.brand img { width: 36px; height: 36px; border-radius: 8px; object-fit: cover; }
.brand-text { display: flex; flex-direction: column; }
.brand strong { font-family: Georgia, "Times New Roman", serif; font-size: 20px; letter-spacing: -0.02em; }
.brand span { font-size: 12px; color: var(--muted); }
nav { display: flex; flex-wrap: wrap; gap: 8px 14px; justify-content: flex-end; }
nav a { text-decoration: none; color: var(--ink); font-size: 14px; }
nav a:hover { color: var(--accent); }
.hero {
  padding: 36px 0 12px;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 28px;
  align-items: start;
}
h1, h2, h3 { font-family: Georgia, "Times New Roman", serif; font-weight: 600; letter-spacing: -0.02em; line-height: 1.2; }
h1 { font-size: 46px; margin: 0 0 12px; }
.lede { font-size: 18px; color: var(--muted); margin: 0 0 18px; }
.facts { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
.facts li { background: var(--paper); border: 1px solid var(--line); border-radius: 999px; padding: 6px 12px; font-size: 13px; }
.side-card, .card, .product {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 16px;
}
.side-card { padding: 18px 18px 8px; }
.side-card p { margin: 0 0 10px; font-size: 14px; }
.section { padding: 18px 0 8px; }
.section h2 { margin: 0 0 8px; font-size: 28px; }
.note { color: var(--muted); margin: 0 0 16px; }
.grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.product { padding: 12px 12px 14px; display: flex; flex-direction: column; gap: 8px; }
.hero-short { grid-template-columns: 1fr; padding: 22px 0 4px; }
.hero-short h1 { font-size: 40px; }
.fineprint { margin-top: 18px; }
.fineprint p { margin: 0; }
.product img.shot, .product-block img.shot { width: 100%; height: 220px; object-fit: cover; object-position: center; border-radius: 12px; background: #111; display: block; }
.product .cat { font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--accent); margin: 0; }
.product h3 { margin: 0; font-size: 22px; }
.product p { margin: 0; color: var(--muted); font-size: 14px; }
.plans { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 8px; }
.plan { border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; }
.plan b { display: block; font-size: 18px; }
.plan span { display: block; font-size: 12px; color: var(--muted); }
a.pay, button.pay {
  display: block; margin-top: 8px; background: var(--accent); color: #fff; text-align: center;
  text-decoration: none; border: 0; border-radius: 8px; padding: 8px 10px; font-size: 13px; font-weight: 600; cursor: pointer;
}
a.pay:hover, button.pay:hover { background: var(--accent-dark); }
.dl { font-size: 13px; }
.keybox { font-family: Consolas, monospace; font-size: 18px; word-break: break-all; background: #fff; border: 1px dashed var(--line); padding: 12px; border-radius: 10px; }
.page { padding: 36px 0 20px; }
.page h1 { font-size: 38px; }
.prose { display: grid; gap: 14px; }
.prose .card { padding: 20px 22px; }
.prose h2 { font-size: 22px; margin: 0 0 8px; }
.prose p, .prose li { color: #292524; font-size: 17px; line-height: 1.75; }
.prose ul, .prose ol, .assets, .steps { margin: 8px 0 0; padding-left: 22px; }
.assets li, .steps li { margin: 0 0 10px; }
.cta-row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 8px; }
.cta-row a.pay, .cta-row button.pay { display: inline-block; width: auto; }
a.pay.ghost, button.pay.ghost { background: transparent; color: var(--accent-dark); border: 1px solid var(--accent); }
.plan-main { border-color: var(--accent); }
.chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.chips span { border: 1px solid var(--line); border-radius: 999px; padding: 4px 10px; font-size: 12px; background: #fff; }
.shot-frame { margin: 0; }
.shot-frame img { width: 100%; height: auto; border-radius: 12px; border: 1px solid var(--line); background: #eef2ff; }
.shot-frame figcaption { margin-top: 8px; font-size: 13px; color: var(--muted); }
.video-frame { margin: 0; }
.video-stage {
  position: relative;
  aspect-ratio: 971 / 512;
  background: #1c1917;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--line);
}
.video-stage img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  background: #111;
  z-index: 1;
}
.video-view {
  position: absolute;
  inset: 0;
  overflow: hidden;
  touch-action: none;
}
.video-view video {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  background: #111;
}
.video-stage img.is-hidden { display: none; }
.video-hold {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  margin: 0;
  padding: 8px 16px;
  border: 0;
  border-radius: 999px;
  background: rgba(28, 25, 23, 0.78);
  color: #fff;
  font: inherit;
  font-size: 14px;
  cursor: pointer;
  z-index: 2;
}
.video-hold[hidden] { display: none; }
.video-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-top: 8px;
}
.video-bar[hidden] { display: none; }
.video-bar button,
.video-bar select {
  font: inherit;
  font-size: 13px;
  border: 1px solid var(--line);
  background: var(--paper);
  color: var(--ink);
  border-radius: 8px;
  padding: 4px 10px;
  cursor: pointer;
}
.video-bar input[type="range"] { flex: 1 1 120px; min-width: 80px; accent-color: var(--accent); }
.video-time { font-size: 12px; color: var(--muted); font-variant-numeric: tabular-nums; }
.video-speed { display: inline-flex; align-items: center; gap: 4px; font-size: 12px; color: var(--muted); }
.video-frame figcaption { margin-top: 8px; font-size: 13px; color: var(--muted); }
.video-pop {
  position: fixed;
  inset: 0;
  z-index: 80;
  background: rgba(28, 25, 23, 0.72);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}
.video-pop[hidden] { display: none; }
.video-pop-card {
  position: relative;
  width: min(1100px, 94vw);
  max-width: 96vw;
  max-height: 94vh;
  overflow: auto;
  background: var(--paper);
  border-radius: 16px;
  padding: 48px 16px 28px;
  box-shadow: 0 18px 50px rgba(28, 25, 23, 0.28);
}
.video-pop-head {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 12px;
}
.video-pop-head span { font-size: 14px; color: var(--muted); }
.video-pop-size {
  display: flex;
  gap: 8px;
  margin-top: 10px;
}
.video-pop-size button,
.video-pop-head button {
  font: inherit;
  font-size: 13px;
  border: 1px solid var(--line);
  background: var(--paper);
  color: var(--ink);
  border-radius: 8px;
  padding: 4px 10px;
  cursor: pointer;
}
.video-pop #usageEnlarge { display: none; }
.video-pop-resize {
  position: absolute;
  right: 6px;
  bottom: 6px;
  width: 22px;
  height: 22px;
  padding: 0;
  border: 0;
  background:
    linear-gradient(135deg, transparent 46%, #a8a29e 46%, #a8a29e 58%, transparent 58%),
    linear-gradient(135deg, transparent 68%, #a8a29e 68%, #a8a29e 82%, transparent 82%);
  cursor: nwse-resize;
}
.kicker {
  margin: 0 0 8px;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 700;
}
.benefits { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 14px; }
.benefit { padding: 16px 18px; }
.benefit h3 { margin: 0 0 6px; font-size: 20px; }
.benefit p { margin: 0; color: var(--muted); font-size: 14px; }
.video-block { margin: 8px 0 22px; max-width: 860px; }
.steps-row { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 14px; }
.step { padding: 16px 18px; }
.step b { display: block; margin-bottom: 6px; font-size: 16px; }
.step p { margin: 0; color: var(--muted); font-size: 14px; }
.hero .module-board { margin-top: 12px; }
.stack { display: grid; gap: 16px; }
.product-block { padding: 18px; }
.file-note { color: var(--muted); font-size: 14px; }
.modal { position: fixed; inset: 0; background: rgba(28, 25, 23, 0.55); display: grid; place-items: center; padding: 20px; z-index: 40; }
.modal[hidden] { display: none; }
.modal-card { width: min(560px, 100%); background: var(--paper); border-radius: 16px; padding: 22px; position: relative; }
.modal-close { position: absolute; top: 12px; right: 12px; border: 0; background: transparent; cursor: pointer; }
form input, form select, form textarea { width: 100%; max-width: 520px; padding: 10px; margin-top: 4px; font: inherit; }
.check { display: flex; gap: 10px; align-items: flex-start; }
.check input { width: auto; margin-top: 6px; }
footer.foot { margin-top: 28px; border-top: 1px solid var(--line); padding: 22px 0 36px; color: var(--muted); font-size: 13px; }
.foot-links { display: flex; flex-wrap: wrap; gap: 8px 14px; margin-bottom: 10px; }
.foot-links a { color: var(--ink); }
.addr { margin: 0; }
.policy-row { display: flex; flex-wrap: wrap; gap: 8px; margin: 4px 0 8px; }
.policy-row a { background: var(--paper); border: 1px solid var(--line); border-radius: 999px; padding: 6px 12px; text-decoration: none; color: var(--ink); font-size: 13px; }
.policy-row a:hover { color: var(--accent); }
@media (max-width: 800px) {
  h1 { font-size: 34px; }
  .hero, .grid, .plans, .steps-row, .benefits { grid-template-columns: 1fr; }
  .bar { flex-direction: column; align-items: flex-start; }
}
