/* AnimeLang's front page. The same palette and type as the app, so arriving at one from the
   other doesn't feel like leaving. No build step, no framework: one file. */

:root {
  --night: #17212E;
  --night-2: #1F2C3B;
  --night-3: #2A3A4D;
  --lamp: #F1B653;
  --foam: #EEE7DB;
  --foam-dim: #B9B2A7;
  --f-story: "Alegreya", Georgia, serif;
  --f-ui: "Commissioner", system-ui, -apple-system, sans-serif;
  --page: 1140px;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; background: var(--night); color: var(--foam);
  font-family: var(--f-ui); font-size: 17px; line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--lamp); text-decoration: none; }
a:hover { text-decoration: underline; }
:focus-visible { outline: 2px solid var(--lamp); outline-offset: 3px; border-radius: 4px; }

h1, h2, h3 { font-family: var(--f-story); line-height: 1.15; margin: 0 0 .5em; text-wrap: balance; }
h1 { font-size: clamp(2.2rem, 5.2vw, 3.6rem); font-weight: 700; }
h2 { font-size: clamp(1.7rem, 3.4vw, 2.4rem); font-weight: 700; color: var(--lamp); }
h3 { font-size: 1.15rem; font-weight: 700; }
p { margin: 0 0 1em; }
.lede { font-size: 1.15rem; color: var(--foam-dim); max-width: 56ch; }
.lede.centred { margin-inline: auto; text-align: center; }
.muted { color: var(--foam-dim); }
.small { font-size: .88rem; }

section { max-width: var(--page); margin-inline: auto; padding: clamp(48px, 8vw, 96px) 24px; }

/* ---------- the bar at the top ---------- */
.bar {
  position: sticky; top: 0; z-index: 10;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  max-width: var(--page); margin-inline: auto; padding: 14px 24px;
  background: color-mix(in srgb, var(--night) 88%, transparent);
  backdrop-filter: blur(8px);
}
.brand { font-family: var(--f-story); font-weight: 700; font-size: 1.4rem; color: var(--lamp); }
.brand:hover { text-decoration: none; }
.bar nav { display: flex; align-items: center; gap: 22px; }
.bar nav a:not(.btn) { color: var(--foam-dim); font-size: .95rem; }
.bar nav a:not(.btn):hover { color: var(--foam); text-decoration: none; }

/* ---------- buttons ---------- */
.btn {
  display: inline-block; border-radius: 10px; padding: 12px 22px;
  border: 1px solid var(--night-3); background: var(--night-2);
  color: var(--foam); font-weight: 500; white-space: nowrap;
}
.btn:hover { background: #243142; border-color: #5A6B82; text-decoration: none; }
.btn.primary { background: var(--lamp); border-color: var(--lamp); color: #2A1A0C; font-weight: 600; }
.btn.primary:hover { background: #F6C46E; border-color: #F6C46E; }
.btn.small { padding: 7px 14px; font-size: .92rem; }
.btn.wide { display: block; text-align: center; }

/* ---------- hero ---------- */
.hero { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 64px); align-items: center; padding-top: clamp(28px, 5vw, 56px); }
.cta { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; margin-top: 28px; }

/* ---------- the waitlist ---------- */
.waitlist { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; scroll-margin-top: 90px; }
.waitlist input, .waitlist select {
  font: inherit; color: var(--foam); background: var(--night-2);
  border: 1px solid var(--night-3); border-radius: 10px; padding: 11px 14px; min-width: 0;
}
.waitlist input { flex: 1 1 220px; }
.waitlist select { flex: 0 1 190px; color: var(--foam-dim); }
.waitlist input:focus, .waitlist select:focus { outline: 2px solid var(--lamp); outline-offset: 1px; }
.waitlist .btn { flex: 0 0 auto; font: inherit; font-weight: 600; cursor: pointer; }
.waitlist .btn:disabled { opacity: .6; cursor: default; }
.waitlist-note { flex-basis: 100%; margin: 4px 0 0; }
.waitlist.done input, .waitlist.done select, .waitlist.done .btn { display: none; }
.waitlist.done .waitlist-note { color: var(--foam); font-size: 1rem; }
.hero-art { margin: 0; }
.hero-art img { border-radius: 16px; box-shadow: 0 24px 60px #0007; }
.hero-art figcaption { margin-top: 12px; font-family: var(--f-story); font-style: italic; color: var(--foam-dim); text-align: center; }

.strip { max-width: 740px; text-align: center; padding-block: 0 clamp(40px, 7vw, 80px); }
.strip p { font-family: var(--f-story); font-size: clamp(1.15rem, 2.3vw, 1.5rem); color: var(--foam); margin: 0; }

/* ---------- how it works ---------- */
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(270px, 1fr)); gap: 20px; margin-top: 32px; }
.steps article { background: var(--night-2); border: 1px solid var(--night-3); border-radius: 14px; padding: 22px; }
.steps h3 { color: var(--lamp); }
.steps p { margin: 0; color: var(--foam-dim); }

/* ---------- the cast ---------- */
.cast { text-align: center; }
/* six of them, so the rows are set rather than left to auto-fit, which stranded one on its own */
.faces { list-style: none; display: grid; grid-template-columns: repeat(6, 1fr); gap: 24px; padding: 0; margin: 36px 0 0; }
.faces li { display: flex; flex-direction: column; align-items: center; gap: 6px; }
.faces img { width: 84px; height: 84px; border-radius: 50%; border: 2px solid var(--night-3); }
.faces b { font-family: var(--f-story); font-size: 1.1rem; }
.faces span { color: var(--foam-dim); font-size: .9rem; max-width: 22ch; }

/* ---------- a picture beside some words ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 60px); align-items: center; }
.split figure { margin: 0; }
.split img { border-radius: 14px; }

/* ---------- price ---------- */
.price { text-align: center; }
.price .card {
  max-width: 420px; margin: 32px auto 0; text-align: left;
  background: var(--night-2); border: 1px solid var(--night-3); border-radius: 18px; padding: 30px;
}
.amount { font-family: var(--f-story); font-size: 3.4rem; font-weight: 700; color: var(--lamp); margin: 0 0 18px; line-height: 1; }
.amount span { font-size: 1.8rem; vertical-align: super; }
.amount small { font-size: 1rem; font-weight: 400; color: var(--foam-dim); font-family: var(--f-ui); }
.price ul { list-style: none; padding: 0; margin: 0 0 24px; }
.price li { padding: 9px 0 9px 28px; position: relative; border-top: 1px solid var(--night-3); }
.price li::before { content: "✓"; position: absolute; left: 0; color: var(--lamp); }
.price .muted { margin: 14px 0 0; text-align: center; }

/* ---------- questions ---------- */
.faq dl { margin: 28px 0 0; max-width: 760px; }
.faq dt { font-family: var(--f-story); font-size: 1.15rem; font-weight: 700; color: var(--lamp); margin-top: 24px; }
.faq dd { margin: 6px 0 0; color: var(--foam-dim); }

/* ---------- foot ---------- */
footer { border-top: 1px solid var(--night-3); margin-top: 40px; padding: 36px 24px 56px; text-align: center; }
.brand-foot { font-family: var(--f-story); font-weight: 700; font-size: 1.2rem; color: var(--lamp); margin: 0 0 12px; }
footer nav { display: flex; justify-content: center; gap: 20px; flex-wrap: wrap; margin-bottom: 16px; }
footer .muted { margin: 0; }

@media (max-width: 1020px) { .faces { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 560px) { .faces { grid-template-columns: repeat(2, 1fr); } }

@media (max-width: 820px) {
  .hero, .split { grid-template-columns: 1fr; }
  .split figure { order: 2; }
  .bar nav a:not(.btn) { display: none; }
}

/* the plain pages: privacy, terms */
.prose { max-width: 760px; }
.prose h1 { font-size: clamp(2rem, 4vw, 2.8rem); color: var(--lamp); }
.prose h2 { font-size: 1.3rem; margin-top: 2em; }
.prose ul { padding-left: 1.2em; color: var(--foam-dim); }
.prose li { margin-bottom: .5em; }
.prose p { color: var(--foam-dim); }
.prose .lede { color: var(--foam); }
.prose b { color: var(--foam); }
