/* A business's own page (https://<slug>.frontdeskja.com), in FrontDesk JA branding.
   The page colour (--tone) is one of FrontDesk's four brand colours, chosen by the owner. */
@font-face { font-family: "Archivo"; font-style: normal; font-display: swap; font-weight: 100 900; font-stretch: 62% 125%; src: url("../fonts/archivo-latin.woff2") format("woff2"); }
@font-face { font-family: "Montserrat"; font-style: normal; font-display: swap; font-weight: 100 900; src: url("../fonts/montserrat-latin.woff2") format("woff2"); }

:root { --tone: #D5F900; --ink: #101010; --paper: #fff; --line: #E6E6E1; --pink: #F52B83; --lav: #B28AF5; --cyan: #00D5DC; --lime: #D5F900; }
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; min-height: 100vh; background: var(--tone); color: var(--ink); font: 500 16px/1.45 Montserrat, system-ui, sans-serif; -webkit-font-smoothing: antialiased; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.lp-ribbon { margin: 0; display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 6px 14px; padding: 10px 16px; background: var(--ink); color: #fff; font-size: 13px; font-weight: 600; text-align: center; }
.lp-ribbon a { display: inline-flex; align-items: center; gap: 6px; color: var(--tone); font-weight: 800; text-decoration: none; }
.lp-ribbon a:hover { text-decoration: underline; }
.lp-ribbon svg { width: 16px; height: 16px; }
.lp-ribbon .lp-home { padding: 7px 13px; border-radius: 999px; background: var(--tone); color: var(--ink); white-space: nowrap; }
.lp-ribbon .lp-home:hover { background: #fff; text-decoration: none; }
.lp { max-width: 1280px; margin: 0 auto; padding: 18px 18px 28px; display: flex; flex-direction: column; gap: 22px; }
.lp-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.lp-who { display: flex; align-items: center; gap: 10px; min-width: 0; }
.lp-logo { flex: none; width: 44px; height: 44px; border-radius: 50%; background: var(--ink); color: var(--tone); display: grid; place-items: center; overflow: hidden; font: 900 16px/1 Archivo, sans-serif; }
a.lp-logo { text-decoration: none; }
a.lp-logo:hover { transform: scale(1.06); }
.lp-logo img { width: 100%; height: 100%; object-fit: cover; background: #fff; }
.lp-addr { margin: 0; font-size: 12px; font-weight: 600; overflow-wrap: anywhere; }
.lp-status { flex: none; margin: 0; display: flex; align-items: center; gap: 6px; padding: 8px 12px; border-radius: 999px; background: var(--ink); color: #fff; font-size: 12px; font-weight: 700; }
.lp-status i { width: 8px; height: 8px; border-radius: 50%; background: #3DDC84; animation: lp-blink 2s ease-in-out infinite; }
.lp-status.is-closed i { background: #FF8A8A; animation: none; }

.lp-hero { display: flex; flex-direction: column; gap: 22px; }
.lp-intro { display: flex; flex-direction: column; gap: 10px; padding-top: 6px; }
.lp-eyebrow { margin: 0; display: flex; align-items: center; gap: 10px; font-size: 11px; font-weight: 700; letter-spacing: .24em; text-transform: uppercase; }
.lp-eyebrow::before { content: ""; width: 32px; height: 2px; background: var(--ink); }
.lp-name { margin: 0; font: 900 clamp(40px, 12vw, 96px)/.92 Archivo, sans-serif; text-transform: uppercase; letter-spacing: -.025em; overflow-wrap: normal; hyphens: none; }
.lp-tagline { margin: 0; max-width: 34em; font-size: clamp(16px, 1.5vw, 19px); }
.lp-actions { display: none; }

/* the chat card: FrontDesk's turning shapes, questions floating up, a pulsing chat button */
.lp-card { position: relative; display: block; width: 100%; height: 300px; border: 0; padding: 0; border-radius: 28px; background: var(--ink); color: #fff; overflow: hidden; cursor: pointer; font: inherit; text-align: center; }
.lp-shape { position: absolute; left: 50%; top: 46%; pointer-events: none; }
.lp-shape i { position: absolute; inset: 0; }
.lp-shape--a { width: 300px; height: 300px; margin: -150px 0 0 -150px; animation: lp-spin 38s linear infinite; }
.lp-shape--a i { background: var(--pink); opacity: .85; clip-path: polygon(8% 30%, 30% 6%, 62% 2%, 90% 18%, 98% 52%, 84% 86%, 52% 98%, 18% 88%, 2% 60%); }
.lp-shape--b { width: 250px; height: 250px; margin: -125px 0 0 -125px; animation: lp-spin 28s linear infinite reverse; }
.lp-shape--b i { background: var(--lav); opacity: .9; clip-path: polygon(14% 22%, 44% 8%, 78% 12%, 96% 40%, 90% 76%, 62% 94%, 26% 92%, 6% 66%); }
.lp-shape--c { width: 190px; height: 190px; margin: -95px 0 0 -95px; animation: lp-spin 22s linear infinite; }
.lp-shape--c i { background: var(--cyan); opacity: .9; clip-path: polygon(20% 30%, 50% 14%, 80% 24%, 92% 54%, 74% 84%, 40% 90%, 14% 70%); }
/* the shapes use the three brand colours that aren't the page colour, so the chat button stands out */
.lp-card[data-tone="pink"] .lp-shape--a i, html[data-tone="pink"] .lp-card .lp-shape--a i { background: var(--lime); }
.lp-card[data-tone="lavender"] .lp-shape--b i, html[data-tone="lavender"] .lp-card .lp-shape--b i { background: var(--lime); }
.lp-card[data-tone="cyan"] .lp-shape--c i, html[data-tone="cyan"] .lp-card .lp-shape--c i { background: var(--lime); }
html[data-tone] .lp-card[data-tone]:not([data-tone="pink"]) .lp-shape--a i { background: var(--pink); }
.lp-float { position: absolute; bottom: 30px; padding: 8px 12px; border-radius: 14px 14px 14px 4px; background: #fff; color: var(--ink); font-size: 12px; font-weight: 700; white-space: nowrap; opacity: 0; animation: lp-rise 6s ease-in-out infinite; pointer-events: none; }
.lp-float:nth-of-type(1) { left: 18px; }
.lp-float:nth-of-type(2) { right: 20px; border-radius: 14px 14px 4px 14px; background: var(--tone); animation-delay: 2s; }
.lp-float:nth-of-type(3) { left: 22%; animation-delay: 4s; }
.lp-btn { position: absolute; left: 50%; top: 46%; transform: translate(-50%, -50%); width: 96px; height: 96px; }
.lp-btn::before { content: ""; position: absolute; inset: 0; border-radius: 50%; border: 3px solid var(--tone); animation: lp-ring 2.4s ease-out infinite; }
.lp-btn span { position: absolute; inset: 0; border-radius: 50%; background: var(--tone); color: var(--ink); display: grid; place-items: center; box-shadow: 0 12px 30px rgba(0,0,0,.35); animation: lp-bob 3s ease-in-out infinite; }
.lp-btn svg { width: 42%; height: 42%; }
.lp-card-title { position: absolute; left: 0; right: 0; top: 20px; font: 900 22px/1 Archivo, sans-serif; text-transform: uppercase; }
.lp-card-sub { position: absolute; left: 0; right: 0; top: 50px; font-size: 13px; font-weight: 600; color: #fff; opacity: .85; }
.lp-card:hover .lp-btn span, .lp-card:focus-visible .lp-btn span { transform: scale(1.06); }

.lp-quick { display: grid; grid-template-columns: repeat(var(--n, 3), minmax(0, 1fr)); gap: 8px; }
.lp-quick button, .lp-quick a { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; min-height: 72px; padding: 12px 6px; border: 0; border-radius: 18px; background: #fff; color: var(--ink); text-decoration: none; font: 700 13px/1.1 Montserrat, sans-serif; text-align: center; cursor: pointer; }
.lp-quick svg { width: 22px; height: 22px; }

.lp-info { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.lp-box { padding: 16px; border-radius: 22px; background: var(--ink); color: #fff; display: flex; flex-direction: column; gap: 8px; }
.lp-box h2 { margin: 0; font-size: 11px; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; color: var(--tone); }
.lp-box p, .lp-box ul { margin: 0; padding: 0; list-style: none; font-size: 13px; font-weight: 600; line-height: 1.5; white-space: pre-line; }
.lp-services { grid-column: 1 / -1; background: #fff; color: var(--ink); padding: 20px; border-radius: 24px; gap: 14px; }
.lp-services h2 { color: var(--ink); font: 900 20px/1 Archivo, sans-serif; letter-spacing: 0; }
.lp-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.lp-chips li { padding: 8px 12px; border-radius: 999px; border: 1.5px solid var(--ink); font-size: 13px; font-weight: 600; line-height: 1; white-space: normal; }
.lp-prices { display: flex; flex-direction: column; }
.lp-prices li { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 12px 0 0; margin-top: 12px; border-top: 1px solid var(--line); font-size: 14px; }
.lp-prices li:first-child { margin-top: 0; }
.lp-prices b { font: 900 20px/1 Archivo, sans-serif; white-space: nowrap; }

.lp-foot { display: flex; flex-direction: column; gap: 10px; padding-top: 4px; font-size: 12px; }
.lp-foot p { margin: 0; }
.lp-powered { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; text-decoration: none; }
.lp-powered span { width: 26px; height: 18px; border-radius: 4px; background: var(--ink); color: var(--tone); display: grid; place-items: center; font: 900 9px/1 Archivo, sans-serif; }

/* the chat sheet: full screen on a phone, a panel on a computer */
.lp-sheet { position: fixed; inset: 0; z-index: 10; display: none; background: var(--ink); overflow: hidden; }
.lp-sheet.is-open { display: block; animation: lp-up .32s cubic-bezier(.2, .9, .3, 1) both; }
.lp-sheet .lp-shape { top: auto; }
.lp-sheet .lp-shape--a { left: auto; right: -120px; top: 120px; margin: 0; opacity: .25; }
.lp-sheet .lp-shape--a i { background: var(--tone); }
.lp-sheet .lp-shape--b { left: -140px; bottom: 140px; margin: 0; opacity: .22; }
.lp-sheet .lp-shape--c { left: auto; right: 30px; bottom: 260px; margin: 0; opacity: .18; }
.lp-chat { position: relative; height: 100%; height: 100dvh; }
body.is-chatting { overflow: hidden; }

@keyframes lp-spin { to { transform: rotate(360deg); } }
@keyframes lp-rise { 0% { transform: translateY(40px) scale(.85); opacity: 0; } 12% { opacity: 1; } 80% { opacity: 1; } 100% { transform: translateY(-190px) scale(1); opacity: 0; } }
@keyframes lp-ring { 0% { transform: scale(.8); opacity: .9; } 100% { transform: scale(1.9); opacity: 0; } }
@keyframes lp-bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-6px); } }
@keyframes lp-blink { 50% { opacity: .2; } }
@keyframes lp-up { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }

/* computer: name and actions left, the chat card right */
@media (min-width: 900px) {
  .lp { padding: 28px 4vw 40px; gap: 36px; }
  .lp-logo { width: 52px; height: 52px; font-size: 19px; }
  .lp-addr { font-size: 14px; }
  .lp-status { padding: 10px 16px; font-size: 14px; }
  .lp-hero { flex-direction: row; align-items: stretch; gap: 40px; }
  .lp-intro { flex: 1.1 1 0; min-width: 0; justify-content: center; gap: 22px; }
  .lp-eyebrow { font-size: 13px; }
  .lp-eyebrow::before { width: 48px; }
  .lp-actions { display: flex; flex-wrap: wrap; gap: 10px; }
  .lp-actions button, .lp-actions a { display: inline-flex; align-items: center; gap: 12px; padding: 16px 22px; border-radius: 999px; border: 2px solid var(--ink); background: none; color: var(--ink); text-decoration: none; font: 700 16px/1 Montserrat, sans-serif; cursor: pointer; }
  .lp-actions .is-main { background: var(--ink); color: #fff; padding: 16px 26px; }
  .lp-actions svg { width: 20px; height: 20px; }
  .lp-card { flex: 1 1 0; min-width: 0; height: auto; min-height: 460px; border-radius: 36px; }
  .lp-shape--a { width: 440px; height: 440px; margin: -220px 0 0 -220px; }
  .lp-shape--b { width: 360px; height: 360px; margin: -180px 0 0 -180px; }
  .lp-shape--c { width: 270px; height: 270px; margin: -135px 0 0 -135px; }
  .lp-btn { width: 128px; height: 128px; top: 47%; }
  .lp-card-title { top: 30px; font-size: 30px; }
  .lp-card-sub { top: 68px; font-size: 14px; }
  .lp-float { bottom: 40px; font-size: 14px; padding: 10px 14px; animation-name: lp-rise-d; animation-duration: 7s; }
  .lp-quick { display: none; }
  .lp-info { grid-template-columns: 2fr 1fr 1fr; gap: 14px; }
  .lp-services { grid-column: auto; }
  .lp-box { padding: 24px; border-radius: 26px; }
  .lp-box p, .lp-box ul { font-size: 16px; }
  .lp-foot { flex-direction: row; justify-content: space-between; align-items: center; font-size: 13px; }
  .lp-sheet { inset: auto 24px 24px auto; width: 420px; height: min(720px, calc(100vh - 48px)); border-radius: 26px; box-shadow: 0 30px 80px rgba(0,0,0,.35); }
  .lp-chat { height: 100%; }
  body.is-chatting { overflow: auto; }
}
@keyframes lp-rise-d { 0% { transform: translateY(40px) scale(.85); opacity: 0; } 12% { opacity: 1; } 80% { opacity: 1; } 100% { transform: translateY(-260px) scale(1); opacity: 0; } }

@media (prefers-reduced-motion: reduce) {
  *, *::before { animation: none !important; transition: none !important; }
  .lp-float { display: none; }
}
