/* Toops landing — Wobbly Pieces palette (cream, coral, navy, mustard).
   No inline styles, so a strict CSP can apply. */

@font-face {
  font-family: "Nunito";
  src: url("/fonts/nunito-400.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Nunito";
  src: url("/fonts/nunito-700.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Fredoka";
  src: url("/fonts/fredoka-500.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Fredoka";
  src: url("/fonts/fredoka-650.woff2") format("woff2");
  font-weight: 650;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg: #f7f6f1;
  --bg-card: #fffcf8;
  --bg-band: #efe8dc;
  --ink: #2a3140;
  --muted: #5c6573;
  --coral: #b34a28;
  --coral-hover: #8f3a1e;
  --coral-soft: #f3e0d6;
  --mustard: #e2b45e;
  --navy: #3d5168;
  --line: #2a3140;
  --ok: #1b5e34;
  --err: #8a1a1a;
  --focus: #b34a28;
  --max: 72rem;
  --radius: 1.6rem 1.25rem 1.85rem 1.35rem;
  --shadow: 4px 5px 0 rgba(42, 49, 64, 0.16);
  --font-body: "Nunito", "Segoe UI", system-ui, -apple-system, sans-serif;
  --font-display: "Fredoka", "Nunito", "Segoe UI", system-ui, sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

html:focus-within {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  color: var(--ink);
  background-color: var(--bg);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='80' height='80' viewBox='0 0 80 80'%3E%3Cg fill='%232a3140' fill-opacity='0.03'%3E%3Ccircle cx='8' cy='14' r='1'/%3E%3Ccircle cx='52' cy='6' r='0.8'/%3E%3Ccircle cx='28' cy='48' r='1'/%3E%3Ccircle cx='70' cy='36' r='0.7'/%3E%3Ccircle cx='16' cy='70' r='0.8'/%3E%3Ccircle cx='60' cy='66' r='1'/%3E%3C/g%3E%3C/svg%3E");
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.55;
}

main {
  flex: 1 0 auto;
}

img,
svg {
  max-width: 100%;
  height: auto;
}

:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
}

.skip {
  position: absolute;
  left: 0.75rem;
  top: -100px;
  z-index: 20;
  background: var(--ink);
  color: #fff;
  padding: 0.5rem 0.85rem;
  border-radius: 0.6rem;
  text-decoration: none;
  font-weight: 700;
}

.skip:focus {
  top: 0.75rem;
}

.wrap {
  width: min(var(--max), calc(100% - 2rem));
  margin-inline: auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: color-mix(in srgb, var(--bg) 92%, white);
  border-bottom: 2px solid color-mix(in srgb, var(--ink) 12%, transparent);
  backdrop-filter: blur(8px);
}

.header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.7rem 0;
}


@media (max-width: 699px) {
  .header-row {
    display: grid;
    grid-template-columns: 1fr auto;
    grid-template-areas:
      "logo lang"
      "nav nav";
    align-items: center;
    row-gap: 0.45rem;
  }

  .logo { grid-area: logo; }

  .header-row .nav {
    grid-area: nav;
    justify-content: flex-start;
    width: 100%;
  }

  .lang { grid-area: lang; }

  .hero-art {
    width: min(100%, 19rem);
  }
}


.logo {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  color: inherit;
  text-decoration: none;
  font-family: var(--font-display);
  font-weight: 650;
  font-size: 1.45rem;
  letter-spacing: -0.02em;
}

.logo img,
.logo svg {
  width: 2rem;
  height: 2rem;
}

.nav {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.35rem 0.85rem;
}

.nav a {
  color: var(--ink);
  text-decoration: none;
  font-weight: 700;
  font-size: 0.95rem;
}

.nav a:hover {
  color: var(--coral);
  text-decoration: underline;
  text-underline-offset: 0.2em;
}

.lang {
  display: inline-flex;
  align-items: center;
  border: 2px solid var(--ink);
  border-radius: 999px;
  overflow: hidden;
  background: var(--bg-card);
}

.lang a {
  display: inline-block;
  padding: 0.2rem 0.65rem;
  font-weight: 700;
  font-size: 0.8rem;
  letter-spacing: 0.04em;
  text-decoration: none;
  color: var(--ink);
}

.lang a:hover {
  background: var(--coral-soft);
}

.lang [aria-current="true"] {
  background: var(--ink);
  color: #fff;
}

.hero {
  padding: 2.5rem 0 2.75rem;
}

.hero-grid {
  display: grid;
  gap: 2rem;
  align-items: center;
}

@media (min-width: 768px) {
  .hero-grid {
    grid-template-columns: 1.1fr 0.9fr;
    gap: 2.5rem;
  }
}

.eyebrow {
  margin: 0 0 0.4rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.78rem;
  color: var(--coral);
}

.hero h1,
.page-hero h1,
.section-title {
  font-family: var(--font-display);
  font-weight: 650;
  letter-spacing: -0.03em;
  line-height: 1.15;
  margin: 0 0 0.75rem;
}

.hero h1 {
  font-size: clamp(2rem, 6vw, 3.35rem);
}

.tagline-official {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(1.2rem, 3vw, 1.55rem);
  margin: 0 0 0.35rem;
  color: var(--navy);
}

.tagline-translated {
  margin: 0 0 1rem;
  color: var(--muted);
  font-size: 1rem;
}

.lede {
  margin: 0 0 1.4rem;
  color: var(--ink);
  max-width: 38rem;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  min-height: 2.85rem;
  padding: 0.6rem 1.15rem;
  border-radius: 999px;
  border: 2px solid var(--ink);
  font-family: inherit;
  font-weight: 700;
  font-size: 1rem;
  text-decoration: none;
  cursor: pointer;
  box-shadow: var(--shadow);
}

.btn:active {
  transform: translate(1px, 1px);
  box-shadow: 2px 2px 0 rgba(42, 49, 64, 0.16);
}

.btn-primary {
  background: var(--coral);
  color: #fff;
  border-color: var(--coral-hover);
}

.btn-primary:hover {
  background: var(--coral-hover);
}

.btn-ghost {
  background: var(--bg-card);
  color: var(--ink);
}

.btn-ghost:hover {
  background: var(--coral-soft);
}

.hero-art {
  display: block;
  width: min(100%, 28rem);
  margin-inline: auto;
}

.band {
  background: var(--bg-band);
  border-block: 2px solid color-mix(in srgb, var(--ink) 10%, transparent);
  padding: 3rem 0;
}

.plain {
  padding: 3rem 0 3.5rem;
}

.section-title {
  font-size: clamp(1.6rem, 4vw, 2.2rem);
}

.section-intro {
  margin: 0 0 1.5rem;
  max-width: 42rem;
  color: var(--ink);
}

.plans {
  display: grid;
  gap: 1rem;
}

@media (min-width: 1024px) {
  .plans {
    grid-template-columns: repeat(3, 1fr);
    align-items: stretch;
  }
}

.plan {
  background: var(--bg-card);
  border: 2px solid var(--ink);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1.25rem 1.25rem 1.4rem;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.plan h3 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 650;
  font-size: 1.45rem;
}

.price {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 650;
  font-size: 2.1rem;
  letter-spacing: -0.03em;
}

.price-period {
  font-size: 1.05rem;
  font-weight: 500;
  letter-spacing: 0;
}

.price-note {
  margin: 0 0 0.5rem;
  color: var(--muted);
  font-size: 0.92rem;
}

.plan ul {
  margin: 0.4rem 0 0;
  padding: 0 0 0 1.15rem;
}

.plan li {
  margin: 0.35rem 0;
}

.fineprint {
  margin: 1.25rem 0 0;
  color: var(--muted);
  font-size: 0.95rem;
  max-width: 46rem;
}

.waitlist-card {
  background: var(--bg-card);
  border: 2px solid var(--ink);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1.25rem;
  max-width: 32rem;
}

.waitlist-card label {
  display: block;
  font-weight: 700;
  margin-bottom: 0.35rem;
}

.waitlist-card input[type="email"] {
  width: 100%;
  min-height: 2.85rem;
  padding: 0.55rem 0.8rem;
  border: 2px solid var(--ink);
  border-radius: 0.9rem;
  background: #fff;
  color: var(--ink);
  font: inherit;
}

.waitlist-card input[type="email"]:user-invalid {
  border-color: var(--err);
}

.form-row {
  display: grid;
  gap: 0.8rem;
}

@media (min-width: 768px) {
  .form-row {
    grid-template-columns: 1fr auto;
    align-items: end;
  }

  .form-field {
    min-width: 0;
  }
}

.form-status {
  margin: 0.85rem 0 0;
  min-height: 1.4em;
  font-weight: 700;
}

.form-status.is-ok {
  color: var(--ok);
}

.form-status.is-err {
  color: var(--err);
}

.form-note {
  margin: 0.85rem 0 0;
  color: var(--muted);
  font-size: 0.92rem;
}

code,
.mono {
  font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  font-size: 0.88em;
  background: var(--coral-soft);
  padding: 0.05em 0.35em;
  border-radius: 0.3em;
}

.site-footer {
  background: var(--navy);
  color: #f7f6f1;
  padding: 2rem 0;
  margin-top: auto;
}

.site-footer p {
  margin: 0 0 0.4rem;
}

.legal-en,
.legal-es {
  margin: 0;
}

.legal-es {
  opacity: 0.9;
}

.footer-contact {
  margin-top: 0.85rem;
}

.footer-contact a {
  text-decoration: underline;
  text-underline-offset: 0.15em;
}

.footer-contact a:hover {
  color: #f3e0d6;
}

.site-footer a {
  color: #fff;
}

/* 404 */
.page-hero {
  padding: 4rem 0 5rem;
  text-align: center;
}

.page-hero p {
  margin: 0 0 1.4rem;
  color: var(--muted);
}

@media (max-width: 359px) {
  .wrap {
    width: calc(100% - 1.25rem);
  }

  .hero h1 {
    font-size: 1.75rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  html,
  html:focus-within {
    scroll-behavior: auto;
  }

  .btn:active {
    transform: none;
  }
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Footer links, honeypot, legal pages */
.footer-links {
  margin-top: 0.6rem;
}

.footer-links a {
  text-decoration: underline;
  text-underline-offset: 0.15em;
}

.hp {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.legal-page {
  padding: 3rem 0 4rem;
}

.legal-page .wrap {
  max-width: 46rem;
}

.legal-page h1 {
  font-family: var(--font-display);
  font-weight: 650;
  letter-spacing: -0.03em;
  line-height: 1.15;
  margin: 0 0 0.5rem;
  font-size: clamp(1.9rem, 5vw, 2.6rem);
}

.legal-page h2 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 1.3rem;
  margin: 2rem 0 0.5rem;
}

.legal-page p,
.legal-page li {
  line-height: 1.65;
}

.legal-page ul {
  padding-left: 1.25rem;
}

.legal-page a {
  text-decoration: underline;
  text-underline-offset: 0.15em;
}

.legal-updated {
  color: var(--muted);
  margin: 0 0 1.5rem;
}
