/* =====================================================================
   North TX SeniorMatics — design system
   Palette anchored to the SeniorMatics / Grand-App brand.
   Swap the six brand hexes below when the logo file arrives.
   ===================================================================== */

:root {
  /* Brand palette */
  --ink:    #0A4C59;   /* deep petrol-teal: dark sections, headings */
  --teal:   #1188A1;   /* mid teal: links, secondary */
  --teal-d: #0B647A;   /* darker teal for hovers */
  --amber:  #F0A020;   /* warm accent: highlights, energy */
  --amber-d:#D98A12;   /* amber hover */
  --paper:  #FBF9F5;   /* warm off-white page background */
  --band:   #EEEAE2;   /* warm sand alternate band */
  --text:   #17292E;   /* body ink */
  --muted:  #566566;   /* secondary text */
  --line:   #DED8CD;   /* hairlines on paper */
  --line-d: rgba(255,255,255,.16); /* hairlines on dark */
  --white:  #ffffff;

  /* Type */
  --serif: "Source Serif 4", Georgia, "Times New Roman", serif;
  --sans:  "Source Sans 3", system-ui, -apple-system, Segoe UI, Roboto, sans-serif;

  /* Scale */
  --step: 1.16;
  --base: 1.1875rem;      /* ~19px */
  --measure: 66ch;

  /* Space */
  --pad: clamp(1.25rem, 4vw, 3rem);
  --sec: clamp(3.5rem, 8vw, 6.5rem);
  --radius: 14px;
  --shadow: 0 18px 45px -22px rgba(11,58,63,.45);
}

/* Accessibility text-size steps (toggle in header) */
html[data-textsize="lg"]  { font-size: 108%; }
html[data-textsize="xl"]  { font-size: 118%; }

/* -------- reset / base -------- */
*, *::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: var(--sans);
  font-size: var(--base);
  line-height: 1.65;
  color: var(--text);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 { font-family: var(--serif); font-weight: 600; line-height: 1.12; color: var(--ink); margin: 0 0 .5em; letter-spacing: -.01em; text-wrap: balance; }
h1 { font-size: clamp(2.5rem, 6vw, 4rem); font-optical-sizing: auto; }
h2 { font-size: clamp(1.9rem, 3.8vw, 2.9rem); }
h3 { font-size: clamp(1.3rem, 2vw, 1.6rem); }
p  { margin: 0 0 1rem; max-width: var(--measure); }
a  { color: var(--teal-d); text-underline-offset: 3px; text-decoration-thickness: 1.5px; }
a:hover { color: var(--amber-d); }
img { max-width: 100%; height: auto; display: block; }
strong { font-weight: 700; }

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

.skip {
  position: absolute; left: 0; top: -80px; z-index: 200;
  background: var(--ink); color: #fff; padding: .8rem 1.2rem; border-radius: 0 0 8px 0;
}
.skip:focus { top: 0; }

.wrap { width: min(1180px, 100% - (var(--pad) * 2)); margin-inline: auto; }
.lede { font-size: 1.2rem; color: var(--muted); }
.center { text-align: center; margin-inline: auto; }
.center p { margin-inline: auto; }

/* -------- buttons -------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; text-align:center; gap: .5rem;
  font: 600 1.0625rem/1 var(--sans);
  padding: .95rem 1.5rem; border-radius: 999px; border: 2px solid transparent;
  cursor: pointer; text-decoration: none; transition: transform .15s ease, background .2s ease, color .2s ease;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--ink); color: #fff; }
.btn-primary:hover { background: var(--teal-d); color: #fff; }
.btn-amber { background: var(--amber); color: #22160a; }
.btn-amber:hover { background: var(--amber-d); color: #fff; }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn-ghost:hover { background: var(--ink); color: #fff; }
.btn-onink { background: var(--amber); color: #22160a; }
.btn-onink:hover { background: #fff; color: var(--ink); }
.btn-quiet { background: transparent; color: #fff; border-color: var(--line-d); }
.btn-quiet:hover { background: rgba(255,255,255,.1); color: #fff; }

.textlink { font-weight: 600; color: var(--teal-d); text-decoration: none; border-bottom: 2px solid var(--amber); padding-bottom: 1px; }
.textlink:hover { color: var(--amber-d); border-color: var(--amber-d); }

/* =====================================================================
   Header
   ===================================================================== */
.utility {
  background: var(--ink); color: #cfe0e0; font-size: .95rem;
}
.utility .wrap { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding-block: .5rem; flex-wrap: wrap; }
.utility a { color: #fff; text-decoration: none; }
.utility a:hover { color: var(--amber); }
.utility .agents { border: 1px solid var(--line-d); padding: .25rem .7rem; border-radius: 999px; }
.utility .agents:hover { border-color: var(--amber); }

.masthead { position: sticky; top: 0; z-index: 100; background: rgba(251,249,245,.94); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.masthead .wrap { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding-block: .7rem; }
.brand { display: flex; align-items: center; gap: .6rem; text-decoration: none; color: var(--ink); font-family: var(--serif); font-size: 1.35rem; font-weight: 600; }
.brand img { height: 64px; width: auto; }

.nav { display: flex; align-items: center; gap: .35rem; }
.nav > ul { display: flex; align-items: center; gap: .2rem; list-style: none; margin: 0; padding: 0; }
.nav a, .nav .navbtn {
  display: inline-flex; align-items: center; gap: .3rem;
  font: 600 1.02rem/1 var(--sans); color: var(--ink); text-decoration: none;
  padding: .6rem .8rem; border-radius: 8px; background: none; border: 0; cursor: pointer;
}
.nav a:hover, .nav .navbtn:hover { background: var(--band); color: var(--teal-d); }
.has-menu { position: relative; }
.has-menu > .navbtn::after { content: ""; width: .5rem; height: .5rem; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg) translateY(-2px); }
.menu {
  position: absolute; top: calc(100% + 4px); left: 0; min-width: 232px;
  background: #fff; border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow);
  list-style: none; margin: 0; padding: .4rem; display: none;
}
.menu li { display: block; }
.menu a { display: block; padding: .6rem .8rem; border-radius: 8px; }
.has-menu[data-open="true"] .menu { display: block; }
.nav .cta { margin-left: .4rem; }

.nav-tools { display: flex; align-items: center; gap: .5rem; }
.textsize { display: inline-flex; align-items: center; gap: .15rem; }
.textsize button { font: 700 .95rem var(--sans); color: var(--ink); background: var(--band); border: 1px solid var(--line); border-radius: 8px; cursor: pointer; padding: .35rem .5rem; line-height: 1; }
.textsize button[aria-pressed="true"] { background: var(--ink); color: #fff; border-color: var(--ink); }
.textsize .t2 { font-size: 1.05rem; } .textsize .t3 { font-size: 1.2rem; }

.burger { display: none; }
.nav-close, .m-agents { display: none; }

/* =====================================================================
   Sections & hero
   ===================================================================== */
section { padding-block: var(--sec); }
.section-head { max-width: 40ch; margin-bottom: 2.5rem; }
.section-head.center { margin-inline: auto; }
.kicker { display: inline-block; font-weight: 700; color: var(--teal-d); font-size: 1.05rem; margin-bottom: .6rem; }

.hero { padding-top: clamp(1rem, 2.5vw, 2rem); }
.hero .wrap { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(2rem, 5vw, 4rem); align-items: start; }
.hero h1 { margin-bottom: .35em; font-weight: 700; }
.hero p { font-size: 1.28rem; color: #34474a; max-width: 40ch; }
.hero-cta { display: flex; flex-wrap: wrap; gap: .8rem; margin: 1.6rem 0 1.4rem; }
.chips { display: flex; flex-wrap: wrap; gap: .5rem; padding: 0; margin: 0; list-style: none; }
.chip { font-weight: 600; font-size: .98rem; color: var(--ink); background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: .4rem .9rem; }
.hero-media { position: relative; }
.hero-media img { border-radius: 20px; box-shadow: var(--shadow); width: 100%; object-fit: cover; }
.hero-badge {
  position: absolute; left: 16px; bottom: 16px; background: rgba(255,255,255,.96); border: 1px solid var(--line);
  border-radius: 14px; padding: .8rem 1rem; box-shadow: var(--shadow); max-width: 220px; display: flex; gap: .6rem; align-items: center;
}
.hero-badge .dot { width: 12px; height: 12px; border-radius: 50%; background: #35b06a; box-shadow: 0 0 0 4px rgba(53,176,106,.2); flex: none; }
.hero-badge b { display: block; color: var(--ink); font-family: var(--serif); }
.hero-badge span { font-size: .92rem; color: var(--muted); }

/* =====================================================================
   Live Dialogue — the signature moment (dark band)
   ===================================================================== */
.ld { background: var(--ink); color: #eaf3f2; }
.ld .wrap { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem,5vw,4rem); align-items: center; }
.ld h2 { color: #fff; }
.ld .kicker { color: var(--amber); font-size: 1.3rem; margin-bottom: .5rem; }
.ld p { color: #c7d8d7; font-size: 1.15rem; }
.ld .contrast { border-left: 3px solid var(--amber); padding-left: 1rem; color: #eaf3f2; font-style: italic; }

.stage {
  background: linear-gradient(180deg,#0c5a68,#083a44);
  border: 1px solid var(--line-d); border-radius: 20px; padding: 1.6rem; min-height: 340px;
  display: flex; flex-direction: column; gap: 1rem; position: relative; overflow: hidden;
}
.stage-top { display: flex; align-items: center; justify-content: space-between; font-size: .95rem; color: #a9c4c3; }
.status { display: inline-flex; align-items: center; gap: .5rem; font-weight: 600; }
.status .led { width: 10px; height: 10px; border-radius: 50%; background: #35b06a; transition: background .3s; }
.stage[data-phase="alert"] .status .led,
.stage[data-phase="connecting"] .status .led { background: var(--amber); }
.stage .scene {
  flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: .8rem;
}
.scene .big { font-family: var(--serif); font-size: 1.5rem; color: #fff; }
.scene .sub { color: #b9d0cf; max-width: 34ch; margin: 0 auto; }

.pulse { width: 92px; height: 92px; border-radius: 50%; background: rgba(224,138,43,.16); display: grid; place-items: center; }
.pulse .core { width: 46px; height: 46px; border-radius: 50%; background: var(--amber); }
.stage[data-phase="alert"] .pulse { animation: pulse 1s ease-out infinite; }
@keyframes pulse { 0%{box-shadow:0 0 0 0 rgba(224,138,43,.5)} 100%{box-shadow:0 0 0 34px rgba(224,138,43,0)} }

.wave { display: flex; align-items: flex-end; gap: 5px; height: 54px; }
.wave span { width: 6px; background: var(--amber); border-radius: 3px; height: 30%; }
.stage[data-phase="talking"] .wave span { animation: bounce .9s ease-in-out infinite; }
.wave span:nth-child(2){animation-delay:.1s}.wave span:nth-child(3){animation-delay:.2s}
.wave span:nth-child(4){animation-delay:.3s}.wave span:nth-child(5){animation-delay:.15s}
.wave span:nth-child(6){animation-delay:.25s}.wave span:nth-child(7){animation-delay:.05s}
@keyframes bounce { 0%,100%{height:22%} 50%{height:100%} }

.transcript { min-height: 96px; width: 100%; display: flex; flex-direction: column; gap: .5rem; }
.line { background: rgba(255,255,255,.08); border-radius: 12px; padding: .55rem .8rem; text-align: left; max-width: 88%; opacity: 0; transform: translateY(6px); transition: opacity .3s, transform .3s; }
.line.show { opacity: 1; transform: none; }
.line b { color: var(--amber); font-family: var(--sans); font-weight: 700; font-size: .85rem; display: block; }
.line.them { align-self: flex-end; background: rgba(224,138,43,.16); }

.stage-foot { display: flex; gap: .6rem; align-items: center; }
.stage[data-phase="idle"] .replay { display: none; }
.replay { display: inline-flex; }

/* scenes visibility */
.scene[data-when] { display: none; }
.stage[data-phase="idle"] .scene[data-when="idle"],
.stage[data-phase="alert"] .scene[data-when="alert"],
.stage[data-phase="connecting"] .scene[data-when="connecting"],
.stage[data-phase="talking"] .scene[data-when="talking"],
.stage[data-phase="resolved"] .scene[data-when="resolved"] { display: flex; }

/* =====================================================================
   How it works (genuine sequence -> numbered)
   ===================================================================== */
.steps { display: grid; grid-template-columns: repeat(3,1fr); gap: 1.5rem; counter-reset: step; }
.step { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.6rem; }
.step .num { counter-increment: step; font-family: var(--serif); font-size: 1.1rem; color: var(--amber-d); font-weight: 600; }
.step .num::before { content: counter(step, decimal-leading-zero); }
.step h3 { margin: .3rem 0 .4rem; }
.step p { color: var(--muted); margin: 0; }

/* Pillars */
.pillars { display: grid; grid-template-columns: repeat(4,1fr); gap: 1.25rem; }
.pillar { padding: 1.3rem 1.2rem; border-top: 3px solid var(--teal); background: transparent; }
.pillar h3 { font-size: 1.2rem; }
.pillar p { color: var(--muted); margin: 0; font-size: 1.02rem; }

/* Audiences split */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; }
.aud { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); background: #fff; display: flex; flex-direction: column; }
.aud img { aspect-ratio: 16/10; object-fit: cover; }
.aud .body { padding: 1.6rem; }
.aud h3 { margin-bottom: .3rem; }
.aud p { color: var(--muted); }

/* Products */
.products { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; }
.product { display: grid; grid-template-columns: 84px 1fr; gap: 1.2rem; padding: 1.7rem; border-radius: var(--radius); background: var(--ink); color: #eaf3f2; }
.product img { width: 84px; height: 84px; object-fit: contain; background: rgba(255,255,255,.06); border-radius: 12px; padding: 10px; }
.product h3 { color: #fff; margin-bottom: .1rem; }
.product .tag { color: var(--amber); font-weight: 700; font-size: .95rem; }
.product p { color: #c7d8d7; }
.product a { color: #fff; border-color: var(--amber); }

/* Facilities strip */
.facilities { background: var(--band); }
.facilities .wrap { display: flex; align-items: center; justify-content: space-between; gap: 2rem; flex-wrap: wrap; }
.facilities h2 { font-size: clamp(1.5rem,2.6vw,2rem); margin: 0; }
.facilities p { margin: .4rem 0 0; color: var(--muted); }

/* Insights */
.posts { display: grid; grid-template-columns: repeat(3,1fr); gap: 1.5rem; }
.post { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; }
.post img { aspect-ratio: 16/10; object-fit: cover; }
.post .body { padding: 1.2rem 1.3rem 1.4rem; display: flex; flex-direction: column; gap: .5rem; }
.post .cat { font-weight: 700; color: var(--teal-d); font-size: .9rem; }
.post h3 { font-size: 1.22rem; margin: 0; }
.post h3 a { color: var(--ink); text-decoration: none; }
.post h3 a:hover { color: var(--teal-d); }
.post p { color: var(--muted); font-size: 1rem; margin: 0; }

/* FAQ */
.faq { max-width: 820px; margin-inline: auto; }
.qa { border-bottom: 1px solid var(--line); }
.qa summary { font-family: var(--serif); font-size: 1.2rem; color: var(--ink); cursor: pointer; padding: 1.1rem 0; list-style: none; display: flex; justify-content: space-between; gap: 1rem; align-items: center; }
.qa summary::-webkit-details-marker { display: none; }
.qa summary::after { content: "+"; font-family: var(--sans); color: var(--amber-d); font-size: 1.6rem; line-height: 1; flex: none; }
.qa[open] summary::after { content: "\2013"; }
.qa .a { padding: 0 0 1.2rem; color: var(--muted); }
.qa .a p { margin: 0; }

/* Final CTA */
.cta-band { background: var(--ink); color: #fff; text-align: center; }
.cta-band h2 { color: #fff; }
.cta-band p { color: #c7d8d7; margin-inline: auto; }
.cta-band .row { display: flex; gap: .8rem; justify-content: center; flex-wrap: wrap; margin-top: 1.4rem; }

/* Footer */
.foot { background: #063744; color: #bdd3d2; padding-block: clamp(3rem,6vw,4.5rem) 2rem; }
.foot .cols { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.2fr; gap: 2rem; }
.foot h4 { color: #fff; font-family: var(--sans); font-size: 1rem; letter-spacing: .02em; margin: 0 0 .9rem; }
.foot ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: .5rem; }
.foot a { color: #cfe0e0; text-decoration: none; }
.foot a:hover { color: var(--amber); }
.foot .blurb { max-width: 34ch; color: #a9c4c3; }
.foot .foot-logo { height: 52px; margin-bottom: 1rem; }
.foot address { font-style: normal; color: #cfe0e0; line-height: 1.7; }
.foot .powered { display: flex; align-items: center; gap: .5rem; margin-top: 1rem; font-size: .95rem; color: #9fbab9; }
.foot .powered img { height: 26px; }
.foot .legal { border-top: 1px solid var(--line-d); margin-top: 2.5rem; padding-top: 1.4rem; display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; font-size: .92rem; color: #8fabaa; }
.foot .legal a { color: #8fabaa; }

/* Mobile call bar */
.callbar { display: none; }

/* =====================================================================
   Responsive
   ===================================================================== */
@media (max-width: 960px) {
  .hero .wrap, .ld .wrap { grid-template-columns: 1fr; }
  .hero-media { order: -1; }
  .steps, .pillars, .posts { grid-template-columns: 1fr 1fr; }
  .foot .cols { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 720px) {
  .nav { position: fixed; inset: 0; z-index: 200; width: 100%; height: 100dvh; background: var(--ink); color: #fff;
         visibility: hidden; opacity: 0; transition: opacity .22s ease, visibility .22s ease; padding: 4.75rem 1.4rem 2rem; overflow-y: auto;
         display: flex; flex-direction: column; }
  .nav[data-open="true"] { visibility: visible; opacity: 1; }
  .nav-close { display: flex; align-items: center; justify-content: center; position: absolute; top: 1rem; right: 1.1rem;
               width: 46px; height: 46px; border-radius: 12px; background: rgba(255,255,255,.14); border: 0; color: #fff; font-size: 2rem; line-height: 1; cursor: pointer; }
  .nav > ul { flex-direction: column; align-items: stretch; gap: .1rem; }
  .nav a, .nav .navbtn { width: 100%; font-size: 1.2rem; padding: .8rem .5rem; color: #fff; }
  .nav a:hover, .nav .navbtn:hover { background: rgba(255,255,255,.08); color: #fff; }
  .has-menu .menu { position: static; background: transparent; box-shadow: none; border: 0; border-left: 2px solid rgba(255,255,255,.28); border-radius: 0; margin: 0 0 .4rem .6rem; padding: 0; }
  .has-menu .menu a { color: #cfe0e0; }
  .has-menu > .navbtn::after { margin-left: auto; border-color: #fff; }
  .nav .cta { margin: 1.2rem 0 0; }
  .burger { display: inline-flex; align-items: center; justify-content: center; width: 46px; height: 46px; border-radius: 10px;
            background: var(--ink); border: 0; cursor: pointer; z-index: 120; }
  .burger span, .burger span::before, .burger span::after { content: ""; display: block; width: 22px; height: 2px; background: #fff; position: relative; transition: transform .2s, opacity .2s; }
  .burger span::before { position: absolute; top: -7px; } .burger span::after { position: absolute; top: 7px; }
  .burger[aria-expanded="true"] span { background: transparent; }
  .burger[aria-expanded="true"] span::before { transform: translateY(7px) rotate(45deg); }
  .burger[aria-expanded="true"] span::after { transform: translateY(-7px) rotate(-45deg); }
  .nav-tools .textsize { display: none; }
  .m-agents { display: inline-flex; margin-left: auto; padding: .4rem .7rem; font-size: .65rem; }
  .steps, .pillars, .posts, .split, .products, .foot .cols { grid-template-columns: 1fr; }
  .utility .wrap { justify-content: center; }
  body { padding-bottom: 122px; }
  .callbar { display: flex; flex-direction: column; position: fixed; bottom: 0; left: 0; right: 0; z-index: 90; background: var(--ink); border-top: 1px solid var(--line-d); transform: translateY(110%); transition: transform .28s ease; }
  .callbar.show { transform: none; }
  .callbar a { text-align: center; color: #fff; text-decoration: none; font-weight: 700; padding: .8rem 1rem; }
  .callbar a + a { border-top: 1px solid var(--line-d); color: var(--amber); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
}

/* =====================================================================
   Subpages, prose, forms  (added for full-site build)
   ===================================================================== */
@media (max-width: 720px){ .brand img{ height: 48px; } .brand span{ font-size: 1.1rem; } }

.page-hero { background: var(--band); padding-block: clamp(2.5rem,6vw,4.25rem); }
.page-hero h1 { font-weight: 700; max-width: 30ch; }
.page-hero p { font-size: 1.2rem; color: var(--muted); max-width: 62ch; }
.page-hero .hero-cta { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 1.4rem; }
.crumbs { font-size: .95rem; color: var(--muted); margin-bottom: 1rem; }
.crumbs a { color: var(--teal-d); text-decoration: none; }
.crumbs a:hover { color: var(--amber-d); }

.duo { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem,5vw,4rem); align-items: center; }
.duo.flip .duo-media { order: -1; }
.duo img { border-radius: 16px; box-shadow: var(--shadow); width: 100%; object-fit: cover; }
@media (max-width: 900px){ .duo, .duo.flip { grid-template-columns: 1fr; } .duo.flip .duo-media { order: 0; } }

.feat { list-style: none; padding: 0; margin: 1.3rem 0; display: grid; gap: 1rem; max-width: var(--measure); }
.feat li { padding-left: 1.9rem; position: relative; }
.feat li::before { content: ""; position: absolute; left: 0; top: .55em; width: 12px; height: 12px; border-radius: 50%; background: var(--amber); }
.feat b { color: var(--ink); }

.prose { max-width: 68ch; margin-inline: auto; }
.prose > p, .prose li { font-size: 1.12rem; }
.prose h2 { margin: 2.2rem 0 .6rem; }
.prose ul { padding-left: 1.2rem; }
.prose li { margin-bottom: .5rem; }
.post-meta { font-weight: 600; color: var(--muted); margin-bottom: 1.2rem; }
.post-meta .cat { color: var(--teal-d); }
.post-hero-img { border-radius: 16px; box-shadow: var(--shadow); margin: 0 auto 2rem; max-width: 900px; width: 100%; }

.form { max-width: 660px; margin-top: 1.5rem; }
.form .field { margin-bottom: 1rem; }
.form label { display: block; font-weight: 600; color: var(--ink); margin-bottom: .35rem; }
.req { color: var(--amber-d); }
.form input, .form select, .form textarea { width: 100%; font: inherit; padding: .75rem .9rem; border: 1.5px solid var(--line); border-radius: 10px; background: #fff; color: var(--text); }
.form textarea { min-height: 130px; resize: vertical; }
.form input:focus, .form select:focus, .form textarea:focus { border-color: var(--teal); outline: 3px solid rgba(17,136,161,.28); outline-offset: 0; }
.form .row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
@media (max-width: 600px){ .form .row2 { grid-template-columns: 1fr; } }
.form .hp { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.form-note { margin-top: 1rem; color: var(--muted); font-size: 1rem; }

.contact-card { background: var(--ink); color: #eaf3f2; border-radius: var(--radius); padding: 1.8rem; }
.contact-card h3 { color: #fff; }
.contact-card a { color: #fff; }
.contact-card address { font-style: normal; line-height: 1.9; color: #cfe0e0; }

/* ===== Full-site build round 2: hero media, info banner, 4-steps, demo audio ===== */

/* Subpage hero with an image on the right */
.page-hero.with-media .wrap { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(2rem,5vw,3.5rem); align-items: center; }
.page-hero .hero-figure img { border-radius: 18px; box-shadow: var(--shadow); width: 100%; max-height: 440px; object-fit: cover; }
.hero-stack { display: grid; gap: 1rem; }
.hero-stack img { border-radius: 14px; box-shadow: var(--shadow); width: 100%; height: 145px; object-fit: cover; }
@media (max-width: 720px){ .page-hero.with-media .wrap { grid-template-columns: 1fr; } .page-hero .hero-figure { display: none; } }

/* Info banner (quick snapshots under the hero) */
.infobar { background: var(--band); border-block: 1px solid var(--line); padding-block: clamp(2rem,4vw,3rem); }
.infobar .wrap { display: grid; grid-template-columns: repeat(4,1fr); gap: 1.75rem; }
.info { display: flex; flex-direction: column; gap: .5rem; }
.info .ic { width: 38px; height: 38px; color: var(--teal); }
.info h3 { font-family: var(--sans); font-size: 1.08rem; font-weight: 700; color: var(--ink); margin: 0; }
.info p { font-size: 1rem; color: var(--muted); margin: 0; max-width: 32ch; }
@media (max-width: 900px){ .infobar .wrap { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px){ .infobar .wrap { grid-template-columns: 1fr; } }

/* Four-across steps (Join page) */
@media (min-width: 961px){ .steps.four { grid-template-columns: repeat(4,1fr); } }
.steps.four .num::before { content: counter(step); }

/* Live Dialogue: make it read as audio, and label it a simulation */
.stage .sim { font-size: .74rem; letter-spacing: .05em; text-transform: uppercase; color: #9fc0bf; border: 1px solid var(--line-d); padding: .12rem .55rem; border-radius: 999px; }
.audio-ind { display: inline-flex; align-items: center; gap: .45rem; color: var(--amber); font-weight: 700; font-size: .98rem; margin-bottom: .5rem; }
.audio-ind svg { width: 18px; height: 18px; }

/* ---- info banner under hero (item 6) ---- */
.infobar { background: #7f7b74; color: #ffffff; padding-block: clamp(2.25rem,5vw,3.25rem); }
.infobar .wrap { display: grid; grid-template-columns: repeat(4,1fr); gap: 1.75rem; }
.infobar .item { display: flex; flex-direction: column; gap: .5rem; }
.infobar .ico { width: 34px; height: 34px; color: var(--amber); }
.infobar h3 { color: #fff; font-size: 1.12rem; margin: 0; }
.infobar p { color: #f4f2ee; font-size: 1rem; margin: 0; }
@media (max-width: 860px){ .infobar .wrap { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px){ .infobar .wrap { grid-template-columns: 1fr; } }

/* ---- page-hero with image (item 5) ---- */
.page-hero.has-img .wrap { display: grid; grid-template-columns: 1.02fr .98fr; gap: clamp(2rem,5vw,4rem); align-items: center; }
.page-hero .ph-media img { border-radius: 18px; box-shadow: var(--shadow); width: 100%; object-fit: cover; }
@media (max-width: 900px){ .page-hero.has-img .wrap { grid-template-columns: 1fr; } .page-hero .ph-media { margin-top: 1.5rem; } }

/* ---- stacked images (item 7, Join page) ---- */
.stack { display: flex; flex-direction: column; gap: 1rem; }
.stack img { border-radius: 14px; box-shadow: var(--shadow); width: 82%; object-fit: cover; }
.stack img:nth-child(2){ align-self: flex-end; }
.stack img:nth-child(3){ align-self: center; }
@media (max-width: 900px){ .stack img { width: 100%; align-self: stretch !important; } .stack img:nth-child(2), .stack img:nth-child(3) { display: none; } }

/* ---- four-across steps (item 8) ---- */
.steps.four { grid-template-columns: repeat(4,1fr); }
@media (max-width: 1000px){ .steps.four { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px){ .steps.four { grid-template-columns: 1fr; } }

/* ---- demo sound controls (item 3) ---- */
.stage .snd { display: inline-flex; align-items: center; gap: .35rem; background: rgba(255,255,255,.1); border: 1px solid var(--line-d); color: #eaf3f2; border-radius: 999px; padding: .3rem .7rem; font: 600 .85rem var(--sans); cursor: pointer; }
.stage .snd:hover { background: rgba(255,255,255,.18); }
.stage .snd[aria-pressed="true"] { background: var(--amber); color: #22160a; border-color: var(--amber); }
.stage .disclaimer { font-size: .78rem; color: #8fb0af; text-align: center; margin: 0; }

/* utility-bar consultation button (item 6) */
.util-cta { background:#f0a020; color:#22160a; border-radius:999px; padding:.3rem .9rem; font-weight:600; text-decoration:none; }
.util-cta:hover { background:#d98a12; color:#22160a; }
/* keep horizontal overflow from ever appearing on mobile */
html { overflow-x: hidden; }

/* "Keep reading" link on blog cards */
.readmore { margin-top: auto; padding-top: .3rem; align-self: flex-start; font-weight: 700; color: var(--teal-d); text-decoration: none; border-bottom: 2px solid var(--amber); padding-bottom: 1px; }
.readmore:hover { color: var(--amber-d); border-color: var(--amber-d); }

/* ---- homepage recruitment band (agents & brokers) ---- */
.recruit { background: var(--ink); color: #eaf3f2; }
.recruit .wrap { display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(2rem,5vw,4.5rem); align-items: center; }
.recruit .kicker { color: var(--amber); }
.recruit h2 { color: #fff; }
.recruit p { color: #c7d8d7; font-size: 1.14rem; }
.recruit .btn { margin-top: 1.5rem; }
.recruit-points { list-style: none; margin: 0; padding: 0; display: grid; gap: 1.3rem; }
.recruit-points li { padding-left: 1.6rem; position: relative; color: #c1d5d4; line-height: 1.5; }
.recruit-points li::before { content: ""; position: absolute; left: 0; top: .5em; width: 11px; height: 11px; border-radius: 50%; background: var(--amber); }
.recruit-points b { color: #fff; display: block; font-family: var(--serif); font-size: 1.16rem; font-weight: 600; margin-bottom: .15rem; }
@media (max-width: 860px){ .recruit .wrap { grid-template-columns: 1fr; } }

/* inclusive note under the recruitment CTA */
.recruit-note { margin: .95rem 0 0; font-size: .98rem; color: #9fbab9; max-width: 48ch; }

/* scroll cue (join page) — pinned to the bottom of the viewport at the fold */
.scroll-cue { position: fixed; left: 50%; bottom: 1.4rem; transform: translateX(-50%); z-index: 70;
  display: flex; flex-direction: column; align-items: center; gap: .3rem;
  padding: .5rem 1rem; border-radius: 999px; background: rgba(251,249,245,.92); box-shadow: var(--shadow);
  color: var(--teal-d); text-decoration: none; font-weight: 700; font-size: .92rem; transition: opacity .3s ease; }
.scroll-cue:hover { color: var(--amber-d); }
.scroll-cue .chev { width: 24px; height: 24px; stroke: var(--amber); stroke-width: 2.5; fill: none; stroke-linecap: round; stroke-linejoin: round; animation: cue-bounce 1.7s ease-in-out infinite; }
.scroll-cue.hidden { opacity: 0; pointer-events: none; }
@keyframes cue-bounce { 0%,100%{ transform: translateY(0); } 50%{ transform: translateY(7px); } }
/* keep it clear of the mobile call bar */
@media (max-width: 720px){ .scroll-cue { bottom: calc(env(safe-area-inset-bottom, 0px) + 1rem); } }
