:root {
  --green-900: #0b3d2e;
  --green-700: #14532d;
  --green-600: #1d7a4c;
  --green-500: #22935c;
  --green-100: #e5f5ec;
  --green-50: #f2faf6;
  --ink: #14211c;
  --ink-soft: #4b5f57;
  --border: #dfe9e3;
  --bg: #f7faf8;
  --white: #ffffff;
  --amber: #b7791f;
  --amber-bg: #fdf3e0;
  --red: #b3261e;
  --red-bg: #fbeaea;
  --radius: 12px;
  --shadow: 0 1px 2px rgba(15, 45, 32, 0.06), 0 8px 24px rgba(15, 45, 32, 0.06);
  font-synthesis: none;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Inter, Roboto, Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--green-600); text-decoration: none; }
a:hover { text-decoration: underline; }

.container {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 20px;
}

.narrow {
  max-width: 480px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Top nav ------------------------------------------------------------- */
.topnav {
  border-bottom: 1px solid var(--border);
  background: var(--white);
}
.topnav-inner {
  max-width: 1080px;
  margin: 0 auto;
  padding: 14px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.brand {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  font-size: 18px;
  color: var(--green-700);
}
.brand .leaf { font-size: 20px; }
.nav-links { display: flex; gap: 20px; align-items: center; }
.nav-links a { color: var(--ink-soft); font-weight: 500; font-size: 14px; }
.nav-links a:not(.btn) { padding: 6px 10px; border-radius: 8px; margin: -6px -10px; }
.nav-links a.active { color: var(--green-700); font-weight: 700; background: var(--green-100); }
.nav-links a.btn-primary { color: #fff; }
.nav-links a.btn-secondary { color: var(--green-700); }

.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--border); }
.tabs a { padding: 8px 14px; font-size: 14px; font-weight: 500; color: var(--ink-soft); border-bottom: 2px solid transparent; margin-bottom: -1px; }
.tabs a.active { color: var(--green-700); border-bottom-color: var(--green-600); }
.tabs a:hover { color: var(--green-700); }

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
  width: 36px;
  height: 36px;
  padding: 0;
  border: none;
  background: transparent;
  cursor: pointer;
  border-radius: 8px;
}
.nav-toggle:hover { background: var(--green-50); }
.nav-toggle span { display: block; width: 20px; height: 2px; margin: 0 auto; background: var(--ink); border-radius: 2px; }

@media (max-width: 720px) {
  .nav-toggle { display: flex; }
  .topnav-inner { position: relative; flex-wrap: wrap; }
  .nav-links {
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--white);
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow);
    padding: 4px 20px 16px;
    z-index: 20;
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 12px 0; border-bottom: 1px solid var(--border); font-size: 15px; width: 100%; }
  /* Higher specificity than the desktop ":not(.btn)" pill rule above, so the
     accordion row layout (full-width, no negative margin) wins on mobile. */
  .nav-links a:not(.btn) { margin: 0; padding: 12px; border-radius: 0; }
  .nav-links a.active { padding-left: 8px; border-left: 3px solid var(--green-600); }
  .nav-links form { width: 100%; margin: 8px 0 0 !important; }
  .nav-links form .btn { width: 100%; }
  .nav-links a.btn { margin-top: 8px; text-align: center; border-bottom: none; }
}

/* Buttons --------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 10px 18px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 14px;
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none;
  line-height: 1.2;
}
.btn:hover { text-decoration: none; }
.btn-primary { background: var(--green-600); color: #fff; }
.btn-primary:hover { background: var(--green-700); }
.btn-secondary { background: var(--white); color: var(--green-700); border-color: var(--border); }
.btn-secondary:hover { background: var(--green-50); }
.btn-ghost { background: transparent; color: var(--ink-soft); }
.btn-block { width: 100%; }
.btn-lg { padding: 14px 20px; font-size: 16px; }
.btn[disabled] { opacity: 0.55; cursor: not-allowed; }

/* Cards ------------------------------------------------------------------ */
.card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 20px;
}
.card + .card { margin-top: 16px; }
.card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}
.card-header h2 { margin: 0; font-size: 15px; color: var(--ink-soft); text-transform: uppercase; letter-spacing: 0.04em; }

/* Forms ------------------------------------------------------------------ */
label { display: block; font-size: 13px; font-weight: 600; color: var(--ink-soft); margin-bottom: 6px; }
input, select, textarea {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 15px;
  font-family: inherit;
  background: #fff;
  color: var(--ink);
}
input:focus, select:focus, textarea:focus { outline: 2px solid var(--green-500); outline-offset: 1px; }
.field { margin-bottom: 16px; }
.field .hint { font-size: 12px; color: var(--ink-soft); margin-top: 4px; }
.field.required label::after { content: " *"; color: var(--red); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 640px) { .form-row { grid-template-columns: 1fr; } }

.password-field { position: relative; }
.password-field input { padding-right: 44px; }
.password-toggle {
  position: absolute;
  top: 50%;
  right: 6px;
  transform: translateY(-50%);
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: none;
  border-radius: 6px;
  color: var(--ink-soft);
  cursor: pointer;
  padding: 0;
}
.password-toggle:hover { background: var(--green-50); color: var(--green-700); }
.password-toggle:focus-visible { outline: 2px solid var(--green-500); outline-offset: 1px; }
.password-toggle svg { width: 18px; height: 18px; display: block; }
.password-toggle .icon-eye-off { display: none; }
.password-toggle.is-visible .icon-eye { display: none; }
.password-toggle.is-visible .icon-eye-off { display: block; }

/* Alerts ------------------------------------------------------------------ */
.alert { padding: 12px 14px; border-radius: 8px; font-size: 14px; margin-bottom: 16px; }
.alert-error { background: var(--red-bg); color: var(--red); border: 1px solid #f2c8c5; }
.alert-success { background: var(--green-100); color: var(--green-700); border: 1px solid #bfe3cd; }
.alert-warn { background: var(--amber-bg); color: var(--amber); border: 1px solid #f1dcae; }

/* Badges ------------------------------------------------------------------ */
.badge { display: inline-flex; align-items: center; padding: 3px 10px; border-radius: 999px; font-size: 12px; font-weight: 600; }
.badge-paid { background: var(--green-100); color: var(--green-700); }
.badge-pending, .badge-claimed { background: var(--amber-bg); color: var(--amber); }
.badge-failed, .badge-cancelled { background: var(--red-bg); color: var(--red); }
.badge-refunded { background: #eef0f3; color: #45505c; }
.badge-draft { background: #eef0f3; color: #45505c; }
.badge-published { background: var(--green-100); color: var(--green-700); }

/* Status change control (payment request detail page + list rows) -------- */
.status-cell { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.status-control {
  display: inline-flex;
  align-items: stretch;
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
  background: #fff;
}
.status-control select {
  border: none;
  border-radius: 0;
  border-right: 1px solid var(--border);
  padding: 9px 10px;
  font-size: 14px;
  background: #fff;
  color: var(--ink);
}
.status-control select:focus { outline: none; box-shadow: inset 0 0 0 2px var(--green-500); }
.status-control button {
  border: none;
  border-radius: 0;
  padding: 9px 16px;
  font-size: 14px;
  font-weight: 600;
  background: var(--green-50);
  color: var(--green-700);
  cursor: pointer;
  white-space: nowrap;
  font-family: inherit;
}
.status-control button:hover { background: var(--green-100); }
.status-control-sm select { padding: 5px 8px; font-size: 12px; min-width: 92px; }
.status-control-sm button { padding: 5px 12px; font-size: 12px; }

/* Tables ------------------------------------------------------------------ */
table { width: 100%; border-collapse: collapse; font-size: 14px; }
th { text-align: left; color: var(--ink-soft); font-weight: 600; font-size: 12px; text-transform: uppercase; letter-spacing: 0.03em; padding: 8px 10px; border-bottom: 1px solid var(--border); }
td { padding: 10px; border-bottom: 1px solid var(--border); }
tr:last-child td { border-bottom: none; }
.table-wrap { overflow-x: auto; }

/* Dashboard stat tiles ------------------------------------------------------ */
.stat-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
@media (max-width: 640px) { .stat-row { grid-template-columns: 1fr; } }
.stat { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius); padding: 18px; }
.stat .value { font-size: 28px; font-weight: 700; color: var(--green-700); }
.stat .label { font-size: 13px; color: var(--ink-soft); margin-top: 2px; }

/* Guest payment page ------------------------------------------------------- */
.guest-page { min-height: 100vh; background: linear-gradient(180deg, var(--green-900), var(--green-700) 40%, var(--bg) 40%); padding: 32px 0 60px; }
.guest-card { background: var(--white); border-radius: 16px; box-shadow: 0 20px 50px rgba(11,61,46,0.25); padding: 28px 24px; }
.guest-logo { width: 56px; height: 56px; border-radius: 12px; background: var(--green-100); display: flex; align-items: center; justify-content: center; font-size: 26px; margin: 0 auto 14px; }
.guest-property-name { text-align: center; font-size: 22px; font-weight: 700; color: var(--green-900); }
.guest-subtitle { text-align: center; color: var(--ink-soft); font-size: 14px; margin-top: 4px; }
.stay-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 20px 0; }
.stay-item { background: var(--green-50); border-radius: 10px; padding: 10px 12px; }
.stay-item .k { font-size: 11px; text-transform: uppercase; letter-spacing: 0.04em; color: var(--ink-soft); }
.stay-item .v { font-size: 16px; font-weight: 700; color: var(--ink); margin-top: 2px; }
.amount-box { text-align: center; padding: 20px 0; border-top: 1px dashed var(--border); border-bottom: 1px dashed var(--border); margin: 20px 0; }
.amount-box .amount { font-size: 40px; font-weight: 800; color: var(--green-700); }
.amount-box .amount-label { color: var(--ink-soft); font-size: 13px; text-transform: uppercase; letter-spacing: 0.04em; }
.trust-row { display: flex; gap: 16px; justify-content: center; margin-top: 18px; font-size: 12px; color: var(--ink-soft); flex-wrap: wrap;}
.trust-row span { display: flex; align-items: center; gap: 4px; }

/* Landing page --------------------------------------------------------------- */
.hero { background: radial-gradient(circle at top, var(--green-700), var(--green-900) 65%); color: #fff; padding: 72px 0 88px; text-align: center; }
.hero h1 { font-size: 42px; line-height: 1.15; max-width: 720px; margin: 0 auto 16px; }
.hero p.sub { font-size: 18px; color: #d7ece0; max-width: 560px; margin: 0 auto 28px; }
.hero .ctas { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.section { padding: 56px 0; }
.section h1, .section h2 { text-align: center; font-size: 28px; margin-bottom: 8px; }
.section p.lead { text-align: center; color: var(--ink-soft); max-width: 560px; margin: 0 auto 32px; }
.eyebrow { display: block; text-align: center; font-size: 12px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--green-600); margin-bottom: 10px; }
@media (max-width: 640px) {
  .section { padding: 40px 0; }
  .hero { padding: 56px 0 64px; }
  .hero h1 { font-size: 30px; }
  .hero p.sub { font-size: 16px; }
}

.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
@media (max-width: 800px) { .steps { grid-template-columns: 1fr; } }
.step { text-align: center; background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 28px 22px; }
.step .num { width: 36px; height: 36px; border-radius: 999px; background: var(--green-600); color: #fff; display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 14px; margin: 0 auto 14px; }
.step h3 { margin: 0 0 6px; font-size: 16px; }

.checklist { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px 28px; max-width: 680px; margin: 0 auto; }
@media (max-width: 640px) { .checklist { grid-template-columns: 1fr; } }
.checklist .item { display: flex; gap: 12px; align-items: flex-start; font-size: 15px; }
.checklist .check { flex: 0 0 auto; width: 22px; height: 22px; border-radius: 999px; background: var(--green-100); color: var(--green-700); display: flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 700; margin-top: 1px; }

.chip-row { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-top: 28px; }
.chip { display: inline-flex; align-items: center; gap: 7px; background: #fff; border: 1px solid var(--border); border-radius: 999px; padding: 8px 16px; font-size: 13px; font-weight: 600; color: var(--ink-soft); }
.chip .dot { font-size: 14px; line-height: 1; }

.pricing-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
/* Plan cards on /account/subscription: without this, a card with a "Most
   Popular"/"Current plan" pill next to its heading gets a taller header row
   than a plain-text one, which pushes that card's price/description/button
   down and leaves the buttons at mismatched heights across the row. Forcing
   every header to the same min-height lines up the price/description start,
   and making card-body a flex column with the button's form pinned to the
   bottom (margin-top:auto) lines up the buttons too, regardless of header
   or description length. */
.pricing-grid .card { display: flex; flex-direction: column; }.pricing-grid .card + .card { margin-top: 0; } /* .card + .card above (for stacked dashboard cards) also matches these siblings and was shrinking/offsetting the 2nd and 3rd card -- canceling it here is what makes all three the same height */
.pricing-grid .card-header { min-height: 36px; }
.pricing-grid .card-body { display: flex; flex-direction: column; flex: 1; }
.pricing-grid .card-body form { margin-top: auto; }
@media (max-width: 900px) { .pricing-grid { grid-template-columns: 1fr; } }
.plan { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 24px; }
.plan.featured { border-color: var(--green-500); box-shadow: 0 10px 30px rgba(29,122,77,0.15); }
.plan .price { font-size: 30px; font-weight: 800; margin: 8px 0 16px; }
.plan ul { padding-left: 0; list-style: none; margin: 16px 0; font-size: 14px; color: var(--ink-soft); }
.plan ul li { margin-bottom: 8px; padding-left: 22px; position: relative; }
.plan ul li::before { content: "✓"; position: absolute; left: 0; color: var(--green-600); font-weight: 700; }
.footer { border-top: 1px solid var(--border); padding: 28px 0; color: var(--ink-soft); font-size: 13px; }
.disclaimer { background: var(--green-50); border: 1px solid var(--green-100); border-radius: 10px; padding: 14px 16px; font-size: 13px; color: var(--ink-soft); }

/* Timeline (How it works page) ------------------------------------------------ */
.timeline { max-width: 640px; margin: 32px auto 0; }
.timeline-item { display: grid; grid-template-columns: 36px 1fr; gap: 16px; padding-bottom: 26px; position: relative; }
.timeline-item::before { content: ""; position: absolute; left: 17px; top: 36px; bottom: 0; width: 2px; background: var(--border); }
.timeline-item:last-child { padding-bottom: 0; }
.timeline-item:last-child::before { display: none; }
.timeline-item .num { width: 36px; height: 36px; border-radius: 999px; background: var(--green-600); color: #fff; display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 14px; z-index: 1; }
.timeline-item .content h4 { margin: 5px 0 4px; font-size: 15px; }
.timeline-item .content p { margin: 0; color: var(--ink-soft); font-size: 14px; line-height: 1.55; }

/* Utility ------------------------------------------------------------------ */
.muted { color: var(--ink-soft); }
.small { font-size: 13px; }
.flex { display: flex; align-items: center; }
.flex-between { display: flex; align-items: center; justify-content: space-between; }
.gap-8 { gap: 8px; }
.gap-12 { gap: 12px; }
.mt-8 { margin-top: 8px; }
.mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; }
.mb-16 { margin-bottom: 16px; }
.text-center { text-align: center; }
.copy-box { display: flex; gap: 8px; align-items: center; background: var(--green-50); border: 1px solid var(--green-100); border-radius: 8px; padding: 10px 12px; font-family: ui-monospace, monospace; font-size: 13px; overflow-x: auto; white-space: nowrap; }
.property-switcher { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 20px; }
.property-pill { padding: 6px 14px; border-radius: 999px; border: 1px solid var(--border); background: #fff; font-size: 13px; font-weight: 600; color: var(--ink-soft); }
.property-pill.active { background: var(--green-600); color: #fff; border-color: var(--green-600); }

/* FAQ page (/faq) ---------------------------------------------------------
   Plain stacked Q&A, same editorial feel as the /how-it-works timeline --
   no accordion/JS, every answer visible so it reads well and is fully
   indexable. */
.faq-list { max-width: 640px; margin: 0 auto; }
.faq-qa { padding: 22px 0; border-bottom: 1px solid var(--border); }
.faq-qa:last-child { border-bottom: none; }
.faq-qa h3 { margin: 0 0 8px; font-size: 17px; color: var(--ink); }
.faq-qa p { margin: 0; color: var(--ink-soft); font-size: 15px; line-height: 1.65; }

/* Quarter-deadline urgency strip (hero + pricing CTAs) -------------------- */
.deadline-note { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; color: #d7ece0; margin-top: 32px; }
.section .deadline-note { color: var(--green-700); background: var(--green-50); border: 1px solid var(--green-100); border-radius: 999px; padding: 6px 14px; margin: 24px 0 32px; }
