/* Stateroom Scout site: shared by the landing page, the alerts page and the policy pages. */

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

:root {
  --navy: #0d2240;
  --navy-2: #1a3a60;
  --ink: #1a1a1a;
  --text: #444;
  --muted: #666;
  --line: #e5e9ef;
  --soft: #f7f9fc;
  --warn-bg: #fff8e6;
  --warn-line: #f0c040;
  --red: #b3261e;
  --green: #1a7a3a;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  color: var(--ink);
  background: #fff;
  line-height: 1.6;
}
a { color: var(--navy); }
.hidden { display: none !important; }

/* Header and footer ----------------------------------------------------------------------------- */

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 40px;
  border-bottom: 1px solid #eee;
}
.logo { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 18px; text-decoration: none; color: var(--ink); }
.logo img { width: 32px; height: 32px; border-radius: 6px; }
.site-header nav { display: flex; align-items: center; gap: 22px; }
.site-header nav a { text-decoration: none; font-size: 14px; color: #555; }
.site-header nav a:hover { color: var(--ink); }
.site-header nav a.nav-cta { color: #fff; background: var(--navy); padding: 7px 14px; border-radius: 6px; font-weight: 600; }
.site-header nav a.nav-cta:hover { background: var(--navy-2); color: #fff; }

.site-footer { text-align: center; padding: 32px 24px; font-size: 13px; color: #999; border-top: 1px solid #eee; }
.site-footer a { color: #999; margin: 0 8px; }

@media (max-width: 640px) {
  .site-header { padding: 14px 16px; }
  .site-header nav { gap: 14px; }
  .site-header nav .nav-optional { display: none; }
}

/* Landing page ---------------------------------------------------------------------------------- */

.hero { text-align: center; padding: 72px 24px 56px; max-width: 760px; margin: 0 auto; }
.hero h1 { font-size: 42px; font-weight: 800; line-height: 1.2; margin-bottom: 18px; color: var(--navy); }
.hero p { font-size: 18px; color: var(--text); margin: 0 auto 32px; max-width: 580px; }
.hero-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

.btn {
  display: inline-block;
  padding: 13px 26px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  font-size: 15px;
  border: 2px solid var(--navy);
  transition: background 0.15s;
}
.btn-solid { background: var(--navy); color: #fff; }
.btn-solid:hover { background: var(--navy-2); }
.btn-outline { color: var(--navy); background: #fff; }
.btn-outline:hover { background: #f0f4f8; }

.section { padding: 64px 24px; max-width: 920px; margin: 0 auto; }
.section h2 { text-align: center; font-size: 28px; font-weight: 700; color: var(--navy); margin-bottom: 40px; }
.band { background: var(--soft); }

.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 28px; }
.step { text-align: center; padding: 16px; }
.step-number {
  display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--navy); color: #fff; font-weight: 700; font-size: 18px; margin-bottom: 14px;
}
.step h3 { font-size: 17px; margin-bottom: 8px; }
.step p { font-size: 14px; color: #555; }

.features { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 20px; }
.feature { background: #fff; border: 1.5px solid var(--line); border-radius: 10px; padding: 22px; }
.feature h3 { font-size: 17px; color: var(--navy); margin-bottom: 8px; }
.feature p { font-size: 14px; color: #555; }

.price-card {
  max-width: 420px; margin: 0 auto; text-align: center;
  border: 2px solid var(--navy); border-radius: 12px; padding: 32px 28px; background: #fff;
}
.price-card h3 { font-size: 20px; color: var(--navy); }
.price { font-size: 44px; font-weight: 800; color: var(--navy); line-height: 1.1; margin: 10px 0 2px; }
.price-sub { font-size: 14px; color: var(--muted); margin-bottom: 20px; }
.price-card ul { text-align: left; list-style: none; margin: 0 auto 24px; font-size: 15px; color: var(--text); }
.price-card li { padding: 6px 0 6px 26px; position: relative; }
.price-card li::before { content: "\2713"; position: absolute; left: 0; color: var(--green); font-weight: 700; }

.faq { max-width: 700px; margin: 0 auto; }
.faq details { border-bottom: 1px solid var(--line); padding: 14px 0; }
.faq summary { font-weight: 600; cursor: pointer; font-size: 16px; }
.faq details p { margin-top: 10px; font-size: 15px; color: var(--text); }

.fine { text-align: center; font-size: 12px; color: #999; max-width: 640px; margin: 24px auto 0; }

@media (max-width: 640px) {
  .hero { padding: 48px 16px 40px; }
  .hero h1 { font-size: 32px; }
  .hero p { font-size: 16px; }
  .section { padding: 48px 16px; }
}

/* Policy pages ---------------------------------------------------------------------------------- */

.prose { max-width: 680px; margin: 0 auto; padding: 56px 24px; }
.prose h1 { font-size: 28px; font-weight: 800; margin-bottom: 8px; color: var(--navy); }
.prose .updated { font-size: 13px; color: #888; margin-bottom: 36px; }
.prose h2 { font-size: 17px; margin: 32px 0 10px; color: var(--navy); }
.prose p, .prose li { font-size: 15px; color: #333; }
.prose p { margin-bottom: 12px; }
.prose ul { margin: 8px 0 12px 20px; }
.prose li { margin-bottom: 6px; }

/* Alerts page ----------------------------------------------------------------------------------- */

.app-wrap { max-width: 560px; margin: 32px auto 56px; padding: 0 16px; }
.app { border: 1.5px solid var(--line); border-radius: 12px; overflow: hidden; background: #fff; font-size: 14px; }
.app-head {
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
  background: var(--navy); color: #fff; padding: 12px 18px; font-weight: 600;
}
.badge {
  font-size: 12px; font-weight: 500; background: rgba(255 255 255 / 0.15); border-radius: 10px; padding: 2px 9px;
  color: #e0e8ff; max-width: 60%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.panel { padding: 18px; }
.loading { color: var(--muted); text-align: center; padding: 36px; }

.app h2 { font-size: 17px; margin-bottom: 12px; color: var(--navy); }
.app h3 { font-size: 14px; margin: 18px 0 6px; padding-top: 14px; border-top: 1px solid var(--line); color: var(--navy); }
.lead { margin-bottom: 14px; color: var(--text); }

.field { margin-bottom: 12px; }
.field > label { display: block; font-weight: 600; font-size: 13px; margin-bottom: 4px; }
.app input[type="text"], .app select {
  width: 100%; padding: 9px 10px; border: 1px solid #c8cde0; border-radius: 6px;
  font: inherit; font-size: 16px; /* 16px stops phones zooming in on focus */
  background: #fff; color: var(--ink);
}
.app input[type="text"]:focus, .app select:focus { outline: 2px solid #8fa6e8; outline-offset: 0; border-color: var(--navy); }
.app select:disabled { background: var(--soft); color: #999; }
.static { padding: 4px 0; }

.hint { font-size: 12px; color: var(--muted); line-height: 1.5; margin-top: 4px; }
.center { text-align: center; margin-top: 12px; }
.row { display: flex; align-items: center; gap: 8px; }
.row.narrow input { width: 90px !important; }
.check { display: inline-flex; align-items: center; gap: 6px; font-weight: 400; cursor: pointer; margin-right: 14px; }

.notice {
  background: var(--warn-bg); border: 1px solid var(--warn-line); border-radius: 6px;
  padding: 9px 11px; font-size: 13px; line-height: 1.5; margin: 8px 0 12px;
}
.notice .row { margin-top: 8px; }
.notice.error { background: #fdecea; border-color: #f1b0aa; color: var(--red); margin: 14px 18px; }
.error-text { color: var(--red); font-size: 13px; margin: 6px 0 8px; line-height: 1.5; }
.ok-text { color: var(--green); font-size: 13px; margin: 6px 0 8px; }

.card {
  display: flex; justify-content: space-between; align-items: flex-start; gap: 8px;
  background: var(--soft); border: 1px solid var(--line); border-radius: 8px; padding: 10px 12px;
}
.card-title { font-weight: 600; }
.card-meta { font-size: 12px; color: var(--muted); margin-top: 2px; line-height: 1.45; }

.room-list { display: flex; flex-direction: column; gap: 8px; margin: 8px 0; }
.booked-list { display: flex; flex-direction: column; gap: 10px; margin: 8px 0; }
.booked { border: 1px solid var(--line); border-radius: 8px; padding: 10px 12px 2px; background: var(--soft); min-width: 0; }
.booked-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 6px; }
.booked-title { font-weight: 600; font-size: 13px; color: var(--navy); padding: 0; }
.room-row input.invalid { border-color: var(--red); }

.app button { font: inherit; cursor: pointer; }
.btn-primary, .btn-secondary, .btn-danger { border-radius: 6px; padding: 10px 14px; font-weight: 600; border: 1px solid transparent; }
.btn-primary { width: 100%; background: var(--navy); color: #fff; margin-top: 6px; }
.btn-primary:disabled { background: #9aa5c8; cursor: default; }
.btn-secondary { background: #fff; color: var(--navy); border-color: #c8cde0; }
.btn-danger { background: var(--red); color: #fff; }
.small { padding: 7px 11px; font-size: 13px; white-space: nowrap; }
.btn-link { background: none; border: none; color: var(--navy); text-decoration: underline; font-size: 13px; padding: 2px 0; }
.btn-icon { background: none; border: none; color: #999; font-size: 20px; line-height: 1; padding: 0 6px; }
.btn-icon:hover { color: var(--red); }
#test-ntfy-btn { margin-top: 8px; }

.app-foot {
  display: flex; justify-content: space-between; align-items: center; gap: 8px; flex-wrap: wrap;
  margin-top: 16px; padding-top: 12px; border-top: 1px solid var(--line);
}
