/* Landing page (ui-ux-pro-max: funnel hero → before/after → 3 steps → features → pricing → FAQ → final CTA).
   Scoped to .landing-page so app screens keep their own button rules. */
.landing-page {
  --l-ink: #1b1526;
  --l-muted: #4a5f5c;          /* 6.4:1 on #f7f5fc */
  --l-brand: #5b3fc4;          /* white text 5.2:1 */
  --l-brand-soft: #ede8fd;
  --l-accent: #b83d8f;
  --l-line: #e2dcf0;
  --l-card: #fff;
  --l-radius: 22px;
  --l-gap: clamp(56px, 8vw, 104px);
}

/* Focus and pointer affordances (accessibility §1, interaction §2). */
.landing-page a:focus-visible, .landing-page summary:focus-visible, .landing-page button:focus-visible { outline: 3px solid var(--l-brand); outline-offset: 3px; border-radius: 12px; }
.landing-page summary, .landing-page a { cursor: pointer; }

/* One primary CTA style on the landing: deep brand green with white text for contrast. */
.landing-page .primary-button {
  width: auto; min-width: 0; min-height: 52px; margin: 0; gap: 12px; justify-content: center;
  padding: 14px 24px; border-radius: 14px; background: var(--l-brand); color: #fff; font-weight: 800;
  text-decoration: none; box-shadow: 0 10px 24px #5b3fc433; transition: background .2s ease, transform .2s ease, box-shadow .2s ease;
}
.landing-page .primary-button:hover { background: #4c33b0; box-shadow: 0 14px 28px #5b3fc444; }
.landing-page .primary-button:active { transform: translateY(1px); }
.landing-page .secondary-button { min-height: 52px; display: inline-flex; align-items: center; justify-content: center; padding: 14px 22px; border-radius: 14px; text-decoration: none; transition: background .2s ease, border-color .2s ease; }
.landing-page .text-link { color: var(--l-brand); font-weight: 700; text-decoration: none; padding: 12px 4px; }
.landing-page .text-link:hover { text-decoration: underline; }
.landing-actions { align-items: center; }
.landing-note { margin-top: 18px; color: var(--l-muted); font-size: 13px; }
.landing-demo-panel { max-width: 420px; margin-top: 22px; padding: 18px 20px 6px; border: 1px solid var(--l-line); border-radius: 18px; background: transparent; }
.landing-page .landing-demo-panel h2 { margin: 0; max-width: none; color: var(--l-ink); font: 600 16px/1.4 "Outfit", sans-serif; letter-spacing: -.2px; }
.landing-demo-panel > p { margin: 5px 0 12px; color: var(--l-muted); font-size: 12px; }
.landing-demo-list { margin: 0; padding: 0; list-style: none; }
.landing-demo-list li { border-top: 1px solid var(--l-line); }
.landing-demo-list a { display: flex; justify-content: space-between; align-items: center; gap: 16px; min-height: 46px; padding: 10px 2px; color: var(--l-ink); font-size: 14px; font-weight: 600; text-decoration: none; }
.landing-demo-list a:hover { color: var(--l-brand); background: var(--l-brand-soft); }
.landing-demo-copy { display: grid; gap: 3px; min-width: 0; }
.landing-demo-copy strong { font-weight: 600; }
.landing-demo-copy small { color: var(--l-muted); font-size: 12px; font-weight: 400; line-height: 1.5; }
.landing-demo-list a > span[aria-hidden] { flex: none; width: 7px; height: 7px; margin-right: 5px; border-top: 1.5px solid currentColor; border-right: 1.5px solid currentColor; transform: rotate(45deg); }

/* Shared section rhythm */
.landing-page > section:not(.landing-hero), .landing-page > .landing-trust { margin-top: var(--l-gap); }
.landing-page h2 { margin: 6px 0 0; max-width: 18ch; font-family: Georgia, "Times New Roman", serif; font-weight: 400; font-size: clamp(30px, 4.2vw, 48px); line-height: 1.1; letter-spacing: -1.5px; color: var(--l-ink); text-wrap: balance; }
.landing-page h3 { margin: 0; font-size: 18px; line-height: 1.3; color: var(--l-ink); }
.landing-page p { line-height: 1.6; }
.landing-page .ui-icon { width: 20px; height: 20px; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* Trust strip under the hero */
.landing-trust { display: flex; flex-wrap: wrap; gap: 10px; padding: 0; list-style: none; margin-top: 28px !important; }
.landing-trust li { display: inline-flex; align-items: center; gap: 8px; padding: 10px 14px; border: 1px solid var(--l-line); border-radius: 99px; background: var(--l-card); color: var(--l-ink); font-size: 14px; font-weight: 600; }
.landing-trust .ui-icon { color: var(--l-brand); width: 18px; height: 18px; }

/* Before / after */
.compare-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 28px; }
.compare-card { padding: 28px; border-radius: var(--l-radius); border: 1px solid var(--l-line); }
.compare-card ul { display: grid; gap: 14px; margin: 18px 0 0; padding: 0; list-style: none; }
.compare-card li { display: flex; gap: 12px; align-items: flex-start; font-size: 16px; line-height: 1.5; }
.compare-before { background: #f1f3f2; color: #4a5856; }
.compare-before h3 { color: #4a5856; }
.compare-before .ui-icon { color: #9a5b45; margin-top: 2px; }
.compare-after { background: linear-gradient(160deg, #0a5c55, #5b3fc4 55%, #12a596); color: #fff; border-color: transparent; box-shadow: 0 24px 48px #5b3fc430; }
.compare-after h3 { color: #fff; }
.compare-after .ui-icon { color: #9ef0e1; margin-top: 2px; }

/* Three steps */
.steps-grid { counter-reset: none; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin: 28px 0 0; padding: 0; list-style: none; }
.steps-grid li { position: relative; padding: 26px; border-radius: var(--l-radius); background: var(--l-card); border: 1px solid var(--l-line); }
.steps-grid p { margin: 8px 0 0; color: var(--l-muted); }
.step-number { display: grid; place-items: center; width: 40px; height: 40px; margin-bottom: 16px; border-radius: 50%; background: var(--l-brand); color: #fff; font-weight: 800; }
.steps-grid li:nth-child(2) .step-number { background: #e08a12; }
.steps-grid li:nth-child(3) .step-number { background: var(--l-accent); }
.steps-cta { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; margin-top: 24px; }

/* Features */
.landing-feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 28px; }
.landing-feature-grid article { padding: 26px; border-radius: var(--l-radius); background: var(--l-card); border: 1px solid var(--l-line); transition: border-color .2s ease, box-shadow .2s ease; }
.landing-feature-grid article:hover { border-color: #b6a6ee; box-shadow: 0 16px 32px #1b15260f; }
.landing-feature-grid p { margin: 8px 0 0; color: var(--l-muted); }
.feature-icon { display: grid; place-items: center; width: 48px; height: 48px; margin-bottom: 16px; border-radius: 14px; background: var(--l-brand-soft); color: var(--l-brand); }
.landing-feature-grid article:nth-child(3n+2) .feature-icon { background: #fdf0dc; color: #a35f05; }
.landing-feature-grid article:nth-child(3n) .feature-icon { background: #fbe4da; color: #5b3fc4; }

/* Pricing */
.landing-page .landing-pricing { display: grid; grid-template-columns: 1.1fr .9fr; gap: 32px; align-items: center; padding: clamp(28px, 5vw, 48px); border-radius: 28px; background: var(--l-card); border: 1px solid var(--l-line); }
.landing-pricing h2 small { font-family: inherit; font-size: 18px; letter-spacing: 0; color: var(--l-muted); }
.pricing-copy p { color: var(--l-muted); max-width: 52ch; }
.pricing-card { display: grid; gap: 16px; padding: 28px; border-radius: var(--l-radius); background: var(--l-brand-soft); border: 2px solid var(--l-brand); }
.pricing-card ul { display: grid; gap: 12px; margin: 0; padding: 0; list-style: none; }
.pricing-card li { display: flex; gap: 10px; align-items: flex-start; color: var(--l-ink); font-weight: 600; }
.pricing-card .ui-icon { color: var(--l-brand); margin-top: 2px; }
.pricing-card small { color: var(--l-muted); }

/* FAQ */
.landing-contact > p { margin: 12px 0 24px; color: var(--l-muted); }
.landing-contact-links { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.landing-page .landing-contact-link { display: flex; align-items: center; gap: 14px; min-width: 0; min-height: 100px; padding: 22px; border: 1px solid var(--l-line); border-radius: 18px; background: var(--l-card); color: var(--l-ink); text-decoration: none; }
.landing-page .landing-contact-link:hover { border-color: var(--l-brand); background: var(--l-brand-soft); }
.landing-contact-link > .ui-icon { flex: none; width: 26px; height: 26px; color: var(--l-brand); }
.landing-contact-link > span:not(.contact-arrow) { min-width: 0; }
.landing-contact-link strong { display: block; font-size: 16px; }
.landing-contact-link small { display: block; margin-top: 5px; color: var(--l-muted); font-size: 13px; line-height: 1.5; }
.landing-contact-link .contact-arrow { flex: none; margin-left: auto; color: var(--l-brand); font-size: 20px; }
@media (max-width: 900px) { .landing-contact-links { grid-template-columns: 1fr; } .landing-page .landing-contact-link { min-height: 88px; padding: 18px 20px; } }
.landing-faq details { border-bottom: 1px solid var(--l-line); }
.landing-faq summary { display: flex; justify-content: space-between; align-items: center; gap: 16px; min-height: 56px; padding: 16px 0; font-weight: 700; color: var(--l-ink); list-style: none; }
.landing-faq summary::-webkit-details-marker { display: none; }
.landing-faq summary::after { content: ""; flex: none; width: 10px; height: 10px; border-right: 2px solid var(--l-brand); border-bottom: 2px solid var(--l-brand); transform: rotate(45deg); transition: transform .2s ease; }
.landing-faq details[open] summary::after { transform: rotate(-135deg); }
.landing-faq details p { margin: 0 0 18px; max-width: 70ch; color: var(--l-muted); }

/* Final CTA */
.landing-final { padding: clamp(36px, 6vw, 64px); border-radius: 28px; text-align: center; background: linear-gradient(160deg, #1b1526, #0a5c55); color: #fff; }
.landing-final h2 { max-width: none; margin: 0 auto; color: #fff; }
.landing-final p { margin: 12px auto 0; max-width: 46ch; color: #d6e8e3; }
.landing-final .landing-actions { justify-content: center; margin-top: 24px; }
.landing-final .primary-button { background: #6d4fd8; color: #07302d; box-shadow: none; }
.landing-final .primary-button:hover { background: #3fd3c3; }
.landing-page .secondary-button.on-dark { background: transparent; color: #fff; border: 1px solid #ffffff66; }
.landing-page .secondary-button.on-dark:hover { background: #ffffff14; }

@media (max-width: 900px) {
  .compare-grid, .steps-grid, .landing-feature-grid, .landing-page .landing-pricing { grid-template-columns: 1fr; }
  .landing-feature-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
  .landing-feature-grid { grid-template-columns: 1fr; }
  .landing-page .primary-button, .landing-page .secondary-button { width: 100%; }
  .landing-trust li { font-size: 13px; }
  .compare-card, .steps-grid li, .landing-feature-grid article { padding: 22px; }
}
@media (prefers-reduced-motion: reduce) {
  .landing-page * { transition: none !important; }
}

/* Patterns inspired by 21st.dev (announcement pill, dotted glow hero, stat strip, bento with UI previews), built natively. */
.landing-hero { position: relative; }
.landing-hero::before { content: ""; position: absolute; inset: -40px -20px auto; height: 520px; z-index: -1; pointer-events: none;
  background-image: radial-gradient(#5b3fc426 1.2px, transparent 1.3px); background-size: 22px 22px;
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 30% 40%, #000 40%, transparent 75%); mask-image: radial-gradient(ellipse 70% 60% at 30% 40%, #000 40%, transparent 75%); }
.landing-announce { display: inline-flex; align-items: center; gap: 10px; margin-bottom: 18px; padding: 6px 14px 6px 6px; border: 1px solid var(--l-line); border-radius: 99px; background: #ffffffcc; color: var(--l-ink); font-size: 14px; font-weight: 600; text-decoration: none; box-shadow: 0 6px 18px #1b15260d; transition: border-color .2s ease, box-shadow .2s ease; }
.landing-announce:hover { border-color: #b6a6ee; box-shadow: 0 8px 22px #5b3fc41f; }
.announce-tag { padding: 4px 10px; border-radius: 99px; background: var(--l-brand); color: #fff; font-size: 12px; font-weight: 800; }

.landing-page .landing-feature-grid.bento { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; padding: 0; border: 0; border-radius: 0; background: transparent; overflow: visible; }
.landing-feature-grid.bento > article { min-width: 0; padding: 24px; border-radius: 20px; }
.landing-feature-grid.bento h3 { margin: 0; font-size: 17px; line-height: 1.4; letter-spacing: -.3px; }
.landing-feature-grid.bento p { margin: 10px 0 0; font-size: 14px; line-height: 1.65; }
.landing-feature-grid.bento .feature-icon { width: 42px; height: 42px; margin-bottom: 18px; border-radius: 12px; }
.landing-feature-grid.bento .bento-wide { grid-column: span 2; display: grid; grid-template-columns: minmax(0, 1fr); grid-template-rows: 42px auto 1fr minmax(208px, auto); gap: 14px; padding: 28px; }
.landing-feature-grid.bento .bento-wide > .feature-icon { margin: 0; }
.landing-feature-grid.bento .bento-wide > h3 { font-size: 21px; }
.landing-feature-grid.bento .bento-wide > p { margin: 0; max-width: 56ch; }
.landing-feature-grid.bento .bento-preview { min-width: 0; padding: 16px; border-radius: 14px; background: linear-gradient(160deg, #f7f9fc, #f0ecfc); border: 1px solid var(--l-line); }
.landing-feature-grid.bento .mock-ticket { align-content: center; gap: 10px; }
.mock-head { display: flex; align-items: center; gap: 8px; margin-bottom: 12px; }
.mock-logo { width: 26px; height: 26px; border-radius: 8px; background: var(--l-brand); }
.mock-line { height: 10px; border-radius: 99px; background: #c9ddd8; }
.mock-line.w40 { width: 40%; }
.mock-slots { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.mock-slots span { padding: 8px 0; border-radius: 10px; background: #fff; border: 1px solid var(--l-line); text-align: center; font-size: 13px; font-weight: 600; color: var(--l-ink); }
.mock-slots .taken { background: #eef2f1; color: #8a9996; text-decoration: line-through; border-color: transparent; }
.mock-slots .on { background: var(--l-brand); color: #fff; border-color: var(--l-brand); }
.mock-button { display: block; margin-top: 12px; padding: 10px; border-radius: 10px; background: var(--l-ink); color: #fff; text-align: center; font-size: 13px; font-weight: 700; }
.mock-ticket { display: grid; justify-items: center; gap: 6px; text-align: center; background: #fff; }
.mock-ticket small { color: var(--l-muted); font-weight: 600; }
.mock-ticket strong { font-family: Georgia, "Times New Roman", serif; font-size: 32px; letter-spacing: 2px; color: var(--l-ink); }
.mock-badge { padding: 4px 12px; border-radius: 99px; background: var(--l-brand-soft); color: var(--l-brand); font-size: 12px; font-weight: 800; }

.pricing-card { position: relative; box-shadow: 0 0 0 6px #5b3fc414, 0 24px 48px #5b3fc424; }
.pricing-ribbon { position: absolute; top: -14px; left: 24px; padding: 6px 12px; border-radius: 99px; background: var(--l-accent); color: #fff; font-size: 12px; font-weight: 800; }
.pricing-card ul { margin-top: 8px; }

.landing-final { position: relative; overflow: hidden; }
.landing-final::before { content: ""; position: absolute; inset: 0; pointer-events: none; background-image: radial-gradient(#ffffff1f 1px, transparent 1.2px); background-size: 20px 20px; -webkit-mask-image: radial-gradient(ellipse at center, #000 30%, transparent 75%); mask-image: radial-gradient(ellipse at center, #000 30%, transparent 75%); }
.landing-final > * { position: relative; }

@media (max-width: 1100px) {
  .landing-page .landing-feature-grid.bento { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .landing-feature-grid.bento .bento-wide { grid-column: auto; padding: 24px; }
}
@media (max-width: 700px) {
  .landing-page .landing-feature-grid.bento { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .landing-feature-grid.bento > article, .landing-feature-grid.bento .bento-wide { padding: 22px; }
}

/* Impact: what changes for the business owner, in outcomes rather than features. */
.impact-lede { max-width: 56ch; margin: 14px 0 0; color: var(--l-muted); font-size: 17px; line-height: 1.6; }
.impact-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin: 28px 0 0; padding: 0; list-style: none; }
.impact-grid li { display: grid; gap: 14px; align-content: start; padding: 26px; border-radius: var(--l-radius); background: var(--l-card); border: 1px solid var(--l-line); transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease; }
.impact-grid li:hover { border-color: #c9bdf2; box-shadow: 0 16px 36px rgb(91 63 196 / .10); transform: translateY(-2px); }
.impact-icon { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 14px; background: var(--l-brand-soft); color: var(--l-brand); }
.impact-icon .ui-icon { width: 24px; height: 24px; }
.impact-grid li:nth-child(3n+2) .impact-icon { background: #fdf0dc; color: #a35f05; }
.impact-grid li:nth-child(3n) .impact-icon { background: #fbe4da; color: var(--l-accent); }
.impact-grid p { margin: 6px 0 0; color: var(--l-muted); line-height: 1.6; }
@media (max-width: 900px) { .impact-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .impact-grid { grid-template-columns: 1fr; } .impact-grid li { padding: 22px; } }
@media (prefers-reduced-motion: reduce) { .impact-grid li { transition: none; } .impact-grid li:hover { transform: none; } }
/* Pricing sits on a white card: override the old dark-section text colours that made it pale. */
.landing-page .landing-pricing .eyebrow { color: var(--l-brand); }
.landing-page .landing-pricing h2 { color: var(--l-ink); }
.landing-page .landing-pricing h2 small { color: var(--l-muted); font-size: 18px; }
.landing-page .landing-pricing .pricing-copy p:not(.eyebrow) { margin: 14px 0 0; max-width: 52ch; color: var(--l-muted); font-size: 16px; line-height: 1.65; }

/* Ambient lavender leaves drifting down the landing page. Decorative only: no pointer events, hidden for reduced motion. */
.leaf-field { position: fixed; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; }
.leaf { position: absolute; top: 0; left: var(--x); width: calc(var(--s) * .72); height: calc(var(--s) * 1.45); opacity: 0; will-change: transform; animation: leaf-fall var(--t) linear var(--d) infinite; }
.leaf b { display: block; width: 100%; height: 100%; background: center / contain no-repeat; animation: leaf-sway calc(var(--t) / 4) ease-in-out var(--d) infinite alternate; }
.leaf-0 b { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 48'%3E%3Cdefs%3E%3ClinearGradient id='g' x1='0' y1='0' x2='1' y2='1'%3E%3Cstop offset='0' stop-color='%23b9a5ee'/%3E%3Cstop offset='1' stop-color='%238467d9'/%3E%3C/linearGradient%3E%3C/defs%3E%3Cpath d='M12 1C21 12 22 30 12 47 2 30 3 12 12 1Z' fill='url(%23g)'/%3E%3Cpath d='M12 6v38' stroke='white' stroke-opacity='.55' stroke-width='1' fill='none'/%3E%3C/svg%3E"); }
.leaf-1 b { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 48'%3E%3Cdefs%3E%3ClinearGradient id='g' x1='0' y1='0' x2='1' y2='1'%3E%3Cstop offset='0' stop-color='%23d8cdf7'/%3E%3Cstop offset='1' stop-color='%23a48be6'/%3E%3C/linearGradient%3E%3C/defs%3E%3Cpath d='M12 1C21 12 22 30 12 47 2 30 3 12 12 1Z' fill='url(%23g)'/%3E%3Cpath d='M12 6v38' stroke='white' stroke-opacity='.55' stroke-width='1' fill='none'/%3E%3C/svg%3E"); }
.leaf-2 b { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 48'%3E%3Cdefs%3E%3ClinearGradient id='g' x1='0' y1='0' x2='1' y2='1'%3E%3Cstop offset='0' stop-color='%23c4b2f0'/%3E%3Cstop offset='1' stop-color='%236d4fd8'/%3E%3C/linearGradient%3E%3C/defs%3E%3Cpath d='M12 1C21 12 22 30 12 47 2 30 3 12 12 1Z' fill='url(%23g)'/%3E%3Cpath d='M12 6v38' stroke='white' stroke-opacity='.55' stroke-width='1' fill='none'/%3E%3C/svg%3E"); }
@keyframes leaf-fall {
  0% { transform: translate3d(0, -12vh, 0) rotate(var(--r0)); opacity: 0; }
  8% { opacity: .9; }
  90% { opacity: .9; }
  100% { transform: translate3d(var(--dx), 112vh, 0) rotate(var(--r1)); opacity: 0; }
}
@keyframes leaf-sway { from { transform: translateX(calc(var(--w) * -1)); } to { transform: translateX(var(--w)); } }
@media (max-width: 600px) { .leaf:nth-child(n+10) { display: none; } }
@media (prefers-reduced-motion: reduce) { .leaf-field { display: none; } }
