/* Giorgi's Massage, mobile massage in Athens. One motif: the circle (a cupping glass seen from above, a clock face).
   Tokens first; everything below uses them. Notes in ../../../NOTES.md */

@font-face {
  font-family: "Manrope";
  src: url("../fonts/manrope-greek.woff2") format("woff2");
  font-weight: 400 800;
  font-display: swap;
  unicode-range: U+0370-0377, U+037A-037F, U+0384-038A, U+038C, U+038E-03A1, U+03A3-03FF;
}
@font-face {
  font-family: "Manrope";
  src: url("../fonts/manrope-latin.woff2") format("woff2");
  font-weight: 400 800;
  font-display: swap;
  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 {
  /* Palette: slate ground, sage and blush fields, deep olive for the motif and the action */
  --bg: #a6b3bc;
  --surface: #b2bdc5;
  --ink: #1c1c1c;
  --muted: #38424a;
  --accent: #2c3620;
  --accent-hover: #3a4729;
  --accent-ink: #e3e2da;
  --sage: #b7c8be;
  --sage-2: #cbd8d0;
  --blush: #d6c4b8;
  --blush-2: #e6dad1;
  --slate-2: #c2ccd2;
  --error: #7d2318;
  /* WhatsApp's own green, for the button in the corner only; the words on it stay in ink (8.6:1) */
  --wa: #25d366;
  --wa-hover: #1fc35c;

  --font: "Manrope", "Helvetica Neue", Arial, sans-serif;
  --step-small: clamp(0.8125rem, 0.79rem + 0.1vw, 0.875rem);
  --step-body: clamp(1.0625rem, 1rem + 0.25vw, 1.1875rem);
  --step-lead: clamp(1.25rem, 1.1rem + 0.7vw, 1.625rem);
  --step-head: clamp(2rem, 1.3rem + 3.2vw, 4rem);
  --step-display: clamp(2.75rem, 1rem + 7vw, 7.25rem);

  --margin: max(clamp(16px, 2.2vw, 32px), env(safe-area-inset-left), env(safe-area-inset-right));
  --gutter: clamp(16px, 1.7vw, 24px);
  --section: clamp(104px, 11vw, 176px);
  --bar-h: 76px;

  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --ease-in-out: cubic-bezier(0.77, 0, 0.175, 1);
}

/* Reset */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: 24px; scroll-padding-bottom: 152px; color-scheme: light; -webkit-tap-highlight-color: rgba(44, 54, 32, 0.12); }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: var(--step-body);
  line-height: 1.5;
  font-kerning: normal;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
img, svg { display: block; max-width: 100%; }
button, input, textarea { font: inherit; color: inherit; }
a, button, label, input, summary { touch-action: manipulation; }
button { cursor: pointer; background: none; border: 0; padding: 0; }
a { color: inherit; }
ul, ol { padding: 0; list-style: none; }
fieldset { border: 0; padding: 0; min-width: 0; }
h1, h2, h3 { font-weight: 800; text-wrap: balance; }
p { text-wrap: pretty; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }
::selection { background: var(--accent); color: var(--accent-ink); }
[hidden] { display: none !important; }

.sr {
  position: absolute !important; width: 1px; height: 1px; overflow: hidden; /* taste-skill-ignore: visually hidden text, not a rule */
  clip-path: inset(50%); white-space: nowrap;
}
.skip {
  position: absolute; left: var(--margin); top: -100px; z-index: 50;
  background: var(--ink); color: var(--accent-ink); padding: 12px 18px; border-radius: 999px;
}
.skip:focus { top: 12px; }
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.icon { width: 1.25em; height: 1.25em; fill: currentColor; flex: none; }

.head {
  font-size: var(--step-head);
  letter-spacing: -0.035em;
  line-height: 1;
}

/* Buttons: one shape, fully round, the circle stretched */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 56px; padding: 0 30px;
  background: var(--accent); color: var(--accent-ink);
  border-radius: 999px;
  font-weight: 700; font-size: var(--step-body); line-height: 1.1;
  text-decoration: none; text-align: center;
  transition: transform 160ms var(--ease-out), background-color 200ms ease, color 200ms ease;
}
.btn:active { transform: scale(0.97); }
.btn--small { min-height: 46px; padding: 0 20px; font-size: var(--step-small); }
.btn--wide { width: 100%; }
.btn--light { background: var(--accent-ink); color: var(--ink); }
.btn--quiet { background: var(--blush-2); color: var(--ink); }
.link {
  font-weight: 700; text-decoration: underline; text-decoration-thickness: 2px;
  text-underline-offset: 5px; text-decoration-color: color-mix(in srgb, currentColor 40%, transparent);
  transition: text-decoration-color 200ms ease;
}
@media (hover: hover) and (pointer: fine) {
  .btn:hover { background: var(--accent-hover); }
  .btn--light:hover { background: #f1f0ea; }
  .btn--quiet:hover { background: #efe6df; }
  .link:hover { text-decoration-color: currentColor; }
}

/* Header: wordmark, three links, language, one action */
.bar {
  height: var(--bar-h);
  display: flex; align-items: center; gap: 28px;
  padding: 0 var(--margin);
  position: relative; z-index: 5;
}
.wordmark {
  font-weight: 800; font-size: 1.75rem; letter-spacing: -0.04em; text-decoration: none;
  margin-right: auto; white-space: nowrap;
}
.bar__nav { display: flex; gap: 28px; }
.bar__nav a { text-decoration: none; font-weight: 600; padding: 12px 0; }
.lang {
  min-width: 46px; height: 46px; border-radius: 50%;
  background: var(--slate-2); font-weight: 800; font-size: var(--step-small);
  transition: transform 160ms var(--ease-out), background-color 200ms ease;
}
.lang:active { transform: scale(0.95); }
@media (hover: hover) and (pointer: fine) {
  .bar__nav a:hover { text-decoration: underline; text-underline-offset: 6px; text-decoration-thickness: 2px; }
  .lang:hover { background: var(--surface); }
}

/* Hero: a huge olive circle entering from the right, the words on the ground beside it */
.hero {
  --disc: clamp(620px, 118svh, 1180px);
  position: relative;
  min-height: calc(100svh - var(--bar-h));
  display: grid; align-items: center;
  padding: 0 var(--margin);
  overflow: hidden;
}
.hero__text { position: relative; z-index: 1; max-width: 48%; padding: 40px 0 88px; }
.hero__title {
  font-size: var(--step-display);
  letter-spacing: -0.045em;
  line-height: 0.96;
}
.hero__lead { margin-top: 40px; font-size: var(--step-lead); line-height: 1.4; max-width: 30ch; }
.hero__actions { margin-top: 44px; display: flex; align-items: center; gap: 16px 28px; flex-wrap: wrap; }
.hero__stage { position: absolute; inset: 0; pointer-events: none; }
.hero .disc {
  position: absolute;
  width: var(--disc); height: var(--disc);
  right: calc(var(--disc) * -0.27);
  top: calc(50% - var(--disc) / 2);
}

/* The disc: flat olive, an old print held inside it like a reflection */
.disc { border-radius: 50%; background: var(--accent); overflow: hidden; isolation: isolate; }
.disc__pic {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  mix-blend-mode: screen; filter: invert(1);
  opacity: 0;
  transform: scale(1.04);
  transition: opacity 1.6s ease, transform 7s linear;
}
.disc__pic.is-on { opacity: 0.3; transform: scale(1); }
/* Giorgi's own photos: grey, printed in the disc's olive and light */
.disc--photo .disc__pic { mix-blend-mode: screen; filter: none; }
.disc--photo .disc__pic.is-on { opacity: 0.72; }
.disc--sage { background: var(--sage); }
.disc--sage .disc__pic { mix-blend-mode: multiply; filter: none; }
.disc--sage .disc__pic.is-on { opacity: 0.85; }

/* The request: one question at a time on the left, the stub adding it up on the right */
.request { background: var(--sage); padding: var(--section) var(--margin); }
.request__head {
  max-width: 1180px; margin: 0 auto;
  display: flex; justify-content: space-between; align-items: flex-end; gap: 16px 48px; flex-wrap: wrap;
}
.request__lead { max-width: 40ch; font-size: var(--step-lead); line-height: 1.4; }

/* A picture in a circle, for each massage */
.pic {
  display: block; width: 64px; height: 64px; border-radius: 50%;
  background: var(--sage-2); overflow: hidden; isolation: isolate;
}
.pic img { width: 100%; height: 100%; object-fit: cover; mix-blend-mode: multiply; }

/* The coupon: the questions, a perforation, and the stub */
.coupon {
  display: grid; grid-template-columns: minmax(0, 58fr) minmax(0, 42fr);
  max-width: 1180px; margin: 56px auto 0;
  background: var(--blush);
}
.coupon__form { position: relative; padding: 44px 48px 48px; }
.coupon__stub {
  position: relative; padding: 48px 44px 44px 52px; display: flex; flex-direction: column;
  /* the perforation: a column of round holes in the section's sage */
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='8' height='16'%3E%3Ccircle cx='4' cy='8' r='3.2' fill='%23b7c8be'/%3E%3C/svg%3E");
  background-size: 8px 16px; background-repeat: repeat-y; background-position: -2px 26px;
}
.coupon__stub::before, .coupon__stub::after {
  content: ""; position: absolute; left: -15px; width: 30px; height: 30px; border-radius: 50%;
  background: var(--sage);
}
.coupon__stub::before { top: -15px; }
.coupon__stub::after { bottom: -15px; }
.coupon__title { font-size: var(--step-lead); letter-spacing: -0.02em; }
.coupon__noscript { font-weight: 600; margin-bottom: 24px; }

/* Where you are: one circle per step, filled as you go */
.progress { display: flex; align-items: center; gap: 14px; min-height: 32px; margin-bottom: 28px; }
.progress__dots { display: flex; gap: 6px; }
.progress__dots li { width: 12px; height: 12px; border-radius: 50%; border: 2px solid var(--ink); }
.progress__dots .is-done { background: var(--accent); border-color: var(--accent); }
.progress__dots .is-now { background: var(--ink); }
.progress__label { font-size: var(--step-small); font-weight: 800; }
.progress__sum { display: none; margin-left: auto; font-size: var(--step-lead); font-weight: 800; font-variant-numeric: tabular-nums; }
html:not(.js) .progress { display: none; }

/* One question */
.ask { display: flex; flex-direction: column; gap: 24px; }
.ask__q { font-size: clamp(1.5rem, 1.1rem + 1.3vw, 2.25rem); letter-spacing: -0.03em; line-height: 1.08; max-width: 24ch; }
.ask__q:focus { outline: none; } /* the script moves focus here for screen readers; it is not a control */
.ask__text { max-width: 44ch; margin-top: -12px; }
.ask__pic { display: block; width: 104px; height: 104px; border-radius: 50%; background: var(--accent); overflow: hidden; isolation: isolate; }
.ask__pic img { width: 100%; height: 100%; object-fit: cover; mix-blend-mode: screen; opacity: 0.72; }
.ask__error { font-weight: 700; color: var(--error); }
.ask__back {
  align-self: flex-start; display: inline-flex; align-items: center; gap: 8px;
  min-height: 44px; padding-right: 10px; font-weight: 700;
  transition: transform 160ms var(--ease-out);
}
.ask__back .icon { transform: rotate(-90deg); }
.ask__back:active { transform: scale(0.97); }
.icon--next { transform: rotate(90deg); }
@media (prefers-reduced-motion: no-preference) {
  .ask { animation: ask-in 320ms var(--ease-out); }
}
@keyframes ask-in { from { opacity: 0; transform: translateY(10px); } }

/* The answers: whole rows to tap */
.options { display: grid; gap: 8px; }
.option {
  width: 100%; display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 18px;
  min-height: 64px; padding: 14px 20px 14px 14px; text-align: left;
  background: var(--blush-2);
  transition: background-color 200ms ease, color 200ms ease, transform 160ms var(--ease-out);
}
.option:active { transform: scale(0.985); }
.option[aria-pressed="true"] { background: var(--ink); color: var(--accent-ink); }
.option__name { display: block; font-size: 1.125rem; font-weight: 800; letter-spacing: -0.01em; line-height: 1.25; }
.option__desc { display: block; margin-top: 4px; font-size: var(--step-small); font-weight: 600; line-height: 1.4; color: var(--muted); }
.option[aria-pressed="true"] .option__desc { color: inherit; opacity: 0.8; }
.option__go { width: 22px; height: 22px; transform: rotate(90deg); }
.option__price { font-size: 1.125rem; font-weight: 800; font-variant-numeric: tabular-nums; white-space: nowrap; }
/* extra time: the dot grows with the length, like the cups on the stub */
.option--time { grid-template-columns: 36px minmax(0, 1fr) auto; }
.option__dot {
  --d: calc(14px + (var(--m, 60) - 60) * 0.3px);
  justify-self: center; width: var(--d); height: var(--d); border-radius: 50%; background: var(--accent);
}
.option[aria-pressed="true"] .option__dot { background: var(--accent-ink); }
.option--line { grid-template-columns: minmax(0, 1fr) auto; padding-left: 20px; }
html:not(.js) .option { pointer-events: none; }
html:not(.js) .option__go { display: none; }
@media (hover: hover) and (pointer: fine) {
  .option:hover { background: #efe6df; }
  .option[aria-pressed="true"]:hover { background: #333; }
  .ask__back:hover span { text-decoration: underline; text-underline-offset: 5px; text-decoration-thickness: 2px; }
}

.cups { display: flex; align-items: flex-end; min-height: 120px; margin-top: 24px; padding-left: 8px; }
.cup {
  --s: 84px;
  width: var(--s); height: var(--s); border-radius: 50%; margin-left: -12px;
  background: var(--blush-2); overflow: hidden; isolation: isolate; position: relative;
  outline: 4px solid var(--blush);
}
/* the massage's circle grows with its length: 84 px for 60 minutes, 112 px for 2 hours */
.cup--massage { --s: calc(84px + (var(--m, 60) - 60) * 0.47px); }
.cup--extra { --s: 56px; }
.cup img { width: 100%; height: 100%; object-fit: cover; mix-blend-mode: multiply; }
.cup.is-new { animation: cup-in 420ms var(--ease-out); }
@keyframes cup-in { from { opacity: 0; transform: scale(0.82) translateY(10px); } }
.cups:empty { min-height: 0; margin: 0; }

.visit__empty { margin-top: 20px; }
.visit__list { margin-top: 24px; display: grid; gap: 4px; }
.visit__list:empty { display: none; }
.visit__row {
  display: grid; grid-template-columns: minmax(0, 1fr) auto auto; align-items: center; gap: 8px;
  min-height: 56px; padding-left: 14px; background: var(--blush-2);
  font-variant-numeric: tabular-nums;
}
.visit__row.is-new { animation: row-in 360ms var(--ease-out); }
@keyframes row-in { from { opacity: 0; transform: translateY(-6px); } }
.visit__name { font-weight: 700; line-height: 1.25; padding: 8px 0; overflow-wrap: break-word; }
.visit__name small { display: block; font-size: var(--step-small); font-weight: 600; color: var(--muted); }
.visit__price { font-weight: 800; }
.visit__change {
  min-height: 48px; padding: 0 14px; font-size: var(--step-small); font-weight: 700;
  text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 2px;
  text-decoration-color: color-mix(in srgb, currentColor 40%, transparent);
  transition: background-color 200ms ease, text-decoration-color 200ms ease;
}
@media (hover: hover) and (pointer: fine) { .visit__change:hover { background: var(--blush); text-decoration-color: currentColor; } }
.visit__totals { margin-top: 32px; display: grid; gap: 6px; }
.visit__line { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; font-weight: 700; }
.visit__line strong { font-weight: 800; font-size: var(--step-lead); font-variant-numeric: tabular-nums; }
.visit__line--sum strong { display: inline-block; font-size: var(--step-head); letter-spacing: -0.04em; line-height: 1; }
.visit__extra { margin-top: 18px; font-size: var(--step-small); font-weight: 600; color: var(--muted); }
.stub-message { margin-top: 40px; }
.stub-message__label { font-size: var(--step-small); font-weight: 800; }
.coupon__form .preview { display: none; }

.field { display: flex; flex-direction: column; gap: 10px; }
.field legend, .field > label { font-size: var(--step-small); font-weight: 800; margin-bottom: 10px; }
.field > label { margin-bottom: 0; }
.field__opt { font-weight: 600; color: var(--muted); }
.field__hint { font-size: var(--step-small); font-weight: 600; color: var(--muted); min-height: 1.4em; }
.field input[type="text"], .field textarea {
  width: 100%; min-height: 54px; padding: 14px 16px;
  background: var(--blush-2); border: 0; border-radius: 0;
  font-size: var(--step-body); line-height: 1.4;
  transition: background-color 200ms ease, box-shadow 200ms ease;
}
.field textarea { resize: vertical; min-height: 84px; }
.field input::placeholder, .field textarea::placeholder { color: #6b6460; opacity: 1; }
.field input:focus-visible, .field textarea:focus-visible { outline: 2px solid var(--ink); outline-offset: 0; background: #efe6df; }
.field [aria-invalid="true"] { border-bottom: 3px solid var(--error); }
.field.is-invalid legend { color: var(--error); }

.days__head, .days__grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 6px; }
.days__head { margin-bottom: 4px; }
.days__head span { text-align: center; font-size: var(--step-small); font-weight: 700; color: var(--muted); }
.day { position: relative; display: block; aspect-ratio: 1; }
.day input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; }
.day span {
  display: grid; place-items: center; align-content: center; width: 100%; height: 100%;
  border-radius: 50%; background: var(--blush-2); font-weight: 800; line-height: 1;
  font-variant-numeric: tabular-nums;
  transition: background-color 200ms ease, color 200ms ease, transform 160ms var(--ease-out);
}
.day small { display: block; font-size: 0.75rem; font-weight: 700; margin-top: 2px; }
.day input:checked + span { background: var(--ink); color: var(--accent-ink); }
.day input:focus-visible + span { outline: 2px solid var(--ink); outline-offset: 2px; }
.day input:disabled { cursor: not-allowed; }
.day input:disabled + span { background: transparent; color: #8d8079; text-decoration: line-through; }
.day:active span { transform: scale(0.93); }
.day--blank { visibility: hidden; }

.times__grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(74px, 1fr)); gap: 6px; }
.time { position: relative; display: block; }
.time input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; }
.time span {
  display: grid; place-items: center; height: 46px; border-radius: 999px;
  background: var(--blush-2); font-weight: 700; font-variant-numeric: tabular-nums;
  transition: background-color 200ms ease, color 200ms ease, transform 160ms var(--ease-out);
}
.time input:checked + span { background: var(--ink); color: var(--accent-ink); }
.time input:focus-visible + span { outline: 2px solid var(--ink); outline-offset: 2px; }
.time:active span { transform: scale(0.95); }
.times__none { grid-column: 1 / -1; font-weight: 600; }
@media (hover: hover) and (pointer: fine) {
  .day input:not(:checked):not(:disabled):hover + span, .time input:not(:checked):hover + span { background: #f1e9e3; }
}

.errors { padding: 18px 20px; background: var(--blush-2); border-left: 4px solid var(--error); }
.errors__title { font-weight: 800; color: var(--error); }
.errors ul { margin-top: 6px; list-style: disc; padding-left: 20px; }
.errors a { font-weight: 600; }
.send { margin-top: 4px; min-height: 60px; }
.send .icon { width: 1.4em; height: 1.4em; }
.send__note { font-size: var(--step-small); font-weight: 600; color: var(--muted); margin-top: -12px; }

.preview summary {
  cursor: pointer; font-weight: 700; font-size: var(--step-small);
  text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 2px;
  text-decoration-color: color-mix(in srgb, currentColor 40%, transparent);
  padding: 8px 0; width: fit-content;
}
.bubble { margin-top: 12px; max-width: 440px; background: #e1f3d4; padding: 12px 14px; border-radius: 0 12px 12px 12px; }
.bubble__text { white-space: pre-wrap; overflow-wrap: anywhere; font-size: var(--step-small); line-height: 1.5; }
.sent { padding: 22px 22px 18px; background: var(--blush-2); border-left: 4px solid var(--accent); }
.sent__title { font-weight: 800; }
.sent__actions { margin-top: 14px; display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; }
.sent.is-new { animation: row-in 360ms var(--ease-out); }

/* How a visit goes: four lines of type stepping down to the right */
.steps { background: var(--blush); padding: var(--section) var(--margin); }
.steps__list { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gutter); row-gap: 64px; }
.step { grid-column: 1 / -1; }
.step:nth-child(2) { grid-column-start: 3; }
.step:nth-child(3) { grid-column-start: 5; }
.step__line { font-size: var(--step-head); letter-spacing: -0.04em; line-height: 1; }
.step__line--last { color: var(--accent); }
.step__text { margin-top: 14px; max-width: 36ch; }

/* Questions: index cards filed in a drawer, each with a tab */
.faq { padding: var(--section) var(--margin) calc(var(--section) * 0.9); }
.faq__title, .cards { max-width: 960px; margin-inline: auto; }
.cards { margin-top: 104px; display: grid; }
.card {
  --tab-w: 200px;
  position: relative; z-index: calc(var(--i) + 1);
  background: var(--c, var(--sage));
  padding: 6px 0 54px;
}
.card:last-child { padding-bottom: 16px; }
.card:nth-child(3n+2) { --c: var(--blush); }
.card:nth-child(3n) { --c: var(--slate-2); }
.card__tab {
  position: absolute; bottom: 100%; left: calc(var(--i) * (100% - var(--tab-w)) / 4);
  width: var(--tab-w); height: 42px; padding: 0 20px;
  display: flex; align-items: center;
  background: var(--c, var(--sage)); font-size: var(--step-small); font-weight: 800;
}
.card__q button {
  width: 100%; min-height: 72px; padding: 14px 28px;
  display: flex; justify-content: space-between; align-items: center; gap: 20px;
  text-align: left; font-size: var(--step-lead); font-weight: 700; letter-spacing: -0.015em; line-height: 1.25;
}
.card__q button::after {
  content: ""; flex: none; width: 34px; height: 34px; border-radius: 50%;
  background: var(--ink) center / 18px no-repeat url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 256 256' fill='%23e3e2da'%3E%3Cpath d='M224,128a8,8,0,0,1-8,8H136v80a8,8,0,0,1-16,0V136H40a8,8,0,0,1,0-16h80V40a8,8,0,0,1,16,0v80h80A8,8,0,0,1,224,128Z'/%3E%3C/svg%3E");
  transition: transform 300ms var(--ease-out);
}
.card.is-open .card__q button::after { transform: rotate(45deg); }
.card__a { display: grid; grid-template-rows: 0fr; transition: grid-template-rows 360ms var(--ease-out); }
.card__a > div { overflow: hidden; }
.card__a p { padding: 0 28px 18px; max-width: 54ch; opacity: 0; transition: opacity 240ms ease; }
.card.is-open .card__a { grid-template-rows: 1fr; }
.card.is-open .card__a p { opacity: 1; transition-delay: 80ms; }
html:not(.js) .card__a { grid-template-rows: 1fr; }
html:not(.js) .card__a p { opacity: 1; }

/* Closing: the circle returns, cropped by the corner, on an olive field */
.close {
  position: relative; overflow: hidden;
  min-height: 92svh;
  display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gutter);
  align-items: center;
  padding: var(--section) var(--margin);
  background: var(--accent); color: var(--accent-ink);
}
.close__shape { position: absolute; inset: 0; pointer-events: none; }
.close .disc {
  --d: min(104svh, 64vw);
  position: absolute; width: var(--d); height: var(--d);
  left: -11vw; bottom: calc(var(--d) * -0.36);
}
.close__text { grid-column: 8 / 13; position: relative; z-index: 1; }
.close__text p { margin-top: 24px; max-width: 38ch; }
.close__text .close__fact { font-size: var(--step-lead); font-weight: 800; letter-spacing: -0.02em; margin-top: 28px; }
.close__text .btn { margin-top: 36px; }
.close :focus-visible { outline-color: var(--accent-ink); }

/* Footer: the name built from blocks */
/* room at the end for the WhatsApp button, or the bar once a massage is chosen */
.foot { padding: 112px var(--margin) 104px; }
.mark { height: 34svh; min-height: 200px; display: flex; align-items: flex-end; gap: 4px; }
.mark__block {
  flex: 1 1 0; position: relative; overflow: hidden;
  background: var(--b); height: var(--h);
  display: flex; align-items: flex-end; justify-content: center;
}
.mark__block span {
  font-weight: 800; color: var(--bg); line-height: 0.74; letter-spacing: 0;
  font-size: var(--fs); transform: translateY(0.03em);
}
.foot__grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gutter); margin-top: 56px; row-gap: 32px; }
.foot__links { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; grid-column: span 3; }
.foot__links a, .foot__lang { font-weight: 700; text-decoration: none; padding: 8px 0; text-align: left; }
.foot__contact { grid-column: 9 / 13; font-weight: 600; }
.foot__contact p + p { margin-top: 6px; }
.foot__credits { margin-top: 64px; font-size: var(--step-small); max-width: 74ch; }
.foot__credits a { font-weight: 700; }
.foot__last { margin-top: 32px; display: flex; justify-content: space-between; align-items: center; gap: 16px; font-weight: 600; }
@media (hover: hover) and (pointer: fine) {
  .foot__links a:hover, .foot__lang:hover { text-decoration: underline; text-underline-offset: 6px; text-decoration-thickness: 2px; }
}

/* The visit, following you down the page once something is in it */
.visitbar {
  position: fixed; z-index: 20; left: 50%; bottom: max(12px, env(safe-area-inset-bottom));
  width: min(720px, calc(100% - 2 * var(--margin)));
  display: flex; align-items: center; gap: 16px;
  padding: 10px 10px 10px 22px;
  background: var(--accent); color: var(--accent-ink); border-radius: 999px;
  box-shadow: 0 10px 30px rgba(28, 28, 28, 0.25); /* taste-skill-ignore: it floats over the page */
  transform: translate(-50%, calc(100% + 32px));
  transition: transform 320ms var(--ease-out);
}
.visitbar.is-shown { transform: translate(-50%, 0); }
.visitbar__info { flex: 1; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; font-weight: 600; font-size: var(--step-small); line-height: 1.3; }
.visitbar__sep { width: 5px; height: 5px; border-radius: 50%; background: currentColor; opacity: 0.6; }
.visitbar :focus-visible { outline-color: var(--accent-ink); }
.visitbar__sum { font-weight: 800; font-size: var(--step-lead); font-variant-numeric: tabular-nums; }

/* WhatsApp in the corner, from the first screen on; it steps aside in the booking, where the send button is */
.wa-float {
  position: fixed; z-index: 19; right: var(--margin); bottom: max(12px, env(safe-area-inset-bottom));
  display: inline-flex; align-items: center; gap: 10px;
  min-height: 56px; padding: 0 24px 0 18px; border-radius: 999px;
  background: var(--wa); color: var(--ink);
  font-weight: 800; line-height: 1.1; text-decoration: none; white-space: nowrap;
  box-shadow: 0 10px 30px rgba(28, 28, 28, 0.25); /* taste-skill-ignore: it floats over the page */
  transition: transform 320ms var(--ease-out), opacity 200ms ease, background-color 200ms ease, visibility 0s;
}
.wa-float .icon { width: 28px; height: 28px; }
.wa-float:active { transform: scale(0.97); }
.wa-float.is-away {
  opacity: 0; visibility: hidden; transform: translateY(12px);
  transition: transform 320ms var(--ease-out), opacity 200ms ease, visibility 0s linear 200ms;
}
@media (hover: hover) and (pointer: fine) { .wa-float:hover { background: var(--wa-hover); } }
html.rise .wa-float { animation: wa-in 600ms var(--ease-out) 1100ms backwards; }
@keyframes wa-in { from { opacity: 0; transform: translateY(20px); } }


/* Entrances: the parts of each section rise in turn, once */
html.rise [data-rise] {
  opacity: 0; transform: translateY(26px);
  transition: opacity 700ms var(--ease-out), transform 800ms var(--ease-out);
  transition-delay: var(--d, 0ms);
}
html.rise [data-rise].is-in { opacity: 1; transform: none; }
html.rise .hero .disc { opacity: 0; transform: scale(0.94) rotate(-6deg); transition: opacity 1s var(--ease-out), transform 1.4s var(--ease-out); }
html.rise .hero .disc.is-in { opacity: 1; transform: none; }

/* Tablet */
@media (max-width: 1080px) {
  .bar__nav { display: none; }
  .hero { --disc: min(104vw, 900px); align-items: start; min-height: 0; padding-bottom: calc(var(--disc) * 0.68); }
  .hero__text { max-width: 640px; padding: 56px 0 0; }
  .hero .disc { top: auto; bottom: calc(var(--disc) * -0.38); right: calc(var(--disc) * -0.24); }
  /* Only the top of the circle shows here, so the photo fills that part */
  .hero .disc__pic { height: 62%; object-position: 50% 62%; }
  .coupon { grid-template-columns: minmax(0, 1fr); }
  .stub-message { display: none; }
  .coupon__form .preview { display: block; }
  .coupon__form { padding: 40px 40px 44px; }
  .coupon__stub {
    padding: 44px 40px 40px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='8'%3E%3Ccircle cx='8' cy='4' r='3.2' fill='%23b7c8be'/%3E%3C/svg%3E");
    background-size: 16px 8px; background-repeat: repeat-x; background-position: 26px -2px;
  }
  .coupon__stub::before { top: -15px; left: -15px; bottom: auto; }
  .coupon__stub::after { top: -15px; left: auto; right: -15px; bottom: auto; }
  /* the running total sits beside the steps, as the stub is now below them */
  .progress__sum { display: block; }
  .close { min-height: 0; }
  .close__text { grid-column: 1 / 8; }
  .close .disc { --d: 74vw; left: auto; right: -30vw; bottom: auto; top: calc(50% - var(--d) / 2); }
  .foot__links { grid-column: span 4; }
  .foot__contact { grid-column: span 4; }
}

/* Phone */
@media (max-width: 700px) {
  :root { --bar-h: 64px; }
  .bar { gap: 10px; }
  .wordmark { font-size: 1.5rem; }
  .bar__book { padding: 0 16px; }
  .hero { --disc: 150vw; padding-bottom: calc(var(--disc) * 0.6); }
  .hero__text { padding-top: 32px; }
  .hero__lead { margin-top: 28px; }
  .hero__actions { margin-top: 32px; }
  .hero__actions .btn { width: 100%; }
  .hero .disc { bottom: calc(var(--disc) * -0.46); right: calc(var(--disc) * -0.12); }
  .hero .disc__pic { height: 54%; }
  .request__head { display: block; }
  .request__lead { margin-top: 20px; }
  .coupon { margin-top: 40px; }
  .coupon__form { padding: 28px 16px 32px; }
  .coupon__stub { padding: 40px 20px 32px; }
  .progress { margin-bottom: 22px; }
  .ask { gap: 20px; }
  .ask__pic { width: 88px; height: 88px; }
  .pic { width: 52px; height: 52px; }
  .option { gap: 14px; padding: 12px 14px 12px 12px; }
  .option--line { padding-left: 16px; }
  .option--time { grid-template-columns: 30px minmax(0, 1fr) auto; }
  .option__go { width: 18px; height: 18px; }
  .cups { min-height: 96px; }
  .visit__row { padding-left: 12px; }
  .cup { --s: 64px; margin-left: -10px; }
  .cup--massage { --s: calc(64px + (var(--m, 60) - 60) * 0.37px); }
  .cup--extra { --s: 46px; }
  .steps__list { row-gap: 44px; }
  .step:nth-child(n) { grid-column: 1 / -1; }
  .step:nth-child(2) { padding-left: 6vw; }
  .step:nth-child(3) { padding-left: 12vw; }
  .step__line { font-size: clamp(2rem, 8.4vw, 3rem); }
  .cards { margin-top: 84px; }
  .card { --tab-w: 128px; padding-bottom: 50px; }
  .card:last-child { padding-bottom: 14px; }
  .card__tab { left: calc(var(--i) * (100% - var(--tab-w)) / 4); padding: 0 14px; height: 40px; }
  .card__q button { padding: 14px 18px; min-height: 68px; }
  .card__a p { padding: 0 18px 16px; }
  .close { grid-template-columns: 1fr; padding-bottom: 96vw; }
  .close__text { grid-column: 1; }
  .close .disc { --d: 130vw; top: auto; right: -46vw; bottom: -62vw; }
  .close .disc__pic { height: 52%; object-position: 50% 72%; }
  .mark { height: 22svh; min-height: 120px; gap: 3px; }
  .foot__links { grid-column: span 6; }
  .foot__contact { grid-column: 1 / -1; }
  .foot__last { flex-wrap: wrap; }
  .visitbar { padding-left: 18px; gap: 12px; }
  /* phones: the WhatsApp button just says WhatsApp */
  .wa-float { padding: 0 20px 0 16px; }
  .wa-float__lead { display: none; }
}

/* Narrow phones: the hero's own button is just below, so the header keeps the name and the language */
@media (max-width: 520px) {
  .bar__book { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  [data-rise], .hero .disc { opacity: 1 !important; transform: none !important; }
  .disc__pic { transition: none; transform: none; }
  .cup.is-new, .visit__row.is-new, .sent.is-new { animation: none; }
  .visitbar, .wa-float { transition: none; }
  html.rise .wa-float { animation: none; }
  .card__a { transition: none; }
  html { scroll-behavior: auto; }
}
