/* Coming-soon page. Builds on the kit's brand.css tokens, without its neon glow. */

:root {
  --cm-glow-pink: none;
  --cm-glow-purple: none;
  --line: rgb(244 240 255 / 0.14);
}

/* Same values as the kit's data-theme="light", but following the visitor's system setting. */
@media (prefers-color-scheme: light) {
  :root {
    --cm-pink: var(--cm-pink-deep);
    --cm-purple: var(--cm-purple-deep);
    --cm-bg: var(--cm-bg-light);
    --cm-surface: #FFFFFF;
    --cm-text: #1A1340;
    --cm-text-muted: #4A4370;
    --line: rgb(26 19 64 / 0.14);
    color-scheme: light;
  }
}

/* Both languages live in the markup; only the active one is displayed. */
html[lang="es"] body [lang="en"],
html[lang="en"] body [lang="es"] {
  display: none;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  -webkit-font-smoothing: antialiased;
}

.page {
  display: flex;
  flex-direction: column;
  width: min(100%, 1080px);
  min-height: 100vh;
  min-height: 100svh;
  margin: 0 auto;
  padding: clamp(24px, 4vw, 48px) clamp(20px, 5vw, 48px);
}

/* ---------- Header ---------- */
.top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

/* Logo built in CSS: live Outfit text plus a symbol painted with theme colours.
   Proportions come from the kit's lockup (tools/build.py), in ems of the wordmark size. */
.brand {
  display: inline-flex;
  flex: none;
  align-items: center;
  gap: 0.355em;
  /* 9.84em is the lockup's full width; 160px leaves room for page padding and the language switch. */
  font-size: min(35px, (100vw - 160px) / 9.84);
}

.cm-symbol {
  position: relative;
  flex: none;
  width: 1.126em;
  height: 1.306em;
}

.cm-symbol::before,
.cm-symbol::after {
  content: "";
  position: absolute;
  inset: 0;
  -webkit-mask: var(--shape) center / contain no-repeat;
  mask: var(--shape) center / contain no-repeat;
}

/* Cartridge outline and label lines: same geometry as svg/icon.svg */
.cm-symbol::before {
  --shape: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 116' fill='none' stroke='%23000' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath stroke-width='7' d='M14 4H76L94 22V104Q94 112 86 112H14Q6 112 6 104V12Q6 4 14 4Z'/%3E%3Cpath stroke-width='4' d='M22 18H62M36 96H64'/%3E%3C/svg%3E");
  background: var(--cm-pink);
}

/* Screen with the rising-price arrow cut out */
.cm-symbol::after {
  --shape: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 116'%3E%3Cmask id='m' maskUnits='userSpaceOnUse' x='0' y='0' width='100' height='116'%3E%3Crect width='100' height='116' fill='%23fff'/%3E%3Cpath fill='none' stroke='%23000' stroke-width='5' stroke-linecap='round' stroke-linejoin='round' d='M28 71L40 60L50 65L66 47M57 46H67V56'/%3E%3C/mask%3E%3Crect x='20' y='32' width='60' height='50' rx='6' mask='url(%23m)'/%3E%3C/svg%3E");
  background: var(--cm-purple);
}

.lang-switch { display: flex; flex: none; gap: 4px; }
.lang-switch[hidden] { display: none; }

.lang-switch button {
  min-width: 44px;
  min-height: 44px;
  padding: 0 8px;
  border: 0;
  border-radius: 8px;
  background: none;
  color: var(--cm-text-muted);
  font: 500 0.875rem/1 var(--cm-font);
  letter-spacing: 0.04em;
  cursor: pointer;
}
.lang-switch button:hover { color: var(--cm-text); }
.lang-switch button[aria-pressed="true"] {
  color: var(--cm-text);
  font-weight: 700;
  text-decoration: underline;
  text-decoration-color: var(--cm-pink);
  text-decoration-thickness: 2px;
  text-underline-offset: 6px;
}
.lang-switch button:focus-visible {
  outline: 2px solid var(--cm-purple);
  outline-offset: 2px;
}

/* ---------- Main ---------- */
.hero {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-block: clamp(48px, 9vh, 96px);
}

.status {
  margin: 0 0 16px;
  color: var(--cm-pink);
  font-size: clamp(1.5rem, 3.25vw, 2.25rem);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: var(--cm-tracking-tight);
}

h1 {
  max-width: 16em;
  margin: 0;
  font-size: clamp(2.5rem, 7vw, 4.75rem);
  font-weight: 700;
  line-height: 1.04;
  letter-spacing: var(--cm-tracking-tight);
  text-wrap: balance;
}

.lead {
  margin: 28px 0 0;
  text-align: justify;
  color: var(--cm-text-muted);
  font-size: clamp(1.0625rem, 2vw, 1.25rem);
  line-height: 1.55;
}

.lead a.cm-wordmark { text-decoration: none; }
.lead a.cm-wordmark:focus-visible {
  outline: 2px solid var(--cm-purple);
  outline-offset: 2px;
  border-radius: 2px;
}

.points {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(24px, 4vw, 48px);
  margin: clamp(48px, 8vh, 80px) 0 0;
  padding: 0;
  list-style: none;
}

.points li {
  padding-top: 20px;
  border-top: 1px solid var(--line);
}

.points h2 {
  margin: 0 0 8px;
  font-size: 1.0625rem;
  font-weight: 600;
}

.points p {
  margin: 0;
  color: var(--cm-text-muted);
  font-size: 0.9375rem;
  line-height: 1.55;
}

/* ---------- Footer ---------- */
.bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 4px 24px;
  color: var(--cm-text-muted);
  font-size: 0.875rem;
}

/* ---------- Small screens ---------- */
@media (max-width: 760px) {
  .points { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .lead { hyphens: auto; } /* short lines need it to keep word gaps even when justified */
}
