/* Serein — page modules, motion and responsive rules (loaded after soft-glass.css) */

/* ── accordion ───────────────────────────────────────────────────────── */
.acc-group { display: flex; flex-direction: column; }
.acc {
  border-top: 1px solid color-mix(in srgb, var(--border) 88%, transparent);
}
.acc:last-child { border-bottom: 1px solid color-mix(in srgb, var(--border) 88%, transparent); }
.acc-trigger {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 22px 4px;
  background: none;
  border: 0;
  text-align: left;
  font-family: var(--font-display);
  font-size: 18px;
  letter-spacing: -0.01em;
  color: var(--fg);
  transition: color 0.2s ease;
}
.acc-trigger:hover { color: var(--fg); text-decoration: underline; text-underline-offset: 4px; text-decoration-color: var(--accent); text-decoration-thickness: 1px; }
.acc-icon {
  position: relative;
  flex: none;
  width: 30px; height: 30px;
  border: 1px solid color-mix(in srgb, var(--border) 75%, var(--muted));
  border-radius: 50%;
  transition: background 0.25s ease, border-color 0.25s ease;
}
.acc-icon::before, .acc-icon::after {
  content: "";
  position: absolute;
  top: 50%; left: 50%;
  width: 10px; height: 1px;
  background: var(--fg);
  transform: translate(-50%, -50%);
  transition: transform 0.25s ease, opacity 0.25s ease;
}
.acc-icon::after { transform: translate(-50%, -50%) rotate(90deg); }
.acc-trigger[aria-expanded="true"] .acc-icon { background: var(--fg); border-color: var(--fg); }
.acc-trigger[aria-expanded="true"] .acc-icon::before,
.acc-trigger[aria-expanded="true"] .acc-icon::after { background: var(--pearl); }
.acc-trigger[aria-expanded="true"] .acc-icon::after { transform: translate(-50%, -50%) rotate(0deg); opacity: 0; }
.acc-panel {
  display: grid;
  grid-template-rows: 1fr;
  transition: grid-template-rows 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}
.js .acc-panel { grid-template-rows: 0fr; }
.acc-panel > div { overflow: hidden; }
.acc-panel p, .acc-panel ul { padding: 0 4px 24px; color: var(--muted); font-size: 14.5px; line-height: 1.7; max-width: 74ch; }
.acc-panel ul { display: flex; flex-direction: column; gap: 8px; padding-top: 4px; }
.acc-panel li { display: flex; gap: 10px; }
.acc-panel li::before { content: "—"; color: var(--ink-soft); }
.js .acc.is-open .acc-panel { grid-template-rows: 1fr; }

/* ── filters ─────────────────────────────────────────────────────────── */
.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 8px;
  border-radius: var(--r-pill);
  background: color-mix(in srgb, var(--white) 55%, transparent);
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(18px);
  box-shadow: var(--glass-inner);
  align-self: flex-start;
}
.filter-btn {
  min-height: 44px;
  padding: 0 18px;
  border: 1px solid transparent;
  border-radius: var(--r-pill);
  background: transparent;
  color: var(--muted);
  font-size: 13.5px;
  white-space: nowrap;
  transition: background 0.22s ease, color 0.22s ease, border-color 0.22s ease;
}
.filter-btn:hover { background: color-mix(in srgb, var(--white) 70%, transparent); color: var(--fg); }
.filter-btn[aria-pressed="true"] {
  background: var(--fg);
  border-color: var(--fg);
  color: var(--pearl);
}
.filter-result { font-size: 13px; color: var(--muted); }
.filter-result strong { color: var(--fg); font-weight: 500; }

/* ── legal / prose ───────────────────────────────────────────────────── */
.prose { max-width: 72ch; }
.prose h2 { font-size: clamp(24px, 2.2vw, 32px); margin: 42px 0 14px; letter-spacing: -0.02em; }
.prose h3 { font-size: 19px; margin: 28px 0 10px; }
.prose p { color: var(--muted); font-size: 15px; line-height: 1.75; margin-bottom: 14px; }
.prose ul { margin: 8px 0 18px; display: flex; flex-direction: column; gap: 9px; }
.prose li { position: relative; padding-left: 20px; color: var(--muted); font-size: 15px; line-height: 1.7; }
.prose li::before { content: ""; position: absolute; left: 2px; top: 10px; width: 5px; height: 5px; border-radius: 50%; background: var(--ink-soft); opacity: 0.75; }
.prose a { color: var(--fg); border-bottom: 1px solid color-mix(in srgb, var(--fg) 30%, transparent); }
.prose strong { color: var(--fg); font-weight: 500; }
.legal-layout { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: clamp(32px, 5vw, 72px); align-items: start; }
.legal-nav { position: sticky; top: 108px; display: flex; flex-direction: column; gap: 4px; padding: 12px; }
.legal-nav button {
  text-align: left;
  background: none;
  border: 0;
  padding: 12px 14px;
  border-radius: 12px;
  font-size: 13.5px;
  color: var(--muted);
  transition: background 0.2s ease, color 0.2s ease;
}
.legal-nav button:hover { background: color-mix(in srgb, var(--white) 60%, transparent); color: var(--fg); }
.legal-nav button[aria-selected="true"] { background: color-mix(in srgb, var(--lilac) 34%, transparent); color: var(--fg); font-weight: 500; }
.legal-doc[hidden] { display: none; }
.legal-doc .doc-meta { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 26px; }

/* ── misc content blocks ─────────────────────────────────────────────── */
.stat-strip { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; }
.stat-cell { padding: 4px 28px; border-left: 1px solid color-mix(in srgb, var(--border) 85%, transparent); }
.stat-cell:first-child { border-left: 0; padding-left: 0; }
.stat-cell .stat-num { font-family: var(--font-display); font-size: clamp(34px, 3.4vw, 48px); line-height: 1; letter-spacing: -0.04em; color: var(--fg); }
.stat-cell .stat-label { margin-top: 8px; font-size: 12.5px; color: var(--muted); line-height: 1.5; max-width: 22ch; }

.info-row { display: flex; gap: 16px; padding: 18px 0; border-top: 1px solid color-mix(in srgb, var(--border) 85%, transparent); }
.info-row .k { flex: none; width: 132px; font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); padding-top: 3px; }
.info-row .v { font-size: 14.5px; color: var(--fg); line-height: 1.6; }

.check-list { display: flex; flex-direction: column; gap: 12px; }
.check-list li { display: flex; gap: 11px; align-items: flex-start; font-size: 14.5px; color: var(--muted); line-height: 1.6; }
.check-list li svg { width: 17px; height: 17px; flex: none; margin-top: 4px; color: var(--ink-soft); }

.icon-tile {
  width: 44px; height: 44px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: color-mix(in srgb, var(--white) 65%, transparent);
  border: 1px solid var(--glass-border);
  color: var(--fg);
  flex: none;
}
.icon-tile svg { width: 19px; height: 19px; }

.pill-row { display: flex; flex-wrap: wrap; gap: 8px; }

/* ── reveal motion ───────────────────────────────────────────────────── */
.js [data-reveal] {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.8s ease, transform 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}
.js [data-reveal].is-in { opacity: 1; transform: none; }
.js [data-reveal][data-delay="1"] { transition-delay: 0.08s; }
.js [data-reveal][data-delay="2"] { transition-delay: 0.16s; }
.js [data-reveal][data-delay="3"] { transition-delay: 0.24s; }
@media (prefers-reduced-motion: reduce) {
  .js [data-reveal] { opacity: 1; transform: none; transition: none; }
  .t-card, .t-card .t-media img, .t-reveal, .j-card { transition: none; }
  .acc-panel, .acc-trigger, .acc-icon, .acc-icon::before, .acc-icon::after { transition: none; }
}

/* ── responsive ──────────────────────────────────────────────────────── */
@media (max-width: 1080px) {
  .hero-grid { grid-template-columns: 1fr; gap: 48px; }
  .hero h1 { max-width: 15ch; }
  .hero-visual { max-width: 560px; }
  .hero-badge { left: 12px; bottom: 20px; }
  .hero-pill { right: 12px; top: 14px; }
  .footer-top { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
  .split { grid-template-columns: 1fr; gap: 40px; }
  .section-head { flex-direction: column; align-items: flex-start; gap: 18px; }
  .compare-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .stat-strip { grid-template-columns: 1fr; gap: 0; }
  .stat-cell { border-left: 0; border-top: 1px solid var(--border); padding: 20px 0; }
  .stat-cell:first-child { border-top: 0; padding-top: 0; }
}
@media (max-width: 960px) {
  .grid-3, .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid-3 > :last-child:nth-child(odd) { grid-column: 1 / -1; }
  .j-feature { grid-template-columns: 1fr; }
  .legal-layout { grid-template-columns: 1fr; }
  .legal-nav { position: static; flex-direction: row; flex-wrap: wrap; }
  .legal-nav button { flex: 1 1 auto; }
}
@media (max-width: 760px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
  .cta-band { border-radius: 28px; padding: 26px 14px; }
  .cta-inner { padding: 26px 20px; }
  .footer-shell { border-radius: 26px; }
  .hero-notes { gap: 10px 14px; }
  .m-card .m-desc { min-height: 0; }
  .info-row { flex-direction: column; gap: 6px; }
  .info-row .k { width: auto; }
  .hero-badge { position: static; margin-top: 14px; max-width: none; }
  .hero-pill { position: static; margin-bottom: 10px; }
  .filter-bar { border-radius: var(--r-md); position: static; }
  .stat-strip { margin-inline: 0; }
  .acc-trigger { font-size: 16.5px; padding: 20px 0; }
}
@media (max-width: 520px) {
  .hero { padding-top: 118px; }
  .page-hero { padding-top: 122px; }
  .hero-ctas .btn { flex: 1 1 auto; }
  .btn { padding: 0 20px; }
  .panel { padding: 24px 20px; }
  .hero-visual .media { border-radius: 120px 120px 26px 26px; }
  .t-body { padding: 18px 18px 20px; }
  .p-body { padding: 18px 18px 22px; }
  .quote-card { padding: 24px 20px; }
  .site-header { top: 10px; }
  .footer-shell { padding-inline: 20px; }
}

/* ── utilities ───────────────────────────────────────────────────────── */
.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}
.skip-link {
  position: fixed;
  top: -60px;
  left: 20px;
  z-index: 100;
  padding: 12px 20px;
  border-radius: var(--r-pill);
  background: var(--fg);
  color: var(--pearl);
  font-size: 14px;
  transition: top 0.2s ease;
}
.skip-link:focus { top: 16px; }
body.menu-open { overflow: hidden; }
.mt-sm { margin-top: 12px; }
.mt-md { margin-top: 24px; }
.mt-lg { margin-top: 36px; }
.mb-md { margin-bottom: 24px; }
.center { text-align: center; }
.center .lead { margin-inline: auto; }
.max-60 { max-width: 60ch; }
.max-48 { max-width: 48ch; }

/* hidden must win over component display rules */
[hidden] { display: none !important; }

/* ── comparison table ────────────────────────────────────────────────── */
.compare-wrap { overflow: hidden; border-radius: var(--r-lg); }
.ds-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.ds-table th, .ds-table td { padding: 16px 18px; text-align: left; border-bottom: 1px solid color-mix(in srgb, var(--border) 85%, transparent); vertical-align: top; }
.ds-table thead th { font-family: var(--font-body); font-weight: 500; font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); background: color-mix(in srgb, var(--white) 45%, transparent); }
.ds-table thead th + th { border-left: 1px solid color-mix(in srgb, var(--border) 70%, transparent); }
.ds-table thead th.is-highlight { background: color-mix(in srgb, var(--lilac) 26%, transparent); color: var(--fg); }
.ds-table tbody tr:last-child td { border-bottom: 0; }
.ds-table td:first-child { color: var(--fg); font-weight: 500; width: 30%; }
.ds-table td:not(:first-child) { color: var(--muted); }
.ds-table td.is-highlight { background: color-mix(in srgb, var(--lilac) 13%, transparent); color: var(--fg); }
.ds-table .yes { color: var(--accent); font-weight: 500; }
@media (max-width: 760px) {
  .ds-table thead { display: none; }
  .ds-table, .ds-table tbody, .ds-table tr, .ds-table td { display: block; width: 100%; }
  .ds-table tr { padding: 18px 20px; border-bottom: 1px solid var(--border); }
  .ds-table tr:last-child { border-bottom: 0; }
  .ds-table td { border: 0; padding: 7px 0; display: flex; justify-content: space-between; gap: 18px; text-align: right; }
  .ds-table td:first-child { display: block; width: 100%; font-family: var(--font-display); font-size: 18px; padding-bottom: 10px; }
  .ds-table td:not(:first-child)::before { content: attr(data-label); color: var(--muted); font-size: 11px; letter-spacing: 0.09em; text-transform: uppercase; text-align: left; }
  .ds-table td.is-highlight { background: transparent; }
}

/* ── article layout ──────────────────────────────────────────────────── */
.article-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: clamp(32px, 5vw, 72px);
  align-items: start;
}
.article-aside { position: sticky; top: 108px; }
@media (max-width: 960px) {
  .article-layout { grid-template-columns: 1fr; }
  .article-aside { position: static; }
}

/* booking + consent specifics */
.booking-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  align-items: start;
  gap: clamp(24px, 3.4vw, 44px);
}
@media (max-width: 960px) {
  .booking-layout { grid-template-columns: 1fr; }
}
.consent-wrap .error {
  display: none;
  margin-top: 6px;
  font-size: 12px;
  color: var(--danger);
  line-height: 1.4;
}
.consent-wrap.has-error .error { display: block; }
.consent-wrap.has-error .consent { color: var(--danger); }

/* anchor offset for fixed header */
[id] { scroll-margin-top: 112px; }

/* legal table of contents */
.legal-toc { position: sticky; top: 108px; padding: 18px; display: flex; flex-direction: column; gap: 2px; }
.legal-toc a {
  display: block;
  padding: 11px 14px;
  border-radius: 12px;
  font-size: 13.5px;
  color: var(--muted);
  transition: background 0.2s ease, color 0.2s ease;
}
.legal-toc a:hover { background: color-mix(in srgb, var(--white) 65%, transparent); color: var(--fg); }
.legal-toc a.is-active { background: color-mix(in srgb, var(--lilac) 32%, transparent); color: var(--fg); font-weight: 500; }
.legal-doc { margin-bottom: clamp(28px, 4vw, 44px); }
.legal-doc .prose { max-width: none; }
.legal-doc .doc-meta { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 18px; }
@media (max-width: 960px) {
  .legal-toc { position: static; flex-direction: row; flex-wrap: wrap; }
  .legal-toc a { flex: 1 1 auto; text-align: center; }
}

/* footer social links */
.footer-social { display: flex; flex-wrap: wrap; gap: 18px; margin-top: 16px; font-size: 12.5px; }
.footer-social a {
  color: var(--muted);
  border-bottom: 1px solid color-mix(in oklab, var(--muted) 40%, transparent);
  padding-bottom: 2px;
  transition: color 0.2s ease, border-color 0.2s ease;
}
.footer-social a:hover { color: var(--fg); border-color: var(--fg); }
