/* Kiosk Studio — main stylesheet
   Mobile first: base styles are for phones; wider screens are added in
   the media queries near the end of each block. */

/* ---------- Fonts (stored in this repo, no outside services) ---------- */
@font-face {
  font-family: "Source Serif 4";
  src: url("../fonts/source-serif-4.woff2") format("woff2");
  font-weight: 200 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Source Serif 4";
  src: url("../fonts/source-serif-4-italic.woff2") format("woff2");
  font-weight: 200 900;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: "Source Sans 3";
  src: url("../fonts/source-sans-3.woff2") format("woff2");
  font-weight: 200 900;
  font-style: normal;
  font-display: swap;
}

/* ---------- Design tokens ---------- */
:root {
  --navy-950: #08182b;
  --navy-900: #0c2340;
  --navy-800: #11304f;
  --navy-700: #1b3f66;
  --blue-600: #08459a;
  --blue-500: #0a54b5;
  --blue-300: #8fb3df;
  --blue-200: #c2d6ee;
  --blue-100: #dde8f5;
  --gray-100: #e4e8ee;
  --gray-300: #c3cbd6;
  --gray-500: #7b8796;
  --gray-600: #4d5a6a;
  --gray-800: #1f2b3a;
  --white: #ffffff;

  --text: var(--gray-800);
  --text-muted: var(--gray-600);
  --rule: rgba(12, 35, 64, .16);
  --rule-light: rgba(255, 255, 255, .16);
  --focus: #ffb547;

  --serif: "Source Serif 4", Georgia, "Times New Roman", serif;
  --sans: "Source Sans 3", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;

  --gutter: clamp(20px, 5vw, 80px);
  --wrap: 1600px;
  --header-h: 64px;
  --radius: 3px;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-padding-top: var(--header-h);
}
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

body {
  margin: 0;
  font-family: var(--sans);
  font-size: 1.125rem;
  line-height: 1.6;
  color: var(--text);
  background: var(--navy-900);
  -webkit-font-smoothing: antialiased;
}

img, svg { display: block; max-width: 100%; }
img { height: auto; }

h1, h2, h3 { margin: 0; font-weight: 500; text-wrap: balance; }
h1, h2 {
  font-family: var(--serif);
  font-optical-sizing: auto;
  letter-spacing: -0.015em;
  line-height: 1.08;
}
h2 { font-size: clamp(2rem, 4.4vw, 3.5rem); }
h3 { font-size: 1.2rem; font-weight: 650; line-height: 1.3; }
p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }

a { color: var(--blue-600); text-underline-offset: .2em; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }

:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }

[hidden] { display: none !important; }

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.skip-link {
  position: absolute;
  left: 12px; top: -60px;
  z-index: 100;
  padding: 10px 16px;
  background: var(--white);
  color: var(--navy-900);
  font-weight: 700;
}
.skip-link:focus { top: 12px; }

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

/* ---------- Buttons and links ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: .8em 1.6em;
  border: 1.5px solid transparent;
  border-radius: var(--radius);
  font: inherit;
  font-size: 1.05rem;
  font-weight: 600;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: background-color .18s, color .18s, border-color .18s;
}
.btn-primary { background: var(--blue-500); color: var(--white); }
.btn-primary:hover { background: var(--blue-600); }
.btn-light { background: var(--white); color: var(--navy-900); }
.btn-light:hover { background: var(--blue-100); }

.text-link {
  display: inline-flex;
  gap: .4em;
  align-items: center;
  font-weight: 600;
  text-decoration: none;
  border-bottom: 1.5px solid currentColor;
  padding-bottom: 2px;
}
.text-link span { transition: transform .18s; }
.text-link:hover span { transform: translateX(3px); }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--navy-900);
  color: var(--white);
  border-bottom: 1px solid var(--rule-light);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: var(--header-h);
}

.brand { display: inline-flex; align-items: center; color: var(--white); text-decoration: none; }
.wordmark { display: inline-flex; align-items: center; gap: .6rem; }
.wordmark-icon { width: 28px; height: 28px; color: var(--white); }
.wordmark-icon .stripe { fill: var(--blue-300); }
.wordmark-text { font-family: var(--serif); font-size: 1.35rem; font-weight: 600; letter-spacing: -0.01em; }

/* The logo image sits on a white badge so any logo stays legible on dark blue.
   Set logoOnDark: true in config.js to remove the badge. */
.brand-logo {
  height: 40px;
  width: auto;
  max-width: 220px;
  object-fit: contain;
  padding: 5px 10px;
  background: var(--white);
  border-radius: var(--radius);
}
.logo-on-dark .brand-logo { padding: 0; background: none; }

.nav-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px; height: 48px;
  margin-right: -12px;
  padding: 0;
  border: 0;
  background: none;
  color: var(--white);
  cursor: pointer;
}
.nav-toggle-bars,
.nav-toggle-bars::before,
.nav-toggle-bars::after {
  display: block;
  width: 22px; height: 1.5px;
  background: currentColor;
  transition: transform .2s;
}
.nav-toggle-bars { position: relative; }
.nav-toggle-bars::before,
.nav-toggle-bars::after { content: ""; position: absolute; left: 0; }
.nav-toggle-bars::before { top: -7px; }
.nav-toggle-bars::after { top: 7px; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars::before { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars::after { transform: translateY(-7px) rotate(-45deg); }

.site-nav {
  display: none;
  position: absolute;
  top: 100%; left: 0; right: 0;
  background: var(--navy-900);
  border-bottom: 1px solid var(--rule-light);
}
.site-nav.is-open { display: block; }
.site-nav ul { list-style: none; margin: 0; padding: 8px var(--gutter) 24px; }
.site-nav a {
  display: block;
  padding: 14px 0;
  color: var(--white);
  font-size: 1.15rem;
  text-decoration: none;
  border-bottom: 1px solid var(--rule-light);
}
.site-nav a:hover { color: var(--blue-200); }
.site-nav .nav-cta {
  margin-top: 20px;
  padding: 14px 20px;
  border: 0;
  border-radius: var(--radius);
  background: var(--blue-500);
  font-weight: 600;
  text-align: center;
}
.site-nav .nav-cta:hover { background: var(--blue-600); color: var(--white); }

/* Without JavaScript the menu is a simple row of links. */
.no-js .site-header { position: static; }
.no-js .header-inner { flex-wrap: wrap; }
.no-js .nav-toggle { display: none; }
.no-js .site-nav { display: block; position: static; border: 0; }
.no-js .site-nav ul { display: flex; flex-wrap: wrap; gap: 0 18px; padding: 0 0 14px; }
.no-js .site-nav a { padding: 6px 0; border: 0; font-size: 1rem; }
.no-js .site-nav .nav-cta { margin: 0; padding: 6px 0; background: none; text-decoration: underline; }

@media (min-width: 960px) {
  :root { --header-h: 76px; }
  .nav-toggle { display: none; }
  .site-nav,
  .no-js .site-nav { display: block; position: static; background: none; border: 0; }
  .site-nav ul,
  .no-js .site-nav ul { display: flex; align-items: center; gap: 32px; padding: 0; }
  .site-nav a { padding: 6px 0; border: 0; font-size: 1.02rem; }
  .site-nav .nav-cta,
  .no-js .site-nav .nav-cta { margin: 0 0 0 8px; padding: 10px 20px; background: var(--blue-500); text-decoration: none; }
}

/* ---------- Hero ---------- */
.hero {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: calc(100vh - var(--header-h));
  min-height: calc(100svh - var(--header-h));
  padding-top: clamp(48px, 9vh, 120px);
  background: var(--navy-900);
  color: var(--white);
}
.hero-inner {
  display: grid;
  gap: 56px;
  align-items: center;
  padding-bottom: 56px;
}
.kicker {
  margin-bottom: 28px;
  font-size: .95rem;
  color: var(--blue-300);
}
.hero h1 {
  font-size: clamp(2.75rem, 7.4vw, 6.5rem);
  font-weight: 400;
  letter-spacing: -0.025em;
  line-height: 1.02;
  margin-bottom: 32px;
}
.lead {
  max-width: 34em;
  font-size: clamp(1.15rem, 1.6vw, 1.35rem);
  line-height: 1.55;
  color: var(--blue-200);
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 20px 32px;
  margin-top: 40px;
}
.hero .text-link { color: var(--white); }

.hero-visual { justify-self: center; text-align: center; }
.hero-visual-note { margin-top: 18px; font-size: .9rem; color: var(--blue-300); }

.hero-facts {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  border-top: 1px solid var(--rule-light);
}
.hero-facts li {
  padding: 22px 0;
  color: var(--blue-200);
  font-size: 1rem;
  border-bottom: 1px solid var(--rule-light);
}
.hero-facts li:last-child { border-bottom: 0; }
.hero-facts strong { display: block; color: var(--white); font-family: var(--serif); font-size: 1.3rem; font-weight: 500; }

@media (min-width: 760px) {
  .hero-facts { grid-template-columns: repeat(3, 1fr); }
  .hero-facts li { padding: 28px 32px 32px; border-bottom: 0; border-left: 1px solid var(--rule-light); }
  .hero-facts li:first-child { padding-left: 0; border-left: 0; }
}
@media (min-width: 960px) {
  .hero h1 { max-width: 13ch; }
  .hero-inner { grid-template-columns: minmax(0, 1fr) auto; gap: 80px; }
}

/* ---------- Sections ---------- */
.section { padding: 80px 0; }
.section--light { background: var(--blue-100); }
.section--gray { background: var(--gray-100); }
.section--dark { background: var(--navy-800); color: var(--white); }

/* Editorial layout: a narrow label column on the left, content on the right. */
.section-grid { display: grid; gap: 28px; }
.section-label {
  margin: 0;
  padding-top: 14px;
  border-top: 1px solid var(--rule);
  font-size: .95rem;
  font-weight: 600;
  color: var(--navy-900);
}
.section-label span { margin-right: 10px; color: var(--blue-500); font-variant-numeric: tabular-nums; }
.section--dark .section-label { color: var(--white); border-color: var(--rule-light); }
.section--dark .section-label span { color: var(--blue-300); }

.section-body h2 { max-width: 18ch; margin-bottom: 24px; color: var(--navy-900); }
.section--dark .section-body h2 { color: var(--white); }
.section-intro { max-width: 36em; font-size: 1.2rem; color: var(--text-muted); }
.section--dark .section-intro { color: var(--blue-200); }
.section--dark a:not(.btn) { color: var(--white); }

@media (min-width: 960px) {
  .section { padding: 128px 0; }
  .section-grid { grid-template-columns: minmax(180px, 3fr) 9fr; gap: 48px; }
}

/* ---------- What you get ---------- */
.feature-list {
  display: grid;
  margin: 56px 0 0;
  border-top: 1px solid var(--rule);
}
.feature-list > div { padding: 26px 0; border-bottom: 1px solid var(--rule); }
.feature-list dt { margin-bottom: 6px; font-weight: 650; font-size: 1.15rem; color: var(--navy-900); }
.feature-list dd { margin: 0; color: var(--text-muted); max-width: 30em; }

@media (min-width: 760px) {
  .feature-list { grid-template-columns: 1fr 1fr; column-gap: 56px; border-top: 0; }
  .feature-list > div { border-top: 1px solid var(--rule); border-bottom: 0; padding: 28px 0 36px; }
}

/* ---------- Phone mockups ---------- */
.phone {
  position: relative;
  width: 240px;
  aspect-ratio: 240 / 486;
  padding: 9px;
  border-radius: 38px;
  background: #050d18;
  box-shadow: 0 30px 60px rgba(3, 10, 20, .45), inset 0 0 0 1.5px rgba(255, 255, 255, .14);
}
.phone::before {
  content: "";
  position: absolute;
  top: 17px; left: 50%;
  width: 66px; height: 19px;
  transform: translateX(-50%);
  border-radius: 999px;
  background: #050d18;
  z-index: 2;
}
.phone--hero { width: 280px; }

.phone-screen {
  --m-bg: #fff;
  --m-ink: #1c2430;
  --m-accent: #2a6bbd;
  --m-soft: #eef2f6;
  display: flex;
  flex-direction: column;
  height: 100%;
  overflow: hidden;
  border-radius: 30px;
  background: var(--m-bg);
  color: var(--m-ink);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: 11px;
  line-height: 1.35;
  text-align: left;
}
.m-bar { display: flex; justify-content: space-between; align-items: center; padding: 40px 16px 10px; }
.m-logo { font-weight: 800; font-size: 12.5px; }
.m-burger { width: 16px; height: 9px; border-block: 2px solid currentColor; opacity: .7; }
.m-hero {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  margin: 0 10px;
  padding: 16px 14px;
  border-radius: 16px;
  color: #fff;
  background: linear-gradient(to top, rgba(0, 0, 0, .55) 0%, rgba(0, 0, 0, .25) 40%, transparent 62%), var(--m-art);
  text-shadow: 0 1px 2px rgba(0, 0, 0, .3);
}
.m-kicker { margin: 0 0 4px; font-size: 9.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .12em; opacity: .9; }
.m-title { margin: 0 0 12px; font-size: 17px; font-weight: 800; line-height: 1.12; letter-spacing: -0.02em; }
.m-btn { align-self: flex-start; padding: 7px 12px; border-radius: 999px; background: #fff; color: var(--m-ink); font-weight: 700; text-shadow: none; }
.m-rows { padding: 12px 16px 4px; }
.m-rows p { display: flex; justify-content: space-between; margin: 0; padding: 7px 0; border-bottom: 1px solid var(--m-soft); }
.m-rows p span:last-child { font-weight: 700; }
.m-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; padding: 10px 12px 16px; }
.m-actions span { padding: 9px 0; border-radius: 10px; background: var(--m-accent); color: #fff; font-weight: 700; text-align: center; }
.m-actions span + span { background: var(--m-soft); color: var(--m-ink); }

/* Each sample has its own palette, to show that client sites can look different. */
.m-cafe {
  --m-accent: #8a5a3b;
  --m-soft: #f2ebe4;
  --m-art:
    radial-gradient(circle at 76% 24%, #e9c9a1 0 16%, transparent 16.5%),
    radial-gradient(circle at 76% 24%, #6b3f24 0 23%, transparent 23.5%),
    linear-gradient(160deg, #b9805a, #5a3420);
}
.m-florist {
  --m-accent: #3f7a52;
  --m-soft: #edf3ee;
  --m-art:
    radial-gradient(circle at 24% 18%, #f6b8c8 0 12%, transparent 13%),
    radial-gradient(circle at 46% 12%, #f08da8 0 10%, transparent 11%),
    radial-gradient(circle at 70% 20%, #fbd3dc 0 13%, transparent 14%),
    radial-gradient(circle at 36% 30%, #e3708f 0 9%, transparent 10%),
    linear-gradient(170deg, #6aa77b 0%, #2f5e3e 100%);
}
.m-restaurant {
  --m-ink: #2a1d16;
  --m-accent: #b4462f;
  --m-soft: #f6ece6;
  --m-art:
    radial-gradient(circle at 50% 26%, #f3e3c3 0 15%, transparent 15.5%),
    radial-gradient(circle at 50% 26%, #fff 0 21%, transparent 21.5%),
    linear-gradient(165deg, #c55a3c, #6e2416);
}
.m-barber {
  --m-bg: #14181f;
  --m-ink: #f2f4f7;
  --m-accent: #c8a252;
  --m-soft: #252b35;
  --m-art:
    repeating-linear-gradient(135deg, rgba(255,255,255,.12) 0 10px, transparent 10px 20px),
    linear-gradient(160deg, #3b4352, #171b22);
}
.m-barber .m-btn { background: var(--m-accent); color: #14181f; }
.m-barber .m-actions span:first-child { color: #14181f; }

/* ---------- Examples ---------- */
.samples {
  display: grid;
  gap: 64px;
  margin-top: 64px;
  padding-top: 64px;
  border-top: 1px solid var(--rule-light);
}
.sample { margin: 0; display: grid; justify-items: center; gap: 28px; }
.sample figcaption { display: grid; gap: 4px; width: 100%; max-width: 300px; }
.sample figcaption strong { font-family: var(--serif); font-size: 1.6rem; font-weight: 500; line-height: 1.2; }
.sample figcaption span { color: var(--blue-200); }
.sample-meta { font-size: .85rem; color: var(--blue-300) !important; }
.sample .text-link { justify-self: start; margin-top: 10px; }

@media (min-width: 820px) {
  .samples { grid-template-columns: repeat(3, 1fr); gap: 32px; }
  .sample { justify-items: start; }
  .sample figcaption { max-width: none; }
}
@media (min-width: 820px) and (max-width: 1100px) {
  .samples .phone { width: 220px; }
}

/* ---------- How it works ---------- */
.steps { list-style: none; margin: 56px 0 0; padding: 0; display: grid; }
.steps li { padding: 28px 0 36px; border-top: 1px solid var(--rule); }
.step-number {
  display: block;
  margin-bottom: 20px;
  font-family: var(--serif);
  font-size: 3.5rem;
  line-height: 1;
  font-weight: 300;
  color: var(--blue-500);
}
.steps h3 { margin-bottom: 10px; color: var(--navy-900); }
.steps p { color: var(--text-muted); max-width: 26em; }

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

/* ---------- Pricing ---------- */
.plan {
  display: grid;
  gap: 8px 64px;
  margin-top: 56px;
  padding-top: 32px;
  border-top: 3px solid var(--navy-900);
}
.plan h3 { font-size: 1.3rem; color: var(--navy-900); }
.plan-price {
  margin: 14px 0 10px;
  font-family: var(--serif);
  font-size: clamp(2.6rem, 4vw, 3.4rem);
  font-weight: 400;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--navy-900);
}
.plan-price small { font-family: var(--sans); font-size: 1rem; letter-spacing: 0; color: var(--text-muted); }
.plan-price--ask { font-size: clamp(2rem, 3vw, 2.5rem); }
.plan-note { color: var(--text-muted); max-width: 28em; }
.ticks { list-style: none; margin: 24px 0 0; padding: 0; }
.ticks li { position: relative; padding: 9px 0 9px 28px; border-top: 1px solid var(--rule); }
.ticks li:first-child { border-top: 0; }
.ticks li::before {
  content: "";
  position: absolute;
  left: 2px; top: 1.05em;
  width: 12px; height: 7px;
  border-left: 2px solid var(--blue-500);
  border-bottom: 2px solid var(--blue-500);
  transform: rotate(-45deg);
}
.pricing-foot { display: grid; gap: 24px; justify-items: start; margin-top: 32px; }
.fine-print { font-size: 1rem; color: var(--text-muted); max-width: 36em; }

@media (min-width: 820px) {
  .plan { grid-template-columns: 1fr 1fr; align-items: start; }
  .plan .ticks { margin-top: 0; }
  .pricing-foot { grid-template-columns: auto 1fr; align-items: center; gap: 40px; }
}

/* ---------- About ---------- */
.about { display: grid; gap: 32px; }
.about h2 { max-width: 16ch; margin: 0; }
.about-copy { max-width: 36em; color: var(--text-muted); }
.about-location { font-weight: 650; color: var(--navy-900); }
.about-photo {
  width: 160px;
  aspect-ratio: 1;
  object-fit: cover;
  margin-bottom: 28px;
  border-radius: 50%;
}
@media (min-width: 1100px) {
  .about { grid-template-columns: 1.1fr 1fr; gap: 64px; align-items: start; }
}

/* ---------- FAQ ---------- */
.faq { margin-top: 48px; border-bottom: 1px solid var(--rule); max-width: 900px; }
.faq details { border-top: 1px solid var(--rule); }
.faq summary {
  position: relative;
  padding: 24px 48px 24px 0;
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--navy-900);
  cursor: pointer;
  list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::before,
.faq summary::after {
  content: "";
  position: absolute;
  right: 4px; top: 50%;
  width: 16px; height: 1.5px;
  background: var(--blue-500);
  transition: transform .2s;
}
.faq summary::after { transform: rotate(90deg); }
.faq details[open] summary::after { transform: rotate(0); }
.faq summary:hover { color: var(--blue-600); }
.faq details p { max-width: 40em; padding: 0 0 28px; color: var(--text-muted); }

/* ---------- Contact ---------- */
.section--contact { background: var(--navy-900); }
.contact { display: grid; gap: 56px; }
.contact-direct { list-style: none; margin: 40px 0 0; padding: 0; border-top: 1px solid var(--rule-light); }
.contact-direct li { display: grid; gap: 2px; padding: 18px 0; border-bottom: 1px solid var(--rule-light); }
.contact-label { font-size: .9rem; color: var(--blue-300); }
.contact-direct a { font-size: 1.25rem; font-weight: 600; text-decoration: none; word-break: break-word; }
.contact-direct a:hover { text-decoration: underline; }
.contact-soon { margin-top: 32px; color: var(--blue-200); }

.contact-form { color: var(--white); }
.field { margin-bottom: 26px; }
.field label { display: block; margin-bottom: 8px; font-weight: 600; font-size: 1rem; }
.optional { font-weight: 400; color: var(--blue-300); }
.field input,
.field textarea {
  width: 100%;
  padding: 14px 16px;
  border: 1px solid rgba(255, 255, 255, .28);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, .06);
  color: var(--white);
  font: inherit;
  font-size: 1.05rem;
  transition: border-color .15s, background-color .15s;
}
.field textarea { resize: vertical; min-height: 140px; }
.field input:focus,
.field textarea:focus { outline: none; border-color: var(--blue-300); background: rgba(255, 255, 255, .1); }
.field input::placeholder,
.field textarea::placeholder { color: var(--blue-300); opacity: .8; }
.field [aria-invalid="true"] { border-color: #ff8a7a; }
.hint { margin: 8px 0 0; font-size: .92rem; color: var(--blue-300); }
.field--trap { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.form-status { margin: 18px 0 0; font-weight: 600; }
.form-status:empty { display: none; }
.form-status.is-success { color: #8fe0b0; }
.form-status.is-error { color: #ffb0a5; }
.form-reply { margin: 18px 0 0; font-weight: 600; color: var(--white); }
.form-privacy { margin-top: 8px; font-size: .95rem; color: var(--blue-300); }
.contact-form button[disabled] { opacity: .6; cursor: progress; }

@media (min-width: 1100px) {
  .contact { grid-template-columns: 1fr 1fr; gap: 80px; align-items: start; }
}

/* ---------- Footer ---------- */
.site-footer {
  padding: 56px 0 48px;
  background: var(--navy-950);
  color: var(--gray-500);
  font-size: 1rem;
}
.footer-inner { display: grid; gap: 32px; }
.footer-inner p { margin: 0 0 4px; }
.footer-brand { color: var(--white); font-family: var(--serif); font-size: 1.3rem; }
.footer-links { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 28px; }
.footer-links a { color: var(--blue-200); }
@media (min-width: 760px) {
  .footer-inner { grid-template-columns: 1fr auto; align-items: end; }
}

/* ---------- Legal pages ---------- */
.header-back { color: var(--white); }
.legal { background: var(--blue-100); padding: 64px 0 112px; }
.legal-inner { max-width: 760px; }
.legal h1 { font-size: clamp(2.4rem, 6vw, 3.6rem); font-weight: 400; color: var(--navy-900); margin-bottom: .4em; }
.legal h2 { font-size: 1.6rem; margin: 2em 0 .5em; color: var(--navy-900); }
.legal p, .legal li { color: var(--text-muted); }
.legal ul { padding-left: 1.2em; }
.legal-updated { font-size: 1rem; }
.back-link { display: inline-block; margin-bottom: 32px; font-weight: 600; }

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
}

/* Hide the contact list's top rule when no direct contact is set. */
.contact-direct:not(:has(li:not([hidden]))) { display: none; }
