/* plog.bio, in the app's own look: paper, Helvetica Neue, glass, one blue. */
:root {
  --paper: #ecebe7;
  --ink: #0b0b0a;
  --quiet: #77776f;
  --glass: rgba(255, 255, 255, 0.62);
  --edge: rgba(0, 0, 0, 0.07);
  --blue: #1f4fff;
  --free: #2f9e55;
  --font: "Helvetica Neue", Helvetica, Arial, sans-serif;
}
@media (prefers-color-scheme: dark) {
  :root { --paper: #0d0d0c; --ink: #f2f2ef; --quiet: #8c8c86; --glass: rgba(40, 40, 38, 0.66); --edge: rgba(255, 255, 255, 0.09); --blue: #4a74ff; --free: #48b86c; color-scheme: dark; }
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { height: 100%; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--font); font-size: 16px; -webkit-font-smoothing: antialiased; }
button, input { font: inherit; color: inherit; }
button { background: none; border: 0; padding: 0; cursor: pointer; -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 2px solid var(--quiet); outline-offset: 2px; }
.glass {
  background: var(--glass);
  backdrop-filter: blur(24px) saturate(1.7); -webkit-backdrop-filter: blur(24px) saturate(1.7);
  box-shadow: 0 0 0 0.5px var(--edge), 0 8px 28px rgba(0, 0, 0, 0.10), inset 0 1px 0 rgba(255, 255, 255, 0.35);
}

/* the claim bar, fixed at the bottom like the app's tab bar */
.bar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 6;
  padding: 8px max(12px, env(safe-area-inset-right)) calc(12px + env(safe-area-inset-bottom)) max(12px, env(safe-area-inset-left));
}
.claim { max-width: 460px; margin: 0 auto; height: 58px; border-radius: 999px; display: flex; align-items: center; padding: 6px 6px 6px 20px; }
.claim label { font-size: 18px; font-weight: 500; color: var(--quiet); white-space: nowrap; padding-right: 0; }
.claim input { flex: 1; min-width: 0; border: 0; background: none; outline: none; font-size: 18px; font-weight: 500; padding: 0 2px 0 0; height: 100%; }
.claim input::placeholder { color: var(--quiet); font-weight: 500; opacity: 1; }   /* reads as one word with the @ */
.state { font-size: 13px; font-weight: 500; color: var(--quiet); padding: 0 10px; white-space: nowrap; }
.state.free { color: var(--free); }
.go { height: 46px; padding: 0 20px; border-radius: 999px; background: var(--blue); color: #fff; font-size: 15px; font-weight: 500; white-space: nowrap; flex: none; }
.go:disabled { opacity: .4; cursor: default; }

/* reserving: the name, an email, done */
.scrim { position: fixed; inset: 0; z-index: 30; display: flex; align-items: flex-end; justify-content: center; background: rgba(0, 0, 0, .22); }
.sheet {
  width: 100%; max-width: 520px; background: var(--paper); border-radius: 28px 28px 0 0;
  padding: 28px max(22px, env(safe-area-inset-right)) calc(22px + env(safe-area-inset-bottom)) max(22px, env(safe-area-inset-left));
  display: grid; gap: 14px; text-align: center; box-shadow: 0 -10px 40px rgba(0, 0, 0, .14);
}
.sheet .url { font-size: 26px; font-weight: 700; letter-spacing: -1px; overflow-wrap: anywhere; }
.sheet p { margin: 0; color: var(--quiet); line-height: 1.4; text-wrap: balance; }
.sheet p b { color: var(--ink); font-weight: 500; }
.sheet form { display: grid; gap: 10px; }
.field { height: 52px; border-radius: 16px; border: 0; padding: 0 16px; font-size: 16px; background: var(--glass); box-shadow: 0 0 0 0.5px var(--edge) inset; outline: none; }
.solid { height: 52px; border-radius: 16px; background: var(--ink); color: var(--paper); font-weight: 500; }
.solid:disabled { opacity: .5; }
.error { min-height: 18px; font-size: 13px; color: var(--quiet); }
.quietbtn { color: var(--quiet); font-size: 14px; height: 36px; }
@media (prefers-reduced-motion: no-preference) {
  .sheet { animation: rise .32s cubic-bezier(.2, .9, .25, 1); }
  @keyframes rise { from { transform: translateY(40px); opacity: .4; } }
}
