/* ============================================================================
   GuestPass — Boutique Hospitality Design System + Print A4 QR Poster
   ============================================================================ */

:root {
  --bg: #faf8f5;
  --surface: #ffffff;
  --surface-2: #f4efe8;
  --border: #e6dfd5;
  --text: #1c1917;
  --text-soft: #44403c;
  --muted: #78716c;
  --primary: #1b4332;
  --primary-hover: #143326;
  --accent: #c26d4a;
  --accent-soft: #f9ebe4;
  --success: #15803d;
  --danger: #b91c1c;
  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 14px 36px -18px rgba(28, 25, 23, 0.16);
  --shadow-lg: 0 24px 60px -24px rgba(28, 25, 23, 0.25);
  --font-sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-serif: 'Fraunces', Georgia, serif;
  --font-mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, monospace;
}

/* Guest Card Themes */
.theme-pine { --g-grad: linear-gradient(135deg, #1b4332 0%, #2d6a4f 100%); --g-accent: #1b4332; --g-tint: #edf5f0; }
.theme-terracotta { --g-grad: linear-gradient(135deg, #9a4a2e 0%, #c9724e 100%); --g-accent: #a65234; --g-tint: #fbf0eb; }
.theme-coastal { --g-grad: linear-gradient(135deg, #164e63 0%, #0e7490 100%); --g-accent: #0e7490; --g-tint: #ecfeff; }
.theme-noir { --g-grad: linear-gradient(135deg, #18181b 0%, #3f3f46 100%); --g-accent: #27272a; --g-tint: #f4f4f5; }

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-sans);
  background: var(--bg);
  color: var(--text);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
button, input, textarea, select { font-family: inherit; }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  font-weight: 600;
  font-size: 0.92rem;
  padding: 0.68rem 1.2rem;
  border-radius: 999px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 0.16s ease;
  white-space: nowrap;
}
.btn-primary {
  background: var(--primary);
  color: #fff;
}
.btn-primary:hover { background: var(--primary-hover); transform: translateY(-1px); }
.btn-accent {
  background: var(--accent);
  color: #fff;
}
.btn-accent:hover { filter: brightness(0.95); transform: translateY(-1px); }
.btn-outline {
  background: var(--surface);
  color: var(--text);
  border-color: var(--border);
}
.btn-outline:hover { border-color: var(--text); }
.btn-ghost {
  background: transparent;
  color: var(--text-soft);
  padding: 0.48rem 0.85rem;
}
.btn-ghost:hover { background: var(--surface-2); color: var(--text); }
.btn-danger {
  background: #fef2f2;
  color: var(--danger);
  border-color: #fecaca;
}
.btn-danger:hover { background: #fee2e2; }
.btn-sm { padding: 0.42rem 0.85rem; font-size: 0.83rem; }
.btn:disabled { opacity: 0.55; cursor: not-allowed; transform: none; }

/* Top Navigation */
.nav {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(250, 248, 245, 0.88);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0.8rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}
.logo {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-weight: 800;
  font-size: 1.08rem;
  letter-spacing: -0.02em;
}
.logo-mark {
  width: 30px;
  height: 30px;
  border-radius: 9px;
  background: linear-gradient(135deg, var(--primary), #2d6a4f);
  color: #fff;
  display: grid;
  place-items: center;
  font-family: var(--font-serif);
  font-size: 1.05rem;
}
.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  flex-wrap: wrap;
}
.lang-toggle {
  display: inline-flex;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 2px;
}
.lang-toggle button {
  border: none;
  background: transparent;
  padding: 0.25rem 0.6rem;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--muted);
  cursor: pointer;
}
.lang-toggle button.active {
  background: var(--surface);
  color: var(--text);
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08);
}

/* Landing Hero */
.wrap {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 1.25rem;
}
.hero {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 2.8rem;
  align-items: center;
  padding: 3.6rem 0 3.2rem;
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--accent);
  background: var(--accent-soft);
  padding: 0.34rem 0.85rem;
  border-radius: 999px;
  margin-bottom: 1.1rem;
}
.hero h1 {
  font-family: var(--font-serif);
  font-size: clamp(2.1rem, 4.4vw, 3.35rem);
  line-height: 1.09;
  letter-spacing: -0.025em;
  margin: 0 0 1.1rem;
  font-weight: 600;
}
.hero-sub {
  font-size: 1.06rem;
  color: var(--text-soft);
  max-width: 56ch;
  margin: 0 0 1.75rem;
}
.hero-cta {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-bottom: 1.1rem;
}
.hero-proof {
  font-size: 0.84rem;
  color: var(--muted);
}

/* Phone Mockup Frame */
.phone-frame {
  width: 100%;
  max-width: 380px;
  margin: 0 auto;
  background: #141414;
  border-radius: 38px;
  padding: 11px;
  box-shadow: var(--shadow-lg);
}
.phone-screen {
  background: var(--bg);
  border-radius: 28px;
  overflow: hidden;
  max-height: 670px;
  overflow-y: auto;
  scrollbar-width: thin;
}

/* Features & Pricing Sections */
.section {
  padding: 3.8rem 0;
  border-top: 1px solid var(--border);
}
.sec-title {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 2.4rem;
}
.sec-title h2 {
  font-family: var(--font-serif);
  font-size: clamp(1.65rem, 3vw, 2.3rem);
  margin: 0 0 0.55rem;
  letter-spacing: -0.02em;
}
.sec-title p { color: var(--text-soft); margin: 0; font-size: 1rem; }

.feat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
  gap: 1.1rem;
}
.feat-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.4rem;
  box-shadow: var(--shadow);
}
.feat-icon {
  width: 40px;
  height: 40px;
  border-radius: 11px;
  background: var(--surface-2);
  display: grid;
  place-items: center;
  font-size: 1.25rem;
  margin-bottom: 0.85rem;
}
.feat-card h3 { margin: 0 0 0.4rem; font-size: 1.03rem; }
.feat-card p { margin: 0; font-size: 0.9rem; color: var(--text-soft); }

/* Pricing */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
  gap: 1.35rem;
  max-width: 780px;
  margin: 0 auto;
}
.price-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 1.8rem;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  position: relative;
}
.price-card.featured {
  border: 2px solid var(--primary);
  box-shadow: var(--shadow-lg);
}
.price-badge {
  position: absolute;
  top: -12px;
  right: 20px;
  background: var(--accent);
  color: #fff;
  font-size: 0.74rem;
  font-weight: 700;
  padding: 0.25rem 0.75rem;
  border-radius: 999px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.price-num {
  font-family: var(--font-serif);
  font-size: 2.5rem;
  font-weight: 700;
  line-height: 1;
  margin: 0.5rem 0 0.2rem;
}
.price-period { color: var(--muted); font-size: 0.86rem; margin-bottom: 1.2rem; }
.price-list {
  list-style: none;
  padding: 0;
  margin: 0 0 1.6rem;
  display: flex;
  flex-direction: column;
  gap: 0.62rem;
  font-size: 0.92rem;
  color: var(--text-soft);
  flex: 1;
}
.price-list li::before {
  content: '✓';
  color: var(--primary);
  font-weight: 800;
  margin-right: 0.55rem;
}

/* ============================================================================
   GUEST CARD (Public Mobile Experience + Live Preview)
   ============================================================================ */
.guest-shell {
  min-height: 100vh;
  background: #ede8e0;
  padding: 0;
}
.guest-card {
  max-width: 480px;
  margin: 0 auto;
  background: var(--bg);
  min-height: 100vh;
  padding-bottom: 2.2rem;
  box-shadow: var(--shadow-lg);
}
.phone-screen .guest-card {
  min-height: auto;
  box-shadow: none;
  padding-bottom: 1.2rem;
}
.g-hero {
  position: relative;
  background: var(--g-grad);
  color: #fff;
  padding: 1.35rem 1.25rem 1.85rem;
  background-size: cover;
  background-position: center;
}
.g-hero.has-cover::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.35) 0%, rgba(0, 0, 0, 0.72) 100%);
}
.g-hero > * { position: relative; z-index: 1; }
.g-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 1.35rem;
}
.g-pill {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  background: rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(8px);
  padding: 0.25rem 0.65rem;
  border-radius: 999px;
}
.g-lang-select {
  background: rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(8px);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 999px;
  padding: 0.22rem 0.6rem;
  font-size: 0.76rem;
  font-weight: 600;
  cursor: pointer;
}
.g-lang-select option { color: #111; background: #fff; }
.g-hero h1 {
  font-family: var(--font-serif);
  font-size: 1.65rem;
  line-height: 1.15;
  margin: 0 0 0.25rem;
  font-weight: 600;
}
.g-hero p { margin: 0; font-size: 0.9rem; opacity: 0.9; }

.g-body {
  padding: 1rem 1rem 0;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  margin-top: -0.95rem;
  position: relative;
  z-index: 2;
}
.g-box {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1rem 1.05rem;
  box-shadow: 0 8px 20px -16px rgba(0, 0, 0, 0.22);
}
.g-box-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 0.65rem;
}
.g-box-title {
  font-weight: 700;
  font-size: 0.92rem;
  display: flex;
  align-items: center;
  gap: 0.45rem;
  color: var(--g-accent);
}
.g-kv-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.6rem;
}
.g-kv {
  background: var(--g-tint);
  border-radius: var(--radius-sm);
  padding: 0.6rem 0.75rem;
}
.g-kv-label {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--muted);
  font-weight: 700;
}
.g-kv-val {
  font-weight: 700;
  font-size: 0.95rem;
  margin-top: 0.12rem;
  word-break: break-word;
}
.g-mono { font-family: var(--font-mono); letter-spacing: 0.02em; }
.g-actions {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-top: 0.7rem;
}
.g-btn {
  flex: 1;
  min-width: 120px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  padding: 0.55rem 0.8rem;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  font-weight: 600;
  font-size: 0.82rem;
  cursor: pointer;
}
.g-btn-solid {
  background: var(--g-accent);
  color: #fff;
  border-color: transparent;
}
.g-wifi-qr-box {
  margin-top: 0.75rem;
  text-align: center;
  padding: 0.85rem;
  background: #fff;
  border: 1px dashed var(--border);
  border-radius: 12px;
}
.g-wifi-qr-box img { width: 164px; height: 164px; display: block; margin: 0 auto 0.4rem; }
.g-wifi-qr-box small { color: var(--muted); font-size: 0.77rem; }

.g-code-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.6rem;
  background: var(--g-tint);
  padding: 0.65rem 0.85rem;
  border-radius: var(--radius-sm);
  margin-top: 0.65rem;
}
.g-text {
  font-size: 0.88rem;
  color: var(--text-soft);
  white-space: pre-line;
  margin: 0.45rem 0 0;
}

.g-accordion details {
  border-top: 1px solid var(--border);
  padding: 0.62rem 0;
}
.g-accordion details:first-child { border-top: none; padding-top: 0; }
.g-accordion summary {
  cursor: pointer;
  font-weight: 600;
  font-size: 0.9rem;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.g-accordion summary::after { content: '+'; font-weight: 700; color: var(--muted); }
.g-accordion details[open] summary::after { content: '−'; }

.g-place {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.65rem 0;
  border-top: 1px solid var(--border);
}
.g-place:first-child { border-top: none; padding-top: 0; }
.g-place-tag {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--g-accent);
  background: var(--g-tint);
  padding: 0.12rem 0.48rem;
  border-radius: 6px;
  margin-bottom: 0.2rem;
}
.g-place h4 { margin: 0; font-size: 0.92rem; }
.g-place p { margin: 0.18rem 0 0; font-size: 0.82rem; color: var(--text-soft); }

.g-check-item {
  display: flex;
  align-items: flex-start;
  gap: 0.55rem;
  padding: 0.4rem 0;
  font-size: 0.88rem;
  cursor: pointer;
}
.g-check-item input { margin-top: 0.22rem; accent-color: var(--g-accent); }
.g-check-item.checked span { text-decoration: line-through; color: var(--muted); }

.g-powered {
  text-align: center;
  margin-top: 1rem;
  font-size: 0.78rem;
  color: var(--muted);
}
.g-powered a { font-weight: 700; color: var(--primary); text-decoration: underline; }

/* ============================================================================
   HOST STUDIO / EDITOR
   ============================================================================ */
.studio-banner {
  background: #fffbeb;
  border-bottom: 1px solid #fde68a;
  color: #92400e;
  font-size: 0.84rem;
  padding: 0.62rem 1.25rem;
  text-align: center;
}
.studio-banner.cloud {
  background: #ecfdf5;
  border-color: #a7f3d0;
  color: #065f46;
}
.studio-wrap {
  max-width: 1260px;
  margin: 0 auto;
  padding: 1.5rem 1.25rem 4rem;
}
.studio-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 1.25rem;
}
.studio-top h1 {
  font-family: var(--font-serif);
  margin: 0;
  font-size: 1.65rem;
}
.studio-grid {
  display: grid;
  grid-template-columns: 230px minmax(0, 1fr) 370px;
  gap: 1.25rem;
  align-items: start;
}
.panel {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.15rem;
  box-shadow: var(--shadow);
}
.guide-list {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  margin: 0.75rem 0;
}
.guide-item {
  width: 100%;
  text-align: left;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 0.6rem 0.75rem;
  cursor: pointer;
  transition: all 0.14s ease;
}
.guide-item.active {
  border-color: var(--primary);
  background: #edf5f0;
}
.guide-item strong { display: block; font-size: 0.88rem; }
.guide-item small { color: var(--muted); font-size: 0.76rem; }

.tabs {
  display: flex;
  gap: 0.35rem;
  flex-wrap: wrap;
  border-bottom: 1px solid var(--border);
  padding-bottom: 0.75rem;
  margin-bottom: 1rem;
}
.tab-btn {
  border: 1px solid var(--border);
  background: var(--bg);
  color: var(--text-soft);
  padding: 0.4rem 0.78rem;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
}
.tab-btn.active {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}

.field { margin-bottom: 0.9rem; }
.field label {
  display: block;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--text-soft);
  margin-bottom: 0.3rem;
}
.field input[type="text"],
.field input[type="email"],
.field input[type="url"],
.field textarea,
.field select {
  width: 100%;
  padding: 0.58rem 0.75rem;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--bg);
  color: var(--text);
  font-size: 0.9rem;
}
.field textarea { min-height: 82px; resize: vertical; }
.field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
}
.check-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.88rem;
  font-weight: 600;
  margin-bottom: 0.6rem;
  cursor: pointer;
}
.repeat-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 0.85rem;
  margin-bottom: 0.7rem;
}
.repeat-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.5rem;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--muted);
}
.theme-swatches {
  display: flex;
  gap: 0.6rem;
  flex-wrap: wrap;
}
.swatch {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.45rem 0.8rem;
  border-radius: 999px;
  border: 2px solid var(--border);
  background: var(--surface);
  cursor: pointer;
  font-size: 0.82rem;
  font-weight: 600;
}
.swatch.active { border-color: var(--text); }
.swatch-dot { width: 14px; height: 14px; border-radius: 999px; }

.sticky-preview { position: sticky; top: 4.8rem; }
.preview-caption {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.6rem;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--muted);
}

/* Modal & Toast */
.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 90;
  background: rgba(15, 23, 42, 0.6);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  overflow-y: auto;
}
.modal {
  background: var(--surface);
  border-radius: 20px;
  max-width: 560px;
  width: 100%;
  padding: 1.6rem;
  box-shadow: var(--shadow-lg);
  max-height: 92vh;
  overflow-y: auto;
}
.modal h2 { font-family: var(--font-serif); margin: 0 0 0.4rem; }

.toast {
  position: fixed;
  bottom: 1.4rem;
  right: 1.4rem;
  z-index: 100;
  background: #1c1917;
  color: #fff;
  padding: 0.75rem 1.15rem;
  border-radius: 12px;
  font-size: 0.88rem;
  font-weight: 600;
  box-shadow: var(--shadow-lg);
}

/* ============================================================================
   PRINTABLE A4/A5 BOUTIQUE QR WALL POSTER
   ============================================================================ */
.poster-sheet {
  background: #fff;
  color: #1c1917;
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 2rem 1.75rem;
  text-align: center;
}
.poster-eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.76rem;
  color: #78716c;
  font-weight: 700;
}
.poster-name {
  font-family: var(--font-serif);
  font-size: 2rem;
  margin: 0.35rem 0 0.2rem;
  line-height: 1.15;
}
.poster-sub { color: #57534e; margin: 0 0 1.4rem; font-size: 0.95rem; }
.poster-qrs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.2rem;
  margin: 1rem 0 1.2rem;
}
.poster-qr-card {
  border: 1px solid #e6dfd5;
  border-radius: 14px;
  padding: 1rem;
  background: #faf8f5;
}
.poster-qr-card img { width: 175px; height: 175px; max-width: 100%; display: block; margin: 0 auto 0.65rem; }
.poster-qr-card h4 { margin: 0 0 0.25rem; font-size: 0.92rem; }
.poster-qr-card p { margin: 0; font-size: 0.78rem; color: #57534e; word-break: break-all; }
.poster-foot { font-size: 0.76rem; color: #a8a29e; margin-top: 0.75rem; }

footer.site-footer {
  border-top: 1px solid var(--border);
  padding: 2rem 0;
  color: var(--muted);
  font-size: 0.86rem;
  text-align: center;
}

@media (max-width: 1060px) {
  .studio-grid { grid-template-columns: 1fr; }
  .sticky-preview { position: static; }
}
@media (max-width: 820px) {
  .hero { grid-template-columns: 1fr; padding: 2.2rem 0; }
  .field-row, .poster-qrs { grid-template-columns: 1fr; }
}

@media print {
  body * { visibility: hidden; }
  #posterPrintArea, #posterPrintArea * { visibility: visible; }
  #posterPrintArea {
    position: fixed;
    inset: 0;
    border: none !important;
    border-radius: 0 !important;
    padding: 18mm 16mm !important;
    display: flex;
    flex-direction: column;
    justify-content: center;
  }
  .poster-qrs { grid-template-columns: 1fr 1fr !important; }
}
