/* Shared styling for the public marketing pages (landing, signup, login,
   pricing) — same Texas navy/red/gold-on-white tokens as assets/style.css,
   duplicated rather than shared because these pages are served to logged-out
   visitors and shouldn't depend on anything under the authenticated /app tree. */
:root {
  --tx-navy: #0a2955;
  --tx-navy-deep: #071c3d;
  --tx-red: #bf0a30;
  --tx-red-deep: #8f0723;
  --tx-gold: #f2b134;
  --ink: #16213a;
  --ink-soft: #55617a;
  --line: #e3e7ee;
  --card: #ffffff;
  --bg: #f7f8fb;
  --shadow-sm: 0 1px 2px rgba(10, 41, 85, 0.06), 0 1px 1px rgba(10, 41, 85, 0.04);
  --shadow-md: 0 8px 24px rgba(10, 41, 85, 0.10), 0 2px 6px rgba(10, 41, 85, 0.06);
  --shadow-lg: 0 20px 48px rgba(10, 41, 85, 0.16), 0 6px 16px rgba(10, 41, 85, 0.08);
  --radius: 16px;
  --radius-sm: 10px;
}
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; background: var(--bg); color: var(--ink); font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif; }
a { color: inherit; }
img { max-width: 100%; }

/* Light background so the logo and wordmark render in their native navy/red
   (matching branding/logo-concepts/brand-logo.jpeg) instead of white-on-navy
   — Texas flag colors are navy, red, and white only, so gold is deliberately
   absent from this section. */
header.site-header {
  background: linear-gradient(120deg, #ffffff 0%, #f4f6fb 100%);
  color: var(--ink);
  border-bottom: 1px solid var(--line);
  padding: 0.75px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.brand { display: flex; align-items: center; gap: 0.5px; font-weight: 800; min-width: 0; }
/* .star is now the brand icon image (branding/logo-concepts/brand-logo.jpeg,
   processed into a transparent PNG) rather than a plain "★" character —
   width/height replace the old font-size/color-based star glyph sizing.
   Sized to ~20% taller than the 3-line text block next to it (see
   .brand-star in assets/style.css for the same math) so the icon reads as
   a modest accent rather than dominating the header. */
.brand .star { width: 84px; height: 84px; flex: none; }
.brand-text { min-width: 0; }
/* Same size/weight as the authenticated app's own header (.brand-text
   .title in assets/style.css) — this text is the one place the two header
   designs are asked to actually agree, pixel for pixel, not just look
   similar. Stacked TEXAS / HOTEL TAX / INTELLIGENCE, navy with the middle
   line in red and slightly larger, matching the three-line wordmark in
   branding/logo-concepts/brand-logo.jpeg. */
.brand-text .name { display: flex; flex-direction: column; line-height: 1.08; }
.brand-text .name .line { font-size: 19px; font-weight: 800; letter-spacing: 0.02em; text-transform: uppercase; color: var(--tx-navy); }
.brand-text .name .line.accent { font-size: 27px; color: var(--tx-red); }
.header-actions { display: flex; gap: 10px; flex: none; }
.header-actions .btn { white-space: nowrap; }
.header-actions .btn-ghost { background: transparent; color: var(--tx-navy); border: 1.5px solid var(--tx-navy); }
.header-actions .btn-ghost:hover { background: var(--tx-navy); color: #fff; }
.stripe { height: 4px; background: linear-gradient(90deg, var(--tx-red) 0%, var(--tx-red) 50%, var(--tx-navy) 50%, var(--tx-navy) 100%); }

/* ---------- Logged-in header state (New Search / Account menu) ----------
   Ported from the authenticated app's own topbar (assets/style.css) — a
   visitor who's already signed in sees the same two controls here as in
   the app itself, instead of Log In/Get Started. Colors are unchanged from
   there since both headers already share the same light navy/red-on-white
   theme. */
.pill-btn {
  border: 1.5px solid var(--tx-navy);
  background: transparent;
  color: var(--tx-navy);
  padding: 8px 16px;
  border-radius: 999px;
  font-size: 13.5px;
  font-weight: 600;
  white-space: nowrap;
  text-decoration: none;
  transition: background 0.2s ease, color 0.2s ease, transform 0.15s ease, border-color 0.2s ease;
}
.pill-btn:hover { background: var(--tx-navy); color: #fff; transform: translateY(-1px); }

.account-menu { position: relative; }

.account-trigger {
  display: flex;
  align-items: center;
  gap: 8px;
  border: 1.5px solid var(--tx-navy);
  background: transparent;
  color: var(--tx-navy);
  padding: 6px 12px 6px 6px;
  border-radius: 999px;
  font-family: inherit;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease;
}
.account-trigger:hover, .account-trigger[aria-expanded="true"] { background: var(--tx-navy); color: #fff; }

.account-avatar {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--tx-navy);
  color: #fff;
  font-size: 11px;
  font-weight: 800;
  flex: none;
  box-shadow: 0 0 0 1.5px #fff;
}

.account-name { font-size: 13.5px; font-weight: 600; max-width: 140px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.account-chevron { flex: none; opacity: 0.8; }

.account-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  min-width: 190px;
  background: #fff;
  border-radius: var(--radius-sm);
  box-shadow: 0 12px 30px rgba(7, 28, 61, 0.28);
  padding: 6px;
  z-index: 20;
}

.account-item { display: block; padding: 9px 12px; border-radius: 6px; font-size: 13.5px; font-weight: 600; color: var(--ink); text-decoration: none; white-space: nowrap; }
.account-item:hover { background: #f3f6fb; }
.account-item-danger { color: var(--tx-red); }

.account-divider { height: 1px; background: var(--line); margin: 6px 4px; }

@media (max-width: 680px) {
  .account-name { display: none; }
  .account-trigger { padding: 6px; }
}

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 24px; border-radius: 999px; border: none; font-size: 14.5px; font-weight: 700;
  cursor: pointer; text-decoration: none; transition: transform 0.16s ease, box-shadow 0.2s ease, background 0.2s ease;
}
.btn-primary { background: linear-gradient(135deg, var(--tx-red) 0%, var(--tx-red-deep) 100%); color: #fff; box-shadow: 0 8px 20px rgba(191,10,48,0.30); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 12px 26px rgba(191,10,48,0.38); }
.btn-ghost { background: rgba(255,255,255,0.12); color: #fff; border: 1px solid rgba(255,255,255,0.3); }
.btn-ghost:hover { background: rgba(255,255,255,0.2); }
.btn-secondary { background: #fff; color: var(--tx-navy); border: 1.5px solid var(--line); }
.btn-secondary:hover { border-color: var(--tx-navy); }
.btn-block { width: 100%; }
.btn:disabled { opacity: 0.6; cursor: not-allowed; }

main { max-width: 1080px; margin: 0 auto; padding: 0 24px; }

.hero { text-align: center; padding: 76px 20px 56px; }
.hero-eyebrow {
  display: inline-block; font-size: 12px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--tx-red); background: rgba(191,10,48,0.08); padding: 6px 16px; border-radius: 999px; margin-bottom: 22px;
}
.hero h1 { font-size: clamp(32px, 5vw, 52px); font-weight: 800; letter-spacing: -0.02em; margin: 0 0 20px; color: var(--tx-navy-deep); line-height: 1.1; }
.hero h1 span { color: var(--tx-red); }
.hero p.lede { font-size: 18px; color: var(--ink-soft); max-width: 620px; margin: 0 auto 34px; line-height: 1.6; }
.hero-ctas { display: flex; justify-content: center; gap: 14px; flex-wrap: wrap; margin-bottom: 18px; }
.hero-note { font-size: 13px; color: var(--ink-soft); }

.section-title { text-align: center; font-size: 28px; font-weight: 800; color: var(--tx-navy-deep); margin: 0 0 12px; }
.section-lede { text-align: center; color: var(--ink-soft); max-width: 560px; margin: 0 auto 44px; }

.feature-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 22px; margin-bottom: 72px; }
.feature-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px 24px; box-shadow: var(--shadow-sm); transition: transform 0.18s ease, box-shadow 0.2s ease; }
.feature-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.feature-icon { width: 46px; height: 46px; border-radius: 12px; display: flex; align-items: center; justify-content: center; font-size: 22px; margin-bottom: 16px; background: rgba(10,41,85,0.08); }
.feature-card h3 { font-size: 16.5px; margin: 0 0 8px; color: var(--ink); }
.feature-card p { font-size: 14px; color: var(--ink-soft); line-height: 1.55; margin: 0; }

.stats-row { display: flex; justify-content: center; gap: 48px; flex-wrap: wrap; margin: 8px 0 72px; }
.stat-item { text-align: center; }
.stat-item .num { font-size: 32px; font-weight: 800; color: var(--tx-navy-deep); }
.stat-item .lbl { font-size: 13px; color: var(--ink-soft); margin-top: 4px; }

.pricing-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 24px; max-width: 720px; margin: 0 auto 60px; }
.price-card { background: var(--card); border: 1.5px solid var(--line); border-radius: var(--radius); padding: 32px 28px; text-align: center; box-shadow: var(--shadow-sm); position: relative; }
.price-card.featured { border-color: var(--tx-gold); box-shadow: var(--shadow-md); }
.price-card .badge { position: absolute; top: -13px; left: 50%; transform: translateX(-50%); background: var(--tx-gold); color: var(--tx-navy-deep); font-size: 11px; font-weight: 800; letter-spacing: 0.05em; text-transform: uppercase; padding: 5px 14px; border-radius: 999px; }
.price-card h3 { font-size: 15px; text-transform: uppercase; letter-spacing: 0.06em; color: var(--ink-soft); margin: 6px 0 14px; }
.price-card .amount { font-size: 44px; font-weight: 800; color: var(--tx-navy-deep); }
.price-card .amount span { font-size: 15px; font-weight: 600; color: var(--ink-soft); }
.price-card .save { font-size: 13px; color: var(--tx-red); font-weight: 700; margin-top: 4px; }
.price-card ul { list-style: none; padding: 0; margin: 22px 0 26px; text-align: left; font-size: 14px; color: var(--ink); }
.price-card ul li { padding: 6px 0; padding-left: 24px; position: relative; }
.price-card ul li::before { content: "✓"; position: absolute; left: 0; color: var(--tx-red); font-weight: 800; }

.cta-band { background: linear-gradient(120deg, var(--tx-navy-deep), var(--tx-navy)); border-radius: var(--radius); color: #fff; text-align: center; padding: 56px 30px; margin-bottom: 72px; }
.cta-band h2 { font-size: 26px; margin: 0 0 12px; }
.cta-band p { color: rgba(255,255,255,0.75); margin: 0 0 26px; }

footer.site-footer { text-align: center; padding: 34px 20px 44px; font-size: 12px; color: var(--ink-soft); border-top: 1px solid var(--line); margin-top: 20px; }
footer.site-footer p { max-width: 640px; margin: 6px auto; line-height: 1.6; }

/* Legal pages (Privacy Policy / Terms of Service) — narrower than the
   1080px .main wrapper everything else uses, since long-form prose reads
   badly at that width; sits inside .main the same way every other page's
   content does. */
.policy-content { max-width: 760px; margin: 0 auto 64px; }
.policy-meta { font-size: 13px; color: var(--ink-soft); margin: 0 0 32px; }
.policy-content h2 { font-size: 19px; color: var(--tx-navy-deep); margin: 34px 0 12px; }
.policy-content h2:first-of-type { margin-top: 0; }
.policy-content p { font-size: 14.5px; line-height: 1.7; color: var(--ink); margin: 0 0 14px; }
.policy-content ul { margin: 0 0 14px; padding-left: 22px; }
.policy-content li { font-size: 14.5px; line-height: 1.7; color: var(--ink); margin: 0 0 8px; }
.policy-content a { color: var(--tx-navy); font-weight: 600; }

/* Auth forms (signup/login) */
.auth-wrap { max-width: 420px; margin: 64px auto; }
/* Signup's form grew a full street/apt/city/state/zip address (item 1) on
   top of the original single line — 420px started forcing the 3-column
   city/state/zip row too tight, so signup.html opts into this wider card
   instead of the login/forgot/reset-password pages, which are unaffected. */
.auth-wrap.auth-wrap-wide { max-width: 500px; }
.auth-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 36px 32px; box-shadow: var(--shadow-md); }
.auth-card h1 { font-size: 24px; margin: 0 0 6px; color: var(--tx-navy-deep); }
.auth-card .sub { color: var(--ink-soft); font-size: 14px; margin-bottom: 26px; }
.field { margin-bottom: 18px; }
.field-row { display: flex; gap: 14px; }
.field-row .field { flex: 1; min-width: 0; }
/* City / State / ZIP (item 1's address breakdown, signup.html): city needs
   more room than the 2-letter state code or the ZIP, so this is a weighted
   grid rather than three equal flex columns. */
.field-row-3 { display: grid; grid-template-columns: 2fr 0.8fr 1fr; gap: 14px; }
.field-row-3 .field { min-width: 0; }
.optional-tag { font-weight: 500; color: var(--ink-soft); font-size: 12px; }
@media (max-width: 480px) {
  .field-row-3 { grid-template-columns: 1fr; }
  .field-row { flex-direction: column; gap: 0; }
}
.field label { display: block; font-size: 13px; font-weight: 700; color: var(--tx-navy); margin-bottom: 6px; }
.field input {
  width: 100%; padding: 12px 14px; border: 1.5px solid var(--line); border-radius: var(--radius-sm);
  font-size: 15px; font-family: inherit; transition: border-color 0.15s ease;
}
.field textarea {
  width: 100%; padding: 12px 14px; border: 1.5px solid var(--line); border-radius: var(--radius-sm);
  font-size: 15px; font-family: inherit; resize: vertical; transition: border-color 0.15s ease;
}
.field textarea:focus { outline: none; border-color: var(--tx-navy); }
.field input:focus { outline: none; border-color: var(--tx-navy); }
.form-error {
  background: rgba(191,10,48,0.08); border: 1px solid rgba(191,10,48,0.25); color: var(--tx-red-deep);
  border-radius: var(--radius-sm); padding: 10px 14px; font-size: 13.5px; margin-bottom: 18px; display: none;
}
.form-error.show { display: block; }
.form-success {
  background: rgba(20,140,80,0.08); border: 1px solid rgba(20,140,80,0.25); color: #0f6b3f;
  border-radius: var(--radius-sm); padding: 14px 16px; font-size: 14px; line-height: 1.5;
}
.auth-switch { text-align: center; font-size: 13.5px; color: var(--ink-soft); margin-top: 18px; }
.auth-switch a { color: var(--tx-red); font-weight: 700; text-decoration: none; }

/* FAQ accordion (Contact page) — native <details>/<summary>, no JS needed */
.faq-list { max-width: 760px; margin: 0 auto 64px; display: flex; flex-direction: column; gap: 10px; }
.faq-item {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-sm);
  padding: 4px 20px; box-shadow: var(--shadow-sm);
}
.faq-item summary {
  padding: 16px 0; font-weight: 700; font-size: 15px; color: var(--tx-navy-deep); cursor: pointer;
  list-style: none; display: flex; align-items: center; justify-content: space-between; gap: 12px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; font-size: 20px; font-weight: 400; color: var(--ink-soft); flex: none; }
.faq-item[open] summary::after { content: "\2212"; }
.faq-answer { padding: 0 0 18px; color: var(--ink-soft); font-size: 14.5px; line-height: 1.6; }

/* "Contact Us" popup form */
.modal-overlay {
  position: fixed; inset: 0; background: rgba(7,28,61,0.5); backdrop-filter: blur(2px);
  display: flex; align-items: center; justify-content: center; padding: 20px; z-index: 100;
}
/* Author CSS beats the browser's own [hidden]{display:none} rule by origin,
   not specificity — so the class rule above wins and the modal never
   actually hid when JS set the hidden attribute back to true (the X button
   "not closing" the modal). This rule scores higher on specificity than
   .modal-overlay alone, so it wins instead. */
.modal-overlay[hidden] { display: none; }
.modal-card {
  background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow-lg);
  padding: 32px 30px; max-width: 460px; width: 100%; max-height: 90vh; overflow-y: auto; position: relative;
}
.modal-card h2 { font-size: 22px; margin: 0 0 6px; color: var(--tx-navy-deep); }
.modal-card .sub { color: var(--ink-soft); font-size: 14px; margin-bottom: 22px; }
.modal-close {
  position: absolute; top: 14px; right: 14px; width: 32px; height: 32px; border-radius: 50%;
  border: none; background: rgba(10,41,85,0.06); color: var(--ink-soft); font-size: 20px; line-height: 1;
  cursor: pointer; display: flex; align-items: center; justify-content: center;
}
.modal-close:hover { background: rgba(10,41,85,0.12); color: var(--ink); }

/* Pricing (post-signup) page specifics */
.pricing-page-wrap { max-width: 760px; margin: 48px auto; text-align: center; }
.pricing-page-wrap h1 { font-size: 30px; color: var(--tx-navy-deep); margin-bottom: 10px; }
.pricing-page-wrap .sub { color: var(--ink-soft); margin-bottom: 40px; }
.checkout-status { margin-top: 20px; font-size: 14px; color: var(--ink-soft); min-height: 20px; }

@media (max-width: 640px) {
  .hero { padding: 52px 16px 40px; }
  .auth-wrap { margin: 32px auto; }
}

@media (max-width: 480px) {
  header.site-header { padding: 0.75px 16px; }
  .brand .star { width: 55px; height: 55px; }
  .brand-text .name .line { font-size: 12.5px; }
  .brand-text .name .line.accent { font-size: 17.5px; }
  .header-actions .btn { padding: 9px 16px; font-size: 13px; }
}
