/* Bean — beanme.cash
   Shared stylesheet. No external fonts or assets. */

:root {
  --ink: #0a0608;
  --ink-2: #120a0d;
  --panel: #150c10;
  --felt: #8f0f1a;
  --felt-edge: #2b0309;
  --purple: #8f33ff;
  --purple-dark: #4d149e;
  --gold: #d6b066;
  --gold-light: #f7e3ad;
  --gold-dark: #806130;
  --text: #f1e9dc;
  --muted: #c2b5a6;
  --hairline: rgba(214, 176, 102, 0.34);
  --serif: ui-serif, "New York", "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  --sans: ui-sans-serif, system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  --measure: 68ch;
}

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  color-scheme: dark;
}

body {
  margin: 0;
  background: var(--ink);
  color: var(--text);
  font-family: var(--serif);
  font-size: 1.0625rem;
  line-height: 1.65;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

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

a { color: var(--gold-light); text-underline-offset: 0.18em; text-decoration-thickness: 1px; }
a:hover { color: #fff; }

:focus-visible {
  outline: 2px solid var(--gold-light);
  outline-offset: 3px;
  border-radius: 4px;
}

.skip {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--gold-light);
  color: #1a1206;
  padding: 0.6rem 1rem;
  font-family: var(--sans);
  z-index: 10;
}
.skip:focus { left: 0.5rem; top: 0.5rem; }

.wrap {
  width: 100%;
  max-width: 68rem;
  margin: 0 auto;
  padding: 0 1.25rem;
}

/* ---------- Type ---------- */

h1, h2, h3 {
  font-family: var(--serif);
  font-weight: 600;
  line-height: 1.15;
  margin: 0;
  text-wrap: balance;
}

.label {
  font-family: var(--sans);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--gold);
  margin: 0;
}

.gold-text {
  color: var(--gold);
  background: linear-gradient(180deg, var(--gold-light) 0%, var(--gold) 55%, var(--gold-dark) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Gold rule broken by a small diamond */
.ornament {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.9rem;
  width: min(20rem, 70%);
  margin: 1.1rem auto;
  border: 0;
  padding: 0;
  height: auto;
  background: none;
}
.ornament::before,
.ornament::after {
  content: "";
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold));
}
.ornament::after { background: linear-gradient(270deg, transparent, var(--gold)); }
.ornament span {
  width: 0.5rem;
  height: 0.5rem;
  background: var(--gold);
  transform: rotate(45deg);
  flex: none;
}

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

.site-header {
  position: relative;
  z-index: 2;
  border-bottom: 1px solid var(--hairline);
  background: rgba(10, 6, 8, 0.72);
}
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 3.75rem;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  text-decoration: none;
  font-family: var(--serif);
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: 0.34em;
  color: var(--gold-light);
}
.brand img {
  width: 2rem;
  height: 2rem;
  border-radius: 0.5rem;
  box-shadow: 0 0 0 1px var(--hairline);
}
.nav {
  display: flex;
  gap: 1.4rem;
  font-family: var(--sans);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}
.nav a {
  color: var(--muted);
  text-decoration: none;
  padding: 0.6rem 0;
}
.nav a:hover,
.nav a[aria-current="page"] { color: var(--gold-light); }

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

.hero {
  position: relative;
  text-align: center;
  padding: 4.5rem 0 5rem;
  background:
    radial-gradient(ellipse 80% 70% at 50% 38%, var(--felt) 0%, #5c0912 38%, var(--felt-edge) 70%, var(--ink) 100%);
  border-bottom: 1px solid var(--hairline);
  overflow: hidden;
}
/* faint table ring */
.hero::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 38%;
  width: min(56rem, 150vw);
  aspect-ratio: 1;
  transform: translate(-50%, -50%);
  border: 1px solid rgba(214, 176, 102, 0.16);
  border-radius: 50%;
  box-shadow: inset 0 0 0 0.75rem transparent, inset 0 0 0 calc(0.75rem + 1px) rgba(214, 176, 102, 0.08);
  pointer-events: none;
}
.hero > .wrap { position: relative; }

.hero-icon {
  width: 8.5rem;
  height: 8.5rem;
  margin: 0 auto 1.6rem;
  border-radius: 22.5%;
  box-shadow:
    0 0 0 1px rgba(247, 227, 173, 0.45),
    0 1.2rem 3rem rgba(0, 0, 0, 0.55),
    0 0 4.5rem rgba(143, 51, 255, 0.35);
}
.hero h1 {
  font-size: clamp(3.4rem, 15vw, 6.5rem);
  font-weight: 700;
  letter-spacing: 0.3em;
  margin-right: -0.3em; /* optically centre the tracked word */
  line-height: 1;
}
.tagline {
  font-style: italic;
  font-size: clamp(1.15rem, 3.6vw, 1.5rem);
  color: var(--text);
  margin: 0 0 0.9rem;
}
.hero-sub {
  max-width: 34rem;
  margin: 0 auto 2rem;
  color: #e6dccd;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.9rem;
}

.btn {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 3.5rem;
  min-width: 15rem;
  padding: 0.65rem 1.9rem;
  border-radius: 999px;
  font-family: var(--serif);
  font-weight: 600;
  font-size: 1.05rem;
  letter-spacing: 0.04em;
  line-height: 1.2;
  text-decoration: none;
  color: #fff;
  transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}
.btn small {
  font-family: var(--sans);
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--gold-light);
  margin-bottom: 0.15rem;
}
.btn-primary {
  background: linear-gradient(180deg, var(--purple) 0%, var(--purple-dark) 100%);
  border: 1px solid var(--gold);
  box-shadow: inset 0 0 0 3px rgba(77, 20, 158, 0.55), inset 0 0 0 4px rgba(247, 227, 173, 0.28), 0 0 2.2rem rgba(143, 51, 255, 0.4);
}
.btn-secondary {
  background: rgba(10, 6, 8, 0.55);
  border: 1px solid var(--gold);
  color: var(--gold-light);
}
.btn:hover { color: #fff; transform: translateY(-1px); }
.btn-secondary:hover { border-color: var(--gold-light); }
.btn[aria-disabled="true"] { cursor: default; }
.btn[aria-disabled="true"]:hover { transform: none; }

.platforms {
  margin-top: 1.6rem;
  color: #e0d3c0;
}

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

.section { padding: 4.5rem 0; }
.section + .section { border-top: 1px solid rgba(214, 176, 102, 0.14); }
.section-alt { background: linear-gradient(180deg, var(--ink-2), var(--ink)); }

.section-head { text-align: center; margin-bottom: 2.75rem; }
.section-head h2 { font-size: clamp(1.9rem, 5.5vw, 2.75rem); margin-top: 0.7rem; }
.section-head p.lede { max-width: 38rem; margin: 0 auto; color: var(--muted); }

/* Features */
.features {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 17rem), 1fr));
  gap: 1rem;
}
.feature {
  background: var(--panel);
  border: 1px solid var(--hairline);
  border-radius: 1rem;
  padding: 1.5rem 1.4rem 1.4rem;
}
.feature h3 {
  font-size: 1.3rem;
  color: var(--gold-light);
  margin: 0.55rem 0 0.5rem;
}
.feature p { margin: 0; color: var(--muted); font-size: 1rem; }

/* Screenshots */
.shots {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(1rem, 3vw, 2.5rem);
  align-items: start;
  max-width: 56rem;
  margin-inline: auto;
}
.shot { margin: 0; text-align: center; }
.phone {
  padding: 0.45rem;
  border-radius: 2.4rem;
  background: linear-gradient(160deg, #2a2226, #0c080a 60%);
  border: 1px solid var(--gold-dark);
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.8), 0 1.5rem 3.5rem rgba(0, 0, 0, 0.6);
}
.phone img {
  width: 100%;
  aspect-ratio: 644 / 1400;
  border-radius: 2rem;
  background: var(--felt-edge);
}
.shot figcaption { margin-top: 1.1rem; }
.shot figcaption .label { display: block; margin-bottom: 0.3rem; }
.shot figcaption span:last-child { color: var(--muted); font-style: italic; font-size: 0.98rem; }

@media (max-width: 720px) {
  .shots { grid-template-columns: 1fr; max-width: 18.5rem; gap: 2.5rem; }
}

/* How to play */
.steps {
  list-style: none;
  counter-reset: step;
  margin: 0 auto;
  padding: 0;
  max-width: 44rem;
}
.steps li {
  counter-increment: step;
  display: grid;
  grid-template-columns: 3.25rem 1fr;
  gap: 0.25rem 1rem;
  padding: 1.3rem 0;
  border-top: 1px solid var(--hairline);
}
.steps li:last-child { border-bottom: 1px solid var(--hairline); }
.steps li::before {
  content: counter(step);
  grid-row: span 2;
  font-size: 2.4rem;
  font-weight: 600;
  line-height: 1;
  color: var(--gold);
  font-variant-numeric: lining-nums;
}
.steps h3 { font-size: 1.25rem; color: var(--gold-light); }
.steps p { margin: 0; color: var(--muted); grid-column: 2; }

.closing { text-align: center; }
.closing h2 { font-size: clamp(1.8rem, 5vw, 2.5rem); }
.closing p { color: var(--muted); max-width: 34rem; margin: 0.9rem auto 2rem; }

/* ---------- Document pages (privacy, support) ---------- */

.doc-hero {
  text-align: center;
  padding: 3.5rem 0 3rem;
  background: radial-gradient(ellipse 90% 120% at 50% 0%, #5c0912 0%, var(--felt-edge) 50%, var(--ink) 100%);
  border-bottom: 1px solid var(--hairline);
}
.doc-hero h1 { font-size: clamp(2.2rem, 7vw, 3.4rem); margin-top: 0.8rem; }
.doc-hero p { margin: 0; color: #e0d3c0; }

.doc {
  max-width: var(--measure);
  margin: 0 auto;
  padding: 3rem 1.25rem 4.5rem;
}
.doc h2 {
  font-size: 1.55rem;
  color: var(--gold-light);
  margin: 2.6rem 0 0.7rem;
  padding-top: 1.6rem;
  border-top: 1px solid var(--hairline);
}
.doc h2:first-child { margin-top: 0; padding-top: 0; border-top: 0; }
.doc h3 { font-size: 1.2rem; color: var(--text); margin: 1.7rem 0 0.4rem; }
.doc p, .doc li { color: #ddd2c3; }
.doc p { margin: 0 0 1rem; }
.doc ul { padding-left: 1.25rem; margin: 0 0 1rem; }
.doc li { margin-bottom: 0.45rem; }
.doc li::marker { color: var(--gold); }
.doc strong { color: var(--text); }

.summary {
  background: var(--panel);
  border: 1px solid var(--hairline);
  border-radius: 1rem;
  padding: 1.4rem 1.5rem;
  margin-bottom: 2.6rem;
}
.summary .label { margin-bottom: 0.6rem; }
.summary p:last-child { margin-bottom: 0; }

.contact-card {
  text-align: center;
  background: var(--panel);
  border: 1px solid var(--hairline);
  border-radius: 1rem;
  padding: 2rem 1.5rem;
  margin-top: 2.8rem;
}
.contact-card h2 { border: 0; margin: 0.6rem 0 0.6rem; padding: 0; }
.contact-card .mail {
  font-size: clamp(1.1rem, 4.6vw, 1.5rem);
  font-weight: 600;
  overflow-wrap: anywhere;
}

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

.site-footer {
  border-top: 1px solid var(--hairline);
  background: #070405;
  padding: 2.5rem 0 3rem;
  text-align: center;
}
.site-footer .nav { justify-content: center; flex-wrap: wrap; gap: 0.4rem 1.6rem; }
.site-footer p {
  margin: 1rem auto 0;
  max-width: 40rem;
  color: #a89b8c;
  font-size: 0.9rem;
}

@media (max-width: 420px) {
  .brand span { letter-spacing: 0.26em; }
  .nav { gap: 1rem; letter-spacing: 0.16em; }
  .btn { width: 100%; min-width: 0; }
  .hero { padding: 3.25rem 0 3.75rem; }
  .section { padding: 3.5rem 0; }
}

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