@font-face { font-family: "Sora"; font-weight: 600; font-display: swap; src: url("assets/fonts/sora-600.woff2") format("woff2"); }
@font-face { font-family: "Sora"; font-weight: 700; font-display: swap; src: url("assets/fonts/sora-700.woff2") format("woff2"); }
@font-face { font-family: "Figtree"; font-weight: 400; font-display: swap; src: url("assets/fonts/figtree-400.woff2") format("woff2"); }
@font-face { font-family: "Figtree"; font-weight: 500; font-display: swap; src: url("assets/fonts/figtree-500.woff2") format("woff2"); }
@font-face { font-family: "Figtree"; font-weight: 600; font-display: swap; src: url("assets/fonts/figtree-600.woff2") format("woff2"); }
@font-face { font-family: "Caveat"; font-weight: 500; font-display: swap; src: url("assets/fonts/caveat-500.woff2") format("woff2"); }
@font-face { font-family: "Caveat"; font-weight: 700; font-display: swap; src: url("assets/fonts/caveat-700.woff2") format("woff2"); }

:root {
  --teal: #075e61;
  --ink: #0f2a2e;
  --mic: #0da0a2;
  --sky: #5cc8f5;
  --mist: #f3fafb;
  --mint: #ddf4f3;
  --peach: #fde8dc;
  --white: #ffffff;
  --muted: #3d5a5e;
  --line: #cfe2e4;
  --error: #b3261e;
  --marker-blue: #24438a;
  --marker-red: #c0392b;

  --display: "Sora", "Segoe UI", system-ui, sans-serif;
  --body: "Figtree", "Segoe UI", system-ui, sans-serif;
  --hand: "Caveat", "Comic Sans MS", cursive;

  --step--1: 0.875rem;
  --step-0: 1.125rem;
  --step-1: 1.375rem;
  --step-2: clamp(1.75rem, 1.3rem + 1.6vw, 2.5rem);
  --step-3: clamp(2.25rem, 1.5rem + 3.2vw, 4rem);

  --gutter: clamp(1rem, 4vw, 2.5rem);
  --section: clamp(3.5rem, 7vw, 6.5rem);
  --radius: 14px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--mist);
  color: var(--ink);
  font-family: var(--body);
  font-size: var(--step-0);
  line-height: 1.55;
}
img, svg { display: block; max-width: 100%; }
h1, h2, h3 { font-family: var(--display); line-height: 1.12; letter-spacing: -0.02em; margin: 0; }
h2 { font-size: var(--step-2); font-weight: 700; color: var(--teal); max-width: 20em; }
h3 { font-size: var(--step-1); font-weight: 600; }
p { margin: 0; }
a { color: var(--teal); text-underline-offset: 0.18em; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; border-radius: 4px; }
.security :focus-visible { outline-color: var(--sky); }
.footer :focus-visible { outline-color: var(--white); }

.wrap { width: 100%; max-width: 72rem; margin: 0 auto; padding: 0 var(--gutter); }

.skip { position: absolute; left: -999px; top: 0; background: var(--ink); color: var(--white); padding: 0.75rem 1rem; z-index: 10; }
.skip:focus { left: 1rem; top: 1rem; }

.button {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px; padding: 0.75rem 1.5rem;
  border: 2px solid var(--sky); border-radius: 999px;
  background: var(--sky); color: var(--ink);
  font: 600 1rem/1.2 var(--body); text-decoration: none; cursor: pointer;
}
.button:hover { background: #79d3f8; border-color: #79d3f8; }
.button:focus-visible { outline-color: var(--ink); }
.button[disabled] { opacity: 0.6; cursor: progress; }
.button-outline { background: transparent; border-color: var(--teal); color: var(--teal); }
.button-outline:hover { background: var(--teal); border-color: var(--teal); color: var(--white); }

/* Top bar */
.topbar { padding: 1rem 0; }
.topbar-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.brand { display: flex; align-items: center; gap: 0.75rem; min-height: 44px; color: var(--teal); text-decoration: none; font: 600 1.2rem/1 var(--display); }
.brand img { width: 40px; height: 40px; border-radius: 10px; }

/* Hero */
.hero { padding: clamp(2rem, 5vw, 4rem) 0 var(--section); }
.hero-copy { max-width: 46rem; }
.hero h1 { font-size: var(--step-3); font-weight: 700; color: var(--teal); max-width: 13em; }
.lede { margin: 1.25rem 0 2rem; font-size: var(--step-1); line-height: 1.5; color: var(--muted); max-width: 34em; }

.compare { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(1.5rem, 4vw, 3.5rem); margin-top: clamp(2.5rem, 6vw, 4.5rem); align-items: start; }
.compare-item { margin: 0; }
.compare-item figcaption { margin-top: 1rem; font-size: 1rem; color: var(--muted); }
.compare-item figcaption strong { color: var(--ink); }

/* The tablero: a real whiteboard, aluminium frame, marker tray. */
.board {
  position: relative;
  background: linear-gradient(160deg, #ffffff 0%, #f6f8f8 60%, #eef2f2 100%);
  border: 12px solid #c9d1d3;
  border-image: linear-gradient(135deg, #e3e8e9, #b5bfc1 45%, #dfe5e6) 1;
  box-shadow: 0 18px 40px -24px rgba(15, 42, 46, 0.45);
  padding: 1.25rem 1.5rem 3.25rem;
  font-family: var(--hand);
  color: var(--marker-blue);
  transform: rotate(-0.6deg);
}
.board-title { font-size: 1.9rem; font-weight: 700; text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 6px; margin-bottom: 0.5rem; }
.board-notes { list-style: none; margin: 0; padding: 0; font-size: 1.75rem; font-weight: 500; line-height: 1.3; }
.board-notes .bed { font-weight: 700; margin-right: 0.35rem; }
.board-notes s { opacity: 0.45; text-decoration-thickness: 2px; }
.ink-red { color: var(--marker-red); font-weight: 700; }
.erased { color: transparent; text-shadow: 0 0 6px rgba(36, 67, 138, 0.45); transform: rotate(-1deg); }
.board-tray { position: absolute; left: 10%; right: 10%; bottom: -12px; height: 12px; background: #b5bfc1; border-radius: 0 0 4px 4px; }
.board-tray span { position: absolute; bottom: 8px; width: 64px; height: 12px; border-radius: 6px; background: var(--marker-blue); }
.board-tray span + span { left: 84px; background: var(--marker-red); }

/* PACI panel */
.paci-panel { background: var(--teal); color: var(--white); border-radius: 22px; padding: 1.25rem; box-shadow: 0 24px 48px -28px rgba(7, 94, 97, 0.8); }
.paci-head { display: flex; align-items: center; gap: 0.6rem; font: 600 1rem/1 var(--display); padding-bottom: 1rem; }
.paci-head img { width: 28px; height: 28px; border-radius: 8px; }
.wave { display: flex; align-items: center; gap: 3px; height: 20px; margin-left: auto; }
.wave i { width: 4px; height: 6px; border-radius: 2px; background: var(--sky); }
.wave i:nth-child(2) { height: 14px; }
.wave i:nth-child(3) { height: 20px; }
.wave i:nth-child(4) { height: 11px; }
.paci-log { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 0.6rem; font-size: 1rem; line-height: 1.45; }
.paci-log li { border-radius: 16px; padding: 0.7rem 0.95rem; max-width: 92%; }
.paci-log .who { display: block; font-size: 0.78rem; opacity: 0.92; margin-bottom: 0.15rem; }
.paci-log .said { align-self: flex-end; background: rgba(255, 255, 255, 0.13); border-bottom-right-radius: 4px; }
.paci-log .reply { background: var(--white); color: var(--ink); border-bottom-left-radius: 4px; }
.paci-log .saved { align-self: flex-start; background: var(--mint); color: var(--teal); font-weight: 600; font-size: 0.9rem; padding: 0.35rem 0.85rem; border-radius: 999px; }
.paci-log .saved::before { content: "✓ "; }
.paci-log .alert { background: var(--peach); color: #7a3418; }

/* The one orchestrated moment: the conversation plays out once on load. */
@media (prefers-reduced-motion: no-preference) {
  .paci-log li { animation: arrive 0.5s ease-out both; }
  .paci-log li:nth-child(1) { animation-delay: 0.5s; }
  .paci-log li:nth-child(2) { animation-delay: 1.4s; }
  .paci-log li:nth-child(3) { animation-delay: 2.5s; }
  .paci-log li:nth-child(4) { animation-delay: 3.2s; }
  .paci-log li:nth-child(5) { animation-delay: 4.1s; }
  .wave i { animation: listen 1.1s ease-in-out 5 alternate; }
  .wave i:nth-child(odd) { animation-delay: 0.3s; }
}
@keyframes arrive { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@keyframes listen { to { transform: scaleY(0.4); } }

/* Features */
.features { background: var(--white); padding: var(--section) 0; }
.feature-list { list-style: none; margin: 2.5rem 0 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2.5rem clamp(2rem, 5vw, 4.5rem); }
.feature-list li { display: grid; grid-template-columns: 56px 1fr; gap: 1.1rem; align-items: start; }
.feature-icon { width: 56px; height: 56px; border-radius: 16px; background: var(--mint); color: var(--teal); display: grid; place-items: center; }
.feature-icon svg { width: 28px; height: 28px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.feature-list h3 { margin-bottom: 0.35rem; }
.feature-list p { color: var(--muted); }
.feature-list .setup { margin-top: 0.5rem; padding-left: 0.75rem; border-left: 3px solid var(--mic); color: var(--teal); font-size: 1rem; }

/* Security */
.security { background: var(--ink); color: var(--white); padding: var(--section) 0; }
.security h2 { color: var(--white); }
.claims { margin: 2.5rem 0 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 clamp(2rem, 5vw, 4.5rem); }
.claims > div { border-top: 1px solid rgba(255, 255, 255, 0.16); padding: 1.4rem 0 1.6rem; }
.claims dt { font: 600 var(--step-1)/1.25 var(--display); color: var(--sky); margin-bottom: 0.5rem; }
.claims dd { margin: 0; color: #c9dadc; max-width: 32em; }
.security-more { margin-top: 2rem; font-size: var(--step-1); }
.security-more a { color: var(--sky); }

/* Limits */
.limits { background: var(--mint); padding: var(--section) 0; }
.limits-inner { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: 2rem clamp(2rem, 5vw, 4.5rem); align-items: start; }
.limit-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 1rem; }
.limit-list li { font: 600 var(--step-1)/1.35 var(--display); padding-left: 1.1rem; border-left: 4px solid var(--teal); }

/* Steps: a real sequence, so numbered. */
.steps { padding: var(--section) 0; }
.step-list { list-style: none; margin: 2.5rem 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2rem; counter-reset: step; }
.step-list li { counter-increment: step; border-top: 3px solid var(--mic); padding-top: 1rem; }
.step-list li::before { content: counter(step); display: block; font: 700 2.5rem/1 var(--display); color: var(--mic); margin-bottom: 0.75rem; }
.step-list h3 { margin-bottom: 0.35rem; }
.step-list p { color: var(--muted); }

/* Demo form */
.demo { background: var(--white); padding: var(--section) 0; }
.demo-lede { margin-top: 0.75rem; color: var(--muted); max-width: 36em; }
.demo-grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.75fr); gap: clamp(2rem, 5vw, 4rem); margin-top: 2.5rem; align-items: start; }
#demo-form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.25rem 1.25rem; }
.field { display: flex; flex-direction: column; gap: 0.4rem; }
.field-wide { grid-column: 1 / -1; }
.field label { font-weight: 600; font-size: 1rem; }
.optional { font-weight: 400; color: var(--muted); }
.field input[type="text"], .field input[type="email"], .field input[type="tel"], .field textarea {
  width: 100%; min-height: 48px; padding: 0.7rem 0.9rem;
  border: 1.5px solid var(--line); border-radius: 10px; background: var(--mist);
  font: 400 1rem/1.4 var(--body); color: var(--ink);
}
.field textarea { resize: vertical; min-height: 7rem; }
.field input:focus-visible, .field textarea:focus-visible { outline-offset: 0; border-color: var(--teal); }
.field [aria-invalid="true"] { border-color: var(--error); }
.field-error { color: var(--error); font-size: 0.9rem; min-height: 0; }
.field-error:empty { display: none; }
.consent { display: grid; grid-template-columns: 24px 1fr; gap: 0.75rem; align-items: start; }
.consent input { width: 24px; height: 24px; margin: 0.1rem 0 0; accent-color: var(--teal); }
.consent label { font-weight: 400; font-size: 0.95rem; color: var(--muted); }
.consent .field-error { grid-column: 2; }
.submit-row { display: flex; flex-direction: column; align-items: flex-start; gap: 0.75rem; }
.recaptcha-note { font-size: 0.8rem; color: var(--muted); max-width: 34em; }
.form-status:empty { display: none; }
.form-status { padding: 0.9rem 1rem; border-radius: 10px; background: var(--peach); color: #7a3418; font-size: 1rem; }
.form-done { padding: 1.5rem; border-radius: var(--radius); background: var(--mint); color: var(--teal); font: 600 var(--step-1)/1.35 var(--display); }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.grecaptcha-badge { visibility: hidden; }

.aviso { background: var(--mist); border-radius: var(--radius); padding: 1.5rem; font-size: 0.95rem; color: var(--muted); display: grid; gap: 0.75rem; }
.aviso h3 { font-size: 1.1rem; color: var(--ink); }
.direct { margin-top: 0.5rem; padding-top: 1rem; border-top: 1px solid var(--line); display: grid; gap: 0.25rem; }
.direct a, .footer a { display: inline-flex; align-items: center; min-height: 44px; }
.direct-title { font-weight: 600; color: var(--ink); }
.direct a { font-weight: 600; font-size: 1.05rem; }

/* Footer */
.footer { background: var(--teal); color: #d4ecec; padding: 2rem 0; font-size: 0.95rem; }
.footer-inner { display: flex; justify-content: space-between; align-items: flex-end; gap: 1.5rem; flex-wrap: wrap; }
.footer .tagline { font-family: var(--display); font-weight: 600; color: var(--white); margin-top: 0.25rem; }
.footer a { color: var(--white); }

@media (max-width: 860px) {
  .compare, .feature-list, .claims, .limits-inner, .step-list, .demo-grid { grid-template-columns: minmax(0, 1fr); }
  .board { transform: none; }
}
@media (max-width: 560px) {
  #demo-form { grid-template-columns: minmax(0, 1fr); }
  .topbar .button { padding: 0.6rem 1rem; font-size: 0.9rem; }
  .brand span { display: none; }
  .board { padding: 1rem 1.1rem 2.75rem; }
  .board-notes { font-size: 1.5rem; }
}
