/*
 * The public website's stylesheet (T220), in the app's new look since T268: the same tokens as src/app.css (deep green on a
 * warm off-white, white cards with soft corners and thin borders, pill buttons, the same font stack), light and dark; a test
 * keeps the shared tokens equal to the app's. Visual design is
 * the director's (AGENTS.md > Ownership): change tokens and rules freely; the screenshots are the app's own and the phone
 * frame is a placeholder. Keep: tap targets at least 44 px, visible focus, contrast 4.5:1, no horizontal scroll at 320 px,
 * nothing that moves by itself.
 */
:root {
  color-scheme: light dark;
  --bg: #f3f1ea;
  --surface: #ffffff;
  --tint: #eceae3;
  --text: #1b1f1c;
  --muted: #5a605c;
  --border: #e2dfd6;
  --border-strong: #838984;
  --accent: #235c45;
  --on-accent: #ffffff;
  --accent-soft: #e2ede6;
  --focus: #235c45;
  --max: 1080px;
  --radius: 18px;
  --radius-sm: 12px;
}
/* Dark: the device's setting unless the visitor chose light; or the visitor's own choice (data-theme, set by site.js). */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #121513;
    --surface: #1b1f1c;
    --tint: #161917;
    --text: #e8ebe8;
    --muted: #a6ada8;
    --border: #2f3531;
    --border-strong: #7f8882;
    --accent: #7fc9a2;
    --on-accent: #0b2a1c;
    --accent-soft: #1d3a2c;
    --focus: #9adbb7;
  }
}
:root[data-theme="dark"] {
  --bg: #121513;
  --surface: #1b1f1c;
  --tint: #161917;
  --text: #e8ebe8;
  --muted: #a6ada8;
  --border: #2f3531;
  --border-strong: #7f8882;
  --accent: #7fc9a2;
  --on-accent: #0b2a1c;
  --accent-soft: #1d3a2c;
  --focus: #9adbb7;
}
:root[data-theme="light"] { color-scheme: light; }
:root[data-theme="dark"] { color-scheme: dark; }
.sr { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
/* The theme button: a round icon button, moon in the light theme, sun in the dark one. */
.theme-toggle { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; padding: 0; border: 1px solid var(--border); border-radius: 50%; background: transparent; color: var(--text); cursor: pointer; flex: none; }
.theme-toggle[hidden] { display: none; }
.theme-toggle:hover { background: var(--accent-soft); }
.theme-toggle:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
.theme-toggle .icon-sun { display: none; }
:root[data-theme="dark"] .theme-toggle .icon-moon { display: none; }
:root[data-theme="dark"] .theme-toggle .icon-sun { display: block; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .theme-toggle .icon-moon { display: none; }
  :root:not([data-theme="light"]) .theme-toggle .icon-sun { display: block; }
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-padding-top: 72px; scroll-padding-bottom: 72px; }
body { margin: 0; background: var(--bg); color: var(--text); font: 1rem/1.6 "Inter", "Segoe UI Variable Text", "Segoe UI", system-ui, -apple-system, Roboto, "Helvetica Neue", Arial, sans-serif; letter-spacing: -0.005em; overflow-wrap: anywhere; }
h1, h2, h3 { line-height: 1.2; margin: 0 0 12px; font-weight: 700; letter-spacing: -0.015em; }
h1 { font-size: clamp(1.9rem, 6vw, 3rem); }
h2 { font-size: clamp(1.5rem, 4.5vw, 2.1rem); }
h3 { font-size: 1.15rem; }
p { margin: 0 0 14px; }
a { color: var(--accent); text-underline-offset: 3px; }
a:focus-visible, summary:focus-visible, .btn:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 16px; }
.skip { position: absolute; left: 8px; top: -60px; background: var(--surface); padding: 12px 16px; z-index: 10; }
.skip:focus { top: 8px; }
.lead { font-size: 1.15rem; color: var(--muted); max-width: 60ch; }
.note { color: var(--muted); }

.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 8px 20px; border-radius: 999px; font-weight: 600; text-decoration: none; border: 2px solid var(--accent); }
.btn--primary { background: var(--accent); color: var(--on-accent); }
.btn:not(.btn--primary) { background: var(--surface); color: var(--accent); border-width: 1px; border-color: var(--border-strong); }
.link { display: inline-flex; align-items: center; min-height: 44px; }
.link--quiet { color: var(--text); }
a[aria-current="page"] { font-weight: 700; }
.actions { display: flex; flex-wrap: wrap; gap: 8px 20px; align-items: center; margin-top: 20px; }

.site-header { position: sticky; top: 0; z-index: 5; background: var(--bg); border-bottom: 1px solid var(--border); }
.site-header__row { display: flex; flex-wrap: wrap; align-items: center; gap: 0 16px; min-height: 64px; position: relative; }
.brand { font-weight: 800; color: var(--accent); font-size: 1.3rem; text-decoration: none; margin: 0 auto 0 0; white-space: nowrap; flex: none; }
.site-nav summary { cursor: pointer; min-height: 44px; display: flex; align-items: center; list-style: none; font-weight: 600; }
.site-nav summary::-webkit-details-marker { display: none; }
.site-nav ul { list-style: none; margin: 0; padding: 8px 0; position: absolute; left: 0; right: 0; top: 100%; background: var(--surface); border-bottom: 1px solid var(--border); }
.site-nav li a { display: flex; align-items: center; min-height: 44px; padding: 0 16px; }
.site-header__actions { display: flex; align-items: center; gap: 12px; flex: none; }
.lang-switch { display: inline-flex; align-items: center; min-height: 44px; padding: 0 4px; color: var(--text); font-weight: 600; text-decoration: none; }
.lang-switch:hover { text-decoration: underline; }
.lang-switch:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
.btn--header { min-height: 44px; }
@media (max-width: 640px) {
  .site-header__actions .btn--header { display: none; }
}
@media (min-width: 1000px) {
  /* The menu gets a row of its own under the name and the buttons, so neither language's labels squeeze the name. */
  .site-nav { flex: 1 0 100%; margin: 0 -9px; }
  .site-nav ul { position: static; display: flex; flex-wrap: wrap; gap: 2px; background: none; border: 0; padding: 0 0 4px; }
  .site-nav summary { display: none; }
  .site-nav li a { padding: 0 9px; white-space: nowrap; font-size: 0.95rem; }
}

.hero { padding: 40px 0 24px; }
.hero__grid { display: grid; gap: 32px; align-items: center; }
.band { padding: 40px 0; }
.band--tint { background: var(--tint); }
.band--head { padding-bottom: 0; }
.cards, .tiles, .plain, .checks, .steps { margin: 0 0 16px; }
.cards { list-style: none; padding: 0; display: grid; gap: 16px; }
.cards--steps { counter-reset: step; }
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 18px 20px; }
.card h3 { margin-bottom: 6px; }
.card p { margin: 0; }
.cards--steps .card { counter-increment: step; }
.cards--steps .card h3::before { content: counter(step) ". "; color: var(--accent); }
.plain { list-style: none; padding: 0; }
.plain li { margin-bottom: 14px; }
.checks { padding: 0; list-style: none; }
.checks li { padding-left: 28px; position: relative; margin-bottom: 8px; }
.checks li::before { content: "\2713"; position: absolute; left: 0; color: var(--accent); font-weight: 700; }
.steps { padding-left: 24px; }
.steps li { margin-bottom: 8px; }
.split { display: grid; gap: 24px; align-items: center; }
.story { list-style: none; padding: 0; display: grid; gap: 40px; }
.story__moment { display: grid; gap: 20px; align-items: center; }
.clock { display: inline-block; background: var(--accent-soft); color: var(--text); font-weight: 700; padding: 2px 12px; border-radius: 999px; }
.tiles { list-style: none; padding: 0; display: grid; gap: 28px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.tile { text-align: center; }
.split--top { align-items: start; }
.request-form label { display: block; font-weight: 600; margin-bottom: 4px; }
.request-form .choice { display: flex; align-items: center; gap: 8px; min-height: 44px; font-weight: 400; }
.request-form fieldset { border: 1px solid var(--border); border-radius: var(--radius-sm); margin: 0 0 14px; padding: 8px 16px; }
.request-form input[type="text"], .request-form input[type="email"], .request-form input[type="tel"], .request-form select, .request-form textarea { width: 100%; min-height: 44px; padding: 8px 12px; border: 1px solid var(--border-strong); border-radius: var(--radius-sm); background: var(--surface); color: var(--text); font: inherit; }
.request-form input[type="radio"] { width: 22px; height: 22px; accent-color: var(--accent); }
.request-form button.btn { cursor: pointer; font: inherit; font-weight: 600; }
/* The hidden field for scripts: out of sight and out of the way, never display:none (some scripts skip those). */
.request-form__trap { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
/* The preferred time of day only matters for a demo; without :has support the field simply stays visible. */
.request-form:has(input[value="contact"]:checked) .request-form__time { display: none; }
.facts dt { font-weight: 700; margin-top: 12px; }
.facts dd { margin: 0; }
.faq details { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 0 20px; margin-bottom: 10px; }
.faq summary { cursor: pointer; min-height: 44px; display: flex; align-items: center; font-weight: 600; }

/* A phone frame around an app screenshot: the top of the screen, cropped, with a placeholder bezel. */
.phone { margin: 0 auto; width: min(260px, 70vw); border: 8px solid #1b1f1c; border-radius: 32px; overflow: hidden; background: var(--surface); aspect-ratio: 9 / 15; }
.phone img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: top; }
.phones { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }
.phones .phone { margin: 0; width: min(220px, 60vw); }
/* A computer-wide screenshot (the manager's portfolio, T417) in a plain window frame, as wide as the text column. */
.screen { margin: 0 0 24px; max-width: 900px; border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; background: var(--surface); box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12); }
.screen img { display: block; width: 100%; height: auto; }

.site-footer { background: var(--tint); border-top: 1px solid var(--border); padding: 32px 0 96px; }
.site-footer__grid { display: grid; gap: 24px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li a { display: inline-flex; align-items: center; min-height: 44px; }
.footer-title { font-weight: 700; }

@media (min-width: 720px) {
  .hero__grid, .split { grid-template-columns: 1fr 1fr; gap: 48px; }
  .story__moment { grid-template-columns: 1fr 1fr; gap: 48px; }
  .story__moment:nth-child(even) .phone { order: -1; }
  .cards { grid-template-columns: repeat(2, 1fr); }
  .cards--steps { grid-template-columns: repeat(3, 1fr); }
  .site-footer__grid { grid-template-columns: 2fr 1fr 2fr; }
}
