/* RailWeld website. Colours and type follow RAILWELD_Brand_Guide.md. No inline styles anywhere (strict CSP). */

@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("assets/fonts/inter-latin-wght-normal.woff2?v=1") format("woff2-variations"),
       url("assets/fonts/inter-latin-wght-normal.woff2?v=1") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329,
    U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --navy: #122947;
  --cyan: #21a1c4;
  --cyan-text: #167a96;     /* cyan for text and icons on light backgrounds */
  --page: #f8fafc;
  --card: #ffffff;
  --border: #e2e8f0;
  --text: #0f172a;
  --muted: #64748b;
  --dark-panel: #1e293b;
  --on-navy: #ffffff;
  --on-navy-muted: #cbd5e1;
  --navy-line: rgba(255, 255, 255, 0.14);
  --error: #e11d48;
  --success: #16a34a;
  --radius: 12px;
  --radius-small: 8px;
  --max: 1180px;
  --gutter: clamp(1rem, 4vw, 2rem);
  --section-pad: clamp(3.5rem, 8vw, 6.5rem);
  --header-h: 68px;
  --focus: 0 0 0 3px var(--page), 0 0 0 5px var(--cyan-text);
  --focus-dark: 0 0 0 3px var(--navy), 0 0 0 5px var(--cyan);
}

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: calc(var(--header-h) + 12px);
}

@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

body {
  margin: 0;
  font-family: "Inter", Arial, Helvetica, sans-serif;
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--text);
  background: var(--page);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
h1, h2, h3 { margin: 0; font-weight: 600; line-height: 1.2; letter-spacing: -0.015em; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
figure { margin: 0; }
a { color: var(--cyan-text); text-underline-offset: 0.18em; }
a:hover { text-decoration-thickness: 2px; }

:focus-visible { outline: none; box-shadow: var(--focus); border-radius: 4px; }
.section-navy :focus-visible, .site-header :focus-visible, .site-footer :focus-visible { box-shadow: var(--focus-dark); }

.icon {
  width: 24px;
  height: 24px;
  flex: none;
  color: var(--cyan-text);
}

.container {
  width: 100%;
  max-width: calc(var(--max) + 2 * var(--gutter));
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.narrow { max-width: calc(760px + 2 * var(--gutter)); }

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

.skip-link {
  position: absolute;
  left: 1rem;
  top: -100px;
  z-index: 100;
  padding: 0.75rem 1rem;
  background: var(--card);
  color: var(--navy);
  font-weight: 600;
  border-radius: var(--radius-small);
}
.skip-link:focus { top: 0.75rem; }

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 48px;
  padding: 0.75rem 1.4rem;
  border-radius: var(--radius-small);
  border: 1px solid transparent;
  font: inherit;
  font-weight: 600;
  font-size: 1rem;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.15s ease, border-color 0.15s ease;
}
.btn-accent { background: var(--cyan); color: var(--navy); }
.btn-accent:hover { background: #3cb3d3; }
.btn-ghost { background: transparent; color: var(--on-navy); border-color: rgba(255, 255, 255, 0.45); }
.btn-ghost:hover { border-color: var(--on-navy); background: rgba(255, 255, 255, 0.06); }
.btn-small { min-height: 40px; padding: 0.5rem 1rem; font-size: 0.95rem; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: 0.65; cursor: progress; }

.button-row { display: flex; flex-wrap: wrap; gap: 0.75rem; }

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--navy);
  border-bottom: 1px solid var(--navy-line);
}

.header-bar {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  min-height: var(--header-h);
}

.brand { display: inline-flex; padding: 0.25rem 0; flex: none; }
.brand-logo { width: 150px; height: auto; }

.site-nav { margin-left: auto; }
.nav-list { display: flex; gap: 0.25rem; }
.nav-list a {
  display: block;
  padding: 0.5rem 0.75rem;
  color: var(--on-navy-muted);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
  border-radius: 6px;
}
.nav-list a:hover { color: var(--on-navy); background: rgba(255, 255, 255, 0.06); }
.nav-list a, .header-actions .btn { white-space: nowrap; }
@media (min-width: 980px) and (max-width: 1179.98px) {
  .header-bar { gap: 1rem; }
  .nav-list a { padding: 0.5rem 0.5rem; font-size: 0.9rem; }
}
.nav-signin-mobile { display: none; }

.header-actions { display: flex; align-items: center; gap: 1rem; }
.header-signin {
  color: var(--on-navy);
  font-size: 0.95rem;
  font-weight: 500;
  text-decoration: none;
  padding: 0.5rem 0.25rem;
}
.header-signin:hover { text-decoration: underline; }

.menu-toggle {
  display: none;
  align-items: center;
  gap: 0.4rem;
  min-height: 44px;
  padding: 0.5rem 0.75rem;
  background: transparent;
  color: var(--on-navy);
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: var(--radius-small);
  font: inherit;
  font-size: 0.95rem;
  font-weight: 500;
  cursor: pointer;
}
.menu-toggle .icon { color: var(--on-navy); width: 22px; height: 22px; }

@media (max-width: 979.98px) {
  .menu-toggle { display: inline-flex; }
  .header-signin { display: none; }
  .header-actions { margin-left: auto; gap: 0.6rem; }
  .header-bar { gap: 0.75rem; }
  .brand-logo { width: 128px; }

  .site-nav {
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    margin: 0;
    background: var(--navy);
    border-bottom: 1px solid var(--navy-line);
    padding: 0.5rem var(--gutter) 1.25rem;
    display: none;
  }
  .site-nav.is-open { display: block; }
  .nav-list { flex-direction: column; gap: 0; max-width: var(--max); margin: 0 auto; }
  .nav-list a {
    padding: 0.9rem 0.25rem;
    font-size: 1.05rem;
    color: var(--on-navy);
    border-bottom: 1px solid var(--navy-line);
    border-radius: 0;
  }
  .nav-signin-mobile { display: block; }
  .nav-signin-mobile a { border-bottom: 0; }
}

@media (max-width: 400px) {
  .menu-toggle-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .brand-logo { width: 112px; }
  .btn-small { padding: 0.5rem 0.75rem; }
}

/* ---------- Sections ---------- */

section { padding: var(--section-pad) 0; }
.section-navy { background: var(--navy); color: var(--on-navy); }
.section-light { background: var(--page); }
.section-white { background: var(--card); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }

.eyebrow {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--cyan);
}
.eyebrow::before {
  content: "";
  width: 32px;
  height: 3px;
  border-radius: 2px;
  background: var(--cyan);
}
.eyebrow-dark { color: var(--cyan-text); }
.eyebrow-dark::before { background: var(--cyan); }

.section-title {
  font-size: clamp(1.75rem, 3.4vw, 2.5rem);
  color: var(--navy);
  max-width: 30ch;
  margin-bottom: clamp(2rem, 4vw, 3rem);
}
.section-navy .section-title { color: var(--on-navy); }

.lead { font-size: 1.15rem; color: var(--text); max-width: 60ch; }
.section-navy .lead { color: var(--on-navy-muted); }

/* ---------- Hero ---------- */

.hero { padding-top: clamp(3rem, 7vw, 5.5rem); padding-bottom: clamp(3rem, 6vw, 4.5rem); }

.hero-grid {
  display: grid;
  gap: clamp(2.5rem, 5vw, 3.5rem);
  align-items: center;
}
@media (min-width: 980px) {
  .hero-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1.12fr); }
}

h1 {
  font-size: clamp(2.5rem, 5vw, 4rem);
  line-height: 1.05;
  letter-spacing: -0.025em;
  margin-bottom: 1.25rem;
  max-width: 14ch;
}
.hero-sub { font-size: clamp(1.05rem, 1.6vw, 1.2rem); color: var(--on-navy-muted); max-width: 54ch; margin-bottom: 2rem; }

.hero-visual { position: relative; }
.hero-stack { position: relative; padding-bottom: 2.5rem; padding-right: 2.5rem; }
.hero-stack .hero-phone {
  position: absolute;
  right: 0;
  bottom: 0;
  width: 26%;
  max-width: 180px;
}
@media (max-width: 639.98px) {
  .hero-stack { padding-right: 1.25rem; padding-bottom: 3.5rem; }
  .hero-stack .hero-phone { width: 32%; }
}

/* ---------- Frames and zoom ---------- */

.zoom {
  position: relative;
  display: block;
  width: 100%;
  padding: 0;
  margin: 0;
  border: 0;
  font: inherit;
  text-align: left;
  cursor: zoom-in;
  background: transparent;
}
.zoom img { width: 100%; }

.zoom-hint {
  position: absolute;
  right: 10px;
  bottom: 10px;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 999px;
  background: rgba(18, 41, 71, 0.82);
  opacity: 0;
  transition: opacity 0.15s ease;
}
.zoom-hint .icon { width: 18px; height: 18px; color: #ffffff; }
.zoom:hover .zoom-hint, .zoom:focus-visible .zoom-hint { opacity: 1; }
@media (hover: none) { .zoom-hint { opacity: 1; } }

.browser-frame {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.06), 0 8px 24px rgba(15, 23, 42, 0.06);
}
.section-navy .browser-frame { border-color: rgba(255, 255, 255, 0.2); box-shadow: 0 16px 40px rgba(0, 0, 0, 0.28); }
.browser-bar {
  display: flex;
  gap: 6px;
  align-items: center;
  height: 26px;
  padding: 0 12px;
  background: #eef2f6;
  border-bottom: 1px solid var(--border);
}
.browser-bar span { width: 9px; height: 9px; border-radius: 50%; background: #cbd5e1; }

.phone-frame {
  background: var(--dark-panel);
  border: 1px solid #334155;
  border-radius: 26px;
  padding: 9px;
  box-shadow: 0 12px 32px rgba(15, 23, 42, 0.22);
}
.phone-frame img { border-radius: 18px; }
.phone-frame .zoom-hint { right: 16px; bottom: 16px; }
.section-navy .phone-frame { border-color: rgba(255, 255, 255, 0.25); box-shadow: 0 16px 40px rgba(0, 0, 0, 0.4); }

.doc-frame {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-small);
  padding: clamp(0.5rem, 2vw, 1rem);
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.06), 0 8px 24px rgba(15, 23, 42, 0.06);
}
.doc-frame-wide { overflow-x: auto; }
.doc-frame-wide img { min-width: 640px; }

.demo-caption {
  margin-top: 0.9rem;
  font-size: 0.85rem;
  color: var(--on-navy-muted);
}
.demo-caption-dark { color: var(--muted); }

/* ---------- Impact ---------- */

.impact { padding: clamp(2.5rem, 5vw, 3.5rem) 0; border-top: 1px solid var(--navy-line); }
.impact-label {
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--on-navy-muted);
  margin-bottom: 1.25rem;
}
.impact-pair { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.75rem; margin-bottom: 1.25rem; }
.impact-item { display: flex; flex-direction: column; gap: 0.15rem; }
.impact-what { font-size: 0.95rem; color: var(--on-navy-muted); }
.impact-value { font-size: clamp(2rem, 4.6vw, 3.25rem); font-weight: 600; line-height: 1.1; letter-spacing: -0.02em; }
.impact-item-new .impact-value { color: var(--cyan); }
.impact-arrow { width: 36px; height: 36px; color: var(--cyan); }
.impact-line { color: var(--on-navy-muted); max-width: 60ch; }
@media (max-width: 639.98px) {
  .impact-pair { flex-direction: column; align-items: flex-start; }
  .impact-arrow { transform: rotate(90deg); }
}

/* ---------- Problem ---------- */

.problem-list { display: grid; gap: 1rem; }
.problem-row {
  display: grid;
  gap: 1rem 2rem;
  padding: 1.5rem;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
@media (min-width: 980px) {
  .problem-row { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: start; }
}
.problem-today { display: flex; gap: 1rem; align-items: flex-start; }
.problem-today h3 { font-size: 1.15rem; color: var(--navy); margin-bottom: 0.4rem; }
.problem-today p { color: var(--muted); }
.problem-fix {
  padding-left: 1rem;
  border-left: 3px solid var(--cyan);
  color: var(--text);
}
@media (min-width: 980px) {
  .problem-fix { padding-left: 1.5rem; margin-top: 2.1rem; }
}

.tag {
  display: inline-block;
  margin-right: 0.4rem;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.tag-today { color: var(--muted); }
.tag-fix { color: var(--cyan-text); }

.icon-badge {
  width: 44px;
  height: 44px;
  padding: 10px;
  border-radius: 10px;
  background: #e8f5f9;
  color: var(--cyan-text);
}

/* ---------- Chain ---------- */

.chain { display: grid; gap: 0.75rem; counter-reset: none; margin-bottom: 2rem; }
.chain-step {
  position: relative;
  display: grid;
  grid-template-columns: auto auto 1fr;
  grid-template-areas: "num icon title" "num icon text";
  align-content: start;
  column-gap: 0.9rem;
  row-gap: 0.15rem;
  padding: 1.1rem 1.25rem;
  background: var(--page);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
.chain-num {
  grid-area: num;
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--navy);
  color: #ffffff;
  font-size: 0.9rem;
  font-weight: 600;
}
.chain-step .icon { grid-area: icon; margin-top: 3px; }
.chain-step h3 { grid-area: title; font-size: 1.05rem; color: var(--navy); align-self: center; }
.chain-step p { grid-area: text; color: var(--muted); font-size: 0.97rem; }
.chain-step-final { background: var(--navy); border-color: var(--navy); }
.chain-step-final .chain-num { background: var(--cyan); color: var(--navy); }
.chain-step-final .icon { color: var(--cyan); }
.chain-step-final h3 { color: #ffffff; }
.chain-step-final p { color: var(--on-navy-muted); }

/* connectors on small screens: a vertical line between steps */
.chain-step:not(:last-child)::after {
  content: "";
  position: absolute;
  left: calc(1.25rem + 14px);
  bottom: -0.8rem;
  width: 2px;
  height: 0.8rem;
  background: var(--cyan);
}

@media (min-width: 980px) {
  .chain { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 1rem; }
  .chain-step {
    grid-template-columns: 1fr;
    grid-template-areas: "num" "icon" "title" "text";
    row-gap: 0.6rem;
    padding: 1.25rem;
  }
  .chain-step h3 { align-self: start; }
  .chain-step:not(:last-child)::after {
    left: auto;
    right: -1rem;
    top: calc(1.25rem + 14px);
    bottom: auto;
    width: 1rem;
    height: 2px;
  }
}

.callouts { display: grid; gap: 1rem; margin-bottom: clamp(2rem, 4vw, 3rem); }
@media (min-width: 768px) { .callouts { grid-template-columns: 1fr 1fr; } }
.callout {
  display: flex;
  gap: 1rem;
  padding: 1.25rem 1.5rem;
  border-left: 3px solid var(--cyan);
  background: var(--page);
  border-radius: 0 var(--radius) var(--radius) 0;
}
.callout .icon { margin-top: 2px; }
.callout h3 { font-size: 1.05rem; color: var(--navy); margin-bottom: 0.3rem; }
.callout p { color: var(--muted); }

.how-shots { display: grid; gap: 2rem; align-items: start; }
@media (min-width: 980px) { .how-shots { grid-template-columns: 1.6fr 1fr; } }

/* ---------- Split (on site) ---------- */

.split { display: grid; gap: clamp(2.5rem, 5vw, 4rem); align-items: center; }
@media (min-width: 980px) { .split { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } }
.split .section-title { margin-bottom: 1rem; }
.split .lead { margin-bottom: 1.75rem; }

.icon-list { display: grid; gap: 0.85rem; margin-bottom: 1.75rem; }
.icon-list li { display: flex; gap: 0.85rem; align-items: flex-start; }
.icon-list .icon { margin-top: 1px; }

.proof {
  padding: 1rem 1.25rem;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--muted);
  font-size: 0.97rem;
}

.phones-row { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(1rem, 3vw, 1.75rem); align-items: start; max-width: 520px; }
.phones-row .zoom:nth-child(2) { margin-top: 2.5rem; }

/* ---------- Cards ---------- */

.card-grid { display: grid; gap: 1rem; }
@media (min-width: 640px) { .card-grid-2, .card-grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 980px) { .card-grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

.card {
  padding: 1.5rem;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
.card .icon-badge { margin-bottom: 1rem; }
.card h3 { font-size: 1.15rem; color: var(--navy); margin-bottom: 0.5rem; }
.card p { color: var(--muted); }

.card-dark { background: var(--dark-panel); border-color: rgba(255, 255, 255, 0.1); }
.card-dark h3 { color: #ffffff; }
.card-dark p { color: var(--on-navy-muted); }
.card-num { display: block; font-size: 1.75rem; font-weight: 600; color: var(--cyan); margin-bottom: 0.75rem; letter-spacing: -0.02em; }

.compliance-line { margin-top: 2rem; color: var(--on-navy-muted); max-width: 70ch; }

.visibility-strip {
  display: grid;
  gap: 1rem;
  margin: 1rem 0 clamp(2.5rem, 5vw, 3.5rem);
  padding: 1.25rem 1.5rem;
  background: var(--navy);
  color: #ffffff;
  border-radius: var(--radius);
}
.visibility-title { font-size: 0.85rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--cyan); }
.visibility-list { display: grid; gap: 0.75rem; }
.visibility-list li { display: flex; gap: 0.75rem; align-items: flex-start; color: var(--on-navy-muted); }
.visibility-list .icon { color: var(--cyan); }
@media (min-width: 980px) {
  .visibility-strip { grid-template-columns: auto 1fr; align-items: center; gap: 2rem; }
  .visibility-list { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.5rem; }
}

.feature { display: flex; gap: 1rem; align-items: flex-start; padding: 1.25rem 1.5rem; background: var(--page); border: 1px solid var(--border); border-radius: var(--radius); }
.feature p { padding-top: 0.55rem; }

.step-label { display: block; font-size: 0.8rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--cyan-text); margin-bottom: 0.9rem; }
.steps .card { background: var(--page); }
.note { margin-top: 1.5rem; color: var(--muted); }

/* ---------- Tabs ---------- */

.tab-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.25rem;
}
.tab {
  min-height: 44px;
  padding: 0.55rem 1rem;
  font: inherit;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--navy);
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 999px;
  cursor: pointer;
}
.tab:hover { border-color: var(--cyan-text); }
.tab[aria-selected="true"] { background: var(--navy); border-color: var(--navy); color: #ffffff; }
.tab-panel { border-radius: var(--radius); }
.tab-panel[hidden] { display: none; }
.shot-narrow { max-width: 720px; }

@media (max-width: 639.98px) {
  .tab-list { flex-direction: column; }
  .tab { width: 100%; text-align: left; border-radius: var(--radius-small); }
}

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

.contact-grid { display: grid; gap: clamp(2rem, 5vw, 4rem); align-items: start; }
@media (min-width: 980px) { .contact-grid { grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); } }
.contact .section-title { margin-bottom: 1rem; }
.contact .lead { margin-bottom: 1.75rem; }
.contact-email { display: flex; gap: 0.75rem; align-items: center; color: var(--on-navy-muted); }
.contact-email .icon { color: var(--cyan); }
.contact-email a { color: #ffffff; font-weight: 600; }
.contact-details { display: grid; gap: 1rem; margin-bottom: 2rem; }
.contact-details li { display: flex; gap: 0.75rem; align-items: center; color: var(--on-navy-muted); }
.contact-details .icon { color: var(--cyan); flex: none; }
.contact-details strong, .contact-details a { color: #ffffff; font-weight: 600; }
.contact-page { min-height: 70vh; }

.contact-form {
  padding: clamp(1.25rem, 3vw, 2rem);
  background: var(--card);
  color: var(--text);
  border-radius: var(--radius);
  display: grid;
  gap: 1.1rem;
}
.contact-form :focus-visible { box-shadow: var(--focus); }
.field { display: grid; gap: 0.4rem; }
.field label { font-weight: 500; color: var(--navy); }
.req, .opt { font-weight: 400; color: var(--muted); font-size: 0.9rem; }
.field input, .field textarea {
  width: 100%;
  min-height: 48px;
  padding: 0.7rem 0.85rem;
  font: inherit;
  font-size: 1rem;
  color: var(--text);
  background: var(--page);
  border: 1px solid #94a3b8;
  border-radius: var(--radius-small);
}
.field textarea { resize: vertical; min-height: 140px; }
.field input:focus-visible, .field textarea:focus-visible { border-color: var(--cyan-text); background: #ffffff; }
.field input[aria-invalid="true"], .field textarea[aria-invalid="true"] { border-color: var(--error); }
.hint { font-size: 0.85rem; color: var(--muted); }
.field-error { font-size: 0.9rem; color: var(--error); font-weight: 500; }

.hp-field { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

.form-status:empty { display: none; }
.form-status { padding: 0.9rem 1rem; border-radius: var(--radius-small); font-weight: 500; }
.form-status.is-success { background: #f0fdf4; color: #166534; border: 1px solid #bbf7d0; }
.form-status.is-error { background: #fff1f2; color: #9f1239; border: 1px solid #fecdd3; }
.form-status a { color: inherit; font-weight: 600; }
.form-privacy { font-size: 0.9rem; color: var(--muted); }

/* ---------- Footer ---------- */

.site-footer { background: var(--navy); color: var(--on-navy-muted); padding: 2.25rem 0; border-top: 1px solid var(--navy-line); }
.footer-grid { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.75rem; }
.footer-symbol { width: 48px; height: auto; }
.footer-copy { font-size: 0.95rem; }
.footer-links { display: flex; flex-wrap: wrap; gap: 0.5rem 1.5rem; margin-left: auto; }
.footer-links a { color: #ffffff; text-decoration: none; font-size: 0.95rem; }
.footer-links a:hover { text-decoration: underline; }
@media (max-width: 639.98px) { .footer-links { margin-left: 0; width: 100%; } }

/* ---------- Lightbox ---------- */

.lightbox {
  width: min(96vw, 1600px);
  max-width: none;
  max-height: 94vh;
  padding: 0;
  border: 0;
  border-radius: var(--radius);
  background: var(--card);
  color: var(--text);
}
.lightbox::backdrop { background: rgba(15, 23, 42, 0.82); }
.lightbox-inner { display: grid; gap: 0.75rem; padding: 0.75rem; }
.lightbox-close {
  justify-self: end;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  min-height: 44px;
  padding: 0.5rem 0.9rem;
  font: inherit;
  font-weight: 500;
  color: var(--navy);
  background: var(--page);
  border: 1px solid var(--border);
  border-radius: var(--radius-small);
  cursor: pointer;
}
.lightbox-close .icon { width: 20px; height: 20px; color: var(--navy); }
.lightbox-img { width: auto; max-width: 100%; max-height: calc(94vh - 9rem); margin: 0 auto; object-fit: contain; }
.lightbox-caption { font-size: 0.9rem; color: var(--muted); padding: 0 0.25rem 0.25rem; }

/* ---------- Privacy page ---------- */

.doc-page { padding: clamp(2.5rem, 6vw, 4.5rem) 0; }
.doc-page h1 { font-size: clamp(2rem, 4vw, 2.75rem); color: var(--navy); max-width: none; margin-bottom: 1rem; }
.doc-page h2 { font-size: 1.3rem; color: var(--navy); margin: 2.25rem 0 0.75rem; }
.doc-page p, .doc-page li { max-width: 70ch; }
.doc-page p + p { margin-top: 0.85rem; }
.doc-page ul { list-style: disc; padding-left: 1.25rem; display: grid; gap: 0.4rem; margin-top: 0.5rem; }
.draft-banner {
  margin-bottom: 2rem;
  padding: 0.9rem 1.1rem;
  border: 1px solid #fde68a;
  background: #fffbeb;
  color: #92400e;
  border-radius: var(--radius-small);
  font-weight: 600;
}
.back-link { display: inline-block; margin-bottom: 1.5rem; }

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