/* BlockGain home page: the app's own cream and ink, real screens, plain sections. */
:root {
  --bg: #fff3c4;
  --paper: #fffaea;
  --ink: #1b1b1b;
  --dim: #6f6648;
  --line: #ecd58f;
  --accent: #f5b60f;
  --accent-ink: #9a6a00;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 600 17px/1.6 Nunito, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2 { font-weight: 900; letter-spacing: -0.02em; line-height: 1.05; margin: 0; }
h1 { font-size: clamp(48px, 7vw, 84px); }
h2 { font-size: clamp(30px, 3.6vw, 44px); }
p { margin: 0; }

.top, main, .bottom { max-width: 1120px; margin: 0 auto; padding: 0 28px; }

/* Header */
.top { display: flex; align-items: center; justify-content: space-between; height: 76px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 900; font-size: 20px; text-decoration: none; }
.brand img { border-radius: 9px; }
.top nav { display: flex; gap: 28px; }
.top nav a { text-decoration: none; font-weight: 800; color: var(--dim); }
.top nav a:hover { color: var(--ink); }

/* Hero */
.hero {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 48px;
  align-items: center;
  padding: 40px 0 96px;
}
.kicker { font-size: 14px; font-weight: 900; letter-spacing: 0.08em; text-transform: uppercase; color: var(--accent-ink); margin-bottom: 14px; }
.lead { font-size: 20px; line-height: 1.55; color: var(--dim); max-width: 32ch; margin: 22px 0 30px; }
.stores { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.badge img { height: 50px; width: auto; }
a.badge { transition: transform 0.15s ease; }
a.badge:hover { transform: translateY(-2px); }
.soon-badge { opacity: 0.45; }
.soon { margin-top: 10px; font-size: 14px; font-weight: 800; color: var(--accent-ink); }
.free { margin-top: 18px; font-size: 15px; color: var(--dim); }

/* Phones: the real screens in an iPhone-like frame (status bar, island, side buttons) */
.phone {
  --screen: #fdeeb5;
  position: relative;
  width: 100%;
  max-width: 320px;
  aspect-ratio: 9 / 19.3;
  margin: 0 auto;
  padding: 9px;
  border-radius: 52px;
  background: linear-gradient(145deg, #3a3a3c, #121212 40%, #2a2a2c);
  box-shadow:
    inset 0 0 0 1.5px rgba(255, 255, 255, 0.14),
    0 0 0 1px rgba(0, 0, 0, 0.25),
    0 50px 80px -40px rgba(110, 78, 0, 0.55),
    0 18px 30px -18px rgba(0, 0, 0, 0.35);
  display: flex;
  flex-direction: column;
}
.phone::before, .phone::after {
  /* Side buttons. */
  content: "";
  position: absolute;
  width: 3px;
  border-radius: 2px;
  background: #2a2a2c;
}
.phone::before { left: -3px; top: 22%; height: 9%; box-shadow: 0 13% 0 #2a2a2c; }
.phone::after { right: -3px; top: 27%; height: 13%; }
.phone.dark { --screen: #14110f; }
.status {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 44px;
  padding: 0 26px 0 30px;
  background: var(--screen);
  border-radius: 43px 43px 0 0;
  font-size: 14px;
  font-weight: 900;
  color: var(--ink);
  position: relative;
}
.phone.dark .status { color: #fff; }
.island {
  position: absolute;
  left: 50%;
  top: 10px;
  transform: translateX(-50%);
  width: 34%;
  height: 26px;
  border-radius: 20px;
  background: #050505;
}
.sys { display: flex; gap: 3px; align-items: flex-end; }
.sys b { display: block; width: 4px; background: currentColor; border-radius: 1px; }
.sys b:nth-child(1) { height: 5px; }
.sys b:nth-child(2) { height: 8px; }
.sys b:nth-child(3) { height: 11px; }
.phone img {
  flex: 1;
  min-height: 0;
  width: 100%;
  object-fit: cover;
  object-position: top;
  border-radius: 0 0 43px 43px;
}

/* A part of a screen (a pop-up, a section) as a card */
.sheet {
  width: 100%;
  max-width: 360px;
  margin: 0 auto;
  border-radius: 30px;
  overflow: hidden;
  border: 2px solid var(--line);
  box-shadow: 0 40px 70px -34px rgba(120, 86, 0, 0.45);
}

/* Sections: copy and a phone, side by side */
.row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
  padding: 72px 0;
  border-top: 2px solid var(--line);
}
.row.flip .row-copy { order: 2; }
.row-copy p:not(.kicker) { color: var(--dim); font-size: 18px; max-width: 42ch; margin-top: 16px; }
.ticks { list-style: none; padding: 0; margin: 22px 0 0; }
.ticks li { position: relative; padding-left: 28px; margin: 10px 0; font-weight: 800; }
.ticks li::before {
  content: ""; position: absolute; left: 2px; top: 0.5em;
  width: 12px; height: 7px;
  border-left: 3px solid var(--accent-ink); border-bottom: 3px solid var(--accent-ink);
  transform: rotate(-45deg);
}

/* Free for students */
.free-band {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 40px;
  align-items: center;
  margin: 24px 0 72px;
  padding: 40px 48px;
  background: var(--paper);
  border: 2px solid var(--line);
  border-radius: 32px;
}
.free-band p { color: var(--dim); font-size: 18px; margin-top: 14px; }
.free-band a { color: var(--accent-ink); font-weight: 900; }

/* Questions */
.faq { max-width: 760px; padding-bottom: 72px; }
.faq h2 { margin-bottom: 20px; }
.faq details { border-top: 2px solid var(--line); padding: 18px 0; }
.faq details:last-of-type { border-bottom: 2px solid var(--line); }
.faq summary { cursor: pointer; font-weight: 900; font-size: 19px; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 24px; line-height: 1; color: var(--accent-ink); }
.faq details[open] summary::after { content: "–"; }
.faq details p { color: var(--dim); margin-top: 10px; max-width: 62ch; }

/* Footer */
.bottom { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; padding-top: 28px; padding-bottom: 40px; border-top: 2px solid var(--line); }
.bottom nav { display: flex; gap: 22px; }
.bottom nav a { text-decoration: none; font-weight: 800; }
.bottom small { width: 100%; color: var(--dim); }

/* Phones and small screens */
@media (max-width: 860px) {
  .top nav a:not(:last-child) { display: none; }
  .hero, .row, .free-band { grid-template-columns: 1fr; gap: 36px; }
  .hero { padding: 16px 0 64px; text-align: left; }
  .row { padding: 56px 0; }
  .row.flip .row-copy { order: 0; }
  .phone { max-width: 280px; }
  .sheet { max-width: 320px; }
  .free-band { padding: 28px 22px; text-align: left; }
  .free-band img { max-width: 220px; }
}
