/* "Nisperia": a near-white page, flat grey tiles on a three-column grid (full rows: the
   empty cells it once left on purpose read as missing tiles; Pablo, 2026-11-22), one tight grotesk and small mono labels. The only colour is
   the níspero in the logo. The logo is still; nothing glows or moves. */

@font-face {
  font-family: 'Inter Tight';
  src: url('fonts/inter-tight-latin-wght-normal.woff2') format('woff2-variations'), url('fonts/inter-tight-latin-wght-normal.woff2') format('woff2');
  font-weight: 100 900;
  font-display: swap;
}
@font-face {
  font-family: 'DM Mono';
  src: url('fonts/dm-mono-latin-400-normal.woff2') format('woff2');
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: 'DM Mono';
  src: url('fonts/dm-mono-latin-500-normal.woff2') format('woff2');
  font-weight: 500;
  font-display: swap;
}

:root {
  color-scheme: light;
  --bg: #f7f7f6;
  --tile: #eeeff0;
  --ink: #111213;
  --ink-2: #63676d;
  --ink-3: #a3a6ab;
  --line: #dfe0e2;
  --gold: #f5a623;
  --error: #a3261a;
  --sans: 'Inter Tight', 'Helvetica Neue', Helvetica, Arial, sans-serif;
  --mono: 'DM Mono', ui-monospace, Menlo, monospace;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  background: var(--bg);
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
h1,
h2,
h3,
p,
ul,
ol,
figure,
fieldset,
legend {
  margin: 0;
  padding: 0;
}
ul,
ol {
  list-style: none;
}
fieldset {
  border: 0;
  min-width: 0;
}
a {
  color: inherit;
}
:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}
[id] {
  scroll-margin-top: 96px;
}
[hidden] {
  display: none !important;
}

.wrap {
  max-width: 1120px;
  margin: 0 auto;
  padding-left: max(20px, env(safe-area-inset-left, 0px));
  padding-right: max(20px, env(safe-area-inset-right, 0px));
}

h1 {
  font-weight: 500;
  font-size: clamp(2.3rem, 5.4vw, 4rem);
  line-height: 1.04;
  letter-spacing: -0.035em;
  text-wrap: balance;
  max-width: 18ch;
}
h2 {
  font-weight: 500;
  font-size: clamp(1.6rem, 3vw, 2.15rem);
  line-height: 1.15;
  letter-spacing: -0.03em;
  text-wrap: balance;
  max-width: 24ch;
}
h3 {
  font-weight: 500;
  font-size: 1.25rem;
  line-height: 1.2;
  letter-spacing: -0.02em;
}
.label {
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-2);
}
.note {
  font-size: 0.9rem;
  color: var(--ink-2);
  max-width: 60ch;
}
.todo {
  background: #fff3c4;
  padding: 0 0.3em;
}

/* ---------- header ---------- */
.site-header {
  position: sticky;
  top: env(safe-area-inset-top, 0px);
  z-index: 5;
  background: var(--bg);
  box-shadow: 0 1px 0 var(--line);
}
.nav {
  display: flex;
  align-items: center;
  gap: 28px;
  padding-block: 18px;
  font-size: 0.95rem;
  color: var(--ink-2);
}
.nav a {
  text-decoration: none;
}
.brand {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-right: auto;
  font-weight: 600;
  font-size: 1.3rem;
  letter-spacing: -0.03em;
  color: var(--ink);
}
.brand img {
  width: auto;
  height: 30px;
  display: block;
}
/* The "ia" is plain black like the rest of the name: no shimmer, no stars (Pablo, 2026-11-21). */
.brand i {
  font-style: normal;
}
.nav__links {
  display: flex;
  /* the links and the smaller ES · VA · EN sit on one line, centred on each other */
  align-items: center;
  gap: 28px;
  white-space: nowrap;
}
/* on a phone only the last link fits: "Quiénes somos", or "Volver" on that page */
.nav__extra {
  display: none;
}
@media (min-width: 820px) {
  .nav__extra {
    display: inline;
  }
}
@media (max-width: 480px) {
  .nav {
    gap: 12px;
    font-size: 0.85rem;
  }
  .nav .brand {
    font-size: 1.7rem;
    gap: 6px;
  }
  .nav .brand img {
    width: auto;
    height: 33px;
  }
  .nav .btn--small {
    padding: 0 10px;
    font-size: 0.85rem;
  }
  /* the one text link left on a phone ("Quiénes somos" / "Volver") */
  .nav__links {
    font-size: 1.05rem;
    color: var(--ink);
  }
}
/* "Pide tu hora gratis" in the header: always on Quiénes somos, and on the
   home page once the hero's button has scrolled away (site/nav-cta.js). On
   phones the text link next to it makes room for it. */
@media (max-width: 480px) {
  .cta-stuck .nav__links,
  .nav:has(.nav__cta:not([hidden])) .nav__links {
    display: none;
  }
}
/* very narrow phones: the bigger logo would push the button off screen */
@media (max-width: 359px) {
  .nav .brand {
    font-size: 1.15rem;
  }
  .nav .brand img {
    width: auto;
    height: 27px;
  }
}
/* the raised dot of the Valencian «l·l»: its own spacing, whatever the tightness of the text around it */
.punt {
  letter-spacing: 0;
  margin-inline: 0.02em 0;
}
/* Languages: ES · VA · EN in the top bar (wide screens) and by name in the footer;
   the one being read is plain black. lang.js may add a thin line above the top bar
   offering the browser's language. */
.lang-switch--nav {
  line-height: 1;
  font-family: var(--mono);
  font-size: 0.8rem;
  letter-spacing: 0.04em;
  word-spacing: 4px;
}
.lang-switch b {
  font-weight: 500;
  color: var(--ink);
}
/* on a phone: «ES ▾» in the top bar opens the three languages */
.lang-menu {
  position: relative;
  font-family: var(--mono);
  font-size: 0.8rem;
  letter-spacing: 0.04em;
}
@media (min-width: 820px) {
  .lang-menu {
    display: none;
  }
}
.lang-menu summary {
  list-style: none;
  cursor: pointer;
  padding: 8px 6px;
  color: var(--ink);
  white-space: nowrap;
}
.lang-menu summary::-webkit-details-marker {
  display: none;
}
.lang-menu summary::after {
  content: ' ▾';
  color: var(--ink-2);
}
.lang-menu div {
  position: absolute;
  right: 0;
  top: 100%;
  z-index: 5;
  display: grid;
  min-width: 150px;
  padding: 6px;
  background: var(--bg);
  box-shadow: inset 0 0 0 1px var(--line), 0 8px 24px rgba(0, 0, 0, 0.08);
  border-radius: 6px;
  font-family: var(--sans);
  font-size: 1rem;
  letter-spacing: 0;
}
.lang-menu div > * {
  padding: 10px 12px;
  font-weight: 400;
  color: var(--ink-2);
}
.lang-menu div > b {
  color: var(--ink);
  font-weight: 600;
}
.brand__tech {
  font-weight: 300;
}
/* In the top bar the níspero comes after the name, «NisperiaTech» then the fruit (Pablo, 2026-11-27). Only the order on
   screen changes: the pages keep the picture first in their HTML. The footers have no fruit. */
.nav .brand img {
  order: 1;
}
/* «NisperiaTech» never breaks in two lines */
.brand {
  white-space: nowrap;
  flex-shrink: 0;
}
/* Phones: the top bar holds the logo and two more things at most.
   - with «Pide tu hora gratis» in the bar, the language list leaves (it is in the footer too);
   - on the home page, «Quiénes somos» sits next to the list in a smaller size below 430px, and
     breaks in two short lines where even that does not fit (Pablo, 2026-11-22). */
@media (max-width: 480px) {
  .cta-stuck .lang-menu,
  .nav:has(.nav__cta:not([hidden])) .lang-menu {
    display: none;
  }
}
@media (max-width: 429px) {
  /* the home page before its button shows, and the form page, which has no button in the bar */
  .nav:has(.lang-menu):not(:has(.nav__cta:not([hidden]))) .nav__links {
    flex: 0 1 auto;
    min-width: 0;
    white-space: normal;
    text-align: right;
    font-size: 0.85rem;
    line-height: 1.15;
  }
}
.lang-hint {
  margin: 0;
  padding: 8px 16px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 4px 8px;
  background: var(--tile);
  font-size: 0.9rem;
  color: var(--ink-2);
}
.lang-hint a {
  color: var(--ink);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.lang-hint button {
  border: 0;
  background: none;
  padding: 0 6px;
  font: inherit;
  font-size: 1.2rem;
  line-height: 1;
  color: var(--ink-2);
  cursor: pointer;
}
@media (hover: hover) {
  .nav__links a:hover {
    color: var(--ink);
  }
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 0 22px;
  border: 0;
  border-radius: 4px;
  background: var(--ink);
  color: #fff;
  font: inherit;
  font-weight: 500;
  text-decoration: none;
  cursor: pointer;
}
.btn--small {
  min-height: 38px;
  padding: 0 14px;
  font-size: 0.9rem;
}
.btn--quiet {
  background: transparent;
  color: var(--ink);
  box-shadow: inset 0 0 0 1px var(--line);
}
@media (hover: hover) {
  .btn:hover {
    background: #2a2c2f;
  }
  .btn--quiet:hover {
    background: var(--tile);
  }
}

/* ---------- hero ---------- */
.hero {
  display: grid;
  gap: 22px;
  justify-items: start;
  padding-block: 48px 72px;
}
@media (min-width: 820px) {
  .hero {
    padding-block: 88px 112px;
  }
}
.lead {
  font-size: 1.15rem;
  color: var(--ink-2);
  max-width: 44ch;
}
.hero--page .lead {
  max-width: 56ch;
}

/* Home hero with the Valencia street photo, behind the text at every width.
   Phones get a tall photo whose top is empty sky: the text sits over the sky
   and the street shows below it. From 900px a wide photo fills the hero and
   the text sits over its calm cream wall. Veils keep the text readable and
   fade the photo into the page. */
body:has(.hero--photo) {
  overflow-x: clip;
}
.hero--photo {
  position: relative;
  isolation: isolate;
  padding-top: 24px;
  /* the tall photo is 179vw high; the text overlaps its top 95vw (sky) */
  padding-bottom: 84vw;
  margin-bottom: 40px;
}
.hero--photo::before,
.hero__photo {
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 100vw;
  translate: -50% 0;
}
.hero__photo {
  z-index: -2;
}
.hero__photo img {
  display: block;
  width: 100%;
  height: auto;
}
.hero--photo::before {
  content: '';
  z-index: -1;
  height: 179.2vw;
  background:
    linear-gradient(180deg, var(--bg) 0%, rgb(247 247 246 / 0.85) 28%, rgb(247 247 246 / 0) 50%),
    linear-gradient(180deg, rgb(247 247 246 / 0) 90%, var(--bg) 100%);
}
@media (min-width: 900px) {
  .hero--photo {
    align-content: center;
    min-height: clamp(480px, 46vw, 780px);
    padding-block: 56px 88px;
    margin-bottom: 0;
  }
  .hero--photo::before,
  .hero__photo {
    top: 0;
    height: 100%;
  }
  .hero__photo img {
    height: 100%;
    object-fit: cover;
    /* anchored left so any crop comes off the right, keeping the
       Miguelete clear of the headline */
    object-position: 0% 50%;
  }
  .hero--photo::before {
    background:
      linear-gradient(90deg, rgb(247 247 246 / 0.82) 0%, rgb(247 247 246 / 0.55) 32%, rgb(247 247 246 / 0) 52%),
      linear-gradient(180deg, rgb(247 247 246 / 0) 78%, var(--bg) 100%);
  }
  .hero--photo h1 {
    max-width: 13ch;
  }
  .hero--photo .lead {
    max-width: 38ch;
  }
}
.hero--photo .lead {
  color: #3d4045;
}

/* ---------- sections and tiles ---------- */
.sec {
  padding-block: 0 96px;
  display: grid;
  gap: 40px;
}
/* a page that opens with a section and no hero (the three demos): room under the top bar,
   so its first line does not touch the bar's rule */
main > .sec:first-child {
  padding-top: 28px;
}
@media (min-width: 820px) {
  main > .sec:first-child {
    padding-top: 48px;
  }
}
.head {
  display: grid;
  gap: 18px;
}
.grid {
  display: grid;
  gap: 8px;
}
@media (min-width: 820px) {
  .grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .grid--two {
    grid-template-columns: repeat(2, 1fr);
  }
}
.tile {
  background: var(--tile);
  padding: 16px 16px 44px;
  display: grid;
  gap: 6px;
  align-content: start;
  min-width: 0;
}
.tile p {
  color: var(--ink-2);
  font-size: 0.95rem;
}
.tile--text {
  padding-bottom: 20px;
  gap: 10px;
}

.sheet {
  border-top: 1px solid var(--ink);
  max-width: 560px;
}
.sheet div {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 16px;
  padding: 13px 0;
  border-bottom: 1px solid var(--line);
}
.sheet b {
  font-family: var(--mono);
  font-weight: 500;
  font-variant-numeric: tabular-nums;
}
.sheet .sheet__total {
  border-bottom: 1px solid var(--ink);
  font-weight: 600;
}

.bar {
  background: var(--tile);
  padding: 26px 28px;
  display: grid;
  gap: 18px;
  justify-items: start;
}
.bar a:not(.btn) {
  font-weight: 600;
  text-underline-offset: 4px;
}

.site-footer {
  padding-block: 0 calc(40px + env(safe-area-inset-bottom, 0px));
}
.site-footer a {
  text-underline-offset: 3px;
}

/* ---------- "Pide tu hora gratis": one question per screen ---------- */
.flow {
  max-width: 760px;
  padding-block: 40px 96px;
  display: grid;
  gap: 28px;
}
@media (min-width: 820px) {
  .flow {
    padding-block: 72px 120px;
  }
}
.flow h1 {
  font-size: clamp(1.9rem, 4.2vw, 2.9rem);
  max-width: 20ch;
}
.flow h1:focus {
  outline: none;
}
.progress {
  height: 4px;
  background: var(--tile);
}
.progress span {
  display: block;
  height: 100%;
  width: 25%;
  background: var(--ink);
  transition: width 0.3s ease;
}
/* a legend ignores grid and flex gaps, so the step spaces its children by hand */
.step > * + * {
  margin-top: 24px;
}
/* the question stays pinned under the header while the options scroll */
.step legend {
  float: left;
  width: 100%;
  margin-bottom: 24px;
  position: sticky;
  top: var(--header-h, 74px);
  z-index: 3;
  padding-block: 12px;
  margin-top: -12px;
  background: var(--bg);
}
/* the error sits right under the question (moved there by hora-gratis.js) */
.step > .error {
  min-height: 0;
}
.step > .error:empty + * {
  margin-top: 0;
}
.step legend + * {
  clear: both;
  margin-top: 0;
}
.step .step__hint {
  color: var(--ink-2);
  margin-top: -12px;
}
.step h1 + .step__hint {
  margin-top: 12px;
}
.opts {
  display: grid;
  gap: 8px;
  grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
}
.opt {
  position: relative;
  display: block;
  cursor: pointer;
}
.opt input {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  opacity: 0;
  cursor: pointer;
}
.opt span {
  display: flex;
  align-items: center;
  min-height: 58px;
  padding: 12px 16px;
  background: var(--tile);
  font-weight: 500;
  letter-spacing: -0.01em;
}
.opt input:checked + span {
  background: var(--ink);
  color: #fff;
}
.opt input:focus-visible + span {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}
@media (hover: hover) {
  .opt:hover input:not(:checked) + span {
    background: #e4e5e7;
  }
}
.group {
  display: grid;
  gap: 12px;
}
.field {
  display: grid;
  gap: 8px;
  max-width: 460px;
}
.field label,
.field__label {
  font-weight: 500;
}
.field small {
  color: var(--ink-2);
  font-weight: 400;
}
.field input {
  min-height: 52px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: #fff;
  color: var(--ink);
  font: inherit;
}
.field textarea {
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: #fff;
  color: var(--ink);
  font: inherit;
  resize: vertical;
}
/* the short way in from the home page's box: one screen, so no step count */
.flow--quick > .label,
.flow--quick > .progress {
  display: none;
}
.field textarea:focus-visible,
.field input:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 1px;
  border-color: var(--ink);
}
/* long plain text (privacidad) */
.legal {
  display: grid;
  gap: 14px;
  max-width: 68ch;
}
.legal h2 {
  font-size: 1.25rem;
  margin-top: 18px;
}
.step > .note {
  max-width: 460px;
}
.btn:disabled {
  opacity: 0.6;
  cursor: progress;
}
.error {
  color: var(--error);
  font-weight: 500;
  min-height: 1.5em;
}
.flow__nav {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
/* the error now lives inside the step, so nothing else separates the last
   input from "Siguiente"/"Atrás" */
.flow__nav[data-nav] {
  margin-top: 32px;
}

/* draft notice */
.draft-pill {
  display: none;
}
.is-draft .draft-pill {
  display: block;
  margin: 0;
  padding-block: 8px;
  border-bottom: 1px solid var(--line);
  text-align: center;
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-2);
}

@media (max-width: 420px) {
  body {
    font-size: 16px;
  }
  .hero .btn,
  .flow__nav .btn {
    width: 100%;
  }
}
/* On phones "Siguiente" stays pinned to the bottom of the screen, with
   "Atrás" beside it, so nobody has to scroll past the options to go on. */
@media (max-width: 640px) {
  .flow__nav[data-nav] {
    position: sticky;
    bottom: 0;
    z-index: 4;
    margin-inline: -20px;
    padding: 12px 20px max(12px, env(safe-area-inset-bottom, 0px));
    background: var(--bg);
    box-shadow: 0 -1px 0 var(--line);
    /* a grid, not flex: Safari on iPhone would not stretch the button and
       cut "Siguiente" down to "Sig". And columns of a fixed share, never
       "auto": with a column sized by its content Safari still drew the button
       at a stale, narrow width until the next touch. hora-gratis.js sets
       .has-back when "Atrás" shows. */
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 0;
  }
  .flow__nav[data-nav].has-back {
    grid-template-columns: minmax(0, 1fr) minmax(0, 2fr);
  }
  .flow__nav[data-nav] .btn {
    width: 100%;
    min-width: 0;
    padding-inline: 12px;
    white-space: nowrap;
  }
  .flow__nav[data-nav] [data-back] {
    grid-area: 1 / 1;
    margin-right: 10px;
    width: calc(100% - 10px);
  }
  .flow__nav[data-nav].has-back [data-next] {
    grid-area: 1 / 2;
  }
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .progress span {
    transition: none;
  }
}

/* names on the "Quiénes somos" tiles are h2 for the outline, tile-sized for the eye */
.tile h2 {
  font-size: 1.25rem;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

/* "Quiénes somos": the text beside the family photo */
.about-top {
  display: grid;
  gap: 8px 56px;
  align-items: center;
}
@media (min-width: 820px) {
  .about-top {
    grid-template-columns: 1.35fr 1fr;
  }
}
.about-top > * {
  min-width: 0;
}
.about-photo {
  display: grid;
  gap: 10px;
  padding-bottom: 72px;
  max-width: 420px;
}
.about-photo img {
  display: block;
  width: 100%;
  height: auto;
}
@media (min-width: 820px) {
  .about-photo {
    padding-bottom: 0;
  }
}

/* ---------- pixel sea that closes the home page (site/waves.js) ---------- */
.waves {
  display: block;
  width: 100%;
  height: 96px;
  image-rendering: pixelated;
  image-rendering: crisp-edges;
}
@media (min-width: 820px) {
  .waves {
    height: 140px;
  }
}
/* the footer sits right above the water, so it needs less room below */
.site-footer:has(+ .waves) {
  padding-bottom: 28px;
}

/* hero buttons: the main one and "Prueba algunos ejemplos" next to it, both the same
   size (side by side on wider screens, one above the other on phones) */
.hero__actions {
  display: grid;
  gap: 8px;
}
/* the hero's button keeps its own width, on the left, also on a phone */
.hero__actions .btn {
  white-space: nowrap;
}
.btn--light {
  background: #fff;
  color: var(--ink);
  box-shadow: inset 0 0 0 1px var(--line);
}
@media (hover: hover) {
  .btn--light:hover {
    background: var(--tile);
  }
}

/* the filter by kind of business: demos.html and the home page's Ejemplos */
.demo-filter {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  scrollbar-width: none;
  margin: 0 -20px;
  padding: 0 20px 2px;
}
.demo-filter::-webkit-scrollbar {
  display: none;
}
@media (min-width: 820px) {
  .demo-filter {
    flex-wrap: wrap;
    overflow: visible;
    margin: 0;
    padding: 0;
  }
}
.demo-filter button {
  flex: none;
  min-height: 38px;
  padding: 0 14px;
  border: 0;
  border-radius: 999px;
  background: var(--tile);
  color: var(--ink);
  font: inherit;
  font-size: 0.9rem;
  white-space: nowrap;
  cursor: pointer;
}
.demo-filter button[aria-pressed='true'] {
  background: var(--ink);
  color: #fff;
}
.demo-filter button:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
}
@media (hover: hover) {
  .demo-filter button[aria-pressed='false']:hover {
    background: var(--line);
  }
}

/* a pain tile is one big link down to its example */
.tile:has(.tile__link) {
  position: relative;
}
.tile__link {
  color: inherit;
  text-decoration: none;
}
.tile__link::after {
  content: "↓";
  position: absolute;
  inset: 0;
  display: flex;
  align-items: flex-end;
  justify-content: flex-end;
  padding: 12px 16px;
  font-size: 1rem;
  font-weight: 400;
  color: var(--ink-3);
}
.tile__link:focus-visible {
  outline: none;
}
.tile__link:focus-visible::after {
  outline: 2px solid var(--gold);
  outline-offset: -2px;
}
@media (hover: hover) {
  .tile:has(.tile__link):hover {
    background: var(--line);
  }
  .tile:has(.tile__link):hover .tile__link::after {
    color: var(--ink);
  }
}

/* a link at the foot of a text tile (the founders' LinkedIn) */
.tile .tile-link {
  font-size: 0.9rem;
  color: var(--ink);
  text-underline-offset: 3px;
}

/* ---------- "Pide tu hora gratis" on a phone ---------- */
/* no double-tap zoom wait on the things people tap */
.opt,
.opt input,
.btn,
.seg button {
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}
/* "Móvil / Correo" above the contact box */
.seg {
  display: inline-grid;
  grid-template-columns: 1fr 1fr;
  justify-self: start;
  padding: 3px;
  border-radius: 6px;
  background: var(--tile);
}
.seg button {
  min-height: 38px;
  padding: 0 18px;
  border: 0;
  border-radius: 4px;
  background: transparent;
  color: var(--ink-2);
  font: inherit;
  font-size: 0.95rem;
  font-weight: 500;
  cursor: pointer;
}
.seg button[aria-pressed='true'] {
  background: #fff;
  color: var(--ink);
  box-shadow: 0 0 0 1px var(--line);
}
.seg button:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 1px;
}
@media (max-width: 640px) {
  .flow {
    padding-top: 28px;
    gap: 22px;
  }
  /* two columns, so a whole question fits on one screen without scrolling */
  .opts {
    grid-template-columns: 1fr 1fr;
  }
  .opt span {
    min-height: 64px;
    padding: 10px 12px;
    font-size: 0.95rem;
    line-height: 1.25;
  }
  .field {
    max-width: none;
  }
  /* 16px or more, or Safari zooms the page in when the box gets the cursor */
  .field input {
    font-size: max(1rem, 16px);
  }
  /* The form is the whole screen, like an app: no footer links, nothing pinned
     at the top, and the buttons fixed to the bottom. --kb is how much of the
     screen a keyboard covers (hora-gratis.js), so the bar rides above it. */
  body:has([data-flow]) .site-footer {
    display: none;
  }
  body:has([data-flow]) .site-header,
  .flow .step legend {
    position: static;
  }
  .flow {
    padding-bottom: calc(112px + var(--kb, 0px));
  }
  .flow .flow__nav[data-nav] {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    margin: 0;
    transform: translateY(calc(-1 * var(--kb, 0px)));
  }
}
/* the message under the box it is about (hora-gratis.js moves it there) */
.field > .error {
  min-height: 0;
}
.field > .error:empty {
  display: none;
}
