/* Her Inner Space — static site styles.
   Design tokens are carried over from the original React/Tailwind build. */

@import url("https://fonts.googleapis.com/css2?family=Fraunces:ital,opsz,wght@0,9..144,300;0,9..144,400;0,9..144,500;0,9..144,600;1,9..144,400;1,9..144,500&family=Instrument+Sans:wght@300;400;500;600&display=swap");

:root {
  --background: hsl(30 40% 97%);
  --foreground: hsl(200 18% 20%);
  --card: hsl(30 35% 99%);
  --primary: hsl(20 52% 56%);
  --primary-strong: hsl(20 52% 50%);
  --primary-foreground: hsl(30 40% 97%);
  --secondary: hsl(148 22% 74%);
  --muted: hsl(30 25% 93%);
  --muted-foreground: hsl(200 10% 42%);
  --destructive: hsl(0 62% 48%);
  --border: hsl(30 20% 88%);
  --sage-bg: hsl(148 20% 94%);
  --terracotta-light: hsl(20 55% 88%);
  --sun-light: hsl(55 55% 92%);

  --shadow-soft: 0 20px 50px -12px rgba(45, 55, 60, 0.07);
  --shadow-card: 0 8px 24px -6px rgba(45, 55, 60, 0.06);
  --ease: cubic-bezier(0.23, 1, 0.32, 1);

  --fs-display: clamp(2.4rem, 7.5vw, 4.5rem);
  --fs-h2: clamp(1.8rem, 4vw, 2.8rem);

  --font-display: "Fraunces", Georgia, serif;
  --font-body: "Instrument Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
  border-color: var(--border);
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--background);
  color: var(--foreground);
  font-family: var(--font-body);
  font-size: 1.125rem;
  line-height: 1.65;
  overflow-x: hidden;
}

h1, h2, h3, h4 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 500;
  letter-spacing: -0.03em;
  line-height: 1.1;
  text-wrap: balance;
}

p { margin: 0; line-height: 1.7; max-width: 65ch; }
ul { margin: 0; padding: 0; list-style: none; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }

:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
  border-radius: 6px;
}

/* Component display rules must not defeat the hidden attribute. */
[hidden] { display: none !important; }

.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: absolute; left: 1rem; top: -4rem; z-index: 100;
  background: var(--foreground); color: var(--background);
  padding: 0.6rem 1rem; border-radius: 999px; font-size: 0.9rem;
}
.skip-link:focus { top: 1rem; }

/* ── Layout ─────────────────────────────────────── */
.container { max-width: 64rem; margin-inline: auto; }
.container-md { max-width: 56rem; margin-inline: auto; }
.container-sm { max-width: 48rem; margin-inline: auto; }
.section { padding: 6rem 1.5rem; }
.center { text-align: center; }
.center p { margin-inline: auto; }

.bg-sage { background: var(--sage-bg); }
.bg-terracotta { background: var(--terracotta-light); }
.bg-muted { background: var(--muted); }
.bg-dark { background: var(--foreground); color: var(--background); }

.grid-2 { display: grid; gap: 4rem; align-items: center; }
.grid-3 { display: grid; gap: 2rem; }
@media (min-width: 768px) {
  .grid-2 { grid-template-columns: 1fr 1fr; }
  .grid-2.start { align-items: start; }
  .grid-3 { grid-template-columns: repeat(3, 1fr); }
}

.eyebrow {
  font-size: 0.75rem; font-weight: 600; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--primary); margin-bottom: 1rem;
}
.display { font-size: var(--fs-display); }
.h2 { font-size: var(--fs-h2); }
.lead { font-size: 1.125rem; color: var(--muted-foreground); }
.muted { color: var(--muted-foreground); }
.on-dark .eyebrow { color: var(--primary); }
.on-dark p { color: hsl(30 40% 97% / 0.6); }

.mb-2 { margin-bottom: 0.5rem; } .mb-4 { margin-bottom: 1rem; }
.mb-6 { margin-bottom: 1.5rem; } .mb-8 { margin-bottom: 2rem; }
.mb-10 { margin-bottom: 2.5rem; } .mb-14 { margin-bottom: 3.5rem; }

/* ── Buttons ────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  border-radius: 999px; border: 1px solid transparent;
  padding: 0.9rem 2rem; font-weight: 500; font-size: 1rem; line-height: 1.2;
  transition: all 0.3s var(--ease);
}
.btn:active { transform: scale(0.96); }
.btn-primary { background: var(--primary); color: var(--primary-foreground); box-shadow: var(--shadow-soft); }
.btn-primary:hover { background: var(--primary-strong); transform: translateY(-4px); box-shadow: 0 24px 50px -10px rgba(190, 100, 70, 0.35); }
.btn-ghost { border-color: var(--border); background: hsl(30 40% 97% / 0.6); backdrop-filter: blur(8px); }
.btn-ghost:hover { background: var(--muted); }
.btn-outline { border-color: var(--border); background: var(--background); font-size: 0.9rem; padding: 0.75rem 1.5rem; }
.btn-outline:hover { background: var(--muted); }
.btn-sm { font-size: 0.9rem; padding: 0.65rem 1.25rem; }
.btn[disabled], .btn[aria-disabled="true"] { opacity: 0.4; cursor: not-allowed; pointer-events: none; }
.btn-primary[disabled]:hover { transform: none; }

.link-arrow { display: inline-flex; align-items: center; gap: 0.5rem; color: var(--primary); font-weight: 500; transition: gap 0.3s var(--ease); }
.link-arrow:hover { gap: 0.75rem; }

.icon { width: 1em; height: 1em; flex-shrink: 0; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.icon-16 { width: 16px; height: 16px; }
.icon-20 { width: 20px; height: 20px; }

/* ── Cards ──────────────────────────────────────── */
.card { background: var(--card); border-radius: 1.5rem; box-shadow: var(--shadow-card); padding: 2rem; }
.card-lift { transition: transform 0.5s var(--ease), box-shadow 0.5s var(--ease); }
.card-lift:hover { transform: translateY(-8px); box-shadow: var(--shadow-soft); }
.card h3 { font-size: 1.25rem; margin-bottom: 0.75rem; }
.card p { font-size: 0.875rem; color: var(--muted-foreground); }
.icon-tile {
  width: 3rem; height: 3rem; border-radius: 1rem; margin-bottom: 1.25rem;
  display: flex; align-items: center; justify-content: center; background: var(--terracotta-light); color: var(--primary);
}
.icon-tile.sage { background: var(--sage-bg); color: hsl(200 18% 20% / 0.7); }
.icon-tile.sun { background: var(--sun-light); color: hsl(200 18% 20% / 0.7); }
.icon-tile.sm { width: 2.5rem; height: 2.5rem; border-radius: 0.75rem; margin-bottom: 1rem; }

/* Organic blobs */
.blob-1 { border-radius: 60% 40% 55% 45% / 50% 60% 40% 50%; }
.blob-2 { border-radius: 40% 60% 70% 30% / 50% 30% 70% 50%; }
.blob-3 { border-radius: 55% 45% 40% 60% / 60% 40% 60% 40%; }
.blob-4 { border-radius: 35% 65% 55% 45% / 45% 55% 35% 65%; }
.blob-5 { border-radius: 65% 35% 45% 55% / 40% 60% 50% 50%; }
.blob-6 { border-radius: 45% 55% 65% 35% / 55% 45% 65% 35%; }
.blob-7 { border-radius: 50% 50% 40% 60% / 60% 50% 50% 40%; }
.bg-t { background: var(--terracotta-light); }
.bg-s { background: var(--sage-bg); }
.bg-u { background: var(--sun-light); }

/* ── Header / nav ───────────────────────────────── */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 50; padding: 1.25rem 0;
  transition: all 0.5s var(--ease);
}
.site-header.scrolled {
  background: hsl(30 40% 97% / 0.9); backdrop-filter: blur(12px);
  box-shadow: var(--shadow-card); padding: 0.75rem 0;
}
.header-inner { display: flex; align-items: center; justify-content: space-between; padding-inline: 1.5rem; max-width: 64rem; margin-inline: auto; }
.brand { display: flex; align-items: center; gap: 0.75rem; }
.brand img { height: 4rem; width: auto; }
.brand span { font-family: var(--font-display); font-size: 1.125rem; font-weight: 500; letter-spacing: -0.02em; display: none; }
@media (min-width: 640px) { .brand span { display: block; } }

.nav-desktop { display: none; align-items: center; gap: 2rem; }
.nav-desktop a { font-size: 0.875rem; letter-spacing: 0.02em; color: hsl(200 18% 20% / 0.7); transition: color 0.2s; }
.nav-desktop a:hover { color: var(--foreground); }
.nav-desktop a[aria-current="page"] { color: var(--primary); font-weight: 500; }
.header-cta { display: none; padding: 0.65rem 1.25rem; font-size: 0.875rem; box-shadow: none; }
@media (min-width: 768px) {
  .nav-desktop { display: flex; }
  .header-cta { display: inline-flex; }
  .menu-toggle, .mobile-book { display: none !important; }
}

.menu-toggle { background: none; border: 0; padding: 0.5rem; border-radius: 0.75rem; color: var(--foreground); display: flex; }
.menu-toggle .icon { width: 22px; height: 22px; }
.menu-toggle .icon-close { display: none; }
.menu-toggle[aria-expanded="true"] .icon-open { display: none; }
.menu-toggle[aria-expanded="true"] .icon-close { display: block; }

.mobile-menu {
  position: fixed; inset: 0 0 auto 0; z-index: 40; background: hsl(30 40% 97% / 0.97); backdrop-filter: blur(12px);
  padding: 5.5rem 1.5rem 2rem; box-shadow: var(--shadow-soft);
  transform: translateY(-110%); visibility: hidden; transition: transform 0.3s var(--ease), visibility 0.3s;
}
.mobile-menu.open { transform: none; visibility: visible; }
.mobile-menu nav { display: flex; flex-direction: column; gap: 1.25rem; }
.mobile-menu a:not(.btn) { font-family: var(--font-display); font-size: 1.5rem; font-weight: 500; }
.mobile-menu a[aria-current="page"] { color: var(--primary); }
.mobile-menu .btn { margin-top: 1rem; }

.mobile-book {
  position: fixed; bottom: 1.5rem; left: 50%; transform: translateX(-50%); z-index: 50;
  padding: 0.9rem 1.75rem; font-size: 0.875rem; font-weight: 600; box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
}

/* ── Hero ───────────────────────────────────────── */
.hero {
  position: relative; min-height: 100vh; min-height: 100svh; display: flex; align-items: center; justify-content: center;
  overflow: hidden; padding: 8rem 1.5rem 5rem;
}
.hero-bg { position: absolute; inset: 0; z-index: 0; }
.hero-bg img { width: 100%; height: 100%; object-fit: cover; opacity: 0.3; }
.hero-bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to bottom, hsl(30 40% 97% / 0.6), hsl(30 40% 97% / 0.4), var(--background)); }
.hero-blob { position: absolute; filter: blur(24px); pointer-events: none; }
.hero-blob.a { top: 25%; right: 2rem; width: 16rem; height: 16rem; background: var(--terracotta-light); opacity: 0.4; animation: drift 8s ease-in-out infinite; }
.hero-blob.b { bottom: 33%; left: 2rem; width: 12rem; height: 12rem; background: var(--sage-bg); opacity: 0.5; animation: drift 10s ease-in-out 2s infinite reverse; }
@media (min-width: 768px) { .hero-blob.a { right: 25%; } .hero-blob.b { left: 25%; } }
@keyframes drift { 0%, 100% { transform: scale(1) rotate(0); } 50% { transform: scale(1.07) rotate(5deg); } }

.hero-content { position: relative; z-index: 1; text-align: center; max-width: 48rem; margin-inline: auto; }
.hero h1 { font-size: var(--fs-display); line-height: 1.05; margin-bottom: 2rem; }
.hero h1 em { color: var(--primary); font-style: normal; }
.hero .lead { margin: 0 auto 2.5rem; }
.hero .eyebrow { margin-bottom: 1.5rem; }
.cta-row { display: flex; flex-direction: column; gap: 1rem; justify-content: center; }
@media (min-width: 640px) { .cta-row { flex-direction: row; } }
.stats { display: flex; flex-wrap: wrap; justify-content: center; gap: 2rem; margin-top: 4rem; padding-top: 3rem; border-top: 1px solid hsl(30 20% 88% / 0.5); }
.stats p { text-align: center; margin-inline: auto; }
.stat-num { font-family: var(--font-display); font-size: 1.5rem; font-weight: 500; color: var(--primary); }
.stat-label { font-size: 0.75rem; color: var(--muted-foreground); margin-top: 0.25rem; letter-spacing: 0.1em; text-transform: uppercase; }

.page-hero { padding: 9rem 1.5rem 5rem; position: relative; overflow: hidden; }
.page-hero h1 { font-size: var(--fs-display); max-width: 42rem; }
.page-hero .container, .page-hero .container-md { position: relative; z-index: 1; }
.page-hero-bg { position: absolute; inset: 0; }
.page-hero-bg img { width: 100%; height: 100%; object-fit: cover; opacity: 0.2; }
.page-hero-bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to bottom, hsl(30 40% 97% / 0.8), var(--background)); }

/* ── Content bits ───────────────────────────────── */
.bullets { display: flex; flex-direction: column; gap: 1rem; }
.bullets li { display: flex; align-items: flex-start; gap: 0.75rem; color: hsl(200 18% 20% / 0.8); }
.bullets li::before { content: ""; margin-top: 0.6rem; flex: none; width: 0.5rem; height: 0.5rem; border-radius: 50%; background: var(--primary); }

.blob-stage { position: relative; height: 20rem; display: none; }
.blob-stage div { position: absolute; }
@media (min-width: 768px) { .blob-stage { display: block; } }

.concerns { display: flex; flex-wrap: wrap; gap: 1.25rem; justify-content: center; }
.concern { display: flex; align-items: center; justify-content: center; padding: 1.5rem 2rem; box-shadow: var(--shadow-card); font-family: var(--font-display); font-size: 1rem; font-weight: 500; text-align: center; }

.quote { border-radius: 1.5rem; background: var(--terracotta-light); padding: 2rem; }
.quote p { font-family: var(--font-display); font-size: 1.125rem; font-weight: 500; font-style: italic; line-height: 1.6; }

.detail-list > div { display: flex; align-items: center; justify-content: space-between; padding: 0.75rem 0; border-bottom: 1px solid var(--border); font-size: 0.875rem; }
.detail-list dt { color: var(--muted-foreground); } .detail-list dd { margin: 0; font-weight: 500; }
.detail-list { margin: 0; }

.founder { display: flex; flex-direction: column; align-items: center; gap: 2rem; }
.founder-photo { position: relative; }
.founder-photo img { width: 16rem; height: 20rem; object-fit: cover; object-position: top; border-radius: 1.5rem; box-shadow: var(--shadow-soft); border: 4px solid var(--background); }
.founder-photo::after { content: ""; position: absolute; right: -1rem; bottom: -1rem; width: 6rem; height: 6rem; background: var(--sun-light); border-radius: 40% 60% 70% 30% / 50% 30% 70% 50%; z-index: -1; }
.founder-name { font-family: var(--font-display); font-size: 1.125rem; font-weight: 500; text-align: center; }
.founder-role { font-size: 0.75rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted-foreground); margin-top: -1.25rem; text-align: center; }

.points { display: flex; flex-direction: column; gap: 1.25rem; }
.point { display: flex; align-items: flex-start; gap: 1rem; padding: 1.25rem; border-radius: 1rem; background: var(--card); box-shadow: var(--shadow-card); }
.point .num { flex: none; width: 1.75rem; height: 1.75rem; border-radius: 50%; background: var(--terracotta-light); display: flex; align-items: center; justify-content: center; font-family: var(--font-display); font-size: 0.875rem; font-weight: 500; color: var(--primary); }
.point p { font-size: 0.875rem; color: hsl(200 18% 20% / 0.8); }

.grid-cards { display: grid; gap: 1.5rem; }
@media (min-width: 640px) { .grid-cards { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 768px) { .grid-cards { grid-template-columns: repeat(3, 1fr); } }
.grid-cards .card { padding: 1.75rem; }
.grid-cards .card h3 { font-size: 1.125rem; margin-bottom: 0.5rem; }

.mini-stats { display: flex; gap: 1rem; margin-top: 1.5rem; }
.mini-stats > div { flex: 1; border-radius: 1rem; background: var(--background); padding: 1.25rem; text-align: center; }
.mini-stats .stat-label { margin-top: 0.25rem; }

/* FAQ */
.faq { display: flex; flex-direction: column; gap: 0.75rem; }
.faq details { border-radius: 1rem; background: var(--card); box-shadow: var(--shadow-card); overflow: hidden; }
.faq summary {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 1.5rem; cursor: pointer; list-style: none;
  font-family: var(--font-display); font-size: 1.125rem; font-weight: 500; letter-spacing: -0.02em; transition: background 0.2s;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary:hover { background: hsl(30 25% 93% / 0.5); }
.faq summary .icon { color: var(--primary); transition: transform 0.3s var(--ease); }
.faq details[open] summary .icon { transform: rotate(180deg); }
.faq details p { padding: 0 1.5rem 1.5rem; font-size: 0.875rem; color: var(--muted-foreground); }
.faq-cta { margin-top: 4rem; border-radius: 1.5rem; background: var(--sage-bg); padding: 2.5rem; text-align: center; }
.faq-cta h3 { font-size: 1.5rem; margin-bottom: 0.75rem; }
.faq-cta p { font-size: 0.875rem; color: var(--muted-foreground); margin: 0 auto 1.5rem; }

/* Contact */
.contact-links { display: flex; flex-direction: column; gap: 1.5rem; }
.contact-link { display: flex; align-items: center; gap: 1.25rem; padding: 1.5rem; border-radius: 1rem; background: var(--card); box-shadow: var(--shadow-card); transition: all 0.3s var(--ease); }
.contact-link:hover { transform: translateY(-4px); box-shadow: var(--shadow-soft); }
.contact-link .icon-tile { margin: 0; flex: none; }
.contact-link .label, .label-sm { font-size: 0.75rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted-foreground); }
.contact-link .value { font-family: var(--font-display); font-size: 1rem; font-weight: 500; overflow-wrap: anywhere; }
.note-box { margin-top: 2.5rem; padding: 1.5rem; border-radius: 1rem; background: var(--muted); }
.note-box .value { font-family: var(--font-display); font-size: 1rem; font-weight: 500; margin-top: 0.5rem; }
.note-box p:last-child { font-size: 0.875rem; color: var(--muted-foreground); margin-top: 0.25rem; }

/* ── Footer ─────────────────────────────────────── */
.site-footer { background: var(--foreground); color: var(--primary-foreground); padding: 4rem 1.5rem 6rem; }
@media (min-width: 768px) { .site-footer { padding-bottom: 4rem; } }
.footer-grid { display: grid; gap: 3rem; margin-bottom: 3rem; }
@media (min-width: 768px) { .footer-grid { grid-template-columns: repeat(3, 1fr); } }
.site-footer h3 { font-size: 1.5rem; margin-bottom: 0.75rem; color: var(--background); }
.site-footer p { font-size: 0.875rem; color: hsl(30 40% 97% / 0.6); line-height: 1.6; max-width: 20rem; }
.footer-col nav, .footer-col .links { display: flex; flex-direction: column; gap: 0.75rem; }
.footer-col a { display: flex; align-items: center; gap: 0.5rem; font-size: 0.875rem; color: hsl(30 40% 97% / 0.6); transition: color 0.2s; }
.footer-col a:hover { color: var(--background); }
.footer-col .eyebrow { margin-bottom: 1.25rem; }
.disclaimer { border-top: 1px solid hsl(30 40% 97% / 0.1); padding-top: 2rem; margin-bottom: 2rem; }
.disclaimer summary { display: flex; align-items: center; gap: 0.5rem; cursor: pointer; list-style: none; font-size: 0.75rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: hsl(30 40% 97% / 0.5); }
.disclaimer summary::-webkit-details-marker { display: none; }
.disclaimer summary:hover { color: hsl(30 40% 97% / 0.8); }
.disclaimer summary .icon-16:first-child { color: var(--primary); }
.disclaimer summary .chev { margin-left: auto; transition: transform 0.3s var(--ease); }
.disclaimer[open] summary .chev { transform: rotate(180deg); }
.disclaimer-body { margin-top: 1rem; border-radius: 1rem; background: hsl(30 40% 97% / 0.05); border: 1px solid hsl(30 40% 97% / 0.1); padding: 1.25rem; }
.disclaimer-body p { font-size: 0.75rem; max-width: none; margin-bottom: 0.75rem; }
.disclaimer-body p:last-child { margin-bottom: 0; }
.disclaimer-body strong { color: hsl(30 40% 97% / 0.8); }
.footer-bottom { border-top: 1px solid hsl(30 40% 97% / 0.1); padding-top: 2rem; display: flex; flex-direction: column; align-items: center; justify-content: space-between; gap: 0.75rem; }
@media (min-width: 768px) { .footer-bottom { flex-direction: row; } }
.footer-bottom p { font-size: 0.75rem; color: hsl(30 40% 97% / 0.4); max-width: none; display: flex; align-items: center; gap: 0.25rem; }
.footer-bottom .icon { width: 11px; height: 11px; color: var(--primary); fill: var(--primary); }

/* ── Forms ──────────────────────────────────────── */
.form { display: flex; flex-direction: column; gap: 1.25rem; }
.field { display: flex; flex-direction: column; gap: 0.4rem; }
.field > label, .field-label, legend.field-label {
  font-size: 0.875rem; font-weight: 500; color: var(--foreground); padding: 0;
}
.form-contact .field > label { font-size: 0.75rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted-foreground); }
.req { color: var(--destructive); margin-left: 0.2rem; }
.hint { font-size: 0.8125rem; color: var(--muted-foreground); }

.input, .select, .textarea {
  width: 100%; border-radius: 1rem; border: 1px solid var(--border); background: var(--card);
  padding: 0.75rem 1rem; font-size: 0.9rem; transition: box-shadow 0.2s, border-color 0.2s;
}
.input::placeholder, .textarea::placeholder { color: var(--muted-foreground); opacity: 0.8; }
.input:focus, .select:focus, .textarea:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px hsl(20 52% 56% / 0.25); }
.textarea { resize: vertical; min-height: 5rem; line-height: 1.5; }
.select {
  appearance: none; padding-right: 2.5rem;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%236b7b83' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 0.85rem center;
}
[aria-invalid="true"] { border-color: var(--destructive); }
.error { font-size: 0.8125rem; color: var(--destructive); }

.alert { border-radius: 1rem; padding: 1rem 1.25rem; font-size: 0.9rem; border: 1px solid; }
.alert-error { background: hsl(0 72% 60% / 0.08); border-color: hsl(0 72% 60% / 0.25); color: var(--destructive); }
.alert-warn { background: var(--sun-light); border-color: hsl(45 60% 70%); color: hsl(35 60% 25%); }
.alert p { max-width: none; }
.alert .btn { margin-top: 0.75rem; }

.honeypot { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.spin { animation: spin 1s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

.success-card { border-radius: 1.5rem; background: var(--sage-bg); padding: 3rem 2rem; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 1.25rem; }
.success-card .icon { width: 48px; height: 48px; color: var(--primary); }
.success-card h3 { font-size: 1.5rem; }
.success-card p { font-size: 0.875rem; color: var(--muted-foreground); max-width: 20rem; }

/* ── Booking flow ───────────────────────────────── */
.steps { display: flex; align-items: center; gap: 0.75rem; flex-wrap: wrap; margin-bottom: 3rem; padding: 0; }
.steps li { display: flex; align-items: center; gap: 0.5rem; }
.step-dot { width: 1.75rem; height: 1.75rem; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 0.75rem; font-weight: 600; background: var(--muted); color: var(--muted-foreground); transition: background 0.3s; }
.step-dot .icon { width: 12px; height: 12px; stroke-width: 3; }
.steps li.active .step-dot { background: var(--primary); color: var(--primary-foreground); }
.steps li.done .step-dot { background: var(--secondary); color: var(--foreground); }
.step-label { font-size: 0.875rem; color: var(--muted-foreground); display: none; }
.steps li.active .step-label { color: var(--foreground); font-weight: 500; }
.steps li + li::before { content: ""; width: 1.5rem; height: 1px; background: var(--border); margin-right: 0.25rem; }
@media (min-width: 640px) { .step-label { display: inline; } }

#steps { scroll-margin-top: 7rem; }
.book-step:focus { outline: none; }
.book-step > .step-title { margin-bottom: 1.5rem; font-size: 1.5rem; }

.cal-grid-wrap { display: grid; gap: 2.5rem; }
@media (min-width: 768px) { .cal-grid-wrap { grid-template-columns: 1fr 1fr; } }

.calendar { border-radius: 1.5rem; background: var(--card); box-shadow: var(--shadow-card); padding: 1.75rem; }
.cal-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 1.5rem; }
.cal-head h2 { font-size: 1.125rem; }
.cal-nav { background: none; border: 0; padding: 0.5rem; border-radius: 0.75rem; display: flex; }
.cal-nav:hover:not(:disabled) { background: var(--muted); }
.cal-nav:disabled { opacity: 0.3; cursor: not-allowed; }
.cal-dow, .cal-days { display: grid; grid-template-columns: repeat(7, 1fr); }
.cal-dow { margin-bottom: 0.5rem; }
.cal-dow span { text-align: center; font-size: 0.75rem; color: var(--muted-foreground); padding: 0.25rem 0; }
.cal-days { gap: 0.25rem; position: relative; min-height: 15rem; align-content: start; }
.cal-day { aspect-ratio: 1; border: 0; border-radius: 0.75rem; background: none; font-size: 0.875rem; transition: all 0.2s; }
.cal-day:disabled { color: hsl(200 10% 45% / 0.4); cursor: not-allowed; }
.cal-day:not(:disabled) { font-weight: 500; background: hsl(148 20% 94% / 0.7); }
.cal-day:not(:disabled):hover { background: var(--muted); }
.cal-day.today:not(:disabled) { color: var(--primary); }
.cal-day[aria-pressed="true"] { background: var(--primary); color: var(--primary-foreground); font-weight: 600; }
.cal-status { grid-column: 1 / -1; text-align: center; padding: 2rem 0; color: var(--muted-foreground); font-size: 0.9rem; display: flex; flex-direction: column; align-items: center; gap: 0.75rem; }
.cal-status .icon { width: 24px; height: 24px; color: var(--primary); }

.tz-row { margin-top: 1.25rem; padding-top: 1.25rem; border-top: 1px solid var(--border); }
.tz-row label { display: block; font-size: 0.75rem; color: var(--muted-foreground); margin-bottom: 0.4rem; }
.tz-row .select { padding-block: 0.5rem; font-size: 0.8125rem; border-radius: 0.75rem; }

.side-col { display: flex; flex-direction: column; gap: 1.5rem; }
.slots-title { margin-bottom: 1rem; }
.slots { display: grid; grid-template-columns: 1fr 1fr; gap: 0.75rem; }
.slot { border: 0; border-radius: 1rem; padding: 0.75rem 1rem; font-size: 0.875rem; font-weight: 500; background: var(--card); box-shadow: var(--shadow-card); transition: all 0.2s; }
.slot:hover { background: var(--muted); }
.slot[aria-pressed="true"] { background: var(--primary); color: var(--primary-foreground); box-shadow: var(--shadow-soft); }
.hint-box { border-radius: 1rem; background: var(--muted); padding: 1.5rem; text-align: center; font-family: var(--font-display); color: var(--muted-foreground); }
.info-box { border-radius: 1rem; background: var(--sage-bg); padding: 1.5rem; }
.info-box ul { display: flex; flex-direction: column; gap: 0.5rem; font-size: 0.875rem; color: hsl(200 18% 20% / 0.8); margin-top: 0.75rem; }
.info-box li { display: flex; align-items: center; gap: 0.6rem; }
.info-box .icon { color: var(--primary); width: 16px; height: 16px; }

.book-layout { display: grid; gap: 2.5rem; align-items: start; }
@media (min-width: 768px) { .book-layout.with-side { grid-template-columns: 1fr 340px; } }
.side-photo { display: none; position: sticky; top: 7rem; }
@media (min-width: 768px) { .with-side .side-photo { display: block; } }
.side-photo img { width: 100%; height: 500px; object-fit: cover; border-radius: 1.5rem; box-shadow: var(--shadow-card); }
.side-photo p { text-align: center; font-size: 0.75rem; color: var(--muted-foreground); margin: 1rem auto 0; font-style: italic; }

.summary { border-radius: 1rem; background: var(--muted); padding: 1.5rem; margin-bottom: 2rem; }
.summary .when { font-family: var(--font-display); font-size: 1.125rem; font-weight: 500; margin-top: 0.75rem; }
.summary .what { font-size: 0.875rem; color: var(--muted-foreground); margin-top: 0.25rem; }
.summary .change { margin-top: 0.75rem; font-size: 0.8125rem; color: var(--primary); background: none; border: 0; padding: 0; text-decoration: underline; text-underline-offset: 3px; }

.form-actions { display: flex; gap: 1rem; margin-top: 0.5rem; }
.form-actions .btn-primary { flex: 1; }
.form-actions .btn-back { border-color: var(--border); background: none; font-size: 0.875rem; padding: 0.85rem 1.5rem; }
.form-actions .btn-back:hover { background: var(--muted); }

.consent { border-radius: 1rem; border: 1px solid var(--secondary); background: hsl(148 22% 74% / 0.3); padding: 1.25rem; margin-bottom: 1.5rem; }
.consent h3 { display: flex; align-items: center; gap: 0.75rem; font-family: var(--font-body); font-size: 0.75rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--primary); margin-bottom: 0.75rem; }
.consent > p { font-size: 0.75rem; color: hsl(200 18% 20% / 0.7); line-height: 1.6; max-width: none; margin-bottom: 0.5rem; }
.consent strong { color: var(--foreground); }
.check { display: flex; align-items: flex-start; gap: 0.75rem; margin-top: 1rem; cursor: pointer; }
.check input { appearance: none; margin: 0.15rem 0 0; flex: none; width: 1.25rem; height: 1.25rem; border-radius: 0.4rem; border: 2px solid hsl(20 52% 56% / 0.4); background: var(--card); display: grid; place-content: center; cursor: pointer; }
.check input::before { content: ""; width: 0.55rem; height: 0.3rem; border-left: 2px solid var(--primary-foreground); border-bottom: 2px solid var(--primary-foreground); transform: rotate(-45deg) scale(0); margin-top: -2px; transition: transform 0.15s; }
.check input:checked { background: var(--primary); border-color: var(--primary); }
.check input:checked::before { transform: rotate(-45deg) scale(1); }
.check input:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; }
.check span { font-size: 0.75rem; color: hsl(200 18% 20% / 0.7); line-height: 1.6; }

.confirmed { padding: 2rem 0; }
.confirmed .badge { width: 5rem; height: 5rem; border-radius: 50%; background: var(--terracotta-light); color: var(--primary); display: flex; align-items: center; justify-content: center; margin-bottom: 1.5rem; }
.confirmed .badge .icon { width: 36px; height: 36px; }
.confirmed h2 { font-size: var(--fs-h2); margin-bottom: 1rem; }
.confirmed p { color: var(--muted-foreground); margin-bottom: 0.5rem; }
.confirmed p strong { color: var(--foreground); }
.confirmed .small { font-size: 0.875rem; margin-bottom: 2rem; }
.confirmed .info-box { margin-bottom: 1.5rem; }
.confirmed .alert { margin-bottom: 1.5rem; }
.confirmed .alert p { color: inherit; margin: 0; }
.confirmed .info-box li { align-items: flex-start; }
.confirmed .info-box li::before { content: "✦"; color: var(--primary); }
.setup-notice { border-radius: 1.5rem; background: var(--sun-light); padding: 2.5rem 2rem; }
.setup-notice h2 { font-size: 1.5rem; margin-bottom: 0.75rem; }
.setup-notice p { font-size: 0.9375rem; color: hsl(200 18% 20% / 0.75); }

/* ── Motion ─────────────────────────────────────── */
.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); transition-delay: var(--d, 0s); }
.js .reveal.in { opacity: 1; transform: none; }

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