/* unmob.net: Gyozo Ballai, IT administration */

@font-face { font-family: "Public Sans"; src: url("../fonts/public-sans-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Public Sans"; src: url("../fonts/public-sans-latin-400-italic.woff2") format("woff2"); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: "Public Sans"; src: url("../fonts/public-sans-latin-500-normal.woff2") format("woff2"); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: "Public Sans"; src: url("../fonts/public-sans-latin-600-normal.woff2") format("woff2"); font-weight: 600; font-style: normal; font-display: swap; }
@font-face { font-family: "Public Sans"; src: url("../fonts/public-sans-latin-700-normal.woff2") format("woff2"); font-weight: 700; font-style: normal; font-display: swap; }

:root {
  /* Light theme (default) */
  color-scheme: light;
  --paper: #f5f7f9;
  --tint: #ecf0f4;
  --surface: #ffffff;
  --ink: #15212f;
  --ink-2: #22324a;
  --muted: #546375;
  --line: #d9e0e8;
  --line-soft: #ecf0f4;
  --faint: #a3afbc;
  --teal: #0f7461;          /* 4.5:1 or better on every light background */
  --teal-bright: #3cc9ad;
  --teal-soft: #e1f1ed;
  --brand: #127e68;
  --high: #b4372f;
  --med: #8f5d0e;
  --low: #2a7148;
  --on-risk: #ffffff;
  --btn-bg: #15212f;
  --btn-bg-hover: #22324a;
  --btn-fg: #ffffff;
  --on-bright: #15212f;
  --deep: #15212f;          /* contact section, footer, image backdrops */
  --deep-line: #22324a;
  --header-bg: rgba(245, 247, 249, 0.92);
  --shadow: 0 30px 60px -32px rgba(21, 33, 47, 0.35);
  --field-bg: #ffffff;
  --field-border: #c9d3dd;
  --field-fg: #15212f;
  /* Contact section: light in the light theme, dark in the dark theme */
  --contact-bg: #ecf0f4;
  --contact-line: #d9e0e8;
  --contact-fg: #22324a;
  --contact-heading: #15212f;
  --contact-muted: #546375;
  --contact-link: #0f7461;
  --contact-ok: #0f7461;
  --contact-error: #b4372f;
  --submit-bg: #15212f;
  --submit-hover: #22324a;
  --submit-fg: #ffffff;

  --step--1: 0.875rem;
  --step-0: 1.0625rem;
  --step-1: 1.25rem;
  --step-2: 1.625rem;
  --step-3: clamp(1.875rem, 1.4rem + 1.6vw, 2.5rem);
  --step-4: clamp(2.5rem, 1.6rem + 3.6vw, 4.25rem);

  --wrap: 72rem;
  --gutter: clamp(1.25rem, 4vw, 2.5rem);
  --section: clamp(4rem, 8vw, 7rem);
}

/* Dark theme: when the visitor picks it, or when the system asks for it and the visitor has not picked light */
:root[data-theme="dark"] {
  color-scheme: dark;
  --paper: #0f1720;
  --tint: #131d28;
  --surface: #18232f;
  --ink: #e6ecf2;
  --ink-2: #c8d3de;
  --muted: #9aa9b8;
  --line: #2a3747;
  --line-soft: #223040;
  --faint: #5b6b7c;
  --teal: #3cc9ad;
  --teal-bright: #3cc9ad;
  --teal-soft: #173a35;
  --high: #f07468;
  --med: #e3a44a;
  --low: #5fc98c;
  --on-risk: #0f1720;
  --btn-bg: #e6ecf2;
  --btn-bg-hover: #ffffff;
  --btn-fg: #0f1720;
  --deep: #0a1118;
  --deep-line: #1f2b38;
  --header-bg: rgba(15, 23, 32, 0.9);
  --shadow: 0 30px 60px -32px rgba(0, 0, 0, 0.8);
  --field-bg: #18232f;
  --field-border: #33465a;
  --field-fg: #e6ecf2;
  --contact-bg: #0a1118;
  --contact-line: #1f2b38;
  --contact-fg: #c3cdd8;
  --contact-heading: #ffffff;
  --contact-muted: #9fb0c1;
  --contact-link: #3cc9ad;
  --contact-ok: #3cc9ad;
  --contact-error: #ffb4ab;
  --submit-bg: #3cc9ad;
  --submit-hover: #5ad6bd;
  --submit-fg: #0f1720;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --paper: #0f1720;
    --tint: #131d28;
    --surface: #18232f;
    --ink: #e6ecf2;
    --ink-2: #c8d3de;
    --muted: #9aa9b8;
    --line: #2a3747;
    --line-soft: #223040;
    --faint: #5b6b7c;
    --teal: #3cc9ad;
    --teal-bright: #3cc9ad;
    --teal-soft: #173a35;
    --high: #f07468;
    --med: #e3a44a;
    --low: #5fc98c;
    --on-risk: #0f1720;
    --btn-bg: #e6ecf2;
    --btn-bg-hover: #ffffff;
    --btn-fg: #0f1720;
    --deep: #0a1118;
    --deep-line: #1f2b38;
    --header-bg: rgba(15, 23, 32, 0.9);
    --shadow: 0 30px 60px -32px rgba(0, 0, 0, 0.8);
    --field-bg: #18232f;
    --field-border: #33465a;
    --field-fg: #e6ecf2;
    --contact-bg: #0a1118;
    --contact-line: #1f2b38;
    --contact-fg: #c3cdd8;
    --contact-heading: #ffffff;
    --contact-muted: #9fb0c1;
    --contact-link: #3cc9ad;
    --contact-ok: #3cc9ad;
    --contact-error: #ffb4ab;
    --submit-bg: #3cc9ad;
    --submit-hover: #5ad6bd;
    --submit-fg: #0f1720;
  }
}

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  font-family: "Public Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: var(--step-0);
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
  font-kerning: normal;
  text-rendering: optimizeLegibility;
}

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

h1, h2, h3 { margin: 0; line-height: 1.15; font-weight: 700; letter-spacing: -0.015em; }
h1 { font-size: var(--step-4); line-height: 1.03; letter-spacing: -0.03em; }
h2 { font-size: var(--step-3); letter-spacing: -0.02em; }
h3 { font-size: var(--step-1); font-weight: 600; }
p { margin: 0; }

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

:focus-visible { outline: 3px solid var(--teal); outline-offset: 3px; border-radius: 4px; }

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

.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;
}

.skip {
  position: absolute; left: 1rem; top: -4rem; z-index: 20;
  background: var(--btn-bg); color: var(--btn-fg); padding: 0.6rem 1rem; border-radius: 6px;
}
.skip:focus { top: 1rem; }

/* Header */

.site-header {
  position: sticky; top: 0; z-index: 10;
  background: var(--header-bg);
  backdrop-filter: saturate(1.4) blur(8px);
  border-bottom: 1px solid var(--line);
}
.header-row { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; min-height: 4.25rem; }

.brand { display: flex; align-items: center; gap: 0.65rem; color: var(--ink); text-decoration: none; }
.brand-mark { width: 1.9rem; height: 1.9rem; flex: none; }
.brand-mark rect { fill: var(--brand); }
.brand-mark path { fill: none; stroke: #fff; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.brand-name { font-weight: 700; font-size: 1.0625rem; letter-spacing: -0.01em; }
.brand-role { color: var(--muted); font-size: var(--step--1); padding-left: 0.65rem; border-left: 1px solid var(--line); }

.site-nav { display: flex; align-items: center; gap: 1.6rem; font-size: 0.9375rem; }
.site-nav a { color: var(--ink); text-decoration: none; }
.site-nav a:hover { color: var(--teal); }
.site-nav .nav-cta {
  background: var(--btn-bg); color: var(--btn-fg); padding: 0.5rem 0.95rem; border-radius: 8px; font-weight: 600;
}
.site-nav .nav-cta:hover { background: var(--btn-bg-hover); color: var(--btn-fg); }

@media (max-width: 60rem) {
  .site-nav a:not(.nav-cta) { display: none; }
}
@media (max-width: 30rem) {
  .brand-role { display: none; }
}

/* Buttons */

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  font: inherit; font-weight: 600; font-size: 1rem;
  padding: 0.85rem 1.35rem; border-radius: 9px; text-decoration: none;
  border: 1.5px solid transparent; cursor: pointer;
}
.btn-primary { background: var(--btn-bg); color: var(--btn-fg); }
.btn-primary:hover { background: var(--btn-bg-hover); }
.btn-secondary { border-color: var(--ink); color: var(--ink); background: transparent; }
.btn-secondary:hover { background: var(--surface); }
.btn-light { background: var(--teal-bright); color: var(--on-bright); }
.btn-light:hover { background: #5ad6bd; }
.btn[disabled] { opacity: 0.6; cursor: progress; }

/* Hero */

.hero { padding: clamp(3rem, 7vw, 6rem) 0 clamp(1rem, 3vw, 2rem); }
.hero-grid {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  gap: clamp(2.5rem, 5vw, 4.5rem); align-items: center;
}
.hero-copy h1 { max-width: 13ch; }
.lede { margin-top: 1.5rem; font-size: var(--step-1); line-height: 1.55; color: var(--ink-2); max-width: 34rem; }
.actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 2rem; }
.hero-note { margin-top: 1.5rem; color: var(--muted); font-size: 0.9375rem; max-width: 30rem; }

/* The report: the one elevated object on the page */

.report {
  margin: 0;
  background: var(--surface);
  border: 1px solid var(--line);
  border-top: 6px solid var(--teal);
  border-radius: 14px;
  padding: 1.5rem 1.5rem 0.75rem;
  box-shadow: var(--shadow);
}
.report-title { font-weight: 700; font-size: var(--step-1); letter-spacing: -0.01em; }
.report-sub { color: var(--muted); font-size: var(--step--1); margin-top: 0.15rem; }

.report-counts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.6rem; margin: 1.25rem 0 0.5rem; }
.count {
  display: flex; flex-direction: row-reverse; align-items: baseline; justify-content: flex-end; gap: 0.5rem;
  background: var(--paper); border-radius: 10px; padding: 0.6rem 0.8rem;
}
.count dd { margin: 0; font-size: var(--step-2); font-weight: 700; line-height: 1; }
.count dt { font-size: var(--step--1); color: var(--muted); }
.count-high dd { color: var(--high); }
.count-med dd { color: var(--med); }
.count-low dd { color: var(--low); }

.findings { width: 100%; border-collapse: collapse; font-size: 0.875rem; line-height: 1.35; }
.findings th {
  text-align: left; font-weight: 600; color: var(--muted); font-size: 0.8125rem;
  padding: 0.75rem 0.5rem 0.5rem 0; border-bottom: 1px solid var(--line);
}
.findings td { padding: 0.6rem 0.5rem 0.6rem 0; border-bottom: 1px solid var(--line-soft); vertical-align: middle; }
.findings tbody tr:last-child td { border-bottom: 0; }
.findings td:first-child { font-weight: 500; }
.findings td:last-child { color: var(--muted); }

.risk {
  display: inline-block; min-width: 4.4rem; text-align: center;
  font-size: 0.75rem; font-weight: 700; color: var(--on-risk);
  padding: 0.2rem 0.55rem; border-radius: 999px;
}
.risk-high { background: var(--high); }
.risk-med { background: var(--med); }
.risk-low { background: var(--low); }

/* One orchestrated moment: the findings arrive one by one, worst first */
@media (prefers-reduced-motion: no-preference) {
  .findings tbody tr { opacity: 0; transform: translateY(6px); animation: finding-in 0.45s ease-out forwards; }
  .findings tbody tr:nth-child(1) { animation-delay: 0.35s; }
  .findings tbody tr:nth-child(2) { animation-delay: 0.5s; }
  .findings tbody tr:nth-child(3) { animation-delay: 0.65s; }
  .findings tbody tr:nth-child(4) { animation-delay: 0.8s; }
  .findings tbody tr:nth-child(5) { animation-delay: 0.95s; }
  .findings tbody tr:nth-child(6) { animation-delay: 1.1s; }
  .findings tbody tr:nth-child(7) { animation-delay: 1.25s; }
}
@keyframes finding-in { to { opacity: 1; transform: none; } }

@media (max-width: 56rem) {
  .hero-grid { grid-template-columns: 1fr; }
}
@media (max-width: 34rem) {
  .report { padding: 1.1rem 1rem 0.5rem; }
  .findings th:last-child, .findings td:last-child { display: none; }
  .count { flex-direction: column-reverse; gap: 0.15rem; }
}

/* Sections */

.section { padding: var(--section) 0; }
.section-tint { background: var(--tint); }
.section-head { max-width: 40rem; margin-bottom: clamp(2rem, 4vw, 3rem); }
.section-head p { margin-top: 0.75rem; color: var(--muted); font-size: var(--step-1); line-height: 1.5; }

/* Services */

.services {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: clamp(2rem, 5vw, 4rem);
}
.services li { border-top: 1px solid var(--line); padding: 1.4rem 0 1.6rem; }
.services p { margin-top: 0.4rem; color: var(--muted); max-width: 34rem; }
.services .services-wide { grid-column: 1 / -1; border-top: 2px solid var(--ink); }
.services .services-wide p { max-width: 44rem; }

/* Tools: plain reference list, quieter than the services above */
.toolbox { margin-top: clamp(2.5rem, 5vw, 3.5rem); }
.toolbox h3 { font-size: var(--step-1); }
.toolbox dl {
  margin: 1rem 0 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: clamp(2rem, 5vw, 4rem);
}
.toolbox dl > div { display: grid; grid-template-columns: 11rem 1fr; gap: 1rem; padding: 0.7rem 0; border-top: 1px solid var(--line); font-size: var(--step--1); }
.toolbox dt { font-weight: 600; }
.toolbox dd { margin: 0; color: var(--muted); }

@media (max-width: 44rem) {
  .services { grid-template-columns: 1fr; }
  .toolbox dl { grid-template-columns: 1fr; }
  .toolbox dl > div { grid-template-columns: 1fr; gap: 0.15rem; }
}

/* Prices */

.price-block + .price-block { margin-top: clamp(2.5rem, 5vw, 3.5rem); }
.price-block h3 { font-size: var(--step-2); font-weight: 700; letter-spacing: -0.02em; }
.price-intro { margin-top: 0.4rem; color: var(--muted); }

.table-scroll { margin-top: 1.25rem; overflow-x: auto; border-radius: 12px; border: 1px solid var(--line); background: var(--surface); }
.prices { width: 100%; min-width: 36rem; border-collapse: collapse; font-size: 0.9375rem; }
.prices th, .prices td { padding: 0.85rem 1rem; border-bottom: 1px solid var(--line-soft); }
.prices tbody tr:last-child th, .prices tbody tr:last-child td { border-bottom: 0; }
.prices thead th {
  text-align: center; vertical-align: bottom; font-weight: 600; color: var(--muted); font-size: 0.9375rem;
  border-bottom: 1px solid var(--line); padding-top: 1.1rem; width: 19%;
}
.prices thead th:first-child { width: auto; }
.prices .amount { display: block; color: var(--ink); font-size: var(--step-2); font-weight: 700; letter-spacing: -0.02em; margin-top: 0.15rem; }
.prices tbody th { text-align: left; font-weight: 500; }
.prices td { text-align: center; color: var(--ink-2); white-space: nowrap; }
.prices .yes, .prices .no { font-size: 0; }
.prices .yes::before { content: "\2713" / ""; font-size: 1.15rem; font-weight: 700; color: var(--teal); }
.prices .no::before { content: "\2013" / ""; font-size: 1rem; color: var(--faint); }

.addon { margin-top: 0.8rem; color: var(--muted); font-size: 0.9375rem; }

.other-prices {
  margin: clamp(2.5rem, 5vw, 3.5rem) 0 0;
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.5rem clamp(1.5rem, 4vw, 3rem);
}
.other-prices > div { border-top: 1px solid var(--line); padding-top: 1.1rem; }
.other-prices dt { font-weight: 700; font-size: var(--step-1); }
.other-prices dd { margin: 0.4rem 0 0; color: var(--muted); }
.other-prices .from { display: block; color: var(--ink); font-weight: 700; font-size: var(--step-2); letter-spacing: -0.02em; margin-bottom: 0.35rem; }
.upwork-note { margin-top: 2rem; color: var(--muted); }

@media (max-width: 48rem) {
  .other-prices { grid-template-columns: 1fr; }
}

/* Steps: a real sequence, so it is numbered */

.steps {
  list-style: none; margin: 0; padding: 0; counter-reset: step;
  display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 1.75rem;
}
.steps li { counter-increment: step; position: relative; padding-top: 3.4rem; }
.steps li::before {
  content: counter(step);
  position: absolute; top: 0; left: 0;
  width: 2.4rem; height: 2.4rem; border-radius: 50%;
  display: grid; place-items: center;
  border: 2px solid var(--teal); color: var(--teal); font-weight: 700;
  background: var(--paper);
}
.steps li::after {
  content: ""; position: absolute; top: 1.2rem; left: 2.9rem; right: -1.3rem; height: 2px; background: var(--line);
}
.steps li:last-child::after { display: none; }
.steps h3 { font-size: 1.0625rem; }
.steps p { margin-top: 0.4rem; color: var(--muted); font-size: 0.9375rem; }

@media (max-width: 60rem) {
  .steps { grid-template-columns: 1fr; gap: 1.5rem; }
  .steps li { padding: 0.2rem 0 0 3.6rem; }
  .steps li::after { top: 2.8rem; bottom: -1.3rem; left: 1.15rem; right: auto; width: 2px; height: auto; }
}

/* Lead-in lists: a bold first phrase, then the detail (problems, agencies, results) */

.lead-list { list-style: none; margin: 0; padding: 0; }
.lead-list li { padding: 0.9rem 0; border-bottom: 1px solid var(--line); color: var(--muted); }
.lead-list strong { color: var(--ink); font-weight: 600; }
.lead-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: clamp(2rem, 5vw, 4rem); }
.lead-grid li { border-bottom: 0; border-top: 1px solid var(--line); padding: 1.1rem 0 1.2rem; max-width: 34rem; }

/* Agencies: two lists, then the partner price table */

.section-head p + p { margin-top: 0.9rem; font-size: var(--step-0); }
.partner { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2rem clamp(2rem, 5vw, 4rem); }
.partner h3 { padding-bottom: 0.9rem; border-bottom: 2px solid var(--ink); }
.partner-prices { margin-top: clamp(2.5rem, 5vw, 3.5rem); }
.prices .partner-amount { display: block; color: var(--ink); font-size: var(--step-1); font-weight: 700; letter-spacing: -0.01em; }
.prices .list-amount { display: block; margin-top: 0.1rem; color: var(--muted); font-size: var(--step--1); }
.partner-close { margin-top: clamp(2rem, 4vw, 2.75rem); max-width: 40rem; font-size: var(--step-1); line-height: 1.5; color: var(--ink-2); }
.partner-actions { margin-top: 1.25rem; }

@media (max-width: 44rem) {
  .partner, .lead-grid { grid-template-columns: 1fr; }
}
@media (max-width: 40rem) {
  .prices .partner-amount { font-size: 1rem; }
  .prices .list-amount { font-size: 0.6875rem; white-space: nowrap; }
}

/* Work */

.work { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(2rem, 4vw, 3rem) clamp(1.5rem, 4vw, 2.5rem); }
.work figure { margin: 0; }
.work img { border-radius: 12px; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; background: var(--deep); }
.work figcaption { margin-top: 1rem; }
.work figcaption p { margin-top: 0.35rem; color: var(--muted); max-width: 34rem; }

@media (max-width: 44rem) {
  .work { grid-template-columns: 1fr; }
}

/* About */

.about { display: grid; grid-template-columns: minmax(0, 8rem) minmax(0, 1fr); gap: clamp(2rem, 5vw, 4rem); align-items: start; }
.portrait { border-radius: 50%; width: 100%; max-width: 8rem; aspect-ratio: 1; object-fit: cover; }
.about-copy { max-width: 40rem; }
.about-copy p { margin-top: 1rem; }
.about-copy h2 + p { margin-top: 1.25rem; }
.credentials { margin: 1.5rem 0 0; padding: 0; list-style: none; border-top: 1px solid var(--line); }
.credentials li { padding: 0.65rem 0; border-bottom: 1px solid var(--line); color: var(--ink-2); }
.profile-links { display: flex; gap: 1.5rem; margin-top: 1.5rem; font-weight: 600; }

@media (max-width: 44rem) {
  .about { grid-template-columns: 1fr; }
  .portrait { max-width: 6.5rem; }
}

/* Contact */

.section-ink { background: var(--contact-bg); color: var(--contact-fg); border-top: 1px solid var(--contact-line); }
.section-ink a { color: var(--contact-link); }
.section-ink :focus-visible { outline-color: var(--contact-link); }

.contact { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: clamp(2rem, 6vw, 5rem); }
.contact-copy h2 { color: var(--contact-heading); }
.contact-copy p { margin-top: 1rem; color: var(--contact-fg); max-width: 26rem; }
.contact-copy .privacy { margin-top: 1.75rem; font-size: 0.9375rem; color: var(--contact-muted); }

.contact-form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.1rem 1.25rem; }
.field { display: flex; flex-direction: column; gap: 0.4rem; }
.field-wide { grid-column: 1 / -1; }
.field label { font-weight: 600; font-size: 0.9375rem; color: var(--contact-heading); }
.optional { font-weight: 400; color: var(--contact-muted); }
.field input, .field select, .field textarea {
  font: inherit; font-size: 1rem; color: var(--field-fg);
  background: var(--field-bg); border: 1.5px solid var(--field-border); border-radius: 8px;
  padding: 0.7rem 0.8rem; width: 100%;
}
.field input, .field select { height: 3.1rem; }
.field textarea { resize: vertical; min-height: 8rem; }
.field input:focus-visible, .field select:focus-visible, .field textarea:focus-visible { outline-offset: 1px; }
.field [aria-invalid="true"] { border-color: var(--contact-error); box-shadow: 0 0 0 1px var(--contact-error); }

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

.form-foot { display: flex; align-items: center; flex-wrap: wrap; gap: 1rem 1.5rem; margin-top: 0.25rem; }
.form-status { font-size: 0.9375rem; }
.form-status.is-ok { color: var(--contact-ok); font-weight: 600; }
.form-status.is-error { color: var(--contact-error); font-weight: 600; }
.contact-form .btn-light { background: var(--submit-bg); color: var(--submit-fg); }
.contact-form .btn-light:hover { background: var(--submit-hover); }

@media (max-width: 52rem) {
  .contact { grid-template-columns: 1fr; }
}
@media (max-width: 34rem) {
  .contact-form { grid-template-columns: 1fr; }
}

/* Footer */

.site-footer { background: var(--deep); color: #9fb0c1; border-top: 1px solid var(--deep-line); font-size: 0.9375rem; }
.footer-row { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.75rem 2rem; padding-top: 1.75rem; padding-bottom: 1.75rem; }
.footer-links { display: flex; gap: 1.25rem; }
.site-footer a { color: #d4dde6; }

/* Narrow screens: fit all three packages without sideways scrolling */
@media (max-width: 40rem) {
  .prices { min-width: 0; font-size: 0.8125rem; table-layout: fixed; }
  .prices th, .prices td { padding: 0.7rem 0.4rem; }
  .prices tbody th, .prices thead th:first-child { padding-left: 0.75rem; width: 40%; }
  .prices td { white-space: normal; }
  .prices thead th { font-size: 0.75rem; }
  .prices .amount { font-size: 1.125rem; }
}
@media (max-width: 40rem) {
  .prices tr > :last-child { padding-right: 0.75rem; }
}

[hidden] { display: none !important; }
.turnstile { min-height: 65px; }

/* Theme switch: Auto (follows the system), Light, Dark. Shown only when JavaScript runs. */
.header-tools { display: flex; align-items: center; gap: 0.75rem; }
.theme-toggle {
  display: inline-grid; place-items: center; width: 2.4rem; height: 2.4rem; flex: none;
  border: 1px solid var(--line); border-radius: 8px; background: transparent; color: var(--ink); cursor: pointer;
}
.theme-toggle:hover { background: var(--surface); }
.theme-toggle svg { width: 1.2rem; height: 1.2rem; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.theme-toggle .icon { display: none; }
.theme-toggle[data-mode="auto"] .icon-auto,
.theme-toggle[data-mode="light"] .icon-light,
.theme-toggle[data-mode="dark"] .icon-dark { display: block; }

.brand-name, .site-nav .nav-cta { white-space: nowrap; }
@media (max-width: 30rem) {
  .header-row { gap: 0.75rem; }
  .header-tools { gap: 0.5rem; }
  .site-nav .nav-cta { font-size: 0.875rem; padding: 0.45rem 0.7rem; }
  .theme-toggle { width: 2.2rem; height: 2.2rem; }
}
@media (max-width: 21rem) {
  /* Name stays readable for screen readers, hidden visually on the narrowest phones */
  .brand-name { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
}
