/* ==========================================================================
   Rankinsoft · Meeting landing page (light, modern)
   ========================================================================== */

:root {
  --bg: #f6f7fb;
  --bg-soft: #eef2ff;
  --surface: #ffffff;
  --surface-2: #f8fafc;
  --line: #e4e8f0;
  --line-strong: #cbd3e1;
  --text: #0f172a;
  --text-2: #334155;
  --muted: #64748b;
  --brand: #4f46e5;
  --brand-600: #4338ca;
  --brand-soft: #eef2ff;
  --accent: #0891b2;
  --ok: #059669;
  --ok-soft: #ecfdf5;
  --warn: #b45309;
  --warn-soft: #fffbeb;
  --busy: #dc2626;
  --busy-soft: #fef2f2;
  --radius: 18px;
  --radius-sm: 12px;
  --shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.05);
  --shadow: 0 1px 2px rgba(15, 23, 42, 0.04), 0 12px 32px -12px rgba(15, 23, 42, 0.12);
  --shadow-lg: 0 2px 4px rgba(15, 23, 42, 0.04), 0 30px 60px -20px rgba(30, 41, 99, 0.25);
  --container: 1160px;
  color-scheme: light;
}

*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 88px; }

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font-family: Inter, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3 { line-height: 1.15; margin: 0; letter-spacing: -0.025em; }
p { margin: 0; }
button, input, select, textarea { font: inherit; color: inherit; }

.container { width: min(var(--container), calc(100% - 40px)); margin-inline: auto; }
.narrow { width: min(800px, calc(100% - 40px)); }
.muted { color: var(--muted); }
.center { text-align: center; margin-inline: auto; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
[hidden] { display: none !important; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  padding: 0.7rem 1.15rem; border-radius: 12px; border: 1px solid transparent;
  font-weight: 600; font-size: 0.95rem; text-decoration: none; cursor: pointer;
  background: none; white-space: nowrap;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}
.btn:focus-visible, .chip:focus-visible, .slot:focus-visible, .date-chip:focus-visible, .team-card:focus-visible {
  outline: 3px solid rgba(79, 70, 229, 0.35); outline-offset: 2px;
}
.btn-primary {
  color: #fff; background: var(--brand);
  box-shadow: 0 1px 2px rgba(79, 70, 229, 0.3), 0 8px 20px -8px rgba(79, 70, 229, 0.6);
}
.btn-primary:hover { background: var(--brand-600); transform: translateY(-1px); }
.btn-ghost { color: var(--text); border-color: var(--line-strong); background: var(--surface); box-shadow: var(--shadow-sm); }
.btn-ghost:hover { border-color: var(--text-2); transform: translateY(-1px); }
.btn-lg { padding: 0.9rem 1.4rem; font-size: 1rem; border-radius: 14px; }
.btn-sm { padding: 0.5rem 0.95rem; font-size: 0.875rem; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: 0.7; cursor: wait; transform: none; }

.spinner {
  display: none; width: 1.1em; height: 1.1em; border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.4); border-top-color: #fff;
  animation: spin 0.8s linear infinite;
}
.btn.loading .spinner { display: inline-block; }
.btn.loading .btn-label { opacity: 0.8; }

/* ---------- Surfaces ---------- */
.glass {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

/* ---------- Nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: saturate(180%) blur(12px); -webkit-backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--line);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 66px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 800; font-size: 1.02rem; text-decoration: none; letter-spacing: -0.01em; }
.logo {
  width: 32px; height: 32px; border-radius: 9px; display: grid; place-items: center;
  font-weight: 800; color: #fff; background: var(--brand);
}
.nav-links { display: flex; gap: 28px; }
.nav-links a { text-decoration: none; color: var(--muted); font-size: 0.92rem; font-weight: 500; transition: color 0.2s; }
.nav-links a:hover { color: var(--text); }

/* ---------- Hero ---------- */
.hero {
  padding: 72px 0 40px;
  overflow-x: clip;
  background:
    radial-gradient(900px 480px at 0% 0%, rgba(79, 70, 229, 0.10), transparent 60%),
    radial-gradient(700px 420px at 100% 10%, rgba(8, 145, 178, 0.10), transparent 60%),
    var(--bg);
}
.hero-grid { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 64px; align-items: center; }
.pill {
  display: inline-flex; align-items: center; gap: 10px; padding: 6px 14px;
  border-radius: 999px; border: 1px solid #c7d2fe; background: #fff;
  font-size: 0.84rem; font-weight: 600; color: var(--brand-600);
}
.pulse {
  width: 8px; height: 8px; border-radius: 50%; background: var(--ok); position: relative; flex: none;
}
.pulse::after {
  content: ""; position: absolute; inset: -4px; border-radius: 50%;
  border: 2px solid var(--ok); opacity: 0; animation: ping 2s ease-out infinite;
}
.hero h1, .hero-copy h1 {
  margin-top: 22px; font-size: clamp(2.4rem, 5vw, 3.9rem); font-weight: 800; letter-spacing: -0.04em; line-height: 1.05;
}
.grad { color: var(--brand); }
.lead { margin-top: 20px; font-size: 1.1rem; color: var(--muted); max-width: 540px; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.perks { list-style: none; padding: 0; margin: 26px 0 0; display: flex; flex-wrap: wrap; gap: 10px 20px; color: var(--text-2); font-size: 0.92rem; }
.perks li { display: inline-flex; align-items: center; gap: 8px; }
.check-ico {
  width: 20px; height: 20px; border-radius: 50%; display: grid; place-items: center;
  background: var(--ok-soft); color: var(--ok); font-size: 0.7rem; font-weight: 800;
}

.hero-visual { position: relative; margin: 24px 0 0 24px; }
.preview { padding: 26px; box-shadow: var(--shadow-lg); }
.preview-top { display: flex; justify-content: space-between; align-items: center; }
.preview-label { font-size: 0.74rem; text-transform: uppercase; letter-spacing: 0.12em; color: var(--muted); font-weight: 700; }
.live { display: inline-flex; align-items: center; gap: 8px; font-size: 0.8rem; color: var(--ok); font-weight: 700; }
.preview-who { display: flex; align-items: center; gap: 12px; margin-top: 20px; }
.preview-who strong { display: block; font-size: 1rem; }
.preview-who small { color: var(--muted); }
.preview-time {
  margin-top: 18px; font-size: 1.45rem; font-weight: 700; letter-spacing: -0.02em; white-space: nowrap;
}
.preview-slots { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 16px; }
.preview-slots span {
  text-align: center; padding: 9px 6px; border-radius: 10px; font-size: 0.86rem; font-weight: 600;
  background: var(--surface-2); border: 1px solid var(--line); color: var(--muted);
}
.preview-slots span.on { border-color: #a7f3d0; color: var(--ok); background: var(--ok-soft); }
.preview-foot { margin-top: 20px; padding-top: 16px; border-top: 1px solid var(--line); }
.teams-badge { display: inline-flex; align-items: center; gap: 8px; color: var(--text-2); font-size: 0.88rem; font-weight: 500; }
.teams-badge svg { color: var(--brand); }

.float-card {
  position: absolute; display: flex; align-items: center; gap: 12px; padding: 12px 16px;
  left: -24px; top: -22px; min-width: 230px; box-shadow: var(--shadow-lg);
}
.float-card strong { display: block; font-size: 0.92rem; }
.float-card small { color: var(--muted); font-size: 0.8rem; }
.ff-dot { width: 10px; height: 10px; border-radius: 50%; flex: none; }
.ff-dot.ok { background: var(--ok); box-shadow: 0 0 0 5px var(--ok-soft); }

/* skeletons */
.skeleton-line, .skeleton-round, .skeleton-card {
  background: linear-gradient(90deg, #eef1f6 25%, #f8fafc 50%, #eef1f6 75%);
  background-size: 200% 100%; animation: shimmer 1.4s linear infinite; border-radius: 10px;
}
.skeleton-line { display: block; height: 14px; }
.skeleton-round { border-radius: 50%; width: 44px; height: 44px; }
.skeleton-card { min-height: 220px; border-radius: var(--radius); }
.w-60 { width: 60%; } .w-80 { width: 80%; }

/* ---------- Strip ---------- */
.strip { padding: 22px 0; border-block: 1px solid var(--line); background: #fff; }
.strip-inner { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 12px 24px; color: var(--muted); font-weight: 600; font-size: 0.9rem; }
.strip-inner i { width: 4px; height: 4px; border-radius: 50%; background: var(--line-strong); }

/* ---------- Sections ---------- */
.section { padding: 96px 0; }
.section.alt { background: #fff; border-block: 1px solid var(--line); }
.eyebrow {
  display: inline-block; color: var(--brand); font-size: 0.78rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.14em;
}
.section-head { max-width: 640px; margin-bottom: 44px; }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head h2 { margin: 12px 0 12px; font-size: clamp(1.8rem, 3.4vw, 2.6rem); font-weight: 800; }
.section-head p { font-size: 1.05rem; }

.grid-3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(270px, 1fr)); gap: 20px; }

/* services */
.card { padding: 26px; transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease; }
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); border-color: #dfe3ec; }
.card h3 { font-size: 1.08rem; margin: 18px 0 8px; font-weight: 700; }
.card h3 a { color: inherit; text-decoration: none; }
.card h3 a:hover { color: var(--brand); }
.card p { color: var(--muted); font-size: 0.95rem; }
.icon-tile {
  width: 46px; height: 46px; border-radius: 13px; display: grid; place-items: center;
  color: var(--brand); background: var(--brand-soft);
}
.icon-tile svg { width: 22px; height: 22px; }

/* experts */
.expert { padding: 24px; display: flex; flex-direction: column; gap: 16px; transition: transform 0.25s ease, box-shadow 0.25s ease; }
.expert:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.expert-head { display: flex; align-items: center; gap: 14px; }
.avatar {
  width: 52px; height: 52px; border-radius: 16px; flex: none; display: grid; place-items: center;
  font-weight: 700; color: var(--brand-600); font-size: 1rem; background: var(--brand-soft);
  position: relative; overflow: hidden;
}
.avatar-sm { width: 44px; height: 44px; border-radius: 14px; font-size: 0.9rem; }
.avatar img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.expert h3 { font-size: 1.08rem; font-weight: 700; }
.expert .role { color: var(--muted); font-size: 0.9rem; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; }
.tag { font-size: 0.78rem; padding: 4px 10px; border-radius: 999px; border: 1px solid var(--line); color: var(--muted); background: var(--surface-2); }
.status {
  display: inline-flex; align-items: center; gap: 8px; width: fit-content;
  font-size: 0.84rem; font-weight: 600; padding: 5px 11px; border-radius: 999px;
}
.status::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.status.ok { color: var(--ok); background: var(--ok-soft); }
.status.busy { color: var(--warn); background: var(--warn-soft); }
.expert .btn { margin-top: auto; }

/* booking */
.booking-grid { display: grid; grid-template-columns: minmax(0, 1fr) 330px; gap: 24px; align-items: start; }
.booking-grid > * { min-width: 0; }
.book-card { padding: 30px; }
.step + .step { margin-top: 30px; padding-top: 28px; border-top: 1px solid var(--line); }
.step-title { display: flex; align-items: center; gap: 12px; font-weight: 700; font-size: 1.02rem; margin-bottom: 16px; }
.step-title small { font-weight: 500; font-size: 0.85rem; margin-left: 4px; }
.step-no {
  width: 26px; height: 26px; border-radius: 8px; display: grid; place-items: center; flex: none;
  font-size: 0.82rem; font-weight: 700; color: #fff; background: var(--brand);
}

/* team picker */
.chips { display: flex; flex-wrap: wrap; gap: 10px; }
.team-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 12px; }
.team-card {
  display: grid; grid-template-columns: auto 1fr; align-items: center; gap: 10px 12px; text-align: left;
  padding: 14px; border-radius: 14px; border: 1px solid var(--line); background: var(--surface);
  cursor: pointer; transition: all 0.2s ease; position: relative;
}
.team-card .presence { grid-column: 1 / -1; justify-self: start; }
.team-card:hover { border-color: var(--line-strong); transform: translateY(-1px); }
.team-card[aria-pressed="true"] { border-color: var(--brand); background: var(--brand-soft); box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.12); }
.team-meta { min-width: 0; }
.team-meta strong { display: block; font-size: 0.95rem; line-height: 1.3; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.team-meta small { color: var(--muted); font-size: 0.82rem; display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.team-any-ico {
  width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; font-size: 1rem; color: #fff;
  background: var(--accent);
}

/* presence */
.presence {
  display: inline-flex; align-items: center; gap: 7px; width: fit-content;
  font-size: 0.78rem; font-weight: 600; padding: 3px 10px; border-radius: 999px; white-space: nowrap;
  border: 1px solid transparent;
}
.presence::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; flex: none; }
.presence.available { color: var(--ok); background: var(--ok-soft); border-color: #a7f3d0; }
.presence.busy { color: var(--busy); background: var(--busy-soft); border-color: #fecaca; }
.presence.away { color: var(--warn); background: var(--warn-soft); border-color: #fde68a; }
.presence.dnd { color: #be185d; background: #fdf2f8; border-color: #fbcfe8; }
.presence.offline { color: var(--muted); background: var(--surface-2); border-color: var(--line); }
.expert-meta { display: flex; flex-wrap: nowrap; gap: 8px; align-items: center; min-width: 0; }
.expert-meta > * { flex: 0 1 auto; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.expert-meta .status { font-size: 0.76rem; padding: 4px 9px; gap: 6px; }
.expert-meta .presence { font-size: 0.72rem; padding: 3px 9px; }

.chip {
  padding: 9px 15px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface);
  cursor: pointer; font-weight: 600; font-size: 0.9rem; transition: all 0.2s ease;
}
.chip:hover { border-color: var(--line-strong); }
.chip[aria-pressed="true"] { border-color: var(--brand); background: var(--brand-soft); color: var(--brand-600); }

.date-strip { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)) 40px 40px; gap: 8px; align-items: stretch; padding: 2px 2px 8px; }
.week-nav-spacer { display: block; }
.week-nav {
  display: grid; place-items: center; width: 40px; border-radius: 14px;
  border: 1px solid var(--line); background: var(--surface); color: var(--brand); cursor: pointer;
  transition: all .2s ease;
}
.week-nav:hover { border-color: var(--brand); background: var(--brand-soft); }
.week-nav svg { width: 20px; height: 20px; }
.week-nav:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }
.date-chip {
  padding: 11px 8px; border-radius: 14px; border: 1px solid var(--line); background: var(--surface);
  cursor: pointer; text-align: center; transition: all 0.2s ease; min-width: 84px;
}
.date-chip:hover { border-color: var(--line-strong); }
.date-chip .dow { display: block; font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); font-weight: 600; }
.date-chip .dom { display: block; font-size: 1.2rem; font-weight: 700; margin-top: 2px; }
.date-chip[aria-pressed="true"] { border-color: var(--brand); background: var(--brand); color: #fff; }
.date-chip[aria-pressed="true"] .dow { color: #e0e7ff; }

.slots { display: grid; grid-template-columns: repeat(auto-fill, minmax(112px, 1fr)); gap: 8px; min-height: 52px; }
.slot {
  padding: 11px 10px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface);
  cursor: pointer; font-weight: 600; font-size: 0.92rem; transition: all 0.2s ease;
}
.slot:hover { border-color: var(--brand); color: var(--brand-600); }
.slot[aria-pressed="true"] { background: var(--brand); border-color: var(--brand); color: #fff; }
.slot.busy {
  display: flex; flex-direction: column; align-items: center; gap: 2px;
  background: repeating-linear-gradient(135deg, #fff5f5 0 8px, #ffffff 8px 16px);
  border-color: #fecaca; color: var(--muted); cursor: not-allowed;
}
.slot.busy:hover { border-color: #fecaca; color: var(--muted); }
.slot.busy span { text-decoration: line-through; text-decoration-color: rgba(220, 38, 38, 0.5); }
.slot.busy small { font-size: 0.7rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--busy); }
.tz-note { margin-top: 14px; font-size: 0.86rem; color: var(--muted); }
.slot-empty, .slot-loading { grid-column: 1 / -1; color: var(--muted); padding: 14px 0; font-size: 0.94rem; }
.slot-loading { display: flex; gap: 10px; align-items: center; }
.slot-loading::before {
  content: ""; width: 16px; height: 16px; border-radius: 50%; border: 2px solid var(--line-strong); border-top-color: var(--brand); animation: spin 0.8s linear infinite;
}

.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 16px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field.full { grid-column: 1 / -1; }
.field span { font-size: 0.86rem; font-weight: 600; color: var(--text-2); }
.field em { font-style: normal; font-weight: 400; }
.field input, .field select, .field textarea {
  width: 100%; padding: 12px 14px; border-radius: 12px; border: 1px solid var(--line-strong);
  background: #fff; transition: border-color 0.2s, box-shadow 0.2s; font-size: 0.96rem;
}
.field textarea { resize: vertical; min-height: 92px; }
.field select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%); background-position: calc(100% - 20px) 55%, calc(100% - 15px) 55%; background-size: 5px 5px; background-repeat: no-repeat; }
.field input::placeholder, .field textarea::placeholder { color: #94a3b8; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--brand); box-shadow: 0 0 0 4px rgba(79, 70, 229, 0.14);
}
.field input:user-invalid { border-color: var(--busy); }

.human-check {
  display: flex; align-items: center; gap: 14px;
  margin: 6px 0 20px; padding: 14px 16px;
  border-radius: 16px;
  border: 1px solid #e0e7ff;
  background: linear-gradient(135deg, #eef2ff 0%, #f8fafc 60%, #ecfeff 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7);
}
.human-check__badge {
  flex: none; width: 40px; height: 40px; border-radius: 12px;
  display: grid; place-items: center; color: #fff;
  background: linear-gradient(135deg, var(--brand), var(--accent));
  box-shadow: 0 8px 18px -8px rgba(79, 70, 229, 0.7);
}
.human-check__badge svg { width: 22px; height: 22px; }
.human-check__body { min-width: 0; flex: 1; }
.human-check__eyebrow {
  display: block; margin-bottom: 6px;
  font-size: 0.7rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--brand);
}
.human-check__row { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.human-check__q { font-weight: 700; color: var(--text); font-size: 1rem; }
.human-check input {
  width: 120px; padding: 10px 14px; font: inherit; font-weight: 600; color: var(--text);
  border: 1px solid var(--line-strong); border-radius: 12px; background: #fff;
  box-shadow: var(--shadow-sm); transition: border-color .2s ease, box-shadow .2s ease;
}
.human-check input::placeholder { font-weight: 500; color: #94a3b8; }
.human-check input:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 4px rgba(79, 70, 229, 0.15); }
.human-check input:valid:not(:placeholder-shown) { border-color: #a7f3d0; }
.submit-wrap { position: relative; }
.submit-tip {
  position: absolute; left: 50%; bottom: calc(100% + 10px); z-index: 5;
  width: max-content; max-width: min(280px, 90vw);
  padding: 9px 13px; border-radius: 10px;
  background: #0f172a; color: #f8fafc; font-size: 0.84rem; font-weight: 600; line-height: 1.4;
  box-shadow: 0 14px 30px -10px rgba(15, 23, 42, 0.55);
  opacity: 0; pointer-events: none; transform: translate(-50%, 6px);
  transition: opacity .2s ease, transform .2s ease;
}
.submit-tip::after {
  content: ""; position: absolute; top: 100%; left: 50%; transform: translateX(-50%);
  border: 6px solid transparent; border-top-color: #0f172a;
}
.submit-wrap.is-blocked:hover .submit-tip,
.submit-wrap.is-blocked:focus-within .submit-tip { opacity: 1; transform: translate(-50%, 0); }
.submit-hint { margin: 10px 0 0; min-height: 1.3em; text-align: center; font-size: 0.875rem; font-weight: 600; color: var(--warn); }
#submitBtn:disabled:not(.loading) {
  background: #c7d2fe; color: #f8fafc; box-shadow: none; cursor: not-allowed; transform: none; opacity: 1;
}
.consent { display: flex; gap: 12px; align-items: flex-start; margin: 18px 0 20px; font-size: 0.88rem; color: var(--muted); cursor: pointer; }
.consent input { margin-top: 4px; width: 18px; height: 18px; accent-color: var(--brand); flex: none; }
.consent a { color: var(--brand); }
.fine { font-size: 0.84rem; text-align: center; margin-top: 14px; }

/* summary */
.summary { padding: 26px; position: sticky; top: 90px; display: flex; flex-direction: column; gap: 18px; }
.summary dl { margin: 0; display: grid; gap: 0; }
.summary dl > div { display: flex; justify-content: space-between; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.summary dl > div:last-child { border-bottom: 0; }
.summary dt { color: var(--muted); font-size: 0.88rem; }
.summary dd { margin: 0; font-weight: 600; text-align: right; font-size: 0.93rem; }
.summary-note { background: var(--surface-2); border: 1px solid var(--line); border-radius: 14px; padding: 16px; font-size: 0.9rem; }
.summary-note strong { display: block; margin-bottom: 8px; }
.summary-note ol { margin: 0; padding-left: 18px; color: var(--muted); display: grid; gap: 6px; }

/* steps row */
.steps-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.step-card { padding: 30px 26px; }
.big-no {
  display: inline-block; font-size: 0.8rem; font-weight: 700; letter-spacing: 0.08em; color: var(--brand);
  padding: 4px 10px; border-radius: 8px; background: var(--brand-soft);
}
.step-card h3 { font-size: 1.2rem; margin: 18px 0 8px; font-weight: 700; }
.step-card p { color: var(--muted); }

/* faq */
.faq { display: grid; gap: 12px; }
.faq details { padding: 18px 22px; }
.faq details[open] { box-shadow: var(--shadow); }
.faq summary { cursor: pointer; font-weight: 600; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 1.3rem; color: var(--brand); transition: transform 0.2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { margin-top: 10px; color: var(--muted); }

/* CTA band */
.cta-band { padding: 24px 0 96px; }
.cta-card {
  padding: 56px 28px; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 14px;
  background: var(--brand); border-color: transparent; box-shadow: var(--shadow-lg); color: #fff;
}
.cta-card h2 { font-size: clamp(1.7rem, 3.4vw, 2.4rem); font-weight: 800; color: #fff; }
.cta-card .muted { color: #c7d2fe; }
.cta-card .btn-primary { background: #fff; color: var(--brand-600); box-shadow: none; }
.cta-card .btn-primary:hover { background: #eef2ff; }

/* footer */
.footer {
  position: relative;
  padding: 64px 0 28px;
  color: #cbd5e1;
  background:
    radial-gradient(900px 320px at 0% 0%, rgba(79, 70, 229, 0.30), transparent 60%),
    radial-gradient(700px 280px at 100% 100%, rgba(8, 145, 178, 0.18), transparent 60%),
    linear-gradient(180deg, #0f172a 0%, #0b1224 100%);
  overflow: hidden;
}
.footer::before {
  content: "";
  position: absolute;
  left: 0; right: 0; top: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--brand), var(--accent));
}
.foot-inner {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1.3fr;
  gap: 40px 32px;
  align-items: start;
}
.footer .brand { color: #fff; text-decoration: none; }
.footer .logo { background: linear-gradient(135deg, var(--brand), var(--accent)); color: #fff; box-shadow: 0 6px 18px -6px rgba(79, 70, 229, 0.6); }
.foot-brand p { margin: 16px 0 0; color: #94a3b8; line-height: 1.7; max-width: 42ch; font-size: 0.95rem; }
.foot-social { list-style: none; margin: 22px 0 0; padding: 0; display: flex; gap: 10px; }
.foot-social a {
  width: 38px; height: 38px;
  display: grid; place-items: center;
  border-radius: 12px;
  color: #cbd5e1;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(148, 163, 184, 0.18);
  transition: background .2s ease, color .2s ease, transform .2s ease;
}
.foot-social a:hover { background: linear-gradient(135deg, var(--brand), var(--accent)); color: #fff; transform: translateY(-2px); }
.foot-social svg { width: 18px; height: 18px; }
.foot-social a:focus-visible, .foot-col a:focus-visible, .foot-legal a:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.foot-heading {
  margin: 0 0 16px;
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #fff;
  font-weight: 700;
}
.foot-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.foot-col a { color: #94a3b8; text-decoration: none; transition: color .2s ease; }
.foot-col a:hover { color: #fff; }
.foot-contact li { color: #94a3b8; line-height: 1.6; }
.foot-address { font-size: 0.95rem; }
.foot-bottom {
  grid-column: 1 / -1;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px 24px;
  padding-top: 24px;
  border-top: 1px solid rgba(148, 163, 184, 0.16);
  font-size: 0.875rem;
  color: #64748b;
}
.foot-bottom p { margin: 0; }
.foot-legal { display: flex; gap: 20px; flex-wrap: wrap; }
.foot-legal a { color: #94a3b8; text-decoration: none; }
.foot-legal a:hover { color: #fff; }
@media (max-width: 980px) {
  .foot-inner { grid-template-columns: 1fr 1fr; }
  .foot-brand { grid-column: 1 / -1; }
}
@media (max-width: 560px) {
  .foot-inner { grid-template-columns: 1fr; }
  .footer { padding-top: 48px; }
}

/* ---------- Modal ---------- */
.modal {
  border: 1px solid var(--line); border-radius: 22px; padding: 0; width: min(480px, calc(100% - 32px));
  background: #fff; color: var(--text); box-shadow: 0 40px 100px -20px rgba(15, 23, 42, 0.35);
}
.modal::backdrop { background: rgba(15, 23, 42, 0.45); backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px); }
.modal[open] { animation: pop 0.3s cubic-bezier(0.2, 0.9, 0.3, 1.1); }
.modal-body { padding: 36px 28px 28px; text-align: center; }
.modal h2 { font-size: 1.7rem; font-weight: 800; margin: 16px 0 8px; }
.modal-body > p { font-size: 0.96rem; }
.success-ring { width: 80px; height: 80px; margin: 0 auto; }
.success-ring svg { width: 100%; height: 100%; }
.ring { stroke: var(--ok); stroke-width: 2.5; stroke-dasharray: 152; stroke-dashoffset: 152; animation: draw 0.7s ease forwards; }
.tick { stroke: var(--ok); stroke-width: 3.5; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 40; stroke-dashoffset: 40; animation: draw 0.45s 0.6s ease forwards; }
.ok-list { margin: 22px 0 0; display: grid; gap: 8px; text-align: left; }
.ok-list > div { display: flex; justify-content: space-between; gap: 16px; padding: 12px 14px; border-radius: 12px; background: var(--surface-2); border: 1px solid var(--line); }
.ok-list dt { color: var(--muted); font-size: 0.88rem; }
.ok-list dd { margin: 0; font-weight: 600; text-align: right; }
.demo-note { margin-top: 14px; font-size: 0.85rem; color: var(--warn); }
.modal-actions { margin-top: 22px; display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }

/* toast */
.toast {
  position: fixed; left: 50%; bottom: 24px; transform: translate(-50%, 140%);
  max-width: calc(100% - 32px); padding: 13px 18px; border-radius: 12px; font-weight: 600; font-size: 0.93rem;
  background: var(--text); color: #fff; box-shadow: var(--shadow-lg);
  transition: transform 0.4s cubic-bezier(0.2, 0.9, 0.3, 1.2); z-index: 100;
}
.toast.show { transform: translate(-50%, 0); }
.toast.error { background: var(--busy); }

/* ---------- Reveal + motion ---------- */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.in { opacity: 1; transform: none; }

@keyframes spin { to { transform: rotate(360deg); } }
@keyframes shimmer { 0% { background-position: 200% 0; } 100% { background-position: -200% 0; } }
@keyframes ping { 0% { transform: scale(0.6); opacity: 0.9; } 100% { transform: scale(2.4); opacity: 0; } }
@keyframes pop { from { opacity: 0; transform: scale(0.95) translateY(8px); } to { opacity: 1; transform: none; } }
@keyframes draw { to { stroke-dashoffset: 0; } }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .hero-grid, .booking-grid { grid-template-columns: minmax(0, 1fr); }
  .book-card, .step, .hero-copy, .hero-visual { min-width: 0; }
  .hero { padding: 48px 0 32px; }
  .hero-visual { max-width: 520px; margin: 24px 0 0 0; }
  .summary { position: static; }
  .steps-row { grid-template-columns: 1fr; }
  .nav-links { display: none; }
}

@media (max-width: 640px) {
  .container { width: calc(100% - 32px); }
  .section { padding: 68px 0; }
  .book-card { padding: 22px 18px; }
  .summary { padding: 22px 18px; }
  .form-grid { grid-template-columns: 1fr; }
  .foot-inner { grid-template-columns: 1fr; }
  .cta-row .btn { width: 100%; }
  .float-card { position: static; margin-top: 14px; min-width: 0; }
  .preview-time { font-size: 1.3rem; }
  .btn-lg { padding: 0.85rem 1.2rem; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
  .ring, .tick { stroke-dashoffset: 0; }
}

/* Client journey strip under the hero */
.flow { padding: 0 0 56px; }
.flow-row .step-card h3 { font-size: 1.05rem; }
