/* business.110.dk, look A: warm hospitality editorial. Tokens and the reasons for them: DESIGN.md. */

@font-face {
  font-family: "Source Serif 4";
  src: url("/assets/fonts/source-serif-4-latin.woff2") format("woff2");
  font-weight: 200 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Onest";
  src: url("/assets/fonts/onest-latin.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  color-scheme: light;
  --paper: oklch(97.4% 0.011 84);
  --raised: oklch(99.2% 0.005 84);
  --sand: oklch(94.2% 0.019 80);
  --line: oklch(87.5% 0.017 76);
  --line-strong: oklch(63% 0.02 70);
  --ink: oklch(24% 0.022 52);
  --ink-hover: oklch(34% 0.026 52);
  --ink-2: oklch(42% 0.02 56);
  --on-ink: oklch(96% 0.012 84);
  --on-ink-2: oklch(83% 0.018 80);
  --brass: oklch(81% 0.125 83);
  --error: oklch(50% 0.16 32);

  --serif: "Source Serif 4", "Iowan Old Style", Georgia, serif;
  --sans: "Onest", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --t-display: clamp(2rem, 1.35rem + 2.9vw, 4.25rem);
  --t-h2: clamp(1.875rem, 1.4rem + 2vw, 3.25rem);
  --t-h3: clamp(1.25rem, 1.2rem + 0.25vw, 1.4375rem);
  --t-lead: clamp(1.125rem, 1.08rem + 0.25vw, 1.3125rem);
  --t-body: clamp(1.0625rem, 1.04rem + 0.1vw, 1.125rem);
  --t-small: 0.9375rem;

  --margin: clamp(20px, 6.15vw, 48px);
  --gutter: 32px;
  --max: 1200px;
  --pad: clamp(72px, 4.8vw + 53px, 128px);
  --head: 56px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --shadow-card: 0 1px 2px oklch(24% 0.022 52 / 0.06), 0 18px 40px -18px oklch(24% 0.022 52 / 0.22);
}
@media (min-width: 1024px) {
  :root { --head: 68px; }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: var(--t-body);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img { display: block; max-width: 100%; height: auto; }
/* The form's states switch with the hidden attribute; a class that sets display must never bring them back. */
[hidden] { display: none !important; }
h1, h2, h3 {
  margin: 0;
  font-family: var(--serif);
  font-weight: 600;
  font-optical-sizing: auto;
  line-height: 1.08;
  letter-spacing: -0.018em;
  text-wrap: balance;
}
h1 { font-size: var(--t-display); line-height: 1.04; letter-spacing: -0.024em; }
h2 { font-size: var(--t-h2); letter-spacing: -0.02em; }
h3 { font-size: var(--t-h3); line-height: 1.2; letter-spacing: -0.01em; }
p { margin: 0; text-wrap: pretty; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 0.2em; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
::selection { background: oklch(81% 0.125 83 / 0.45); }
[id] { scroll-margin-top: calc(var(--head) + 16px); }

.sr {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap;
}
.skip {
  position: absolute; left: 12px; top: -120px; z-index: 30;
  padding: 12px 16px; border-radius: 12px;
  background: var(--ink); color: var(--on-ink); font-weight: 600; text-decoration: none;
}
.skip:focus { top: 8px; }

/* Grid: one column on phones and tablets; 12 columns from 1024 px. Text starts on column 1,
   pictures and the form card on column 8. */
.wrap { max-width: calc(var(--max) + 2 * var(--margin)); margin-inline: auto; padding-inline: var(--margin); }
.grid { display: grid; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 1024px) {
  .grid { grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gutter); }
}
.band { padding-block: var(--pad); }
.band--sand { background: var(--sand); }
.band--ink { background: var(--ink); color: var(--on-ink); }
.band--ink :focus-visible { outline-color: var(--on-ink); }
.lead { font-size: var(--t-lead); line-height: 1.5; max-width: 34em; }

/* Header */
.top { position: sticky; top: 0; z-index: 20; background: var(--paper); border-bottom: 1px solid var(--line); }
.top__in { display: flex; align-items: center; justify-content: space-between; gap: 12px; height: var(--head); }
.brand { display: inline-flex; align-items: center; gap: 10px; min-width: 44px; min-height: 44px; color: var(--ink); text-decoration: none; white-space: nowrap; }
.brand__mark { font: 600 1.375rem/1 var(--serif); letter-spacing: -0.01em; }
.brand__sub { font-size: var(--t-small); color: var(--ink-2); }
.top__end { display: flex; align-items: center; gap: 16px; }
/* "CA · ES · EN", the current one in bold, as the hotel's own site shows it. The last letter ends on the content edge, so
   it lines up with the form card below; each link's tap area reaches 12 px past its letters on both sides, and at least
   44 px across ("ES" is a pixel narrower than that on its own). */
.top__langs { display: flex; align-items: center; font-size: var(--t-small); color: var(--ink-2); }
.top__lang { display: inline-flex; align-items: center; min-height: 44px; font-weight: 500; }
a.top__lang { justify-content: center; min-width: 44px; padding-inline: 12px; margin-inline: -12px; color: var(--ink-2); text-decoration: none; }
a.top__lang:hover { color: var(--ink); text-decoration: underline; }
.top__lang[aria-current] { color: var(--ink); font-weight: 700; }
.top__sep { margin-inline: 10px; color: var(--line-strong); }
/* "Call me" in the header: there from the first paint (the first screen holds no form); below 900 px it steps aside
   while a form is on screen, so the page never shows two. */
@media (max-width: 899px) {
  .hide-call .top__call { display: none; }
}
/* On a phone the brand's line stays hidden: with "Call me" it is wider than the screen, and only the button comes and goes. */
@media (max-width: 559px) {
  .brand__sub { display: none; }
}

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  height: 56px; padding: 0 28px; border: 1px solid var(--ink); border-radius: 999px;
  background: var(--ink); color: var(--on-ink);
  font: 600 1.0625rem/1 var(--sans); text-decoration: none; cursor: pointer;
  transition: background-color 0.2s var(--ease), border-color 0.2s var(--ease);
}
.btn:hover { background: var(--ink-hover); border-color: var(--ink-hover); }
.btn:focus-visible { outline-offset: 3px; }
.btn:disabled { cursor: progress; opacity: 0.8; }
.btn--small { height: 44px; padding: 0 18px; gap: 8px; font-size: var(--t-small); }
.ico { flex: none; width: 18px; height: 18px; }
.btn--small .ico { width: 16px; height: 16px; }
.btn--quiet { background: transparent; color: var(--ink); border-color: var(--line-strong); }
.btn--quiet:hover { background: var(--sand); border-color: var(--ink-2); }

/* Hero: the booking system, no AI. The text, the named hotel in the caption style, then its real website, big. */
.hero { padding-block: 20px 72px; }
.hero__text { display: grid; gap: 12px; }
.hero__lede { max-width: 30em; line-height: 1.45; }
.hero__proof { max-width: 34em; margin-top: 8px; font-size: var(--t-small); line-height: 1.45; color: var(--ink-2); }
/* Two classes, so the shared .fig { margin: 0 } further down cannot cancel the space above the picture. */
.hero .hero__fig { margin-top: 32px; }
@media (min-width: 720px) {
  .hero { padding-block: 56px 96px; }
  .hero__text { gap: 20px; }
  .hero__lede { font-size: var(--t-lead); }
  .hero .hero__fig { margin-top: 48px; }
}
@media (min-width: 1024px) {
  .hero { padding-block: 88px 128px; }
  .hero__text { grid-column: 1 / span 10; gap: 28px; }
  .hero .hero__fig { grid-column: 1 / -1; margin-top: 64px; }
}

/* The second screen: "Call your new AI employee", as big as the first screen's heading */
.call__title { font-size: var(--t-display); line-height: 1.04; letter-spacing: -0.024em; }

/* The call form: the one card on the page */
.card {
  position: relative; padding: 20px 16px 16px;
  border: 1px solid var(--line); border-radius: 20px;
  background: var(--raised); box-shadow: var(--shadow-card);
}
.form__body { display: grid; gap: 12px; }
.field { display: grid; gap: 8px; }
.field > label, .langs legend { font-size: var(--t-small); font-weight: 500; line-height: 1.3; }
.form input[type="tel"], .form input[type="text"] {
  width: 100%; height: 54px; padding: 0 16px; margin: 0;
  border: 1px solid var(--line-strong); border-radius: 12px;
  background: var(--paper); color: var(--ink);
  font: 400 1.0625rem/1.2 var(--sans);
  appearance: none; -webkit-appearance: none;
}
.form input::placeholder { color: oklch(54% 0.015 60); opacity: 1; }
.form input[type="tel"]:focus, .form input[type="text"]:focus {
  outline: none; border-color: var(--ink);
  box-shadow: 0 0 0 1px var(--ink), 0 0 0 5px oklch(81% 0.125 83 / 0.45);
}
.form input[aria-invalid="true"] { border-color: var(--error); box-shadow: 0 0 0 1px var(--error); }
.err { font-size: var(--t-small); font-weight: 500; line-height: 1.35; color: var(--error); }

.langs { min-width: 0; margin: 0; padding: 0; border: 0; }
.langs legend { padding: 0; margin-bottom: 8px; }
.langs__row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.pill { position: relative; display: block; }
.pill input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.pill span {
  display: flex; align-items: center; justify-content: center; height: 44px; padding: 0 8px;
  border: 1px solid var(--line-strong); border-radius: 999px; background: var(--paper);
  font-size: var(--t-small); font-weight: 500; white-space: nowrap;
}
.pill:hover input:not(:checked) + span { border-color: var(--ink-2); }
.pill input:checked + span { background: var(--ink); border-color: var(--ink); color: var(--on-ink); }
.pill input:focus-visible + span { box-shadow: 0 0 0 2px var(--raised), 0 0 0 4px var(--ink); }

/* The row is 44 px tall and all of it ticks the box: the label's ::before covers the row, and only the box and the
   "Privacy" link sit above it, so the link opens its page. One line of text is centred in the row, so the space above
   and below the tick is even; two lines fill it, with the box beside the first. */
.check {
  position: relative;
  display: grid; grid-template-columns: 24px minmax(0, 1fr); column-gap: 12px; align-items: start; align-content: center;
  min-height: 44px; font-size: var(--t-small); line-height: 22px; cursor: pointer;
}
.check__text { text-wrap: wrap; }
.check label { cursor: pointer; }
.check label::before { content: ""; position: absolute; inset: 0; }
.check input, .check__text a { position: relative; z-index: 1; }
.check__text a { color: var(--ink-2); text-decoration-color: var(--line-strong); }
.check__text a:hover { color: var(--ink); text-decoration-color: currentColor; }
.check input {
  width: 24px; height: 24px; margin: -1px 0 0; cursor: pointer;
  border: 1.5px solid var(--line-strong); border-radius: 7px; background: var(--paper) center / 15px no-repeat;
  appearance: none; -webkit-appearance: none;
}
.check input:checked {
  border-color: var(--ink); background-color: var(--ink);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M3.5 8.5l3 3 6-7' fill='none' stroke='%23f6f1e9' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}
.check input[aria-invalid="true"] { border-color: var(--error); }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.form__msg {
  padding: 12px 14px; border-radius: 12px; background: oklch(50% 0.16 32 / 0.08);
  font-size: var(--t-small); font-weight: 500; line-height: 1.4; color: var(--error);
}
.form__msg a { color: inherit; font-weight: 600; }
.form__msg--note { background: var(--sand); color: var(--ink); }
.form .btn { width: 100%; }
@media (min-width: 720px) {
  .card { padding: 28px; }
  .form__body { gap: 16px; }
  .pill span { height: 48px; }
}

/* Pep's name badge, pinned on the card's edge like a name tag */
.badge {
  position: absolute; top: -14px; right: 16px; display: grid; justify-items: start;
  padding: 7px 12px; border-radius: 10px; background: var(--brass); color: var(--ink);
  box-shadow: 0 8px 18px -10px oklch(40% 0.08 70 / 0.6), inset 0 1px 0 oklch(90% 0.08 90);
}
.badge__name { font: 600 1.0625rem/1 var(--serif); }
.badge__post { margin-top: 3px; font: 500 0.6875rem/1 var(--sans); color: oklch(30% 0.04 60); }
/* While Pep calls, a soft glow pulses out of the badge and rests, like a phone ringing. It hugs the badge, so a
   still picture shows a glow, never a second box. */
.badge::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  box-shadow: 0 0 0 0 oklch(81% 0.125 83 / 0);
}
.is-calling .badge::after { animation: ring 2.4s var(--ease) infinite; }
@keyframes ring {
  0% { box-shadow: 0 0 0 0 oklch(81% 0.125 83 / 0.6); }
  60%, 100% { box-shadow: 0 0 0 12px oklch(81% 0.125 83 / 0); }
}
@media (prefers-reduced-motion: reduce) {
  .is-calling .badge::after { animation: none; box-shadow: 0 0 0 4px oklch(81% 0.125 83 / 0.45); }
}
@media (min-width: 720px) {
  .badge { top: -18px; right: 24px; padding: 9px 14px; }
  .badge__name { font-size: 1.25rem; }
  .badge__post { font-size: 0.75rem; }
}
/* The narrowest phones (360 px): 10 px more for the text, so the Catalan consent line keeps its "Privacitat" link on its
   second line. The badge follows the content edge. */
@media (max-width: 374px) {
  .card { padding-inline: 12px; }
  .badge { right: 12px; }
  .check { column-gap: 10px; }
}

/* The answer, in place of the form: the card shrinks to it, the title where the first label was */
.form__state { display: grid; gap: 10px; }
.state__title { padding-right: 72px; font: 600 clamp(1.625rem, 1.5rem + 0.5vw, 2rem)/1.1 var(--serif); letter-spacing: -0.015em; }
.state__from { font-size: var(--t-small); color: var(--ink-2); }
.form__state .btn { margin-top: 14px; }

/* Product sections: heading, the real screenshot, then the details */
.feat .grid { row-gap: 40px; }
.feat__head { display: grid; gap: 16px; }
.feat__body { display: grid; gap: 32px; }
.feat__note { max-width: 34em; }
.items { display: grid; gap: 24px; margin: 0; padding: 0; list-style: none; }
.items li { display: grid; gap: 8px; align-content: start; }
.items p { max-width: 34em; color: var(--ink-2); }
/* Lists go two across from 720 px, but the product sections' details stay one under another: in two columns their
   lists of three left a third row alone. */
@media (min-width: 720px) {
  .items { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: var(--gutter); row-gap: 32px; }
  .feat__body .items { grid-template-columns: minmax(0, 1fr); }
}
/* On a computer the heading's top lines up with the phone's top, and the details follow the heading beside the tall phone. */
@media (min-width: 1024px) {
  .feat .grid { grid-template-rows: auto 1fr; row-gap: 0; }
  .feat__head { grid-column: 1 / span 6; grid-row: 1; align-self: start; gap: 24px; }
  .feat__body { grid-column: 1 / span 6; grid-row: 2; align-self: start; padding-top: 48px; }
  .feat .fig { grid-column: 8 / span 5; grid-row: 1 / span 2; align-self: start; }
}

.fig { display: grid; gap: 14px; justify-items: center; margin: 0; }
.fig figcaption { max-width: 300px; font-size: var(--t-small); line-height: 1.45; color: var(--ink-2); text-align: center; }
.phone {
  width: min(300px, 78vw); padding: 10px; border-radius: 44px; background: var(--ink);
  box-shadow: 0 40px 70px -40px oklch(24% 0.022 52 / 0.55), 0 2px 6px oklch(24% 0.022 52 / 0.12);
}
.phone img { width: 100%; border-radius: 34px; background: var(--paper); }
@media (min-width: 1024px) {
  .fig { justify-items: start; }
  .fig figcaption { max-width: 340px; text-align: left; }
  .phone { width: min(340px, 100%); }
}

/* Margins */
.margins .grid { row-gap: 28px; }
.margins__title { max-width: 15em; }
.margins__body { display: grid; gap: 16px; max-width: 34em; }
.margins__example { font: 500 var(--t-h3)/1.3 var(--serif); color: var(--brass); }
.margins__body p + p { font-size: var(--t-lead); line-height: 1.5; color: var(--on-ink-2); }
@media (min-width: 1024px) {
  .margins__title { grid-column: 1 / span 6; }
  .margins__body { grid-column: 8 / span 5; align-self: end; }
}

/* How we work: the house terms, in the same title-and-line rows as the other lists */
.how .grid { row-gap: 40px; }
@media (min-width: 1024px) {
  .how__title { grid-column: 1 / span 6; }
  .how .items { grid-column: 1 / -1; grid-template-columns: subgrid; row-gap: 48px; }
  .how .items li:nth-child(odd) { grid-column: 1 / span 5; }
  .how .items li:nth-child(even) { grid-column: 8 / span 5; }
}

/* The real example: what the named hotel uses, then the link to its own site (its picture is the hero's) */
.example .grid { row-gap: 32px; }
.example__head { display: grid; gap: 16px; align-content: start; }
.example__body { display: grid; gap: 8px; align-content: start; }
.example__visit a {
  display: inline-flex; align-items: center; gap: 6px; min-height: 44px;
  font-weight: 600; text-decoration-color: var(--line-strong);
}
.example__visit a:hover { text-decoration-color: currentColor; }
.ext { flex: none; }
.example__list { margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--line); }
.example__list li { max-width: 34em; padding-block: 16px; border-bottom: 1px solid var(--line); }
.browser {
  width: 100%; overflow: hidden; border: 1px solid var(--line); border-radius: 14px;
  background: var(--raised); box-shadow: var(--shadow-card);
}
.browser__bar { display: flex; align-items: center; justify-content: center; height: 36px; border-bottom: 1px solid var(--line); background: var(--paper); }
.browser__url { padding: 3px 14px; border-radius: 999px; background: var(--sand); font-size: 0.8125rem; color: var(--ink-2); }
.browser img { width: 100%; }
@media (min-width: 1024px) {
  .example__head { grid-column: 1 / span 6; }
  .example__body { grid-column: 8 / span 5; }
}

/* The call form again */
.cta__text { display: grid; gap: 16px; align-content: start; }
.cta__write { display: flex; flex-wrap: wrap; align-items: center; column-gap: 0.35em; color: var(--ink-2); }
.cta__write a { display: inline-flex; align-items: center; min-height: 44px; color: var(--ink); font-weight: 600; }
.cta__form { margin-top: 44px; }
@media (min-width: 720px) {
  .cta__form { max-width: 480px; }
}
@media (min-width: 1024px) {
  .cta__text { grid-column: 1 / span 6; align-self: center; gap: 24px; }
  .cta__form { grid-column: 8 / span 5; max-width: none; margin-top: 0; }
}

/* The privacy page: one reading column, a hairline between parts; on a computer each heading sits left of its text,
   their first lines on one baseline. */
.legal { padding-block: 32px var(--pad); }
.legal__head { display: grid; gap: 16px; padding-bottom: 40px; }
.legal__head h1 { font-size: var(--t-h2); line-height: 1.08; letter-spacing: -0.02em; }
.legal__sec { display: grid; gap: 12px; padding-block: 24px 28px; border-top: 1px solid var(--line); }
.legal__sec h2 { font-size: var(--t-h3); line-height: 1.2; letter-spacing: -0.01em; }
.legal__body { display: grid; gap: 12px; max-width: 34em; }
.legal__list { display: grid; gap: 10px; margin: 0; padding-left: 1.15em; }
.legal__list li::marker { color: var(--line-strong); }
.legal a { text-decoration-color: var(--line-strong); }
.legal a:hover { text-decoration-color: currentColor; }
@media (min-width: 720px) {
  .legal { padding-top: 56px; }
  .legal__head { padding-bottom: 56px; }
  .legal__sec { padding-block: 28px 36px; }
}
@media (min-width: 1024px) {
  .legal { padding-top: 88px; }
  .legal__head { grid-column: 1 / span 8; gap: 24px; padding-bottom: 72px; }
  /* A subgrid's own gap replaces the parent's, so the gutter is set again here. */
  .legal__sec { grid-column: 1 / -1; grid-template-columns: subgrid; gap: 0 var(--gutter); align-items: baseline; padding-block: 32px 40px; }
  .legal__sec h2 { grid-column: 1 / span 4; }
  .legal__body { grid-column: 5 / span 7; }
}

/* Footer */
.foot { padding-block: 16px 28px; border-top: 1px solid var(--line); font-size: var(--t-small); color: var(--ink-2); }
.foot__in { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0 24px; }
.foot__line { display: flex; flex-wrap: wrap; align-items: center; column-gap: 20px; }
.foot__line > *, .foot__langs a { display: inline-flex; align-items: center; min-height: 44px; }
.foot a { color: var(--ink-2); text-decoration: none; }
.foot a:hover { color: var(--ink); text-decoration: underline; }
.foot__langs { display: flex; gap: 20px; }
.foot [aria-current] { color: var(--ink); font-weight: 600; }
