/* Friendly forms for the login page and the home page's cards: the same soft, cute language as the panel (panel-theme.css).
   Scoped to body.friendly and loaded after home.css. Pill buttons with a gentle press, soft filled inputs with a pixel
   sprite inside (sprites.js) and a sliding tab thumb. */

.friendly {
  --pop: cubic-bezier(.34, 1.56, .64, 1);
  --gold-edge: rgba(148, 101, 0, .22);
  --focus: 0 0 0 4px rgba(255, 203, 61, .35);
}

/* The card: rounder and floating a little higher */
.friendly .auth-card .card, .friendly .reserve-card {
  border-radius: 28px; border: 1px solid rgba(255, 255, 255, .45);
  box-shadow: 0 2px 4px rgba(27, 36, 64, .06), 0 30px 60px -24px rgba(27, 36, 64, .38);
}

/* Every button is a pill that lifts and presses */
.friendly .k-btn { border-radius: 999px; transition: transform .2s var(--pop), box-shadow .2s, background .15s; }
.friendly .k-btn:active { transform: translateY(1px) scale(.98); }
.friendly .k-btn-ink { box-shadow: inset 0 -3px 0 rgba(0, 0, 0, .3), 0 10px 22px -12px rgba(27, 36, 64, .8); }
.friendly .k-btn-dark { box-shadow: inset 0 -3px 0 rgba(0, 0, 0, .25); }

/* Gold pill button with a soft 3D edge that presses down; form buttons are taller */
.friendly .auth-form .k-btn-signal { height: 52px; font: 650 16px var(--display); letter-spacing: -.01em; }
.friendly .k-btn-signal {
  border: 0; border-radius: 999px; background: var(--signal); color: var(--ink);
  box-shadow: inset 0 -4px 0 var(--gold-edge), 0 12px 24px -12px rgba(230, 160, 0, .85);
  transition: transform .2s var(--pop), box-shadow .2s, background .15s;
}
.friendly .k-btn-signal:hover { transform: translateY(-2px); background: #ffd65c; box-shadow: inset 0 -4px 0 var(--gold-edge), 0 16px 28px -12px rgba(230, 160, 0, .9); }
.friendly .k-btn-signal:active { transform: translateY(1px) scale(.98); box-shadow: inset 0 -1px 0 var(--gold-edge), 0 6px 12px -8px rgba(230, 160, 0, .8); }

/* Soft filled inputs; a sprite can sit inside on the left */
.friendly .auth-form input[type=email], .friendly .auth-form input[type=password] {
  border-radius: 16px; border: 1.5px solid transparent; background: var(--card-2); color: var(--fg, var(--ink));
  transition: border-color .2s, box-shadow .2s, background .2s;
}
.friendly .auth-form input[type=email], .friendly .auth-form input[type=password] { height: 52px; }
.friendly .auth-form input:focus-visible {
  outline: none; border-color: #f1b928; background: var(--card); box-shadow: var(--focus);
}
.friendly .field-ic { position: relative; display: block; }
.friendly .field-ic > [data-sprite] { position: absolute; left: 14px; top: 50%; translate: 0 -50%; width: 24px; height: 24px; pointer-events: none; transition: transform .3s var(--pop); }
.friendly .field-ic:focus-within > [data-sprite] { transform: translateY(-2px) rotate(-8deg) scale(1.1); }
.friendly .field-ic input { padding-left: 48px !important; }

/* Log in / Create account: a pill toggle with a thumb that slides */
.friendly .auth-tabs { position: relative; border-radius: 999px; }
.friendly .auth-tabs::before {
  content: ""; position: absolute; top: 4px; bottom: 4px; left: 4px; width: calc(50% - 6px);
  border-radius: 999px; background: var(--card); box-shadow: var(--sh-1); transition: transform .4s var(--pop);
}
.friendly .auth-tabs[data-mode="signup"]::before { transform: translateX(calc(100% + 4px)); }
.friendly .auth-tabs button { position: relative; z-index: 1; border-radius: 999px; background: transparent !important; box-shadow: none !important; transition: color .2s; }

/* The Wisp peeks over the top edge of the card */
.friendly .card-wisp { position: absolute; z-index: 2; width: 72px; height: 72px; top: -60px; pointer-events: none; }
/* Leave room above cards that have a Wisp on their edge, so it never sits on the text above */
.friendly .auth-card { margin-top: 58px; }
.friendly .hero-in > .prompt { margin-top: 34px; }

@media (max-width: 720px) { .friendly .card-wisp { width: 56px; height: 56px; top: -46px; } }
@media (prefers-reduced-motion: reduce) {
  .friendly .auth-tabs::before, .friendly .field-ic > [data-sprite] { transition: none; }
}

/* ---------- Homepage ---------- */
/* Floating stickers and the ticker: pixel sprites instead of line icons and dots */
.friendly .sticker { border-radius: 999px; padding: 8px 16px 8px 10px; }
.friendly .sticker i[data-sprite] { width: 24px; height: 24px; background: none; border-radius: 0; }
.friendly .sticker i:not([data-sprite]) { border-radius: 999px; }
.friendly .marquee button i[data-sprite] { width: 24px; height: 24px; background: none; border-radius: 0; transition: transform .3s var(--pop); }
.friendly .marquee button:hover i[data-sprite] { transform: translateY(-2px) rotate(-8deg) scale(1.1); }
.friendly [data-sprite] svg { display: block; width: 100%; height: 100%; filter: drop-shadow(0 2px 0 rgba(27, 36, 64, .12)); }

/* Round, soft ticks and crosses, drawn as shapes so they sit exactly in the middle (text glyphs ✓ ✕ sit off-centre) */
.friendly {
  --tick-green: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M3 6.2l2 2 4-4.4' fill='none' stroke='%231d8a53' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  --tick-light: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M3 6.2l2 2 4-4.4' fill='none' stroke='%23f2fff7' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  --cross-coral: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M3.8 3.8l4.4 4.4M8.2 3.8l-4.4 4.4' fill='none' stroke='%23d9473a' stroke-width='1.7' stroke-linecap='round'/%3E%3C/svg%3E");
}
.friendly .rules li::before, .friendly .p-col li::before {
  content: ""; flex: none; width: 26px; height: 26px; border-radius: 999px; background: var(--good-bg, #d3efdf) var(--tick-green) center / 15px no-repeat;
}
.friendly .rules .no li::before { background: var(--bad-bg, #f9dcd6) var(--cross-coral) center / 14px no-repeat; }
.friendly .p-col li { align-items: center; }
.friendly .p-col li::before { width: 24px; height: 24px; }
.friendly .plan-steps li.ok .tick::after { content: ""; background: var(--tick-light) center / 13px no-repeat; }
.friendly .faq summary::after { border-radius: 999px; }
.friendly .faq details { border-radius: 22px; }
.friendly .plan, .friendly .p-col { border-radius: 28px; }

/* The invite card at the bottom: a light, friendly card over the night world */
.friendly .reserve-card { position: relative; background: var(--card); color: var(--fg, var(--ink)); padding: 28px; }
.friendly .reserve-card .card-wisp { left: 30px; }
.friendly .invite-card { display: grid; gap: 14px; justify-items: start; padding-top: 34px; }
.friendly .invite-card h3 { margin: 0; font: 700 26px/1.15 var(--display); letter-spacing: -.02em; color: var(--text); }
.friendly .invite-card p { margin: 0; color: var(--text-2); font-size: 15.5px; line-height: 1.55; }
.friendly .invite-card .k-btn { max-width: 100%; margin-top: 4px; }
.friendly .invite-card .invite-alt { font-size: 14px; color: var(--muted); }
.friendly .invite-card .invite-alt a { color: var(--text); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
@media (max-width: 960px) { .friendly .reserve-card { margin-top: 56px; } } /* stacked under the text: room for the Wisp */
