/* The landing page (index.html), sign-in (signin.html) and choosing a plan (plans.html), on top of
   home.css. */
:root {
  --notice-bg: #fff7ed;
  --notice-text: #9a3412;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --notice-bg: #3b2414;
    --notice-text: #fdba74;
  }
}

:root[data-theme="dark"] {
  --notice-bg: #3b2414;
  --notice-text: #fdba74;
}

.header-link {
  color: var(--text);
  font-size: 0.92rem;
  font-weight: 600;
  text-decoration: none;
}

.header-link:hover { color: var(--accent); }

.landing-hero .hero-inner { padding-top: 56px; padding-bottom: 52px; }
.landing-hero h1 { max-width: 20ch; }

.landing-notice {
  max-width: 60ch;
  margin: 0 0 18px;
  padding: 10px 14px;
  border-radius: 12px;
  background: var(--notice-bg);
  color: var(--notice-text);
  font-size: 0.95rem;
  line-height: 1.5;
}

.sign-in {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}

.sign-in-button {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 11px 18px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface);
  box-shadow: var(--shadow);
  color: var(--text);
  font: inherit;
  font-weight: 600;
  cursor: pointer;
}

.sign-in-button svg { width: 18px; height: 18px; }
.sign-in-button:hover:not(:disabled) { border-color: var(--accent); }
.sign-in-button:disabled { opacity: 0.6; cursor: default; }

.sign-in-note {
  flex-basis: 100%;
  margin: 2px 0 0;
  color: var(--muted);
  font-size: 0.9rem;
}

/* Landing page: the hero's buttons, and the short plans section. */
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}

.plans-teaser {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px 32px;
  padding: 28px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: linear-gradient(135deg, var(--hero-from) 0%, var(--hero-to) 100%);
}

.plans-teaser h2 { margin-bottom: 8px; }
.plans-teaser p:not(.eyebrow) { max-width: 52ch; margin: 0; color: var(--muted); line-height: 1.55; }

/* Sign-in page: one card in the middle of the page. */
.auth-page { display: flex; flex-direction: column; min-height: 100vh; min-height: 100dvh; }

.auth {
  display: grid;
  flex: 1;
  place-items: center;
  padding: 40px 16px;
}

.auth-card {
  width: min(460px, 100%);
  padding: 32px 28px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.auth-card h1 { font-size: clamp(1.5rem, 5vw, 1.9rem); }

.auth-lead {
  margin: 0 0 20px;
  color: var(--muted);
  line-height: 1.55;
}

.sign-in-stack { flex-direction: column; align-items: stretch; }
.sign-in-stack .sign-in-button { justify-content: center; }

.auth-facts {
  display: grid;
  gap: 8px;
  margin: 24px 0 0;
  padding: 20px 0 0 18px;
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.5;
}

.auth-facts a { color: var(--brand); font-weight: 600; }

/* Plans page: frequently asked questions under the plans. */
.faq { display: grid; gap: 12px; margin: 0; }

.faq > div {
  padding: 18px 20px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
}

.faq dt { margin-bottom: 6px; font-weight: 700; }
.faq dd { margin: 0; color: var(--muted); line-height: 1.55; }

.landing-section { margin-bottom: 56px; }

.landing-section h2 {
  margin: 0 0 20px;
  font-size: clamp(1.4rem, 3.5vw, 1.8rem);
  letter-spacing: -0.02em;
}

.landing-trio {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.mini-card,
.plan {
  padding: 20px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.mini-preview {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 150px;
  margin: -20px -20px 16px;
  border-radius: var(--radius) var(--radius) 0 0;
  background: var(--preview-bg);
}

.mini-preview .preview-die { width: 64px; }
.mini-preview .preview-card { width: 64px; }
.mini-preview .preview-map .map-svg { width: auto; height: 136px; }

.mini-card h3,
.plan h2,
.plan h3 { margin: 0 0 8px; font-size: 1.1rem; letter-spacing: normal; }

.mini-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
}

.steps {
  display: grid;
  gap: 12px;
  margin: 0;
  padding-left: 22px;
  color: var(--muted);
  line-height: 1.55;
}

.steps strong { color: var(--text); }

.plans {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.plan { display: flex; flex-direction: column; }
.plan-featured { border: 2px solid var(--accent); }

.plan-current {
  align-self: flex-start;
  margin: 0 0 10px;
  padding: 3px 10px;
  border-radius: 999px;
  background: var(--timed-bg);
  color: var(--timed-text);
  font-size: 0.8rem;
  font-weight: 700;
}

.plan-price {
  margin: 0 0 14px;
  color: var(--brand);
  font-size: 1.5rem;
  font-weight: 700;
}

.plan ul {
  margin: 0 0 20px;
  padding-left: 20px;
  color: var(--muted);
  line-height: 1.8;
}

.plan-button {
  align-self: flex-start;
  margin-top: auto;
  padding: 10px 20px;
  border: 0;
  border-radius: 999px;
  background: var(--accent);
  color: #ffffff;
  font: inherit;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
}

.plan-button:disabled { background: var(--border); color: var(--muted); cursor: default; }

.landing-footer {
  padding: 24px 16px 40px;
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: 0.85rem;
  text-align: center;
}

.landing-footer p { margin: 0; }
.landing-footer p + p { margin-top: 6px; }
.landing-footer a { color: inherit; text-decoration: underline; }
.landing-footer a:hover { color: var(--accent); }

/* Copyright page: plain reading text. */
.legal { max-width: 70ch; margin-bottom: 36px; }
.legal h2 { margin-bottom: 12px; }
.legal p,
.legal ul { margin: 0; color: var(--muted); line-height: 1.65; }
.legal ul { padding-left: 22px; }

.sign-in[hidden],
.hero-actions[hidden],
.plan-current[hidden],
.plan-button[hidden],
.card-start[hidden] { display: none; }

@media (max-width: 760px) {
  .landing-trio,
  .plans { grid-template-columns: 1fr; }
}
