@import url("https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&display=swap");

:root {
  --bg: #0f0e0d;
  --surface: #1a1816;
  --border: #2e2a26;
  --text: #f5f0ea;
  --muted: #a89f94;
  --accent: #c9a86c;
  --accent-soft: rgba(201, 168, 108, 0.12);
  --radius: 14px;
  --font: "DM Sans", system-ui, -apple-system, sans-serif;
  --nav-max: 1100px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  min-height: 100dvh;
  font-family: var(--font);
  color: var(--text);
  background:
    radial-gradient(ellipse 80% 50% at 50% -10%, var(--accent-soft), transparent),
    var(--bg);
  line-height: 1.55;
}

.shell {
  max-width: 720px;
  margin: 0 auto;
  padding: 3rem 1.25rem 4rem;
}

.brand {
  text-align: center;
  margin-bottom: 2.5rem;
}

.brand-mark {
  border-radius: 16px;
  margin-bottom: 1rem;
}

.eyebrow {
  margin: 0 0 0.5rem;
  font-size: 0.8rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
}

h1 {
  margin: 0 0 1rem;
  font-size: clamp(1.75rem, 5vw, 2.35rem);
  font-weight: 600;
  line-height: 1.2;
}

.lede {
  margin: 0 auto;
  max-width: 34rem;
  color: var(--muted);
  font-size: 1.05rem;
}

.cards {
  display: grid;
  gap: 1rem;
  margin-bottom: 2.5rem;
}

@media (min-width: 560px) {
  .cards {
    grid-template-columns: repeat(3, 1fr);
  }
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem;
}

.card h2 {
  margin: 0 0 0.5rem;
  font-size: 1rem;
  font-weight: 600;
  color: var(--accent);
}

.card p {
  margin: 0;
  font-size: 0.9rem;
  color: var(--muted);
}

.foot {
  text-align: center;
  font-size: 0.95rem;
}

.foot p {
  margin: 0 0 0.75rem;
}

.muted {
  color: var(--muted);
  font-size: 0.85rem;
}

a {
  color: var(--accent);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

/* —— Layout —— */
:root {
  --success: #6fcf97;
  --danger: #e07a7a;
  --max: 960px;
  --primary: #c9a86c;
  --primary-dark: #a88a52;
}

.site-header {
  border-bottom: 1px solid color-mix(in srgb, var(--border) 70%, transparent);
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: blur(18px) saturate(1.15);
  -webkit-backdrop-filter: blur(18px) saturate(1.15);
  position: sticky;
  top: 0;
  z-index: 100;
}

.nav {
  position: relative;
  max-width: var(--nav-max);
  margin: 0 auto;
  padding: 0.7rem 1.25rem;
  min-height: 3.65rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.nav-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--text);
  font-weight: 600;
  text-decoration: none;
}

.nav-brand:hover {
  text-decoration: none;
  color: var(--accent);
}

.nav-brand > img {
  width: 32px;
  height: 32px;
  max-width: 32px;
  max-height: 32px;
  object-fit: contain;
  flex-shrink: 0;
  border-radius: 10px;
}

.loved-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.28rem;
  line-height: 1;
  white-space: nowrap;
  font-size: 1rem;
}

.loved-brand-word {
  font-weight: 700;
  letter-spacing: 0.02em;
}

.loved-brand-bottle {
  flex-shrink: 0;
  display: block;
  width: 18px;
  height: 27px;
  max-width: 18px;
  max-height: 27px;
  object-fit: contain;
  transform: translateY(0.06em);
}

.loved-brand-hero {
  gap: 0.55rem;
}

.loved-brand-hero .loved-brand-word {
  font-size: clamp(2rem, 7vw, 3rem);
  font-weight: 600;
  letter-spacing: 0.03em;
}

.loved-brand-hero .loved-brand-bottle {
  width: clamp(1.6rem, 5vw, 2.5rem);
  height: auto;
}

.loved-brand-lg .loved-brand-bottle {
  width: 2.5rem;
  height: auto;
}

.loved-brand-inline {
  gap: 0.18rem;
  vertical-align: middle;
}

.loved-brand-inline .loved-brand-word {
  font-weight: 600;
}

.main-logo {
  margin-bottom: 1rem;
}

.nav-links {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  margin-left: auto;
}

.nav-panel {
  display: flex;
  align-items: center;
  gap: 0.35rem 0.65rem;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 0.15rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.15rem;
  padding: 0.4rem 0.82rem;
  border-radius: 999px;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--muted);
  text-decoration: none;
  border: 1px solid transparent;
  background: transparent;
  cursor: pointer;
  font-family: inherit;
  line-height: 1.2;
  white-space: nowrap;
  transition: color 0.15s ease, background 0.15s ease, border-color 0.15s ease;
}

.nav-link:hover {
  color: var(--text);
  background: color-mix(in srgb, var(--text) 7%, transparent);
  text-decoration: none;
}

.nav-link--active {
  color: var(--text);
  background: color-mix(in srgb, var(--accent) 16%, transparent);
  border-color: color-mix(in srgb, var(--accent) 28%, transparent);
}

.nav-link--ghost:hover {
  background: color-mix(in srgb, var(--danger) 10%, transparent);
  color: #f0c4c4;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  padding-left: 0.55rem;
  margin-left: 0.15rem;
  border-left: 1px solid color-mix(in srgb, var(--border) 85%, transparent);
}

.nav-cta {
  border-radius: 999px;
  padding-inline: 1rem;
  font-weight: 600;
  box-shadow: 0 4px 18px color-mix(in srgb, var(--primary) 28%, transparent);
}

.nav-offline {
  font-size: 0.82rem;
  color: var(--muted);
}

.nav-toggle {
  display: none;
  width: 2.5rem;
  height: 2.5rem;
  border: 1px solid color-mix(in srgb, var(--border) 90%, transparent);
  border-radius: 12px;
  background: color-mix(in srgb, var(--surface) 80%, transparent);
  color: var(--text);
  cursor: pointer;
  padding: 0.45rem;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.28rem;
  flex-shrink: 0;
}

.nav-toggle-bar {
  display: block;
  width: 1.1rem;
  height: 2px;
  border-radius: 999px;
  background: currentColor;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.nav-links--open .nav-toggle-bar:nth-child(1) {
  transform: translateY(5px) rotate(45deg);
}

.nav-links--open .nav-toggle-bar:nth-child(2) {
  opacity: 0;
}

.nav-links--open .nav-toggle-bar:nth-child(3) {
  transform: translateY(-5px) rotate(-45deg);
}

@media (max-width: 768px) {
  .nav-toggle {
    display: inline-flex;
  }

  .nav-panel {
    display: none;
    position: absolute;
    top: calc(100% + 0.35rem);
    right: 0;
    left: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0.75rem;
    padding: 0.85rem;
    border-radius: 16px;
    border: 1px solid var(--border);
    background: color-mix(in srgb, var(--surface) 94%, var(--bg));
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.35);
  }

  .nav-links--open .nav-panel {
    display: flex;
  }

  .nav-menu {
    flex-direction: column;
    align-items: stretch;
    width: 100%;
    gap: 0.25rem;
  }

  .nav-menu .nav-link {
    justify-content: flex-start;
    width: 100%;
  }

  .nav-actions {
    width: 100%;
    margin: 0;
    padding: 0.65rem 0 0;
    border-left: none;
    border-top: 1px solid var(--border);
    flex-wrap: wrap;
  }

  .nav-actions .nav-cta {
    flex: 1 1 auto;
    justify-content: center;
  }
}

.page {
  max-width: var(--max);
  margin: 0 auto;
  padding: 2rem 1.25rem 4rem;
}

.page-narrow {
  max-width: 440px;
}

.section-title {
  margin: 0 0 0.5rem;
  font-size: clamp(1.5rem, 4vw, 2rem);
}

/* —— Buttons —— */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.75rem 1.2rem;
  border-radius: 10px;
  font-weight: 600;
  font-size: 0.92rem;
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.15s ease, background 0.15s ease;
}

.btn:hover {
  text-decoration: none;
  transform: translateY(-1px);
}

.btn-primary {
  background: var(--primary);
  color: #1a1208;
}

.btn-primary:hover {
  background: var(--primary-dark);
  color: #1a1208;
}

.btn-secondary {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border);
}

.btn-sm {
  padding: 0.45rem 0.85rem;
  font-size: 0.82rem;
}

.link-btn {
  background: none;
  border: none;
  color: var(--accent);
  cursor: pointer;
  font: inherit;
  padding: 0;
  text-decoration: underline;
}

/* —— Forms / auth —— */
.auth-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
}

.auth-card h1 {
  font-size: 1.45rem;
  margin-bottom: 0.5rem;
}

.auth-card label {
  display: block;
  font-weight: 600;
  font-size: 0.85rem;
  margin: 0.85rem 0 0.3rem;
}

.auth-card input[type="text"],
.auth-card input[type="email"],
.auth-card input[type="password"] {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 0.7rem 0.85rem;
  font: inherit;
  color: var(--text);
  background: var(--bg);
  min-height: 2.75rem;
}

.auth-card input:focus {
  outline: 2px solid var(--accent-soft);
  border-color: var(--accent);
}

.check-row {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  margin-top: 0.85rem;
  font-size: 0.9rem;
  font-weight: 400;
}

.check-row input {
  margin-top: 0.2rem;
}

.policy-notice {
  margin: 1rem 0 0;
  padding: 0.85rem 1rem;
  font-size: 0.88rem;
  line-height: 1.5;
  color: var(--text);
  background: var(--accent-soft);
  border: 1px solid rgba(201, 168, 108, 0.35);
  border-radius: 10px;
}

.policy-notice strong {
  color: var(--accent);
}

.msg-error {
  color: var(--danger);
  font-size: 0.88rem;
  margin-top: 0.75rem;
}

.msg-success {
  color: var(--success);
  font-size: 0.88rem;
  margin-top: 0.75rem;
}

.grid-2 {
  display: grid;
  gap: 1rem;
}

@media (min-width: 720px) {
  .grid-2 {
    grid-template-columns: 1fr 1fr;
  }
}

/* —— Join / fees —— */
.plan-picker {
  display: grid;
  gap: 0.65rem;
  margin-bottom: 1rem;
}

.plan-option {
  display: flex;
  gap: 0.65rem;
  align-items: flex-start;
  padding: 0.85rem;
  border: 1px solid var(--border);
  border-radius: 10px;
  cursor: pointer;
}

.plan-option:has(input:checked) {
  border-color: var(--accent);
  background: var(--accent-soft);
}

.plan-option input {
  margin-top: 0.2rem;
}

.plan-option-body {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.fee-intro {
  font-size: 0.9rem;
  color: var(--muted);
}

.fee-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.85rem;
  margin-top: 0.75rem;
}

.fee-table th,
.fee-table td {
  border-bottom: 1px solid var(--border);
  padding: 0.55rem 0.35rem;
  text-align: left;
  vertical-align: top;
}

.fee-total-row td {
  font-weight: 600;
  color: var(--accent);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  justify-content: center;
  margin-top: 1.5rem;
}

.waitlist-stat {
  margin: 0.75rem auto 0;
  max-width: 34rem;
  font-size: 0.9rem;
}

.founding-badge {
  padding: 0.65rem 0.85rem;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--accent-soft);
  color: var(--accent);
}

.hp-field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}