/* ---------------------------------------------------------------------------
   Tutti — tuttipracticeapp.com
   Shared stylesheet for the marketing site and legal pages.

   Tokens mirror expo/constants/theme.ts so the site and the app read as one
   product. Keep them in step: warm ivory ground, deep ink type, champagne
   gold as the primary accent, warm orange as the secondary.
   --------------------------------------------------------------------------- */

/* --- Fonts -----------------------------------------------------------------
   Self-hosted rather than pulled from Google Fonts: a font CDN would send
   every visitor's IP to a third party, which is exactly the thing the privacy
   policy on this site promises does not happen. Both families are SIL Open
   Font License 1.1, which permits redistribution like this. */

@font-face {
  font-family: "Nunito";
  src: url("assets/fonts/Nunito_500Medium.ttf") format("truetype");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Nunito";
  src: url("assets/fonts/Nunito_700Bold.ttf") format("truetype");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Nunito";
  src: url("assets/fonts/Nunito_800ExtraBold.ttf") format("truetype");
  font-weight: 800;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Fraunces";
  src: url("assets/fonts/Fraunces_700Bold.ttf") format("truetype");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

/* --- Tokens --------------------------------------------------------------- */

:root {
  --bg: #fcfaf4;
  --surface: #ffffff;
  --surface-alt: #f3eee4;
  --ink: #3d3b3e;
  --ink-soft: #4e4c4f;
  --muted: #666567;
  --faint: #979598;
  --border: #eae4d8;
  --gold: #c5a15c;
  --gold-soft: #f1e9d6;
  --gold-deep: #9a7b3c;
  --orange: #e37a33;
  --orange-soft: #f9e3d2;
  --orange-deep: #b95f1f;
  --ember: #f97316;
  --green: #57be4c;
  --green-soft: #eaf7e4;
  --green-line: #c8e7bd;
  --blue: #4e8ac9;
  --blue-soft: #e4eef8;
  --purple: #8b6bb8;
  --purple-soft: #efe9f7;
  --charcoal: #26262a;
  --on-ink: #f7f3ea;
  --on-accent: #26262a;

  --shadow-sm: 0 1px 2px rgb(61 59 62 / 6%), 0 2px 8px rgb(61 59 62 / 4%);
  --shadow-md: 0 2px 4px rgb(61 59 62 / 6%), 0 8px 24px rgb(61 59 62 / 7%);
  --shadow-lg: 0 4px 8px rgb(61 59 62 / 7%), 0 18px 48px rgb(61 59 62 / 10%);

  --radius-sm: 10px;
  --radius: 16px;
  --radius-lg: 24px;
  --radius-pill: 999px;

  --measure: 68ch;
  --page: 1120px;
  --gutter: clamp(20px, 5vw, 48px);

  --font-body: "Nunito", ui-rounded, "Segoe UI", system-ui, -apple-system, sans-serif;
  --font-display: "Fraunces", Georgia, "Times New Roman", serif;

  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #131009;
    --surface: #241f17;
    --surface-alt: #352e24;
    --ink: #f8f3e8;
    --ink-soft: #e5decd;
    --muted: #b5ab96;
    --faint: #807764;
    --border: #403830;
    --gold: #d9b36b;
    --gold-soft: #3e3319;
    --gold-deep: #ebcf95;
    --orange: #f58c47;
    --orange-soft: #452d16;
    --orange-deep: #f8b27c;
    --ember: #ff8329;
    --green: #6fd062;
    --green-soft: #26391f;
    --green-line: #4a7040;
    --blue: #85b8ec;
    --blue-soft: #233650;
    --purple: #bc9fe4;
    --purple-soft: #382c52;
    /* Inverted, as in the app: a mid-grey fill on a near-black page reads as
       a disabled control, so the primary button goes ivory in dark mode. */
    --charcoal: #faf6ed;
    --on-ink: #1a1712;

    --shadow-sm: 0 1px 2px rgb(0 0 0 / 40%);
    --shadow-md: 0 2px 4px rgb(0 0 0 / 40%), 0 8px 24px rgb(0 0 0 / 32%);
    --shadow-lg: 0 4px 8px rgb(0 0 0 / 44%), 0 18px 48px rgb(0 0 0 / 38%);

    color-scheme: dark;
  }
}

/* --- Base ----------------------------------------------------------------- */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 88px;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--gold-deep);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

a:hover {
  color: var(--orange-deep);
}

:focus-visible {
  outline: 3px solid var(--orange);
  outline-offset: 3px;
  border-radius: 4px;
}

h1,
h2,
h3,
h4 {
  color: var(--ink);
  line-height: 1.15;
  margin: 0 0 0.5em;
  text-wrap: balance;
}

h1 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2.4rem, 6vw, 3.9rem);
  letter-spacing: -0.02em;
}

h2 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.65rem, 3.4vw, 2.35rem);
  letter-spacing: -0.01em;
}

h3 {
  font-weight: 800;
  font-size: 1.16rem;
}

p {
  margin: 0 0 1.1em;
  text-wrap: pretty;
}

hr {
  border: 0;
  border-top: 1px solid var(--border);
  margin: 3rem 0;
}

/* Moved out of view with translate rather than a large negative offset, which
   can itself become overflow the page has to scroll to. */
.skip-link {
  position: absolute;
  left: 0;
  top: 0;
  z-index: 100;
  translate: 0 -200%;
  background: var(--charcoal);
  color: var(--on-ink);
  padding: 12px 20px;
  border-radius: 0 0 var(--radius-sm) 0;
  font-weight: 700;
  text-decoration: none;
}

.skip-link:focus {
  translate: 0 0;
}

/* --- Layout --------------------------------------------------------------- */

.wrap {
  width: 100%;
  max-width: var(--page);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section {
  padding-block: clamp(56px, 9vw, 104px);
}

.section-head {
  max-width: 42rem;
  margin-bottom: clamp(32px, 5vw, 56px);
}

.section-head p {
  color: var(--muted);
  font-size: 1.08rem;
  margin-bottom: 0;
}

.eyebrow {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold-deep);
  margin-bottom: 0.9rem;
}

/* --- Header --------------------------------------------------------------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease;
}

.site-header.is-stuck {
  border-bottom-color: var(--border);
}

.site-header .wrap {
  display: flex;
  align-items: center;
  gap: 20px;
  min-height: 72px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-size: 1.32rem;
  font-weight: 700;
  color: var(--ink);
  text-decoration: none;
  letter-spacing: -0.01em;
}

.brand:hover {
  color: var(--ink);
}

.brand img {
  width: 30px;
  height: 30px;
}

/* The mark ships as black artwork on transparency; invert it so it reads as
   ivory against the dark palette instead of vanishing into the page. */
@media (prefers-color-scheme: dark) {
  .brand img,
  .footer-mark {
    filter: invert(1);
  }
}

.site-nav {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: clamp(14px, 2.4vw, 30px);
}

.site-nav a {
  color: var(--muted);
  text-decoration: none;
  font-weight: 700;
  font-size: 0.95rem;
  white-space: nowrap;
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
  color: var(--ink);
}

@media (max-width: 640px) {
  .site-nav {
    gap: 14px;
    font-size: 0.9rem;
  }
  .site-nav .nav-hide-sm {
    display: none;
  }
}

/* --- Buttons -------------------------------------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 14px 26px;
  border-radius: var(--radius-pill);
  font-family: var(--font-body);
  font-weight: 800;
  font-size: 1rem;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.12s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.btn:active {
  transform: translateY(1px);
}

.btn-primary {
  background: var(--charcoal);
  color: var(--on-ink);
  box-shadow: var(--shadow-md);
}

.btn-primary:hover {
  background: var(--charcoal);
  color: var(--on-ink);
  box-shadow: var(--shadow-lg);
}

.btn-secondary {
  background: var(--surface);
  color: var(--ink);
  border-color: var(--border);
  box-shadow: var(--shadow-sm);
}

.btn-secondary:hover {
  color: var(--ink);
  border-color: var(--gold);
}

/* --- Hero ----------------------------------------------------------------- */

.hero {
  position: relative;
  overflow: hidden;
  padding-block: clamp(48px, 8vw, 92px) clamp(56px, 9vw, 104px);
}

/* Two soft accent washes behind the headline. Kept very low-opacity so the
   ivory ground still reads as the page colour rather than a gradient. */
.hero::before {
  content: "";
  position: absolute;
  inset: -30% -10% auto -10%;
  height: 620px;
  background:
    radial-gradient(46% 52% at 22% 34%, color-mix(in srgb, var(--gold) 26%, transparent), transparent 70%),
    radial-gradient(40% 46% at 80% 20%, color-mix(in srgb, var(--orange) 20%, transparent), transparent 72%);
  pointer-events: none;
  z-index: 0;
}

.hero .wrap {
  position: relative;
  z-index: 1;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: clamp(32px, 5vw, 64px);
  align-items: center;
}

@media (max-width: 900px) {
  .hero-grid {
    grid-template-columns: 1fr;
  }
}

.hero h1 {
  margin-bottom: 0.4em;
}

.hero .lede {
  font-size: clamp(1.08rem, 2vw, 1.28rem);
  color: var(--muted);
  max-width: 34rem;
  margin-bottom: 1.6em;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
}

.hero-note {
  margin-top: 1.4em;
  margin-bottom: 0;
  font-size: 0.94rem;
  color: var(--faint);
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 15px 7px 12px;
  border-radius: var(--radius-pill);
  background: var(--gold-soft);
  color: var(--gold-deep);
  border: 1px solid color-mix(in srgb, var(--gold) 34%, transparent);
  font-size: 0.84rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  margin-bottom: 1.4rem;
}

.badge .dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--orange);
  flex: none;
}

/* --- Phone mock ----------------------------------------------------------- */

/* A CSS-drawn stand-in for a screenshot. When real App Store screenshots
   exist, replace the whole .phone block with an <img>. */
.phone {
  width: min(300px, 84vw);
  margin-inline: auto;
  aspect-ratio: 9 / 17.4;
  border-radius: 42px;
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-lg);
  padding: 22px 18px;
  display: flex;
  flex-direction: column;
  gap: 11px;
}

.phone-notch {
  width: 96px;
  height: 6px;
  border-radius: var(--radius-pill);
  background: var(--surface-alt);
  margin: 0 auto 6px;
  flex: none;
}

.ring {
  --pct: 68;
  width: 148px;
  height: 148px;
  margin: 6px auto 2px;
  border-radius: 50%;
  flex: none;
  background:
    conic-gradient(var(--gold) calc(var(--pct) * 1%), var(--surface-alt) 0),
    var(--surface);
  display: grid;
  place-items: center;
  position: relative;
}

.ring::after {
  content: "";
  position: absolute;
  inset: 13px;
  border-radius: 50%;
  background: var(--surface);
}

.ring-label {
  position: relative;
  z-index: 1;
  text-align: center;
  line-height: 1.2;
}

.ring-label strong {
  display: block;
  font-size: 2rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.ring-label span {
  font-size: 0.76rem;
  font-weight: 700;
  color: var(--muted);
}

.mock-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 13px;
  border-radius: var(--radius-sm);
  background: var(--surface-alt);
  font-size: 0.82rem;
  font-weight: 700;
}

.mock-row .pill {
  margin-left: auto;
  font-size: 0.72rem;
  font-weight: 800;
  padding: 3px 9px;
  border-radius: var(--radius-pill);
  background: var(--surface);
  color: var(--muted);
}

.mock-row .flame {
  color: var(--ember);
}

.mock-caption {
  margin: auto 2px -4px;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--faint);
}

.mock-bars {
  display: flex;
  align-items: flex-end;
  gap: 6px;
  height: 62px;
  padding: 0 2px;
}

.mock-bars i {
  flex: 1;
  border-radius: 4px 4px 2px 2px;
  background: var(--green-soft);
  border: 1px solid var(--green-line);
  border-bottom: 3px solid var(--green);
}

/* --- Cards / feature grid ------------------------------------------------- */

.grid {
  display: grid;
  gap: clamp(16px, 2.4vw, 24px);
}

.grid-3 {
  grid-template-columns: repeat(auto-fit, minmax(272px, 1fr));
}

.grid-2 {
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: clamp(22px, 3vw, 30px);
  box-shadow: var(--shadow-sm);
}

.card h3 {
  margin-bottom: 0.45em;
}

.card p {
  color: var(--muted);
  font-size: 0.98rem;
  margin-bottom: 0;
}

.card-icon {
  width: 46px;
  height: 46px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  margin-bottom: 18px;
  font-size: 1.3rem;
  line-height: 1;
}

.i-gold {
  background: var(--gold-soft);
}
.i-orange {
  background: var(--orange-soft);
}
.i-green {
  background: var(--green-soft);
}
.i-blue {
  background: var(--blue-soft);
}
.i-purple {
  background: var(--purple-soft);
}

/* --- Steps ---------------------------------------------------------------- */

.steps {
  counter-reset: step;
  display: grid;
  gap: clamp(18px, 3vw, 28px);
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  list-style: none;
  padding: 0;
  margin: 0;
}

.steps li {
  counter-increment: step;
  padding-top: 58px;
  position: relative;
}

.steps li::before {
  content: counter(step);
  position: absolute;
  top: 0;
  left: 0;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--charcoal);
  color: var(--on-ink);
  font-weight: 800;
  font-size: 1.05rem;
}

.steps h3 {
  margin-bottom: 0.35em;
}

.steps p {
  color: var(--muted);
  font-size: 0.98rem;
  margin-bottom: 0;
}

/* --- Privacy strip -------------------------------------------------------- */

.strip {
  background: var(--surface-alt);
  border-block: 1px solid var(--border);
}

.strip .checks {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 12px 28px;
  grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
}

.strip .checks li {
  display: flex;
  gap: 11px;
  align-items: flex-start;
  font-weight: 700;
  font-size: 0.99rem;
}

.strip .checks li::before {
  content: "✓";
  color: var(--green);
  font-weight: 800;
  flex: none;
  margin-top: -1px;
}

/* --- FAQ ------------------------------------------------------------------ */

.faq {
  max-width: 46rem;
}

.faq details {
  border-bottom: 1px solid var(--border);
  padding: 6px 0;
}

.faq summary {
  cursor: pointer;
  list-style: none;
  padding: 16px 34px 16px 0;
  font-weight: 800;
  font-size: 1.03rem;
  position: relative;
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary::after {
  content: "+";
  position: absolute;
  right: 4px;
  top: 50%;
  translate: 0 -50%;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--gold);
  line-height: 1;
}

.faq details[open] summary::after {
  content: "–";
}

.faq details p {
  color: var(--muted);
  font-size: 0.99rem;
  margin: 0 0 16px;
  padding-right: 34px;
}

/* --- CTA ------------------------------------------------------------------ */

.cta {
  text-align: center;
}

.cta-inner {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: clamp(36px, 6vw, 64px) clamp(24px, 5vw, 56px);
  box-shadow: var(--shadow-md);
}

.cta p {
  color: var(--muted);
  max-width: 34rem;
  margin-inline: auto;
  margin-bottom: 1.8em;
}

/* --- Footer --------------------------------------------------------------- */

.site-footer {
  border-top: 1px solid var(--border);
  padding-block: 52px 40px;
  margin-top: auto;
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) repeat(2, minmax(0, 1fr));
  gap: 36px;
  margin-bottom: 40px;
}

@media (max-width: 720px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
  .footer-about {
    grid-column: 1 / -1;
  }
}

.footer-about p {
  color: var(--muted);
  font-size: 0.95rem;
  max-width: 30ch;
  margin: 14px 0 0;
}

.footer-mark {
  width: 28px;
  height: 28px;
}

.site-footer h4 {
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  color: var(--faint);
  margin-bottom: 14px;
}

.site-footer ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 10px;
}

.site-footer ul a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.96rem;
  font-weight: 700;
}

.site-footer ul a:hover {
  color: var(--ink);
}

.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 24px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 20px;
  justify-content: space-between;
  color: var(--faint);
  font-size: 0.88rem;
}

/* --- Legal / prose pages -------------------------------------------------- */

.doc-header {
  padding-block: clamp(40px, 6vw, 72px) clamp(24px, 3vw, 36px);
  border-bottom: 1px solid var(--border);
}

.doc-header h1 {
  font-size: clamp(2rem, 5vw, 3rem);
  margin-bottom: 0.35em;
}

.doc-dates {
  color: var(--muted);
  font-size: 0.95rem;
  margin: 0;
}

.doc-dates strong {
  color: var(--ink-soft);
}

.doc-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 250px;
  gap: clamp(32px, 5vw, 64px);
  align-items: start;
  padding-block: clamp(36px, 5vw, 60px) clamp(48px, 7vw, 88px);
}

@media (max-width: 900px) {
  .doc-layout {
    /* minmax(0, 1fr), not 1fr: a plain 1fr floors at min-content, so the
       min-width on the legal tables would push the whole column — and the
       page — wider than the viewport. */
    grid-template-columns: minmax(0, 1fr);
  }
  .toc {
    position: static;
    order: -1;
  }
}

.prose {
  max-width: var(--measure);
  min-width: 0;
  font-size: 1.02rem;
}

.prose h2 {
  font-size: clamp(1.35rem, 2.6vw, 1.7rem);
  margin-top: 2.4em;
  scroll-margin-top: 96px;
}

.prose h2:first-child {
  margin-top: 0;
}

.prose h3 {
  font-size: 1.07rem;
  margin-top: 1.9em;
  scroll-margin-top: 96px;
}

.prose ul,
.prose ol {
  margin: 0 0 1.2em;
  padding-left: 1.35em;
}

.prose li {
  margin-bottom: 0.55em;
}

.prose li::marker {
  color: var(--gold);
}

.prose strong {
  font-weight: 800;
  color: var(--ink);
}

.prose code {
  font-family: ui-monospace, "SFMono-Regular", "Cascadia Code", Menlo, monospace;
  font-size: 0.88em;
  background: var(--surface-alt);
  padding: 2px 6px;
  border-radius: 5px;
}

/* Highlighted plain-language summary at the top of the legal documents. */
.callout {
  background: var(--surface);
  border: 1px solid var(--border);
  border-left: 4px solid var(--gold);
  border-radius: var(--radius);
  padding: 22px 24px;
  margin: 0 0 2.4em;
  box-shadow: var(--shadow-sm);
}

.callout h3 {
  margin-top: 0;
  font-size: 1rem;
  letter-spacing: 0.02em;
}

.callout p:last-child,
.callout ul:last-child {
  margin-bottom: 0;
}

.callout.warn {
  border-left-color: var(--orange);
}

.table-scroll {
  overflow-x: auto;
  margin: 0 0 1.6em;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
}

table {
  border-collapse: collapse;
  width: 100%;
  min-width: 460px;
  font-size: 0.95rem;
}

th,
td {
  text-align: left;
  padding: 13px 16px;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
}

th {
  font-weight: 800;
  background: var(--surface-alt);
  white-space: nowrap;
}

tbody tr:last-child td {
  border-bottom: 0;
}

/* --- Table of contents ---------------------------------------------------- */

.toc {
  position: sticky;
  top: 96px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px 22px;
  box-shadow: var(--shadow-sm);
  font-size: 0.92rem;
}

.toc h2 {
  font-family: var(--font-body);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  color: var(--faint);
  margin: 0 0 12px;
}

.toc ol {
  list-style: none;
  margin: 0;
  padding: 0;
  counter-reset: toc;
  display: grid;
  gap: 9px;
}

.toc li {
  counter-increment: toc;
}

.toc a {
  color: var(--muted);
  text-decoration: none;
  font-weight: 700;
  display: block;
}

.toc a::before {
  content: counter(toc) ". ";
  color: var(--faint);
}

.toc a:hover {
  color: var(--ink);
}

/* --- Support page --------------------------------------------------------- */

.contact-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: clamp(24px, 4vw, 36px);
  box-shadow: var(--shadow-md);
  margin-bottom: 2.4em;
}

.contact-card p:last-child {
  margin-bottom: 0;
}

.mail {
  font-family: var(--font-body);
  font-weight: 800;
  font-size: clamp(1.05rem, 3vw, 1.35rem);
  word-break: break-word;
}

/* --- 404 ------------------------------------------------------------------ */

.center-page {
  min-height: 62vh;
  display: grid;
  place-items: center;
  text-align: center;
  padding-block: 72px;
}

.center-page .lede {
  color: var(--muted);
  max-width: 34rem;
  margin-inline: auto;
  margin-bottom: 2em;
}

/* --- Utilities ------------------------------------------------------------ */

.stack {
  display: flex;
  min-height: 100vh;
  flex-direction: column;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
}

@media print {
  .site-header,
  .site-footer,
  .toc,
  .skip-link {
    display: none !important;
  }
  .doc-layout {
    grid-template-columns: 1fr;
  }
  body {
    background: #fff;
    color: #000;
    font-size: 11pt;
  }
  a::after {
    content: " (" attr(href) ")";
    font-size: 9pt;
    color: #555;
  }
}
