/* ==========================================================================
   Lakeview Cleaning Co. — demo site styles
   Palette: white ground, deep navy text, teal accents.
   ========================================================================== */

:root {
  --navy-900: #071a33;
  --navy-800: #0b2545;
  --navy-700: #15375f;
  --navy-500: #3c5878;
  --navy-400: #5b7391;
  --teal-600: #0d7f78;
  --teal-500: #11a39a;
  --teal-400: #2dd4bf;
  --teal-50: #effbf8;
  --ink: var(--navy-800);
  --muted: #4d6782;
  --white: #ffffff;
  --tint: #f5f8fb;
  --tint-2: #eef3f8;
  --line: #dfe7ef;
  --line-soft: #ebf1f6;
  --danger: #b3261e;
  --danger-bg: #fdf2f1;

  --radius-sm: 8px;
  --radius: 14px;
  --radius-lg: 22px;
  --shadow-sm: 0 1px 2px rgba(7, 26, 51, 0.06), 0 2px 8px rgba(7, 26, 51, 0.05);
  --shadow: 0 10px 30px rgba(7, 26, 51, 0.08);
  --shadow-lg: 0 24px 60px rgba(7, 26, 51, 0.13);

  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-display: "Plus Jakarta Sans", "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

  --container: 1180px;
  --gutter: 20px;
  --header-h: 68px;
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

/* ---------- Reset / base ---------- */

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

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

body {
  margin: 0;
  background: var(--white);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-wrap: break-word;
}

body.nav-open { overflow: hidden; }

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

h1, h2, h3 {
  font-family: var(--font-display);
  color: var(--navy-800);
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin: 0 0 0.5em;
  font-weight: 700;
  text-wrap: balance;
}

h1 { font-size: clamp(2.1rem, 6.2vw, 3.6rem); }
h2 { font-size: clamp(1.6rem, 3.6vw, 2.4rem); }
h3 { font-size: 1.15rem; }

p { margin: 0 0 1rem; }
p:last-child { margin-bottom: 0; }

ul, ol { margin: 0; padding: 0; list-style: none; }

a { color: var(--teal-600); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--navy-700); }

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

::selection { background: var(--teal-400); color: var(--navy-900); }

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.container.narrow { max-width: 820px; }

.anchor-top {
  display: block;
  height: 0;
  scroll-margin-top: 120px;
}

/* ---------- Skip link ---------- */

.skip-link {
  position: absolute;
  left: 50%;
  top: 8px;
  transform: translate(-50%, -200%);
  z-index: 200;
  background: var(--navy-800);
  color: #fff;
  padding: 10px 18px;
  border-radius: 999px;
  font-weight: 600;
  text-decoration: none;
  transition: transform 0.18s var(--ease);
}

.skip-link:focus-visible {
  transform: translate(-50%, 0);
  color: #fff;
}

/* ---------- Demo banner ---------- */

.demo-banner {
  background: var(--navy-900);
  color: #cfe3f5;
  font-size: 0.8rem;
  text-align: center;
  padding: 9px var(--gutter);
  letter-spacing: 0.01em;
}

.demo-banner strong { color: var(--teal-400); font-weight: 600; }

/* ---------- Header / nav ---------- */

.site-header {
  position: sticky;
  top: 0;
  /* Above the mobile drawer (110) so the close button stays tappable. */
  z-index: 120;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: saturate(170%) blur(10px);
  border-bottom: 1px solid transparent;
  transition: box-shadow 0.25s var(--ease), border-color 0.25s var(--ease);
}

.site-header.is-stuck {
  border-bottom-color: var(--line-soft);
  box-shadow: 0 6px 24px rgba(7, 26, 51, 0.07);
}

.header-inner {
  min-height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--navy-800);
  padding: 6px 2px;
  border-radius: var(--radius-sm);
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  flex: 0 0 auto;
  border-radius: 11px;
  background: linear-gradient(145deg, var(--navy-800), var(--navy-700));
  color: var(--teal-400);
  box-shadow: var(--shadow-sm);
}

.brand-mark svg { width: 24px; height: 24px; }

.brand-text { display: flex; flex-direction: column; line-height: 1.1; }

.brand-name {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.02rem;
  letter-spacing: -0.02em;
}

.brand-sub {
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--teal-600);
  font-weight: 600;
}

.nav-toggle {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 9px 15px;
  font: inherit;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--navy-800);
  cursor: pointer;
  transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}

.nav-toggle:hover { border-color: var(--teal-500); box-shadow: var(--shadow-sm); }

.nav-toggle-bars {
  display: grid;
  gap: 4px;
  width: 17px;
}

.nav-toggle-bars span {
  display: block;
  height: 2px;
  border-radius: 2px;
  background: var(--navy-800);
  transition: transform 0.22s var(--ease), opacity 0.18s var(--ease);
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bars span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

.primary-nav ul {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.primary-nav a {
  display: block;
  color: var(--navy-700);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
  padding: 11px 12px;
  border-radius: 10px;
  transition: background-color 0.18s var(--ease), color 0.18s var(--ease);
}

.primary-nav a:hover { background: var(--tint); color: var(--navy-800); }

.primary-nav a[aria-current="true"] {
  color: var(--teal-600);
  background: var(--teal-50);
}

/* Mobile drawer */
@media (max-width: 899px) {
  .primary-nav {
    position: fixed;
    inset: 0 0 0 auto;
    width: min(330px, 86vw);
    background: var(--white);
    border-left: 1px solid var(--line-soft);
    box-shadow: var(--shadow-lg);
    padding: 22px 20px calc(28px + env(safe-area-inset-bottom, 0px));
    display: flex;
    flex-direction: column;
    gap: 14px;
    transform: translateX(100%);
    transition: transform 0.28s var(--ease), visibility 0.28s linear;
    visibility: hidden;
    overflow-y: auto;
    z-index: 110;
  }

  .primary-nav.is-open { transform: none; visibility: visible; }

  /* Opaque header while the drawer is open, so nothing shows through the blur. */
  body.nav-open .site-header { background: var(--white); }

  .primary-nav ul { margin-top: 42px; }

  .primary-nav a { font-size: 1.05rem; padding: 13px 14px; }

  .btn-nav { width: 100%; }

  .nav-scrim {
    position: fixed;
    inset: 0;
    background: rgba(7, 26, 51, 0.42);
    backdrop-filter: blur(2px);
    border: 0;
    padding: 0;
    margin: 0;
    z-index: 105;
    opacity: 0;
    animation: fade-in 0.22s var(--ease) forwards;
    cursor: pointer;
  }
}

@keyframes fade-in { to { opacity: 1; } }

@media (min-width: 900px) {
  .nav-toggle { display: none; }

  .primary-nav {
    display: flex;
    align-items: center;
    gap: 18px;
  }

  .primary-nav ul {
    flex-direction: row;
    align-items: center;
    gap: 2px;
  }
}

/* ---------- Buttons ---------- */

.btn {
  --btn-bg: var(--navy-800);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: var(--btn-bg);
  color: #fff;
  border: 1px solid transparent;
  border-radius: 999px;
  padding: 12px 22px;
  font-family: var(--font-display);
  font-size: 0.94rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.18s var(--ease), box-shadow 0.2s var(--ease),
    background-color 0.2s var(--ease), color 0.2s var(--ease), border-color 0.2s var(--ease);
}

.btn:hover { transform: translateY(-1px); box-shadow: var(--shadow); color: #fff; }
.btn:active { transform: translateY(0); box-shadow: var(--shadow-sm); }

.btn-primary {
  --btn-bg: linear-gradient(135deg, var(--teal-600), var(--teal-500));
  background: var(--btn-bg);
  box-shadow: 0 8px 20px rgba(13, 127, 120, 0.22);
}

.btn-primary:hover { box-shadow: 0 12px 28px rgba(13, 127, 120, 0.3); }

.btn-ghost {
  background: var(--white);
  color: var(--navy-800);
  border-color: var(--line);
}

.btn-ghost:hover { color: var(--navy-800); border-color: var(--navy-400); }

.btn-soft {
  background: var(--tint);
  color: var(--navy-800);
  border-color: var(--line-soft);
}

.btn-soft:hover { color: var(--navy-800); background: var(--tint-2); }

.btn-lg { padding: 15px 28px; font-size: 1rem; }
.btn-block { width: 100%; }

/* ---------- Shared section bits ---------- */

.section { padding: clamp(56px, 8vw, 104px) 0; scroll-margin-top: 84px; }
.section-tint { background: var(--tint); border-block: 1px solid var(--line-soft); }

.section-head {
  max-width: 720px;
  margin-bottom: clamp(32px, 4vw, 52px);
}

.eyebrow {
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--teal-600);
  margin: 0 0 12px;
}

.section-sub {
  color: var(--muted);
  font-size: 1.04rem;
  max-width: 62ch;
}

.lede {
  color: var(--muted);
  font-size: clamp(1.02rem, 2.1vw, 1.16rem);
  max-width: 56ch;
  margin-bottom: 28px;
}

.note-line {
  margin-top: 32px;
  text-align: center;
  color: var(--muted);
  font-size: 0.95rem;
}

.note-line.note-left { text-align: left; margin-top: 24px; }

.media-frame {
  margin: 0;
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, var(--tint-2), #dff1ee 60%, var(--teal-50));
  position: relative;
}

/* Keeps layout intact if an image fails to load */
.media-frame img { width: 100%; height: 100%; object-fit: cover; }
.media-frame img.img-failed { visibility: hidden; }

/* ---------- Hero ---------- */

.hero {
  padding: clamp(40px, 6vw, 80px) 0 clamp(48px, 7vw, 92px);
  background:
    radial-gradient(120% 90% at 92% -10%, var(--teal-50) 0%, rgba(239, 251, 248, 0) 58%),
    radial-gradient(90% 70% at -10% 0%, #f3f8fd 0%, rgba(243, 248, 253, 0) 60%),
    var(--white);
}

.hero-grid {
  display: grid;
  gap: clamp(32px, 5vw, 56px);
  align-items: center;
}

.hero h1 { margin-bottom: 18px; }

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 30px;
}

.hero-points {
  display: grid;
  gap: 10px;
  border-top: 1px solid var(--line-soft);
  padding-top: 22px;
}

.hero-points li {
  position: relative;
  padding-left: 30px;
  color: var(--navy-700);
  font-size: 0.96rem;
}

.hero-points li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.42em;
  width: 18px;
  height: 10px;
  border-left: 2.5px solid var(--teal-500);
  border-bottom: 2.5px solid var(--teal-500);
  border-radius: 2px;
  transform: rotate(-45deg);
}

.hero-media { position: relative; }

.hero-figure {
  aspect-ratio: 4 / 3;
  box-shadow: var(--shadow-lg);
}

.hero-card {
  background: var(--white);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 18px 20px;
  margin: -34px 16px 0;
  position: relative;
}

.hero-card-title {
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--navy-800);
  margin: 0 0 4px;
  font-size: 0.98rem;
}

.hero-card-body { color: var(--muted); font-size: 0.92rem; margin: 0; }

@media (min-width: 860px) {
  .hero-grid { grid-template-columns: 1.05fr 0.95fr; }
  .hero-figure { aspect-ratio: 5 / 4; }
  .hero-card { max-width: 330px; margin: -46px 0 0 -28px; padding: 20px 22px; }
}

/* ---------- Value strip ---------- */

.strip {
  background: var(--navy-800);
  color: #dbe7f3;
  padding: clamp(34px, 5vw, 48px) 0;
}

.strip-grid {
  display: grid;
  gap: clamp(22px, 3vw, 34px);
}

.strip-item h2 {
  color: #fff;
  font-size: 1.08rem;
  margin-bottom: 6px;
  position: relative;
  padding-top: 16px;
}

.strip-item h2::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 34px;
  height: 3px;
  border-radius: 3px;
  background: var(--teal-400);
}

.strip-item p { color: #b7cbe0; font-size: 0.94rem; margin: 0; }

@media (min-width: 760px) {
  .strip-grid { grid-template-columns: repeat(3, 1fr); }
}

/* ---------- Services cards ---------- */

.cards {
  display: grid;
  gap: 22px;
}

@media (min-width: 720px) {
  .cards { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 1040px) {
  .cards { grid-template-columns: repeat(3, 1fr); }
}

.card {
  display: flex;
  flex-direction: column;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform 0.26s var(--ease), box-shadow 0.26s var(--ease), border-color 0.26s var(--ease);
}

.card:hover,
.card:focus-within {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: #cfe0ee;
}

.card-media {
  border-radius: 0;
  aspect-ratio: 16 / 10;
  flex: 0 0 auto;
}

.card-body {
  padding: 24px 22px 26px;
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  gap: 2px;
}

.card-body h3 { font-size: 1.28rem; margin-bottom: 6px; }

.card-lede { color: var(--muted); font-size: 0.95rem; margin-bottom: 16px; }

.card-featured { border-color: var(--teal-500); box-shadow: 0 14px 40px rgba(13, 127, 120, 0.13); }

.badge {
  align-self: flex-start;
  background: var(--teal-50);
  color: var(--teal-600);
  border: 1px solid #bfece6;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  padding: 5px 11px;
  border-radius: 999px;
  margin-bottom: 12px;
}

.check-list { display: grid; gap: 9px; margin-bottom: 18px; }

.check-list li {
  position: relative;
  padding-left: 27px;
  font-size: 0.93rem;
  color: var(--navy-700);
}

.check-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.3em;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--teal-50);
  border: 1px solid #b7e8e1;
}

.check-list li::after {
  content: "";
  position: absolute;
  left: 4.5px;
  top: 0.62em;
  width: 7px;
  height: 4px;
  border-left: 2px solid var(--teal-600);
  border-bottom: 2px solid var(--teal-600);
  transform: rotate(-45deg);
}

.card-meta {
  font-size: 0.86rem;
  color: var(--navy-400);
  margin: 0 0 18px;
  padding-top: 14px;
  border-top: 1px dashed var(--line);
}

.card-body .btn { margin-top: auto; align-self: flex-start; }

/* ---------- How it works ---------- */

.steps {
  display: grid;
  gap: 20px;
  counter-reset: step;
}

@media (min-width: 680px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .steps { grid-template-columns: repeat(4, 1fr); } }

.step {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px 22px;
  box-shadow: var(--shadow-sm);
  position: relative;
}

.step-num {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 12px;
  background: linear-gradient(140deg, var(--navy-800), var(--navy-700));
  color: var(--teal-400);
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.02rem;
  margin-bottom: 16px;
}

.step h3 { font-size: 1.1rem; margin-bottom: 6px; }
.step p { color: var(--muted); font-size: 0.93rem; margin: 0; }

.cta-band {
  margin-top: clamp(34px, 5vw, 56px);
  background: linear-gradient(135deg, var(--navy-800), #123152 65%, var(--teal-600));
  color: #fff;
  border-radius: var(--radius-lg);
  padding: clamp(26px, 4vw, 40px);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  box-shadow: var(--shadow);
}

.cta-band h3 { color: #fff; font-size: clamp(1.3rem, 2.6vw, 1.7rem); margin-bottom: 4px; }
.cta-band p { color: #cadcec; margin: 0; }

.cta-band .btn-primary {
  background: #fff;
  color: var(--teal-600);
  box-shadow: 0 10px 26px rgba(4, 18, 34, 0.26);
}

.cta-band .btn-primary:hover { color: var(--navy-800); }

/* ---------- Service area ---------- */

.area-grid {
  display: grid;
  gap: clamp(30px, 5vw, 56px);
  align-items: center;
}

@media (min-width: 900px) {
  .area-grid { grid-template-columns: 1.15fr 0.85fr; }
}

.area-cols {
  display: grid;
  gap: 26px;
  margin-top: 28px;
}

@media (min-width: 560px) { .area-cols { grid-template-columns: 1.4fr 1fr; } }

.area-sub {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.13em;
  color: var(--navy-400);
  font-weight: 700;
  margin-bottom: 12px;
}

.pill-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.pill-list li {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 7px 14px;
  font-size: 0.88rem;
  color: var(--navy-700);
  box-shadow: var(--shadow-sm);
}

.area-media {
  aspect-ratio: 4 / 5;
  box-shadow: var(--shadow-lg);
  max-height: 560px;
}

/* ---------- FAQ ---------- */

.faq-list {
  display: grid;
  gap: 12px;
}

.faq-item {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}

.faq-item[open] { border-color: #cbe6e2; box-shadow: var(--shadow); }

.faq-item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  cursor: pointer;
  padding: 18px 20px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1rem;
  color: var(--navy-800);
  list-style: none;
  border-radius: var(--radius);
}

.faq-item summary::-webkit-details-marker { display: none; }

.faq-item summary::after {
  content: "";
  flex: 0 0 auto;
  width: 11px;
  height: 11px;
  border-right: 2.5px solid var(--teal-600);
  border-bottom: 2.5px solid var(--teal-600);
  transform: rotate(45deg) translateY(-2px);
  transition: transform 0.24s var(--ease);
}

.faq-item[open] summary::after { transform: rotate(225deg) translateY(-2px); }

.faq-answer {
  padding: 0 20px 20px;
  color: var(--muted);
  font-size: 0.97rem;
  max-width: 68ch;
}

/* ---------- Quote section ---------- */

.quote-grid {
  display: grid;
  gap: clamp(30px, 5vw, 54px);
  align-items: start;
}

@media (min-width: 960px) {
  .quote-grid { grid-template-columns: 0.85fr 1.15fr; }
  .quote-intro { position: sticky; top: calc(var(--header-h) + 24px); }
}

.contact-list {
  display: grid;
  gap: 16px;
  margin: 30px 0 14px;
  padding: 24px;
  background: var(--tint);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
}

@media (min-width: 520px) { .contact-list { grid-template-columns: repeat(2, 1fr); } }

.contact-list dt {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-weight: 700;
  color: var(--navy-400);
  margin-bottom: 3px;
}

.contact-list dd {
  margin: 0;
  font-weight: 600;
  color: var(--navy-800);
  font-size: 0.96rem;
}

.placeholder-note { font-size: 0.85rem; color: var(--navy-400); }

.quote-form-wrap {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  padding: clamp(22px, 3.4vw, 34px);
}

.form-demo-notice {
  background: var(--teal-50);
  border: 1px solid #c3eae5;
  border-left: 4px solid var(--teal-500);
  border-radius: var(--radius-sm);
  padding: 14px 16px;
  font-size: 0.9rem;
  color: #13504c;
  margin-bottom: 24px;
}

.form-demo-notice strong { color: #0b3b38; }

.quote-form { display: grid; gap: 18px; }

.field { display: grid; gap: 7px; }

.field-row { display: grid; gap: 18px; }

@media (min-width: 560px) { .field-row { grid-template-columns: repeat(2, 1fr); } }

label {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--navy-800);
}

.req { color: var(--teal-600); }

input,
select,
textarea {
  font: inherit;
  font-size: 1rem;
  color: var(--navy-800);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 12px 14px;
  width: 100%;
  transition: border-color 0.18s var(--ease), box-shadow 0.18s var(--ease);
}

textarea { resize: vertical; min-height: 120px; }

select {
  appearance: none;
  background-image:
    linear-gradient(45deg, transparent 50%, var(--navy-500) 50%),
    linear-gradient(135deg, var(--navy-500) 50%, transparent 50%);
  background-position: calc(100% - 20px) calc(50% + 2px), calc(100% - 14px) calc(50% + 2px);
  background-size: 6px 6px, 6px 6px;
  background-repeat: no-repeat;
  padding-right: 42px;
}

input::placeholder,
textarea::placeholder { color: #93a8bf; }

input:hover,
select:hover,
textarea:hover { border-color: #c3d3e2; }

input:focus,
select:focus,
textarea:focus {
  outline: none;
  border-color: var(--teal-500);
  box-shadow: 0 0 0 4px rgba(17, 163, 154, 0.16);
}

input:focus-visible,
select:focus-visible,
textarea:focus-visible { outline: none; }

.hint { font-size: 0.82rem; color: var(--navy-400); margin: 0; }

.error {
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--danger);
  margin: 0;
}

.field.has-error input,
.field.has-error select,
.field.has-error textarea {
  border-color: var(--danger);
  background: var(--danger-bg);
}

.field.has-error input:focus,
.field.has-error select:focus,
.field.has-error textarea:focus {
  box-shadow: 0 0 0 4px rgba(179, 38, 30, 0.14);
}

.form-foot { font-size: 0.82rem; color: var(--navy-400); text-align: center; margin: 0; }

/* Demo result panel */
.form-result {
  margin-top: 24px;
  border-radius: var(--radius);
  padding: 20px 22px;
  border: 1px solid var(--line);
  background: var(--tint);
  font-size: 0.93rem;
}

.form-result[hidden] { display: none; }

.form-result h3 { font-size: 1.05rem; margin-bottom: 8px; }

.form-result.is-invalid { border-color: #f0c9c5; background: var(--danger-bg); }
.form-result.is-invalid h3 { color: var(--danger); }

.form-result.is-demo { border-color: #c3eae5; background: var(--teal-50); }
.form-result.is-demo h3 { color: #0b3b38; }

.form-result p { color: var(--muted); }
.form-result.is-demo p { color: #1c524e; }

.result-list {
  display: grid;
  gap: 8px;
  margin: 14px 0 0;
  padding: 16px;
  background: rgba(255, 255, 255, 0.72);
  border-radius: var(--radius-sm);
  border: 1px solid rgba(11, 37, 69, 0.07);
}

.result-list div {
  display: grid;
  grid-template-columns: 112px 1fr;
  gap: 10px;
  font-size: 0.9rem;
}

.result-list dt {
  color: var(--navy-400);
  font-weight: 600;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding-top: 2px;
}

.result-list dd { margin: 0; color: var(--navy-800); white-space: pre-wrap; }

.result-error-list { display: grid; gap: 6px; margin-top: 10px; }

.result-error-list li {
  padding-left: 18px;
  position: relative;
  color: #8a241e;
  font-size: 0.9rem;
}

.result-error-list li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 0.55em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--danger);
}

.result-foot {
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px dashed rgba(11, 37, 69, 0.14);
  font-size: 0.85rem;
}

/* ---------- Footer ---------- */

.site-footer {
  background: var(--navy-900);
  color: #adc4da;
  padding: clamp(42px, 6vw, 68px) 0 calc(26px + env(safe-area-inset-bottom, 0px));
  font-size: 0.93rem;
}

.footer-grid {
  display: grid;
  gap: 32px;
  padding-bottom: 34px;
}

@media (min-width: 760px) {
  .footer-grid { grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; }
}

.footer-mark {
  background: rgba(45, 212, 191, 0.12);
  box-shadow: none;
  margin-bottom: 14px;
}

.footer-name {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.1rem;
  color: #fff;
  margin: 0 0 6px;
  letter-spacing: -0.02em;
}

.footer-tagline { color: #90aac4; max-width: 34ch; margin: 0; }

.site-footer h2 {
  color: #fff;
  font-size: 0.76rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  margin-bottom: 14px;
}

.footer-nav ul { display: grid; gap: 9px; }

.footer-nav a,
.footer-bottom a {
  color: #cfe0ef;
  text-decoration: none;
  border-radius: 4px;
}

.footer-nav a:hover,
.footer-bottom a:hover { color: var(--teal-400); text-decoration: underline; }

.footer-contact p { margin: 0 0 8px; color: #9fb7cf; }

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 22px;
  display: grid;
  gap: 8px;
}

.footer-legal { color: #8ba5bf; font-size: 0.88rem; margin: 0; }

.footer-demo {
  color: #6f8aa6;
  font-size: 0.8rem;
  line-height: 1.6;
  max-width: 90ch;
  margin: 0;
}

/* ---------- Motion ---------- */

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.6s var(--ease), transform 0.6s var(--ease);
  will-change: opacity, transform;
}

.reveal.is-visible { opacity: 1; transform: none; }

/* JS off, or observer unsupported: never hide content */
.no-js .reveal,
.no-reveal .reveal { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }

  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }

  .reveal { opacity: 1; transform: none; }
  .btn:hover,
  .card:hover { transform: none; }
}

/* ---------- Print ---------- */

@media print {
  .site-header,
  .nav-toggle,
  .demo-banner,
  .hero-actions,
  .cta-band { display: none !important; }

  body { color: #000; }
  .media-frame { box-shadow: none; }
}
