/* Public marketing pages. Builds on the tokens in app.css. */

@font-face {
  font-family: "Cormorant Garamond";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("../fonts/cormorant-garamond-latin-500-normal.efeea72c7a42.woff2") format("woff2");
}
@font-face {
  font-family: "Cormorant Garamond";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("../fonts/cormorant-garamond-latin-600-normal.bf1e09fb81d7.woff2") format("woff2");
}
@font-face {
  font-family: "Cormorant Garamond";
  font-style: italic;
  font-weight: 500;
  font-display: swap;
  src: url("../fonts/cormorant-garamond-latin-500-italic.9b8a16c9964e.woff2") format("woff2");
}

body.marketing { background: var(--bg); }
.marketing .messages { max-width: 1120px; }

.display {
  font-family: "Cormorant Garamond", ui-serif, Georgia, serif;
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.08;
}
h1.display { font-size: clamp(2.5rem, 6vw, 4.25rem); margin: 0.25rem 0 1.25rem; }
h2.display { font-size: clamp(1.9rem, 4vw, 2.75rem); margin: 0 0 1rem; }
.eyebrow { margin: 0; font-size: 0.8rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--accent); }
.lead { font-size: clamp(1.05rem, 1.6vw, 1.25rem); color: var(--muted); max-width: 38rem; }
.lead strong { color: var(--text); font-weight: 600; }
.center { text-align: center; }
.btn.big { padding: 0.85rem 1.5rem; font-size: 1.05rem; border-radius: 999px; }
.btn.secondary.big { background: var(--surface); }
.arrow-link { color: var(--accent); font-weight: 600; text-decoration: none; }
.arrow-link:hover { text-decoration: underline; }

/* Header */
.mk-header {
  position: sticky; top: 0; z-index: 20;
  display: flex; align-items: center; gap: 1.5rem;
  max-width: 1120px; margin: 0 auto; padding: 0.9rem 1.25rem;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(10px);
}
.mk-brand { display: inline-flex; align-items: center; gap: 0.55rem; font-family: "Cormorant Garamond", ui-serif, Georgia, serif; font-weight: 600; font-size: 1.4rem; color: var(--text); text-decoration: none; white-space: nowrap; }
.mk-nav { display: flex; gap: 1.4rem; margin-left: auto; }
.mk-nav a, .mk-login { color: var(--text); text-decoration: none; font-size: 0.95rem; }
.mk-nav a:hover, .mk-login:hover, .mk-nav a[aria-current] { color: var(--accent); }
.mk-actions { display: flex; align-items: center; gap: 1rem; }
.mk-actions .btn.small { border-radius: 999px; padding: 0.45rem 1rem; }
.mk-menu { display: none; margin-left: auto; position: relative; }
.mk-menu summary { list-style: none; cursor: pointer; display: grid; gap: 5px; padding: 0.6rem; }
.mk-menu summary::-webkit-details-marker { display: none; }
.mk-menu summary span { display: block; width: 22px; height: 2px; background: var(--text); border-radius: 2px; }
.mk-menu-panel { position: absolute; right: 0; top: 100%; min-width: 14rem; display: grid; gap: 0.25rem; padding: 0.75rem; background: var(--surface); border: 1px solid var(--border); border-radius: 12px; box-shadow: var(--shadow); }
.mk-menu-panel a { padding: 0.5rem 0.6rem; color: var(--text); text-decoration: none; border-radius: 8px; }
.mk-menu-panel a:hover { background: var(--accent-soft); }
.mk-menu-panel .btn { color: var(--accent-text); text-align: center; margin-top: 0.25rem; }

/* Layout */
.mk { max-width: 1120px; margin: 0 auto; padding: 0 1.25rem; }
.section { padding: 4.5rem 0; }
.band {
  margin: 1rem 0; padding: 4rem 2rem; border-radius: 28px; text-align: center;
  background: linear-gradient(160deg, var(--accent-soft), color-mix(in srgb, var(--accent-soft) 40%, var(--bg)));
}
.band .display { max-width: 40rem; margin-left: auto; margin-right: auto; }
.band-lead { max-width: 42rem; margin: 1rem auto 0; font-size: 1.1rem; color: var(--muted); }
.narrow-text { max-width: 40rem; margin: 0 auto; color: var(--muted); font-size: 1.08rem; }

/* Hero */
.hero { display: grid; grid-template-columns: 1.15fr 1fr; gap: 3rem; align-items: center; padding: 3.5rem 0 4.5rem; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 0.75rem; margin: 1.75rem 0 1rem; }
.hero-note { font-size: 0.92rem; color: var(--muted); }
.page-hero { padding: 4rem 0 2rem; max-width: 46rem; }
.hero-visual { display: flex; flex-direction: column; align-items: center; }
.mockup-caption { margin-top: 0.9rem; font-size: 0.85rem; color: var(--muted); }

/* Phone mockup (always light, like a real guest page) */
.phone {
  --ph-bg: #faf8f5; --ph-surface: #ffffff; --ph-text: #22201c; --ph-muted: #6f6a62;
  --ph-border: #e6e1d8; --ph-accent: #7a5c3e; --ph-soft: #f1e9df;
  position: relative; width: min(320px, 82vw); aspect-ratio: 9 / 18.5;
  padding: 12px; border-radius: 46px; background: #1c1a18;
  box-shadow: 0 30px 60px -20px rgba(60, 40, 20, 0.45), 0 0 0 1px rgba(255, 255, 255, 0.06) inset;
  transform: rotate(1.5deg);
}
.phone-notch { position: absolute; top: 20px; left: 50%; transform: translateX(-50%); width: 34%; height: 22px; border-radius: 12px; background: #1c1a18; z-index: 2; }
.phone-screen { position: relative; height: 100%; overflow: hidden; border-radius: 36px; background: var(--ph-bg); color: var(--ph-text); display: flex; flex-direction: column; font-size: 0.86rem; }
.ph-top { padding: 2.5rem 1rem 0.6rem; font-family: "Cormorant Garamond", ui-serif, Georgia, serif; font-size: 1.3rem; font-weight: 600; line-height: 1.1; background: var(--ph-surface); border-bottom: 1px solid var(--ph-border); }
.ph-stage { flex: 1; min-height: 0; display: flex; flex-direction: column; transition: opacity 0.4s ease; }
.ph-stage.off { opacity: 0; pointer-events: none; position: absolute; inset: 0; }
.ph-pass { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 0.6rem; padding: 1.25rem; text-align: center; }
.ph-pass-title { margin: 0; font-family: "Cormorant Garamond", ui-serif, Georgia, serif; font-size: 1.5rem; font-weight: 600; }
.ph-pass-help { margin: 0; color: var(--ph-muted); font-size: 0.82rem; }
.ph-input { width: 100%; height: 2.4rem; display: flex; align-items: center; padding: 0 0.75rem; border: 1px solid var(--ph-border); border-radius: 10px; background: var(--ph-surface); letter-spacing: 0.25em; }
.ph-caret { width: 1px; height: 1.1rem; background: var(--ph-accent); animation: ph-blink 1s steps(2) infinite; }
@keyframes ph-blink { 50% { opacity: 0; } }
.ph-button { width: 100%; padding: 0.6rem; border-radius: 10px; background: var(--ph-accent); color: #fff; font-weight: 600; transition: transform 0.15s ease; }
.ph-button.pressed { transform: scale(0.96); }
.ph-log { flex: 1; min-height: 0; display: flex; flex-direction: column; justify-content: flex-end; gap: 0.5rem; padding: 0.75rem; overflow: hidden; }
.ph-welcome { margin: auto 0; padding: 0.5rem; text-align: center; }
.ph-welcome h3 { margin: 0 0 0.35rem; font-family: "Cormorant Garamond", ui-serif, Georgia, serif; font-size: 1.4rem; font-weight: 600; line-height: 1.15; }
.ph-welcome p { margin: 0; color: var(--ph-muted); font-size: 0.78rem; }
.ph-welcome[hidden] { display: none; }
.ph-msg { max-width: 86%; padding: 0.5rem 0.7rem; border-radius: 14px; line-height: 1.4; animation: ph-in 0.35s ease both; }
.ph-msg.q { align-self: flex-end; background: var(--ph-accent); color: #fff; border-bottom-right-radius: 4px; }
.ph-msg.a { align-self: flex-start; background: var(--ph-surface); border: 1px solid var(--ph-border); border-bottom-left-radius: 4px; }
.ph-chip { display: inline-flex; align-items: center; justify-content: center; min-width: 1.2em; height: 1.2em; margin-left: 0.15em; padding: 0 0.25em; font-size: 0.68rem; font-weight: 700; vertical-align: 0.15em; color: var(--ph-accent); background: var(--ph-soft); border: 1px solid var(--ph-accent); border-radius: 999px; }
.ph-chip.pressed { background: var(--ph-accent); color: #fff; }
.ph-sources { display: block; margin-top: 0.4rem; padding-top: 0.3rem; border-top: 1px solid var(--ph-border); font-size: 0.7rem; color: var(--ph-muted); }
.ph-sources::before { content: "▸ "; font-size: 0.6rem; }
/* The Schedule tab, opened from a source chip */
.ph-schedule { padding: 0.9rem 0.8rem; }
.ph-panel-title { margin: 0 0 0.6rem; font-family: "Cormorant Garamond", ui-serif, Georgia, serif; font-size: 1.6rem; font-weight: 600; line-height: 1.1; }
.ph-card { background: var(--ph-surface); border: 1px solid var(--ph-border); border-radius: 14px; padding: 0.4rem 0.75rem; box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05); }
.ph-row { display: flex; flex-direction: column; gap: 2px; padding: 0.5rem 0.35rem; border-top: 1px solid var(--ph-border); border-radius: 8px; transition: box-shadow 0.3s; }
.ph-row:first-child { border-top: 0; }
.ph-row .k { font-size: 0.7rem; color: var(--ph-muted); }
.ph-row .v { font-size: 0.86rem; }
.ph-row.flash { box-shadow: 0 0 0 2px var(--ph-accent); }
/* The tab bar */
.ph-tabs { display: flex; flex-shrink: 0; background: var(--ph-surface); border-top: 1px solid var(--ph-border); padding: 0.3rem 0 0.9rem; }
.ph-tabs[hidden] { display: none; }
.ph-tab { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 2px; font-size: 0.58rem; font-weight: 600; color: var(--ph-muted); }
.ph-tab .icon { width: 18px; height: 18px; }
.ph-tab.on { color: var(--ph-accent); }
.ph-typing { align-self: flex-start; display: inline-flex; gap: 4px; padding: 0.6rem 0.75rem; border-radius: 14px; background: var(--ph-surface); border: 1px solid var(--ph-border); }
.ph-typing i { width: 6px; height: 6px; border-radius: 50%; background: var(--ph-muted); animation: blink 1.2s infinite both; }
.ph-typing i:nth-child(2) { animation-delay: 0.2s; }
.ph-typing i:nth-child(3) { animation-delay: 0.4s; }
.ph-ask { display: flex; gap: 0.4rem; align-items: center; padding: 0.6rem 0.7rem; background: var(--ph-surface); border-top: 1px solid var(--ph-border); }
.ph-ask span { flex: 1; padding: 0.45rem 0.6rem; border: 1px solid var(--ph-border); border-radius: 9px; color: var(--ph-muted); }
.ph-ask b { padding: 0.45rem 0.75rem; border-radius: 9px; background: var(--ph-accent); color: #fff; }
@keyframes ph-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

/* Steps */
.steps-band { padding: 4rem 2.5rem; }
.steps { list-style: none; padding: 0; margin: 2.5rem 0 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; text-align: left; }
.steps li { padding: 1.5rem; border-radius: 18px; background: var(--surface); box-shadow: var(--shadow); }
.steps h3 { margin: 0.75rem 0 0.4rem; font-size: 1.15rem; }
.steps p { margin: 0; color: var(--muted); }
.step-num { display: inline-flex; align-items: center; justify-content: center; width: 2.4rem; height: 2.4rem; border-radius: 50%; background: var(--accent); color: var(--accent-text); font-family: "Cormorant Garamond", ui-serif, Georgia, serif; font-size: 1.4rem; font-weight: 600; flex-shrink: 0; }

/* Features */
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; margin-top: 2.5rem; }
.feature { padding: 1.6rem; border: 1px solid var(--border); border-radius: 18px; background: var(--surface); }
.feature h3 { margin: 0.9rem 0 0.4rem; font-size: 1.1rem; }
.feature p { margin: 0; color: var(--muted); }
.feature-icon { display: inline-flex; align-items: center; justify-content: center; width: 2.75rem; height: 2.75rem; border-radius: 12px; background: var(--accent-soft); color: var(--accent); }

/* Question cloud */
.question-cloud { list-style: none; padding: 0; margin: 2rem auto 0; max-width: 52rem; display: flex; flex-wrap: wrap; justify-content: center; gap: 0.6rem; }
.question-cloud li { padding: 0.55rem 1rem; border-radius: 999px; background: var(--surface); border: 1px solid var(--border); font-size: 0.95rem; }
.question-cloud li:nth-child(3n) { background: var(--accent); color: var(--accent-text); border-color: var(--accent); }

/* Audience cards */
.audience { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; }
.audience-card { display: block; padding: 2.25rem; border-radius: 24px; border: 1px solid var(--border); background: var(--surface); color: var(--text); text-decoration: none; transition: transform 0.2s ease, box-shadow 0.2s ease; }
.audience-card:hover { transform: translateY(-3px); box-shadow: 0 16px 40px -18px rgba(60, 40, 20, 0.35); }
.audience-card h2 { margin: 0.5rem 0 0.75rem; }
.audience-card p:not(.eyebrow) { color: var(--muted); }

/* FAQ */
.faq-teaser, .faq-list { max-width: 48rem; margin: 0 auto; }
.faq-list h2 { margin-top: 2.5rem; font-size: 1.8rem; }
.faq-item { border-bottom: 1px solid var(--border); }
.faq-item summary { cursor: pointer; list-style: none; padding: 1.1rem 2rem 1.1rem 0; font-weight: 600; font-size: 1.05rem; position: relative; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; position: absolute; right: 0.25rem; top: 50%; transform: translateY(-50%); font-size: 1.4rem; font-weight: 400; color: var(--accent); }
.faq-item[open] summary::after { content: "−"; }
.faq-item p { margin: 0 0 1.1rem; color: var(--muted); }

/* Final call to action */
.final-cta { margin: 3rem 0 1rem; padding: 4rem 2rem; border-radius: 28px; text-align: center; background: #22201c; color: #f5f1ea; }
.final-cta .display { color: #fff; max-width: 38rem; margin-left: auto; margin-right: auto; }
.final-cta p { color: #cfc8bc; font-size: 1.1rem; margin: 0 0 1.75rem; }
.final-cta a:not(.btn) { color: #fff; }
.final-cta .btn { background: #f1e9df; color: #22201c; border-color: #f1e9df; }

/* Content pages */
.split { display: grid; grid-template-columns: 1.2fr 1fr; gap: 3rem; align-items: start; }
.split p { color: var(--muted); font-size: 1.05rem; }
.checklist { list-style: none; padding: 0; margin: 0; display: grid; gap: 1rem; }
.checklist li { display: flex; gap: 0.8rem; align-items: flex-start; padding: 1rem 1.1rem; border-radius: 14px; background: var(--surface); border: 1px solid var(--border); }
.checklist .icon { flex-shrink: 0; color: var(--accent); margin-top: 0.1rem; }
.checklist strong { color: var(--text); }
.numbered { padding-left: 1.2rem; color: var(--muted); font-size: 1.05rem; }
.numbered li { margin-bottom: 0.7rem; }
.numbered strong { color: var(--text); }
.levels-demo { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.75rem; margin-top: 2rem; }
.level-pill { display: grid; gap: 0.2rem; min-width: 14rem; padding: 1rem 1.25rem; border-radius: 16px; background: var(--surface); font-weight: 700; text-align: left; }
.level-pill span { font-weight: 400; font-size: 0.9rem; color: var(--muted); }
.timeline { max-width: 46rem; padding-top: 1rem; display: grid; gap: 1.25rem; }
.timeline-step { display: flex; gap: 1.25rem; padding: 1.5rem; border-radius: 18px; background: var(--surface); border: 1px solid var(--border); }
.timeline-step h2 { margin: 0.25rem 0 0.4rem; font-size: 1.2rem; }
.timeline-step p { margin: 0; color: var(--muted); }
.privacy-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; margin-top: 2rem; text-align: left; }
.privacy-grid > div { padding: 1.4rem; border-radius: 16px; background: var(--surface); }
.privacy-grid h3 { margin: 0 0 0.4rem; font-size: 1.05rem; }
.privacy-grid p { margin: 0; color: var(--muted); }

/* Footer */
.mk-footer { max-width: 1120px; margin: 2rem auto 0; padding: 2.5rem 1.25rem 1.5rem; border-top: 1px solid var(--border); }
.mk-footer-inner { display: flex; justify-content: space-between; gap: 2rem; flex-wrap: wrap; }
.mk-footer-inner p { margin: 0.5rem 0 0; }
.mk-footer nav { display: flex; flex-wrap: wrap; gap: 0.5rem 1.5rem; align-content: flex-start; }
.mk-footer nav a { color: var(--muted); text-decoration: none; }
.mk-footer nav a:hover { color: var(--accent); }
.mk-footer nav a .icon { width: 16px; height: 16px; vertical-align: -3px; margin-right: 0.3rem; }
.mk-copyright { margin: 2rem 0 0; font-size: 0.85rem; color: var(--muted); }

/* Smaller screens */
@media (max-width: 900px) {
  .mk-nav, .mk-actions { display: none; }
  .mk-menu { display: block; }
  .hero { grid-template-columns: 1fr; padding-top: 2rem; }
  .steps, .features, .audience, .split, .privacy-grid { grid-template-columns: 1fr; }
  .phone { transform: none; }
  .section { padding: 3rem 0; }
  .band, .steps-band, .final-cta { padding: 3rem 1.25rem; border-radius: 22px; }
}

@media (prefers-reduced-motion: reduce) {
  .ph-msg, .ph-stage { animation: none; transition: none; }
  .audience-card { transition: none; }
}
