/* Halla — marketing + signup styles.
   Standalone from the tenant booking app (style.css). No inline styles/scripts
   anywhere: the app CSP is style-src 'self' / script-src 'self'. */

:root {
  --ink: #1c2620;
  --ink-soft: #44524a;
  --cream: #f6f1e7;
  --cream-deep: #efe7d6;
  --paper: #fffdf8;
  --green: #1f4d3a;
  --green-deep: #16382a;
  --green-bright: #2f7d5b;
  --amber: #e0a44a;
  --amber-deep: #c8862a;
  --terra: #c75c43;
  --line: #e3dccb;
  --shadow: 0 1px 2px rgba(28, 38, 32, .06), 0 12px 32px -12px rgba(28, 38, 32, .18);
  --radius: 14px;
  --maxw: 1120px;
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Georgia", serif;
  --sans: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--sans);
  color: var(--ink);
  background: var(--cream);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--green); }

.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

h1, h2, h3 { font-family: var(--serif); font-weight: 600; line-height: 1.1; letter-spacing: -0.01em; }

.eyebrow {
  font-family: var(--sans);
  text-transform: uppercase;
  letter-spacing: .14em;
  font-size: .72rem;
  font-weight: 700;
  color: var(--green-bright);
  margin: 0 0 14px;
}

/* ---- Buttons ---- */
.btn {
  display: inline-flex; align-items: center; gap: .5em;
  font: 600 1rem/1 var(--sans);
  padding: .85em 1.4em;
  border-radius: 999px;
  border: 1.5px solid transparent;
  text-decoration: none;
  cursor: pointer;
  transition: transform .12s ease, box-shadow .12s ease, background .12s ease;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--green); color: #fff; box-shadow: var(--shadow); }
.btn-primary:hover { background: var(--green-deep); }
.btn-ghost { background: transparent; color: var(--green); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--green); background: rgba(31,77,58,.04); }
.btn-amber { background: var(--amber); color: var(--green-deep); box-shadow: var(--shadow); }
.btn-amber:hover { background: var(--amber-deep); color:#fff; }
.btn-lg { font-size: 1.06rem; padding: 1em 1.7em; }

/* ---- Top nav ---- */
.nav {
  position: sticky; top: 0; z-index: 30;
  background: color-mix(in srgb, var(--cream) 86%, transparent);
  backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.brand { display: inline-flex; align-items: center; gap: .55em; text-decoration: none; color: var(--ink); }
.brand-mark {
  width: 30px; height: 30px; border-radius: 8px;
  background: var(--green); color: var(--amber);
  display: grid; place-items: center; font-family: var(--serif); font-weight: 700; font-size: 1.15rem;
}
.brand-name { font-family: var(--serif); font-weight: 600; font-size: 1.35rem; letter-spacing: -.01em; }
.nav-links { display: flex; align-items: center; gap: 28px; }
.nav-links a { color: var(--ink-soft); text-decoration: none; font-weight: 500; font-size: .96rem; }
.nav-links a:hover { color: var(--green); }
.nav-cta { display: flex; align-items: center; gap: 14px; }
.nav-burger { display: none; }

/* ---- Hero ---- */
.hero { padding: 76px 0 40px; position: relative; overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 56px; align-items: center; }
.hero h1 { font-size: clamp(2.4rem, 5vw, 3.7rem); margin: 0 0 18px; }
.hero h1 .accent { color: var(--green-bright); font-style: italic; }
.hero-sub { font-size: 1.2rem; color: var(--ink-soft); margin: 0 0 28px; max-width: 32ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }
.hero-note { margin-top: 18px; color: var(--ink-soft); font-size: .92rem; display: flex; align-items: center; gap: .5em; }
.hero-note b { color: var(--ink); }

/* ---- Animated booking-grid visual ---- */
.demo-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: var(--shadow);
  padding: 16px;
  transform: rotate(.6deg);
}
.demo-head { display: flex; align-items: center; justify-content: space-between; margin: 4px 6px 12px; }
.demo-head .dh-title { font-family: var(--serif); font-weight: 600; font-size: 1.05rem; }
.demo-head .dh-week { font-size: .8rem; color: var(--ink-soft); }
.demo-table { display: grid; grid-template-columns: 44px repeat(5, 1fr); gap: 6px; }
.demo-table .cell {
  height: 30px; border-radius: 7px; background: var(--cream-deep);
  font-size: .66rem; color: var(--ink-soft);
  display: grid; place-items: center;
}
.demo-table .hcol { background: transparent; color: var(--ink-soft); font-weight: 600; }
.demo-table .htime { background: transparent; color: #9aa49c; font-size: .62rem; }
.demo-table .slot { position: relative; overflow: hidden; }
.demo-table .booked {
  color: #fff; font-weight: 600;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; padding: 0 3px;
  animation: fillSlot .6s ease both;
}
.demo-table .b-green { background: var(--green-bright); }
.demo-table .b-amber { background: var(--amber-deep); }
.demo-table .b-terra { background: var(--terra); }
.demo-table .d1 { animation-delay: .3s; }
.demo-table .d2 { animation-delay: .9s; }
.demo-table .d3 { animation-delay: 1.6s; }
.demo-table .d4 { animation-delay: 2.3s; }
.demo-table .d5 { animation-delay: 3.0s; }
@keyframes fillSlot {
  from { transform: scale(.4); opacity: 0; }
  60% { transform: scale(1.05); }
  to { transform: scale(1); opacity: 1; }
}
@media (prefers-reduced-motion: reduce) {
  .demo-table .booked { animation: none; }
}

/* ---- Section scaffolding ---- */
section { padding: 64px 0; }
.section-head { max-width: 640px; margin: 0 0 40px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head h2 { font-size: clamp(1.9rem, 3.4vw, 2.6rem); margin: 0 0 14px; }
.section-head p { font-size: 1.12rem; color: var(--ink-soft); margin: 0; }

.band-paper { background: var(--paper); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.band-green { background: var(--green); color: var(--cream); }
.band-green h2 { color: #fff; }
.band-green .section-head p { color: color-mix(in srgb, var(--cream) 82%, transparent); }

/* ---- Problem / steps / features ---- */
.cards { display: grid; gap: 22px; }
.cards.c3 { grid-template-columns: repeat(3, 1fr); }
.cards.c2 { grid-template-columns: repeat(2, 1fr); }
.card {
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px; box-shadow: var(--shadow);
}
.band-green .card { background: var(--green-deep); border-color: rgba(255,255,255,.1); color: var(--cream); }
.card h3 { font-size: 1.25rem; margin: 0 0 8px; }
.card p { margin: 0; color: var(--ink-soft); }
.band-green .card p { color: color-mix(in srgb, var(--cream) 80%, transparent); }
.card .ico {
  width: 42px; height: 42px; border-radius: 11px; margin-bottom: 16px;
  display: grid; place-items: center; font-size: 1.3rem;
  background: var(--cream-deep); color: var(--green);
}
.step-n {
  font-family: var(--serif); font-size: 2.4rem; color: var(--amber-deep);
  line-height: 1; margin-bottom: 10px; display: block;
}

.feature-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px 34px; margin-top: 8px; }
.feature { display: flex; gap: 14px; align-items: flex-start; }
.feature .tick {
  flex: 0 0 auto; width: 26px; height: 26px; border-radius: 50%;
  background: var(--green-bright); color: #fff; display: grid; place-items: center;
  font-size: .85rem; margin-top: 2px;
}
.feature b { display: block; }
.feature span { color: var(--ink-soft); font-size: .95rem; }

/* ---- Stripe-optional callout ---- */
.callout {
  display: grid; grid-template-columns: 1fr auto; gap: 28px; align-items: center;
  background: var(--cream-deep); border: 1px solid var(--line); border-radius: 18px; padding: 32px 36px;
}
.callout h3 { font-size: 1.5rem; margin: 0 0 8px; }
.callout p { margin: 0; color: var(--ink-soft); max-width: 56ch; }
.badge-soon { display: inline-block; font-size: .72rem; font-weight: 700; letter-spacing: .08em;
  text-transform: uppercase; color: var(--amber-deep); background: rgba(224,164,74,.18);
  padding: .25em .7em; border-radius: 999px; margin-left: .5em; }

/* ---- Pricing ---- */
.price-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; max-width: 760px; margin: 0 auto; }
.price-card { background: var(--paper); border: 1px solid var(--line); border-radius: 18px; padding: 32px; box-shadow: var(--shadow); }
.price-card.feature-card { border-color: var(--green); border-width: 2px; }
.price-card h3 { font-size: 1.3rem; margin: 0 0 6px; }
.price-amount { font-family: var(--serif); font-size: 2.6rem; color: var(--ink); margin: 8px 0 4px; }
.price-amount small { font-size: 1rem; color: var(--ink-soft); font-family: var(--sans); }
.price-card ul { list-style: none; padding: 0; margin: 18px 0 24px; }
.price-card li { padding: 7px 0 7px 26px; position: relative; color: var(--ink-soft); }
.price-card li::before { content: "✓"; position: absolute; left: 0; color: var(--green-bright); font-weight: 700; }

/* ---- FAQ ---- */
.faq { max-width: 760px; margin: 0 auto; }
.faq details { border-bottom: 1px solid var(--line); padding: 18px 0; }
.faq summary { font-family: var(--serif); font-size: 1.18rem; cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--amber-deep); font-size: 1.4rem; line-height: 1; }
.faq details[open] summary::after { content: "–"; }
.faq p { color: var(--ink-soft); margin: 12px 0 0; }

/* ---- Final CTA ---- */
.center-actions { text-align: center; }
.mt-lg { margin-top: 48px; }
.final-cta { text-align: center; }
.final-cta h2 { font-size: clamp(2rem, 4vw, 3rem); margin: 0 0 14px; color: #fff; }
.final-cta p { color: color-mix(in srgb, var(--cream) 82%, transparent); font-size: 1.15rem; margin: 0 0 28px; }

/* ---- Footer ---- */
.footer { background: var(--green-deep); color: color-mix(in srgb, var(--cream) 78%, transparent); padding: 48px 0 36px; }
.footer a { color: var(--cream); text-decoration: none; }
.footer a:hover { text-decoration: underline; }
.footer-top { display: flex; justify-content: space-between; gap: 32px; flex-wrap: wrap; margin-bottom: 28px; }
.footer-cols { display: flex; gap: 56px; flex-wrap: wrap; }
.footer-cols b { color: #fff; display: block; margin-bottom: 10px; font-family: var(--sans); }
.footer-cols a { display: block; padding: 4px 0; font-size: .94rem; }
.footer .brand-name { color: #fff; }
.footer-tag { max-width: 34ch; margin: 14px 0 0; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.12); padding-top: 20px; font-size: .85rem; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; }

/* ---- Signup wizard ---- */
.signup-shell { min-height: 100vh; display: grid; grid-template-columns: 380px 1fr; }
.signup-aside { background: var(--green); color: var(--cream); padding: 48px 40px; position: relative; }
.signup-aside .brand-name { color: #fff; }
.signup-aside h2 { color: #fff; font-size: 1.8rem; margin: 28px 0 14px; }
.signup-aside p { color: color-mix(in srgb, var(--cream) 82%, transparent); }
.signup-steps { list-style: none; padding: 0; margin: 36px 0 0; }
.signup-steps li { display: flex; gap: 14px; align-items: center; padding: 12px 0; opacity: .55; transition: opacity .2s; }
.signup-steps li.active { opacity: 1; }
.signup-steps li.done { opacity: .9; }
.signup-steps .num {
  flex: 0 0 auto; width: 30px; height: 30px; border-radius: 50%; border: 1.5px solid rgba(255,255,255,.4);
  display: grid; place-items: center; font-weight: 700; font-size: .85rem;
}
.signup-steps li.active .num { background: var(--amber); color: var(--green-deep); border-color: var(--amber); }
.signup-steps li.done .num { background: var(--green-bright); border-color: var(--green-bright); color: #fff; }
.signup-main { padding: 48px clamp(24px, 6vw, 88px); display: flex; flex-direction: column; background: var(--cream); }
.signup-main .inner { width: 100%; max-width: 560px; margin: auto; }
.js-on .wiz-step { display: none; }
.js-on .wiz-step.active { display: block; animation: stepIn .25s ease both; }
/* Without JS every step shows and the single submit still works (server validates). */
@keyframes stepIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.wiz-step h1 { font-size: 1.9rem; margin: 0 0 6px; }
.wiz-step .lead { color: var(--ink-soft); margin: 0 0 26px; }
.field { margin-bottom: 18px; }
.field label { display: block; font-weight: 600; font-size: .92rem; margin-bottom: 6px; }
.field .hint { font-weight: 400; color: var(--ink-soft); font-size: .85rem; }
.field input, .field textarea {
  width: 100%; font: inherit; padding: .7em .85em; border-radius: 10px;
  border: 1.5px solid var(--line); background: var(--paper); color: var(--ink);
}
.field select {
  width: 100%; font: inherit; padding: .7em .85em; border-radius: 10px;
  border: 1.5px solid var(--line); background: var(--paper); color: var(--ink);
}
.field input:focus, .field textarea:focus, .field select:focus { outline: none; border-color: var(--green-bright); box-shadow: 0 0 0 3px rgba(47,125,91,.15); }
/* Honeypot: kept in the DOM and submittable, but never shown to a human. */
.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.input-prefix { display: flex; align-items: center; border: 1.5px solid var(--line); border-radius: 10px; background: var(--paper); overflow: hidden; }
.input-prefix span { padding: 0 .7em; color: var(--ink-soft); background: var(--cream-deep); align-self: stretch; display: grid; place-items: center; border-right: 1px solid var(--line); }
.input-prefix input { border: 0; box-shadow: none !important; }
.field-label-strong { display: block; font-weight: 600; font-size: .92rem; margin: 4px 0 10px; }
.room-row { display: grid; grid-template-columns: 1fr 120px; gap: 12px; margin-bottom: 10px; }
.field-invalid { border-color: var(--terra) !important; box-shadow: 0 0 0 3px rgba(199,92,67,.15) !important; }
.room-row.hidden { display: none; }
.add-room { background: none; border: 1.5px dashed var(--line); color: var(--green); border-radius: 10px; padding: .6em 1em; font: 600 .92rem var(--sans); cursor: pointer; }
.add-room:hover { border-color: var(--green); }
.host-preview { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; color: var(--green-bright); }
.wiz-nav { display: flex; justify-content: space-between; align-items: center; margin-top: 30px; gap: 12px; }
.wiz-err { background: #fdecea; border: 1px solid #f5c6c0; color: #8a2a1c; border-radius: 10px; padding: 12px 14px; margin-bottom: 20px; }
.stripe-choice { display: grid; gap: 12px; }
.choice {
  border: 1.5px solid var(--line); border-radius: 12px; padding: 16px 18px; cursor: pointer;
  display: flex; gap: 14px; align-items: flex-start; background: var(--paper);
}
.choice:hover { border-color: var(--green-bright); }
.choice input { margin-top: 4px; }
.choice b { display: block; }
.choice span { color: var(--ink-soft); font-size: .92rem; }

/* ---- Success page ---- */
.success-wrap { max-width: 640px; margin: 0 auto; padding: 72px 24px; text-align: center; }
.success-tick { width: 72px; height: 72px; border-radius: 50%; background: var(--green-bright); color: #fff; display: grid; place-items: center; font-size: 2.2rem; margin: 0 auto 22px; }
.success-wrap h1 { font-size: 2.3rem; margin: 0 0 10px; }
.url-card { background: var(--paper); border: 1px solid var(--line); border-radius: 14px; padding: 22px 24px; text-align: left; margin: 18px 0; box-shadow: var(--shadow); }
.url-card .lbl { font-size: .78rem; text-transform: uppercase; letter-spacing: .1em; color: var(--ink-soft); font-weight: 700; }
.url-card .val { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 1.05rem; color: var(--green); word-break: break-all; display: block; margin-top: 4px; }
.success-tick-muted { background: var(--amber); color: var(--green-deep); }

/* ---- Auth (forgot / reset) ---- */
.auth-card {
  max-width: 460px; margin: 64px auto; padding: 40px 36px;
  background: var(--paper); border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow);
}
.auth-card h1 { font-size: 1.9rem; margin: 0 0 8px; }
.auth-card .lead { color: var(--ink-soft); margin: 0 0 18px; }
.auth-form { margin-top: 8px; }
.auth-form .btn { width: 100%; }
/* Centre the auth card in the viewport instead of leaving dead space below. (F6) */
.auth-main { min-height: calc(100vh - 69px); display: flex; align-items: center; justify-content: center; padding: 24px 16px; }
.auth-main .auth-card { margin: 0; }

/* Mobile-only signup progress indicator (desktop shows the numbered sidebar). (F3) */
.step-indicator { display: none; font-weight: 700; color: var(--green-bright); text-transform: uppercase; letter-spacing: .08em; font-size: .78rem; margin: 0 0 14px; }
/* Visual companion to .step-indicator: a filling bar so mobile users see real
   progress, not just a "Step 1 of 5" label. Hidden on desktop (the rail does it). */
.wiz-progress { display: none; height: 6px; background: color-mix(in srgb, var(--green-bright) 16%, var(--cream)); border-radius: 999px; overflow: hidden; margin: 0 0 20px; }
.wiz-progress-bar { display: block; height: 100%; width: 20%; background: var(--green-bright); border-radius: 999px; transition: width .25s ease; }

/* ---- Responsive ---- */
@media (max-width: 900px) {
  .step-indicator { display: block; }
  .wiz-progress { display: block; }
  .hero-grid { grid-template-columns: 1fr; gap: 36px; }
  .demo-card { transform: none; }
  .cards.c3, .cards.c2, .feature-list, .price-grid { grid-template-columns: 1fr; }
  .callout { grid-template-columns: 1fr; }
  .nav-links { display: none; }
  .signup-shell { grid-template-columns: 1fr; }
  .signup-aside { padding: 32px 28px; }
  .signup-steps { display: none; }
}
