/* Haus Waldfrieden — styles
 * Audience: families researching care for elderly relatives, and seniors themselves.
 * Tone: warm, calm, trustworthy. Generous type, soft palette, minimal motion.
 * Pure CSS, no build tooling. Modern baseline (custom props, grid, @layer, OKLCH, color-mix).
 */

@layer reset, tokens, base, layout, components, utilities;

/* -------------------------------------------------------------- reset */
@layer reset {
  *, *::before, *::after { box-sizing: border-box; }
  html { -webkit-text-size-adjust: 100%; }
  body, h1, h2, h3, h4, p, figure, blockquote, dl, dd { margin: 0; }
  ul[role="list"], ol[role="list"], .site-nav ul, .site-footer__links { list-style: none; padding: 0; margin: 0; }
  img, picture, video, canvas, svg { display: block; max-width: 100%; }
  a { color: inherit; }
  a:focus-visible, button:focus-visible, input:focus-visible {
    outline: 3px solid var(--color-focus);
    outline-offset: 3px;
    border-radius: var(--radius-sm);
  }
  @media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
      animation-duration: 0.01ms !important;
      transition-duration: 0.01ms !important;
      scroll-behavior: auto !important;
    }
  }
}

/* ---------------------------------------------------------- tokens */
@layer tokens {
  :root {
    /* Colours — warm cream + muted pine. Lower saturation than a tech brand;
       avoids a "corporate medical" feel. */
    --color-bg:         oklch(0.975 0.012 88);   /* warm cream */
    --color-surface:    oklch(0.945 0.016 85);   /* parchment */
    --color-fg:         oklch(0.26 0.025 70);    /* warm near-black */
    --color-muted:      oklch(0.47 0.02 75);     /* warm slate */
    --color-primary:    oklch(0.42 0.055 155);   /* muted pine */
    --color-primary-hi: oklch(0.52 0.065 155);
    --color-primary-ink:oklch(0.985 0.005 88);
    --color-accent:     oklch(0.64 0.1 55);      /* soft amber (focus only) */
    --color-line:       oklch(0.88 0.013 85);
    --color-focus:      oklch(0.66 0.12 55);

    /* Typography — serif for warmth, sans for running text.
       Bumped up a notch vs. a general site: a lot of visitors will be 55+. */
    --font-sans: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    --font-serif: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, ui-serif, serif;

    --fs-xs:   clamp(0.85rem, 0.82rem + 0.1vw, 0.9rem);
    --fs-sm:   clamp(0.95rem, 0.92rem + 0.15vw, 1.05rem);
    --fs-base: clamp(1.08rem, 1.03rem + 0.24vw, 1.2rem);
    --fs-lg:   clamp(1.2rem, 1.12rem + 0.4vw, 1.4rem);
    --fs-xl:   clamp(1.45rem, 1.3rem + 0.75vw, 1.9rem);
    --fs-2xl:  clamp(1.9rem, 1.55rem + 1.4vw, 2.7rem);
    --fs-3xl:  clamp(2.4rem, 1.9rem + 2.1vw, 3.6rem);

    --leading-tight: 1.2;
    --leading-body:  1.7;

    /* Spacing */
    --space-1: 0.25rem;
    --space-2: 0.5rem;
    --space-3: 0.75rem;
    --space-4: 1rem;
    --space-5: 1.5rem;
    --space-6: 2rem;
    --space-7: 3rem;
    --space-8: 4.5rem;
    --space-9: 6.5rem;

    /* Layout */
    --content-max: 68rem;
    --radius-sm: 0.375rem;
    --radius:    0.625rem;
    --radius-lg: 1rem;
    --shadow-sm: 0 1px 2px oklch(0 0 0 / 0.05);
    --shadow:    0 8px 30px -14px oklch(0 0 0 / 0.22);
  }
}

/* ---------------------------------------------------------- base */
@layer base {
  html { font-family: var(--font-sans); line-height: var(--leading-body); }
  body {
    background: var(--color-bg);
    color: var(--color-fg);
    font-size: var(--fs-base);
    min-height: 100dvh;
    display: flex;
    flex-direction: column;
    -webkit-font-smoothing: antialiased;
  }
  main { flex: 1; }
  h1, h2, h3 {
    font-family: var(--font-serif);
    font-weight: 500;
    line-height: var(--leading-tight);
    letter-spacing: -0.01em;
    text-wrap: balance;
  }
  h1 { font-size: var(--fs-3xl); }
  h2 { font-size: var(--fs-2xl); }
  h3 { font-size: var(--fs-xl); }
  p { text-wrap: pretty; max-width: 62ch; }
  p + p, h2 + p, h3 + p { margin-top: var(--space-4); }
  a { color: var(--color-primary); text-decoration-thickness: 1px; text-underline-offset: 0.2em; }
  a:hover { color: var(--color-primary-hi); }
  ::selection { background: color-mix(in oklch, var(--color-accent) 30%, transparent); }
}

/* ---------------------------------------------------------- layout */
@layer layout {
  .container {
    width: min(100% - 2 * var(--space-5), var(--content-max));
    margin-inline: auto;
  }

  .skip-link {
    position: absolute;
    left: var(--space-3); top: var(--space-3);
    background: var(--color-fg);
    color: var(--color-bg);
    padding: var(--space-2) var(--space-4);
    border-radius: var(--radius-sm);
    transform: translateY(-150%);
    transition: transform 160ms ease;
    z-index: 100;
  }
  .skip-link:focus { transform: translateY(0); }
}

/* ---------------------------------------------------------- components */
@layer components {
  /* Header */
  .site-header {
    background: color-mix(in oklch, var(--color-bg) 94%, transparent);
    border-bottom: 1px solid var(--color-line);
    position: sticky; top: 0; z-index: 20;
    backdrop-filter: saturate(1.4) blur(8px);
  }
  .site-header__inner {
    display: flex; align-items: center; justify-content: space-between;
    gap: var(--space-5);
    padding-block: var(--space-4);
    position: relative;
  }
  .brand {
    display: inline-flex; align-items: baseline; gap: var(--space-3);
    font-family: var(--font-serif);
    font-size: var(--fs-lg);
    font-weight: 500;
    text-decoration: none;
    color: var(--color-fg);
    letter-spacing: -0.01em;
  }
  .brand__mark {
    width: 1.4em; height: 1.4em;
    color: var(--color-primary);
    align-self: center;
  }
  .site-nav ul { display: flex; gap: var(--space-6); flex-wrap: wrap; }
  .site-nav a {
    text-decoration: none;
    color: var(--color-muted);
    font-size: var(--fs-sm);
    padding: var(--space-2) var(--space-1);
    border-bottom: 2px solid transparent;
    transition: color 120ms ease, border-color 120ms ease;
  }
  .site-nav a:hover,
  .site-nav a[aria-current="page"] {
    color: var(--color-fg);
    border-bottom-color: var(--color-primary);
  }

  /* Mobile nav toggle */
  .nav-toggle {
    display: none;
    width: 2.75rem; height: 2.75rem;
    align-items: center; justify-content: center;
    background: transparent;
    border: 1px solid var(--color-line);
    border-radius: var(--radius-sm);
    color: var(--color-fg);
    cursor: pointer;
  }
  .nav-toggle svg { width: 1.5rem; height: 1.5rem; }
  .nav-toggle__close { display: none; }
  .nav-toggle[aria-expanded="true"] .nav-toggle__open { display: none; }
  .nav-toggle[aria-expanded="true"] .nav-toggle__close { display: block; }

  @media (max-width: 47.99rem) {
    .nav-toggle { display: inline-flex; }
    .site-nav {
      position: absolute;
      left: 0; right: 0; top: 100%;
      background: var(--color-bg);
      border-top: 1px solid var(--color-line);
      border-bottom: 1px solid var(--color-line);
      padding: var(--space-4) 0;
      display: none;
      box-shadow: var(--shadow);
    }
    .site-nav[data-open="true"] { display: block; }
    .site-nav ul {
      flex-direction: column;
      gap: 0;
      padding: 0 var(--space-5);
    }
    .site-nav li { border-bottom: 1px solid var(--color-line); }
    .site-nav li:last-child { border-bottom: 0; }
    .site-nav a {
      display: block;
      padding: var(--space-4) var(--space-2);
      font-size: var(--fs-base);
      border-bottom: 0;
    }
    .site-nav a[aria-current="page"] {
      border-bottom: 0;
      color: var(--color-primary);
      font-weight: 500;
    }
  }

  /* Hero — calm, no dramatic gradient. One warm wash. */
  .hero {
    padding-block: var(--space-9) var(--space-8);
    background:
      radial-gradient(ellipse 50rem 26rem at 85% 0%,
        color-mix(in oklch, var(--color-primary) 10%, transparent), transparent 65%),
      linear-gradient(180deg, var(--color-surface), var(--color-bg));
  }
  .hero__grid {
    display: grid;
    gap: var(--space-7);
    grid-template-columns: 1fr;
    align-items: center;
  }
  @media (min-width: 54rem) {
    .hero__grid { grid-template-columns: 1.15fr 1fr; gap: var(--space-8); }
  }
  .hero__media {
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow);
    aspect-ratio: 4 / 3;
    background: var(--color-surface);
  }
  .hero__media img {
    width: 100%; height: 100%;
    object-fit: cover;
  }
  .hero__inner { max-width: 52rem; }
  .hero__eyebrow {
    display: inline-block;
    font-size: var(--fs-sm);
    color: var(--color-primary);
    margin-bottom: var(--space-4);
    letter-spacing: 0.02em;
  }
  .hero__title {
    font-size: var(--fs-3xl);
    margin-bottom: var(--space-5);
  }
  .hero__lede {
    font-size: var(--fs-lg);
    color: var(--color-muted);
    max-width: 40rem;
  }
  .hero__actions {
    display: flex; gap: var(--space-4); flex-wrap: wrap;
    margin-top: var(--space-7);
  }

  /* Buttons — calm, tactile, not shouty */
  .btn {
    display: inline-flex; align-items: center; gap: var(--space-2);
    padding: var(--space-3) var(--space-6);
    border-radius: var(--radius);
    text-decoration: none;
    font-weight: 500;
    font-size: var(--fs-base);
    min-height: 2.75rem;
    transition: background-color 120ms ease, color 120ms ease, border-color 120ms ease;
  }
  .btn--primary {
    background: var(--color-primary);
    color: var(--color-primary-ink);
  }
  .btn--primary:hover { background: var(--color-primary-hi); color: var(--color-primary-ink); }
  .btn--ghost {
    background: transparent;
    color: var(--color-fg);
    border: 1px solid var(--color-line);
  }
  .btn--ghost:hover { background: var(--color-surface); border-color: var(--color-primary); color: var(--color-fg); }

  /* Section */
  .section { padding-block: var(--space-8); }
  .section--surface { background: var(--color-surface); }
  .section__header { max-width: 48rem; margin-bottom: var(--space-7); }
  .section__eyebrow {
    font-size: var(--fs-sm);
    color: var(--color-primary);
    letter-spacing: 0.02em;
  }
  .section__title { margin-top: var(--space-2); }
  .section__lede { color: var(--color-muted); margin-top: var(--space-4); font-size: var(--fs-lg); }

  /* Service cards */
  .cards {
    display: grid;
    gap: var(--space-5);
    grid-template-columns: repeat(auto-fit, minmax(min(18rem, 100%), 1fr));
  }
  .card {
    background: var(--color-bg);
    border: 1px solid var(--color-line);
    border-radius: var(--radius-lg);
    padding: var(--space-6);
    box-shadow: var(--shadow-sm);
  }
  .card__icon {
    width: 2.75rem; height: 2.75rem;
    display: grid; place-items: center;
    background: color-mix(in oklch, var(--color-primary) 10%, transparent);
    color: var(--color-primary);
    border-radius: var(--radius);
    margin-bottom: var(--space-4);
  }
  .card__icon svg { width: 1.5rem; height: 1.5rem; }
  .card__title { font-size: var(--fs-lg); margin-bottom: var(--space-3); }
  .card__body { color: var(--color-muted); font-size: var(--fs-base); }

  /* Split — two-column intro with a quiet side panel */
  .split {
    display: grid;
    gap: var(--space-7);
    grid-template-columns: 1fr;
    align-items: center;
  }
  @media (min-width: 48rem) {
    .split { grid-template-columns: 1.2fr 1fr; gap: var(--space-8); }
    .split--reverse > :first-child { order: 2; }
  }
  .split__aside {
    background: var(--color-surface);
    border: 1px solid var(--color-line);
    border-radius: var(--radius-lg);
    padding: var(--space-6);
    font-family: var(--font-serif);
    font-size: var(--fs-lg);
    color: var(--color-fg);
    line-height: 1.5;
  }
  .split__aside cite {
    display: block;
    margin-top: var(--space-4);
    font-family: var(--font-sans);
    font-size: var(--fs-sm);
    font-style: normal;
    color: var(--color-muted);
  }

  /* CTA band */
  .cta {
    background: linear-gradient(135deg,
      var(--color-primary),
      color-mix(in oklch, var(--color-primary) 70%, var(--color-fg)));
    color: var(--color-primary-ink);
    border-radius: var(--radius-lg);
    padding: var(--space-8);
    display: grid; gap: var(--space-5);
    grid-template-columns: 1fr auto;
    align-items: center;
  }
  @media (max-width: 44rem) {
    .cta { grid-template-columns: 1fr; }
  }
  .cta h2 { color: inherit; }
  .cta p { color: color-mix(in oklch, var(--color-primary-ink) 88%, transparent); }
  .cta .btn--primary {
    background: var(--color-primary-ink);
    color: var(--color-primary);
  }
  .cta .btn--primary:hover { background: color-mix(in oklch, var(--color-primary-ink) 90%, var(--color-accent)); }

  /* Footer */
  .site-footer {
    margin-top: var(--space-9);
    background: var(--color-surface);
    border-top: 1px solid var(--color-line);
    padding-block: var(--space-8) var(--space-5);
    font-size: var(--fs-sm);
  }
  .site-footer__inner {
    display: grid;
    gap: var(--space-6);
    grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr));
  }
  .site-footer__heading {
    font-family: var(--font-sans);
    font-size: var(--fs-sm);
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--color-muted);
    margin-bottom: var(--space-3);
  }
  .site-footer__links { display: flex; flex-direction: column; gap: var(--space-2); }
  .site-footer address { font-style: normal; color: var(--color-muted); line-height: 1.7; }
  .site-footer__legal {
    margin-top: var(--space-6);
    padding-top: var(--space-4);
    border-top: 1px solid var(--color-line);
    color: var(--color-muted);
  }

  /* Placeholder marker for unreviewed copy */
  .placeholder {
    outline: 2px dashed color-mix(in oklch, var(--color-accent) 60%, transparent);
    outline-offset: 3px;
    border-radius: var(--radius-sm);
  }

  /* Interior page hero — smaller than the landing hero */
  .page-hero {
    padding-block: var(--space-7) var(--space-6);
    background:
      radial-gradient(ellipse 42rem 20rem at 90% 0%,
        color-mix(in oklch, var(--color-primary) 8%, transparent), transparent 65%),
      linear-gradient(180deg, var(--color-surface), var(--color-bg));
    border-bottom: 1px solid var(--color-line);
  }
  .page-hero__eyebrow {
    display: inline-block;
    font-size: var(--fs-sm);
    color: var(--color-primary);
    margin-bottom: var(--space-3);
  }
  .page-hero__title {
    font-size: var(--fs-2xl);
    margin-bottom: var(--space-3);
  }
  .page-hero__lede {
    color: var(--color-muted);
    font-size: var(--fs-lg);
    max-width: 48rem;
  }

  /* Long-form prose container */
  .prose { max-width: 42rem; }
  .prose h2 { margin-top: var(--space-7); }
  .prose h3 { margin-top: var(--space-6); font-size: var(--fs-lg); }
  .prose p { margin-top: var(--space-4); }
  .prose ul, .prose ol { margin-top: var(--space-4); padding-left: 1.25rem; }
  .prose ul li, .prose ol li { margin-top: var(--space-2); line-height: 1.65; }
  .prose ul li::marker { color: var(--color-primary); }
  .prose > :first-child { margin-top: 0; }

  /* Service section — detailed writeup per service on Leistungen page */
  .service {
    display: grid;
    gap: var(--space-6);
    grid-template-columns: 1fr;
    padding-block: var(--space-7);
    border-top: 1px solid var(--color-line);
  }
  .service:first-of-type { border-top: 0; padding-top: 0; }
  @media (min-width: 48rem) {
    .service { grid-template-columns: 14rem 1fr; gap: var(--space-8); }
  }
  .service__aside {
    color: var(--color-primary);
  }
  .service__aside-icon {
    width: 3rem; height: 3rem;
    display: grid; place-items: center;
    background: color-mix(in oklch, var(--color-primary) 10%, transparent);
    border-radius: var(--radius);
    margin-bottom: var(--space-3);
  }
  .service__aside-icon svg { width: 1.75rem; height: 1.75rem; }
  .service__aside-label {
    font-family: var(--font-sans);
    font-size: var(--fs-sm);
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--color-muted);
  }

  /* Contact block */
  .contact-grid {
    display: grid;
    gap: var(--space-5);
    grid-template-columns: repeat(auto-fit, minmax(min(16rem, 100%), 1fr));
  }
  .contact-card {
    background: var(--color-surface);
    border: 1px solid var(--color-line);
    border-radius: var(--radius-lg);
    padding: var(--space-6);
  }
  .contact-card__label {
    font-size: var(--fs-sm);
    color: var(--color-muted);
    letter-spacing: 0.04em;
    text-transform: uppercase;
    margin-bottom: var(--space-3);
  }
  .contact-card__value {
    font-family: var(--font-serif);
    font-size: var(--fs-lg);
    line-height: 1.4;
  }
  .contact-card__value a { color: var(--color-fg); text-decoration: none; border-bottom: 1px solid var(--color-line); }
  .contact-card__value a:hover { color: var(--color-primary); border-bottom-color: var(--color-primary); }

  /* Gallery — modern masonry (CSS columns) + click-to-zoom */
  .gallery {
    column-count: 1;
    column-gap: var(--space-4);
  }
  @media (min-width: 32rem) { .gallery { column-count: 2; } }
  @media (min-width: 56rem) { .gallery { column-count: 3; } }
  @media (min-width: 80rem) { .gallery { column-count: 4; } }

  .gallery figure {
    break-inside: avoid;
    margin: 0 0 var(--space-4);
    background: var(--color-surface);
    border: 1px solid var(--color-line);
    border-radius: var(--radius);
    overflow: hidden;
    transition: transform 200ms ease, box-shadow 200ms ease;
  }
  .gallery button.gallery__trigger {
    appearance: none;
    background: none; border: 0; padding: 0; margin: 0;
    display: block; width: 100%;
    cursor: zoom-in;
    color: inherit;
  }
  .gallery button.gallery__trigger:hover img { filter: brightness(1.05); }
  .gallery button.gallery__trigger:focus-visible { outline: 3px solid var(--color-focus); outline-offset: 2px; }
  .gallery img {
    width: 100%;
    height: auto;
    display: block;
    transition: filter 200ms ease;
  }
  .gallery figcaption {
    padding: var(--space-3) var(--space-4);
    font-size: var(--fs-sm);
    color: var(--color-muted);
  }
  .gallery-group { margin-top: var(--space-7); }
  .gallery-group:first-child { margin-top: 0; }
  .gallery-group h2 {
    font-size: var(--fs-xl);
    margin-bottom: var(--space-5);
  }
  .gallery-group h2 .muted {
    font-family: var(--font-sans);
    font-size: var(--fs-sm);
    font-weight: 400;
    color: var(--color-muted);
    margin-left: var(--space-3);
    letter-spacing: 0.02em;
  }

  /* Lightbox */
  .lightbox {
    border: 0;
    background: oklch(0.12 0.01 70 / 0.92);
    padding: 0;
    max-width: 100vw;
    max-height: 100dvh;
    width: 100%;
    height: 100dvh;
    color: var(--color-primary-ink);
  }
  .lightbox::backdrop { background: transparent; }
  .lightbox__figure {
    margin: 0;
    height: 100%;
    display: grid;
    grid-template-rows: 1fr auto;
    place-items: center;
    padding: var(--space-5);
    gap: var(--space-4);
  }
  .lightbox__img {
    max-width: min(100%, 1200px);
    max-height: 100%;
    object-fit: contain;
    border-radius: var(--radius-sm);
  }
  .lightbox__caption {
    color: color-mix(in oklch, var(--color-primary-ink) 80%, transparent);
    font-size: var(--fs-sm);
    text-align: center;
  }
  .lightbox__nav {
    position: fixed; top: 0; right: 0;
    display: flex; gap: var(--space-2);
    padding: var(--space-4);
  }
  .lightbox__btn, .lightbox__prev, .lightbox__next {
    appearance: none;
    background: color-mix(in oklch, var(--color-primary-ink) 12%, transparent);
    color: var(--color-primary-ink);
    border: 1px solid color-mix(in oklch, var(--color-primary-ink) 20%, transparent);
    border-radius: var(--radius);
    width: 2.75rem; height: 2.75rem;
    display: inline-flex; align-items: center; justify-content: center;
    cursor: pointer;
    transition: background-color 120ms ease;
  }
  .lightbox__btn:hover, .lightbox__prev:hover, .lightbox__next:hover {
    background: color-mix(in oklch, var(--color-primary-ink) 24%, transparent);
  }
  .lightbox__prev, .lightbox__next {
    position: fixed;
    top: 50%; transform: translateY(-50%);
  }
  .lightbox__prev { left: var(--space-4); }
  .lightbox__next { right: var(--space-4); }
  .lightbox__btn svg, .lightbox__prev svg, .lightbox__next svg { width: 1.25rem; height: 1.25rem; }

  /* USP pillars on homepage */
  .pillars {
    display: grid;
    gap: var(--space-5);
    grid-template-columns: repeat(auto-fit, minmax(min(18rem, 100%), 1fr));
  }
  .pillar {
    padding: var(--space-6);
    background: var(--color-bg);
    border: 1px solid var(--color-line);
    border-radius: var(--radius-lg);
    position: relative;
    overflow: hidden;
  }
  .pillar::before {
    content: "";
    position: absolute;
    inset: auto -20% -60% auto;
    width: 14rem; height: 14rem;
    background: radial-gradient(circle, color-mix(in oklch, var(--color-primary) 10%, transparent), transparent 65%);
    pointer-events: none;
  }
  .pillar__num {
    font-family: var(--font-serif);
    font-size: var(--fs-lg);
    color: var(--color-primary);
    margin-bottom: var(--space-3);
  }
  .pillar__title { font-size: var(--fs-xl); margin-bottom: var(--space-3); }
  .pillar__body { color: var(--color-muted); position: relative; }

  /* Reference list — cards with links to scanned PDFs */
  .refs {
    display: grid;
    gap: var(--space-4);
    grid-template-columns: repeat(auto-fill, minmax(min(16rem, 100%), 1fr));
  }
  .ref {
    background: var(--color-surface);
    border: 1px solid var(--color-line);
    border-radius: var(--radius);
    padding: var(--space-5);
    display: flex;
    flex-direction: column;
    gap: var(--space-3);
  }
  .ref__icon {
    width: 2rem; height: 2rem;
    display: grid; place-items: center;
    color: var(--color-primary);
  }
  .ref__label {
    font-family: var(--font-serif);
    font-size: var(--fs-lg);
    color: var(--color-fg);
  }
  .ref__meta {
    font-size: var(--fs-sm);
    color: var(--color-muted);
  }
  .ref a.ref__link {
    margin-top: auto;
    font-size: var(--fs-sm);
    color: var(--color-primary);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
  }
  .ref a.ref__link:hover { color: var(--color-primary-hi); }
  .ref a.ref__link::after {
    content: "→";
    transition: transform 120ms ease;
  }
  .ref a.ref__link:hover::after { transform: translateX(3px); }

  /* Price table */
  .price-table {
    width: 100%;
    border-collapse: collapse;
    font-variant-numeric: tabular-nums;
    background: var(--color-surface);
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid var(--color-line);
  }
  .price-table thead th {
    background: color-mix(in oklch, var(--color-primary) 12%, transparent);
    color: var(--color-fg);
    font-family: var(--font-sans);
    font-weight: 600;
    font-size: var(--fs-sm);
    text-align: right;
    padding: var(--space-4) var(--space-4);
    border-bottom: 1px solid var(--color-line);
  }
  .price-table thead th:first-child { text-align: left; }
  .price-table tbody th {
    text-align: left;
    font-family: var(--font-sans);
    font-weight: 500;
    padding: var(--space-4);
    border-bottom: 1px solid var(--color-line);
    color: var(--color-muted);
    white-space: nowrap;
  }
  .price-table tbody td {
    padding: var(--space-4);
    text-align: right;
    border-bottom: 1px solid var(--color-line);
    color: var(--color-fg);
  }
  .price-table tbody tr:last-child th,
  .price-table tbody tr:last-child td { border-bottom: 0; }
  .price-table tfoot th, .price-table tfoot td {
    padding: var(--space-4);
    font-weight: 600;
    background: color-mix(in oklch, var(--color-primary) 6%, transparent);
  }
  .price-table tbody tr.price-table__own th,
  .price-table tbody tr.price-table__own td {
    font-weight: 600;
    color: var(--color-primary);
  }
  .price-table-wrap {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  /* Mini-fact strip */
  .facts {
    display: grid;
    gap: var(--space-5);
    grid-template-columns: repeat(auto-fit, minmax(min(10rem, 100%), 1fr));
    padding: var(--space-6);
    background: var(--color-surface);
    border-radius: var(--radius-lg);
    border: 1px solid var(--color-line);
  }
  .fact {
    text-align: center;
  }
  .fact__value {
    font-family: var(--font-serif);
    font-size: var(--fs-2xl);
    color: var(--color-primary);
    display: block;
    line-height: 1;
    margin-bottom: var(--space-2);
  }
  .fact__label {
    font-size: var(--fs-sm);
    color: var(--color-muted);
    letter-spacing: 0.02em;
  }
}

/* ---------------------------------------------------------- utilities */
@layer utilities {
  .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;
  }
  .flow > * + * { margin-top: var(--space-4); }
}
