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

:root {
  --text: #0c0c0c;
  --muted: #5c5c5c;
  --border: #e5e5e5;
  --brand: #ff6600;
  --max: 1240px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --fs-sm: 14px;
  --fs-base: 15px;
  --fs-md: 17px;
  --fs-lg: 19px;
  --fs-display: clamp(30px, 3.5vw, 44px);
  --fs-hero: clamp(36px, 4.2vw, 52px);
  --nav-h: 72px;
  --logo-h: 48px;
  --glass-fill: linear-gradient(
    155deg,
    rgba(255, 255, 255, 0.72) 0%,
    rgba(255, 255, 255, 0.42) 48%,
    rgba(255, 255, 255, 0.55) 100%
  );
  --glass-blur: blur(40px) saturate(185%) brightness(1.04);
  --glass-border: 1px solid rgba(255, 255, 255, 0.62);
  --glass-rim: inset 0 1px 0 rgba(255, 255, 255, 0.88), inset 0 -1px 0 rgba(255, 255, 255, 0.12);
  --glass-shadow: 0 12px 40px rgba(0, 0, 0, 0.08), 0 2px 8px rgba(0, 0, 0, 0.04);
  --glass-radius: 22px;
}

html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; }

body {
  font-family: 'Inter', system-ui, sans-serif;
  font-size: var(--fs-base);
  color: var(--text);
  background: linear-gradient(180deg, #eef1f6 0%, #f8f9fb 28%, #ffffff 62%);
  line-height: 1.5;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

a { color: inherit; }
img { display: block; max-width: 100%; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 32px; }

.page-header {
  position: sticky;
  top: 0;
  z-index: 200;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.92) 0%, rgba(255, 255, 255, 0.78) 100%);
  backdrop-filter: blur(28px) saturate(180%);
  -webkit-backdrop-filter: blur(28px) saturate(180%);
  border-bottom: 1px solid rgba(255, 255, 255, 0.6);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.05);
}

.page-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--nav-h);
  gap: 24px;
}

.logo {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  line-height: 0;
}

.logo img { height: var(--logo-h); width: auto; }

.page-nav {
  display: flex;
  align-items: center;
  gap: 28px;
}

.page-nav a {
  font-size: var(--fs-sm);
  font-weight: 500;
  color: var(--muted);
  text-decoration: none;
  transition: color 0.2s;
}

.page-nav a:hover,
.page-nav a[aria-current="page"] { color: var(--text); }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: var(--fs-sm);
  font-weight: 600;
  text-decoration: none;
  border-radius: 999px;
  padding: 10px 20px;
  border: none;
  cursor: pointer;
  transition: transform 0.2s var(--ease), box-shadow 0.2s;
}

.btn-dark {
  background: linear-gradient(145deg, rgba(255, 102, 0, 0.94) 0%, rgba(255, 130, 50, 0.82) 100%);
  color: #fff;
  box-shadow: 0 6px 24px rgba(255, 102, 0, 0.28);
}

.btn-dark:hover { transform: translateY(-1px); }

main { flex: 1; }

.glass-panel {
  position: relative;
  border-radius: var(--glass-radius);
  overflow: hidden;
  isolation: isolate;
  background: var(--glass-fill);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: var(--glass-border);
  box-shadow: var(--glass-shadow), var(--glass-rim);
}

/* Legacy page templates (privacy, terms) */
.page-hero {
  max-width: 640px;
  margin-bottom: 32px;
}

.page-hero .eyebrow {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 12px;
}

.page-hero .eyebrow::before { content: '/ '; color: #bbb; }

.page-hero h1 {
  font-size: var(--fs-display);
  font-weight: 700;
  letter-spacing: -0.035em;
  line-height: 1.1;
  margin-bottom: 12px;
}

.page-hero .lead {
  font-size: var(--fs-base);
  color: var(--muted);
  line-height: 1.65;
  max-width: 52ch;
}

.page-body {
  max-width: 720px;
}

.page-body .glass-panel {
  padding: 40px 44px;
}

.glass-panel::before {
  content: '';
  position: absolute;
  inset: -20%;
  background: radial-gradient(
    circle at 30% 20%,
    rgba(255, 255, 255, 0.45) 0%,
    transparent 50%
  );
  pointer-events: none;
  z-index: 0;
}

.glass-panel > * { position: relative; z-index: 1; }

.prose h2 {
  font-size: 17px;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 28px 0 10px;
}

.prose h2:first-child { margin-top: 0; }

.prose p,
.prose li {
  font-size: var(--fs-base);
  line-height: 1.65;
  color: var(--muted);
}

.prose p { margin-bottom: 14px; }

.prose ul {
  margin: 0 0 14px 1.2em;
  padding: 0;
}

.prose li { margin-bottom: 8px; }

.prose a {
  color: var(--text);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.prose a:hover { color: var(--brand); }

.prose .updated {
  font-size: var(--fs-sm);
  color: #9a9a9a;
  margin-bottom: 24px;
}

.page-cta {
  margin-top: 28px;
}

footer {
  border-top: 1px solid var(--border);
  padding: 32px 0;
  background: rgba(255, 255, 255, 0.5);
}

.footer-simple {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  font-size: var(--fs-sm);
  color: var(--muted);
}

.footer-simple a {
  color: var(--muted);
  text-decoration: none;
}

.footer-simple a:hover { color: var(--text); }

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}

/* ── Book page ── */
.book-page main {
  padding: 40px 0 88px;
}

.book-layout {
  max-width: 640px;
  margin: 0 auto;
}

.book-hero {
  margin-bottom: 28px;
}

.book-steps__nav {
  display: flex;
  gap: 12px;
  list-style: none;
  margin: 0 0 20px;
  padding: 0;
}

.book-steps__item {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.5);
  font-size: 13px;
  font-weight: 500;
  color: var(--muted);
  transition: border-color 0.2s, color 0.2s, background 0.2s;
}

.book-steps__item.is-active {
  border-color: rgba(255, 102, 0, 0.35);
  background: rgba(255, 102, 0, 0.06);
  color: var(--text);
}

.book-steps__item.is-done {
  color: var(--text);
}

.book-steps__num {
  flex-shrink: 0;
  width: 26px;
  height: 26px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 700;
  background: #eee;
  color: var(--muted);
}

.book-steps__item.is-active .book-steps__num {
  background: var(--brand);
  color: #fff;
}

.book-steps__item.is-done .book-steps__num {
  background: #0c0c0c;
  color: #fff;
}

.book-panel {
  padding: 32px 36px 36px;
}

.book-panel__title {
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 20px;
}

.book-social {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 4px;
}

.book-social__btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  padding: 12px 16px;
  font: inherit;
  font-size: var(--fs-sm);
  font-weight: 600;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.92);
  color: var(--text);
  cursor: pointer;
  transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s var(--ease);
}

.book-social__btn:hover:not(:disabled) {
  border-color: #ccc;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.06);
  transform: translateY(-1px);
}

.book-social__btn:disabled {
  opacity: 0.65;
  cursor: wait;
}

.book-social__btn--apple {
  background: #000;
  border-color: #000;
  color: #fff;
}

.book-social__btn--apple:hover:not(:disabled) {
  border-color: #222;
  background: #111;
}

.book-social__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.book-social__hint {
  margin: 8px 0 0;
  font-size: 12px;
  color: var(--muted);
  line-height: 1.5;
}

.book-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 20px 0 18px;
  font-size: 12px;
  font-weight: 500;
  color: #aaa;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.book-divider::before,
.book-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border);
}

.book-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.book-field label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 6px;
}

.book-field__hint {
  font-weight: 400;
  color: var(--muted);
  margin-left: 4px;
}

.book-field input,
.book-field textarea {
  width: 100%;
  font: inherit;
  font-size: var(--fs-base);
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.85);
  color: var(--text);
  transition: border-color 0.2s, box-shadow 0.2s;
}

.book-field textarea {
  resize: vertical;
  min-height: 96px;
  line-height: 1.5;
  font-family: inherit;
}

.book-field input::placeholder,
.book-field textarea::placeholder {
  color: #aaa;
}

.book-field input:focus,
.book-field textarea:focus {
  outline: none;
  border-color: rgba(255, 102, 0, 0.45);
  box-shadow: 0 0 0 3px rgba(255, 102, 0, 0.12);
}

.book-form__error {
  font-size: 13px;
  color: #b45309;
  margin: 0;
}

.book-form__submit {
  width: 100%;
  margin-top: 4px;
  padding: 14px 20px;
  font-size: var(--fs-base);
}

.book-form__submit:disabled {
  opacity: 0.6;
  cursor: progress;
}

.book-panel--success {
  text-align: left;
}

.book-success__body {
  margin: 0 0 12px;
  line-height: 1.55;
  color: var(--text);
}

.book-success__body strong {
  font-weight: 600;
  color: var(--muted);
}

.book-panel--schedule {
  padding-top: 28px;
}

.book-schedule__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
}

.book-schedule__summary {
  font-size: 13px;
  color: var(--muted);
  margin: 6px 0 0;
  line-height: 1.5;
}

.book-schedule__back {
  flex-shrink: 0;
  font: inherit;
  font-size: 13px;
  font-weight: 500;
  color: var(--muted);
  background: none;
  border: none;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 2px;
  padding: 4px 0;
}

.book-schedule__back:hover {
  color: var(--text);
}

.book-calendly {
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--border);
  background: #fff;
}

.book-fallback {
  padding: 24px;
  text-align: center;
  border-radius: 14px;
  border: 1px dashed var(--border);
  background: rgba(255, 255, 255, 0.6);
}

.book-fallback p {
  font-size: var(--fs-sm);
  color: var(--muted);
  line-height: 1.6;
  margin-bottom: 16px;
}

@media (max-width: 768px) {
  .wrap { padding: 0 20px; }
  .page-nav { display: none; }
  .page-body .glass-panel { padding: 24px 22px; }

  main { padding: 40px 0 60px; }

  .book-page main { padding-bottom: 60px; }
  .book-panel { padding: 24px 22px 28px; }
  .book-steps__nav { flex-direction: column; }
  .book-schedule__head { flex-direction: column; }
  .book-calendly .calendly-inline-widget { height: 620px !important; min-height: 620px !important; }
}

main {
  padding: 56px 0 80px;
}
