/* Fonts are self-hosted (SIL Open Font Licence, see fonts/): visitors' addresses are never sent to a font provider. */
@font-face { font-family: "Bricolage Grotesque"; font-style: normal; font-weight: 500 800; font-display: swap; src: url("fonts/bricolage-grotesque-variable.woff2") format("woff2"); }
@font-face { font-family: "Atkinson Hyperlegible"; font-style: normal; font-weight: 400; font-display: swap; src: url("fonts/atkinson-hyperlegible-400.woff2") format("woff2"); }
@font-face { font-family: "Atkinson Hyperlegible"; font-style: italic; font-weight: 400; font-display: swap; src: url("fonts/atkinson-hyperlegible-400-italic.woff2") format("woff2"); }
@font-face { font-family: "Atkinson Hyperlegible"; font-style: normal; font-weight: 700; font-display: swap; src: url("fonts/atkinson-hyperlegible-700.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Mono"; font-style: normal; font-weight: 500; font-display: swap; src: url("fonts/ibm-plex-mono-500.woff2") format("woff2"); }
/* Arabic letters only: Latin text on Arabic pages (the brand, codes, addresses) keeps the fonts above. */
@font-face { font-family: "Readex Pro"; font-style: normal; font-weight: 160 700; font-display: swap; src: url("fonts/readex-pro-arabic-variable.woff2") format("woff2");
  unicode-range: U+0600-06FF, U+0750-077F, U+0870-088E, U+0890-0891, U+0897-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC; }

/* Layout: white page, left-aligned column with the booking page in a phone beside the hero; blue carries the text, violet marks every action, and the three offers are blue, blue-to-violet and violet. The owner asked for a white background, so the page stays light. */
:root {
  color-scheme: light;
  --paper: #ffffff;
  --surface: #ffffff;
  --tint: #f3f4fc;
  --ink: #141d4a;
  --ink-soft: #4a5378;
  --blue: #2338a8;
  --blue-deep: #16236e;
  --violet: #6b3fd4;
  --violet-soft: #ece6fb;
  --rule: #d9dcef;
  --on-deep: #f3f1ff;
  --on-deep-soft: #dcd8fa;
  --display: "Bricolage Grotesque", "Segoe UI", system-ui, sans-serif;
  --body: "Atkinson Hyperlegible", "Segoe UI", system-ui, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;
  --radius: 14px;
  --radius-small: 8px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; background: var(--paper); color: var(--ink); font: 17px/1.6 var(--body); padding-inline: 20px; }
.wrap { max-width: 1120px; margin-inline: auto; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--violet); outline-offset: 3px; border-radius: 4px; }
h1, h2, h3 { font-family: var(--display); line-height: 1.08; text-wrap: balance; margin: 0; }
h2 { font-size: clamp(1.9rem, 4vw, 2.6rem); font-weight: 700; letter-spacing: -0.02em; }
h3 { font-size: 1.2rem; font-weight: 700; }
p { margin: 0; }
.lede { color: var(--ink-soft); max-width: 62ch; font-size: 1.08rem; }

/* Arabic: its own font, taller lines for its letter forms, and no negative letter spacing, which breaks joined letters. */
[lang="ar"] { --display: "Readex Pro", "Bricolage Grotesque", "Segoe UI", system-ui, sans-serif; --body: "Readex Pro", "Atkinson Hyperlegible", "Segoe UI", system-ui, sans-serif; font-family: var(--body); }
:lang(ar) :is(h1, h2, h3, .price b) { letter-spacing: 0; line-height: 1.35; }

/* Language choice: a drop-down in the header row, like the booking page's, each language named in itself with a
   decorative flag. It is a disclosure (<details>), so it works without JavaScript; site.js closes it on Escape or a click elsewhere. */
.language-menu { position: relative; }
.language-menu summary { list-style: none; display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding-inline: 12px; border: 1.5px solid var(--rule); border-radius: 999px; background: var(--surface); color: var(--ink); font-size: 0.92rem; font-weight: 700; cursor: pointer; }
.language-menu summary::-webkit-details-marker { display: none; }
.language-menu summary::after { content: ""; width: 7px; height: 7px; margin-inline-start: 2px; border: solid currentColor; border-width: 0 2px 2px 0; transform: translateY(-2px) rotate(45deg); }
.language-menu[open] summary::after { transform: translateY(2px) rotate(-135deg); }
.language-menu summary:hover { border-color: #9aa1c7; }
.language-menu ul { position: absolute; inset-inline-end: 0; top: calc(100% + 8px); z-index: 10; min-width: 180px; margin: 0; padding: 4px; list-style: none; background: var(--surface); border: 1px solid var(--rule); border-radius: var(--radius-small); box-shadow: 0 16px 40px -16px color-mix(in srgb, var(--blue-deep) 45%, transparent); }
.language-menu a { display: flex; align-items: center; gap: 10px; min-height: 40px; padding-inline: 12px; border-radius: 6px; color: var(--ink); font-weight: 700; text-decoration: none; }
.language-menu a:hover, .language-menu a[aria-current] { background: var(--violet-soft); }
.flag { flex: none; width: 21px; height: 14px; border-radius: 2px; box-shadow: 0 0 0 1px rgb(0 0 0 / 0.18); }
.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; }

/* Header: one row. The logo at the start, the menu centred in the space between (so a long menu never runs under the actions), and
   the language drop-down and the demo button at the end. Below 1140px the menu folds into a Menu disclosure that opens a
   full-width list under the header; on phones the language shows its flag only, and on narrow ones the logo becomes the app icon and Menu its icon. */
.top { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 5; background: color-mix(in srgb, var(--paper) 92%, transparent); backdrop-filter: blur(10px); border-bottom: 1px solid var(--rule); margin-inline: -20px; padding-inline: 20px; }
.top .wrap { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 20px; padding-block: 12px; }
.main-menu { justify-self: center; }
.brand { display: inline-flex; align-items: center; justify-self: start; text-decoration: none; }
/* The Appointsafe horizontal logo and app icon (brand kit: packages/brand). */
.brand img { display: block; width: auto; height: 39px; flex: none; }
.brand .brand-icon { display: none; height: 36px; }
.main-menu ul { margin: 0; padding: 0; list-style: none; }
.menu-inline { display: flex; gap: 6px; }
.menu-inline a { display: inline-flex; align-items: center; min-height: 40px; padding-inline: 12px; border-radius: 999px; text-decoration: none; color: var(--ink-soft); font-weight: 700; font-size: 0.95rem; white-space: nowrap; }
.menu-inline a:hover { color: var(--ink); background: var(--tint); }
.menu-fold { display: none; }
.menu-fold summary { list-style: none; display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding-inline: 12px; border: 1.5px solid var(--rule); border-radius: 999px; font-size: 0.92rem; font-weight: 700; cursor: pointer; }
.menu-fold summary::-webkit-details-marker { display: none; }
.menu-fold[open] summary { border-color: var(--violet); background: var(--violet-soft); }
.menu-icon { width: 18px; height: 14px; }
.menu-fold ul { position: absolute; inset-inline: 0; top: 100%; display: grid; padding: 8px 20px 16px; background: var(--paper); border-bottom: 1px solid var(--rule); box-shadow: 0 24px 40px -28px color-mix(in srgb, var(--blue-deep) 45%, transparent); }
.menu-fold a { display: flex; align-items: center; min-height: 52px; border-bottom: 1px solid var(--rule); color: var(--ink); font-family: var(--display); font-size: 1.15rem; font-weight: 700; text-decoration: none; }
.menu-fold li:last-child a { border-bottom: 0; }
.top-actions { grid-column: 3; justify-self: end; display: flex; align-items: center; gap: 10px; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px; padding-inline: 20px; border-radius: 999px; font-weight: 700; text-decoration: none; border: 2px solid var(--violet); cursor: pointer; font: inherit; font-weight: 700; }
.button.solid { background: var(--violet); color: #fff; }
.button.solid:hover { background: color-mix(in srgb, var(--violet) 85%, #000); }
.button.line { background: transparent; color: var(--ink); }
.button.line:hover { background: var(--violet-soft); }
.top .button { min-height: 40px; white-space: nowrap; }
@media (max-width: 1140px) {
  .top .wrap { display: flex; gap: 8px; }
  .main-menu { margin-inline-start: auto; }
  .menu-inline { display: none; }
  .menu-fold { display: block; }
  .top-actions { gap: 8px; }
  .brand + .top-actions { margin-inline-start: auto; }
}
@media (max-width: 720px) {
  .language-menu .lang-name { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .top .button { padding-inline: 14px; font-size: 0.9rem; }
}
@media (max-width: 620px) {
  .brand .brand-logo { display: none; }
  .brand .brand-icon { display: block; }
}
@media (max-width: 520px) {
  .menu-fold summary { padding-inline: 10px; }
  .menu-word { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .language-menu summary { padding-inline: 10px; }
}

/* Hero: the promise, one line of proof, and the booking page as applicants see it, in a phone drawn in CSS. */
.hero { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr); gap: 56px; align-items: center; padding-block: 64px 56px; }
.hero h1 { font-size: clamp(2.3rem, 5.2vw, 3.9rem); font-weight: 800; letter-spacing: -0.035em; margin-top: 14px; }
.hero h1 em { font-style: normal; color: var(--violet); }
.hero .lede { margin-top: 22px; }
.hero .actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.proof { display: flex; flex-wrap: wrap; gap: 8px 22px; margin: 26px 0 0; padding: 0; list-style: none; color: var(--ink-soft); font-size: 0.95rem; font-weight: 700; }
.proof li { display: inline-flex; align-items: center; gap: 8px; }
.proof li::before { content: ""; width: 12px; height: 7px; border-left: 2.5px solid var(--violet); border-bottom: 2.5px solid var(--violet); transform: translateY(-2px) rotate(-45deg); }
.hero-shot { margin: 0; display: grid; justify-items: center; gap: 20px; position: relative; }
/* A soft glow behind the phone, in the brand colours. */
.hero-shot::before { content: ""; position: absolute; inset: 6% -6% 18%; z-index: -1; border-radius: 50%; background: radial-gradient(closest-side, color-mix(in srgb, var(--violet) 22%, transparent), color-mix(in srgb, var(--blue) 10%, transparent) 60%, transparent); filter: blur(8px); }
.phone { width: min(300px, 76vw); padding: 30px 10px 12px; border-radius: 46px; background: #10173f; box-shadow: 0 40px 80px -42px color-mix(in srgb, var(--blue-deep) 85%, transparent), inset 0 0 0 1.5px rgb(255 255 255 / 0.12); position: relative; }
.phone::before { content: ""; position: absolute; top: 12px; left: 50%; width: 64px; height: 6px; margin-left: -32px; border-radius: 999px; background: rgb(255 255 255 / 0.18); }
.phone img { display: block; width: 100%; height: auto; border-radius: 34px; background: var(--tint); }
.hero-shot figcaption { display: grid; justify-items: center; gap: 8px; text-align: center; max-width: 34ch; color: var(--ink-soft); font-size: 0.88rem; }
.chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; margin: 0; padding: 0; list-style: none; }
.chips li { padding: 3px 12px; border: 1px solid var(--rule); border-radius: 999px; background: var(--surface); color: var(--ink); font-size: 0.88rem; font-weight: 700; }
@media (max-width: 880px) { .hero { grid-template-columns: 1fr; gap: 44px; padding-block: 40px 40px; } }

/* Facts: four stat tiles. */
.facts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.facts div { display: grid; gap: 6px; align-content: start; padding: 22px 22px 20px; border-radius: var(--radius); background: var(--tint); }
.facts b { font-family: var(--display); font-size: clamp(1.35rem, 2.2vw, 1.6rem); font-weight: 800; letter-spacing: -0.02em; color: var(--blue-deep); }
.facts span { color: var(--ink-soft); font-size: 0.92rem; }
@media (max-width: 820px) { .facts { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 400px) { .facts { grid-template-columns: 1fr; } }

section.block { padding-block: 88px 0; }
/* Section titles are centred, with their label and introduction at a readable width. */
.block header { display: grid; gap: 14px; margin-bottom: 40px; justify-items: center; text-align: center; }
.block header .lede { margin-inline: auto; }
.contact-intro { text-align: center; }
/* The free trial: a button shown above the offers title (after it in the reading order), and one line above the cards. */
.trial-cta { margin: 0 0 6px; order: -1; }
.trial-line { display: flex; justify-content: center; align-items: center; gap: 10px; margin: -12px 0 28px; font-weight: 700; color: var(--blue-deep); }
.trial-line::before { content: ""; width: 12px; height: 7px; border-left: 2.5px solid var(--violet); border-bottom: 2.5px solid var(--violet); transform: translateY(-2px) rotate(-45deg); }
@media (max-width: 600px) { .trial-cta { width: 100%; } .trial-cta .button { width: 100%; } }
.kicker { font-weight: 700; color: var(--violet); font-size: 0.95rem; }

/* Applicant journey: a real sequence, each step under its screen. */
.journey { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 28px; counter-reset: step; }
.journey li { counter-increment: step; display: grid; gap: 10px; align-content: start; }
.journey li::before { content: counter(step); font: 500 0.85rem var(--mono); color: var(--blue); border-top: 3px solid var(--blue); padding-top: 14px; margin-top: 8px; }
.journey li > .mini-phone { order: -1; }
.journey p { color: var(--ink-soft); }
@media (max-width: 880px) { .journey { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 480px) { .journey { grid-template-columns: 1fr; max-width: 320px; margin-inline: auto; } }

/* Device frames drawn in CSS around the product screenshots; the images keep their own proportions. */
.device { margin: 0; }
.device img, .mini-phone img { display: block; width: 100%; height: auto; background: var(--tint); }
.mini-phone { aspect-ratio: 10 / 16; padding: 7px; border-radius: 28px; background: #10173f; overflow: hidden; box-shadow: 0 24px 48px -34px color-mix(in srgb, var(--blue-deep) 80%, transparent); }
.mini-phone picture, .mini-phone img { height: 100%; }
.mini-phone img { object-fit: cover; object-position: top; border-radius: 21px; }
/* The verification step: an email and a six-digit code, drawn rather than captured. */
.code-screen { position: relative; isolation: isolate; display: grid; place-content: center; justify-items: center; gap: 14px; color: var(--ink); }
.code-screen::after { content: ""; position: absolute; inset: 7px; z-index: -1; border-radius: 21px; background: var(--paper); }
.code-screen > svg { width: 44px; height: 44px; color: var(--violet); }
.code-screen > p { font-weight: 700; font-size: 0.9rem; color: var(--ink-soft); }
.code-boxes { display: flex; gap: 5px; }
.code-boxes span { display: grid; place-items: center; width: 26px; height: 34px; border: 1.5px solid var(--rule); border-radius: 6px; font: 500 1rem var(--mono); color: var(--ink); }
.code-boxes span:nth-child(-n+4) { border-color: var(--violet); }
.tablet { padding: 12px; border-radius: 24px; background: #10173f; box-shadow: 0 34px 70px -44px color-mix(in srgb, var(--blue-deep) 85%, transparent); }
.tablet img { border-radius: 12px; }
.tv { position: relative; padding: 8px; border-radius: 12px; background: #0b1030; box-shadow: 0 34px 70px -44px color-mix(in srgb, var(--blue-deep) 85%, transparent); margin-bottom: 18px; }
.tv img { border-radius: 4px; }
.tv::after { content: ""; position: absolute; left: 50%; bottom: -18px; width: 28%; height: 10px; margin-left: -14%; border-radius: 0 0 8px 8px; background: #0b1030; }
.browser { overflow: hidden; border-radius: 12px; background: var(--surface); box-shadow: 0 34px 70px -40px rgb(0 0 0 / 0.6); }
.browser-bar { display: flex; gap: 6px; padding: 10px 14px; background: #e9ebf6; }
.browser-bar i { width: 10px; height: 10px; border-radius: 50%; background: #c3c7de; }

/* Cards: an icon, a title and two lines. */
.cards { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; align-content: start; }
.cards li { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 14px; align-items: start; padding: 16px 18px; border: 1px solid var(--rule); border-radius: var(--radius); background: var(--surface); }
.cards h3 { font-size: 1.02rem; }
.cards p { margin-top: 4px; color: var(--ink-soft); font-size: 0.94rem; }
.card-icon { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; background: var(--violet-soft); color: var(--violet); }
.card-icon svg { width: 22px; height: 22px; }

/* For your staff: the cards beside the counter calendar, then the waiting-room screen in a band. */
.staff-split { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: 36px; align-items: center; }
.calling-band { display: grid; grid-template-columns: minmax(0, 0.7fr) minmax(0, 1.3fr); gap: 40px; align-items: center; margin-top: 40px; padding: clamp(24px, 4vw, 44px); border-radius: var(--radius); background: var(--tint); }
.calling-text { display: grid; gap: 10px; }
.calling-text h3 { font-size: clamp(1.4rem, 2.6vw, 1.9rem); }
.calling-text p:last-child { color: var(--ink-soft); }
@media (max-width: 880px) { .staff-split, .calling-band { grid-template-columns: 1fr; } .staff-split .tablet { order: -1; } }

/* Security: a dark band, the audit history beside the cards in two columns. */
section.block.security { margin-top: 88px; padding: 64px clamp(20px, 5vw, 56px); border-radius: var(--radius); background: var(--blue-deep); color: var(--on-deep); }
.security .kicker { color: #c9b6ff; }
.security-split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: 36px; align-items: center; }
.cards-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.security .cards li { background: rgb(255 255 255 / 0.06); border-color: rgb(255 255 255 / 0.14); }
.security .cards p { color: var(--on-deep-soft); }
.security .card-icon { background: rgb(201 182 255 / 0.16); color: #d9cbff; }
.security :focus-visible { outline-color: #fff; }
@media (max-width: 960px) { .security-split { grid-template-columns: 1fr; } }
@media (max-width: 560px) { .cards-grid { grid-template-columns: 1fr; } }

/* Offers */
.offers { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; align-items: stretch; }
.offer .price .yearly { display: block; flex-basis: 100%; margin-top: 2px; font-size: 0.85rem; font-weight: 700; color: var(--on-deep-soft); }
/* The limits: three short lines between rules, then the features. */
.offer .limits { flex: none; gap: 0; border-block: 1px solid rgb(255 255 255 / 0.22); }
.offer .limits li { padding: 8px 0; font-weight: 700; }
.offer .limits li + li { border-top: 1px solid rgb(255 255 255 / 0.14); }
.offer .limits li::before { content: none; }
.offer li.plus { padding-inline-start: 0; margin-top: 4px; font-weight: 700; }
.offer li.plus::before { content: none; }
.offer { background: var(--blue); color: #fff; border-radius: var(--radius); padding: 30px 28px; display: flex; flex-direction: column; gap: 20px; box-shadow: 0 24px 60px -36px color-mix(in srgb, var(--blue-deep) 80%, transparent); }
.offer.featured { background: linear-gradient(150deg, var(--blue-deep) 0%, var(--blue) 45%, var(--violet) 100%); box-shadow: 0 30px 70px -30px color-mix(in srgb, var(--violet) 75%, transparent); }
.offer.violet { background: var(--violet); box-shadow: 0 24px 60px -36px color-mix(in srgb, var(--violet) 80%, transparent); }
.offer .who { color: var(--on-deep-soft); font-size: 0.95rem; min-height: 3.2em; }
.price { display: flex; align-items: baseline; gap: 6px; flex-wrap: wrap; }
.price b { font-family: var(--display); font-size: 2.6rem; font-weight: 800; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.price span { color: var(--on-deep-soft); font-size: 0.92rem; }
.offer ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 10px; flex: 1; }
.offer li { padding-inline-start: 26px; position: relative; font-size: 0.97rem; }
.offer li::before { content: ""; position: absolute; inset-inline-start: 2px; top: 0.35em; width: 12px; height: 7px; border-left: 2.5px solid #fff; border-bottom: 2.5px solid #fff; transform: rotate(-45deg); }
.offer .button { background: #fff; color: var(--blue-deep); border-color: #fff; }
.offer .button:hover { background: var(--violet-soft); border-color: var(--violet-soft); }
.offer.violet .button { color: #3b1d8f; }
.offer :focus-visible { outline-color: #fff; }
@media (min-width: 901px) { .offer.featured { transform: translateY(-12px); } }
.badge { align-self: flex-start; font-size: 0.8rem; font-weight: 700; padding: 4px 10px; border-radius: 999px; background: #fff; color: #3b1d8f; }
.offer-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; }
.offers-note { margin-top: 18px; color: var(--ink-soft); font-size: 0.9rem; }
@media (max-width: 1180px) { .offers { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 680px) { .offers { grid-template-columns: 1fr; max-width: 520px; margin-inline: auto; } .offer .who { min-height: 0; } }

/* FAQ */
.faq { display: grid; gap: 10px; max-width: 820px; margin-inline: auto; }
.faq details { background: var(--surface); border: 1px solid var(--rule); border-radius: var(--radius-small); padding: 18px 22px; }
.faq summary { cursor: pointer; font-weight: 700; }
.faq details p { margin-top: 10px; color: var(--ink-soft); }

/* Footer */
.contact { margin-block: 88px 0; padding: 48px clamp(22px, 5vw, 56px); border-radius: var(--radius); background: var(--blue-deep); color: var(--on-deep); display: grid; grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr); gap: 40px; align-items: start; }
.contact .lede { color: var(--on-deep-soft); margin-top: 14px; }
.contact .direct { margin-top: 24px; color: var(--on-deep-soft); }
.contact .address { color: #fff; font-weight: 700; user-select: all; overflow-wrap: anywhere; }
@media (max-width: 880px) { .contact { grid-template-columns: 1fr; } }

/* Contact form: a white card on the blue section, so fields read like every other form. */
.contact-form { background: var(--surface); color: var(--ink); border-radius: var(--radius); padding: clamp(20px, 4vw, 30px); display: grid; gap: 18px; }
.contact-form .pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
@media (max-width: 560px) { .contact-form .pair { grid-template-columns: 1fr; } }
.field { display: grid; gap: 6px; align-content: start; }
.field label { font-weight: 700; font-size: 0.95rem; }
.field .optional, .field .hint { font-weight: 400; color: var(--ink-soft); }
.field .hint { font-size: 0.88rem; }
.field input, .field select, .field textarea { width: 100%; min-height: 46px; padding: 10px 12px; font: inherit; font-size: 1rem; color: var(--ink); background: var(--surface); border: 1.5px solid #9aa1c7; border-radius: var(--radius-small); }
.field textarea { min-height: 140px; resize: vertical; line-height: 1.5; }
.field input:focus-visible, .field select:focus-visible, .field textarea:focus-visible { border-color: var(--violet); outline-offset: 1px; }
.field [aria-invalid="true"] { border-color: #b42318; }
.error { color: #b42318; font-size: 0.9rem; font-weight: 700; }
.error:empty, .status:empty { display: none; }
.trap { position: absolute; inset-inline-start: -10000px; width: 1px; height: 1px; overflow: hidden; }
.status { padding: 12px 14px; border-radius: var(--radius-small); font-weight: 700; }
.status.ok { background: #e6f4ea; color: #14532d; }
.status.fail { background: #fdecea; color: #8a1c12; }
.form-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 20px; }
.form-foot .button[disabled] { opacity: 0.7; cursor: progress; }
.privacy-note { color: var(--ink-soft); font-size: 0.88rem; flex: 1 1 220px; }
@media (max-width: 820px) { .contact { grid-template-columns: 1fr; } }

footer { padding-block: 40px 48px; color: var(--ink-soft); font-size: 0.88rem; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }

/* Footer */
.footer-links { display: flex; gap: 18px; flex-wrap: wrap; }
.footer-links a { color: var(--ink-soft); }
/* The developer's credit, after the legal links and as muted as they are; only the name links. On a phone it takes its own line. */
.credit a { color: var(--ink-soft); }
@media (max-width: 720px) { .credit { flex-basis: 100%; } }

/* Legal pages */
.legal { max-width: 760px; padding-block: 56px 24px; display: grid; gap: 18px; }
.legal h1 { font-size: clamp(2rem, 5vw, 2.8rem); font-weight: 800; letter-spacing: -0.03em; }
.legal h2 { font-size: 1.35rem; margin-top: 18px; }
.legal p, .legal li { color: var(--ink-soft); max-width: 70ch; }
.legal address { font-style: normal; color: var(--ink); }
.fill { background: var(--violet-soft); color: var(--ink); border-radius: 4px; padding-inline: 4px; }
/* The data processing agreement's tables: narrow ones wrap; a wide one scrolls sideways on narrow screens instead of the page. */
.legal h3 { font-size: 1.05rem; margin-top: 8px; }
.legal hr { width: 100%; border: 0; border-top: 1px solid var(--rule); }
.table-wrap { overflow-x: auto; }
.legal table { width: 100%; border-collapse: collapse; font-size: 0.95rem; }
.legal table.wide { min-width: 640px; }
.legal th, .legal td { text-align: start; vertical-align: top; padding: 8px 10px; border-bottom: 1px solid var(--rule); color: var(--ink-soft); }
.legal th { color: var(--ink); }
.draft { border-inline-start: 4px solid var(--violet); background: var(--tint); padding: 14px 18px; border-radius: var(--radius-small); color: var(--ink); }
.address-plain { font-weight: 700; color: var(--ink); user-select: all; overflow-wrap: anywhere; }
/* Anchors and focused fields stop below the sticky header. */
section[id], .status, .field :is(input, select, textarea) { scroll-margin-top: 84px; }
