:root {
  --beer-gold: #f4b52a;
  --beer-foam: #fff6db;
  --deep-amber: #7b3f00;
  --ink: #30210f;
  --muted: #695d4c;
  --surface: #fffdf8;
  --bubbly-gold:
    radial-gradient(circle at 9% 12%, rgba(255, 248, 219, .72) 0 8px, transparent 9px),
    radial-gradient(circle at 18% 35%, rgba(255, 248, 219, .58) 0 13px, transparent 14px),
    radial-gradient(circle at 29% 8%, rgba(255, 248, 219, .72) 0 5px, transparent 6px),
    radial-gradient(circle at 38% 24%, rgba(255, 248, 219, .52) 0 11px, transparent 12px),
    radial-gradient(circle at 51% 7%, rgba(255, 248, 219, .7) 0 7px, transparent 8px),
    radial-gradient(circle at 65% 18%, rgba(255, 248, 219, .6) 0 15px, transparent 16px),
    radial-gradient(circle at 79% 9%, rgba(255, 248, 219, .7) 0 6px, transparent 7px),
    radial-gradient(circle at 91% 29%, rgba(255, 248, 219, .58) 0 12px, transparent 13px),
    radial-gradient(circle at 7% 73%, rgba(255, 248, 219, .55) 0 9px, transparent 10px),
    radial-gradient(circle at 24% 87%, rgba(255, 248, 219, .65) 0 14px, transparent 15px),
    radial-gradient(circle at 72% 79%, rgba(255, 248, 219, .56) 0 8px, transparent 9px),
    radial-gradient(circle at 92% 89%, rgba(255, 248, 219, .68) 0 14px, transparent 15px),
    radial-gradient(circle at 50% 28%, rgba(255, 244, 197, .62) 0 11%, transparent 44%),
    linear-gradient(135deg, #f8bf26, #f3a916 52%, #f7c431);
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--bubbly-gold);
  background-attachment: fixed;
  color: var(--ink);
  font-family: Inter, ui-rounded, "SF Pro Rounded", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.5;
}

a { color: var(--deep-amber); font-weight: 700; }

.hero {
  padding: 64px 24px 30px;
  text-align: center;
  background:
    radial-gradient(circle at 50% 20%, rgba(255, 250, 226, .72) 0 14%, rgba(255, 250, 226, .28) 34%, transparent 60%);
}

.brand-name {
  margin: 0;
  color: var(--deep-amber);
  font-size: clamp(3.8rem, 13vw, 6.3rem);
  font-weight: 900;
  letter-spacing: -0.06em;
}

.tagline { margin: 4px 0 0; font-size: clamp(1.15rem, 3.6vw, 1.4rem); font-weight: 700; }

.hero-app-icon {
  display: block;
  width: clamp(104px, 24vw, 132px);
  height: auto;
  margin: 34px auto 0;
  border: 3px solid rgba(255, 255, 255, .78);
  border-radius: 27px;
  box-shadow: 0 14px 30px rgba(72, 43, 3, .28);
}

.hero-copy { max-width: 620px; margin: 88px auto 0; }
.hero-copy h1 { margin: 0; font-size: clamp(1.55rem, 5.5vw, 2.6rem); line-height: 1.16; letter-spacing: -0.04em; }
.hero-copy h1 strong { color: var(--deep-amber); display: inline-block; white-space: nowrap; }
.hero-copy p { max-width: 500px; margin: 16px auto 0; color: var(--muted); font-size: 1.06rem; line-height: 1.55; }

.store-links { display: flex; justify-content: center; align-items: center; flex-wrap: wrap; gap: 22px; margin-top: 28px; }
.store-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 250px;
  min-height: 94px;
  padding: 11px 18px;
  border: 2px solid rgba(50, 39, 26, .28);
  border-radius: 18px;
  background: rgba(255, 253, 248, .82);
  text-decoration: none;
  box-shadow: 0 10px 24px rgba(72, 43, 3, .16);
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.store-link:hover,
.store-link:focus-visible {
  transform: translateY(-2px);
  border-color: rgba(123, 63, 0, .56);
  box-shadow: 0 15px 30px rgba(72, 43, 3, .24);
  outline: none;
}
.store-link img {
  display: block;
  width: auto;
  height: 64px;
  max-width: 230px;
  object-fit: contain;
}

.homepage-links {
  display: flex;
  width: fit-content;
  max-width: calc(100% - 48px);
  margin: 42px auto 0;
  padding: 10px;
  gap: 10px;
  border: 1px solid rgba(255, 246, 219, .32);
  border-radius: 24px;
  background: rgba(51, 35, 14, .94);
  box-shadow: 0 16px 36px rgba(72, 43, 3, .2);
}
.homepage-links a {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 11px 16px;
  border-radius: 16px;
  color: #fff9e8;
  font-size: .96rem;
  font-weight: 850;
  text-decoration: none;
  transition: background-color .18s ease, color .18s ease, transform .18s ease;
}
.homepage-links a:hover,
.homepage-links a:focus-visible {
  background: #fff1c8;
  color: var(--deep-amber);
  transform: translateY(-1px);
  outline: none;
}
.homepage-link-icon {
  display: grid;
  flex: 0 0 auto;
  width: 29px;
  height: 29px;
  place-items: center;
  border-radius: 50%;
  background: var(--beer-gold);
  color: #483000;
  font-size: .9rem;
  font-weight: 950;
}

.how-it-works { max-width: 1060px; margin: 0 auto; padding: 40px 24px 72px; }
.how-it-works h2 { margin: 0 0 28px; text-align: center; color: var(--deep-amber); font-size: clamp(1.6rem, 5vw, 2.3rem); }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.steps article { padding: 28px 24px; border-radius: 22px; background: #fff1c8; }
.steps span { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: var(--beer-gold); color: #483000; font-weight: 900; }
.steps h3 { margin: 18px 0 6px; font-size: 1.15rem; }
.steps p { margin: 0; color: var(--muted); }
.privacy-on-tap-graphic {
  display: block;
  width: min(100%, 820px);
  height: auto;
  margin: 32px auto 0;
  border-radius: 22px;
}

footer { padding: 38px 24px; background: #33230e; color: #fff9e8; text-align: center; }
footer p { margin: 4px 0; }
footer a { color: #ffd86e; }

.legal { max-width: 760px; margin: 0 auto; padding: 44px 24px 72px; }
.legal header { margin-bottom: 36px; }
.legal .brand-name { font-size: 2rem; }
.invite-header-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
}
.invite-app-icon {
  display: block;
  flex: 0 0 auto;
  width: 58px;
  height: 58px;
  border-radius: 13px;
}
.invite-tagline { font-weight: 700; }
.legal h1 { margin-bottom: 4px; color: var(--deep-amber); }
.legal h2 { margin-top: 30px; color: var(--deep-amber); font-size: 1.25rem; }
.legal .how-it-works h2 {
  margin: 0 0 28px;
  font-size: clamp(1.6rem, 5vw, 2.3rem);
}
.legal li { margin: 6px 0; }
.app-open-link {
  display: inline-block;
  padding: 12px 20px;
  border-radius: 14px;
  background: var(--deep-amber);
  color: white;
  text-decoration: none;
}
.app-open-action { text-align: center; }
.download-badges {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
  margin: 12px 0 20px;
}
.download-badges a,
.download-badges .store-placeholder { display: inline-flex; }
.download-badges img { display: block; width: auto; height: 50px; }
.download-badges a:last-child img,
.download-badges .store-placeholder:last-child img { height: 74px; margin: -12px 0; }
.page-footer-links { text-align: center; }
.page-nav { display: flex; flex-wrap: wrap; gap: 18px; margin-top: 18px; }
.faq { max-width: 820px; }
.faq > h1 { margin-bottom: 30px; }
.faq section {
  margin: 0 0 16px;
  padding: 4px 24px 20px;
  border: 1px solid #efd99d;
  border-radius: 18px;
  background: rgba(255, 253, 248, .9);
}
.faq section h2 { margin-top: 18px; }
.faq section p { margin-bottom: 0; }

.auth-page {
  display: grid;
  min-height: 100vh;
  place-items: center;
  padding: 28px 20px;
  background:
    radial-gradient(circle at 50% -10%, #fffdf6 0 24%, transparent 58%),
    linear-gradient(180deg, var(--beer-foam), var(--surface));
}

.auth-card {
  width: min(100%, 470px);
  padding: 36px 28px;
  border: 1px solid #f0d78e;
  border-radius: 26px;
  background: #fffdf8;
  box-shadow: 0 18px 50px rgba(92, 58, 8, .12);
  text-align: center;
}

.auth-card .brand-name { margin: 0; font-size: 2.4rem; }
.auth-card h1 { margin: 32px 0 10px; color: var(--deep-amber); font-size: 1.75rem; letter-spacing: -.03em; }
.auth-card p { margin: 0; color: var(--muted); }
.auth-card .status-icon { display: grid; width: 58px; height: 58px; place-items: center; margin: 30px auto 16px; border-radius: 50%; background: #fff0bd; font-size: 1.65rem; }
.auth-card .status-icon.success { background: #dff4d9; }
.auth-card .status-icon.error { background: #ffe0d9; }
.auth-card form { margin-top: 26px; text-align: left; }
.auth-card label { display: block; margin-bottom: 7px; color: var(--ink); font-weight: 800; }
.auth-card input {
  width: 100%;
  padding: 13px 14px;
  border: 1px solid #d8c79e;
  border-radius: 12px;
  background: white;
  color: var(--ink);
  font: inherit;
}
.auth-card input:focus { outline: 3px solid rgba(244, 181, 42, .35); border-color: var(--beer-gold); }
.auth-card button {
  width: 100%;
  margin-top: 20px;
  padding: 14px 18px;
  border: 0;
  border-radius: 13px;
  background: var(--beer-gold);
  color: #493000;
  cursor: pointer;
  font: inherit;
  font-weight: 900;
}
.auth-card button:hover { filter: brightness(.97); }
.auth-card button:disabled { cursor: wait; opacity: .65; }
.auth-card .helper { margin-top: 16px; font-size: .9rem; }
.auth-card .error-message { margin-top: 18px; color: #a32a16; font-weight: 700; }

@media (max-width: 650px) {
  .hero { padding-top: 52px; }
  .hero-copy { margin-top: 86px; }
  .hero-copy h1 strong { white-space: normal; }
  .homepage-links {
    display: grid;
    width: calc(100% - 40px);
    max-width: 420px;
    margin-top: 30px;
    padding: 9px;
  }
  .homepage-links a { justify-content: flex-start; padding: 10px 13px; }
  .steps { grid-template-columns: 1fr; }
  .auth-card { padding: 30px 22px; }
}
