:root {
  --background: #eaf1fb;
  --foreground: #0b214d;
  --blue: #0865e7;
  --blue-bright: #0b6cf0;
  --blue-dark: #0745a8;
  --navy: #08245c;
  --surface: #ffffff;
  --surface-soft: #f7f9fd;
  --line: #dfe7f3;
  --muted: #687793;
  --success: #129f49;
  --danger: #df302f;
  --amber: #b77919;
}

* { box-sizing: border-box; }

html { background: var(--background); }

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at 18% 0%, rgba(8, 101, 231, 0.14), transparent 34rem),
    var(--background);
  color: var(--foreground);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; }
button, input, textarea { font: inherit; }

.site-shell {
  width: min(100%, 760px);
  min-height: 100vh;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  background: var(--surface-soft);
  box-shadow: 0 0 80px rgba(8, 36, 92, 0.12);
}

.brand-hero {
  position: relative;
  isolation: isolate;
  min-height: 360px;
  padding: 44px 24px 56px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: linear-gradient(155deg, #062e7e, #0757c9 64%, #0870eb);
  color: #ffffff;
}

.brand-hero::before {
  content: "";
  position: absolute;
  z-index: -2;
  inset: 0;
  background: url("/moira-lake-hero.jpg") center 48% / cover no-repeat;
  opacity: 0.26;
}

.brand-hero::after {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0;
  background: linear-gradient(180deg, rgba(3, 46, 119, 0.52), rgba(5, 75, 175, 0.86));
}

.brand-home {
  display: flex;
  flex-direction: column;
  align-items: center;
  color: #ffffff;
  text-decoration: none;
}

.brand-logo {
  width: min(220px, 62vw);
  height: auto;
  filter: drop-shadow(0 12px 24px rgba(0, 28, 84, 0.2));
}

.brand-product {
  margin-top: 8px;
  color: #dbe9ff;
  font-size: 17px;
  font-weight: 750;
}

.secure-pill {
  min-height: 42px;
  margin-top: 24px;
  padding: 9px 16px;
  display: flex;
  align-items: center;
  gap: 9px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 999px;
  background: rgba(3, 48, 120, 0.22);
  font-size: 13px;
  font-weight: 750;
  backdrop-filter: blur(8px);
}

.secure-pill span {
  display: grid;
  place-items: center;
  width: 21px;
  height: 21px;
  border-radius: 50%;
  background: #31d463;
  color: #063a1a;
  font-size: 12px;
  font-weight: 950;
}

.content-sheet {
  position: relative;
  z-index: 2;
  min-height: 420px;
  margin-top: -34px;
  padding: 36px 24px 32px;
  border-radius: 38px 38px 0 0;
  background: var(--surface-soft);
}

.welcome-card {
  width: 100%;
  padding: clamp(26px, 6vw, 44px);
  border: 1px solid var(--line);
  border-radius: 30px;
  background: rgba(255, 255, 255, 0.99);
  box-shadow: 0 18px 55px rgba(10, 62, 143, 0.09);
}

.status-badge {
  width: fit-content;
  min-height: 34px;
  margin-bottom: 22px;
  padding: 7px 12px;
  display: flex;
  align-items: center;
  gap: 7px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.09em;
}

.status-badge span {
  display: grid;
  place-items: center;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  color: #ffffff;
  font-size: 11px;
}

.status-badge-blue { background: #e8f1ff; color: #0865e7; }
.status-badge-blue span { background: #0865e7; }
.status-badge-success { background: #e8f8ef; color: #108a40; }
.status-badge-success span { background: var(--success); }
.status-badge-error { background: #fff0ee; color: #b52e29; }
.status-badge-error span { background: var(--danger); }
.status-badge-amber { background: #fff5df; color: #9b6413; }
.status-badge-amber span { background: var(--amber); }

.eyebrow {
  margin: 0 0 10px;
  color: var(--blue);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 12px;
  font-weight: 900;
}

h1 {
  max-width: 640px;
  margin: 0;
  color: var(--navy);
  font-size: clamp(38px, 8vw, 62px);
  line-height: 1.02;
  letter-spacing: -0.055em;
}

.lede {
  max-width: 600px;
  margin: 18px 0 0;
  color: var(--muted);
  font-size: clamp(17px, 2.8vw, 20px);
  line-height: 1.5;
}

.info-panel, .result-panel {
  margin-top: 28px;
  padding: 20px;
  display: flex;
  align-items: flex-start;
  gap: 15px;
  border: 1px solid #dbe8f9;
  border-radius: 21px;
  background: #eef5ff;
  color: var(--navy);
}

.panel-icon {
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 15px;
  background: #ffffff;
  color: var(--blue);
  font-size: 20px;
  font-weight: 900;
  box-shadow: 0 5px 16px rgba(8, 101, 231, 0.1);
}

.info-panel p, .result-panel p { margin: 5px 0 0; line-height: 1.5; color: var(--muted); }
.result-panel { display: block; border-color: #ccebd8; background: #edf9f2; color: #12703a; }
.result-panel.error { border-color: #f0cec9; background: #fff0ee; color: #8e2921; }

.access-details {
  margin: 30px 0 24px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.detail-card {
  min-height: 86px;
  padding: 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: #f8faff;
}

.detail-icon {
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 14px;
  background: #e9f2ff;
  color: var(--blue);
  font-size: 17px;
}

.detail-label {
  display: block;
  margin-bottom: 4px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 850;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.detail-value { display: block; color: var(--navy); font-weight: 800; line-height: 1.3; }

.gate-button {
  width: 100%;
  min-height: 82px;
  border: 0;
  border-radius: 23px;
  padding: 16px 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 13px;
  background: linear-gradient(145deg, #16ad51, #0e923f);
  color: #ffffff;
  font-size: 21px;
  font-weight: 900;
  text-transform: uppercase;
  box-shadow: 0 15px 30px rgba(18, 159, 73, 0.25);
  cursor: pointer;
  transition: transform 150ms ease, filter 150ms ease, opacity 150ms ease;
}

.button-lock {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.18);
  font-size: 24px;
}

.gate-button:hover { filter: brightness(1.05); }
.gate-button:active { transform: translateY(2px); }
.gate-button:focus-visible { outline: 4px solid rgba(18, 159, 73, 0.25); outline-offset: 3px; }
.gate-button:disabled { cursor: not-allowed; box-shadow: none; opacity: 0.48; }

.press-note, .quiet { color: var(--muted); font-size: 14px; line-height: 1.5; }
.press-note { text-align: center; margin: 15px 0 0; }
.quiet { margin: 22px 0 0; }

.secure-row {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 28px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}

.secure-row p { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.45; }
.secure-row strong { color: var(--navy); }
.secure-badge {
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: #e8f2ff;
  color: var(--blue);
  font-size: 20px;
  font-weight: 950;
}

.footer-links {
  margin-top: auto;
  padding: 4px 24px 30px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px 24px;
  color: #61718c;
  font-size: 13px;
  font-weight: 650;
}

.footer-links a { text-underline-offset: 4px; }

.privacy-sections {
  display: grid;
  gap: 22px;
  margin-top: 26px;
  text-align: left;
}

.privacy-sections section {
  padding-top: 20px;
  border-top: 1px solid var(--line);
}

.privacy-sections h2 {
  margin: 0 0 8px;
  color: var(--navy);
  font-size: 18px;
  line-height: 1.25;
}

.privacy-sections p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.65;
}

.privacy-sections a {
  color: var(--blue);
  font-weight: 750;
  text-underline-offset: 3px;
}

.privacy-sections .privacy-updated {
  color: #74829a;
  font-size: 12px;
}

.doorbell-form {
  position: relative;
  display: grid;
  gap: 11px;
  margin-top: 28px;
  text-align: left;
}

.doorbell-form label {
  margin-top: 7px;
  color: var(--navy);
  font-size: 14px;
  font-weight: 850;
}

.doorbell-form label span:not(.optional) { color: var(--danger); }

.doorbell-form .optional {
  margin-left: 6px;
  color: #8996ac;
  font-size: 11px;
  font-weight: 750;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.doorbell-form input,
.doorbell-form textarea {
  width: 100%;
  border: 1.5px solid #ccd7e8;
  border-radius: 16px;
  background: #ffffff;
  color: var(--foreground);
  font-size: 16px;
  outline: none;
  transition: border-color 150ms ease, box-shadow 150ms ease;
}

.doorbell-form input { min-height: 58px; padding: 0 16px; }
.doorbell-form textarea { min-height: 104px; padding: 15px 16px; resize: vertical; }
.doorbell-form input::placeholder,
.doorbell-form textarea::placeholder { color: #8996ac; }
.doorbell-form input:focus,
.doorbell-form textarea:focus { border-color: var(--blue); box-shadow: 0 0 0 4px rgba(8, 101, 231, 0.11); }

.doorbell-button { margin-top: 12px; }
.button-bell { font-size: 25px; line-height: 1; }
.doorbell-honeypot { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.doorbell-privacy { margin: 17px 0 0; color: var(--muted); font-size: 12px; line-height: 1.55; }
.doorbell-privacy a { color: var(--blue); font-weight: 800; text-underline-offset: 3px; }
.doorbell-success { border-color: #bfe8ce; background: #edfaf2; color: #126d35; }

.skeleton-line {
  width: 100%;
  height: 16px;
  border-radius: 10px;
  background: #dce7f5;
  animation: breathe 1.6s ease-in-out infinite;
}

@keyframes breathe { 50% { opacity: 0.45; } }

@media (max-width: 580px) {
  .brand-hero { min-height: 330px; padding-top: 34px; }
  .content-sheet { padding: 30px 16px 28px; border-radius: 34px 34px 0 0; }
  .welcome-card { padding: 25px 22px; border-radius: 27px; }
  .access-details { grid-template-columns: 1fr; }
  .gate-button { min-height: 72px; }
}

@media (min-width: 900px) {
  .site-shell { margin-block: 30px; min-height: calc(100vh - 60px); border-radius: 36px; overflow: hidden; }
  .site-shell-compact .brand-hero { min-height: 320px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}
