/* Dimframe website. Plain CSS, no build step. Light and dark follow the visitor's system setting. */

:root {
  --bg: #faf9f6;
  --bg-alt: #f2f0ea;
  --surface: #ffffff;
  --text: #1b1b1f;
  --muted: #5b5b64;
  --line: #e4e1d8;
  --accent: #9a5a00;
  --glow: #f4b740;
  --button-bg: #1b1b1f;
  --button-text: #ffffff;
  --shade: rgba(16, 16, 20, 0.74);
  --window: #ffffff;
  --window-bar: #efede6;
  --ink: #cfcbc1;
  --ink-strong: #3a3a42;
  --radius: 14px;
  --shadow: 0 24px 60px -28px rgba(20, 20, 30, 0.45);
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0e0e11;
    --bg-alt: #141418;
    --surface: #18181d;
    --text: #f1f1f3;
    --muted: #a3a3ad;
    --line: #2a2a31;
    --accent: #f2b14a;
    --glow: #f2b14a;
    --button-bg: #f1f1f3;
    --button-text: #0e0e11;
    --shade: rgba(0, 0, 0, 0.74);
    --window: #202027;
    --window-bar: #292931;
    --ink: #3f3f48;
    --ink-strong: #e8e8ec;
    --shadow: 0 24px 60px -28px rgba(0, 0, 0, 0.9);
  }
}

* { box-sizing: border-box; }

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

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

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

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
:focus-visible { outline: 3px solid var(--glow); outline-offset: 3px; border-radius: 6px; }

.wrap { width: 100%; max-width: 1080px; margin: 0 auto; padding: 0 16px; }
.narrow { max-width: 760px; }
.center { text-align: center; }

@media (min-width: 720px) {
  .wrap { padding: 0 32px; }
}

h1, h2, h3 { line-height: 1.15; letter-spacing: -0.02em; margin: 0 0 0.5em; }
h1 { font-size: clamp(2.4rem, 6vw, 3.8rem); font-weight: 750; }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.2rem); font-weight: 700; }
h3 { font-size: 1.1rem; font-weight: 650; letter-spacing: -0.01em; }
p { margin: 0 0 1em; }

.lede { font-size: 1.2rem; color: var(--muted); }
.fine { font-size: 0.92rem; color: var(--muted); }
.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--muted);
  margin-bottom: 0.75em;
}

kbd {
  font: 600 0.85em/1 ui-monospace, "SF Mono", Menlo, monospace;
  padding: 3px 6px;
  margin: 0 1px;
  border: 1px solid var(--line);
  border-bottom-width: 2px;
  border-radius: 6px;
  background: var(--surface);
  color: var(--text);
  white-space: nowrap;
}

/* Header and footer */

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: var(--bg);
  background: color-mix(in srgb, var(--bg) 86%, transparent);
  -webkit-backdrop-filter: saturate(1.4) blur(12px);
  backdrop-filter: saturate(1.4) blur(12px);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  height: 60px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: -0.01em;
}
.brand:hover { text-decoration: none; }
.brand-mark { width: 26px; height: 26px; flex: none; }

.nav { display: flex; gap: 20px; font-size: 0.95rem; }
.nav a { color: var(--muted); }
.nav a:hover { color: var(--text); text-decoration: none; }

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

.site-footer { padding: 32px 0 48px; color: var(--muted); font-size: 0.92rem; }
.footer-inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; }
.site-footer nav { display: flex; gap: 20px; }
.site-footer a { color: var(--muted); }
.site-footer a:hover { color: var(--text); }

/* Buttons */

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 22px;
  border-radius: 999px;
  background: var(--button-bg);
  color: var(--button-text);
  font-weight: 600;
  font-size: 1rem;
  text-align: center;
}
.button:hover { text-decoration: none; }
.button-soon { cursor: default; }

/* Home: hero */

.hero { padding: 48px 0 40px; }
.hero-grid { display: grid; gap: 40px; align-items: center; }
.hero-copy .lede { max-width: 34em; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin: 28px 0 12px; }
.hero-art { margin: 0; }
.hero-art svg { display: block; width: 100%; height: auto; filter: drop-shadow(0 22px 40px rgba(20, 20, 30, 0.22)); }

@media (min-width: 900px) {
  .hero { padding: 88px 0 72px; }
  .hero-grid { grid-template-columns: 1fr 1.1fr; gap: 56px; }
}

/* The illustration: a window with one paragraph framed and the rest dimmed */

.art-window { fill: var(--window); stroke: var(--line); stroke-width: 1.5; }
.art-bar { fill: var(--window-bar); }
.art-dot { fill: var(--ink); }
.art-line { fill: var(--ink); }
.art-line-strong { fill: var(--ink-strong); }
.art-shade { fill: var(--shade); }
.art-frame { fill: none; stroke: #ffffff; stroke-width: 2.5; }
.art-handle { fill: #ffffff; stroke: rgba(0, 0, 0, 0.45); stroke-width: 1; }

/* Sections */

.section { padding: 64px 0; }
.section-alt { background: var(--bg-alt); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }

.steps { list-style: none; margin: 32px 0 0; padding: 0; display: grid; gap: 16px; }
.steps li { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.steps p { color: var(--muted); margin: 0; }
.step-num {
  display: inline-grid;
  place-items: center;
  width: 32px;
  height: 32px;
  margin-bottom: 14px;
  border-radius: 50%;
  background: var(--glow);
  color: #1b1b1f;
  font-weight: 700;
}

@media (min-width: 760px) {
  .steps { grid-template-columns: repeat(3, 1fr); gap: 20px; }
}

.features { display: grid; gap: 28px 36px; margin-top: 32px; }
.feature h3 { position: relative; padding-left: 20px; margin-bottom: 0.35em; }
.feature h3::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.32em;
  width: 10px;
  height: 10px;
  border-radius: 2px;
  background: var(--glow);
}
.feature p { color: var(--muted); margin: 0; }

@media (min-width: 640px) {
  .features { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 960px) {
  .features { grid-template-columns: repeat(3, 1fr); }
}

.price-card {
  max-width: 520px;
  margin: 0 auto;
  padding: 40px 24px;
  text-align: center;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 20px;
  box-shadow: var(--shadow);
}
.price { margin: 4px 0 12px; }
.price-amount { font-size: 3rem; font-weight: 750; letter-spacing: -0.03em; }
.price-note { color: var(--muted); font-size: 1.1rem; }
.price-card .button { margin: 12px 0 10px; }

/* FAQ */

.faq { margin-top: 24px; border-top: 1px solid var(--line); }
details { border-bottom: 1px solid var(--line); padding: 16px 0; }
summary {
  position: relative;
  padding-right: 36px;
  font-weight: 600;
  cursor: pointer;
  list-style: none;
}
summary::-webkit-details-marker { display: none; }
summary::after {
  content: "+";
  position: absolute;
  right: 6px;
  top: -3px;
  font-size: 1.4rem;
  font-weight: 400;
  color: var(--muted);
}
details[open] summary::after { content: "\2013"; }
details p { margin: 12px 0 4px; color: var(--muted); }

/* Text pages: privacy and support */

.doc { padding: 48px 0 24px; }
.doc h1 { font-size: clamp(2rem, 5vw, 2.8rem); }
.doc h2 { font-size: 1.35rem; margin-top: 2em; }
.doc ul, .doc ol { padding-left: 1.3em; }
.doc li { margin: 0.4em 0; }
.summary {
  margin: 24px 0;
  padding: 16px 20px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-left: 4px solid var(--glow);
  border-radius: 10px;
}
