/* Beer Appear website. Plain CSS, no build step. Colours match the apps. */

:root {
  --bg: #14121c;
  --bg-raised: #18151f;
  --surface: #1e1a2a;
  --surface-2: #241f32;
  --border: #2c2740;
  --text: #edeaf7;
  --muted: #a39fbf;
  --accent: #8c7cff;
  --accent-ink: #1b1330;
  --accent-soft: #2b2552;
  --green: #8fd19e;
  --radius: 18px;
  --max: 1120px;
  --gutter: 20px;
  color-scheme: dark;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 17px/1.6 "Plus Jakarta Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }

a { color: var(--accent); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }

:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 6px; }

.skip-link {
  position: absolute; left: -999px; top: 8px;
  background: var(--accent); color: var(--accent-ink); padding: 8px 14px; border-radius: 8px; z-index: 10;
}
.skip-link:focus { left: 8px; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }

/* ---- Header ------------------------------------------------------------------------------ */

.site-header {
  position: sticky; top: 0; z-index: 5;
  background: rgba(20, 18, 28, 0.88);
  backdrop-filter: saturate(140%) blur(12px);
  -webkit-backdrop-filter: saturate(140%) blur(12px);
  border-bottom: 1px solid var(--border);
}
.site-header .wrap { display: flex; align-items: center; gap: 24px; height: 64px; }

.brand { display: flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; font-weight: 800; font-size: 1.15rem; }
.brand img { width: 34px; height: 34px; border-radius: 9px; }

.site-nav { display: flex; align-items: center; gap: 22px; margin-left: auto; }
.site-nav a { color: var(--muted); text-decoration: none; font-weight: 500; font-size: 0.95rem; }
.site-nav a:hover, .site-nav a[aria-current="page"] { color: var(--text); }
.site-nav .button { color: var(--accent-ink); }

@media (max-width: 720px) {
  .site-nav .hide-sm { display: none; }
}

/* ---- Buttons ----------------------------------------------------------------------------- */

.button {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 13px 22px; border-radius: 999px; border: 1px solid transparent;
  font-weight: 700; font-size: 1rem; text-decoration: none; cursor: pointer;
  background: var(--accent); color: var(--accent-ink);
  transition: transform 0.15s ease, filter 0.15s ease;
}
.button:hover { filter: brightness(1.06); transform: translateY(-1px); }
.button.secondary { background: transparent; color: var(--text); border-color: var(--border); }
.button.secondary:hover { border-color: var(--muted); }
.button.small { padding: 9px 16px; font-size: 0.92rem; }
.buttons { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---- Sections ---------------------------------------------------------------------------- */

section { padding: 88px 0; }
section.tight { padding: 56px 0; }
section.raised { background: var(--bg-raised); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }

.eyebrow { color: var(--accent); font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; font-size: 0.8rem; margin: 0 0 12px; }
/* Neon Dusk type, as in the app: Sora for headings, Plus Jakarta Sans for text. */
h1, h2, h3, .brand { font-family: "Sora", "Plus Jakarta Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif; }
h1, h2, h3 { line-height: 1.15; margin: 0 0 16px; letter-spacing: -0.02em; }
h1 { font-size: clamp(2.3rem, 5.4vw, 3.9rem); font-weight: 800; }
h2 { font-size: clamp(1.8rem, 3.6vw, 2.6rem); font-weight: 700; }
h3 { font-size: 1.2rem; font-weight: 750; }
p { margin: 0 0 16px; }
.lead { font-size: clamp(1.1rem, 2vw, 1.3rem); color: var(--muted); max-width: 40em; }
.muted { color: var(--muted); }
.center { text-align: center; }
.center .lead { margin-left: auto; margin-right: auto; }
.section-head { max-width: 760px; margin-bottom: 44px; }
.section-head.center { margin-left: auto; margin-right: auto; }

/* ---- Hero -------------------------------------------------------------------------------- */

/* The app's venue glow: violet light from the top left, a little warm bar light from the bottom right. */
.hero {
  padding: 72px 0 88px; overflow: hidden;
  background:
    radial-gradient(900px 560px at 8% -12%, rgba(140, 124, 255, 0.22), transparent 62%),
    radial-gradient(720px 520px at 100% 108%, rgba(232, 195, 107, 0.08), transparent 60%);
}
.hero .wrap { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 56px; align-items: center; }
.hero h1 .accent { color: var(--accent); }
.hero .lead { margin-bottom: 28px; }
.hero-note { margin-top: 18px; font-size: 0.92rem; color: var(--muted); }

@media (max-width: 880px) {
  .hero .wrap { grid-template-columns: 1fr; gap: 44px; }
  .hero { padding-top: 48px; }
}

/* Phone and tablet frames around screenshots */
.device-row { position: relative; isolation: isolate; display: flex; justify-content: center; align-items: flex-end; gap: 20px; }
/* A pool of light behind the devices, like the glow behind the app's order status glass. */
.device-row::before {
  content: ""; position: absolute; inset: -12% 0; z-index: -1; pointer-events: none;
  background: radial-gradient(closest-side, rgba(140, 124, 255, 0.20), transparent);
}
.phone {
  width: 260px; flex: 0 0 auto;
  border-radius: 38px; padding: 10px; background: #0b0a11;
  border: 1px solid #45405c;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.55), 0 0 0 6px rgba(140, 124, 255, 0.06);
}
.phone img { border-radius: 29px; }
.phone.back { width: 220px; transform: translateY(-28px) rotate(-4deg); opacity: 0.92; }
@media (max-width: 520px) {
  .phone { width: 230px; }
  .phone.back { display: none; }
}

.tablet {
  border-radius: 22px; padding: 12px; background: #0b0a11; border: 1px solid #45405c;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.5), 0 0 120px rgba(140, 124, 255, 0.16);
}
.tablet img { border-radius: 12px; }

/* ---- Cards & grids ----------------------------------------------------------------------- */

.grid { display: grid; gap: 20px; }
.grid.two { grid-template-columns: repeat(2, 1fr); }
.grid.three { grid-template-columns: repeat(3, 1fr); }
.grid.four { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 960px) { .grid.four { grid-template-columns: repeat(2, 1fr); } .grid.three { grid-template-columns: 1fr 1fr; } }
@media (max-width: 640px) { .grid.two, .grid.three, .grid.four { grid-template-columns: 1fr; } }

.card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 26px;
}
.card h3 { margin-bottom: 8px; }
.card p:last-child { margin-bottom: 0; }
.card .muted { font-size: 0.97rem; }

.step-number {
  display: inline-grid; place-items: center; width: 38px; height: 38px; border-radius: 50%;
  background: var(--accent-soft); color: var(--accent); font-weight: 800; margin-bottom: 14px;
}

.icon {
  width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center;
  background: var(--accent-soft); color: var(--accent); margin-bottom: 14px;
}
.icon svg { width: 24px; height: 24px; }

/* Feature row: text beside an image */
.feature { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.feature.reverse .feature-media { order: -1; }
@media (max-width: 880px) { .feature { grid-template-columns: 1fr; gap: 36px; } .feature.reverse .feature-media { order: 0; } }

.checks { list-style: none; padding: 0; margin: 0 0 20px; }
.checks li { position: relative; padding-left: 30px; margin-bottom: 10px; }
.checks li::before {
  content: ""; position: absolute; left: 0; top: 0.35em; width: 18px; height: 18px; border-radius: 50%;
  background: var(--accent-soft) no-repeat center / 12px
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23f2a33a' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E");
}

/* ---- Problem / solution compare ------------------------------------------------------------ */

.compare { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
@media (max-width: 780px) { .compare { grid-template-columns: 1fr; } }

.compare-col { display: flex; flex-direction: column; }
.compare-col.with { border-color: var(--accent); }
.compare-col h3 { margin-bottom: 20px; }

.compare-steps { list-style: none; margin: 0 0 22px; padding: 0; display: grid; gap: 16px; }
.compare-steps li { display: flex; gap: 14px; align-items: flex-start; }
.compare-steps .icon { margin-bottom: 0; flex-shrink: 0; width: 36px; height: 36px; }
.compare-steps .icon svg { width: 19px; height: 19px; }
.compare-col.without .icon { background: var(--surface-2); color: var(--muted); }
.compare-steps span:last-child { padding-top: 6px; }

.compare-result {
  margin-top: auto; padding-top: 18px; border-top: 1px solid var(--border);
  font-weight: 700; margin-bottom: 0;
}
.compare-col.without .compare-result { color: var(--muted); }
.compare-col.with .compare-result { color: var(--accent); }
.compare-result a { color: inherit; }

/* A "not for" list: a dash instead of a check */
.checks.nope li::before {
  background: var(--surface-2); content: "–"; color: var(--muted);
  display: grid; place-items: center; font-size: 13px; font-weight: 800; line-height: 1;
}

/* ---- Pricing ----------------------------------------------------------------------------- */

.pricing { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; align-items: stretch; }
@media (max-width: 800px) { .pricing { grid-template-columns: 1fr; } }
.price-big { font-size: clamp(2.6rem, 6vw, 3.6rem); font-weight: 850; color: var(--accent); line-height: 1; margin: 6px 0 10px; }
.receipt { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.receipt td { padding: 9px 0; border-bottom: 1px solid var(--border); }
.receipt td:last-child { text-align: right; }
.receipt tr.total td { border-bottom: 0; font-weight: 800; font-size: 1.1rem; padding-top: 14px; }
.receipt .minus { color: var(--muted); }

/* ---- Timeline (getting started) ---------------------------------------------------------- */

.timeline { list-style: none; margin: 0; padding: 0; counter-reset: step; display: grid; gap: 14px; }
.timeline li {
  counter-increment: step; position: relative;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 22px 24px 22px 76px;
}
.timeline li::before {
  content: counter(step); position: absolute; left: 22px; top: 20px;
  width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center;
  background: var(--accent); color: var(--accent-ink); font-weight: 800;
}
.timeline h3 { margin-bottom: 6px; }
.timeline p { margin: 0; color: var(--muted); }
.timeline .time { color: var(--green); font-weight: 600; font-size: 0.9rem; margin-left: 8px; }

/* ---- FAQ --------------------------------------------------------------------------------- */

.faq { display: grid; gap: 12px; max-width: 820px; }
.faq details { background: var(--surface); border: 1px solid var(--border); border-radius: 14px; padding: 4px 22px; }
.faq summary { cursor: pointer; font-weight: 700; padding: 16px 0; list-style: none; position: relative; padding-right: 30px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 0; top: 12px; font-size: 1.5rem; color: var(--accent); font-weight: 400; }
.faq details[open] summary::after { content: "−"; }
.faq details p { color: var(--muted); }

/* ---- Call to action band ----------------------------------------------------------------- */

.cta-band {
  background: linear-gradient(135deg, #2b2552 0%, #1f1a3a 100%);
  border: 1px solid #4a3f8c; border-radius: 28px; padding: 56px 40px; text-align: center;
}
.cta-band .lead { margin: 0 auto 28px; color: #d9d4f2; }
.cta-band .buttons { justify-content: center; }

/* ---- Footer ------------------------------------------------------------------------------ */

.site-footer { border-top: 1px solid var(--border); padding: 40px 0 56px; color: var(--muted); font-size: 0.95rem; }
.site-footer .wrap { display: flex; flex-wrap: wrap; gap: 20px 40px; justify-content: space-between; align-items: center; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 20px; }
.site-footer a { color: var(--muted); text-decoration: none; }
.site-footer a:hover { color: var(--text); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .button { transition: none; }
}

/* ---- Tag designer (tags.html) ------------------------------------------------------------ */

.designer { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 32px; align-items: start; }
@media (max-width: 880px) { .designer { grid-template-columns: minmax(0, 1fr); } }

.designer-form { display: grid; gap: 16px; }
.field { display: grid; gap: 6px; min-width: 0; }
.field label, .field .label { font-weight: 650; font-size: 0.95rem; }
.field input[type="text"] {
  width: 100%; font: inherit; color: var(--text); background: var(--bg); border: 1px solid var(--border);
  border-radius: 10px; padding: 10px 12px;
}
.field input[type="text"]:focus-visible { outline-offset: 1px; }
.field .hint { font-size: 0.87rem; color: var(--muted); margin: 0; }
.field-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
@media (max-width: 480px) { .field-row { grid-template-columns: minmax(0, 1fr); } }

.segmented { display: inline-flex; border: 1px solid var(--border); border-radius: 999px; overflow: hidden; width: fit-content; }
.segmented label { position: relative; cursor: pointer; font-weight: 600; }
.segmented input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.segmented span { display: block; padding: 8px 18px; color: var(--muted); }
.segmented input:checked + span { background: var(--accent); color: var(--accent-ink); }
.segmented input:focus-visible + span { outline: 3px solid var(--accent); outline-offset: 2px; border-radius: 999px; }

.color-field { display: flex; align-items: center; gap: 10px; }
.color-field input[type="color"] {
  width: 46px; height: 40px; padding: 2px; background: var(--bg); border: 1px solid var(--border); border-radius: 10px; cursor: pointer;
}
.swatches { display: flex; flex-wrap: wrap; gap: 10px; }
.swatch { width: 40px; height: 40px; border-radius: 50%; border: 2px solid var(--border); cursor: pointer; padding: 0; }
.swatch:hover { border-color: var(--text); }

.file-row { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.file-row input[type="file"] { font: inherit; color: var(--muted); max-width: 100%; }

.tag-stage {
  position: sticky; top: 88px;
  background: radial-gradient(circle at 50% 30%, #2a2446 0%, #1b1826 70%);
  border: 1px solid var(--border); border-radius: 28px; padding: 32px;
}
@media (max-width: 880px) { .tag-stage { position: static; padding: 20px; order: -1; } }
.tag-stage #tag-preview svg, .tag-stage #tag-preview img { width: 100%; max-width: 460px; height: auto; margin: 0 auto; filter: drop-shadow(0 18px 30px rgba(0, 0, 0, 0.5)); }
.tag-stage .buttons { justify-content: center; margin-top: 24px; }

.tag-note { max-width: 760px; }
.tag-callouts { counter-reset: callout; }
.tag-callouts .card::before {
  counter-increment: callout; content: counter(callout);
  display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; margin-bottom: 14px;
  background: var(--accent-soft); color: var(--accent); font-weight: 800;
}
.card-link { display: inline-block; margin-top: 12px; font-weight: 650; }

/* Privacy policy and terms: long-form reading pages */
.prose { max-width: 740px; }
.prose h1 { font-size: clamp(2rem, 4.4vw, 2.8rem); }
.prose h2 { font-size: 1.45rem; margin: 44px 0 12px; }
.prose h3 { font-size: 1.08rem; margin: 26px 0 8px; }
.prose p, .prose li { color: var(--text); }
.prose ul { padding-left: 1.3em; }
.prose li { margin-bottom: 6px; }
.prose .updated { color: var(--muted); margin-bottom: 32px; }
.prose .summary { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 20px 24px; }
.prose .summary ul { margin: 0; }
.placeholder { background: var(--accent-soft); color: var(--accent); border-radius: 4px; padding: 0 4px; font-style: normal; }
.draft-banner { background: var(--accent-soft); color: var(--text); border-bottom: 1px solid var(--accent); padding: 12px 0; font-size: 0.95rem; }

[hidden] { display: none !important; }

/* Neon Dusk type, as in the app: Sora for headings, Plus Jakarta Sans for text. */
h1, h2, h3, h4, .brand { font-family: "Sora", "Plus Jakarta Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif; }

/* ---- Application form (ambassadors.html) --------------------------------------------------- */

.apply-form { display: grid; gap: 16px; max-width: 760px; }
.field input[type="email"], .field input[type="tel"], .field input[type="number"], .field textarea {
  width: 100%; font: inherit; color: var(--text); background: var(--bg); border: 1px solid var(--border);
  border-radius: 10px; padding: 10px 12px;
}
.field textarea { min-height: 96px; resize: vertical; }
.field .optional { font-weight: 400; color: var(--muted); }
.check-field { display: flex; gap: 12px; align-items: flex-start; font-weight: 600; cursor: pointer; }
.check-field input { width: 20px; height: 20px; margin-top: 3px; accent-color: var(--accent); flex: none; }
/* Hidden from people, not from bots (a spam trap). */
.trap { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.form-status { margin: 0; font-weight: 600; }
.form-status.error { color: #ff8a8a; }
.form-status.ok { color: var(--accent); }
.referral-note { display: inline-block; background: var(--accent-soft); color: var(--accent); border-radius: 999px; padding: 4px 12px; font-weight: 700; font-size: 0.9rem; }
