/* Public pages only. Keep application navigation and styles scoped. */
.marketing-page { --font-mono: var(--font); }
.marketing-page .topbar-left { flex: 0 0 auto; }
.cta-band p.alert-success { color: var(--success); }
.cta-band p.alert-warning { color: #5a2a00; }
.marketing-page .topbar-nav a { min-height: 44px; display: inline-flex; align-items: center; }
.marketing-page .landing-hero-grid { grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 48px; }
.marketing-page .landing-hero { padding: 62px 0; }
.marketing-page .landing-hero h1 { font-size: clamp(2.6rem, 4.7vw, 4rem); }
.hero-offer { color: #fff; margin: 24px 0 8px; font-size: 1.05rem; }

/* The phone menu (base.html, public pages): only at phone widths, where the
   header is the logo, the language link and this button. */
.site-menu { display: none; }
.site-menu summary { display: grid; place-items: center; width: 44px; height: 44px; border: 1px solid rgba(244, 242, 236, .22); border-radius: 10px; color: var(--on-black); cursor: pointer; list-style: none; }
.site-menu summary::-webkit-details-marker { display: none; }
.site-menu summary:focus-visible { outline: none; box-shadow: var(--focus-ring); }
.site-menu svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
.site-menu-close, .site-menu[open] .site-menu-open { display: none; }
.site-menu[open] .site-menu-close { display: inline; }
.site-menu-panel { position: absolute; right: 0; top: calc(100% + 10px); z-index: 30; display: grid; gap: 2px; width: min(280px, calc(100vw - 32px)); padding: 10px; border: 1px solid #39393d; border-radius: 14px; background: #19191b; box-shadow: var(--shadow-lg); }
.site-menu-panel a:not(.btn) { display: flex; min-height: 48px; padding: 0 12px; border-radius: 8px; color: var(--on-black); font-size: 1rem; text-decoration: none; }
.site-menu-panel a:not(.btn):hover { background: #2a2a2d; color: #fff; }
.site-menu-panel .site-menu-login { margin-bottom: 8px; border-bottom: 1px solid #39393d; border-radius: 8px 8px 0 0; color: #fff; }
.site-menu-panel .btn { justify-content: center; margin-top: 10px; }

/* The demo film. A poster + play button until it's asked for (no video
   bytes before then), then the player in the same box. Landscape here,
   portrait on phones (the film has a layout for each). */
.hero-film { margin: 0; min-width: 0; border: 1px solid #39393d; border-radius: 16px; background: #242426; overflow: hidden; box-shadow: var(--shadow-lg); }
.film-label { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 4px 12px; padding: 14px 18px; color: #fff; font-size: .82rem; font-weight: 700; }
.film-meta { color: #bbb8b0; font-size: .72rem; font-weight: 500; }
.film-frame { position: relative; aspect-ratio: 16 / 9; background: #f2f0e9; }
.film-start, .film-frame video { position: absolute; inset: 0; display: block; width: 100%; height: 100%; }
.film-start img { display: block; width: 100%; height: 100%; object-fit: cover; }
.film-frame video { object-fit: contain; background: #f2f0e9; }
.film-frame video:focus-visible { outline: 3px solid var(--accent); outline-offset: -3px; }
.film-play {
  position: absolute; left: 4.6%; bottom: 8%; display: inline-flex; align-items: center; gap: 10px;
  min-height: 50px; padding: 7px 20px 7px 7px; border-radius: 999px; background: var(--accent); color: var(--ink);
  font-size: .95rem; font-weight: 800; line-height: 1.2; box-shadow: 0 12px 28px rgba(13, 13, 14, .28);
  transition: background .15s, transform .15s;
}
.film-play svg { flex: 0 0 auto; width: 36px; height: 36px; padding: 9px 8px 9px 10px; border-radius: 50%; background: var(--ink); fill: var(--accent); }
.film-start:hover .film-play { background: var(--accent-hover); transform: translateY(-1px); }
.film-start:focus-visible { outline: none; }
.film-start:focus-visible .film-play { box-shadow: var(--focus-ring), 0 12px 28px rgba(13, 13, 14, .28); }
.film-next { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; margin: 0; padding: 14px 18px 0; color: #fff; font-weight: 700; font-size: .92rem; }
.film-next[hidden] { display: none; }
.film-transcript { padding: 4px 18px 10px; color: var(--on-black-muted); font-size: .86rem; }
.film-transcript summary { display: flex; align-items: center; gap: 8px; min-height: 44px; cursor: pointer; list-style: none; color: #fff; font-weight: 700; font-size: .82rem; }
.film-transcript summary::-webkit-details-marker { display: none; }
.film-transcript summary::before { content: ""; width: 7px; height: 7px; border: solid var(--accent); border-width: 0 2px 2px 0; transform: rotate(-45deg); transition: transform .15s; }
.film-transcript[open] summary::before { transform: rotate(45deg); }
.film-transcript ol { margin: 2px 0 8px; padding-left: 22px; line-height: 1.55; }
.film-transcript li { margin: 3px 0; }
@media (prefers-reduced-motion: reduce) {
  .film-play, .film-transcript summary::before, .faq-accordion summary::after { transition: none; }
  .film-start:hover .film-play { transform: none; }
}

/* How it works: the visit in three real screens — the customer's check-in,
   the team's board, the customer's SMS. On wide screens the board sits in
   the middle and the phones match its height (subgrid lines the text up). */
.journey { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 3fr) minmax(0, 1fr); grid-template-rows: auto auto; gap: 24px 28px; }
.journey-step { display: grid; grid-row: span 2; grid-template-rows: subgrid; row-gap: 24px; min-width: 0; }
.journey-shot { position: relative; min-width: 0; overflow: hidden; border: 1px solid var(--border-strong); border-radius: 12px; background: var(--surface); box-shadow: var(--shadow-md); }
.journey-shot img { display: block; width: 100%; height: auto; }
.journey-phone { min-height: 380px; border: 7px solid var(--ink); border-radius: 28px; }
.journey-phone > img { position: absolute; inset: 0; height: 100%; object-fit: cover; object-position: top; }
.journey-sms { display: flex; flex-direction: column; gap: 14px; padding: 0 12px 16px; background: #f2f0e9; }
.sms-mock-head { display: flex; flex-direction: column; align-items: center; gap: 6px; margin: 0 -12px; padding: 16px 12px 12px; background: var(--surface); border-bottom: 1px solid var(--border); color: var(--ink); font-size: .78rem; font-weight: 700; }
.sms-mock-avatar { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: var(--neutral-tint); color: var(--muted); font-size: .72rem; font-weight: 800; }
.sms-mock-bubble { margin: 0; padding: 12px 14px; border-radius: 16px 16px 16px 4px; background: var(--surface); color: var(--ink); font-size: .86rem; line-height: 1.5; overflow-wrap: break-word; box-shadow: var(--shadow-sm); }
.sms-mock-link { text-decoration: underline; text-underline-offset: 2px; }
.sms-mock-caption { margin: auto 0 0; color: var(--muted); font-size: .78rem; line-height: 1.45; }
.journey-text { min-width: 0; }
.journey-num { display: grid; place-items: center; width: 30px; height: 30px; margin-bottom: 12px; border-radius: 50%; background: var(--ink); color: var(--accent); font-size: .8rem; font-weight: 800; }
.journey-text h3 { font-size: 1.05rem; line-height: 1.35; margin: 0 0 6px; }
.journey-text p { color: var(--muted); font-size: .9rem; margin: 0; }
.demo-disclosure { margin: 32px 0 0; color: var(--muted); font-size: .83rem; }

.setup-offer-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.setup-offer-grid h2 { font-size: clamp(1.9rem, 3.2vw, 2.6rem); }
.landing-offer { border: 1px solid var(--border-strong); border-radius: 18px; background: var(--surface); padding: 32px; }
.landing-offer h2 { font-size: 3.7rem; }
.landing-offer h2 span { font-size: 1rem; color: var(--muted); font-weight: 500; }
.offer-features { padding-left: 20px; margin: 22px 0; }
.offer-features li { margin: 8px 0; }
.offer-detail { display: inline-block; margin: 12px; font-size: .9rem; }
.buying-faq { display: grid; grid-template-columns: 1fr 1fr; gap: 0 40px; }
.buying-faq .faq-item { border-bottom: 1px solid var(--border); padding: 24px 0; margin: 0; }
.buying-faq h3 { font-size: 1.1rem; line-height: 1.4; margin-bottom: 10px; }
.buying-faq p { font-size: .93rem; margin: 0; }
.buying-faq .faq-item > a { display: inline-block; padding: 10px 0; font-size: .88rem; }
/* The home page's questions fold away under their titles (_buying_faq.html,
   collapsible); /faq keeps every answer open. */
.faq-accordion .faq-item { padding: 0; }
.faq-accordion details[open] { padding-bottom: 20px; }
.faq-accordion summary { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 64px; padding: 14px 0; cursor: pointer; list-style: none; }
.faq-accordion summary::-webkit-details-marker { display: none; }
.faq-accordion summary:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; border-radius: 4px; }
.faq-accordion summary h3 { margin: 0; font-size: 1.02rem; }
.faq-accordion summary::after { content: ""; flex: 0 0 auto; width: 8px; height: 8px; margin-right: 4px; border: solid var(--ink); border-width: 0 2px 2px 0; transform: translateY(-2px) rotate(45deg); transition: transform .15s; }
.faq-accordion details[open] summary::after { transform: translateY(2px) rotate(-135deg); }
.faq-contact { margin: 28px 0 0; }
.faq-topics { display: flex; gap: 24px; flex-wrap: wrap; margin: 24px 0 32px; }
.faq-topics a, .marketing-page .site-footer a { display: inline-flex; align-items: center; min-height: 44px; }
.marketing-page .content-page > h2 { margin-top: 38px; }
.landing-cta .helptext { color: var(--on-black-muted); }
@media (max-width: 980px) {
  .film-play { gap: 8px; min-height: 44px; padding: 5px 16px 5px 5px; font-size: .86rem; }
  .film-play svg { width: 32px; height: 32px; padding: 8px 7px 8px 9px; }
  .journey { grid-template-columns: minmax(0, 1fr) minmax(0, 2.2fr) minmax(0, 1fr); gap: 24px 20px; }
  .sms-mock-bubble { font-size: .8rem; }
}
@media (max-width: 760px) {
  /* Header: one row — logo, language, menu. */
  .marketing-page .topbar { position: static; }
  .marketing-page .topbar-inner { flex-wrap: nowrap; gap: 8px; padding-inline: 16px; padding-block: 8px; }
  .marketing-page .brand-name { display: block; }
  .marketing-page .topbar-nav { flex-wrap: nowrap; gap: 4px; }
  .marketing-page .topbar-nav > a { display: none; }
  .marketing-page .topbar-nav > .marketing-language { display: inline-flex; padding: 0 10px; font-size: .9rem; }
  .marketing-page .site-menu { display: block; position: relative; }

  /* Hero: one full-width action (How it works is just below), the price
     and its terms as one short block. */
  .marketing-page .landing-hero { padding: 32px 0 44px; }
  .marketing-page .landing-hero-grid { grid-template-columns: 1fr; gap: 36px; }
  .landing-hero .hero-lede { margin: 16px 0 24px; }
  .hero-actions .btn-ghost { display: none; }
  .hero-actions .btn-primary { width: 100%; justify-content: center; }
  .hero-offer { margin: 20px 0 4px; font-size: 1rem; }
  .landing-hero .hero-note { margin: 0; font-size: .8rem; line-height: 1.55; }
  .hero-note br { display: none; }

  /* The portrait film on its own, phone-sized, without the card around it;
     the label stays for screen readers (it names the figure). */
  .hero-film { border: 0; border-radius: 0; background: none; box-shadow: none; overflow: visible; }
  .film-label { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
  .film-frame { aspect-ratio: 9 / 16; width: min(100%, 290px); margin-inline: auto; border-radius: 18px; overflow: hidden; box-shadow: 0 18px 44px rgba(0, 0, 0, .5); }
  .film-play { left: 50%; bottom: 6%; transform: translateX(-50%); white-space: nowrap; font-size: .9rem; }
  .film-start:hover .film-play { transform: translateX(-50%); }
  .film-next { justify-content: center; padding: 16px 0 0; }
  .film-transcript { padding: 6px 0 0; }
  .film-transcript summary { justify-content: center; }

  /* Benefits: a plain ticked list, left-aligned. */
  .proof-grid { gap: 12px; padding-top: 22px; padding-bottom: 22px; }
  .proof-grid div { position: relative; display: block; padding-left: 26px; }
  .proof-grid div::before { content: ""; position: absolute; left: 3px; top: 3px; width: 6px; height: 11px; border: solid var(--ink); border-width: 0 2.5px 2.5px 0; transform: rotate(45deg); }
  .proof-grid strong, .proof-grid span { display: block; text-align: left; }

  /* Steps: number beside the title, then the screen. */
  .journey { grid-template-columns: minmax(0, 1fr); grid-template-rows: none; gap: 44px; }
  .journey-step { display: flex; flex-direction: column; gap: 20px; grid-row: auto; }
  .journey-text { order: -1; display: grid; grid-template-columns: 30px minmax(0, 1fr); column-gap: 12px; align-items: center; }
  .journey-num { margin: 0; }
  .journey-text h3 { margin: 0; }
  .journey-text p { grid-column: 2; margin-top: 6px; }
  .journey-shot { width: min(100%, 260px); align-self: center; }
  .journey-phone, .journey-board { height: 400px; min-height: 0; border: 7px solid var(--ink); border-radius: 28px; }
  .journey-sms { height: auto; }
  .journey-board img { position: absolute; inset: 0; height: 100%; object-fit: cover; object-position: top; }

  .setup-offer-grid { grid-template-columns: 1fr; gap: 28px; }
  .landing-offer h2 { font-size: 3rem; }
  .buying-faq { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
  .marketing-page .brand { font-size: .92rem; }
  .marketing-page .brand-mark { width: 30px; height: 30px; }
  .marketing-page .brand-name { height: 13px; }
  .landing-offer { padding: 24px; }
}
