/* ==========================================================================
   Magnovera — site styles
   Palette and type follow the Magnovera Style Guide.
   Every color is a light-dark() token: the page follows the visitor's system
   theme unless they pick one with the header toggle (html[data-theme]).
   ========================================================================== */

/* Manrope (SIL Open Font License), self-hosted variable font, weights 600–800 */
@font-face {
  font-family: "Manrope";
  font-style: normal;
  font-weight: 600 800;
  font-display: swap;
  src: url("/assets/fonts/manrope-latin.woff2") 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 {
  color-scheme: light dark;

  /* Brand palette (Style Guide) */
  --amber-p2: #F8D7A8;
  --amber-p1: #F1B870;
  --amber: #E8891A;
  --amber-m1: #C87413;
  --amber-m2: #9A560D;

  --steel-p2: #D6E0E6;
  --steel-p1: #AEBFCA;
  --steel: #7F96A6;
  --steel-m1: #5F7787;
  --steel-m2: #4B6473;

  --ivory-p2: #F7F5F1;
  --ivory-p1: #E8E4DB;
  --ivory: #D6D1C6;
  --ivory-m1: #BDB7AA;
  --ivory-m2: #A6A093;

  --olive-p2: #B7BFAF;
  --olive-p1: #7D8773;
  --olive: #626B59;
  --olive-m1: #4E5842;
  --olive-m2: #3E4635;

  --charcoal: #231F20;
  --charcoal-p1: #322D2E;
  --white: #FFFFFF;

  /* Semantic tokens: light, dark */
  --bg: light-dark(var(--ivory-p2), #181617);
  --bg-raised: light-dark(var(--white), #1E1B1C);
  --bg-tint: light-dark(#E3EAEE, #1A2126);
  --bg-muted: light-dark(var(--ivory-p1), #221F20);
  --surface: light-dark(var(--white), #231F20);
  --surface-2: light-dark(var(--ivory-p2), #2A2627);
  --text: light-dark(var(--charcoal), #ECE8E1);
  --heading: light-dark(var(--charcoal), #F7F5F1);
  --text-muted: light-dark(#5C5653, #B2ACA1);
  --text-faint: light-dark(#6F6961, #99938A);
  --line: light-dark(#E4DFD5, #302B2C);
  --line-strong: light-dark(var(--ivory), #443F3F);
  --input-border: light-dark(#8F897F, #7A7473);
  --focus: light-dark(var(--amber-m2), var(--amber));
  --link: light-dark(var(--steel-m2), var(--steel-p1));
  --link-hover: light-dark(var(--charcoal), var(--white));
  --accent-fg: light-dark(var(--steel-m2), var(--steel-p1));
  --accent-bg: light-dark(var(--steel-p2), rgba(127, 150, 166, .16));
  --accent-solid: light-dark(var(--steel-m2), var(--steel-m1));
  --olive-fg: light-dark(var(--olive-m1), var(--olive-p2));
  --olive-bg: light-dark(#E6E9E1, rgba(125, 135, 115, .2));
  --amber-fg: light-dark(var(--amber-m2), var(--amber-p1));
  --amber-bg: light-dark(#FBE9D0, rgba(232, 137, 26, .15));
  --band: light-dark(var(--steel-m2), #273540);
  --footer-bg: light-dark(var(--charcoal), #111010);

  --font-head: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-body: Cambria, "Cambria Math", Georgia, "Times New Roman", serif;

  --radius-sm: 5px;
  --radius: 8px;
  --radius-lg: 12px;
  --shadow-sm: 0 1px 2px light-dark(rgba(35, 31, 32, .06), rgba(0, 0, 0, .45));
  --shadow: 0 1px 2px light-dark(rgba(35, 31, 32, .05), rgba(0, 0, 0, .4)), 0 6px 18px light-dark(rgba(35, 31, 32, .07), rgba(0, 0, 0, .35));
  --shadow-lg: 0 2px 6px light-dark(rgba(35, 31, 32, .06), rgba(0, 0, 0, .45)), 0 20px 48px light-dark(rgba(35, 31, 32, .12), rgba(0, 0, 0, .55));
  --max: 1160px;
  --gutter: 24px;
  --section-y: clamp(56px, 7vw, 88px);
}
:root[data-theme="light"] { color-scheme: light; }
:root[data-theme="dark"] { color-scheme: dark; }
@supports not (color: light-dark(#000, #fff)) {
  :root {
    --bg: #F7F5F1; --bg-raised: #FFFFFF; --bg-tint: #E3EAEE; --bg-muted: #E8E4DB;
    --surface: #FFFFFF; --surface-2: #F7F5F1; --text: #231F20; --heading: #231F20;
    --text-muted: #5C5653; --text-faint: #6F6961; --line: #E4DFD5; --line-strong: #D6D1C6; --input-border: #8F897F;
    --focus: #9A560D; --link: #4B6473; --link-hover: #231F20; --accent-fg: #4B6473; --accent-bg: #D6E0E6;
    --accent-solid: #4B6473; --olive-fg: #4E5842; --olive-bg: #E6E9E1; --amber-fg: #9A560D; --amber-bg: #FBE9D0;
    --band: #4B6473; --footer-bg: #231F20;
    --shadow-sm: 0 1px 2px rgba(35, 31, 32, .06);
    --shadow: 0 1px 2px rgba(35, 31, 32, .05), 0 6px 18px rgba(35, 31, 32, .07);
    --shadow-lg: 0 2px 6px rgba(35, 31, 32, .06), 0 20px 48px rgba(35, 31, 32, .12);
  }
  .logo-on-dark, .theme-toggle { display: none !important; }
}

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

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

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

a { color: var(--link); text-underline-offset: 3px; }
a:hover { color: var(--link-hover); }

::selection { background: var(--amber-p2); color: var(--charcoal); }

h1, h2, h3, h4 {
  font-family: var(--font-head);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--heading);
  margin: 0 0 .5em;
  text-wrap: balance;
}
h1 { font-size: clamp(2.2rem, 4.4vw, 3.4rem); letter-spacing: -0.03em; line-height: 1.08; }
h2 { font-size: clamp(1.6rem, 2.8vw, 2.2rem); }
h3 { font-size: 1.12rem; letter-spacing: -0.01em; line-height: 1.3; }
p { margin: 0 0 1em; text-wrap: pretty; }

.skip-link {
  position: absolute; left: -9999px; top: 0;
  background: var(--charcoal); color: var(--white); padding: 10px 16px; z-index: 100;
}
.skip-link:focus { left: 16px; top: 16px; }

:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; border-radius: 3px; }
.cta-band :focus-visible, .site-footer :focus-visible { outline-color: var(--white); }

.container { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.narrow { max-width: 740px; margin-left: auto; margin-right: auto; }
.center { text-align: center; }
@media (max-width: 480px) { :root { --gutter: 18px; } }

.section { padding: var(--section-y) 0; --section-bg: var(--bg); }
.section-sm { padding: calc(var(--section-y) * .65) 0; }
.bg-ivory { --section-bg: var(--bg); background: var(--bg); }
.bg-white { --section-bg: var(--bg-raised); background: var(--bg-raised); }
.bg-steel-light { --section-bg: var(--bg-tint); background: var(--bg-tint); }
.bg-ivory-mid { --section-bg: var(--bg-muted); background: var(--bg-muted); }
.bg-white, .bg-steel-light, .bg-ivory-mid { border-block: 1px solid var(--line); }

.eyebrow {
  display: inline-block;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: .74rem;
  letter-spacing: .11em;
  text-transform: uppercase;
  color: var(--accent-fg);
  margin-bottom: 14px;
}

.lede { font-size: 1.18rem; line-height: 1.6; color: var(--text-muted); max-width: 620px; }
.lede-strong { color: var(--heading); }
.lede-center { margin-left: auto; margin-right: auto; }
.btn-row-center { justify-content: center; }
.h-small { font-size: 1.12rem; letter-spacing: -0.01em; margin-top: 32px; }
.hero.bg-ivory + .section.bg-ivory { padding-top: calc(var(--section-y) * .3); }
.section-intro { max-width: 700px; margin: 0 auto 44px; }
.section-intro p { color: var(--text-muted); font-size: 1.1rem; margin-bottom: 0; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: var(--font-head); font-weight: 700; font-size: .95rem; line-height: 1.2;
  padding: 12px 20px; border-radius: var(--radius); border: 1px solid transparent;
  text-decoration: none; cursor: pointer; transition: background-color .15s, border-color .15s, color .15s;
}
.btn-amber { background: var(--amber); color: var(--charcoal); }
.btn-amber:hover { background: color-mix(in srgb, var(--amber) 86%, black); color: var(--charcoal); }
.btn-ghost { border-color: var(--line-strong); color: var(--heading); background: transparent; }
.btn-ghost:hover { border-color: var(--accent-fg); color: var(--heading); background: var(--surface); }
.btn svg { width: 16px; height: 16px; }
.btn:disabled { opacity: .65; cursor: progress; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }

.text-link {
  font-family: var(--font-head); font-weight: 700; font-size: .92rem;
  color: var(--link); text-decoration: none; display: inline-flex; gap: 6px; align-items: center;
}
.text-link:hover { color: var(--amber-fg); }
.text-link span { transition: transform .15s; }
.text-link:hover span { transform: translateX(3px); }

/* ---------- Status bar (pre-launch notice above the header) ---------- */
.status-bar {
  background: var(--band); color: var(--ivory-p2); text-align: center;
  font-family: var(--font-head); font-weight: 600; font-size: .84rem; padding: 8px 0; line-height: 1.4;
}
.status-bar a { color: var(--white); text-decoration: underline; text-underline-offset: 3px; }
.status-bar a:hover { color: var(--amber-p1); }
.status-bar :focus-visible { outline-color: var(--white); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: saturate(1.3) blur(12px);
  -webkit-backdrop-filter: saturate(1.3) blur(12px);
  border-bottom: 1px solid var(--line);
}
.nav { display: flex; align-items: center; height: 66px; gap: 20px; }

.logo { display: inline-flex; align-items: center; text-decoration: none; flex: none; }
.logo img { height: 27px; width: auto; }
.logo-on-dark { display: none; }
:root[data-theme="dark"] .logo-on-light { display: none; }
:root[data-theme="dark"] .logo-on-dark { display: block; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .logo-on-light { display: none; }
  :root:not([data-theme="light"]) .logo-on-dark { display: block; }
}

.nav-menu { margin-left: auto; }
.nav-links { display: flex; align-items: center; gap: 28px; list-style: none; margin: 0; padding: 0; }
.nav-links a {
  font-family: var(--font-head); font-weight: 600; font-size: .93rem;
  color: var(--text); text-decoration: none; padding: 6px 0; border-bottom: 2px solid transparent;
}
.nav-links a:hover { color: var(--heading); border-bottom-color: var(--line-strong); }
.nav-links a[aria-current="page"] { color: var(--heading); border-bottom-color: var(--steel); }
.nav .btn { padding: 9px 16px; font-size: .88rem; }

.nav-actions { display: flex; align-items: center; gap: 6px; }
.theme-toggle, .nav-toggle {
  display: grid; place-items: center; width: 38px; height: 38px; padding: 0;
  background: none; border: 1px solid transparent; border-radius: var(--radius); color: var(--text); cursor: pointer;
}
.theme-toggle:hover, .nav-toggle:hover { border-color: var(--line-strong); color: var(--heading); }
.theme-toggle svg { width: 18px; height: 18px; }
.theme-toggle .sun { display: none; }
:root[data-theme="dark"] .theme-toggle .sun { display: block; }
:root[data-theme="dark"] .theme-toggle .moon { display: none; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .theme-toggle .sun { display: block; }
  :root:not([data-theme="light"]) .theme-toggle .moon { display: none; }
}
.nav-toggle { display: none; }
.nav-toggle svg { width: 22px; height: 22px; }

@media (min-width: 901px) {
  .nav-menu { display: flex; align-items: center; gap: 28px; }
}
@media (max-width: 900px) {
  .nav-toggle { display: grid; }
  .nav-actions { margin-left: auto; }
  .nav-menu {
    position: absolute; top: 66px; left: 0; right: 0;
    background: var(--bg); border-bottom: 1px solid var(--line);
    padding: 8px var(--gutter) 20px; display: none; box-shadow: var(--shadow);
  }
  .nav-menu.open { display: block; }
  .nav-links { flex-direction: column; align-items: stretch; gap: 0; }
  .nav-links a { display: block; padding: 12px 0; font-size: 1.02rem; border-bottom: 1px solid var(--line); }
  .nav-links a[aria-current="page"] { border-bottom-color: var(--line); box-shadow: inset 3px 0 0 var(--steel); padding-left: 12px; }
  .nav-menu .btn { margin-top: 16px; width: 100%; }
}

/* ---------- Hero ---------- */
.hero { padding: clamp(44px, 6vw, 76px) 0 clamp(52px, 7vw, 88px); overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 1fr 1.12fr; gap: 52px; align-items: center; }
.hero p.lede { margin-top: 6px; }
@media (max-width: 980px) {
  .hero-grid { grid-template-columns: 1fr; gap: 44px; }
}
.hero-text-only { padding: clamp(56px, 8vw, 96px) 0 clamp(44px, 6vw, 72px); }

/* ---------- Grids & cards ---------- */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
@media (max-width: 980px) { .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 900px) { .grid-3 { grid-template-columns: 1fr; } }
@media (min-width: 620px) and (max-width: 900px) { .grid-3:has(> .industry-card) { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 760px) { .grid-2 { grid-template-columns: 1fr; } }
@media (max-width: 560px) { .grid-4 { grid-template-columns: 1fr; } }

.card {
  background: var(--surface); border-radius: var(--radius-lg); padding: 26px;
  border: 1px solid var(--line);
}
.card h3 { margin-bottom: .35em; }
.card p { color: var(--text-muted); margin: 0; }

.icon {
  width: 40px; height: 40px; border-radius: var(--radius);
  display: grid; place-items: center; margin-bottom: 18px;
  background: var(--accent-bg); color: var(--accent-fg);
}
.icon svg { width: 21px; height: 21px; }
.icon-olive { background: var(--olive-bg); color: var(--olive-fg); }

.problem-col { text-align: center; padding: 4px 12px; }
.problem-col .icon { margin: 0 auto 16px; }
.problem-col p { color: var(--text-muted); margin: 0; }

.industry-card { display: flex; flex-direction: column; gap: 14px; }
.industry-card h3 { margin: 0; }
.industry-card p { flex: 1; }
.industry-card.featured { border-color: var(--steel); box-shadow: inset 0 3px 0 var(--amber); }
.soon {
  font-family: var(--font-head); font-weight: 700; font-size: .7rem; letter-spacing: .08em; text-transform: uppercase;
  color: var(--olive-fg); background: var(--olive-bg); border-radius: var(--radius-sm); padding: 4px 9px; align-self: flex-start;
}

.card-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.soon-active { color: var(--amber-fg); background: var(--amber-bg); }

.tile p { color: var(--text-muted); }

/* ---------- Steps ---------- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 36px; position: relative; list-style: none; padding: 0; margin: 0; }
.steps::before {
  content: ""; position: absolute; top: 23px; left: 17%; right: 17%;
  border-top: 1px solid var(--line-strong);
}
.step { position: relative; text-align: center; }
.step h3 { margin-bottom: .4em; }
.step-num {
  width: 46px; height: 46px; margin: 0 auto 18px; border-radius: 50%;
  background: var(--accent-solid); color: var(--white);
  font-family: var(--font-head); font-weight: 800; font-size: 1.1rem;
  display: grid; place-items: center; position: relative; box-shadow: 0 0 0 8px var(--section-bg, var(--bg));
}
.step p { color: var(--text-muted); margin: 0 auto; max-width: 330px; }
@media (max-width: 860px) {
  .steps { grid-template-columns: 1fr; gap: 32px; }
  .steps::before { display: none; }
}

/* ---------- CTA band ---------- */
.cta-band {
  background: var(--band);
  background-image: radial-gradient(ellipse at 12% 0%, rgba(214, 224, 230, .08), transparent 50%),
                    radial-gradient(ellipse at 92% 100%, rgba(127, 150, 166, .14), transparent 55%);
  color: var(--ivory-p2); padding: calc(var(--section-y) * .9) 0; text-align: center;
}
.cta-band h2 { color: var(--white); }
.cta-band p { color: var(--ivory-p2); font-size: 1.12rem; max-width: 600px; margin: 0 auto 28px; }
.cta-band .cta-note { font-size: .92rem; color: var(--ivory-p1); margin: 16px auto 0; }

/* ---------- FAQ ---------- */
.faq { max-width: 720px; margin: 0 auto; border-top: 1px solid var(--line-strong); }
.faq details { border-bottom: 1px solid var(--line-strong); }
.faq summary {
  list-style: none; cursor: pointer; padding: 20px 44px 20px 0; position: relative;
  font-family: var(--font-head); font-weight: 700; font-size: 1.04rem; color: var(--heading);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::before, .faq summary::after {
  content: ""; position: absolute; right: 6px; top: 50%; width: 14px; height: 2px;
  background: var(--accent-fg); border-radius: 1px; transition: transform .2s;
}
.faq summary::after { transform: rotate(90deg); }
.faq details[open] summary::after { transform: rotate(0deg); }
.faq summary:hover { color: var(--link); }
.faq details p { color: var(--text-muted); padding: 0 44px 20px 0; margin: 0; }

/* ---------- Feature rows ---------- */
.feature-row { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; padding: 40px 0; }
.feature-row + .feature-row { border-top: 1px solid var(--line); }
.feature-row.reverse .feature-text { order: 2; }
.feature-text p { color: var(--text-muted); }
@media (max-width: 900px) {
  .feature-row { grid-template-columns: 1fr; gap: 28px; padding: 32px 0; }
  .feature-row.reverse .feature-text { order: 0; }
}

.checklist { list-style: none; padding: 0; margin: 16px 0 0; }
.checklist li { position: relative; padding-left: 30px; margin-bottom: 9px; color: var(--text); }
.checklist li::before {
  content: ""; position: absolute; left: 0; top: 5px; width: 19px; height: 19px; border-radius: 50%;
  background: var(--accent-bg);
}
.checklist li::after {
  content: ""; position: absolute; left: 4px; top: 9px; width: 11px; height: 11px;
  background: var(--accent-fg);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / contain no-repeat;
}

/* ---------- Name treatment (About) ---------- */
.name-split { font-family: var(--font-head); font-weight: 800; font-size: clamp(2.6rem, 7vw, 4.4rem); letter-spacing: -0.03em; margin: 8px 0 36px; line-height: 1; }
.name-split .magno { color: var(--accent-fg); }
.name-split .vera { color: var(--olive-fg); }
.name-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; text-align: left; margin: 0 0 36px; }
.name-cols .root { font-family: var(--font-head); font-weight: 800; font-size: 1.4rem; margin-bottom: 4px; color: var(--heading); }
.name-cols .root.magno { color: var(--accent-fg); }
.name-cols .root.vera { color: var(--olive-fg); }
.name-cols .latin { font-style: italic; color: var(--text-muted); margin-bottom: 12px; display: block; }
@media (max-width: 700px) { .name-cols { grid-template-columns: 1fr; } }

/* ---------- Story ---------- */
.story { max-width: 650px; margin: 0 auto; }
.story p { font-size: 1.14rem; line-height: 1.75; }
.story p:first-of-type::first-letter {
  font-family: var(--font-head); font-weight: 800; float: left; font-size: 3.4rem; line-height: .9;
  padding: 6px 10px 0 0; color: var(--accent-fg);
}
.pull { border-left: 3px solid var(--amber); padding-left: 20px; font-style: italic; color: var(--heading); }

/* ---------- Modules grid ---------- */
.modules { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.module {
  border-radius: var(--radius); padding: 16px 14px; background: var(--surface); border: 1px solid var(--line);
  font-family: var(--font-head); font-weight: 700; font-size: .9rem; display: flex; flex-direction: column; gap: 12px;
  color: var(--text-faint); transition: color .2s, border-color .2s;
}
.module .toggle { width: 32px; height: 18px; border-radius: 999px; background: var(--line-strong); position: relative; }
.module .toggle::after { content: ""; position: absolute; top: 3px; left: 3px; width: 12px; height: 12px; border-radius: 50%; background: var(--white); transition: left .2s; }
.module.on { color: var(--heading); border-color: var(--steel); }
.module.on .toggle { background: var(--accent-solid); }
.module.on .toggle::after { left: 17px; }
@media (max-width: 520px) { .modules { grid-template-columns: repeat(2, 1fr); } }

/* ---------- Industry chips ---------- */
.chips { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
.chip {
  font-family: var(--font-head); font-weight: 700; font-size: .94rem; text-decoration: none;
  padding: 11px 16px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); color: var(--heading);
  display: inline-flex; align-items: center; gap: 10px;
}
.chip small { font-weight: 700; font-size: .68rem; letter-spacing: .07em; text-transform: uppercase; color: var(--olive-fg); }
a.chip:hover { border-color: var(--steel); color: var(--link); }

/* ---------- Form ---------- */
.form-card {
  background: var(--surface); border: 1px solid var(--line-strong); border-radius: var(--radius-lg);
  padding: 32px; box-shadow: var(--shadow); scroll-margin-top: 90px;
}
.field { margin-bottom: 16px; }
.field label { display: block; font-family: var(--font-head); font-weight: 700; font-size: .88rem; margin-bottom: 6px; color: var(--heading); }
.field input, .field select, .field textarea {
  width: 100%; font: inherit; font-size: 1rem; color: var(--text);
  padding: 11px 13px; border: 1px solid var(--input-border); border-radius: var(--radius-sm); background: var(--surface-2);
  transition: border-color .15s, box-shadow .15s, background-color .15s;
}
.field input::placeholder, .field textarea::placeholder { color: var(--text-faint); }
.field textarea { min-height: 110px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--accent-fg); background: var(--surface); box-shadow: 0 0 0 3px var(--accent-bg);
}
.form-card .btn { width: 100%; margin-top: 4px; padding: 14px 20px; }
.form-note { font-size: .9rem; color: var(--text-muted); margin: 14px 0 0; text-align: center; }
.form-error {
  margin: 14px 0 0; padding: 11px 14px; border-radius: var(--radius-sm); font-size: .94rem;
  background: var(--amber-bg); color: var(--amber-fg); border: 1px solid color-mix(in srgb, var(--amber) 45%, transparent);
}
.form-error[hidden] { display: none; }
.form-success { text-align: center; padding: 36px 8px; }
.form-success .icon { margin: 0 auto 16px; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

.discovery-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: start; }
@media (max-width: 900px) {
  .discovery-grid { grid-template-columns: 1fr; gap: 36px; }
}

/* Google Calendar booking embed (discovery page) */
.form-card.booking { padding: 24px 18px 10px; }
.booking-head { text-align: center; padding: 0 12px 14px; }
.booking-head p { color: var(--text-muted); margin: 0; }
.booking-frame { display: block; width: 100%; height: 640px; border: 0; border-radius: var(--radius); background: var(--white); }
@media (max-width: 560px) { .booking-frame { height: 760px; } }

/* ---------- Legal pages ---------- */
.legal { max-width: 740px; margin: 0 auto; }
.legal h2 { font-size: 1.3rem; margin-top: 2em; }
.legal p, .legal li { color: var(--text); }
.legal li { margin-bottom: .4em; }

/* ---------- Footer ---------- */
.site-footer { background: var(--footer-bg); color: var(--ivory); padding: 60px 0 30px; border-top: 1px solid var(--line); }
.site-footer a { color: var(--ivory-m1); text-decoration: none; }
.site-footer a:hover { color: var(--amber-p1); }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 40px; }
.footer-heading { font-family: var(--font-head); font-weight: 800; color: var(--white); font-size: .78rem; letter-spacing: .1em; text-transform: uppercase; margin: 0 0 14px; }
.footer-grid ul { list-style: none; padding: 0; margin: 0; }
.footer-grid li { margin-bottom: 9px; font-size: .98rem; }
.site-footer .logo { margin-bottom: 16px; }
.site-footer .logo img { height: 26px; }
.footer-tag { color: var(--ivory-m1); max-width: 330px; font-size: .98rem; }
.footer-contact { margin-top: 14px; display: grid; gap: 6px; font-size: .98rem; }
.footer-contact a { color: var(--ivory); }
.footer-bottom {
  margin-top: 48px; padding-top: 22px; border-top: 1px solid rgba(255, 255, 255, .1);
  font-size: .88rem; color: var(--ivory-m2); display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px;
}
.footer-legal { display: flex; gap: 20px; flex-wrap: wrap; }
.footer-legal a { color: var(--ivory-m2); }
@media (max-width: 800px) { .footer-grid { grid-template-columns: 1fr 1fr; } .footer-grid > :first-child { grid-column: 1 / -1; } }

/* ==========================================================================
   Product UI mockups (illustrations of the product)
   ========================================================================== */
.app {
  background: var(--surface); border-radius: var(--radius-lg); box-shadow: var(--shadow-lg);
  border: 1px solid var(--line); overflow: hidden; font-family: var(--font-head);
  font-size: 13px; line-height: 1.4; color: var(--text);
}
.app-bar { display: flex; align-items: center; gap: 7px; padding: 10px 14px; background: var(--bg-muted); border-bottom: 1px solid var(--line); }
.app-bar i { width: 10px; height: 10px; border-radius: 50%; background: var(--line-strong); display: block; }
.app-bar .url { margin-left: 12px; flex: 1; background: var(--surface); border-radius: var(--radius-sm); padding: 4px 10px; font-size: 11px; color: var(--text-faint); max-width: 260px; }
.app-body { display: grid; grid-template-columns: 138px 1fr; min-height: 340px; }
.app-side { background: light-dark(var(--charcoal), #141213); color: var(--ivory-m1); padding: 16px 10px; font-size: 12px; }
.app-side .brand { color: var(--white); font-weight: 800; font-size: 13px; padding: 0 8px 14px; display: flex; gap: 7px; align-items: center; }
.app-side .brand b { width: 16px; height: 16px; border-radius: 4px; background: var(--steel); display: block; }
.app-side div.item { padding: 7px 8px; border-radius: var(--radius-sm); margin-bottom: 2px; }
.app-side div.item.active { background: var(--charcoal-p1); color: var(--white); box-shadow: inset 3px 0 0 var(--amber); }
.app-main { padding: 16px; background: var(--bg); display: grid; gap: 12px; align-content: start; }
.app-head { display: flex; justify-content: space-between; align-items: center; }
.app-head strong { font-size: 15px; font-weight: 800; color: var(--heading); }
.app-head span { font-size: 11px; color: var(--text-muted); font-weight: 600; }
.kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.kpi { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 10px 12px; }
.kpi small { display: block; font-size: 10px; text-transform: uppercase; letter-spacing: .06em; color: var(--text-muted); font-weight: 700; }
.kpi b { font-size: 18px; font-weight: 800; display: block; margin-top: 2px; color: var(--heading); }
.kpi em { font-style: normal; font-size: 10.5px; font-weight: 700; color: var(--olive-fg); }
.panes { display: grid; grid-template-columns: 1.1fr 1fr; gap: 10px; }
.pane { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 11px 12px; }
.pane-title { margin: 0 0 8px; font-size: 11px; text-transform: uppercase; letter-spacing: .06em; color: var(--text-muted); font-weight: 800; }
.bars { display: flex; align-items: flex-end; gap: 6px; height: 74px; }
.bars span { flex: 1; background: light-dark(var(--steel-p1), rgba(127, 150, 166, .4)); border-radius: 3px 3px 0 0; }
.bars span.hi { background: light-dark(var(--steel-m2), var(--steel-p1)); }
.rows { display: grid; gap: 6px; }
.r { display: flex; justify-content: space-between; align-items: center; gap: 8px; font-size: 11.5px; padding: 5px 0; border-bottom: 1px solid var(--line); }
.r:last-child { border-bottom: 0; }
.r .muted { color: var(--text-muted); font-weight: 600; font-size: 10.5px; }
.tag { font-size: 9.5px; font-weight: 800; padding: 3px 7px; border-radius: 4px; text-transform: uppercase; letter-spacing: .04em; white-space: nowrap; }
.tag.steel { background: var(--accent-bg); color: var(--accent-fg); }
.tag.amber { background: var(--amber-bg); color: var(--amber-fg); }
.tag.olive { background: var(--olive-bg); color: var(--olive-fg); }
.tag.ivory { background: var(--bg-muted); color: var(--text-muted); }

table.mini { width: 100%; border-collapse: collapse; font-size: 11.5px; }
table.mini th { text-align: left; font-size: 9.5px; text-transform: uppercase; letter-spacing: .06em; color: var(--text-muted); padding: 6px; border-bottom: 1px solid var(--line); font-weight: 800; }
table.mini td { padding: 8px 6px; border-bottom: 1px solid var(--line); white-space: nowrap; }
table.mini tr:last-child td { border-bottom: 0; }
table.mini .mono { font-family: ui-monospace, "Cascadia Mono", Consolas, monospace; font-size: 10.5px; color: var(--accent-fg); }

.board { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.board-col { background: var(--bg-muted); border-radius: var(--radius); padding: 8px; display: grid; gap: 6px; align-content: start; min-height: 170px; }
.board-col > small { font-size: 9.5px; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; color: var(--text-muted); display: flex; justify-content: space-between; }
.ticket { background: var(--surface); border-radius: var(--radius-sm); padding: 7px 8px; font-size: 10.5px; box-shadow: var(--shadow-sm); border-left: 3px solid var(--steel); }
.ticket b { display: block; font-size: 11px; color: var(--heading); }
.ticket span { color: var(--text-muted); font-weight: 600; }
.ticket.rush { border-left-color: var(--amber); }

.profile { display: grid; grid-template-columns: auto 1fr; gap: 12px; align-items: center; }
.avatar { width: 42px; height: 42px; border-radius: 50%; background: var(--olive-bg); color: var(--olive-fg); display: grid; place-items: center; font-weight: 800; font-size: 14px; }
.facts { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.fact { background: var(--bg); border-radius: var(--radius-sm); padding: 7px 9px; }
.fact small { display: block; font-size: 9.5px; text-transform: uppercase; letter-spacing: .06em; color: var(--text-muted); font-weight: 800; }
.fact b { font-size: 12px; color: var(--heading); }

.mock-solo { padding: 16px; background: var(--bg); display: grid; gap: 12px; }

.hero-visual { position: relative; }
.float-card {
  position: absolute; background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow-lg); padding: 11px 14px;
  font-family: var(--font-head); font-size: 12px; border: 1px solid var(--line); min-width: 190px; color: var(--text);
}
.float-card small { display: block; font-size: 10px; text-transform: uppercase; letter-spacing: .06em; color: var(--text-muted); font-weight: 800; margin-bottom: 4px; }
.float-card b { font-size: 13px; color: var(--heading); }
.float-a { left: -24px; bottom: -24px; }
.float-b { right: -16px; top: -20px; }
@media (max-width: 1100px) { .float-a { left: 10px; } .float-b { right: 10px; } }
@media (max-width: 620px) {
  .app-body { grid-template-columns: 1fr; }
  .app-side { display: none; }
  .panes { grid-template-columns: 1fr; }
  .board { grid-template-columns: repeat(2, 1fr); }
  .float-card { display: none; }
  .kpi b { font-size: 15px; }
  table.mini td { white-space: normal; }
  table.mini th:first-child, table.mini td.mono { display: none; }
}

/* Hero assurances */
.assurances { display: flex; flex-wrap: wrap; gap: 8px 20px; margin: 22px 0 0; list-style: none; padding: 0; }
.assurances li { display: flex; align-items: center; gap: 7px; font-family: var(--font-head); font-weight: 600; font-size: .86rem; color: var(--text-muted); }
.assurances svg { width: 15px; height: 15px; color: var(--olive-fg); flex: none; }

/* Scroll reveal */
.js .reveal { opacity: 0; transform: translateY(12px); transition: opacity .5s ease, transform .5s ease; }
.js .reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .js .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* Let grid children shrink below their content width (prevents wide mock tables from pushing text off-screen) */
.hero-grid > *, .feature-row > *, .discovery-grid > *, .grid-2 > * { min-width: 0; }
