/* DigMusiK, 2026 redesign: light, editorial, tools first.
   Paper-white ground, near-black ink, one accent (burnt orange, AA on white). Fraunces for display, Inter for reading. */
@font-face { font-family: "Fraunces"; src: url("fonts/fraunces.woff2") format("woff2"); font-weight: 500 700; font-display: swap; }
@font-face { font-family: "Inter"; src: url("fonts/inter.woff2") format("woff2"); font-weight: 400 700; font-display: swap; }

:root {
  --bg: #faf8f4; --surface: #ffffff; --band: #f3efe7; --ink: #16181d; --ink-2: #3a404a; --muted: #6a7180; --line: #e6e0d6;
  --accent: #c2410c; --accent-ink: #9a3412; --accent-soft: #fdebdd; --accent-bright: #f26522;
  --good: #1f7a4d; --good-soft: #e3f3ea; --bad: #b42318; --bad-soft: #fde8e7; --sun: #b7791f;
  --radius: 16px; --radius-sm: 10px; --wrap: 1180px;
  --display: "Fraunces", Georgia, "Times New Roman", serif;
  --text: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color-scheme: light;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 17px/1.6 var(--text); }
img, svg, video { max-width: 100%; height: auto; }
a { color: var(--accent); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--accent-ink); }
h1, h2, h3, h4 { color: var(--ink); margin: 0; text-wrap: balance; }
h1 { font: 600 clamp(42px, 6.2vw, 76px)/1.02 var(--display); letter-spacing: -0.02em; }
h1 span { color: var(--accent); }
h2 { font: 600 clamp(30px, 3.6vw, 46px)/1.1 var(--display); letter-spacing: -0.015em; }
h3 { font: 650 19px/1.3 var(--text); letter-spacing: -0.005em; }
h4 { font: 600 13px/1.4 var(--text); letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
p { margin: 0.6em 0 0; }
ul, ol { padding-left: 1.2em; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: #fff; padding: 8px 12px; border-radius: 8px; }
.skip:focus { left: 12px; z-index: 50; }
:focus-visible { outline: 3px solid var(--accent-bright); outline-offset: 2px; border-radius: 6px; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding-left: max(20px, env(safe-area-inset-left, 0px)); padding-right: max(20px, env(safe-area-inset-right, 0px)); }
section { padding-block: clamp(56px, 8vw, 104px); }
section.tight { padding-block: clamp(40px, 6vw, 72px); }
section.band { background: var(--band); }
section.ink { background: var(--ink); color: #f2efe9; }
section.ink h2, section.ink h3 { color: #fff; }
section.ink .muted, section.ink .lead { color: #c9c3b8; }
.eyebrow { font: 700 13px/1.4 var(--text); letter-spacing: 0.12em; text-transform: uppercase; color: var(--accent); margin-bottom: 14px; }
.lead { font-size: clamp(18px, 1.6vw, 21px); line-height: 1.55; color: var(--ink-2); max-width: 66ch; }
.muted { color: var(--muted); }
.small { font-size: 14px; }
.center { text-align: center; }
.center .lead { margin-left: auto; margin-right: auto; }

/* header */
.site-head { position: sticky; top: 0; z-index: 20; background: rgba(250, 248, 244, 0.96); border-bottom: 1px solid var(--line); }
.site-head .wrap { display: flex; align-items: center; gap: 24px; min-height: 68px; }
.brand img { display: block; height: 40px; width: auto; }
.nav { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.nav a { color: var(--ink-2); text-decoration: none; font-weight: 550; font-size: 15px; padding: 8px 12px; border-radius: 999px; }
.nav a:hover { background: var(--band); color: var(--ink); }
.nav a[aria-current="page"] { color: var(--ink); background: var(--band); }
.nav .nav-signin { margin-left: 8px; }
.nav .btn { margin-left: 4px; color: #fff; }
.menu-btn { display: none; margin-left: auto; font: 600 15px var(--text); background: var(--surface); border: 1px solid var(--line); border-radius: 999px; padding: 8px 16px; color: var(--ink); }
@media (max-width: 1020px) {
  .menu-btn { display: block; }
  .nav { display: none; position: absolute; top: 68px; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 2px; padding: 12px 20px 20px; background: var(--bg); border-bottom: 1px solid var(--line); }
  .nav.open { display: flex; }
  .nav a { padding: 12px 14px; }
  .nav .nav-signin, .nav .btn { margin-left: 0; }
}

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; font: 650 16px/1 var(--text); padding: 15px 24px; border-radius: 999px; border: 1.5px solid var(--ink); background: var(--surface); color: var(--ink); text-decoration: none; cursor: pointer; transition: transform 0.15s, background 0.15s; }
.btn:hover { transform: translateY(-1px); color: var(--ink); background: var(--band); }
.btn-primary { background: var(--accent); border-color: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-ink); border-color: var(--accent-ink); color: #fff; }
.btn-ghost, .btn.ghost { background: transparent; }
.btn-sm { padding: 10px 16px; font-size: 14px; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.center .cta-row { justify-content: center; }

/* hero */
.hero { padding-block: clamp(64px, 9vw, 120px) clamp(48px, 7vw, 88px); }
.hero .lead { margin-top: 22px; }
.hero-sm { padding-block: clamp(48px, 7vw, 84px) clamp(24px, 4vw, 40px); }
.hero-note { margin-top: 18px; font-size: 14px; color: var(--muted); }
.split { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
.split > * { min-width: 0; }
@media (max-width: 900px) { .split { grid-template-columns: 1fr; } }
.art { width: 100%; border-radius: var(--radius); }
.frame { background: var(--surface); border: 1px solid var(--line); border-radius: 20px; padding: 18px; box-shadow: 0 1px 0 rgba(22, 24, 29, 0.04), 0 18px 40px -24px rgba(22, 24, 29, 0.25); }
.video-frame { border-radius: 20px; overflow: hidden; border: 1px solid var(--line); background: var(--surface); }
.video-frame video { display: block; width: 100%; }

/* grids and cards */
.grid { display: grid; gap: 20px; }
.grid > * { min-width: 0; }
.g2 { grid-template-columns: repeat(2, 1fr); }
.g3 { grid-template-columns: repeat(3, 1fr); }
.g4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 960px) { .g3, .g4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .g2, .g3, .g4 { grid-template-columns: 1fr; } }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; }
.card h3 + p { margin-top: 8px; }
.card p { color: var(--ink-2); }
.card a { font-weight: 600; }
.card .eyebrow { margin-bottom: 8px; }
.card.quiet { background: transparent; }
.card.accent { background: var(--accent-soft); border-color: #f6cfb4; }

/* the three tools: big numbered feature blocks */
.tools { display: grid; gap: 22px; grid-template-columns: repeat(3, 1fr); margin-top: 40px; }
.tools > * { min-width: 0; }
@media (max-width: 960px) { .tools { grid-template-columns: 1fr; } }
.tool { background: var(--surface); border: 1px solid var(--line); border-radius: 22px; padding: 30px; display: flex; flex-direction: column; gap: 12px; }
.tool .num { font: 600 15px/1 var(--display); color: var(--accent); }
.tool h3 { font: 600 28px/1.15 var(--display); }
.tool p { color: var(--ink-2); margin: 0; }
.tool ul { margin: 6px 0 0; padding-left: 1.1em; color: var(--ink-2); }
.tool .more { margin-top: auto; padding-top: 10px; font-weight: 650; text-decoration: none; }
.tool .more::after { content: " \2192"; }

/* problem / answer rows */
.rows { display: grid; gap: 0; margin-top: 32px; border-top: 1px solid var(--line); }
.row { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 32px; padding: 26px 0; border-bottom: 1px solid var(--line); }
.row > * { min-width: 0; }
.row h3 { font: 600 22px/1.25 var(--display); }
.row p { margin: 0; color: var(--ink-2); }
@media (max-width: 760px) { .row { grid-template-columns: 1fr; gap: 8px; } }

/* steps */
.steps { counter-reset: s; display: grid; gap: 20px; grid-template-columns: repeat(3, 1fr); margin-top: 32px; }
.steps > * { min-width: 0; }
@media (max-width: 860px) { .steps { grid-template-columns: 1fr; } }
.step { counter-increment: s; border-top: 2px solid var(--ink); padding-top: 18px; }
.step::before { content: counter(s, decimal-leading-zero); font: 600 15px var(--display); color: var(--accent); }
.step h3 { margin-top: 8px; }
.step p { color: var(--ink-2); }

/* numbers */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-top: 32px; }
.stats > * { min-width: 0; }
@media (max-width: 860px) { .stats { grid-template-columns: repeat(2, 1fr); } }
.stat-big { border-left: 2px solid var(--accent); padding-left: 16px; }
.stat-big b { display: block; font: 600 clamp(28px, 3.4vw, 40px)/1.05 var(--display); color: var(--ink); }
.stat-big span { display: block; margin-top: 6px; font-size: 15px; color: var(--ink-2); }

/* lists */
.tick { list-style: none; padding: 0; margin: 12px 0 0; }
.tick li { position: relative; padding-left: 28px; margin-top: 8px; color: var(--ink-2); }
.tick li::before { content: ""; position: absolute; left: 2px; top: 0.45em; width: 14px; height: 8px; border-left: 2.5px solid var(--good); border-bottom: 2.5px solid var(--good); transform: rotate(-45deg); }
.tick.cross li::before { width: 12px; height: 12px; border: 0; top: 0.4em; background: linear-gradient(45deg, transparent 44%, var(--bad) 44% 56%, transparent 56%), linear-gradient(-45deg, transparent 44%, var(--bad) 44% 56%, transparent 56%); transform: none; }
.badge { display: inline-block; font: 650 12px/1 var(--text); letter-spacing: 0.04em; padding: 6px 10px; border-radius: 999px; background: var(--band); color: var(--ink-2); vertical-align: middle; }
.badge.ok, .badge.free { background: var(--good-soft); color: var(--good); }
.badge.soon { background: var(--accent-soft); color: var(--accent-ink); }
.badge.hot { background: var(--accent-soft); color: var(--accent-ink); }

/* plans */
.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.plans > * { min-width: 0; }
@media (max-width: 960px) { .plans { grid-template-columns: 1fr; } }
.plan { background: var(--surface); border: 1px solid var(--line); border-radius: 22px; padding: 30px; display: flex; flex-direction: column; text-align: left; }
.plan.featured { border: 2px solid var(--ink); }
.plan h3 { font: 600 26px/1.2 var(--display); }
.plan .price { font: 600 40px/1 var(--display); margin-top: 14px; }
.plan .price small { font: 500 16px var(--text); color: var(--muted); }
.plan .tick { flex: 1; margin-bottom: 22px; }

/* tables */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
table { width: 100%; border-collapse: collapse; font-size: 15px; }
th, td { text-align: left; padding: 14px 16px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { font-weight: 650; background: var(--band); }
tr:last-child td { border-bottom: 0; }
td.yes { color: var(--good); font-weight: 700; }
.table { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }

/* FAQ */
details { border-bottom: 1px solid var(--line); padding: 18px 0; }
details:first-of-type { border-top: 1px solid var(--line); }
summary { cursor: pointer; font-weight: 650; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
summary::after { content: "+"; font: 400 24px/1 var(--text); color: var(--accent); }
details[open] summary::after { content: "\2013"; }
summary::-webkit-details-marker { display: none; }
details p { color: var(--ink-2); max-width: 75ch; }

/* plugins: icon wall and guide pages */
.icon-wall { display: grid; grid-template-columns: repeat(auto-fill, minmax(64px, 1fr)); gap: 12px; }
.icon-wall a { display: block; border-radius: 14px; transition: transform 0.15s; }
.icon-wall a:hover { transform: translateY(-2px); }
.icon-wall img { display: block; width: 100%; border-radius: 14px; }
.card.orig { display: flex; align-items: center; gap: 14px; text-decoration: none; color: var(--ink); padding: 16px; }
.card.orig img { border-radius: 12px; flex: none; }
.card.orig:hover { border-color: var(--ink); }
.guide-head { display: flex; align-items: center; gap: 22px; }
.guide-head img { border-radius: 20px; flex: none; }
.guide { max-width: 860px; }
.guide h2 { font-size: clamp(26px, 2.6vw, 34px); margin-top: 48px; }
.controls { display: grid; grid-template-columns: minmax(140px, 0.32fr) 1fr; gap: 0; margin-top: 18px; border-top: 1px solid var(--line); }
.controls dt { font-weight: 650; padding: 14px 16px 14px 0; border-bottom: 1px solid var(--line); }
.controls dd { margin: 0; padding: 14px 0; border-bottom: 1px solid var(--line); color: var(--ink-2); }
@media (max-width: 600px) { .controls { grid-template-columns: 1fr; } .controls dt { border-bottom: 0; padding-bottom: 0; } }
.guide-nav { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; margin-top: 48px; padding-top: 20px; border-top: 1px solid var(--line); }

/* legal pages */
.legal { max-width: 820px; }
.legal h2 { font-size: clamp(22px, 2.2vw, 28px); margin-top: 40px; }
.legal li { margin-top: 10px; color: var(--ink-2); }
.legal .meta { color: var(--muted); font-size: 14px; }

/* footer */
.site-foot { background: var(--surface); border-top: 1px solid var(--line); padding-block: 56px 40px; font-size: 15px; color: var(--ink-2); }
.foot-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 32px; }
.foot-grid > * { min-width: 0; }
@media (max-width: 860px) { .foot-grid { grid-template-columns: 1fr 1fr; } }
.foot-grid ul { list-style: none; padding: 0; margin: 12px 0 0; }
.foot-grid li { margin-top: 8px; }
.foot-grid a { color: var(--ink-2); text-decoration: none; }
.foot-grid a:hover { color: var(--accent); text-decoration: underline; }
.legal-line { margin-top: 40px; padding-top: 20px; border-top: 1px solid var(--line); font-size: 13px; color: var(--muted); }
.legal-line a { color: var(--muted); }

/* off-screen sections render lazily */
section { content-visibility: auto; contain-intrinsic-size: auto 800px; }
.hero, .hero-sm { content-visibility: visible; }
@media (prefers-reduced-motion: reduce) { * { transition: none !important; scroll-behavior: auto !important; } }

/* product mock panels (HTML, not images) */
.mock { font-size: 15px; }
.mock-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; font-size: 17px; }
.mock-row { display: flex; justify-content: space-between; gap: 16px; padding: 11px 0; border-top: 1px solid var(--line); flex-wrap: wrap; }
.mock-row span { color: var(--ink-2); }
.mock-row b { font-weight: 650; }
.tool ul.tick { padding-left: 0; }
.brand img { height: 44px; }

/* legal documents */
.doc { max-width: 860px; margin: 0 auto; padding-block: clamp(40px, 6vw, 72px); padding-left: max(20px, env(safe-area-inset-left, 0px)); padding-right: max(20px, env(safe-area-inset-right, 0px)); }
.doc h1 { font-size: clamp(36px, 4.6vw, 54px); }
.doc h2 { font-size: clamp(22px, 2.2vw, 28px); margin-top: 44px; }
.doc .meta { color: var(--muted); font-size: 14px; margin-top: 10px; }
.doc p, .doc li { color: var(--ink-2); }
.doc li { margin-top: 10px; }
.doc ol, .doc ul { padding-left: 1.6em; }
.doc .box { background: var(--surface); border: 1px solid var(--line); border-left: 3px solid var(--accent); border-radius: var(--radius-sm); padding: 18px 22px; margin-top: 24px; }
.doc table { margin-top: 14px; }
.doc .table-wrap, .doc table { display: block; overflow-x: auto; }
.steps.four { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 960px) { .steps.four { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .steps.four { grid-template-columns: 1fr; } }

/* in-depth tool pages: a session walkthrough and a before/after comparison */
.walk { list-style: none; padding: 0; margin: 32px 0 0; display: grid; gap: 0; border-left: 2px solid var(--line); }
.walk li { position: relative; padding: 0 0 28px 30px; }
.walk li::before { content: ""; position: absolute; left: -8px; top: 4px; width: 14px; height: 14px; border-radius: 99px; background: var(--accent); box-shadow: 0 0 0 4px var(--bg); }
.walk .when { font: 700 13px/1.4 var(--text); letter-spacing: 0.08em; text-transform: uppercase; color: var(--accent); }
.walk h3 { margin-top: 4px; }
.walk p { color: var(--ink-2); max-width: 70ch; }
.vs { display: grid; grid-template-columns: 1fr 1fr; gap: 0; margin-top: 28px; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--surface); }
.vs > div { padding: 22px 24px; min-width: 0; }
.vs > div:first-child { background: var(--band); }
.vs h3 { margin-bottom: 8px; }
.vs ul { margin: 0; padding-left: 1.1em; color: var(--ink-2); }
.vs li { margin-top: 8px; }
@media (max-width: 760px) { .vs { grid-template-columns: 1fr; } }
.spec { display: grid; grid-template-columns: minmax(160px, 0.35fr) 1fr; margin-top: 18px; border-top: 1px solid var(--line); }
.spec dt { font-weight: 650; padding: 14px 16px 14px 0; border-bottom: 1px solid var(--line); }
.spec dd { margin: 0; padding: 14px 0; border-bottom: 1px solid var(--line); color: var(--ink-2); }
@media (max-width: 600px) { .spec { grid-template-columns: 1fr; } .spec dt { border-bottom: 0; padding-bottom: 0; } }
