:root {
  --ink: #142033;
  --muted: #667085;
  --paper: #ffffff;
  --canvas: #f5f7f8;
  --line: #dfe5e8;
  --brand: #173b3f;
  --brand-soft: #dcebea;
  --mint: #e5f4ed;
  --mint-strong: #16805f;
  --sand: #f7eddc;
  --sand-strong: #9b641e;
  --rose: #f8e7e7;
  --rose-strong: #a83e45;
  --blue: #e7eef9;
  --shadow: 0 20px 55px rgba(25, 49, 55, 0.10);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--canvas);
}

* { box-sizing: border-box; }

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at 10% 0%, rgba(213, 235, 230, 0.72), transparent 32rem),
    radial-gradient(circle at 95% 10%, rgba(245, 226, 197, 0.58), transparent 28rem),
    var(--canvas);
}

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

.page-shell {
  width: min(100% - 32px, 980px);
  margin: 0 auto;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.brand-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px 0 20px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.brand-mark {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  color: white;
  background: var(--brand);
  font-family: Georgia, serif;
  font-size: 25px;
  box-shadow: 0 8px 18px rgba(23, 59, 63, 0.2);
}

.brand strong, .brand small { display: block; }
.brand strong { font-size: 16px; letter-spacing: 0.01em; }
.brand small { margin-top: 2px; color: var(--muted); font-size: 12px; }

.secure-badge, .active-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 12px;
  border-radius: 999px;
  background: var(--mint);
  color: #116247;
  font-size: 12px;
  font-weight: 750;
}

.secure-badge span, .active-pill span { font-size: 9px; }

main { flex: 1; padding: 24px 0 42px; }

.hero-card, .stay-card, .access-card, .directions-card, .help-card, .welcome-strip {
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid rgba(211, 220, 224, 0.88);
  box-shadow: var(--shadow);
}

.compact-card {
  width: min(100%, 620px);
  margin: 48px auto 0;
  padding: clamp(28px, 6vw, 52px);
  border-radius: 28px;
}

.eyebrow {
  color: var(--mint-strong);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

h1, h2, p { margin-top: 0; }
h1 { margin-bottom: 14px; font-size: clamp(32px, 6vw, 50px); line-height: 1.05; letter-spacing: -0.035em; }
h2 { margin-bottom: 9px; font-size: 21px; letter-spacing: -0.015em; }
.compact-card h1 { margin-top: 10px; }
.lead { color: #475467; font-size: 17px; line-height: 1.62; }
.muted { color: var(--muted); line-height: 1.55; }

.info-panel, .help-card {
  display: flex;
  gap: 15px;
  padding: 18px;
  border-radius: 18px;
  background: var(--brand-soft);
  margin-top: 26px;
}

.info-panel p, .help-card p { margin: 5px 0 0; color: #4b6264; line-height: 1.5; }
.panel-icon, .help-card > span { font-size: 22px; }
.quiet-panel { background: var(--blue); }

.verification-form { display: grid; gap: 12px; margin-top: 28px; }
.verification-form label { font-weight: 750; }
.verification-form input {
  width: 100%;
  min-height: 54px;
  padding: 0 16px;
  border: 1px solid #bcc9ce;
  border-radius: 14px;
  background: white;
  color: var(--ink);
}
.verification-form input:focus { outline: 3px solid rgba(22, 128, 95, 0.17); border-color: var(--mint-strong); }
.verification-form small { color: var(--muted); }

.primary-button {
  display: inline-flex;
  min-height: 52px;
  align-items: center;
  justify-content: center;
  padding: 0 20px;
  border: 0;
  border-radius: 14px;
  background: var(--brand);
  color: white;
  font-weight: 780;
  text-decoration: none;
  cursor: pointer;
  box-shadow: 0 10px 20px rgba(23, 59, 63, 0.18);
}
.primary-button:hover { background: #0f3033; }
.primary-button:focus-visible, .icon-button:focus-visible { outline: 3px solid #78b6aa; outline-offset: 3px; }
.verification-form .primary-button { margin-top: 8px; }
.full-width { width: 100%; margin-top: auto; }
.disabled-button { background: #a8b1b4; box-shadow: none; cursor: default; }

.alert { padding: 14px 16px; border-radius: 14px; line-height: 1.5; font-weight: 650; }
.alert-error { background: var(--rose); color: var(--rose-strong); }
.alert-preview { margin: 18px 0; background: var(--sand); color: var(--sand-strong); }
.security-hint { margin: 22px 0 0; color: var(--muted); font-size: 13px; line-height: 1.5; }

.status-orb {
  width: 66px;
  height: 66px;
  display: grid;
  place-items: center;
  margin-bottom: 22px;
  border-radius: 22px;
  font-size: 28px;
}
.status-waiting { background: var(--sand); }
.status-stopped { background: var(--rose); }
.countdown-panel {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin: 26px 0 18px;
  padding: 18px;
  border-radius: 16px;
  background: var(--sand);
  color: #664719;
}

.welcome-strip {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  padding: clamp(26px, 5vw, 42px);
  border-radius: 28px;
}
.welcome-strip h1 { margin: 8px 0 10px; }
.welcome-strip p { margin-bottom: 0; color: var(--muted); font-size: 17px; }

.stay-card { margin-top: 18px; padding: 24px; border-radius: 22px; box-shadow: none; }
.section-heading { display: flex; gap: 13px; align-items: center; }
.section-heading span:not(.section-icon) { color: var(--muted); font-size: 12px; }
.section-heading h2 { margin: 2px 0 0; }
.section-icon { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 13px; background: var(--brand-soft); font-size: 23px; }
.stay-times { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 22px 0 0; }
.stay-times div { padding: 14px; border-radius: 14px; background: var(--canvas); }
.stay-times dt { color: var(--muted); font-size: 12px; }
.stay-times dd { margin: 5px 0 0; font-weight: 720; }

.access-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; margin-top: 18px; }
.access-card { min-height: 390px; display: flex; flex-direction: column; padding: 26px; border-radius: 24px; }
.access-card h2 { margin-top: 8px; }
.access-card p { color: var(--muted); line-height: 1.55; }
.card-art { height: 104px; margin-bottom: 24px; border-radius: 18px; }
.keypad-art { width: 76px; display: grid; grid-template-columns: repeat(3, 8px); gap: 9px; place-content: center; background: linear-gradient(145deg, #293238, #101519); box-shadow: 12px 14px 30px rgba(18, 29, 33, 0.18); }
.keypad-art span { width: 8px; height: 8px; border-radius: 50%; background: #d7e2df; }
.phone-art { width: 68px; display: grid; place-items: center; background: linear-gradient(145deg, #e6edf5, #c8d4e1); border: 5px solid #314150; color: #314150; font-size: 34px; box-shadow: 12px 14px 30px rgba(18, 29, 33, 0.14); }
.code-line { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 8px 0 18px; padding: 14px 14px 14px 18px; border-radius: 16px; background: var(--mint); }
.access-code { font: 800 29px/1 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; letter-spacing: 0.12em; }
.icon-button { min-height: 38px; padding: 0 12px; border: 1px solid #9cc9bd; border-radius: 10px; background: white; color: #125d49; font-weight: 720; cursor: pointer; }
.preview-placeholder { margin: 8px 0 18px; padding: 16px; border-radius: 14px; background: var(--canvas); color: var(--muted); font-weight: 700; }

.directions-card { margin-top: 18px; padding: 24px; border-radius: 22px; box-shadow: none; }
.directions-intro { margin: 18px 0 0; color: var(--muted); line-height: 1.55; }
.map-links { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; margin-top: 18px; }
.map-button {
  min-height: 52px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 18px;
  border: 1px solid var(--brand);
  border-radius: 14px;
  background: var(--brand);
  color: white;
  font-weight: 780;
  text-align: center;
  text-decoration: none;
}
.map-button:hover { background: #0f3033; }
.map-button-secondary { background: white; color: var(--brand); }
.map-button-secondary:hover { background: var(--brand-soft); }
.map-button:focus-visible { outline: 3px solid #78b6aa; outline-offset: 3px; }

.help-card { margin-top: 18px; border-radius: 20px; box-shadow: none; }
.help-card h2 { margin-bottom: 0; font-size: 17px; }

.copy-toast { position: fixed; left: 50%; bottom: 24px; z-index: 5; transform: translate(-50%, 20px); padding: 12px 16px; border-radius: 12px; background: #15272b; color: white; opacity: 0; pointer-events: none; transition: .2s ease; box-shadow: var(--shadow); }
.copy-toast.visible { opacity: 1; transform: translate(-50%, 0); }

footer { padding: 24px 0 30px; border-top: 1px solid var(--line); color: var(--muted); text-align: center; font-size: 12px; }
footer p { margin: 4px 0; }
.privacy-note { opacity: 0.82; }

@media (max-width: 700px) {
  .page-shell { width: min(100% - 22px, 980px); }
  .brand-bar { padding-top: 15px; }
  .secure-badge { padding: 7px 9px; }
  main { padding-top: 12px; }
  .compact-card { margin-top: 22px; padding: 28px 22px; border-radius: 22px; }
  .welcome-strip { flex-direction: column; gap: 16px; border-radius: 22px; }
  .access-grid { grid-template-columns: 1fr; }
  .access-card { min-height: 360px; }
  .map-links { grid-template-columns: 1fr; }
  .stay-times { grid-template-columns: 1fr; }
  .countdown-panel { flex-direction: column; }
}

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