/* 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; white-space: nowrap; }
.top nav a:hover { color: var(--ink); }

/* The section links go before they would wrap. 34rem was enough in English
   alone; with twenty languages and a flag beside them, "Ücretlendirme" and
   "Обліковий запис" folded the bar onto two lines at 600 wide. */
@media (max-width: 48rem) {
  .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); }

/* The buy keys beside the lead one: amber, and plainly keys, without taking
   the lead tier's solid fill. */
.button.outline {
  border-color: rgba(255, 196, 107, .6);
  color: var(--amber);
  background: var(--amber-dim);
}

.button.outline:hover { background: rgba(255, 196, 107, .22); border-color: var(--amber); }

.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; }

/* A screenshot at the head of a feature card, run out to the card's edges.
   Switched on by tool/site_images.py only when there is a picture for it. */
.card .shot {
  margin: -1.6rem -1.5rem .4rem;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--raised-2);
  border-bottom: 1px solid var(--line);
}

.card .shot img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: top left; }

/* A phone's screen stands upright in the same box, in a plain dark frame,
   so the four cards keep one height. */
.card .shot.phone {
  display: grid;
  place-items: center;
  background: radial-gradient(ellipse at 50% 85%, rgba(255, 196, 107, .14), transparent 65%), var(--raised-2);
}

.card .shot.phone img {
  width: auto;
  height: 86%;
  aspect-ratio: 9 / 20;
  object-fit: cover;
  border: 5px solid #050506;
  border-radius: 16px;
  box-shadow: 0 14px 30px rgba(0, 0, 0, .5);
}

.card .num {
  font-size: .74rem;
  letter-spacing: .16em;
  color: var(--faint);
  font-weight: 600;
}

/* --------------------------------------------------------------- shots */


.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%); position: relative; }

.tier .ribbon {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translate(-50%, -50%);
  background: linear-gradient(180deg, var(--amber) 0%, var(--amber-deep) 100%);
  color: #241703;
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  padding: .3rem .8rem;
  border-radius: 999px;
  white-space: nowrap;
}

/* 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%; }

/* The small Download key in the top bar. It was an inline style, which the
   page's content rules (_headers) do not allow. */
.button.compact { padding: .5rem 1rem; font-size: .9rem; }

/* -------------------------------------------------------------- columns */

/* Four features and three steps always fill their rows: auto-fit put three
   of the four in a row on a window just under 1100 wide, and left the fourth
   alone beneath a gap. */
.cards.four { grid-template-columns: repeat(4, 1fr); }
.cards.three { grid-template-columns: repeat(3, 1fr); }

@media (max-width: 62rem) {
  .cards.four { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 46rem) {
  .cards.three { grid-template-columns: 1fr; }
}

@media (max-width: 34rem) {
  .cards.four { grid-template-columns: 1fr; }
}

/* The app's own screen in the hero, once there is a screenshot to show
   (index.html says why it is not there yet). */
.hero-shot {
  margin: 1.5rem 0 0;
  width: 100%;
  border: 1px solid var(--line-bright);
  border-radius: 14px;
  overflow: hidden;
  background: var(--raised);
  box-shadow: 0 30px 80px rgba(0, 0, 0, .55), 0 0 0 1px rgba(255, 196, 107, .08);
}

.hero-shot img { display: block; width: 100%; height: auto; }

/* ------------------------------------------------------- language menu */

/* The flag in the top bar opens a list of every language the site speaks,
   each with its own flag and its own name. A <details>, so it opens and
   closes without a script — the site runs none (_headers). The choice goes
   to /lang/<code>, which remembers it (site-src/functions). */
.lang { position: relative; }

.lang summary {
  list-style: none;
  display: flex;
  align-items: center;
  gap: .3rem;
  padding: .4rem .45rem;
  border-radius: 9px;
  border: 1px solid transparent;
  cursor: pointer;
  color: var(--muted);
}

.lang summary::-webkit-details-marker { display: none; }
.lang summary:hover, .lang[open] summary { border-color: var(--line-bright); background: rgba(255, 255, 255, .04); color: var(--ink); }
.lang summary:focus-visible { outline: 2px solid var(--amber); outline-offset: 2px; }

.lang img { display: block; border-radius: 3px; }

.lang .caret { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; transition: transform .15s ease; }
.lang[open] .caret { transform: rotate(180deg); }

.lang ul {
  position: absolute;
  inset-inline-end: 0;
  top: calc(100% + .5rem);
  margin: 0;
  padding: .35rem;
  list-style: none;
  width: 15rem;
  max-height: min(26rem, calc(100vh - 6rem));
  overflow-y: auto;
  overscroll-behavior: contain;
  background: var(--raised);
  border: 1px solid rgba(255, 196, 107, .35);
  border-radius: 14px;
  box-shadow: 0 18px 50px rgba(0, 0, 0, .6);
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 196, 107, .4) transparent;
}

.top nav .lang ul a {
  display: grid;
  grid-template-columns: 2.7rem 1fr 1rem;
  align-items: center;
  gap: .6rem;
  padding: .55rem .65rem;
  border-radius: 9px;
  color: var(--ink);
  font-size: .95rem;
}

.lang ul a img { justify-self: center; }
.top nav .lang ul a:hover { background: rgba(255, 255, 255, .06); }
.top nav .lang ul a[aria-current] { background: var(--amber-dim); color: var(--amber); }

.lang .tick { width: 16px; height: 16px; fill: none; stroke: var(--amber); stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; visibility: hidden; }
.lang a[aria-current] .tick { visibility: visible; }

/* A phone has room for the mark, the Download key and the flag, and no more:
   in German the key alone is 128 across. The caret goes and the gaps close
   first; on the narrowest phones the name beside the mark goes too, since the
   mark itself still says whose site it is. */
@media (max-width: 26rem) {
  .top .wrap { gap: .6rem; }
  .top nav { gap: .5rem; }
  .top nav .button.compact { padding: .45rem .75rem; }
  .lang .caret { display: none; }
  .lang summary { padding: .4rem; }
}

@media (max-width: 23rem) {
  .mark span { display: none; }
}
