/* Tiendaroo · coming soon */

@font-face { font-family: "Nunito"; font-weight: 800; font-display: swap; src: url("/assets/fonts/nunito-latin-800-normal.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Nunito"; font-weight: 800; font-display: swap; src: url("/assets/fonts/nunito-latin-ext-800-normal.woff2") format("woff2"); unicode-range: U+0100-02AF, U+0304, U+0308, U+0329, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Nunito"; font-weight: 900; font-display: swap; src: url("/assets/fonts/nunito-latin-900-normal.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Nunito"; font-weight: 900; font-display: swap; src: url("/assets/fonts/nunito-latin-ext-900-normal.woff2") format("woff2"); unicode-range: U+0100-02AF, U+0304, U+0308, U+0329, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Nunito Sans"; font-weight: 400; font-display: swap; src: url("/assets/fonts/nunito-sans-latin-400-normal.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Nunito Sans"; font-weight: 400; font-display: swap; src: url("/assets/fonts/nunito-sans-latin-ext-400-normal.woff2") format("woff2"); unicode-range: U+0100-02AF, U+0304, U+0308, U+0329, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Nunito Sans"; font-weight: 700; font-display: swap; src: url("/assets/fonts/nunito-sans-latin-700-normal.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

:root {
  --navy: #1B2F57;
  --navy-soft: #45557A;
  --orange: #E9883A;
  --orange-deep: #D9762A;
  --teal: #2E9C9F;
  --sand: #EBDCC5;
  --paper: #FBF7F1;
  --white: #FFFFFF;
  --danger: #B3261E;

  --head: "Nunito", ui-rounded, "Segoe UI", system-ui, sans-serif;
  --body: "Nunito Sans", "Segoe UI", system-ui, -apple-system, sans-serif;

  --max: 1180px;
  --gutter: clamp(20px, 5vw, 56px);
  --line: 2px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  background: var(--paper);
  color: var(--navy);
  font: 400 1.0625rem/1.6 var(--body);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg { display: block; max-width: 100%; }
button, input { font: inherit; color: inherit; }
main { flex: 1; display: flex; flex-direction: column; }

/* Hide copy for one frame while Spanish is swapped in */
html[lang="es"]:not(.i18n-ready) [data-i18n],
html[lang="es"]:not(.i18n-ready) [data-i18n-html],
html[lang="es"]:not(.i18n-ready) #form-note { visibility: hidden; }

.wrap { width: 100%; max-width: var(--max); margin-inline: auto; padding-inline: var(--gutter); }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 10; padding: 10px 16px; background: var(--navy); color: var(--white); border-radius: 10px; font-weight: 700; text-decoration: none; }
.skip:focus { top: 12px; }
:focus-visible { outline: 3px solid var(--teal); outline-offset: 3px; }

/* ── Top bar ─────────────────────────────── */
.top { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding-block: clamp(12px, 2vw, 24px) clamp(4px, 1vw, 12px); }
.brand { display: block; border-radius: 6px; margin-left: -6px; }
.brand img { width: auto; height: clamp(72px, 9vw, 116px); }

.lang { display: inline-flex; padding: 3px; border: var(--line) solid var(--navy); border-radius: 999px; background: var(--white); }
.lang button {
  appearance: none; border: 0; cursor: pointer;
  min-width: 44px; padding: 5px 12px;
  border-radius: 999px; background: transparent;
  font: 800 0.8125rem/1.2 var(--head); letter-spacing: 0.06em;
  transition: background-color .2s ease, color .2s ease;
}
.lang button[aria-pressed="true"] { background: var(--navy); color: var(--white); }
.lang button[aria-pressed="false"]:hover { background: var(--sand); }

/* ── Hero ─────────────────────────────────── */
.hero {
  flex: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(0, 0.88fr);
  align-items: end;
  column-gap: clamp(32px, 6vw, 96px);
  padding-top: clamp(16px, 4vw, 56px);
}
.copy { align-self: center; padding-bottom: clamp(48px, 7vw, 96px); max-width: 640px; }
h1 .nw { white-space: nowrap; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  margin: 0 0 22px;
  font: 800 0.8125rem/1.2 var(--head); letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--navy-soft);
}
.eyebrow .star { width: 16px; height: 16px; fill: var(--orange); stroke: var(--navy); stroke-width: 1.6; stroke-linejoin: round; }

h1 {
  margin: 0;
  font: 900 clamp(2.6rem, 6vw, 5.1rem)/0.98 var(--head);
  letter-spacing: -0.03em;
  text-wrap: balance;
}
h1 .mark { position: relative; display: inline-block; white-space: nowrap; isolation: isolate; }
h1 .mark svg {
  position: absolute; left: -2%; bottom: -0.16em; width: 104%; height: 0.28em;
  overflow: visible; fill: none; stroke: var(--orange); stroke-width: 9; stroke-linecap: round;
  stroke-dasharray: 320; stroke-dashoffset: 320;
  animation: draw .9s cubic-bezier(.65,.05,.36,1) .35s forwards;
  z-index: -1;
}
@keyframes draw { to { stroke-dashoffset: 0; } }

.lede { margin: 30px 0 0; max-width: 33em; font-size: clamp(1.0625rem, 1.35vw, 1.1875rem); color: var(--navy-soft); text-wrap: pretty; }

/* ── Signup ───────────────────────────────── */
.signup { margin-top: 34px; max-width: 500px; }
.field {
  display: flex; align-items: stretch;
  padding: 5px;
  background: var(--white);
  border: var(--line) solid var(--navy);
  border-radius: 999px;
  box-shadow: 0 4px 0 var(--navy);
  transition: box-shadow .2s ease, transform .2s ease;
}
.field:focus-within { box-shadow: 0 4px 0 var(--navy), 0 0 0 5px rgba(46, 156, 159, .28); }
.field input {
  flex: 1; min-width: 0;
  padding: 0 8px 0 18px;
  border: 0; background: transparent; outline: none;
  font-size: 1.0625rem;
}
.field input::placeholder { color: #8A93A8; }
.field button {
  flex: none; display: inline-flex; align-items: center; gap: 8px;
  padding: 13px 22px;
  border: 0; border-radius: 999px; cursor: pointer;
  background: var(--orange); color: var(--navy);
  font: 800 1rem/1 var(--head);
  transition: background-color .2s ease;
}
.field button svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; transition: transform .2s ease; }
.field button:hover { background: var(--orange-deep); }
.field button:hover svg { transform: translateX(3px); }
.field button:focus-visible { outline-offset: 2px; }
.field button[disabled] { cursor: progress; opacity: .75; }

.note { margin: 14px 0 0 20px; font-size: 0.9375rem; color: var(--navy-soft); min-height: 1.6em; }
.note[data-state="error"] { color: var(--danger); font-weight: 700; }
.signup.is-error .field { border-color: var(--danger); box-shadow: 0 4px 0 var(--danger); }

.signup.is-done .field { display: none; }
.note[data-state="done"] {
  margin-left: 0;
  display: flex; align-items: center; gap: 12px;
  padding: 14px 18px;
  background: var(--white);
  border: var(--line) solid var(--navy);
  border-radius: 18px;
  box-shadow: 0 4px 0 var(--navy);
  color: var(--navy); font-weight: 700;
}
.note[data-state="done"]::before {
  content: ""; flex: none; width: 26px; height: 26px; border-radius: 50%;
  background: var(--teal) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12.5l4 4 8-9'/%3E%3C/svg%3E") center/16px no-repeat;
}

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

/* ── Art: Roo in the doorway ──────────────── */
.art { position: relative; justify-self: center; width: min(100%, 460px); aspect-ratio: 46 / 56; }
.arch {
  position: absolute; left: 9%; right: 9%; top: 11%; bottom: 0;
  background: var(--teal);
  border-radius: 9999px 9999px 0 0;
}
.arch::after { /* the floor inside the doorway */
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 13%;
  background: var(--sand);
}
.art picture { position: absolute; left: 0; right: 0; bottom: -1px; display: flex; justify-content: center; }
.roo {
  width: 92%; height: auto;
  transform-origin: 50% 100%;
  animation: hop .8s cubic-bezier(.3,1.4,.5,1) .1s both;
}
@keyframes hop { from { transform: translateY(14px) scale(.97); opacity: 0; } to { transform: none; opacity: 1; } }

.stamp {
  position: absolute; z-index: 2; left: -5%; top: 31%;
  width: clamp(92px, 11vw, 128px);
  transform: rotate(-14deg);
}
.stamp-bg { fill: var(--paper); stroke: var(--navy); stroke-width: 3; }
.stamp-inner { fill: var(--sand); stroke: var(--navy); stroke-width: 2; stroke-dasharray: 3 5; }
.stamp-text { font: 900 13.5px var(--head); letter-spacing: .5px; fill: var(--navy); }
.stamp-star { fill: var(--orange); stroke: var(--navy); stroke-width: 2.5; stroke-linejoin: round; }
.stamp text { transform-origin: 70px 70px; animation: spin 40s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ── Promises: the ground Roo stands on ───── */
.promises { border-top: var(--line) solid var(--navy); background: var(--paper); position: relative; z-index: 1; }
.promises ul {
  list-style: none; margin-block: 0;
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(24px, 4vw, 56px);
  padding-block: clamp(32px, 4vw, 48px);
}
.promises svg { width: 30px; height: 30px; margin-bottom: 12px; fill: none; stroke: var(--navy); stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
.promises li:nth-child(1) svg path { fill: var(--sand); }
.promises li:nth-child(2) svg path:first-child { fill: var(--sand); }
.promises li:nth-child(3) svg path:first-child { fill: var(--sand); }
.promises li:nth-child(3) svg path:last-child { fill: var(--paper); }
.promises h2 { margin: 0 0 4px; font: 800 1.125rem/1.3 var(--head); }
.promises p { margin: 0; font-size: 0.96875rem; color: var(--navy-soft); max-width: 30ch; }

/* ── Footer ───────────────────────────────── */
.foot {
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  padding-block: 20px 28px;
  border-top: 1px solid rgba(27, 47, 87, .14);
  font-size: 0.875rem; color: var(--navy-soft);
}
.foot p { margin: 0; }
.foot .tagline { font-family: var(--head); font-weight: 800; color: var(--navy); }

/* ── Responsive ───────────────────────────── */
@media (max-width: 860px) {
  .hero { flex: none; grid-template-columns: 1fr; padding-top: 8px; }
  .copy { padding-bottom: 28px; max-width: none; }
  .art { width: min(78%, 340px); margin-top: 8px; }
  .promises ul { grid-template-columns: 1fr; gap: 22px; }
  .promises li { display: grid; grid-template-columns: 30px 1fr; column-gap: 16px; }
  .promises li svg { grid-row: span 2; margin: 2px 0 0; }
  .promises p { max-width: none; }
}
@media (max-width: 480px) {
  .lede { margin-top: 22px; }
  .signup { margin-top: 26px; }
  .field { flex-direction: column; border-radius: 22px; gap: 6px; }
  .field input { padding: 12px 14px; }
  .field button { justify-content: center; padding: 15px 22px; border-radius: 16px; }
  .note { margin-left: 4px; }
  .foot { flex-direction: column; gap: 4px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  h1 .mark svg { stroke-dashoffset: 0; }
  .stamp text { animation: none; }
}
