/* Public landing page + sign in (login.php). Design from the Pocketlite site. */
:root {
  --ground: #F3F4F0; --ink: #1F2328; --body: #3E4247;
  --denim: #2B4A7E; --denim-deep: #1D3358; --thread: #E3A838; --sky: #DCE5F2;
  --bad: #B3261E; --ok: #1a8a4a;
  --display: 'Bricolage Grotesque', 'Figtree', Georgia, serif;
  --sans: 'Figtree', 'Segoe UI', system-ui, -apple-system, sans-serif;
  --pad: clamp(16px, 6.7vw, 96px);
}
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; }
body.landing { background: var(--ground); color: var(--ink); font-family: var(--sans); -webkit-font-smoothing: antialiased; }
img, svg { max-width: 100%; display: block; }
a:focus-visible, button:focus-visible, input:focus-visible { outline: 3px solid var(--thread); outline-offset: 3px; }

.site-header { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: clamp(20px, 2.4vw, 32px) var(--pad); max-width: 1600px; margin: 0 auto; }
.site-header img { height: clamp(22px, 2.6vw, 36px); width: auto; }
.header-signin { font-weight: 600; color: var(--denim); text-decoration: none; padding: 8px 16px; border: 1.5px solid var(--denim); border-radius: 999px; white-space: nowrap; }
.header-signin:hover { background: var(--denim); color: #fff; }

.hero {
  display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr);
  gap: clamp(32px, 4vw, 56px); align-items: center;
  padding: clamp(16px, 3.5vw, 48px) var(--pad) clamp(48px, 6vw, 96px);
  max-width: 1600px; margin: 0 auto;
}
.hero-copy { display: flex; flex-direction: column; gap: clamp(16px, 2vw, 28px); }
.kicker { margin: 0; font-size: clamp(15px, 1.25vw, 18px); font-weight: 600; color: var(--denim); }
.hero h1 { margin: 0; font-family: var(--display); font-weight: 800; font-size: clamp(36px, 4.4vw, 66px); line-height: 1; letter-spacing: -.035em; text-wrap: balance; }
.lede { margin: 0; max-width: 34em; font-size: clamp(17px, 1.45vw, 21px); line-height: 1.55; color: var(--body); }

/* sign-in card */
.signin { background: #fff; border-radius: 18px; padding: clamp(18px, 2vw, 26px); box-shadow: 0 18px 40px rgba(29, 51, 88, .12); max-width: 560px; width: 100%; }
.signin h2 { margin: 0; font-family: var(--display); font-size: 22px; font-weight: 700; letter-spacing: -.01em; }
.signin-sub { margin: 4px 0 14px; color: var(--body); font-size: 15px; }
.signin-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 14px; }
.signin label { display: block; font-size: 13px; font-weight: 600; color: var(--body); margin-bottom: 5px; }
.signin input { width: 100%; font: inherit; font-size: 16px; padding: 11px 13px; border: 1.5px solid #D5D9DE; border-radius: 10px; background: #FAFBF8; color: var(--ink); }
.signin input:focus { outline: none; border-color: var(--denim); background: #fff; }
.signin-btn { width: 100%; font: inherit; font-size: 16px; font-weight: 600; padding: 12px; border: 0; border-radius: 10px; background: var(--denim); color: #fff; cursor: pointer; }
.signin-btn:hover { background: var(--denim-deep); }
.msg { padding: 9px 12px; border-radius: 8px; margin-bottom: 12px; font-size: 14px; background: #e3f6ea; color: #17693a; }
.msg.warn { background: #fff3dc; color: #8a5a0a; }
.msg.bad { background: #fde8e8; color: var(--bad); }

/* pocket illustration: sized by its own width via container units */
.pocket-wrap { width: 100%; max-width: 580px; justify-self: center; container-type: inline-size; }
.stage { position: relative; width: 100%; aspect-ratio: 560 / 640; }
.card { position: absolute; display: flex; flex-direction: column; gap: 1.8cqw; padding: 3.9cqw 4.3cqw; border-radius: 3.2cqw; box-shadow: 0 3.2cqw 7cqw rgba(29, 51, 88, .16); }
.card svg { width: 6cqw; height: 6cqw; }
.card strong { font-family: var(--display); font-size: 3.95cqw; font-weight: 700; line-height: 1.15; }
.card span { font-size: 2.7cqw; line-height: 1.35; }
.card-web { left: 12.5%; top: 4.7%; width: 44.6cqw; background: #fff; transform: rotate(-9deg); }
.card-web span { color: #4A4D50; }
.card-bill { left: 46.4%; top: 0; width: 42.9cqw; background: var(--thread); transform: rotate(7deg); }
.card-bill span { color: #2A2C2F; }
.card-happy { left: 26.8%; top: 23.4%; width: 46.4cqw; background: var(--sky); transform: rotate(-2deg); color: var(--denim-deep); }
.card-happy span { color: #2B3A52; }
.pocket { position: absolute; left: 5.4%; bottom: 0; width: 92.9%; height: auto; }
.pocket-line { position: absolute; left: 5.4%; width: 92.9%; bottom: 23.4%; padding: 0 12.5cqw; margin: 0; text-align: center; font-family: var(--display); font-weight: 700; font-size: 5.36cqw; line-height: 1.15; letter-spacing: -.01em; color: #fff; }

@media (max-width: 900px) {
  .hero { grid-template-columns: minmax(0, 1fr); }
  .pocket-wrap { max-width: 460px; }
}
@media (max-width: 520px) {
  .signin-fields { grid-template-columns: 1fr; }
  .hero h1 { letter-spacing: -.03em; }
}
@media (prefers-reduced-motion: no-preference) {
  .card { transition: transform .3s ease; }
  .pocket-wrap:hover .card-web { transform: rotate(-11deg) translateY(-2%); }
  .pocket-wrap:hover .card-bill { transform: rotate(9deg) translateY(-3%); }
  .pocket-wrap:hover .card-happy { transform: rotate(-2deg) translateY(-4%); }
}
