/* ==========================================================================
   Svi Tereni — coming soon landing page
   Design tokens lifted from the Project Schedule app (booking-board.module.css)
   so this page reads as the same product before it's even live.
   ========================================================================== */

:root {
  --bg: #f8e7c9;
  --surface: #ffffff;
  --surface-2: #f1dcb4;
  --border: #e8d2a0;
  --border-soft: #efddb8;
  --ink: #0b2a20;
  --ink-muted: #5c6b5f;
  --ink-faint: #8fa093;
  --green-deep: #064e3b;
  --green-line: #0e6b4f;
  --gold: #0e6b4f;
  --gold-strong: #064e3b;
  --gold-tint: #f0e3bc;
  --clay: #a35334;
  --clay-tint: #f5e2d8;
  --padel: #6d4aa8;
  --padel-tint: #e9e2f5;
  --active-ink: #f8e7c9;
  --shadow: 0 18px 40px -22px rgba(6, 40, 30, 0.35);
  --shadow-lg: 0 24px 60px -24px rgba(6, 40, 30, 0.4);
  --serif: Georgia, "Times New Roman", serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0f1b16;
    --surface: #16261f;
    --surface-2: #1c2e25;
    --border: #2c4038;
    --border-soft: #24352c;
    --ink: #ede3c9;
    --ink-muted: #b8c4bb;
    --ink-faint: #7c8c82;
    --gold: #2e9e76;
    --gold-strong: #4cc79a;
    --gold-tint: #163b2e;
    --clay: #cd8058;
    --clay-tint: #3a2419;
    --padel: #b39ce0;
    --padel-tint: #2a2338;
    --active-ink: #0b2018;
    --shadow: 0 18px 40px -20px rgba(0, 0, 0, 0.55);
    --shadow-lg: 0 24px 60px -20px rgba(0, 0, 0, 0.6);
  }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
button { font-family: inherit; cursor: pointer; }
.wrap { max-width: 1080px; margin: 0 auto; padding-inline: clamp(20px, 4vw, 40px); }
section { padding-block: clamp(48px, 8vw, 88px); }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: var(--green-deep);
  color: #f4efdd;
  border-bottom: 1px solid var(--green-line);
}
.site-header .wrap {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-block: 16px;
}
.crest {
  width: 36px;
  height: 36px;
  flex: none;
  border: 1px solid #cdbb84;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: #e9dcae;
}
.brand-name {
  font-family: var(--serif);
  font-size: 1.2rem;
  line-height: 1.1;
}
.brand-tag {
  font-size: 0.62rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #cbd1b8;
  margin-top: 2px;
}
.site-nav {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 4px;
}
.site-nav a {
  text-decoration: none;
  font-size: 0.82rem;
  font-weight: 600;
  color: #cbd1b8;
  padding: 8px 12px;
  border-radius: 999px;
  transition: color 0.15s, background 0.15s;
}
.site-nav a:hover { color: #f4efdd; background: rgba(255, 255, 255, 0.06); }
.site-nav .btn-notify {
  border: 1px solid #445940;
  color: #f4efdd;
  margin-left: 6px;
}
.site-nav .btn-notify:hover { border-color: var(--gold); }

/* Language switcher - same pill pattern as the main app's header */
.lang-switch {
  display: flex;
  gap: 6px;
  margin-left: 6px;
}
.lang-switch button {
  background: transparent;
  border: 1px solid #445940;
  color: #cbd1b8;
  border-radius: 999px;
  padding: 5px 10px;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  transition: border-color 0.15s, color 0.15s, background 0.15s;
}
.lang-switch button:hover { border-color: var(--gold); color: #f4efdd; }
.lang-switch button.active { background: var(--gold); border-color: var(--gold); color: var(--active-ink); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 999px;
  font-size: 0.9rem;
  font-weight: 700;
  padding: 13px 24px;
  border: none;
  text-decoration: none;
  transition: background 0.15s, color 0.15s, border-color 0.15s, transform 0.1s;
}
.btn-primary { background: var(--gold); color: var(--active-ink); }
.btn-primary:hover { background: var(--gold-strong); transform: translateY(-1px); }
.btn-ghost {
  background: transparent;
  border: 1.5px solid var(--ink);
  color: var(--ink);
}
.btn-ghost:hover { border-color: var(--gold-strong); color: var(--gold-strong); }

/* ---------- Hero ---------- */
.hero { padding-top: clamp(56px, 9vw, 96px); }
.hero .wrap { text-align: center; max-width: 780px; }
.eyebrow {
  display: inline-block;
  font-size: 0.68rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold-strong);
  font-weight: 700;
  background: var(--gold-tint);
  padding: 6px 14px;
  border-radius: 999px;
}
.hero h1 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(2rem, 5vw, 3rem);
  line-height: 1.15;
  margin: 18px 0 16px;
}
.hero .lede {
  color: var(--ink-muted);
  font-size: clamp(1rem, 1.6vw, 1.15rem);
  line-height: 1.6;
  margin: 0 auto 30px;
  max-width: 60ch;
}
.hero-ctas {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 8px;
}
.hero-note {
  margin-top: 14px;
  font-size: 0.8rem;
  color: var(--ink-faint);
}

/* ---------- Mockup preview panel ----------
   Illustrative only, built from this page's own tokens (matches the
   approach used on the app's real owner-promo page) — not a screenshot. */
.mockup-shell {
  margin-top: 48px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 18px;
  box-shadow: var(--shadow-lg);
  text-align: left;
}
.mockup-topbar {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
}
.mockup-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--border);
}
.mockup-topbar .label {
  margin-left: 8px;
  font-size: 0.72rem;
  color: var(--ink-faint);
}
.mockup-courts {
  display: grid;
  grid-template-columns: 46px repeat(3, 1fr);
  gap: 8px;
  margin-bottom: 4px;
}
.mockup-court-card {
  border: 1px solid var(--border);
  border-top: 3px solid var(--gold);
  border-radius: 12px;
  padding: 8px 10px;
  background: var(--surface-2);
}
.mockup-court-card.clay { border-top-color: var(--clay); }
.mockup-court-card.padel { border-top-color: var(--padel); }
.mockup-court-card .name {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 0.8rem;
}
.mockup-badge {
  display: inline-block;
  margin-top: 5px;
  font-size: 0.6rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  padding: 2px 7px;
  border-radius: 999px;
  background: var(--gold-tint);
  color: var(--gold-strong);
}
.mockup-court-card.clay .mockup-badge { background: var(--clay-tint); color: var(--clay); }
.mockup-court-card.padel .mockup-badge { background: var(--padel-tint); color: var(--padel); }
.mockup-court-card .price {
  display: block;
  margin-top: 6px;
  font-family: var(--serif);
  font-size: 0.82rem;
  text-align: right;
}
.mockup-court-card .price small {
  display: block;
  font-family: var(--sans);
  font-size: 0.56rem;
  color: var(--ink-faint);
  font-weight: 400;
}
.mockup-row {
  display: grid;
  grid-template-columns: 46px repeat(3, 1fr);
  gap: 8px;
  margin-top: 4px;
  align-items: center;
}
.mockup-row .time {
  font-size: 0.64rem;
  color: var(--ink-faint);
  text-align: right;
  padding-right: 4px;
  font-variant-numeric: tabular-nums;
}
.mockup-slot {
  height: 24px;
  border-radius: 6px;
  background: var(--bg);
  border: 1px solid var(--border-soft);
}
.mockup-slot.booked { background: var(--surface-2); }
.mockup-slot.selected { background: var(--gold); border-color: var(--gold-strong); }
.mockup-caption {
  margin: 16px 2px 0;
  font-size: 0.78rem;
  color: var(--ink-faint);
  text-align: center;
}

/* ---------- Audience split ---------- */
.audience-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}
@media (min-width: 800px) {
  .audience-grid { grid-template-columns: 1fr 1fr; }
}
.audience-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 32px clamp(20px, 3vw, 32px);
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
}
.audience-card .eyebrow { align-self: flex-start; }
.audience-card h2 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 1.5rem;
  margin: 16px 0 10px;
}
.audience-card > p {
  color: var(--ink-muted);
  font-size: 0.95rem;
  line-height: 1.55;
  margin: 0 0 20px;
}
.feature-list {
  list-style: none;
  margin: 0 0 26px;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
  flex: 1;
}
.feature-list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 0.9rem;
  line-height: 1.5;
}
.feature-icon {
  flex: none;
  width: 30px;
  height: 30px;
  border-radius: 9px;
  background: var(--gold-tint);
  color: var(--gold-strong);
  display: grid;
  place-items: center;
}
.audience-card.owner .feature-icon { background: var(--padel-tint); color: var(--padel); }
.audience-card .btn { align-self: flex-start; }

/* ---------- How it works ---------- */
.steps-section .wrap { text-align: center; }
.steps-section h2 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(1.5rem, 3vw, 2rem);
  margin: 0 0 10px;
}
.steps-section > .wrap > p {
  color: var(--ink-muted);
  max-width: 56ch;
  margin: 0 auto 40px;
}
.steps {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  text-align: left;
}
@media (min-width: 760px) {
  .steps { grid-template-columns: repeat(3, 1fr); }
}
.step {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 22px;
  box-shadow: var(--shadow);
}
.step .num {
  font-family: var(--serif);
  font-size: 1.6rem;
  color: var(--gold-strong);
  margin-bottom: 8px;
}
.step p { margin: 0; color: var(--ink-muted); font-size: 0.9rem; line-height: 1.5; }

/* ---------- Signup ---------- */
.signup-section {
  background: var(--green-deep);
  color: #f4efdd;
}
.signup-section .wrap { max-width: 640px; text-align: center; }
.signup-section h2 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(1.6rem, 3.4vw, 2.1rem);
  margin: 0 0 10px;
}
.signup-section > .wrap > p {
  color: #cbd1b8;
  margin: 0 0 28px;
  font-size: 0.98rem;
}
.role-toggle {
  display: inline-flex;
  border: 1px solid #445940;
  border-radius: 999px;
  padding: 3px;
  margin-bottom: 22px;
}
.role-toggle button {
  border: none;
  background: transparent;
  color: #cbd1b8;
  padding: 8px 18px;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 700;
}
.role-toggle button.active { background: var(--gold); color: var(--active-ink); }
.signup-form {
  background: var(--surface);
  border-radius: 18px;
  padding: 22px;
  box-shadow: var(--shadow-lg);
  color: var(--ink);
  text-align: left;
}
.signup-form .row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}
@media (min-width: 560px) {
  .signup-form .row { grid-template-columns: 1fr 1fr; }
  .signup-form .row.email-row { grid-template-columns: 1fr; }
}
.signup-form label {
  display: block;
  font-size: 0.62rem;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin-bottom: 5px;
}
.signup-form input {
  width: 100%;
  background: var(--surface-2);
  border: 1px solid var(--border);
  color: var(--ink);
  padding: 11px 12px;
  border-radius: 9px;
  font-size: 0.92rem;
  font-family: inherit;
}
.signup-form input:focus {
  outline: 2px solid var(--gold);
  outline-offset: 1px;
  border-color: var(--gold);
}
.signup-form .btn { width: 100%; margin-top: 16px; }
.signup-form .btn:disabled { opacity: 0.7; cursor: not-allowed; }
.signup-note {
  margin-top: 12px;
  font-size: 0.74rem;
  color: var(--ink-faint);
  text-align: center;
}
.signup-error {
  margin-top: 10px;
  font-size: 0.8rem;
  color: var(--clay);
  text-align: center;
  min-height: 0;
}
/* Honeypot - off-screen but present in the DOM/tab order for bots that
   fill every field, invisible and unreachable for real users. */
.hp-field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
.signup-thanks {
  display: none;
  align-items: flex-start;
  gap: 12px;
  text-align: left;
}
.signup-thanks .check {
  flex: none;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--gold);
  color: var(--active-ink);
  display: grid;
  place-items: center;
  font-weight: 700;
}
.signup-thanks h3 { margin: 0 0 4px; font-family: var(--serif); font-size: 1.05rem; }
.signup-thanks p { margin: 0; color: var(--ink-muted); font-size: 0.88rem; }
.signup-form.submitted .signup-fields { display: none; }
.signup-form.submitted .signup-thanks { display: flex; }

/* ---------- Footer ---------- */
.site-footer {
  padding: 32px clamp(20px, 4vw, 40px) 44px;
  text-align: center;
}
.site-footer .crest { margin: 0 auto 10px; }
.site-footer .brand-name { color: var(--ink); }
.site-footer .tagline {
  font-size: 0.82rem;
  color: var(--ink-muted);
  margin-top: 4px;
}
.site-footer .fine-print {
  margin-top: 18px;
  font-size: 0.74rem;
  color: var(--ink-faint);
}
