/*
 * Dungeoness Maximus (DunMax) — site stylesheet.
 *
 * Ingested from templates/dungeonessmaximus/*.dc.html. Every inline style=""
 * from the Claude Design exports lives here as a class, and every
 * style-hover=""/style-focus="" is a real :hover / :focus-visible rule. That is
 * what lets the CSP drop 'unsafe-inline' entirely (CLAUDE.md §7).
 *
 * Loaded after packages/shared-ui/base.css.
 */

/* --- Design tokens ------------------------------------------------------ */

:root {
  --bg: #14110f;
  --bg-raised: #1a1613;
  --bg-featured: #1e1714;

  --fg: #ede4d3;
  --fg-heading: #f3eada;
  --fg-onaccent: #fbf3e6;

  /* Text tones, lightest to dimmest, as used across the templates. */
  --fg-muted: #b5a992;
  --fg-soft: #a79b87;
  --fg-dim: #8c8071;
  --fg-faint: #6e6355;
  --fg-placeholder: #6e6355;
  --fg-screen: #7c7164;

  --accent: #b4453a;
  --accent-hover: #c85348;
  --accent-link: #e0a79e;
  --gold: #c4802b;

  /* Muted tones used only inside the highlighted annual pricing card. */
  --featured-label: #c09383;
  --featured-dim: #a08a80;
  --featured-body: #c6b8a6;

  --rule-hairline: rgba(237, 228, 211, 0.07);
  --rule-faint: rgba(237, 228, 211, 0.09);
  --rule: rgba(237, 228, 211, 0.12);
  --rule-input: rgba(237, 228, 211, 0.16);
  --rule-strong: rgba(237, 228, 211, 0.28);

  --serif: Spectral, Georgia, 'Times New Roman', serif;
  --sans: Karla, system-ui, -apple-system, 'Segoe UI', sans-serif;
  --mono: 'IBM Plex Mono', ui-monospace, 'SFMono-Regular', Consolas, monospace;

  /* Consumed by shared-ui/base.css. */
  --focus-ring: var(--accent-link);
  --skip-link-bg: var(--fg);
  --skip-link-fg: var(--bg);
  --status-error: #e0a79e;
  --status-pending: var(--fg-dim);

  /* Shared page width and gutter — was `max-width: 1180px; padding: … 28px`. */
  --shell: 1180px;
  --gutter: 28px;
}

/* --- Document ----------------------------------------------------------- */

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--sans);
  overflow-x: hidden;
}

a {
  color: var(--accent-link);
}

a:hover {
  color: var(--fg);
}

::selection {
  background: var(--accent);
  color: var(--bg);
}

input::placeholder,
textarea::placeholder {
  color: var(--fg-placeholder);
}

/* Shared page shell. */
.shell {
  max-width: var(--shell);
  margin: 0 auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}

.rule-top {
  border-top: 1px solid var(--rule-faint);
}

.band {
  background: var(--bg-raised);
  border-top: 1px solid var(--rule-faint);
  border-bottom: 1px solid var(--rule-faint);
}

/* --- Type patterns ------------------------------------------------------ */

/* The small uppercase red mono label that opens most sections. */
.eyebrow {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 18px;
}

/* Dimmer variant used for form labels and footer column headings. */
.eyebrow-dim {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--fg-faint);
  margin: 0 0 8px;
}

.section-title {
  font-family: var(--serif);
  font-size: 42px;
  line-height: 1.12;
  font-weight: 600;
  letter-spacing: -0.015em;
  margin: 0;
  color: var(--fg-heading);
}

.section-lede {
  font-size: 17.5px;
  line-height: 1.65;
  color: var(--fg-muted);
  margin: 0;
}

.caption {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--fg-dim);
  margin-top: 10px;
}

/* --- Header ------------------------------------------------------------- */

.site-header {
  border-bottom: 1px solid var(--rule);
}

/* Keep the same navigation visible while scrolling Home, FAQ and Contact. */
.site-header-sticky {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(20, 17, 15, 0.86);
  backdrop-filter: blur(14px);
}

.header-inner {
  max-width: var(--shell);
  margin: 0 auto;
  padding: 14px var(--gutter);
  display: flex;
  align-items: center;
  gap: 28px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
  color: var(--fg);
}

.brand:hover {
  color: var(--fg);
}

.brand img {
  width: 38px;
  height: 38px;
  object-fit: contain;
}

.brand-names {
  display: flex;
  flex-direction: column;
  line-height: 1.05;
}

.brand-name {
  font-family: var(--serif);
  font-size: 21px;
  font-weight: 700;
  letter-spacing: 0.01em;
  color: var(--fg);
}

.brand-sub {
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--fg-dim);
}

.site-nav {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 26px;
  font-size: 14.5px;
}

.site-nav a {
  color: var(--fg-muted);
}

.site-nav a:hover {
  color: var(--fg);
}

/* --- Buttons ------------------------------------------------------------ */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  border-radius: 3px;
  font-weight: 600;
  transition:
    background 0.2s ease,
    border-color 0.2s ease,
    color 0.2s ease;
}

.btn-primary {
  background: var(--accent);
  color: var(--fg-onaccent);
  padding: 15px 26px;
  font-size: 16px;
}

.btn-primary:hover {
  background: var(--accent-hover);
  color: #fff8ed;
}

.btn-secondary {
  color: var(--fg);
  padding: 15px 26px;
  font-size: 16px;
  border: 1px solid var(--rule-strong);
}

.btn-secondary:hover {
  border-color: rgba(237, 228, 211, 0.6);
  background: rgba(237, 228, 211, 0.05);
  color: var(--fg);
}

/* Compact variant used in the header. */
.btn-compact {
  background: var(--accent);
  color: var(--fg-onaccent);
  padding: 10px 20px;
  font-size: 14px;
  letter-spacing: 0.01em;
}

.btn-compact:hover {
  background: var(--accent-hover);
  color: #fff8ed;
}

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.btn-row-center {
  justify-content: center;
}

/* --- Home: hero --------------------------------------------------------- */

.hero {
  position: relative;
  max-width: var(--shell);
  margin: 0 auto;
  padding: 92px var(--gutter) 88px;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 64px;
  align-items: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--accent);
  border: 1px solid rgba(180, 69, 58, 0.4);
  padding: 7px 13px;
  border-radius: 2px;
  margin-bottom: 30px;
}

.hero-title {
  font-family: var(--serif);
  font-size: 64px;
  line-height: 1.02;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 0 0 24px;
  color: var(--fg-heading);
  text-wrap: pretty;
}

.hero-lede {
  font-size: 19px;
  line-height: 1.6;
  color: var(--fg-muted);
  margin: 0 0 38px;
  max-width: 30em;
  text-wrap: pretty;
}

.hero-actions {
  margin-bottom: 26px;
}

.hero-rating {
  display: flex;
  align-items: center;
  gap: 18px;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  color: var(--fg-dim);
  margin: 0;
}

.hero-stars {
  color: var(--gold);
}

.hero-sep {
  color: #4a423a;
}

.hero-figure {
  position: relative;
  margin: 0;
}

.hero-figure img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: 4px;
  border: 1px solid rgba(237, 228, 211, 0.14);
}

.hero-figure-veil {
  position: absolute;
  inset: 0;
  border-radius: 4px;
  background: linear-gradient(to top, rgba(20, 17, 15, 0.55), transparent 55%);
  pointer-events: none;
}

.hero-figure figcaption {
  position: absolute;
  left: 20px;
  bottom: 18px;
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(237, 228, 211, 0.72);
}

/* --- Home: feature cards ------------------------------------------------ */

.section {
  max-width: var(--shell);
  margin: 0 auto;
  padding: 96px var(--gutter);
}

.section-intro {
  max-width: 34em;
  margin-bottom: 56px;
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.card {
  border: 1px solid var(--rule);
  border-radius: 4px;
  overflow: hidden;
  background: var(--bg-raised);
  transition: border-color 0.25s ease;
}

.card:hover {
  border-color: rgba(180, 69, 58, 0.5);
}

.card img {
  width: 100%;
  height: 210px;
  object-fit: cover;
}

.card-body {
  padding: 22px 22px 26px;
}

.card-title {
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 600;
  margin: 0 0 9px;
  color: var(--fg-heading);
}

.card-text {
  font-size: 15px;
  line-height: 1.6;
  color: var(--fg-soft);
  margin: 0;
}

/* --- Home: split heading rows ------------------------------------------- */

/* Heading on the left, supporting paragraph on the right, baselines aligned. */
.split-head {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: end;
  margin-bottom: 44px;
}

/* --- Home: art style strip ---------------------------------------------- */

.style-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 14px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.style-grid figure {
  margin: 0;
}

.style-grid img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border-radius: 3px;
  border: 1px solid var(--rule);
}

/* --- Home: voice marquee ------------------------------------------------ */

@keyframes dm-drift {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}

.marquee {
  overflow: hidden;
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  padding: 26px 0;
  /* Fade both ends so names slide in and out rather than clipping. */
  mask-image: linear-gradient(to right, transparent, #000 8%, #000 92%, transparent);
}

.marquee-track {
  display: flex;
  gap: 44px;
  width: max-content;
  animation: dm-drift 46s linear infinite;
}

.marquee-track span {
  font-family: var(--serif);
  font-size: 30px;
  color: var(--fg-faint);
  white-space: nowrap;
}

/* The three accent tones that break up the run of names. */
.marquee-track .v-accent {
  color: var(--accent);
}

.marquee-track .v-bright {
  color: var(--fg);
}

.marquee-track .v-gold {
  color: var(--gold);
}

/*
 * An endlessly scrolling strip is exactly what "reduce motion" is for. The
 * names stay, the movement stops.
 */
@media (prefers-reduced-motion: reduce) {
  .marquee-track {
    animation: none;
    flex-wrap: wrap;
    width: auto;
    justify-content: center;
    row-gap: 12px;
  }

  .marquee {
    mask-image: none;
  }
}

/* --- Home: supplied app screenshots ------------------------------------- */

.screen-grid[role='list'] {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
  max-width: 1060px;
  list-style: none;
  margin: 0 auto;
  padding: 0;
}

.screen-grid figure {
  margin: 0;
}

.screen-grid img {
  width: 100%;
  height: auto;
  border-radius: 8px;
  border: 1px solid var(--rule);
}

.screen-grid figcaption {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--fg-faint);
  margin-top: 12px;
}

/* --- Home: how it works ------------------------------------------------- */

.howto {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 72px;
}

.howto-mascot {
  width: 130px;
  height: auto;
  opacity: 0.9;
}

/*
 * The 1px gap plus the container background is what draws the dividing lines
 * between cells — cheaper and crisper than per-cell borders.
 */
.step-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: var(--rule);
  border: 1px solid var(--rule);
  border-radius: 4px;
  list-style: none;
  margin: 0;
  padding: 0;
  overflow: hidden;
}

.step {
  background: var(--bg);
  padding: 28px 26px 32px;
}

.step-no {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--accent);
  margin: 0 0 14px;
}

.step-title {
  font-family: var(--serif);
  font-size: 20px;
  font-weight: 600;
  margin: 0 0 8px;
  color: var(--fg-heading);
}

.step-text {
  font-size: 14.5px;
  line-height: 1.6;
  color: var(--fg-soft);
  margin: 0;
}

/* --- Home: audience columns --------------------------------------------- */

.audience-title {
  font-family: var(--serif);
  font-size: 34px;
  line-height: 1.15;
  font-weight: 600;
  letter-spacing: -0.015em;
  margin: 0 0 40px;
  color: var(--fg-heading);
  max-width: 26em;
}

.audience-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 20px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.audience {
  border-top: 2px solid rgba(237, 228, 211, 0.2);
  padding-top: 18px;
}

/* The first column is picked out in the accent colour. */
.audience-lead {
  border-top-color: var(--accent);
}

.audience h3 {
  font-family: var(--serif);
  font-size: 18px;
  font-weight: 600;
  margin: 0 0 8px;
  color: var(--fg-heading);
}

.audience p {
  font-size: 14.5px;
  line-height: 1.6;
  color: var(--fg-soft);
  margin: 0;
}

/* --- Home: pricing ------------------------------------------------------ */

/* Attribute specificity preserves auto margins against the shared list reset. */

.pricing-intro {
  text-align: center;
  margin-bottom: 48px;
}

.pricing-intro .section-title {
  margin-bottom: 14px;
}

.pricing-grid[role='list'] {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
  max-width: 860px;
  margin: 0 auto;
  list-style: none;
  padding: 0;
}

.plan {
  border: 1px solid var(--rule-input);
  border-radius: 4px;
  padding: 34px 32px 38px;
  background: var(--bg-raised);
}

.plan-featured {
  border-color: var(--accent);
  background: var(--bg-featured);
  position: relative;
}

.plan-flag {
  position: absolute;
  top: -1px;
  right: -1px;
  background: var(--accent);
  color: var(--fg-onaccent);
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 6px 12px;
  border-radius: 0 4px 0 4px;
}

.plan-label {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--fg-dim);
  margin: 0 0 16px;
}

.plan-featured .plan-label {
  color: var(--featured-label);
}

.plan-price {
  display: flex;
  align-items: baseline;
  gap: 6px;
  margin: 0 0 28px;
}

.plan-amount {
  font-family: var(--serif);
  font-size: 48px;
  font-weight: 700;
  color: var(--fg-heading);
  line-height: 1;
}

.plan-period {
  font-size: 15px;
  color: var(--fg-dim);
}

.plan-featured .plan-period {
  color: var(--featured-dim);
}

.plan-features {
  display: flex;
  flex-direction: column;
  gap: 12px;
  font-size: 15px;
  line-height: 1.5;
  color: var(--fg-muted);
  list-style: none;
  margin: 0;
  padding: 0;
}

.plan-featured .plan-features {
  color: var(--featured-body);
}

.plan-features li {
  display: flex;
  gap: 12px;
}

/* The em-dash bullet, drawn rather than typed so it is not read aloud. */
.plan-features li::before {
  content: '—';
  color: var(--accent);
  flex-shrink: 0;
}

/* --- Home: closing call to action --------------------------------------- */

.cta {
  max-width: var(--shell);
  margin: 0 auto;
  padding: 104px var(--gutter);
  text-align: center;
}

.cta img {
  width: 54px;
  height: 54px;
  object-fit: contain;
  margin: 0 auto 26px;
  opacity: 0.85;
}

.cta-title {
  font-family: var(--serif);
  font-size: 52px;
  line-height: 1.06;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 0 auto 22px;
  color: var(--fg-heading);
  max-width: 20em;
}

.cta-text {
  font-size: 18px;
  line-height: 1.6;
  color: var(--fg-muted);
  margin: 0 auto 36px;
  max-width: 34em;
}

/* --- Footers ------------------------------------------------------------ */

.site-footer {
  border-top: 1px solid var(--rule-faint);
}

.footer-cols {
  max-width: var(--shell);
  margin: 0 auto;
  padding: 56px var(--gutter) 44px;
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr;
  gap: 48px;
}

.footer-brand {
  font-family: var(--serif);
  font-size: 20px;
  font-weight: 700;
  color: var(--fg);
  margin: 0 0 10px;
}

.footer-about {
  font-size: 14px;
  line-height: 1.65;
  color: var(--fg-dim);
  margin: 0 0 18px;
  max-width: 34em;
}

.footer-built {
  font-size: 13px;
  line-height: 1.6;
  color: var(--fg-faint);
  margin: 0;
}

.footer-built a {
  color: var(--fg-dim);
}

.footer-col {
  display: flex;
  flex-direction: column;
  gap: 11px;
  font-size: 14.5px;
}

.footer-col a {
  color: var(--fg-muted);
}

.footer-col a:hover {
  color: var(--fg);
}

.footer-legal {
  border-top: 1px solid var(--rule-hairline);
}

.footer-legal p {
  max-width: var(--shell);
  margin: 0 auto;
  padding: 20px var(--gutter);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  color: var(--fg-faint);
}

/* Compact single-row footer used on the interior pages. */
.footer-slim {
  max-width: var(--shell);
  margin: 0 auto;
  padding: 26px var(--gutter);
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  align-items: center;
  font-size: 13.5px;
}

.footer-slim-copy {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  color: var(--fg-faint);
}

.footer-slim-links {
  margin-left: auto;
  display: flex;
  gap: 22px;
}

.footer-slim-links a {
  color: var(--fg-muted);
}

.footer-slim-links a:hover {
  color: var(--fg);
}

/* --- Interior page shell ------------------------------------------------ */

.page {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.page main {
  flex: 1;
}

.page-head {
  max-width: 760px;
  width: 100%;
  margin: 0 auto;
  padding: 80px var(--gutter) 0;
}

.page-title {
  font-family: var(--serif);
  font-size: 48px;
  line-height: 1.06;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 0 0 20px;
  color: var(--fg-heading);
}

.page-lede {
  font-size: 17px;
  line-height: 1.65;
  color: var(--fg-muted);
  margin: 0 0 36px;
}

/* --- Contact page ------------------------------------------------------- */

.contact-layout {
  flex: 1;
  max-width: 1000px;
  width: 100%;
  margin: 0 auto;
  padding: 84px var(--gutter) 100px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: start;
}

.contact-methods {
  display: flex;
  flex-direction: column;
  gap: 26px;
  margin: 0;
}

.contact-methods a {
  font-size: 17px;
}

.contact-methods p {
  font-size: 15.5px;
  line-height: 1.6;
  color: var(--fg-muted);
  margin: 0;
}

.contact-card {
  border: 1px solid rgba(237, 228, 211, 0.14);
  border-radius: 4px;
  background: var(--bg-raised);
  padding: 32px;
}

.contact-card form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.field input,
.field select,
.field textarea {
  background: var(--bg);
  border: 1px solid var(--rule-input);
  border-radius: 3px;
  padding: 13px 14px;
  font-size: 15px;
  color: var(--fg);
  transition: border-color 0.2s ease;
}

/*
 * The template set `outline: none` on these fields unconditionally, which
 * out-specifies base.css's :where() focus ring and removes it for keyboard
 * users too. Suppress it only for pointer focus; :focus-visible keeps the ring.
 */
.field input:focus:not(:focus-visible),
.field select:focus:not(:focus-visible),
.field textarea:focus:not(:focus-visible) {
  outline: none;
}

.field textarea {
  line-height: 1.55;
  resize: vertical;
}

/*
 * Was style-focus="border-color: #B4453A" in the template. :focus-visible keeps
 * the ring for keyboard users without flashing it on every mouse click; the
 * plain :focus rule keeps the border tint for both.
 */
.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: var(--accent);
}

.contact-note {
  font-size: 12.5px;
  line-height: 1.55;
  color: var(--fg-faint);
  margin: 0;
}

.contact-note a {
  color: var(--fg-dim);
}

.contact-card [data-contact-submit] {
  justify-content: center;
  padding: 15px 24px;
  font-size: 15.5px;
}

/* Success panel, shown by shared-ui/contact-form.js after a successful send. */
.contact-sent h2 {
  font-family: var(--serif);
  font-size: 26px;
  font-weight: 600;
  margin: 0 0 10px;
  color: var(--fg-heading);
}

.contact-sent p {
  font-size: 15px;
  line-height: 1.6;
  color: var(--fg-muted);
  margin: 0;
}

.contact-sent:focus-visible {
  outline: none;
}

/* --- FAQ ---------------------------------------------------------------- */

/* Match the heading width and override the shared list reset to preserve gutters. */
.faq-list[role='list'] {
  max-width: 760px;
  width: 100%;
  margin: 0 auto;
  padding: 0 var(--gutter) 96px;
  list-style: none;
}

.faq-item {
  border-top: 1px solid var(--rule);
  padding: 30px 0;
}

.faq-question {
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 600;
  margin: 0 0 10px;
  color: var(--fg-heading);
}

.faq-answer {
  font-size: 15.5px;
  line-height: 1.7;
  color: var(--fg-muted);
  margin: 0;
  max-width: 60em;
}

/* --- Legal pages (Privacy, Terms) --------------------------------------- */

.legal {
  flex: 1;
  max-width: 760px;
  width: 100%;
  margin: 0 auto;
  padding: 80px var(--gutter) 100px;
}

.legal-updated {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--fg-faint);
  margin: 0 0 32px;
}

/*
 * Draft banner. These pages ship as scaffolds in the template — the real copy
 * still has to come across from Squarespace — so the placeholder state is
 * called out rather than left to look finished.
 */
.legal-notice {
  border: 1px solid rgba(180, 69, 58, 0.45);
  border-left-width: 3px;
  border-radius: 3px;
  background: rgba(180, 69, 58, 0.08);
  padding: 18px 20px;
  margin: 0 0 40px;
  font-size: 14.5px;
  line-height: 1.6;
  color: var(--fg-muted);
}

.legal-summary {
  border: 1px solid var(--rule);
  border-radius: 4px;
  background: var(--bg-raised);
  padding: 24px 26px 28px;
  margin: 0 0 44px;
}

.legal-summary h2 {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--fg-dim);
  font-weight: 400;
  margin: 0 0 16px;
}

.legal-summary ul {
  display: flex;
  flex-direction: column;
  gap: 12px;
  font-size: 15px;
  line-height: 1.5;
  color: var(--fg-muted);
  list-style: none;
  margin: 0;
  padding: 0;
}

.legal-summary li {
  display: flex;
  gap: 12px;
}

.legal-summary li::before {
  content: '—';
  color: var(--accent);
  flex-shrink: 0;
}

.legal-body section {
  margin-bottom: 34px;
}

.legal-body h2 {
  font-family: var(--serif);
  font-size: 21px;
  font-weight: 600;
  margin: 0 0 10px;
  color: var(--fg-heading);
}

.legal-body p {
  font-size: 15.5px;
  line-height: 1.7;
  color: var(--fg-muted);
  margin: 0;
}

/* --- 404 ---------------------------------------------------------------- */

.error-page {
  flex: 1;
  max-width: 760px;
  width: 100%;
  margin: 0 auto;
  padding: 120px var(--gutter);
}

/* --- Responsive --------------------------------------------------------- */

@media (max-width: 1000px) {
  .hero {
    grid-template-columns: 1fr;
    gap: 48px;
    padding-top: 64px;
    padding-bottom: 64px;
  }

  .hero-title {
    font-size: clamp(38px, 7vw, 64px);
  }

  .howto {
    grid-template-columns: 1fr;
    gap: 44px;
  }

  .card-grid,
  .screen-grid[role='list'] {
    grid-template-columns: repeat(2, 1fr);
  }

  .audience-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 28px 20px;
  }

  .style-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .split-head,
  .contact-layout {
    grid-template-columns: 1fr;
    gap: 32px;
    align-items: start;
  }

  .footer-cols {
    grid-template-columns: 1fr 1fr;
    gap: 36px;
  }
}

@media (max-width: 640px) {
  .section,
  .cta {
    padding-top: 64px;
    padding-bottom: 64px;
  }

  .section-title {
    font-size: 32px;
  }

  .cta-title {
    font-size: 36px;
  }

  .page-title {
    font-size: 36px;
  }

  .card-grid,
  .screen-grid[role='list'],
  .pricing-grid[role='list'],
  .step-grid,
  .audience-grid {
    grid-template-columns: 1fr;
  }

  .style-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-cols {
    grid-template-columns: 1fr;
  }

  .site-nav {
    flex-wrap: wrap;
    margin-left: 0;
    gap: 12px 16px;
    font-size: 13px;
  }

  .header-inner {
    gap: 16px;
    flex-wrap: wrap;
  }
}

/* --- Inline links in prose ---------------------------------------------- */

/*
 * Links sitting inside a run of body text must be distinguishable by something
 * other than colour alone (WCAG 1.4.1). The template relied on the pink accent
 * by itself, which fails for anyone who cannot separate it from the surrounding
 * tone. Navigation, footer link columns and buttons are exempt: they are
 * standalone targets, not links embedded in a sentence.
 */
.page-lede a,
.faq-answer a,
.contact-note a,
.footer-built a,
.footer-about a,
.legal-body a,
.legal-notice a,
.card-text a,
.section-lede a,
.contact-methods dd a {
  text-decoration: underline;
  text-underline-offset: 0.18em;
  text-decoration-thickness: 1px;
  text-decoration-color: currentColor;
}

.page-lede a:hover,
.faq-answer a:hover,
.contact-note a:hover,
.footer-built a:hover,
.footer-about a:hover,
.legal-body a:hover,
.legal-notice a:hover,
.card-text a:hover,
.section-lede a:hover,
.contact-methods dd a:hover {
  text-decoration-thickness: 2px;
}

/* Navigation disclosures remain usable without JS; the script adds dismissal only. */
.nav-dropdown {
  position: relative;
}
.nav-dropdown summary {
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  gap: 7px;
  color: var(--fg-muted);
}
.nav-dropdown summary::-webkit-details-marker {
  display: none;
}
.nav-arrow {
  display: inline-block;
  transition: transform 0.15s ease;
}
.nav-dropdown[open] .nav-arrow {
  transform: rotate(180deg);
}
.nav-panel {
  position: absolute;
  right: 0;
  top: calc(100% + 14px);
  width: 240px;
  padding: 10px;
  border: 1px solid var(--rule-strong);
  border-radius: 6px;
  background: var(--bg-raised);
  box-shadow: 0 16px 36px #0006;
}
.nav-panel a {
  display: block;
  padding: 12px;
  border-radius: 3px;
}
.nav-panel a:hover {
  background: var(--bg-featured);
}
.nav-dropdown .btn-compact {
  color: var(--fg-onaccent);
}
.download-prompt {
  padding: 8px 12px;
  font-size: 12px;
  color: var(--fg-muted);
}
.store-option span {
  display: block;
  font-weight: 700;
  color: var(--fg-heading);
}
.store-option small {
  display: block;
  margin-top: 4px;
  color: var(--fg-muted);
  font-size: 12px;
}
/* Distinct platform treatments retain readable labels rather than relying on color alone. */
.btn-store {
  padding: 15px 24px;
  font-size: 16px;
  border: 1px solid transparent;
}
.btn-apple {
  background: #ede4d3;
  color: #14110f;
}
.btn-apple:hover {
  background: #fff8ed;
  color: #14110f;
}
.btn-android {
  background: #193a2b;
  border-color: #85b69b;
  color: #e0f4e8;
}
.btn-android:hover {
  background: #25553d;
  color: #fff;
}
/* Give anchor targets room under the persistent navigation. */
section[id] {
  scroll-margin-top: 160px;
}
/* Preserve spacing in the imported policies without changing the policy wording. */
.legal-body p,
.legal-body ul {
  margin-bottom: 18px;
}
.legal-body h2 {
  margin-top: 34px;
}
.legal-body h3 {
  font-family: var(--serif);
  font-size: 19px;
  margin: 24px 0 12px;
}
.legal-body ul {
  padding-left: 24px;
  color: var(--fg-muted);
  font-size: 15.5px;
  line-height: 1.7;
}
.legal-body li + li {
  margin-top: 8px;
}
/* Product detail page uses the same palette, typography and generous section rhythm. */
.feature-hero {
  padding-bottom: 56px;
}
.feature-hero .hero-title {
  max-width: 16ch;
}
.feature-lede {
  max-width: 65ch;
  font-size: 20px;
  line-height: 1.65;
  color: var(--fg-muted);
}
.app-facts {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin: 36px 0;
  padding: 24px 0;
  border-block: 1px solid var(--rule);
}
.app-facts dt {
  font-size: 12px;
  color: var(--fg-muted);
  margin-bottom: 8px;
}
.app-facts dd {
  font-size: 15px;
  line-height: 1.5;
}
.feature-toc {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 28px;
  width: 100%;
  font-size: 14px;
}
.feature-toc a,
.feature-note a {
  text-decoration: underline;
  text-underline-offset: 4px;
}
.feature-type-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}
.feature-type {
  border-top: 1px solid var(--rule-strong);
  padding-top: 24px;
}
.features-page h3 {
  font-family: var(--serif);
  font-size: 24px;
  line-height: 1.25;
  margin: 0 0 14px;
  color: var(--fg-heading);
}
.feature-type p,
.feature-split p:not(.eyebrow),
.feature-split li,
.feature-note {
  font-size: 16px;
  line-height: 1.7;
  color: var(--fg-muted);
}
.feature-type p + p {
  margin-top: 18px;
}
.feature-example {
  font-size: 14px !important;
}
.feature-split {
  display: grid;
  grid-template-columns: 1.4fr 0.6fr;
  gap: 88px;
  align-items: start;
}
.feature-split h3 {
  margin-top: 30px;
}
.feature-split .section-title {
  margin-bottom: 22px;
}
.feature-split img {
  width: 100%;
  height: auto;
  border-radius: 6px;
}
.media-grid {
  grid-template-columns: 1fr 1fr;
  margin-top: 40px;
}
.feature-note {
  margin-top: 36px;
  max-width: 70ch;
}
/* Small labels need enough contrast against the established dark backgrounds. */
:root {
  --fg-faint: #a79b87;
  --fg-placeholder: #a79b87;
}
.screen-grid figcaption {
  color: var(--fg-muted);
}
@media (max-width: 800px) {
  .header-inner {
    flex-wrap: wrap;
    gap: 16px;
  }
  .site-nav {
    flex-wrap: wrap;
    gap: 16px;
    margin-left: 0;
  }
  .feature-type-grid,
  .app-facts {
    grid-template-columns: 1fr 1fr;
  }
  .feature-split {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }
}
@media (max-width: 560px) {
  .site-nav {
    width: 100%;
    gap: 14px;
  }
  .nav-panel {
    width: 220px;
  }
  .nav-dropdown:not(.download-dropdown) .nav-panel {
    right: auto;
    left: -130px;
  }
  .download-dropdown .nav-panel {
    right: auto;
    left: 0;
  }
  .feature-type-grid,
  .feature-split,
  .media-grid {
    grid-template-columns: 1fr;
  }
  .feature-split figure {
    max-width: 300px;
    margin: 0 auto;
  }
  .feature-hero .hero-title {
    font-size: 40px;
  }
  .feature-lede {
    font-size: 18px;
  }
}
