/* tabsel.com — in the app's Terracotta theme (frontend/src/theme.ts; chosen by the user 2026-11-12 over the logo's blue),
   the logo recoloured to match (img/tabsel-logo-terracotta.svg).
   The page alternates its grounds so each part reads as its own (2026-11-12, the user: "all looks the same"):
   a light header with a shadow → the dark hero → the light modules with white cards → the spa section on cream →
   a dark band (why tabsel) → the steps on the page's ground →
   a tinted contact with a white form → the darkest footer. */
:root {
  --navy: #4e3428;         /* headings (the app's Terracotta header brown) */
  --accent: #b0502d;       /* buttons, icons, links */
  --accent-dark: #923f22;
  --ink: #2e241f;
  --muted: #6b5a4e;
  --line: #e4d6c4;
  --header: #fffaf4;
  --page: #f3ebe0;         /* the modules' ground */
  --card: #fffdf9;
  --tint: #ead9c4;         /* the contact's ground */
  --band: linear-gradient(135deg, #3a261d 0%, #4e3428 100%);
  --band-ink: #e3cfbd;
  --foot: #24170f;
  --hero: linear-gradient(135deg, #2f1f17 0%, #5e3c2c 55%, #b0502d 140%);
  --hero-ink: #f0dccb;
  --shadow: 0 1px 2px rgba(78, 52, 40, 0.06), 0 8px 24px rgba(78, 52, 40, 0.10);
  --radius: 14px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
section[id] { scroll-margin-top: 68px; } /* the sticky header's height: a menu link lands on the title, not under the header */
body {
  margin: 0;
  font: 16px/1.6 system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color: var(--ink);
  background: var(--page);
}
img { display: block; max-width: 100%; height: auto; }
a { color: var(--accent); }
h1, h2, h3 { color: var(--navy); line-height: 1.2; margin: 0 0 0.5em; }
h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); }
h3 { font-size: 1.15rem; }
.section-lead { text-align: center; color: var(--muted); max-width: 640px; margin: -0.6em auto 2.2em; }

.wrap { max-width: 1400px; margin: 0 auto; padding: 0 24px; }

.btn {
  display: inline-block;
  padding: 12px 26px;
  border: 0;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  font: inherit;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.15s, transform 0.15s;
}
.btn:hover { background: var(--accent-dark); }
.btn:disabled { opacity: 0.6; cursor: default; }
.btn--small { padding: 8px 18px; font-size: 0.95rem; }

/* ── header: light, lifted off the page by a shadow ── */
.top {
  position: sticky; top: 0; z-index: 10;
  background: var(--header);
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
}
.top__bar { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.top__logo img { width: 124px; }
.top__nav { display: flex; align-items: center; gap: 24px; }
.top__nav a:not(.btn) { color: var(--ink); text-decoration: none; font-weight: 500; }
.top__nav a:not(.btn):hover { color: var(--accent); }

/* ── hero: dark — the words and buttons on the left; on the right one card with the app's two screens turning
   (below), over two soft glows drifting behind (the user, 2026-11-19). ── */
.hero {
  position: relative; overflow: hidden;
  padding: clamp(56px, 8vw, 96px) 0;
  background: var(--hero);
  color: #fff;
}
.hero__glow { position: absolute; inset: 0; pointer-events: none; }
.hero__glow span { position: absolute; border-radius: 50%; filter: blur(90px); animation: glow-drift 24s ease-in-out infinite; }
.hero__glow span:first-child { top: -10%; left: -5%; width: 480px; height: 480px; background: #d9713f; opacity: 0.22; }
.hero__glow span:last-child {
  bottom: -25%; right: -5%; width: 560px; height: 560px; background: #f0a36c; opacity: 0.16;
  animation-duration: 28s; animation-direction: reverse;
}
@keyframes glow-drift {
  0%, 100% { transform: translate(0, 0); }
  50% { transform: translate(70px, -40px); }
}

.hero__wrap { position: relative; display: grid; grid-template-columns: 1fr 1.2fr; gap: clamp(24px, 4vw, 56px); align-items: center; }
.hero__text { animation: rise 0.8s ease-out both; }
.hero__kicker {
  margin: 0 0 14px; font-size: 0.9rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--hero-ink);
}
.hero h1 { color: #fff; font-size: clamp(2.1rem, 4.6vw, 3.4rem); margin-bottom: 0.7em; }
.hero__actions { display: flex; gap: 14px; flex-wrap: wrap; }
.hero .btn { background: #fff; color: var(--navy); }
.hero .btn:hover { background: #f1f1f1; transform: translateY(-1px); }
.hero .btn--ghost { background: transparent; color: #fff; box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.7); }
.hero .btn--ghost:hover { background: rgba(255, 255, 255, 0.12); }
@keyframes rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }

/* The stage: ONE card, the spa schedule on its front and the POS on its back, turning on the Y axis (the user,
   2026-11-19 — two crossing cards glitched as they traded the top; no tilt; bookings first). 12 s: ~5 s each side, a
   1 s flip, always the same way round (right to left, as a page turns — the other way looked backwards); a slow float.
   Drawn 640px wide and scaled with transform: scale() on .flip__scale (site.js sets --z, the float's size, the faces'
   and the stage's height). */
.hero__stage { position: relative; height: 420px; perspective: 1600px; animation: rise 0.8s 0.2s ease-out both; }
/* Centred by position (inset 0 + margin auto, its size set by site.js), never by a translate(-50%): Chrome runs the
   float on the compositor and resolves a percentage once, from the size when the animation starts — before site.js
   had sized the card that was 0, and some F5s drew the card half its height too low, cut off (2026-11-19). */
.hero__float {
  position: absolute; inset: 0; margin: auto;
  animation: float 9s ease-in-out infinite;
  transform-style: preserve-3d;
}
.flip__scale { width: 640px; transform-origin: 0 0; transform: scale(var(--z, 0.75)); transform-style: preserve-3d; }
.flip {
  position: relative; width: 640px;
  transform-style: preserve-3d;
  animation: flip 12s cubic-bezier(0.65, 0, 0.35, 1) infinite;
}
.flip .face {
  position: absolute; inset: 0; margin: 0; max-width: none;
  display: flex; flex-direction: column;
  backface-visibility: hidden; -webkit-backface-visibility: hidden;
  box-shadow: 0 30px 60px -20px rgba(0, 0, 0, 0.6), 0 14px 28px -12px rgba(176, 80, 45, 0.45);
}
.flip .face--back { transform: rotateY(180deg); }
.flip .face .mock__legend { margin-top: auto; }
.flip .mock--pos { background: #f7f1e8; }
@keyframes flip {
  0%, 42%  { transform: rotateY(0deg); }
  50%, 92% { transform: rotateY(-180deg); }
  100%     { transform: rotateY(-360deg); }
}
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-12px); }
}
@media (prefers-reduced-motion: reduce) {
  .hero__glow span, .hero__text, .hero__stage, .hero__float, .flip { animation: none; }
}

/* ── modules: light ground, two rows of white raised cards scrolling, solid icons ── */
.modules { padding: 40px 0 36px; background: var(--page); }
.modules h2 { text-align: center; margin-bottom: 0.7em; }
.modules__group {
  display: flex; align-items: center; gap: 14px;
  margin: 22px 0 10px; color: var(--accent);
  font-size: 0.9rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase;
}
.modules__group:first-of-type { margin-top: 0; }
.modules__group::after { content: ""; flex: 1; height: 1px; background: var(--line); }

/* Two rows of cards that scroll on their own, opposite ways, in an endless loop (the user, 2026-11-19): site.js
   copies each row's cards once (hidden from screen readers) and sets the speed; the track moves by one set. A row
   stops under the mouse; reduced motion = no copies, the cards wrap and stand still. */
.marquee {
  overflow: hidden; padding: 6px 0 12px;
  -webkit-mask-image: linear-gradient(to right, transparent, #000 5%, #000 95%, transparent);
  mask-image: linear-gradient(to right, transparent, #000 5%, #000 95%, transparent);
}
.marquee__track { display: flex; gap: 22px; width: max-content; }
.marquee__track .card {
  flex: none; width: min(380px, 84vw); padding: 18px 22px;
  display: grid; grid-template-columns: 40px 1fr; grid-template-rows: auto 1fr; align-content: start;
  column-gap: 14px; align-items: center;
}
/* In the rows: the icon beside the title, the text under both — shorter cards, the section fits a screen. */
.marquee__track .card .card__icon { width: 40px; height: 40px; padding: 9px; margin: 0; }
.marquee__track .card h3 { margin: 0; }
.marquee__track .card p { grid-column: 1 / -1; margin-top: 10px; align-self: start; font-size: 0.94rem; line-height: 1.5; }
.marquee.is-moving .marquee__track { animation: marquee var(--dur, 60s) linear infinite; }
.marquee--right.is-moving .marquee__track { animation-direction: reverse; }
.marquee:hover .marquee__track { animation-play-state: paused; }
/* --shift in px from site.js (one set of cards + a gap), not a percentage: the compositor resolves that once. */
@keyframes marquee { to { transform: translateX(var(--shift, -50%)); } }
@media (prefers-reduced-motion: reduce) {
  .marquee { -webkit-mask-image: none; mask-image: none; }
  .marquee__track { flex-wrap: wrap; width: auto; }
}
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 22px; }
.card {
  position: relative;
  padding: 26px 24px 24px;
  border-radius: var(--radius);
  background: var(--card);
  box-shadow: var(--shadow);
  border-top: 3px solid var(--accent);
  transition: transform 0.15s, box-shadow 0.15s;
}
.card:hover { transform: translateY(-3px); box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05), 0 14px 32px rgba(0, 0, 0, 0.12); }
.card__icon {
  width: 46px; height: 46px; padding: 10px; margin-bottom: 16px;
  border-radius: 12px;
  background: var(--accent);
  fill: none; stroke: #fff; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round;
}
.card p { margin: 0; color: var(--muted); }

/* ── spa: its own light ground (the header's cream) — heading, the schedule mockup, the points as cards ── */
.spa { padding: 96px 0; background: var(--header); border-top: 1px solid var(--line); }
.spa__head { text-align: center; max-width: 760px; margin: 0 auto 36px; }
.spa__head p { color: var(--muted); }
.spa__kicker {
  margin: 0 0 10px; font-size: 0.85rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--accent) !important;
}
.spa__list {
  list-style: none; margin: 40px 0 0; padding: 0;
  display: grid; grid-template-columns: repeat(auto-fill, minmax(400px, 1fr)); gap: 16px;
}
.spa__list li {
  padding: 18px 22px;
  border-radius: var(--radius);
  background: var(--card);
  box-shadow: var(--shadow);
  border-left: 4px solid var(--accent);
  color: var(--muted);
}
.spa__list strong { display: block; color: var(--navy); font-size: 1.05rem; margin-bottom: 2px; }
.spa__cta { text-align: center; margin: 36px 0 0; }

/* ── mockups of the app: drawn in HTML (no screenshots, no real data), framed as a window ── */
.mock {
  margin: 0 auto 44px; max-width: 920px;
  border-radius: var(--radius); overflow: hidden;
  background: #fff; box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05), 0 18px 48px rgba(78, 52, 40, 0.18);
  font-size: 13px; line-height: 1.3;
}
.mock__bar { display: flex; align-items: center; gap: 6px; padding: 10px 14px; background: var(--navy); color: #f0dccb; }
.mock__bar span { width: 10px; height: 10px; border-radius: 50%; background: rgba(255, 255, 255, 0.25); }
.mock__bar b { margin-left: 10px; font-weight: 600; font-size: 12.5px; }
.mock__legend {
  display: flex; flex-wrap: wrap; gap: 8px 18px; padding: 10px 16px;
  border-top: 1px solid var(--line); background: var(--card); color: var(--muted); font-size: 12.5px;
}
.lg::before { content: ""; display: inline-block; width: 12px; height: 12px; border-radius: 3px; margin-right: 6px; vertical-align: -1px; }
.lg--free::before { background: #f4ece2; border: 1px solid #cdb9a4; }
.lg--busy::before { background: #b0502d; }
.lg--res::before { background: #fff6e0; border: 2px solid #d39a1f; }
.lg--confirmed::before { background: #b0502d; }
.lg--arrived::before { background: #3f7d4e; }
.lg--done::before { background: #d9cbbb; }
.lg--closed::before { background: repeating-linear-gradient(135deg, #e9e1d7 0 3px, #f6f1ea 3px 6px); border: 1px solid #ddd0c1; }

/* the POS table map */
.mock__tabs { display: flex; gap: 4px; padding: 8px 12px 0; background: #efe6da; }
.mock__tabs span { padding: 7px 16px; border-radius: 8px 8px 0 0; color: var(--muted); font-weight: 600; }
.mock__tabs .is-on { background: #f7f1e8; color: var(--navy); }
.plan {
  position: relative; aspect-ratio: 5 / 2.6; background: #f7f1e8;
  background-image: radial-gradient(rgba(78, 52, 40, 0.07) 1px, transparent 1px); background-size: 18px 18px;
}
.tbl {
  position: absolute; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px;
  border-radius: 10px; background: #f4ece2; border: 1px solid #cdb9a4; color: var(--navy);
  box-shadow: 0 2px 6px rgba(78, 52, 40, 0.12);
}
.tbl b { font-size: clamp(13px, 2.2vw, 20px); }
.tbl i { font-style: normal; font-size: clamp(9px, 1.3vw, 12px); font-weight: 600; white-space: nowrap; }
.tbl--round { border-radius: 50%; aspect-ratio: 1; }
.tbl--busy { background: #b0502d; border-color: #923f22; color: #fff; }
.tbl--res { background: #fff6e0; border: 2px solid #d39a1f; }
.tbl--res i { color: #8a5a00; }

/* the spa schedule: a column per therapist / room, time down (as the app's vertical view) */
.sch { background: #fff; }
.sch__grid {
  --hr: 64px;
  position: relative; display: grid; grid-template-columns: 56px repeat(4, minmax(130px, 1fr));
  min-width: 600px;
}
.sch__corner, .sch__col-h { height: 64px; box-sizing: border-box; border-bottom: 1px solid var(--line); background: var(--card); }
.sch__col-h { padding: 8px 10px; border-left: 1px solid var(--line); }
.sch__col-h b { display: block; color: var(--navy); font-size: 14px; }
.sch__col-h i { font-style: normal; color: var(--muted); font-size: 12px; }
.sch__grp { display: block; min-height: 15px; font-size: 10.5px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--accent); }
.sch__axis, .sch__col { position: relative; height: calc(var(--hr) * 5); }
.sch__axis span { position: absolute; right: 8px; transform: translateY(-50%); color: var(--muted); font-size: 11.5px; }
.sch__axis span:first-child { transform: none; }
.sch__col {
  border-left: 1px solid var(--line);
  background-image:
    linear-gradient(to bottom, #eadfd2 1px, transparent 1px),
    linear-gradient(to bottom, #f4ede4 1px, transparent 1px);
  background-size: 100% var(--hr), 100% calc(var(--hr) / 2);
}
.closed {
  position: absolute; left: 0; right: 0;
  background: repeating-linear-gradient(135deg, #e9e1d7 0 6px, #f6f1ea 6px 12px);
}
.appt {
  position: absolute; left: 4px; right: 4px; overflow: hidden;
  padding: 5px 8px; border-radius: 7px; margin-top: 1px;
  box-sizing: border-box; border: 1px solid rgba(0, 0, 0, 0.06);
}
.appt b { display: block; font-size: 12.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.appt i { display: block; font-style: normal; font-size: 11.5px; opacity: 0.9; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.appt--confirmed { background: #b0502d; color: #fff; }
.appt--arrived { background: #3f7d4e; color: #fff; }
.appt--done { background: #e6dacd; color: #5b4a3f; }
.sch__now {
  position: absolute; left: 56px; right: 0; height: 2px; background: #c62828; pointer-events: none;
  margin-top: 64px; /* below the column headings */
}
.sch__now::before { content: ""; position: absolute; left: -5px; top: -4px; width: 10px; height: 10px; border-radius: 50%; background: #c62828; }

/* ── how you start: numbered steps on the page's ground ── */
.start { padding: 96px 0; background: var(--page); }
.start h2 { text-align: center; margin-bottom: 1em; }
.steps {
  list-style: none; margin: 0; padding: 0; counter-reset: step;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 18px;
}
.steps li {
  counter-increment: step; position: relative;
  padding: 58px 20px 22px; border-radius: var(--radius); background: var(--card); box-shadow: var(--shadow);
  color: var(--muted); font-size: 0.95rem;
}
.steps li::before {
  content: counter(step); position: absolute; top: 18px; left: 20px;
  width: 30px; height: 30px; border-radius: 50%; background: var(--accent); color: #fff;
  display: grid; place-items: center; font-weight: 700;
}
.steps strong { display: block; color: var(--navy); font-size: 1.05rem; margin-bottom: 4px; }

/* ── why tabsel: a dark band, four numbered points ── */
.how { padding: 96px 0; background: var(--band); color: var(--band-ink); }
.how h2 { text-align: center; margin-bottom: 1.4em; color: #fff; }
.how__list {
  list-style: none; margin: 0; padding: 0; counter-reset: why;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 18px;
}
.how__list li {
  counter-increment: why;
  padding: 24px 22px;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
}
.how__list li::before {
  content: counter(why); display: grid; place-items: center;
  width: 34px; height: 34px; margin-bottom: 14px; border-radius: 50%;
  background: var(--accent); color: #fff; font-weight: 700;
}
.how__list strong { display: block; color: #fff; font-size: 1.1rem; margin-bottom: 6px; }

/* ── contact: a tinted ground, the heading above the form, the form as a white card ── */
.contact { padding: 96px 0; background: var(--tint); }
.contact__wrap { max-width: 720px; }
.contact__head { text-align: center; margin-bottom: 28px; }
.contact__head p { margin: 0; }
.contact p { color: var(--muted); }
.form { display: grid; gap: 14px; padding: 30px; border-radius: var(--radius); background: var(--card); box-shadow: var(--shadow); }
.form label { display: grid; gap: 6px; font-weight: 500; font-size: 0.95rem; }
.form input, .form textarea {
  font: inherit;
  padding: 11px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
}
.form input:focus, .form textarea:focus { outline: 2px solid var(--accent); outline-offset: 0; border-color: var(--accent); }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form .btn { justify-self: start; }
.form__ts:empty { display: none; }
.form__hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.form__note { margin: 0; }
.form__note:empty { display: none; }
.form__note.ok { color: #137333; }
.form__note.err { color: #b3261e; }

/* ── footer: the darkest ── */
.foot { padding: 30px 0; background: var(--foot); color: rgba(255, 255, 255, 0.65); font-size: 0.95rem; }
.foot a { color: #fff; text-decoration: none; }
.foot a:hover { text-decoration: underline; }
.foot__bar { display: flex; gap: 12px 24px; flex-wrap: wrap; align-items: center; justify-content: space-between; }
.foot__links { display: flex; flex-wrap: wrap; gap: 4px 10px; align-items: center; }
.foot__links a { white-space: nowrap; }
.foot__links span { color: rgba(255, 255, 255, 0.35); }

/* ── a text page (privacy, terms): one readable column on white ── */
.doc { padding: 64px 0 96px; background: var(--card); }
.doc .wrap { max-width: 780px; }
.doc h1 { font-size: clamp(1.8rem, 4vw, 2.4rem); }
.doc h2 { font-size: 1.25rem; margin-top: 1.8em; }
.doc p, .doc li { color: var(--ink); }
.doc .doc__date { color: var(--muted); margin-top: -0.4em; }
.doc .draft { padding: 12px 16px; border-radius: 8px; background: #fff3cd; border: 1px solid #e6c65c; color: #6b4e00; }
.doc mark { background: #fff3cd; padding: 0 3px; }

@media (max-width: 760px) {
  .top__nav a:not(.btn) { display: none; }
  .hero__wrap { grid-template-columns: 1fr; gap: 24px; }
  .form__row { grid-template-columns: 1fr; }
  .modules, .spa, .how, .start, .contact { padding: 64px 0; }
  .spa__list { grid-template-columns: 1fr; }
}
