/* DeckForge website. System fonts only (nothing loaded from elsewhere). */
:root {
  --ink: #1d232b;
  --text: #2a2f36;
  --muted: #59616c;
  --line: #dedad3;
  --bg: #ffffff;
  --soft: #f5f3ef;
  --wood: #c4a070;
  --wood-dark: #6b4b2a;
  --button: #7a4f1d;
  --button-hover: #5c3a13;
  --focus: #1f6fe0;
  --radius: 10px;
  --wrap: 1120px;
}

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

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

body {
  margin: 0;
  font: 17px/1.6 system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color: var(--text);
  background: var(--bg);
}

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

a { color: #7a4f1d; text-underline-offset: 2px; }
a:hover { color: #4e3210; }

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

.skip {
  position: absolute; left: 12px; top: -48px; z-index: 10;
  background: var(--ink); color: #fff; padding: 8px 14px; border-radius: 6px;
}
.skip:focus { top: 12px; color: #fff; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.wrap.narrow { max-width: 820px; }

h1, h2, h3 { color: var(--ink); line-height: 1.2; }
h1 { font-size: clamp(2.2rem, 5vw, 3.4rem); margin: 0 0 12px; letter-spacing: -0.02em; }
h2 { font-size: clamp(1.5rem, 3vw, 2rem); margin: 0 0 20px; letter-spacing: -0.01em; }
h3 { font-size: 1.15rem; margin: 0 0 8px; }

section { padding: 64px 0; }
section + section { border-top: 1px solid var(--line); }

.lead { font-size: 1.25rem; color: var(--muted); margin: 0 0 16px; }
.quiet { color: var(--muted); font-size: 0.92rem; }

/* ---- header and footer ---- */
.site-header { background: var(--ink); color: #fff; }
.header-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  min-height: 64px; padding-top: 8px; padding-bottom: 8px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: #fff; text-decoration: none;
  font-weight: 700; font-size: 1.15rem; }
.brand:hover { color: #fff; }
.site-header nav ul, .site-footer nav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap;
  gap: 4px 18px; align-items: center; }
.site-header nav a { color: #e9e6e0; text-decoration: none; }
.site-header nav a:hover, .site-header nav a[aria-current] { color: #fff; text-decoration: underline; }
.site-header nav a.button { color: #fff; text-decoration: none; }

.site-footer { background: var(--soft); border-top: 1px solid var(--line); padding: 40px 0 24px; font-size: 0.95rem; }
.footer-row { display: grid; grid-template-columns: 1.4fr 1fr 1.3fr 1fr; gap: 28px; }
.footer-row p { margin: 0 0 6px; }
.footer-title { font-weight: 700; color: var(--ink); }
.site-footer nav ul { flex-direction: column; align-items: flex-start; gap: 6px; }
.footer-brand { font-weight: 700; color: var(--ink); }
.small-print { margin-top: 24px; font-size: 0.85rem; }

/* ---- buttons ---- */
.button {
  display: inline-block; padding: 12px 22px; border-radius: 8px; background: var(--button); color: #fff;
  font-weight: 600; text-decoration: none; border: 2px solid var(--button); line-height: 1.2;
}
.button:hover { background: var(--button-hover); border-color: var(--button-hover); color: #fff; }
.button.ghost { background: transparent; color: var(--button); }
.button.ghost:hover { background: #f3ebe0; color: var(--button-hover); }
.button.small { padding: 7px 14px; font-size: 0.95rem; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 24px 0 12px; }

/* ---- home ---- */
.hero { background: linear-gradient(180deg, #232a33 0%, #2c333d 100%); color: #e8e6e2; padding: 72px 0; }
.hero h1 { color: #fff; }
.hero .lead { color: #f0d9b0; }
.hero .quiet { color: #b8bec6; }
.hero .button.ghost { color: #fff; border-color: #fff; }
.hero .button.ghost:hover { background: rgba(255, 255, 255, 0.12); }
.hero-row { display: grid; grid-template-columns: 1fr 1.1fr; gap: 48px; align-items: center; }
.hero-media img, .hero-video video { border-radius: var(--radius); box-shadow: 0 18px 48px rgba(0, 0, 0, 0.45);
  display: block; width: 100%; height: auto; background: #2c333d; }
.hero-video { position: relative; }
.video-toggle { position: absolute; right: 12px; bottom: 12px; padding: 6px 12px; border-radius: 6px; border: 0;
  background: rgba(20, 24, 30, 0.72); color: #fff; font: inherit; font-size: 0.85rem; cursor: pointer; }
.video-toggle:hover { background: rgba(20, 24, 30, 0.9); }

.step-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.step-list img { border-radius: var(--radius); border: 1px solid var(--line); display: block; margin-bottom: 14px; }
.more { font-weight: 600; }
.more::after { content: " \2192"; }
.step-list p { margin: 0; color: var(--muted); }

.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 20px; }
.cards.three { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.card { background: var(--soft); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.card ul { margin: 0; padding-left: 20px; }
.card li { margin: 6px 0; }
.card p { margin: 0; }
.card img, .step-list img { display: block; width: 100%; aspect-ratio: 16 / 10; object-fit: cover;
  object-position: top center; border-radius: 8px; border: 1px solid var(--line); margin-bottom: 14px; }
.card h3 a, .card-title a { color: var(--ink); text-decoration: none; }
.card h3 a:hover, .card-title a:hover { text-decoration: underline; }
.card-title { font-size: 1.15rem; margin: 0 0 8px; }
.features { background: #fff; }

.gallery-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 20px; }
.gallery-grid figure { margin: 0; }
.gallery-grid img { display: block; border-radius: var(--radius); border: 1px solid var(--line); }
.gallery-grid figcaption { font-size: 0.95rem; color: var(--muted); margin-top: 8px; }

figure.shot { margin: 24px 0; }
figure.shot img { display: block; border: 1px solid var(--line); border-radius: 8px; }
figure.video { margin: 0; max-width: 1072px; }
figure.video video { display: block; width: 100%; height: auto; border-radius: var(--radius); background: #1d232b; }
.transcript { margin-top: 18px; max-width: 1072px; }
.transcript summary { cursor: pointer; font-weight: 600; color: var(--ink); }
.transcript ol { list-style: none; padding: 0; margin: 12px 0 0; columns: 2 380px; column-gap: 32px; }
.transcript li { break-inside: avoid; margin: 0 0 8px; }
.transcript .time { display: inline-block; min-width: 3.2em; color: var(--muted); font-variant-numeric: tabular-nums; }

.feature-row { display: grid; grid-template-columns: 1.1fr 1fr; gap: 40px; align-items: center; margin: 0 0 48px; }
.feature-row.flip > :first-child { order: 2; }
.feature-row img { display: block; border-radius: var(--radius); border: 1px solid var(--line); }
.feature-row h2 a { color: var(--ink); text-decoration: none; }
.feature-row h2 a:hover { text-decoration: underline; }

.gs-steps { list-style: none; margin: 0; padding: 0; }
.gs-step { padding: 32px 0; border-bottom: 1px solid var(--line); scroll-margin-top: 16px; }
.gs-step:first-child { padding-top: 0; }
.gs-step h2 { display: flex; align-items: center; gap: 14px; margin: 0 0 16px; }
.gs-number { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px;
  border-radius: 50%; background: var(--button); color: #fff; font-size: 1.3rem; flex: none; }
.gs-row { display: grid; grid-template-columns: 1fr 1.35fr; gap: 36px; align-items: start; }
.gs-text { font-size: 1.08rem; }
.gs-text p { margin: 0 0 12px; }
.gs-shot figure.shot { margin: 0; }
.formula { background: var(--soft); border-left: 4px solid var(--wood); padding: 10px 16px; border-radius: 0 8px 8px 0;
  font-variant-numeric: tabular-nums; }
code { background: #f1efea; padding: 1px 5px; border-radius: 4px; font-size: 0.92em; }

.crumbs ol { list-style: none; margin: 0 0 14px; padding: 0; display: flex; flex-wrap: wrap; gap: 4px; font-size: 0.92rem;
  color: var(--muted); }
.crumbs li + li::before { content: "/"; margin: 0 8px 0 4px; color: #a8a29a; }
.crumbs a { color: var(--muted); }

.video-placeholder {
  aspect-ratio: 16 / 9; max-width: 900px; border-radius: var(--radius); display: flex; align-items: center;
  justify-content: center; background: repeating-linear-gradient(135deg, #2a3039 0 18px, #262c34 18px 36px);
  color: #e8e6e2; font-size: 1.2rem;
}

.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; }
.checks { list-style: none; padding: 0; margin: 0; }
.checks li { padding-left: 30px; position: relative; margin: 10px 0; }
.checks li::before { content: ""; position: absolute; left: 4px; top: 0.55em; width: 12px; height: 7px;
  border-left: 3px solid var(--wood-dark); border-bottom: 3px solid var(--wood-dark); transform: rotate(-45deg); }

.price-card { border: 2px solid var(--wood); border-radius: var(--radius); padding: 26px; background: #fffaf3; }
.price { margin: 0; }
.price .now { font-size: 3rem; font-weight: 800; color: var(--ink); }
.price .was { color: var(--muted); text-decoration: line-through; margin-left: 8px; }
.price-note { margin: 0 0 12px; font-weight: 600; }

.faq details { border-bottom: 1px solid var(--line); padding: 14px 0; }
.faq summary { cursor: pointer; font-weight: 600; color: var(--ink); }
.faq details p { margin: 10px 0 0; }

.disclaimer { background: var(--soft); }

/* ---- other pages ---- */
.page-head { background: var(--soft); padding: 48px 0 32px; }
.page-head .lead { margin: 0; }
.notice { background: #fff4d6; border: 1px solid #e6c56b; border-radius: 8px; padding: 12px 16px; }

.prose h2 { margin-top: 36px; font-size: 1.5rem; }
.page-head + section { padding-top: 28px; }
.prose > :first-child, .changelog article:first-child > h2 { margin-top: 0; }
.prose h3 { margin-top: 24px; }
.prose figure, .doc figure { margin: 20px 0; }
.prose figure img, .doc figure img { border: 1px solid var(--line); border-radius: 8px; display: block; }
figcaption { font-size: 0.92rem; color: var(--muted); margin-top: 6px; }
.changelog article + article { border-top: 1px solid var(--line); margin-top: 32px; }
.changelog .date { font-size: 1rem; font-weight: 400; color: var(--muted); margin-left: 8px; }

/* ---- docs ---- */
.doc { max-width: 820px; }
.doc h1 { margin-top: 0; }
.doc h2 { margin-top: 48px; padding-top: 8px; border-top: 1px solid var(--line); }
.doc h3 { margin-top: 32px; font-size: 1.3rem; }
.doc h4 { margin-top: 24px; font-size: 1.08rem; }
.doc blockquote { margin: 20px 0; padding: 12px 18px; background: var(--soft); border-left: 4px solid var(--wood); border-radius: 0 8px 8px 0; }
.doc blockquote p { margin: 6px 0; }
.doc code { background: #f1efea; padding: 1px 5px; border-radius: 4px; font-size: 0.92em; }
.table { overflow-x: auto; margin: 16px 0; }
.table table { border-collapse: collapse; width: 100%; font-size: 0.95rem; }
.table th, .table td { text-align: left; vertical-align: top; padding: 8px 10px; border-bottom: 1px solid var(--line); }
.table th { border-bottom: 2px solid #b9b2a6; }
.doc-version { color: var(--muted); }

/* ---- small screens ---- */
@media (max-width: 860px) {
  .hero-row, .two-col, .feature-row, .gs-row { grid-template-columns: 1fr; gap: 24px; }
  .feature-row.flip > :first-child { order: 0; }
  .footer-row { grid-template-columns: 1fr 1fr; }
  .step-list { grid-template-columns: 1fr; }
  section { padding: 44px 0; }
  .hero { padding: 48px 0; }
}

@media (max-width: 480px) {
  body { font-size: 16px; }
  .wrap { padding: 0 16px; }
  .header-row { justify-content: center; }
  .site-header nav ul { justify-content: center; }
  .button { width: 100%; text-align: center; }
  .site-header nav .button { width: auto; }
  .price .now { font-size: 2.5rem; }
  .footer-row { grid-template-columns: 1fr; }
  .gs-number { width: 36px; height: 36px; font-size: 1.1rem; }
}

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