@font-face {
  font-family: "Familjen Grotesk";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("/fonts/familjen-grotesk-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --color-paper: #fffbeb;
  --color-card: #fffef8;
  --color-ink: #1c1917;
  --color-ink-soft: #3d4f4a;
  --color-teal: #0f766e;
  --color-teal-deep: #115e59;
  --color-foam: #ccfbf1;
  --color-line: #e4d7b8;
  --color-accent: #f97316;
  --color-accent-deep: #ea580c;
  --color-accent-ink: #1c1917;
  --color-ember: #c2410c;
  --color-chat: #f4ecd4;
  --color-reply: #d7f3ee;
  --font: "Familjen Grotesk", ui-sans-serif, system-ui, sans-serif;
  color-scheme: light;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--color-paper);
  color: var(--color-ink);
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.55;
  text-wrap: pretty;
}

h1, h2, h3 { text-wrap: balance; }

::selection {
  background: var(--color-teal-deep);
  color: var(--color-paper);
}

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

.skip {
  position: absolute;
  left: 0.75rem;
  top: 0.75rem;
  transform: translateY(-150%);
  background: var(--color-paper);
  color: var(--color-ink);
  padding: 0.5rem 0.75rem;
  border: 2px solid var(--color-teal);
  z-index: 5;
}

.skip:focus { transform: none; }

.wrap {
  width: min(68rem, calc(100% - 2.5rem));
  margin-inline: auto;
}

.site-header {
  padding: 1rem 0;
  border-bottom: 1px solid var(--color-line);
}

.header-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  column-gap: 1.25rem;
  row-gap: 0.35rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  margin-right: auto;
  color: var(--color-teal-deep);
  font-weight: 700;
  font-size: 1.05rem;
  text-decoration: none;
}

.brand img { display: block; }

.site-header nav,
.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.15rem 1rem;
}

.site-header nav {
  flex: 1 1 100%;
  order: 3;
}

.site-header nav a,
.site-footer nav a {
  color: var(--color-teal-deep);
  font-weight: 700;
  text-decoration: none;
  text-underline-offset: 0.18em;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}

.site-header nav a:hover,
.site-footer nav a:hover,
.brand:hover {
  text-decoration: underline;
}

.enter {
  font-weight: 700;
  text-decoration: none;
  color: var(--color-teal-deep);
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}

.enter:hover { text-decoration: underline; }

.text-link,
.mail,
.legal a {
  text-decoration: underline;
  text-underline-offset: 0.18em;
}

main { padding-bottom: 3.5rem; }

/* Desktop: the copy and the later sections share the left column. The example
   spans both rows and sticks, so it does not stretch the hero and leave a gap. */
.story {
  padding-top: 2.25rem;
}

.hero-copy { max-width: 38rem; }

h1 {
  margin: 0;
  font-size: clamp(2.15rem, 5vw, 3.35rem);
  line-height: 1.12;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.lede {
  margin: 1rem 0 0;
  font-size: 1.15rem;
  max-width: 38rem;
  color: var(--color-ink);
}

.actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.85rem 1.25rem;
  margin-top: 1.5rem;
}

/* Orange is only the main action. Text stays near-black: white on #F97316 fails contrast. */
.cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0.65rem 1.15rem;
  background: var(--color-accent);
  color: var(--color-accent-ink);
  border: 2px solid var(--color-ember);
  border-radius: 6px;
  font: inherit;
  font-weight: 700;
  text-decoration: none;
}

.cta:hover { background: var(--color-accent-deep); }

.text-link {
  color: var(--color-teal-deep);
  font-weight: 700;
  text-underline-offset: 0.18em;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}

.audience {
  margin: 1.25rem 0 0;
  max-width: 38rem;
  color: var(--color-ink-soft);
}

section { margin-top: 4.25rem; }

section h2 {
  margin: 0 0 0.85rem;
  font-size: clamp(1.6rem, 3vw, 2rem);
  line-height: 1.2;
  font-weight: 700;
  letter-spacing: -0.015em;
}

.points,
.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  max-width: 40rem;
}

.points li {
  padding: 1.1rem 0;
  border-top: 1px solid var(--color-line);
}

.points li:last-child { border-bottom: 1px solid var(--color-line); }

.points h3,
.steps h3 {
  margin: 0 0 0.3rem;
  font-size: 1.25rem;
  line-height: 1.3;
  font-weight: 700;
}

.points p,
.steps p,
.price p,
.demo-note {
  margin: 0;
  max-width: 62ch;
  color: var(--color-ink-soft);
}

.steps li {
  display: grid;
  grid-template-columns: 1.75rem minmax(0, 1fr);
  column-gap: 0.75rem;
  row-gap: 0.3rem;
  padding: 0.95rem 0;
  border-top: 1px solid var(--color-line);
}

.steps li::before {
  content: counter(step);
  counter-increment: step;
  grid-column: 1;
  grid-row: 1 / span 2;
  align-self: start;
  color: var(--color-teal);
  font-weight: 700;
  font-size: 1.25rem;
  line-height: 1.3;
}

.steps h3,
.steps p { grid-column: 2; }

.steps h3 { margin: 0; }

.steps li:last-child { border-bottom: 1px solid var(--color-line); }

.steps { counter-reset: step; }

.price p + p { margin-top: 0.75rem; }

.price .cta { margin-top: 1.25rem; }

.mail {
  color: var(--color-teal-deep);
  font-weight: 700;
}

.demo-note { margin-bottom: 1rem; }

.phone {
  background: var(--color-card);
  border: 1px solid var(--color-line);
  border-radius: 16px;
  box-shadow: 0 14px 28px -16px rgba(28, 25, 23, 0.45);
  overflow: hidden;
  max-width: 24rem;
}

.phone-bar {
  background: var(--color-teal);
  color: var(--color-paper);
  padding: 0.85rem 1rem 0.95rem;
}

.phone-bar p { margin: 0; }

.phone-name { font-weight: 700; }

.phone-note { margin-top: 0.15rem; font-size: 0.875rem; }

.chat-log {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  min-height: 12rem;
  max-height: 18rem;
  overflow: auto;
  padding: 0.9rem;
  background-color: var(--color-chat);
  background-image: radial-gradient(rgba(28, 25, 23, 0.05) 1px, transparent 1px);
  background-size: 14px 14px;
  scrollbar-color: var(--color-teal) var(--color-chat);
}

.msg {
  max-width: 88%;
  margin: 0;
  padding: 0.55rem 0.7rem;
  line-height: 1.4;
}

.msg.hello,
.msg.in {
  align-self: flex-start;
  background: var(--color-card);
  border-radius: 4px 14px 14px 14px;
}

.msg.out {
  align-self: flex-end;
  background: var(--color-reply);
  border-radius: 14px 4px 14px 14px;
}

.who {
  margin: 0 0 0.15rem;
  color: var(--color-teal-deep);
  font-size: 0.875rem;
  font-weight: 700;
}

.msg p:last-child { margin: 0; }

.fresh { animation: reply-in 160ms ease-out; }

.quick {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  padding: 0.75rem;
  border-top: 1px solid var(--color-line);
  background: var(--color-paper);
}

.quick button {
  min-height: 44px;
  padding: 0.4rem 0.75rem;
  border: 1px solid var(--color-teal);
  border-radius: 8px;
  background: var(--color-paper);
  color: var(--color-teal-deep);
  font: inherit;
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
}

.quick button:hover { background: var(--color-foam); }

.quick button[aria-pressed="true"] {
  background: var(--color-teal);
  color: var(--color-paper);
}

.quick button[aria-pressed="true"]:hover { background: var(--color-teal-deep); }

.bank { display: none; }

.bank dt { font-weight: 700; margin-top: 0.9rem; }

.site-footer {
  border-top: 1px solid var(--color-line);
  padding: 1.5rem 0 2.5rem;
}

.footer-note {
  margin: 0.9rem 0 0;
  max-width: 40rem;
  color: var(--color-ink-soft);
}

.legal {
  width: min(40rem, calc(100% - 2.5rem));
  margin: 2rem auto 0;
  font-size: 1.125rem;
  line-height: 1.6;
}

.legal h1 {
  font-size: clamp(2rem, 4vw, 2.6rem);
  border-bottom: 1px solid var(--color-line);
  padding-bottom: 0.6rem;
}

.legal h2 {
  margin-top: 2rem;
  font-size: 1.35rem;
}

.legal a { color: var(--color-teal-deep); }

.legal .footer {
  margin-top: 2.5rem;
  padding-top: 1rem;
  border-top: 1px solid var(--color-line);
  color: var(--color-ink-soft);
  font-size: 0.95rem;
}

.command-box {
  margin: 1.25rem 0;
  padding: 1rem;
  background: var(--color-foam);
  color: var(--color-teal-deep);
  border: 1px solid var(--color-teal);
  border-radius: 6px;
  text-align: center;
  font-weight: 700;
  font-size: 1.25rem;
  letter-spacing: 0.04em;
}

@media (min-width: 900px) {
  .site-header nav {
    flex: 0 1 auto;
    order: 0;
  }
}

@media (min-width: 960px) {
  .story {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(18rem, 24rem);
    column-gap: 3rem;
    align-items: start;
    padding-top: 3rem;
  }

  .hero-copy { grid-column: 1; grid-row: 1; }

  .story-rest { grid-column: 1; grid-row: 2; min-width: 0; }

  #ejemplo {
    grid-column: 2;
    grid-row: 1 / span 2;
    align-self: start;
    position: sticky;
    top: 1.25rem;
    margin-top: 0;
  }
}

@media (min-width: 960px) and (max-height: 700px) {
  #ejemplo { position: static; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .fresh { animation: none; }
}

@keyframes reply-in {
  from { opacity: 0; }
  to { opacity: 1; }
}
