/* Fur-Baby Grooming Boutique - public pages + sign-in (design v3, 2026-11-21)
   Palette taken from the shop itself: watercolor-paper cream, the slate blue of the logo lettering,
   the pink front door, the powder-blue shutters. Fonts are self-hosted (SIL OFL): Fraunces + Figtree. */
@font-face { font-family: "Fraunces"; src: url("/fonts/fraunces.woff2") format("woff2"); font-weight: 100 900; font-style: normal; font-display: swap; }
@font-face { font-family: "Figtree"; src: url("/fonts/figtree.woff2") format("woff2"); font-weight: 300 900; font-style: normal; font-display: swap; }
:root {
  --paper: #fbf6ee; --paper-2: #f3eadc; --card: #fffdf9;
  --ink: #26323f; --navy: #2f4257; --slate: #5c7890; --muted: #5f6d7c;
  --door: #e98fb0; --rose: #bf4575; --rose-dark: #a23763; --blush: #fde9f0;
  --shutter: #cfe1ea; --sky: #eaf3f7; --sage: #5f8360; --butter: #f3cf6b;
  --line: #e7dccb; --fb: #1877f2; --fb-dark: #0f5fc7; --red: #b3261e; --green: #1f7a4d;
  --shadow: 0 1px 2px rgba(38, 50, 63, .06), 0 14px 34px rgba(38, 50, 63, .13);
  --shadow-lg: 0 2px 4px rgba(38, 50, 63, .06), 0 30px 70px rgba(38, 50, 63, .22);
  --display: "Fraunces", Georgia, "Times New Roman", serif;
  --body: "Figtree", system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}
* { box-sizing: border-box; }
html { font-size: 18px; -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--body); color: var(--ink); min-height: 100vh; display: flex; flex-direction: column;
  background:
    radial-gradient(900px 520px at 100% -8%, rgba(233, 143, 176, .28), rgba(233, 143, 176, 0) 62%),
    radial-gradient(820px 520px at -6% 28%, rgba(207, 225, 234, .75), rgba(207, 225, 234, 0) 60%),
    radial-gradient(700px 460px at 92% 96%, rgba(243, 207, 107, .18), rgba(243, 207, 107, 0) 60%),
    var(--paper); }
a { color: var(--rose-dark); }
img { max-width: 100%; display: block; }
button, input, select, textarea { font-family: inherit; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.hidden { display: none !important; }

/* ---------- top bar ---------- */
.topbar { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 12px clamp(14px, 4vw, 44px);
  background: rgba(251, 246, 238, .9); position: sticky; top: 0; z-index: 10; backdrop-filter: blur(8px); }
/* little scalloped awning edge under the bar */
.topbar::after { content: ""; position: absolute; left: 0; right: 0; bottom: -9px; height: 10px; pointer-events: none;
  background: radial-gradient(circle at 10px 0, var(--door) 9px, transparent 10px) 0 0 / 20px 10px repeat-x; opacity: .9; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--navy); min-width: 0; }
.brand img { width: 54px; height: 54px; border-radius: 50%; border: 3px solid #fff; box-shadow: 0 2px 10px rgba(38, 50, 63, .18); object-fit: cover; flex: none; }
.brand-name { font-family: var(--display); font-weight: 600; font-size: 1.32rem; line-height: 1.05; letter-spacing: -.01em; }
.brand-name small { display: block; font-family: var(--body); font-weight: 700; font-size: .68rem; letter-spacing: .16em; text-transform: uppercase; color: var(--slate); margin-top: 3px; }
.login-btn, .home-btn { display: inline-flex; align-items: center; gap: 9px; min-height: 52px; padding: 0 24px; border-radius: 999px; flex: none;
  background: var(--navy); color: #fff; text-decoration: none; font-weight: 800; font-size: 1.05rem; white-space: nowrap;
  box-shadow: 0 6px 16px rgba(47, 66, 87, .28); transition: transform .14s, background .14s, box-shadow .14s; }
.login-btn:hover, .home-btn:hover { background: #3a5370; transform: translateY(-1px); box-shadow: 0 10px 22px rgba(47, 66, 87, .32); }
.login-btn:focus-visible, .home-btn:focus-visible, .fb-btn:focus-visible, .primary:focus-visible { outline: 4px solid rgba(233, 143, 176, .7); outline-offset: 3px; }
.login-btn svg { width: 20px; height: 20px; }
.home-btn { background: #fff; color: var(--navy); border: 2px solid var(--line); box-shadow: none; }
.home-btn:hover { background: var(--blush); border-color: var(--door); }

/* ---------- home ---------- */
.stage { flex: 1; width: 100%; max-width: 1120px; margin: 0 auto; padding: clamp(26px, 4.5vw, 52px) clamp(14px, 4vw, 40px) 10px;
  display: flex; flex-direction: column; align-items: center; gap: clamp(20px, 3vw, 30px); }
.screen { position: relative; width: 100%; border-radius: 30px; overflow: hidden; background: #1d2630; border: 7px solid #fff;
  box-shadow: var(--shadow-lg); animation: rise .7s cubic-bezier(.2, .7, .2, 1) both; }
.screen .poster { width: 100%; height: 100%; object-fit: cover; }
/* no video yet: the storefront photo, tall like the shop front */
.screen.photo { max-width: 520px; }
.screen.photo .poster { aspect-ratio: 3 / 4; object-position: 50% 50%; }
/* with the video */
.screen.has-video { aspect-ratio: var(--ar, 1.7778); max-width: max(320px, min(100%, calc((100vh - 330px) * var(--ar, 1.7778)))); }
.screen.has-video .poster { position: absolute; inset: 0; z-index: 1; object-position: 50% 62%; transition: opacity .5s; }
.screen .v-ui, .screen .v-big, .screen .v-sound { z-index: 2; }
.screen.playing .poster { opacity: 0; pointer-events: none; }
.screen video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; background: #1d2630; display: block; }
.screen:fullscreen { border: 0; border-radius: 0; }
.v-ui { position: absolute; inset: 0; display: flex; align-items: flex-end; justify-content: space-between; padding: 14px; pointer-events: none;
  background: linear-gradient(to top, rgba(18, 24, 31, .55), rgba(18, 24, 31, 0) 34%); opacity: 1; transition: opacity .3s; }
.screen.idle .v-ui { opacity: 0; }
.v-ui > * { pointer-events: auto; }
.v-btn { width: 54px; height: 54px; border-radius: 50%; border: 0; cursor: pointer; display: grid; place-items: center; color: #fff;
  background: rgba(24, 32, 41, .62); backdrop-filter: blur(6px); transition: transform .12s, background .12s; }
.v-btn:hover { background: rgba(24, 32, 41, .85); transform: scale(1.06); }
.v-btn:focus-visible { outline: 3px solid #fff; outline-offset: 2px; }
.v-btn svg { width: 26px; height: 26px; }
.v-row { display: flex; gap: 10px; }
.v-bar { position: absolute; left: 0; right: 0; bottom: 0; height: 5px; background: rgba(255, 255, 255, .22); pointer-events: none; }
.v-bar > i { display: block; height: 100%; width: 0; background: var(--door); }
.v-big { position: absolute; inset: 0; margin: auto; width: 104px; height: 104px; border-radius: 50%; border: 0; cursor: pointer; color: var(--navy);
  background: rgba(255, 253, 249, .94); box-shadow: 0 14px 40px rgba(0, 0, 0, .35); display: grid; place-items: center; transition: transform .14s; }
.v-big:hover { transform: scale(1.06); }
.v-big svg { width: 46px; height: 46px; margin-left: 5px; }
.v-sound { position: absolute; left: 50%; bottom: 22px; transform: translateX(-50%); display: inline-flex; align-items: center; gap: 10px; min-height: 58px; padding: 0 26px;
  border: 0; border-radius: 999px; cursor: pointer; font-weight: 800; font-size: 1.15rem; color: var(--navy); background: #fffdf9; white-space: nowrap;
  box-shadow: 0 12px 34px rgba(0, 0, 0, .4); animation: pulse 1.8s ease-in-out infinite; }
.v-sound svg { width: 26px; height: 26px; color: var(--rose); }
@keyframes pulse { 0%, 100% { box-shadow: 0 12px 34px rgba(0, 0, 0, .4), 0 0 0 0 rgba(233, 143, 176, .75); } 50% { box-shadow: 0 12px 34px rgba(0, 0, 0, .4), 0 0 0 16px rgba(233, 143, 176, 0); } }
@keyframes rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }

.fb-btn { display: inline-flex; align-items: center; justify-content: center; gap: 14px; min-height: 76px; padding: 0 42px; border-radius: 999px;
  background: var(--fb); color: #fff; text-decoration: none; font-size: 1.5rem; font-weight: 800; letter-spacing: .005em;
  box-shadow: 0 12px 28px rgba(24, 119, 242, .36); transition: transform .14s, background .14s; animation: rise .7s .12s cubic-bezier(.2, .7, .2, 1) both; }
.fb-btn:hover { background: var(--fb-dark); transform: translateY(-2px); }
.fb-btn svg { width: 36px; height: 36px; flex: none; }

/* unique visitor counter: little odometer */
.visitors { display: flex; flex-direction: column; align-items: center; gap: 10px; animation: rise .7s .22s cubic-bezier(.2, .7, .2, 1) both; }
.v-label { display: inline-flex; align-items: center; gap: 9px; font-weight: 800; font-size: .86rem; letter-spacing: .18em; text-transform: uppercase; color: var(--slate); }
.v-label svg { width: 20px; height: 20px; color: var(--door); }
.v-digits { display: inline-flex; gap: 6px; padding: 9px; border-radius: 18px; background: var(--navy); box-shadow: inset 0 2px 6px rgba(0, 0, 0, .35), 0 8px 20px rgba(47, 66, 87, .25); }
.v-digits span { width: 38px; height: 52px; border-radius: 10px; display: grid; place-items: center; font-family: var(--display); font-weight: 700; font-size: 1.9rem; line-height: 1;
  color: var(--navy); background: linear-gradient(#fffdf9 0 49%, #efe6d6 50% 100%); box-shadow: inset 0 0 0 1px rgba(38, 50, 63, .12); font-variant-numeric: tabular-nums lining-nums; }
.v-digits span.z { color: #b9bfc6; }

.foot { text-align: center; color: var(--muted); font-size: .98rem; line-height: 1.7; padding: 26px 16px 30px; }
.foot .tagline { font-family: var(--display); font-size: 1.35rem; color: var(--navy); font-weight: 500; font-style: italic; margin: 0 0 6px; }
.foot a { color: var(--navy); font-weight: 800; text-decoration: none; }
.foot a:hover { text-decoration: underline; }
.foot .dot { margin: 0 8px; color: var(--door); }
.foot .copy { display: block; font-size: .82rem; margin-top: 8px; opacity: .85; }

@media (max-width: 640px) {
  .brand img { width: 46px; height: 46px; }
  .brand-name { font-size: 1.08rem; }
  .brand-name small { font-size: .6rem; letter-spacing: .13em; }
  .login-btn, .home-btn { min-height: 48px; padding: 0 18px; font-size: 1rem; }
  .screen { border-width: 5px; border-radius: 22px; }
  .fb-btn { width: 100%; font-size: 1.3rem; padding: 0 18px; min-height: 70px; }
  .v-big { width: 84px; height: 84px; } .v-big svg { width: 38px; height: 38px; }
  .v-btn { width: 48px; height: 48px; }
  .v-sound { bottom: 14px; min-height: 52px; font-size: 1.05rem; padding: 0 20px; }
  .v-digits span { width: 34px; height: 48px; font-size: 1.7rem; }
  .foot .dot { margin: 0 5px; }
  .big-input { font-size: 1.6rem; padding: 14px 14px; letter-spacing: 0; }
  .code-input { font-size: 2rem; letter-spacing: 8px; }
  .panel h1 { font-size: 2.1rem; }
}
@media (max-width: 360px) { .brand-name small { display: none; } }
@media (prefers-reduced-motion: reduce) { .screen, .fb-btn, .visitors { animation: none; } .v-sound { animation: none; } }

/* ---------- sign-in + public certificate page ---------- */
.center { flex: 1; display: flex; align-items: flex-start; justify-content: center; padding: clamp(26px, 6vh, 64px) 16px; }
.panel { width: 100%; max-width: 560px; background: var(--card); border-radius: 30px; box-shadow: var(--shadow-lg); padding: clamp(24px, 5vw, 44px); border: 1px solid var(--line); animation: rise .6s cubic-bezier(.2, .7, .2, 1) both; }
.panel h1 { margin: 0 0 8px; font-family: var(--display); font-weight: 600; font-size: 2.4rem; letter-spacing: -.02em; color: var(--navy); display: flex; align-items: center; gap: 12px; }
.panel h1 svg { width: 38px; height: 38px; color: var(--rose); flex: none; }
.panel .lead { margin: 0 0 26px; font-size: 1.18rem; color: var(--muted); line-height: 1.5; }
.field label { display: block; font-weight: 800; font-size: 1.2rem; margin: 0 0 10px; color: var(--navy); }
.big-input { width: 100%; font-size: 2rem; padding: 16px 20px; border-radius: 18px; border: 3px solid var(--line); background: var(--paper);
  color: var(--ink); letter-spacing: 1px; outline: none; font-weight: 700; }
.big-input:focus { border-color: var(--door); background: #fff; box-shadow: 0 0 0 5px rgba(233, 143, 176, .25); }
.code-input { text-align: center; letter-spacing: 12px; font-size: 2.4rem; }
.primary { width: 100%; min-height: 76px; margin-top: 20px; border: 0; border-radius: 18px; background: var(--rose); color: #fff; font-size: 1.5rem;
  font-weight: 800; cursor: pointer; box-shadow: 0 10px 24px rgba(191, 69, 117, .35); transition: background .14s, transform .14s; }
.primary:hover:not(:disabled) { background: var(--rose-dark); transform: translateY(-1px); }
.primary:disabled { opacity: .55; cursor: wait; }
.linkish { background: none; border: 0; color: var(--rose-dark); font-size: 1.1rem; font-weight: 700; cursor: pointer; padding: 14px 4px; text-decoration: underline; }
.msg { min-height: 1.6em; margin: 18px 0 0; font-size: 1.15rem; font-weight: 700; line-height: 1.4; }
.msg.err { color: var(--red); } .msg.ok { color: var(--green); }
.fineprint { margin-top: 26px; padding-top: 18px; border-top: 1px solid var(--line); color: var(--muted); font-size: .98rem; line-height: 1.5; display: flex; gap: 10px; }
.fineprint svg { width: 22px; height: 22px; flex: none; color: var(--sage); margin-top: 2px; }
.text-center { text-align: center; } .text-left { text-align: left; } .no-margin { margin: 0 !important; }
.h-center { justify-content: center; }
.panel-logo { width: 170px; height: 170px; border-radius: 50%; margin: 0 auto 16px; border: 5px solid #fff; box-shadow: 0 10px 24px rgba(38, 50, 63, .18); object-fit: cover; }
