/* AI-ART public site — one hand-written stylesheet, no framework, no build step.
   Palette is the site's original: charcoal #1a1a1d, black chrome, blue-600 actions,
   orange-500 focus/accents. */

:root {
  --bg: #1a1a1d;
  --bg-deep: #0e0e10;
  --surface: #222226;
  --surface-2: #2a2a2e;
  --surface-3: #33333a;
  --line: rgba(255, 255, 255, .08);
  --line-strong: rgba(255, 255, 255, .16);
  --text: #f4f4f5;
  --text-soft: #d4d4d8;
  --muted: #a1a1aa;
  --primary: #2563eb;
  --primary-hover: #1d4ed8;
  --primary-soft: rgba(37, 99, 235, .16);
  --accent: #f97316;
  --accent-soft: rgba(249, 115, 22, .14);
  --danger: #f87171;
  --success: #4ade80;
  --radius-sm: 10px;
  --radius: 16px;
  --radius-lg: 24px;
  --shadow: 0 1px 0 rgba(255, 255, 255, .04) inset, 0 20px 40px -24px rgba(0, 0, 0, .7);
  --font: "Poppins", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --container: 1200px;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 84px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 16px/1.65 var(--font);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}
img, svg, video { display: block; max-width: 100%; height: auto; }
a { color: #60a5fa; text-decoration: none; transition: color .15s; }
a:hover { color: #93c5fd; }
h1, h2, h3, h4 { margin: 0; line-height: 1.2; font-weight: 600; letter-spacing: -.02em; color: #fff; }
p { margin: 0; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
::selection { background: var(--accent); color: #111; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

.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;
}
.skip-link {
  position: absolute; left: 16px; top: -60px; z-index: 100;
  background: var(--accent); color: #111; padding: 10px 16px; border-radius: var(--radius-sm); font-weight: 600;
}
.skip-link:focus { top: 12px; color: #111; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 20px; }
.container.narrow { max-width: 860px; }
@media (min-width: 768px) { .container { padding: 0 32px; } }

/* ---------------------------------------------------------------- header */
.site-header {
  position: sticky; top: 0; z-index: 40;
  background: rgba(14, 14, 16, .78);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid var(--line);
}
.site-header .container { display: flex; align-items: center; gap: 24px; height: 68px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: #fff; font-weight: 700; font-size: 1.125rem; letter-spacing: -.01em; }
.brand:hover { color: #fff; }
.brand img { width: 36px; height: 36px; border-radius: 10px; }
.brand small { display: block; font-size: .7rem; font-weight: 500; color: var(--muted); letter-spacing: .02em; line-height: 1; margin-top: 3px; }
.nav { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.nav a { color: var(--text-soft); font-size: .925rem; font-weight: 500; padding: 8px 12px; border-radius: 999px; }
.nav a:hover, .nav a[aria-current="page"] { color: #fff; background: rgba(255, 255, 255, .06); }
.nav .btn { margin-left: 8px; }
.nav-toggle {
  display: none; margin-left: auto; width: 42px; height: 42px; border-radius: 12px;
  border: 1px solid var(--line-strong); background: transparent; cursor: pointer; place-items: center;
}
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after {
  display: block; width: 18px; height: 2px; background: #fff; border-radius: 2px; position: relative; transition: transform .2s;
}
.nav-toggle span::before, .nav-toggle span::after { content: ""; position: absolute; left: 0; }
.nav-toggle span::before { top: -6px; } .nav-toggle span::after { top: 6px; }
.nav-toggle[aria-expanded="true"] span { background: transparent; }
.nav-toggle[aria-expanded="true"] span::before { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span::after { transform: translateY(-6px) rotate(-45deg); }
@media (max-width: 860px) {
  .nav-toggle { display: grid; }
  .nav {
    position: absolute; top: 68px; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 2px;
    padding: 12px 20px 20px; background: rgba(14, 14, 16, .97); border-bottom: 1px solid var(--line);
    display: none;
  }
  .nav.open { display: flex; }
  .nav a { padding: 12px 14px; border-radius: 12px; }
  .nav .btn { margin: 8px 0 0; }
}

/* --------------------------------------------------------------- buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; padding: 10px 20px; border-radius: 999px; border: 1px solid transparent;
  font-weight: 600; font-size: .95rem; line-height: 1; cursor: pointer; white-space: nowrap;
  transition: background-color .15s, border-color .15s, color .15s, transform .15s, box-shadow .15s;
}
.btn:active { transform: translateY(1px); }
.btn svg { width: 18px; height: 18px; flex: none; }
.btn-primary { background: var(--primary); color: #fff; box-shadow: 0 8px 24px -10px rgba(37, 99, 235, .8); }
.btn-primary:hover { background: var(--primary-hover); color: #fff; }
.btn-ghost { background: rgba(255, 255, 255, .04); border-color: var(--line-strong); color: var(--text); }
.btn-ghost:hover { background: rgba(255, 255, 255, .09); color: #fff; }
.btn-sm { min-height: 36px; padding: 8px 14px; font-size: .85rem; }
.btn-lg { min-height: 52px; padding: 14px 28px; font-size: 1rem; }
.btn[disabled] { opacity: .6; cursor: progress; }

/* ------------------------------------------------------------ typography */
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px; font-size: .8rem; font-weight: 600;
  letter-spacing: .08em; text-transform: uppercase; color: var(--accent);
}
.eyebrow::before { content: ""; width: 18px; height: 2px; border-radius: 2px; background: currentColor; }
.lead { font-size: 1.125rem; color: var(--text-soft); max-width: 640px; }
.muted { color: var(--muted); }
.gradient-text {
  background: linear-gradient(100deg, #fff 0%, #bfdbfe 45%, #fdba74 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}

.section { padding: 88px 0; }
.section-sm { padding: 56px 0; }
.section-head { max-width: 720px; margin-bottom: 40px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head h2 { font-size: clamp(1.75rem, 3.2vw, 2.5rem); margin: 12px 0 14px; }
.section-head p { color: var(--muted); font-size: 1.05rem; }
.section-alt { background: linear-gradient(180deg, var(--bg-deep), var(--bg)); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
@media (max-width: 640px) { .section { padding: 64px 0; } }

/* ------------------------------------------------------------------ hero */
.hero { position: relative; padding: 64px 0 72px; overflow: hidden; isolation: isolate; }
.hero::before {
  content: ""; position: absolute; inset: -20% -10% auto; height: 640px; z-index: -1;
  background:
    radial-gradient(600px 320px at 18% 30%, rgba(37, 99, 235, .28), transparent 70%),
    radial-gradient(520px 300px at 82% 20%, rgba(249, 115, 22, .16), transparent 70%);
}
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: -1; opacity: .5;
  background-image: linear-gradient(rgba(255, 255, 255, .035) 1px, transparent 1px),
                    linear-gradient(90deg, rgba(255, 255, 255, .035) 1px, transparent 1px);
  background-size: 48px 48px;
  -webkit-mask-image: radial-gradient(ellipse at 50% 0%, #000 20%, transparent 70%);
  mask-image: radial-gradient(ellipse at 50% 0%, #000 20%, transparent 70%);
}
.hero-copy { text-align: center; max-width: 820px; margin: 0 auto 40px; }
.hero h1 { font-size: clamp(2.25rem, 5.4vw, 4rem); font-weight: 700; letter-spacing: -.035em; margin: 16px 0 18px; }
.hero .lead { margin: 0 auto; }
.badge {
  display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px 6px 8px; border-radius: 999px;
  border: 1px solid var(--line-strong); background: rgba(255, 255, 255, .04); font-size: .825rem; color: var(--text-soft);
}
.badge b { background: var(--accent); color: #111; font-size: .7rem; padding: 3px 8px; border-radius: 999px; letter-spacing: .04em; }

.trust { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 28px; margin-top: 28px; padding: 0; list-style: none; color: var(--muted); font-size: .9rem; }
.trust li { display: inline-flex; align-items: center; gap: 8px; }
.trust svg { width: 18px; height: 18px; color: var(--success); }

/* ------------------------------------------------------------- generator */
.studio {
  display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 0;
  background: linear-gradient(180deg, rgba(42, 42, 46, .9), rgba(30, 30, 34, .9));
  border: 1px solid var(--line-strong); border-radius: var(--radius-lg); box-shadow: var(--shadow); overflow: hidden;
}
@media (max-width: 900px) { .studio { grid-template-columns: 1fr; } }
.studio-form { padding: 28px; display: flex; flex-direction: column; gap: 22px; border-right: 1px solid var(--line); }
@media (max-width: 900px) { .studio-form { border-right: 0; border-bottom: 1px solid var(--line); padding: 22px; } }
.field-label { display: flex; justify-content: space-between; align-items: baseline; font-size: .85rem; font-weight: 600; color: var(--text-soft); margin-bottom: 10px; }
.field-label span { font-weight: 400; color: var(--muted); font-size: .8rem; }
.prompt-box {
  width: 100%; min-height: 140px; resize: vertical; padding: 14px 16px; border-radius: var(--radius);
  background: var(--bg-deep); border: 1px solid var(--line-strong); color: #fff; line-height: 1.55;
  transition: border-color .15s, box-shadow .15s;
}
.prompt-box::placeholder { color: #71717a; }
.prompt-box:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }

.segmented { display: flex; flex-wrap: wrap; gap: 8px; border: 0; margin: 0; padding: 0; min-width: 0; }
.segmented legend { padding: 0; }
.segmented label { position: relative; }
.segmented input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.segmented span {
  display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 8px 14px; border-radius: 12px;
  background: var(--bg-deep); border: 1px solid var(--line-strong); color: var(--text-soft); font-size: .875rem; font-weight: 500;
  transition: border-color .15s, background-color .15s, color .15s; cursor: pointer;
}
.segmented span i { display: inline-block; border: 1.5px solid currentColor; border-radius: 3px; opacity: .8; }
.segmented input:checked + span { background: var(--primary-soft); border-color: var(--primary); color: #fff; }
.segmented input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }
.segmented label:hover span { border-color: rgba(255, 255, 255, .3); }

.studio-actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-top: auto; }
.studio-actions .btn-primary { flex: 1 1 100%; }
.studio-actions .btn-ghost { flex: 1 1 0; }
.form-status { min-height: 1.4em; font-size: .875rem; color: var(--muted); }
.form-status.error { color: var(--danger); }

.studio-output { position: relative; padding: 28px; display: flex; align-items: center; justify-content: center; min-height: 460px; }
@media (max-width: 900px) { .studio-output { min-height: 340px; padding: 22px; } }
.canvas {
  position: relative; width: 100%; height: 100%; min-height: 400px; border-radius: var(--radius);
  border: 1.5px dashed var(--line-strong); background:
    radial-gradient(circle at 50% 40%, rgba(37, 99, 235, .08), transparent 60%), var(--bg-deep);
  display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 24px; gap: 14px;
}
@media (max-width: 900px) { .canvas { min-height: 300px; } }
.canvas.has-image { border-style: solid; padding: 16px; }
.canvas-empty svg { width: 52px; height: 52px; color: #52525b; margin: 0 auto 12px; }
.canvas-empty strong { display: block; font-size: 1.15rem; font-weight: 600; color: #fff; margin-bottom: 6px; }
.canvas-empty p:not(:first-of-type) { color: var(--muted); font-size: .925rem; max-width: 300px; }
.canvas img.result { width: auto; max-width: 100%; max-height: 520px; border-radius: 12px; box-shadow: 0 20px 50px -20px rgba(0, 0, 0, .8); }
.result-actions { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; }
.loading {
  position: absolute; inset: 0; display: none; flex-direction: column; align-items: center; justify-content: center; gap: 16px;
  background: rgba(14, 14, 16, .82); border-radius: var(--radius); color: var(--text-soft); font-size: .925rem; z-index: 2;
}
.loading.active { display: flex; }
.loading .shimmer {
  width: 64px; height: 64px; border-radius: 18px;
  background: conic-gradient(from 0deg, var(--primary), var(--accent), var(--primary));
  animation: spin 1.4s linear infinite; -webkit-mask: radial-gradient(circle, transparent 42%, #000 44%); mask: radial-gradient(circle, transparent 42%, #000 44%);
}
@keyframes spin { to { transform: rotate(360deg); } }

/* --------------------------------------------------------------- steps */
.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; counter-reset: step; list-style: none; margin: 0; padding: 0; }
@media (max-width: 820px) { .steps { grid-template-columns: 1fr; } }
.step { position: relative; padding: 28px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); }
.step::before {
  counter-increment: step; content: counter(step, decimal-leading-zero);
  display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; margin-bottom: 18px;
  background: var(--primary-soft); color: #93c5fd; font-weight: 700; font-size: .9rem;
}
.step h3 { font-size: 1.15rem; margin-bottom: 8px; }
.step p { color: var(--muted); font-size: .95rem; }

/* -------------------------------------------------------------- gallery */
.gallery { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 14px; list-style: none; margin: 0; padding: 0; }
@media (max-width: 1024px) { .gallery { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (max-width: 760px) { .gallery { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 520px) { .gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; } }
.tile {
  position: relative; display: block; width: 100%; padding: 0; border: 0; border-radius: 14px; overflow: hidden; cursor: pointer;
  background: var(--surface-2); aspect-ratio: 1 / 1; text-align: left;
}
.tile img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s cubic-bezier(.2, .7, .2, 1); }
.tile::after {
  content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 45%, rgba(0, 0, 0, .85));
  opacity: 0; transition: opacity .25s;
}
.tile .caption {
  position: absolute; left: 12px; right: 12px; bottom: 10px; z-index: 1; color: #fff; font-size: .8rem; font-weight: 500; line-height: 1.35;
  opacity: 0; transform: translateY(6px); transition: opacity .25s, transform .25s;
}
.tile:hover img, .tile:focus-visible img { transform: scale(1.06); }
.tile:hover::after, .tile:focus-visible::after, .tile:hover .caption, .tile:focus-visible .caption { opacity: 1; transform: none; }
@media (hover: none) { .tile::after, .tile .caption { opacity: 1; transform: none; } }

/* ---------------------------------------------------------------- split */
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 56px; align-items: center; }
.split + .split { margin-top: 88px; }
.split.reverse .split-media { order: 2; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; gap: 28px; } .split.reverse .split-media { order: 0; } .split + .split { margin-top: 64px; } }
.split-media { position: relative; }
.split-media img { width: 100%; border-radius: var(--radius-lg); border: 1px solid var(--line); box-shadow: var(--shadow); }
.split-media::before {
  content: ""; position: absolute; inset: 10% -4% -6% 10%; z-index: -1; border-radius: var(--radius-lg);
  background: linear-gradient(135deg, rgba(37, 99, 235, .35), rgba(249, 115, 22, .25));
}
.split-copy h2 { font-size: clamp(1.6rem, 2.8vw, 2.25rem); margin: 12px 0 16px; }
.split-copy p { color: var(--text-soft); }
.split-copy p + p { margin-top: 14px; }
.checks { list-style: none; padding: 0; margin: 22px 0 0; display: grid; gap: 10px; }
.checks li { display: flex; gap: 10px; color: var(--text-soft); font-size: .95rem; }
.checks svg { width: 20px; height: 20px; flex: none; color: var(--accent); margin-top: 2px; }

/* -------------------------------------------------------------- features */
.features { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
@media (max-width: 1024px) { .features { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .features { grid-template-columns: 1fr; } }
.feature { display: flex; flex-direction: column; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); overflow: hidden; transition: border-color .2s, transform .2s; }
.feature:hover { border-color: var(--line-strong); transform: translateY(-3px); }
.feature img { aspect-ratio: 4 / 3; object-fit: cover; width: 100%; }
.feature div { padding: 20px 22px 24px; }
.feature h3 { font-size: 1.05rem; margin-bottom: 8px; line-height: 1.35; }
.feature p { color: var(--muted); font-size: .9rem; }

/* ------------------------------------------------------------------- faq */
.faq { display: grid; gap: 12px; }
.faq details { border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); transition: border-color .2s, background-color .2s; }
.faq details[open] { border-color: var(--line-strong); background: var(--surface-2); }
.faq summary {
  list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 20px 22px; font-weight: 600; font-size: 1rem; color: #fff;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; flex: none; width: 28px; height: 28px; border-radius: 50%; background: rgba(255, 255, 255, .06)
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23d4d4d8' stroke-width='2.2' stroke-linecap='round'%3E%3Cpath d='M12 5v14M5 12h14'/%3E%3C/svg%3E") center / 14px no-repeat;
  transition: transform .2s;
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding: 0 22px 22px; color: var(--text-soft); font-size: .95rem; }

/* ------------------------------------------------------------------ cta */
.cta {
  position: relative; overflow: hidden; text-align: center; padding: 56px 28px; border-radius: var(--radius-lg);
  background: radial-gradient(500px 220px at 15% 0%, rgba(37, 99, 235, .45), transparent 70%),
              radial-gradient(500px 220px at 85% 100%, rgba(249, 115, 22, .32), transparent 70%), var(--surface);
  border: 1px solid var(--line-strong);
}
.cta h2 { font-size: clamp(1.6rem, 3vw, 2.25rem); margin-bottom: 12px; }
.cta p { color: var(--text-soft); margin: 0 auto 26px; max-width: 520px; }

/* ---------------------------------------------------------------- dialog */
dialog.prompt-dialog {
  width: min(560px, calc(100% - 32px)); padding: 0; border: 1px solid var(--line-strong); border-radius: var(--radius-lg);
  background: var(--surface-2); color: var(--text); box-shadow: 0 40px 80px -20px rgba(0, 0, 0, .8);
}
dialog.prompt-dialog::backdrop { background: rgba(0, 0, 0, .7); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); }
.dialog-media { aspect-ratio: 16 / 9; overflow: hidden; background: var(--bg-deep); }
.dialog-media img { width: 100%; height: 100%; object-fit: cover; }
.dialog-body { padding: 22px 24px 24px; }
.dialog-body .eyebrow { margin-bottom: 8px; }
.dialog-body p { font-size: 1.05rem; color: #fff; }
.dialog-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 20px; }
.dialog-close {
  position: absolute; top: 12px; right: 12px; width: 36px; height: 36px; border-radius: 50%; border: 0; cursor: pointer;
  background: rgba(0, 0, 0, .55) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2.2' stroke-linecap='round'%3E%3Cpath d='M6 6l12 12M18 6L6 18'/%3E%3C/svg%3E") center / 16px no-repeat;
}

.toast {
  position: fixed; left: 50%; bottom: 24px; z-index: 60; transform: translate(-50%, 20px); opacity: 0; pointer-events: none;
  background: #fff; color: #111; font-weight: 600; font-size: .9rem; padding: 12px 18px; border-radius: 999px;
  box-shadow: 0 16px 40px -12px rgba(0, 0, 0, .6); transition: opacity .2s, transform .2s;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* --------------------------------------------------------- page / prose */
.page-hero { padding: 64px 0 36px; position: relative; isolation: isolate; }
.page-hero::before {
  content: ""; position: absolute; inset: -40% 0 auto; height: 420px; z-index: -1;
  background: radial-gradient(520px 240px at 20% 40%, rgba(37, 99, 235, .22), transparent 70%),
              radial-gradient(420px 200px at 80% 30%, rgba(249, 115, 22, .12), transparent 70%);
}
.page-hero h1 { font-size: clamp(2rem, 4.4vw, 3rem); font-weight: 700; margin: 12px 0 12px; letter-spacing: -.03em; }
.page-hero p { color: var(--muted); }
.crumbs { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; margin: 0 0 18px; font-size: .85rem; color: var(--muted); }
.crumbs li + li::before { content: "/"; margin-right: 8px; color: #52525b; }
.crumbs a { color: var(--muted); } .crumbs a:hover { color: #fff; }
.store-links { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }
.cta .store-links { justify-content: center; max-width: none; }
.fine-print { margin-top: 26px; font-size: .85rem; }

.prose-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: clamp(24px, 4vw, 48px); margin-bottom: 88px; }
.prose { color: var(--text-soft); font-size: 1rem; line-height: 1.75; }
.prose > section + section { margin-top: 40px; padding-top: 40px; border-top: 1px solid var(--line); }
.prose h2 { font-size: 1.4rem; margin: 0 0 14px; color: #fff; }
.prose h3 { font-size: 1.075rem; margin: 26px 0 8px; color: #fff; }
.prose p + p, .prose p + ul, .prose ul + p, .prose table + p, .prose p + table { margin-top: 14px; }
.prose ul, .prose ol { padding-left: 1.3em; margin: 12px 0 0; }
.prose li + li { margin-top: 6px; }
.prose li::marker { color: var(--accent); }
.prose a { color: #93c5fd; text-decoration: underline; text-decoration-color: rgba(147, 197, 253, .4); text-underline-offset: 3px; }
.prose a:hover { text-decoration-color: currentColor; }
.prose strong { color: #fff; font-weight: 600; }
.prose code { background: var(--bg-deep); padding: .15em .4em; border-radius: 6px; font-size: .9em; }
.prose .table-wrap { overflow-x: auto; margin-top: 16px; border: 1px solid var(--line-strong); border-radius: var(--radius-sm); }
.prose table { width: 100%; border-collapse: collapse; font-size: .925rem; min-width: 560px; }
.prose th, .prose td { padding: 12px 14px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); }
.prose th { background: var(--bg-deep); color: #fff; font-weight: 600; }
.prose tr:last-child td { border-bottom: 0; }

.contact-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; margin-bottom: 88px; }
@media (max-width: 860px) { .contact-grid { grid-template-columns: 1fr; } }
.contact-card { padding: 28px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); }
.contact-card .icon { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 14px; background: var(--primary-soft); color: #93c5fd; margin-bottom: 18px; }
.contact-card .icon svg { width: 22px; height: 22px; }
.contact-card h2 { font-size: 1.1rem; margin-bottom: 8px; }
.contact-card p { color: var(--muted); font-size: .95rem; }
.contact-card .btn { margin-top: 18px; }

/* ---------------------------------------------------------------- footer */
.site-footer { border-top: 1px solid var(--line); background: var(--bg-deep); padding: 56px 0 32px; font-size: .925rem; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; }
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr 1fr; } .footer-grid > :first-child { grid-column: 1 / -1; } }
.footer-grid p { color: var(--muted); margin-top: 14px; max-width: 340px; }
.footer-grid h2 { font-size: .8rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); font-weight: 600; margin-bottom: 14px; }
.footer-grid ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.footer-grid a { color: var(--text-soft); } .footer-grid a:hover { color: #fff; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; margin-top: 44px; padding-top: 24px; border-top: 1px solid var(--line); color: #71717a; font-size: .85rem; }
