/* ROSS coupon landing - shared styles.
   Palette, radii and type scale mirror heyross.ai (extracted from its published
   CSS custom properties) so this microsite reads as part of the same product. */

/* Self-hosted webfonts: run tools/fetch_fonts.py to populate assets/fonts/.
   If the files are absent the stack falls back to system-ui / monospace, so the
   site never blocks on a missing font. */
@font-face {
  font-family: "Space Grotesk";
  src: url("../fonts/space-grotesk-400.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "Space Grotesk";
  src: url("../fonts/space-grotesk-500.woff2") format("woff2");
  font-weight: 500;
  font-display: swap;
}
@font-face {
  font-family: "Space Grotesk";
  src: url("../fonts/space-grotesk-700.woff2") format("woff2");
  font-weight: 700;
  font-display: swap;
}
@font-face {
  font-family: "Fira Code";
  src: url("../fonts/fira-code-500.woff2") format("woff2");
  font-weight: 500;
  font-display: swap;
}

:root {
  --paper: #0c0a1a;
  --dark: #1e1b2e;
  --dark2: #252238;
  --dark3: #15121f;

  --yellow: #fdc400;
  --ambra: #e8921a;
  --crema: #fff5d6;
  --ciano: #0891b2;
  --indaco: #3730a3;
  --indaco-soft: #818cf8;
  --viola: #7c3aed;
  --rosso: #ef5e6b;
  --telegram: #2ca5e0;

  --text: #fff;
  --muted: #a8a5b6;
  --line: #ffffff1f;
  --line-strong: #ffffff3d;

  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-pill: 9999px;

  --font-sans: "Space Grotesk", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: "Fira Code", ui-monospace, "SF Mono", Consolas, monospace;

  --wrap: 46rem;
  --shadow-yellow: 0 8px 28px #fdc40059;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.625;
  /* Soft aurora wash, same hue family as the marketing site. */
  background-image:
    radial-gradient(60rem 40rem at 80% -10%, #3730a347, transparent 60%),
    radial-gradient(45rem 35rem at 0% 5%, #7c3aed26, transparent 60%);
  background-repeat: no-repeat;
  min-height: 100vh;
}

/* ---------- layout ---------- */

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: 1.25rem;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: #0c0a1acc;
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 3.75rem;
}

.wordmark {
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 1.0625rem;
  letter-spacing: 0.02em;
  color: var(--text);
  text-decoration: none;
  white-space: nowrap;
}

.wordmark span {
  color: var(--yellow);
}

main {
  padding-block: 2.5rem 4rem;
}

@media (min-width: 48rem) {
  main {
    padding-block: 4rem 5rem;
  }
}

.site-footer {
  border-top: 1px solid var(--line);
  padding-block: 1.75rem 2.5rem;
  color: var(--muted);
  font-size: 0.8125rem;
}

.site-footer p {
  margin: 0.25rem 0;
}

/* ---------- language toggle ---------- */

.lang-toggle {
  display: inline-flex;
  padding: 0.1875rem;
  gap: 0.1875rem;
  background: #ffffff12;
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
}

.lang-toggle__btn {
  min-width: 2.75rem;
  min-height: 2rem;
  padding: 0.25rem 0.6875rem;
  border: 0;
  border-radius: var(--radius-pill);
  background: transparent;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  cursor: pointer;
  transition: color 0.15s, background-color 0.15s;
}

.lang-toggle__btn:hover {
  color: var(--text);
}

.lang-toggle__btn[aria-pressed="true"] {
  background: var(--yellow);
  color: #0c0a1a;
}

/* ---------- type ---------- */

.eyebrow {
  display: inline-block;
  margin: 0 0 1rem;
  padding: 0.3125rem 0.75rem;
  border: 1px solid #fdc4004d;
  border-radius: var(--radius-pill);
  background: #fdc40024;
  color: var(--yellow);
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

h1 {
  margin: 0 0 0.75rem;
  font-size: clamp(1.875rem, 6vw, 2.75rem);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.025em;
}

h2 {
  margin: 2.5rem 0 1rem;
  font-size: clamp(1.25rem, 4vw, 1.5rem);
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: -0.015em;
}

.lede {
  margin: 0 0 2rem;
  color: var(--muted);
  font-size: 1.0625rem;
}

a {
  color: var(--yellow);
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
}

a:hover {
  color: var(--crema);
}

/* ---------- cards ---------- */

.card {
  padding: 1.5rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, #ffffff0f, #ffffff05);
}

@media (min-width: 48rem) {
  .card {
    padding: 2rem;
  }
}

/* ---------- Q&A ---------- */

.qa {
  display: grid;
  gap: 0.75rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.qa__item {
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: #ffffff0a;
  overflow: hidden;
}

.qa__item[open] {
  background: #ffffff12;
  border-color: #fdc4004d;
}

.qa__q {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 1rem 1.125rem;
  font-weight: 600;
  cursor: pointer;
  list-style: none;
}

.qa__q::-webkit-details-marker {
  display: none;
}

.qa__q::after {
  content: "+";
  margin-left: auto;
  color: var(--yellow);
  font-family: var(--font-mono);
  font-size: 1.125rem;
  line-height: 1.4;
  flex: none;
}

.qa__item[open] .qa__q::after {
  content: "\2212"; /* minus */
}

.qa__a {
  padding: 0 1.125rem 1.125rem;
  color: var(--muted);
}

.qa__a p {
  margin: 0 0 0.75rem;
}

.qa__a p:last-child {
  margin-bottom: 0;
}

/* ---------- terms box ---------- */

.terms {
  margin: 1.5rem 0;
}

.terms__scroll {
  max-height: 21rem;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 1.125rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: #0c0a1a99;
  color: var(--muted);
  font-size: 0.875rem;
  line-height: 1.6;
}

.terms__scroll:focus-visible {
  outline: 2px solid var(--yellow);
  outline-offset: 2px;
}

.terms__hint {
  margin: 0.625rem 0 0;
  color: var(--muted);
  font-size: 0.75rem;
}

.tc-article {
  margin-bottom: 1.5rem;
}

.tc-article:last-child {
  margin-bottom: 0;
}

.tc-article__eyebrow {
  margin: 0;
  color: var(--yellow);
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.tc-article__title {
  margin: 0.25rem 0 0.625rem;
  color: var(--text);
  font-size: 0.9375rem;
  font-weight: 600;
  line-height: 1.35;
}

.tc-article p {
  margin: 0 0 0.625rem;
}

.tc-article ul {
  margin: 0 0 0.75rem;
  padding-left: 1.125rem;
}

.tc-article li {
  margin-bottom: 0.375rem;
}

.tc-article strong {
  color: var(--text);
  font-weight: 600;
}

/* ---------- consent ---------- */

.consent {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  margin: 1.25rem 0 1.5rem;
  cursor: pointer;
}

.consent input[type="checkbox"] {
  flex: none;
  width: 1.375rem;
  height: 1.375rem;
  margin: 0.125rem 0 0;
  accent-color: var(--yellow);
  cursor: pointer;
}

.consent input[type="checkbox"]:focus-visible {
  outline: 2px solid var(--yellow);
  outline-offset: 2px;
}

.consent__label {
  font-size: 0.9375rem;
  color: var(--text);
}

/* ---------- buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.625rem;
  width: 100%;
  min-height: 3.25rem;
  padding: 0.875rem 1.5rem;
  border: 0;
  border-radius: var(--radius-pill);
  font-family: var(--font-sans);
  font-size: 1rem;
  font-weight: 600;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.15s, box-shadow 0.15s, background-color 0.15s, opacity 0.15s;
}

.btn:focus-visible {
  outline: 2px solid var(--yellow);
  outline-offset: 3px;
}

.btn--primary {
  background: var(--yellow);
  color: #0c0a1a;
  box-shadow: var(--shadow-yellow);
}

.btn--primary:hover:not(:disabled) {
  background: #ffd633;
  color: #0c0a1a;
  transform: translateY(-1px);
}

.btn--telegram {
  background: var(--telegram);
  color: #fff;
  box-shadow: 0 8px 28px #2ca5e059;
}

.btn--telegram:hover {
  background: #3fb3ea;
  color: #fff;
  transform: translateY(-1px);
}

.btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  box-shadow: none;
}

.btn__icon {
  flex: none;
  width: 1.25rem;
  height: 1.25rem;
}

@media (min-width: 30rem) {
  .btn {
    width: auto;
    min-width: 16rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  * {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }
  .btn:hover {
    transform: none;
  }
}

/* ---------- states ---------- */

[hidden] {
  display: none !important;
}

.status {
  margin: 1rem 0 0;
  font-size: 0.875rem;
  min-height: 1.25rem;
}

.status--error {
  color: var(--rosso);
}

.steps {
  display: grid;
  gap: 0.625rem;
  margin: 1.5rem 0 0;
  padding: 0;
  list-style: none;
  color: var(--muted);
  font-size: 0.875rem;
  counter-reset: step;
}

.steps li {
  display: flex;
  gap: 0.625rem;
  align-items: baseline;
}

.steps li::before {
  counter-increment: step;
  content: counter(step);
  flex: none;
  display: inline-grid;
  place-items: center;
  width: 1.5rem;
  height: 1.5rem;
  border-radius: var(--radius-pill);
  background: #fdc40024;
  color: var(--yellow);
  font-family: var(--font-mono);
  font-size: 0.75rem;
}

.notice {
  display: flex;
  gap: 0.75rem;
  margin-top: 1.5rem;
  padding: 0.875rem 1rem;
  border: 1px solid #818cf866;
  border-radius: var(--radius-md);
  background: #3730a347;
  color: var(--crema);
  font-size: 0.8125rem;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}
