/* The waitlist page. Paca's design system from the canvas (https://claude.ai/artifact/8RasH3Df6j5WZbLhb5p8cW):
   the perfect-day sky, ink, glass and one coral accent; Bricolage Grotesque for titles and Paca's
   lines, Figtree for text (LAV-49), and Phosphor's bold icons. The values are the app's, from
   design/tokens.json (colours, the «sunny» sky, the type styles and the radii): change them there
   first, then here. */

@font-face {
  font-family: "Bricolage Grotesque";
  src: url("/fonts/bricolage-grotesque.woff2") format("woff2");
  font-weight: 400 800;
  font-style: normal;
  font-display: swap;
}

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

:root {
  color-scheme: light dark;

  /* Sky «Día perfecto», day */
  --sky-top: #4aa9ee;
  --sky-middle: #8fd0fa;
  --sky-ground: #d6f0ff;
  --sun: radial-gradient(circle at calc(100% + 40px) -50px, rgba(255, 250, 215, 0.9) 0 52px, rgba(255, 236, 160, 0.45) 105px, rgba(255, 236, 160, 0) 190px);

  --ink: #1d2330;
  --muted: #5b6472;
  --accent: #e8674a;
  --accent-ink: #b4432c;
  --accent-soft: rgba(232, 103, 74, 0.13);

  --glass: rgba(255, 255, 255, 0.62);
  --glass-line: rgba(255, 255, 255, 0.75);
  --sheet: rgba(255, 255, 255, 0.8);
  --bubble: rgba(255, 255, 255, 0.85);
  --bubble-line: rgba(255, 255, 255, 0.9);
  --well: rgba(29, 35, 48, 0.05);
  --secondary: rgba(29, 35, 48, 0.07);
  --surface: #ffffff;
  --field: rgba(255, 255, 255, 0.92);
  --field-line: rgba(29, 35, 48, 0.16);
  --shadow: 0 12px 32px rgba(29, 35, 48, 0.1);

  --primary: #1d2330;
  --on-primary: #ffffff;

  --radius-sheet: 34px;
  --radius-card: 22px;
  --radius-row: 18px;
  --radius-pill: 999px;

  --display: "Bricolage Grotesque", "Figtree", system-ui, sans-serif;
  --text: "Figtree", system-ui, sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root {
    /* Sky «Día perfecto», dark mode */
    --sky-top: #0d2747;
    --sky-middle: #1a4272;
    --sky-ground: #2e6399;
    --sun: radial-gradient(circle at calc(100% + 40px) -50px, rgba(214, 240, 255, 0.16) 0 52px, rgba(214, 240, 255, 0) 170px);

    --ink: #eef1f6;
    --muted: #a5aebb;
    --accent: #f07a5e;
    --accent-ink: #f49a82;
    --accent-soft: rgba(240, 122, 94, 0.18);

    --glass: rgba(20, 24, 33, 0.55);
    --glass-line: rgba(255, 255, 255, 0.14);
    --sheet: rgba(15, 19, 27, 0.8);
    --bubble: rgba(20, 24, 33, 0.72);
    --bubble-line: rgba(255, 255, 255, 0.14);
    --well: rgba(255, 255, 255, 0.08);
    --secondary: rgba(255, 255, 255, 0.1);
    --surface: #181d27;
    --field: rgba(15, 19, 27, 0.6);
    --field-line: rgba(255, 255, 255, 0.2);
    --shadow: 0 12px 32px rgba(0, 0, 0, 0.35);

    --primary: #eef1f6;
    --on-primary: #0f131b;
  }
}

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  font-family: var(--text);
  font-size: 17px;
  line-height: 1.45;
  color: var(--ink);
  background:
    var(--sun),
    linear-gradient(180deg, var(--sky-top) 0, var(--sky-middle) 400px, var(--sky-ground) 760px) no-repeat,
    var(--sky-ground);
}

a {
  color: inherit;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

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

.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;
}

.page {
  flex: 1;
  width: 100%;
  max-width: 460px;
  margin: 0 auto;
  padding: max(12px, env(safe-area-inset-top)) max(20px, env(safe-area-inset-right)) 8px max(20px, env(safe-area-inset-left));
  display: flex;
  flex-direction: column;
  gap: 24px;
}

/* Paca and the title */

.hero-paca {
  display: flex;
  align-items: center;
  gap: 2px;
  margin-left: -12px;
}

.paca {
  width: min(50vw, 210px);
  aspect-ratio: 1;
  flex: none;
}

.bob {
  animation: bob 3.6s ease-in-out infinite;
  transform-origin: 50% 100%;
}

@keyframes bob {
  0%,
  100% {
    transform: translateY(0) rotate(0);
  }
  50% {
    transform: translateY(-6px) rotate(-1.5deg);
  }
}

.bubble {
  margin: 0;
  padding: 10px 14px;
  border-radius: var(--radius-row) var(--radius-row) var(--radius-row) 4px;
  background: var(--bubble);
  border: 1px solid var(--bubble-line);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  font-family: var(--display);
  font-size: 19px;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.01em;
  text-wrap: pretty;
}

h1,
h2 {
  margin: 0;
  font-family: var(--display);
  font-weight: 700;
  letter-spacing: -0.01em;
  text-wrap: balance;
}

.title {
  display: block;
  font-size: clamp(38px, 11vw, 50px);
  line-height: 1.02;
  letter-spacing: -0.02em;
}

.subtitle {
  display: block;
  margin-top: 4px;
  font-size: 28px;
  font-weight: 600;
  line-height: 1.15;
  color: var(--accent-ink);
}

.hero h1 {
  margin-top: 6px;
}

.pitch {
  margin: 12px 0 0;
  font-size: 18px;
  text-wrap: pretty;
}

/* Cards: liquid glass on the sky */

.card {
  scroll-margin-top: 12px;
  padding: 20px;
  border-radius: var(--radius-card);
  background: var(--sheet);
  border: 1px solid var(--glass-line);
  -webkit-backdrop-filter: blur(24px);
  backdrop-filter: blur(24px);
  box-shadow: var(--shadow);
}

/* The form */

.signup {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.field {
  margin: 0;
  padding: 0;
  border: 0;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.field > label,
.field > legend {
  padding: 0;
  font-size: 15px;
  font-weight: 700;
}

.field > legend {
  margin-bottom: 8px;
}

input[type="email"] {
  width: 100%;
  height: 52px;
  padding: 0 16px;
  border-radius: 16px;
  border: 1px solid var(--field-line);
  background: var(--field);
  color: var(--ink);
  font: 500 17px/1.2 var(--text);
}

input[type="email"]::placeholder {
  color: var(--muted);
  opacity: 1;
}

input[aria-invalid="true"] {
  border-color: var(--accent-ink);
  box-shadow: 0 0 0 1px var(--accent-ink);
}

.segmented {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px;
  padding: 4px;
  border-radius: var(--radius-pill);
  background: var(--well);
}

.segmented label {
  position: relative;
  display: flex;
  min-height: 44px;
  cursor: pointer;
}

.segmented input {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  opacity: 0;
  cursor: pointer;
}

.segmented span {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-pill);
  font-weight: 700;
  font-size: 16px;
  transition: background-color 0.15s ease, box-shadow 0.15s ease;
}

.segmented input:checked + span {
  background: var(--surface);
  box-shadow: 0 1px 4px rgba(29, 35, 48, 0.18);
}

.segmented input:focus-visible + span {
  outline: 2px solid var(--ink);
  outline-offset: 2px;
}

.consent {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.consent input {
  flex: none;
  width: 24px;
  height: 24px;
  margin: 1px 0 0;
  accent-color: var(--accent);
}

.consent label {
  font-size: 15px;
  line-height: 1.45;
  color: var(--muted);
}

.consent a,
.footer a {
  color: var(--accent-ink);
  font-weight: 700;
  text-underline-offset: 2px;
}

.field-error,
.form-alert {
  margin: 0;
  font-size: 14px;
  font-weight: 700;
  color: var(--accent-ink);
}

.form-alert {
  padding: 10px 14px;
  border-radius: 14px;
  background: var(--accent-soft);
}

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

.icon {
  flex: none;
  width: 1.1em;
  height: 1.1em;
  fill: currentColor;
}

.button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  min-height: 52px;
  padding: 0 20px;
  border: 0;
  border-radius: var(--radius-pill);
  background: var(--primary);
  color: var(--on-primary);
  font: 700 17px/1.1 var(--text);
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.1s ease;
}

.button:active {
  transform: scale(0.98);
}

.button[hidden] {
  display: none;
}

.button-secondary {
  background: var(--secondary);
  color: var(--ink);
}

.small-print {
  margin: -6px 0 0;
  font-size: 13.5px;
  text-align: center;
  color: var(--muted);
}

/* What Paca looks at */

.moods h2 {
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 10px;
}

.moods ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.mood {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  padding: 8px 4px 10px;
  border-radius: var(--radius-row);
  background: var(--glass);
  border: 1px solid var(--glass-line);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
}

.mood img {
  width: 84px;
}

.mood span {
  font-size: 14px;
  font-weight: 700;
}

/* Thanks and share */

.thanks-hero .paca {
  width: min(46vw, 190px);
}

.bubble-title {
  font-size: 22px;
  line-height: 1.2;
}

.share-card {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.share-card h2 {
  font-size: 22px;
  font-weight: 600;
  line-height: 1.2;
}

.share-card p {
  margin: 0;
}

.share-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 10px;
}

.share-status {
  margin: 0;
  text-align: center;
  font-size: 14px;
  font-weight: 700;
  color: var(--muted);
}

/* The privacy page */

.legal {
  padding: 24px 22px 26px;
}

.legal .back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 44px;
  margin: -12px 0 2px;
  font-family: var(--display);
  font-weight: 600;
  color: var(--accent-ink);
  text-decoration: none;
}

.legal h1 {
  font-size: 34px;
  line-height: 1.1;
}

.legal h2 {
  margin: 24px 0 6px;
  font-size: 20px;
  font-weight: 600;
  line-height: 1.2;
}

.legal p,
.legal ul {
  margin: 0 0 10px;
  font-size: 17px;
  line-height: 1.55;
}

.legal ul {
  padding-left: 20px;
}

.legal li + li {
  margin-top: 4px;
}

.legal li::marker {
  color: var(--accent);
}

.legal a:not(.back, .button) {
  color: var(--accent-ink);
  font-weight: 700;
  text-underline-offset: 2px;
  overflow-wrap: anywhere;
}

.legal .lead {
  margin-top: 10px;
  font-size: 18px;
}

.legal h3 {
  margin: 18px 0 4px;
  font-family: var(--display);
  font-size: 18px;
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: -0.01em;
}

.legal section {
  scroll-margin-top: 12px;
}

/* The privacy page's two halves, the app and the waitlist, above their own headings. */
.legal section > h2 {
  margin-top: 32px;
  padding-top: 20px;
  border-top: 1px solid var(--field-line);
  font-size: 26px;
  font-weight: 700;
}

.legal-sections {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 14px 0 4px;
}

.legal .legal-sections a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 16px;
  border-radius: var(--radius-pill);
  background: var(--secondary);
  color: var(--ink);
  font-weight: 700;
  text-decoration: none;
}

.legal .button {
  margin: 16px 0 4px;
  color: var(--on-primary);
  text-decoration: none;
}

/* A detail Antonio doesn't have yet: marked so nobody takes it for the real one. */
.placeholder {
  padding: 0 4px;
  border-radius: 4px;
  background: var(--accent-soft);
  color: var(--accent-ink);
  font-weight: 700;
}

.legal-notice {
  margin-top: 28px;
  padding-top: 16px;
  border-top: 1px solid var(--field-line);
}

.legal .legal-notice h2 {
  margin: 0 0 4px;
  font-size: 15px;
  font-family: var(--text);
  font-weight: 700;
  letter-spacing: 0;
}

.legal .legal-notice p {
  margin: 0;
  font-size: 15px;
  color: var(--muted);
}

.legal .updated {
  margin: 24px 0 0;
  font-size: 14px;
  color: var(--muted);
}

/* Not found and errors */

.message {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding-top: 24px;
  text-align: center;
}

.message .paca {
  width: min(56vw, 220px);
}

.message-title {
  font-size: 30px;
  line-height: 1.15;
}

.message .button {
  margin-top: 12px;
}

/* Footer */

.footer {
  display: flex;
  justify-content: center;
  padding: 8px 20px max(20px, env(safe-area-inset-bottom));
  font-size: 15px;
}

.footer nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0 8px;
}

.footer a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 8px;
}

@media (prefers-reduced-motion: reduce) {
  .bob {
    animation: none;
  }

  .button,
  .segmented span {
    transition: none;
  }
}
