/* Casa OS Studio — family AI curriculum marketing site */
:root {
  --ink: #29243b;
  --ink-soft: #4a4458;
  --muted: #7b7487;
  --line: #e9e2db;
  --paper: #fffdf9;
  --cream: #f7f2ec;
  --cream-2: #efe8df;
  --white: #fffcf8;
  --teal: #2a6b63;
  --teal-soft: #e6f3f0;
  --coral: #e8786e;
  --coral-dark: #c95d54;
  --gold: #c9a227;
  --gold-soft: #faf3dc;
  --plum: #5f4b84;
  --plum-soft: #eee8f4;
  --font: "DM Sans", system-ui, sans-serif;
  --display: "Fraunces", Georgia, serif;
  --mono: "IBM Plex Mono", ui-monospace, monospace;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--cream);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--teal); text-decoration: none; }
a:hover { color: var(--coral-dark); }
h1, h2, h3, h4 { text-wrap: pretty; margin: 0; }

.wrap { width: min(100% - 2rem, 1120px); margin-inline: auto; }
.wrap-narrow { width: min(100% - 2rem, 720px); margin-inline: auto; }
.wrap-form { width: min(100% - 2rem, 540px); margin-inline: auto; }

/* Language */
[data-lang="en"] { display: none; }
.lang-en [data-lang="es"] { display: none; }
.lang-en [data-lang="en"] { display: revert; }
.lang-en li[data-lang="en"] { display: list-item; }

/* Reveal */
.rv {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.7s cubic-bezier(0.2, 0.7, 0.2, 1), transform 0.7s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.rv.in { opacity: 1; transform: none; }
.rv.d1 { transition-delay: 0.08s; }
.rv.d2 { transition-delay: 0.16s; }
.rv.d3 { transition-delay: 0.24s; }
@media (prefers-reduced-motion: reduce) {
  .rv { opacity: 1 !important; transform: none !important; transition: none; }
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(247, 242, 236, 0.92);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.site-header.scrolled {
  border-bottom-color: var(--line);
  box-shadow: 0 6px 20px rgba(41, 36, 59, 0.06);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 72px;
  gap: 1rem;
  flex-wrap: wrap;
  position: relative;
}
.brand {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  color: var(--ink);
  font-weight: 700;
  letter-spacing: -0.02em;
}
.brand .mark {
  width: 42px;
  height: 42px;
  border-radius: 14px;
  background: linear-gradient(145deg, var(--teal), #3d8f84);
  color: #fff;
  display: grid;
  place-items: center;
  font-family: var(--mono);
  font-size: 0.72rem;
  font-weight: 600;
  box-shadow: 0 8px 18px rgba(42, 107, 99, 0.28);
}
.brand .brand-text { display: grid; line-height: 1.15; }
.brand .brand-text strong { font-size: 1.05rem; }
.brand .brand-text small {
  font-size: 0.68rem;
  font-weight: 650;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 1.15rem;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-links a {
  color: var(--ink-soft);
  font-size: 0.9rem;
  font-weight: 500;
}
.nav-links a:hover { color: var(--coral-dark); }
.header-actions { display: flex; align-items: center; gap: 0.75rem; }
.lang-switch {
  display: inline-flex;
  border: 1px solid var(--line);
  border-radius: 999px;
  overflow: hidden;
  font-size: 0.72rem;
  font-weight: 700;
  font-family: var(--mono);
}
.lang-switch button {
  border: 0;
  background: transparent;
  padding: 0.4rem 0.7rem;
  cursor: pointer;
  color: var(--muted);
  font: inherit;
}
.lang-switch button.active {
  background: var(--ink);
  color: var(--white);
}
.menu-toggle {
  display: none;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 0.45rem 0.7rem;
  cursor: pointer;
  font-size: 1rem;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.95rem 1.5rem;
  border-radius: 999px;
  font-weight: 650;
  font-size: 1rem;
  border: 2px solid transparent;
  cursor: pointer;
  font-family: inherit;
  text-align: center;
}
.btn-sm { padding: 0.55rem 1rem; font-size: 0.88rem; white-space: nowrap; }
.btn-coral {
  background: var(--coral);
  color: #fff;
  box-shadow: 0 10px 24px rgba(232, 120, 110, 0.28);
}
.btn-coral:hover { background: var(--coral-dark); color: #fff; }
.btn-teal {
  background: var(--teal);
  color: #fff;
  box-shadow: 0 10px 24px rgba(42, 107, 99, 0.25);
}
.btn-teal:hover { background: #1f544e; color: #fff; }
.btn-ghost {
  border: 2px solid var(--line);
  background: transparent;
  color: var(--ink);
}
.btn-ghost:hover {
  border-color: var(--teal);
  color: var(--teal);
  background: var(--teal-soft);
}
.btn-block { width: 100%; }

/* Sections */
.section { padding: 4.25rem 0; }
.section-white { background: var(--white); }
.section-cream2 { background: var(--cream-2); }
.section-teal {
  background: linear-gradient(160deg, #245a54 0%, #2a6b63 45%, #1f4f4a 100%);
  color: #fff;
}
.section-teal .eyebrow { color: #b8e0d8; }
.section-teal .lead { color: rgba(255, 255, 255, 0.85); }
.section-teal .muted-on-dark { color: rgba(255, 255, 255, 0.72); }
.eyebrow {
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--coral-dark);
  font-weight: 600;
  margin: 0 0 0.55rem;
}
.h-sec {
  font-family: var(--display);
  font-size: clamp(1.75rem, 3.2vw, 2.45rem);
  line-height: 1.15;
  letter-spacing: -0.025em;
  font-weight: 600;
}
.sec-head { margin-bottom: 2.25rem; max-width: 40rem; }
.sec-head.center { margin-inline: auto; text-align: center; }
.lead { color: var(--ink-soft); font-size: 1.05rem; }

/* Hero */
.hero {
  padding: 3.25rem 0 2.5rem;
  position: relative;
  overflow: hidden;
}
.hero .blob {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}
.hero .blob-1 {
  width: 420px;
  height: 420px;
  background: radial-gradient(circle, rgba(232, 120, 110, 0.14), transparent 70%);
  top: -100px;
  right: -80px;
}
.hero .blob-2 {
  width: 380px;
  height: 380px;
  background: radial-gradient(circle, rgba(42, 107, 99, 0.12), transparent 70%);
  bottom: -140px;
  left: -100px;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.12fr 0.88fr;
  gap: 2.5rem;
  align-items: start;
  position: relative;
  z-index: 1;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--mono);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--teal);
  background: var(--teal-soft);
  padding: 0.4rem 0.85rem;
  border-radius: 999px;
  margin-bottom: 1.1rem;
}
.hero h1 {
  font-family: var(--display);
  font-size: clamp(2.2rem, 4.8vw, 3.35rem);
  line-height: 1.08;
  letter-spacing: -0.03em;
  font-weight: 600;
  margin: 0 0 1.05rem;
}
.hero h1 em {
  font-style: italic;
  color: var(--coral-dark);
  font-weight: 500;
}
.hero-p {
  font-size: 1.1rem;
  color: var(--ink-soft);
  max-width: 36rem;
  margin: 0 0 1rem;
}
.hero-note {
  font-size: 0.92rem;
  color: var(--muted);
  max-width: 34rem;
  margin: 0 0 1.4rem;
  border-left: 3px solid var(--gold);
  padding-left: 0.85rem;
}
.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 1.35rem;
}
.hero-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.2rem;
  font-size: 0.88rem;
  color: var(--muted);
}
.hero-stats strong { color: var(--ink-soft); font-weight: 650; }

/* Offer card */
.offer-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 1.5rem;
  box-shadow: 0 20px 50px rgba(41, 36, 59, 0.08);
  position: sticky;
  top: 90px;
}
.offer-strip {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  background: var(--plum-soft);
  border-radius: 12px;
  padding: 0.6rem 0.85rem;
  margin-bottom: 1rem;
}
.offer-strip .dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--plum);
  box-shadow: 0 0 0 4px rgba(95, 75, 132, 0.15);
  flex: none;
}
.offer-strip span {
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--plum);
  font-weight: 600;
}
.offer-card h2 {
  font-family: var(--display);
  font-size: 1.4rem;
  font-weight: 600;
  margin: 0 0 0.35rem;
}
.offer-card .sub {
  color: var(--muted);
  font-size: 0.92rem;
  margin: 0 0 1rem;
}
.price-row {
  display: flex;
  gap: 0.65rem;
  margin-bottom: 1.1rem;
}
.price-box {
  flex: 1;
  border-radius: 14px;
  padding: 0.75rem 0.5rem;
  text-align: center;
  border: 1px solid var(--line);
  background: var(--cream);
}
.price-box.featured {
  border-color: var(--coral);
  background: #fdf1ef;
}
.price-box .amt {
  font-family: var(--display);
  font-size: 1.35rem;
  font-weight: 650;
  display: block;
  letter-spacing: -0.02em;
}
.price-box .cap {
  font-size: 0.7rem;
  color: var(--muted);
  font-weight: 600;
}
.offer-list {
  list-style: none;
  padding: 0;
  margin: 0 0 1.2rem;
  font-size: 0.9rem;
  color: var(--ink-soft);
}
.offer-list li {
  padding: 0.4rem 0 0.4rem 1.35rem;
  position: relative;
  border-bottom: 1px solid rgba(233, 226, 219, 0.7);
}
.offer-list li:last-child { border-bottom: 0; }
.offer-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--teal);
  font-weight: 700;
}
.offer-fine {
  margin: 0.85rem 0 0;
  font-size: 0.78rem;
  color: var(--muted);
  line-height: 1.45;
}

/* Grids */
.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.15rem;
}
.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.15rem;
}
.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}

.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 1.35rem 1.3rem;
}
.card h3 {
  font-family: var(--display);
  font-size: 1.15rem;
  font-weight: 600;
  margin: 0 0 0.45rem;
}
.card p { margin: 0; color: var(--ink-soft); font-size: 0.95rem; }
.card ul {
  margin: 0.5rem 0 0;
  padding-left: 1.1rem;
  color: var(--ink-soft);
  font-size: 0.92rem;
}
.card .icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  font-size: 1.25rem;
  margin-bottom: 0.85rem;
}
.card .icon.teal { background: var(--teal-soft); }
.card .icon.coral { background: #fdecea; }
.card .icon.gold { background: var(--gold-soft); }
.card .icon.plum { background: var(--plum-soft); }

/* Rooms */
.room {
  border-radius: 20px;
  padding: 1.35rem;
  border: 1px solid var(--line);
  background: var(--white);
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  min-height: 100%;
}
.room .room-num {
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 600;
}
.room h3 {
  font-family: var(--display);
  font-size: 1.2rem;
  font-weight: 600;
}
.room p { margin: 0; color: var(--ink-soft); font-size: 0.9rem; flex: 1; }
.room .tag {
  display: inline-flex;
  align-self: flex-start;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 0.25rem 0.55rem;
  border-radius: 999px;
  background: var(--cream);
  color: var(--ink-soft);
}
.room .room-link { margin: 0.65rem 0 0; }
.room .room-link a { font-size: 0.85rem; font-weight: 700; }

/* Steps */
.steps {
  display: grid;
  gap: 0;
  counter-reset: step;
}
.step-row {
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 1rem;
  padding: 1.25rem 0;
  border-bottom: 1px solid var(--line);
  align-items: start;
}
.step-row:last-child { border-bottom: 0; }
.step-num {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: var(--teal-soft);
  color: var(--teal);
  display: grid;
  place-items: center;
  font-family: var(--display);
  font-weight: 650;
  font-size: 1.15rem;
}
.step-row h3 {
  font-family: var(--display);
  font-size: 1.2rem;
  font-weight: 600;
  margin: 0 0 0.3rem;
}
.step-row p { margin: 0; color: var(--ink-soft); }

/* Packages */
.pkg {
  border: 1px solid var(--line);
  border-radius: 22px;
  background: var(--white);
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  height: 100%;
  position: relative;
}
.pkg.featured {
  border-color: var(--coral);
  box-shadow: 0 16px 40px rgba(232, 120, 110, 0.12);
}
.pkg .badge {
  position: absolute;
  top: -11px;
  left: 1.25rem;
  background: var(--coral);
  color: #fff;
  font-family: var(--mono);
  font-size: 0.65rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  font-weight: 600;
  padding: 0.28rem 0.65rem;
  border-radius: 999px;
}
.pkg .pkg-label {
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 600;
  margin-bottom: 0.4rem;
}
.pkg h3 {
  font-family: var(--display);
  font-size: 1.4rem;
  font-weight: 600;
  margin: 0 0 0.35rem;
}
.pkg .price {
  font-family: var(--display);
  font-size: 1.75rem;
  font-weight: 650;
  letter-spacing: -0.02em;
  margin: 0.5rem 0 0.75rem;
}
.pkg .price span {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--muted);
  font-family: var(--font);
}
.pkg .desc {
  color: var(--ink-soft);
  font-size: 0.95rem;
  margin: 0 0 1rem;
  flex: 1;
}
.pkg ul {
  list-style: none;
  padding: 0;
  margin: 0 0 1.25rem;
  font-size: 0.9rem;
  color: var(--ink-soft);
}
.pkg ul li {
  padding: 0.35rem 0 0.35rem 1.25rem;
  position: relative;
}
.pkg ul li::before {
  content: "·";
  position: absolute;
  left: 0.25rem;
  color: var(--teal);
  font-weight: 800;
}

/* Compare */
.compare {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.15rem;
}
.compare .card.good { border-top: 4px solid var(--teal); }
.compare .card.not { border-top: 4px solid var(--coral); }

/* Facilitator */
.fac-grid {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 2rem;
  align-items: center;
}
.fac-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 1.75rem;
}
.fac-card .avatar {
  width: 72px;
  height: 72px;
  border-radius: 20px;
  background: linear-gradient(145deg, var(--plum), var(--teal));
  color: #fff;
  display: grid;
  place-items: center;
  font-family: var(--display);
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 1rem;
}
.fac-card h3 {
  font-family: var(--display);
  font-size: 1.5rem;
  font-weight: 600;
  margin: 0 0 0.25rem;
}
.fac-card .role {
  color: var(--teal);
  font-weight: 650;
  margin: 0 0 0.85rem;
  font-size: 0.95rem;
}
.fac-card p { margin: 0; color: var(--ink-soft); }

/* FAQ */
.faq details {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 1rem 1.15rem;
  margin-bottom: 0.65rem;
}
.faq summary {
  cursor: pointer;
  font-weight: 650;
  list-style: none;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: center;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  font-family: var(--mono);
  color: var(--muted);
  font-size: 1.1rem;
}
.faq details[open] summary::after { content: "–"; }
.faq details p {
  margin: 0.75rem 0 0;
  color: var(--ink-soft);
  font-size: 0.95rem;
}

/* Form */
.form-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 1.75rem;
  box-shadow: 0 16px 40px rgba(41, 36, 59, 0.06);
}
.form-card h2 {
  font-family: var(--display);
  font-size: 1.6rem;
  font-weight: 600;
  margin: 0 0 0.35rem;
}
.form-card .form-lead {
  color: var(--muted);
  margin: 0 0 1.25rem;
  font-size: 0.95rem;
}
.field { margin-bottom: 0.9rem; }
.field label {
  display: block;
  font-size: 0.82rem;
  font-weight: 650;
  margin-bottom: 0.35rem;
  color: var(--ink-soft);
}
.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 0.75rem 0.9rem;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--paper);
  color: var(--ink);
  font: inherit;
}
.field textarea { min-height: 100px; resize: vertical; }
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: 3px solid rgba(42, 107, 99, 0.2);
  border-color: var(--teal);
}
.honeypot {
  position: absolute;
  left: -9999px;
  opacity: 0;
  height: 0;
  overflow: hidden;
}
.form-success,
.form-error {
  display: none;
  padding: 0.85rem 1rem;
  border-radius: 12px;
  margin-bottom: 1rem;
  font-size: 0.92rem;
  font-weight: 550;
}
.form-success {
  background: var(--teal-soft);
  color: var(--teal);
}
.form-error {
  background: #fdecea;
  color: var(--coral-dark);
}
.form-card.is-success .form-success { display: block; }
.form-card.is-error .form-error { display: block; }
.form-card.is-success form { display: none; }

/* Footer */
.site-footer {
  padding: 3rem 0 2rem;
  border-top: 1px solid var(--line);
  background: var(--cream-2);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 1.5rem;
  margin-bottom: 2rem;
}
.footer-grid h4 {
  font-size: 0.75rem;
  font-family: var(--mono);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 0.75rem;
}
.footer-grid a {
  display: block;
  color: var(--ink-soft);
  font-size: 0.92rem;
  margin-bottom: 0.4rem;
}
.footer-grid p {
  color: var(--muted);
  font-size: 0.9rem;
  margin: 0.65rem 0 0;
  max-width: 22rem;
}
.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.5rem;
  justify-content: space-between;
  padding-top: 1.25rem;
  border-top: 1px solid var(--line);
  font-size: 0.8rem;
  color: var(--muted);
}

/* CTA band */
.cta-band {
  text-align: center;
  padding: 1rem 0;
}
.cta-band h2 {
  font-family: var(--display);
  font-size: clamp(1.6rem, 3vw, 2.1rem);
  font-weight: 600;
  margin: 0 0 0.75rem;
}
.cta-band p {
  max-width: 32rem;
  margin: 0 auto 1.25rem;
}
.cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
}

/* Sibling note */
.sibling {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}
.sibling .card {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.15);
  color: #fff;
}
.sibling .card h3 { color: #fff; }
.sibling .card p { color: rgba(255, 255, 255, 0.8); }

/* Mobile */
@media (max-width: 900px) {
  .hero-grid,
  .fac-grid,
  .grid-4,
  .footer-grid,
  .sibling { grid-template-columns: 1fr; }
  .grid-3 { grid-template-columns: 1fr; }
  .grid-2,
  .compare { grid-template-columns: 1fr; }
  .offer-card { position: static; }
  .nav-links {
    display: none;
    width: 100%;
    flex-direction: column;
    align-items: flex-start;
    padding: 0.5rem 0 1rem;
    gap: 0.75rem;
  }
  .nav-links.open { display: flex; }
  .menu-toggle { display: block; }
  .header-inner { row-gap: 0.25rem; }
}
@media (min-width: 701px) and (max-width: 1000px) {
  .grid-4 { grid-template-columns: 1fr 1fr; }
  .grid-3 { grid-template-columns: 1fr 1fr; }
  .grid-3 .pkg:last-child { grid-column: span 2; max-width: 50%; justify-self: center; width: 100%; }
}
