/* Amber Player, on the web.
 *
 * One stylesheet for the sales page and the three pages the law and the
 * payment providers ask for. Dark on purpose: the app is dark, the thing
 * being sold is watched in the evening, and a white page in front of a
 * screenshot of a dark app looks like two different products.
 */

:root {
  --ground: #0B0B0D;
  --raised: #141417;
  --raised-2: #1B1B1F;
  --ink: #F4F4F6;
  --muted: #A3A3AC;
  --faint: #6F6F79;
  --line: rgba(255, 255, 255, 0.11);
  --line-bright: rgba(255, 255, 255, 0.2);
  --amber: #FFC46B;
  --amber-deep: #E9A23B;
  --amber-dim: rgba(255, 196, 107, 0.13);

  --measure: 64ch;
  --pad: clamp(1.15rem, .5rem + 2.6vw, 2.5rem);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation: none !important; transition: none !important; }
}

body {
  margin: 0;
  background: var(--ground);
  color: var(--ink);
  font-family: Figtree, "Segoe UI", system-ui, -apple-system, sans-serif;
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--amber); text-underline-offset: 3px; }
a:focus-visible, button:focus-visible { outline: 2px solid var(--amber); outline-offset: 3px; }

.wrap {
  width: 100%;
  max-width: 68rem;
  margin: 0 auto;
  padding-inline: var(--pad);
}

/* ---------------------------------------------------------------- header */

.top {
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  background: rgba(11, 11, 13, .82);
  backdrop-filter: blur(14px);
  z-index: 10;
}

.top .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  height: 62px;
}

.mark {
  display: flex;
  align-items: center;
  gap: .7rem;
  text-decoration: none;
  color: var(--ink);
}

.mark svg { display: block; width: 26px; height: 26px; }

.mark span {
  font-family: Michroma, Figtree, sans-serif;
  font-size: .82rem;
  letter-spacing: .12em;
  white-space: nowrap;
}

@media (max-width: 26rem) {
  .mark span { font-size: .68rem; letter-spacing: .08em; }
}

.top nav {
  display: flex;
  align-items: center;
  gap: clamp(.8rem, .3rem + 1.5vw, 1.6rem);
  font-size: .93rem;
}

.top nav a { color: var(--muted); text-decoration: none; }
.top nav a:hover { color: var(--ink); }

@media (max-width: 34rem) {
  .top nav a.hide-small { display: none; }
}

/* ----------------------------------------------------------------- type */

h1, h2, h3 { margin: 0; text-wrap: balance; }

h1 {
  font-size: clamp(2.3rem, 1.3rem + 4.2vw, 4rem);
  line-height: 1.03;
  letter-spacing: -.03em;
  font-weight: 700;
}

h2 {
  font-size: clamp(1.6rem, 1.2rem + 1.6vw, 2.3rem);
  line-height: 1.12;
  letter-spacing: -.02em;
  font-weight: 700;
}

h3 {
  font-size: 1.12rem;
  line-height: 1.25;
  letter-spacing: -.01em;
  font-weight: 600;
}

p { margin: 0; max-width: var(--measure); }

.eyebrow {
  font-size: .76rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--amber-deep);
}

.lede { font-size: clamp(1.05rem, .98rem + .4vw, 1.22rem); color: var(--muted); }

section { padding-block: clamp(3.5rem, 2rem + 6vw, 7rem); }

section > .wrap { display: flex; flex-direction: column; gap: 2.4rem; }

.head { display: flex; flex-direction: column; gap: .9rem; }

/* ----------------------------------------------------------------- hero */

.hero { padding-block: clamp(4rem, 2rem + 9vw, 8.5rem) clamp(3rem, 2rem + 5vw, 6rem); position: relative; overflow: hidden; }

.hero::before {
  content: "";
  position: absolute;
  inset: -30% 20% auto -10%;
  height: 70vh;
  background: radial-gradient(closest-side, rgba(255, 196, 107, .16), transparent 70%);
  pointer-events: none;
}

.hero .wrap { position: relative; display: flex; flex-direction: column; gap: 1.5rem; align-items: flex-start; }

.hero p.lede { font-size: clamp(1.1rem, 1rem + .6vw, 1.35rem); max-width: 46ch; }

.cta { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: .6rem; }

.button {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .85rem 1.5rem;
  border-radius: 10px;
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
}

.button.primary {
  background: linear-gradient(180deg, var(--amber) 0%, var(--amber-deep) 100%);
  color: #241703;
}

.button.primary:hover { filter: brightness(1.07); }

.button.quiet {
  border-color: var(--line-bright);
  color: var(--ink);
  background: transparent;
}

.button.quiet:hover { background: rgba(255, 255, 255, .05); }

.under { font-size: .88rem; color: var(--faint); }

/* -------------------------------------------------------------- honesty */

.honest {
  border-block: 1px solid var(--line);
  background: var(--raised);
  padding-block: clamp(2rem, 1.4rem + 2vw, 3rem);
}

.honest .wrap { display: flex; flex-direction: column; gap: .7rem; }
.honest p { max-width: 68ch; color: var(--muted); }
.honest strong { color: var(--ink); font-weight: 600; }

/* ---------------------------------------------------------------- cards */

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
}

.card {
  background: var(--raised);
  padding: 1.6rem 1.5rem 1.8rem;
  display: flex;
  flex-direction: column;
  gap: .7rem;
}

.card p { color: var(--muted); font-size: .97rem; }

.card .num {
  font-size: .74rem;
  letter-spacing: .16em;
  color: var(--faint);
  font-weight: 600;
}

/* --------------------------------------------------------------- shots */

.shots { display: grid; gap: 1.2rem; grid-template-columns: repeat(auto-fit, minmax(19rem, 1fr)); }

.shot {
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
  background: var(--raised);
  display: flex;
  flex-direction: column;
}

.shot img { display: block; width: 100%; height: auto; }

.shot .slot {
  aspect-ratio: 16 / 10;
  display: grid;
  place-items: center;
  background:
    repeating-linear-gradient(135deg, rgba(255, 255, 255, .028) 0 12px, transparent 12px 24px),
    var(--raised-2);
  color: var(--faint);
  font-size: .9rem;
  text-align: center;
  padding: 1rem;
}

.shot figcaption {
  padding: .9rem 1.1rem 1.1rem;
  color: var(--muted);
  font-size: .93rem;
  border-top: 1px solid var(--line);
}

/* -------------------------------------------------------------- pricing */

.tiers { display: grid; gap: 1.1rem; grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr)); align-items: stretch; }

.tier {
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--raised);
  padding: 1.7rem 1.5rem 1.8rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.tier.lead { border-color: rgba(255, 196, 107, .45); background: linear-gradient(180deg, var(--amber-dim), var(--raised) 60%); }

/* A minimum height, so the badge on one tier does not push its price a line
   below the others. Three prices that do not line up read as three prices
   that were set at three different times. */
.tier .name { display: flex; align-items: center; justify-content: space-between; gap: .6rem; min-height: 2.1rem; }

.tier .tag {
  font-size: .68rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--amber);
  border: 1px solid rgba(255, 196, 107, .4);
  border-radius: 999px;
  padding: .2rem .6rem;
  white-space: nowrap;
}

.price {
  font-size: 2.6rem;
  font-weight: 700;
  letter-spacing: -.03em;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

.price small { font-size: .95rem; font-weight: 500; color: var(--muted); letter-spacing: 0; }

.tier ul { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: .45rem; font-size: .95rem; color: var(--muted); }
.tier li { display: grid; grid-template-columns: 1.1rem 1fr; gap: .5rem; }
.tier li::before { content: "·"; color: var(--amber); font-weight: 700; text-align: center; }

.tier .button { justify-content: center; margin-top: auto; }

.smallprint { color: var(--faint); font-size: .9rem; max-width: 68ch; }

/* ------------------------------------------------------------------ faq */

.faq { display: flex; flex-direction: column; gap: 0; border-top: 1px solid var(--line); }

.faq details { border-bottom: 1px solid var(--line); }

.faq summary {
  cursor: pointer;
  padding: 1.15rem 0;
  font-weight: 600;
  list-style: none;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: baseline;
}

.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--amber); font-weight: 400; font-size: 1.3rem; line-height: 1; }
.faq details[open] summary::after { content: "–"; }
.faq details p { color: var(--muted); padding-bottom: 1.2rem; }

/* --------------------------------------------------------------- footer */

footer {
  border-top: 1px solid var(--line);
  padding-block: 2.6rem 3.4rem;
  color: var(--faint);
  font-size: .9rem;
}

footer .wrap { display: flex; flex-direction: column; gap: 1.2rem; }
footer nav { display: flex; flex-wrap: wrap; gap: 1.2rem; }
footer nav a { color: var(--muted); text-decoration: none; }
footer nav a:hover { color: var(--ink); }
footer p { max-width: 70ch; }

/* ------------------------------------------------------- the legal pages */

.prose { padding-block: clamp(2.5rem, 1.5rem + 4vw, 4.5rem) 5rem; }
.prose .wrap { max-width: 44rem; display: flex; flex-direction: column; gap: 1.6rem; }
.prose h1 { font-size: clamp(1.9rem, 1.4rem + 2vw, 2.6rem); }
.prose h2 { font-size: 1.15rem; letter-spacing: .1em; text-transform: uppercase; color: var(--amber-deep); font-weight: 600; margin-top: 1.4rem; }
.prose p { color: var(--muted); max-width: none; }
.prose .updated { color: var(--faint); font-size: .9rem; }
.prose table { border-collapse: collapse; width: 100%; font-size: .95rem; }
.prose td { border-top: 1px solid var(--line); padding: .7rem .9rem .7rem 0; vertical-align: top; color: var(--muted); }
.prose td:first-child { color: var(--ink); width: 34%; }
