/* Macoma Enterprise
   Palette from the logo (shell sand, charcoal wordmark) and the brand flyer (sage plant). */
:root {
  --pearl: #F8F6F2;
  --mist: #EEE9E1;
  --sand: #C9BCA4;
  --sand-soft: #E4DCCD;
  --taupe: #7D6F5A;
  --charcoal: #2A2927;
  --ink-2: #57524A;
  --sage: #6C7760;
  --white: #FFFFFF;

  --serif: "Marcellus", "Cormorant Garamond", Georgia, serif;
  --sans: "Jost", "Futura", system-ui, -apple-system, "Segoe UI", sans-serif;

  --step-0: 1.0625rem;   /* 17px body */
  --step-1: 1.25rem;
  --step-2: 1.625rem;
  --step-3: clamp(2rem, 3.6vw, 2.875rem);
  --step-4: clamp(2.75rem, 6.2vw, 5.25rem);

  --nav-h: 76px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + 12px); -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--pearl); color: var(--charcoal);
  font: 400 var(--step-0)/1.7 var(--sans); -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--taupe); text-underline-offset: 3px; }
a:hover { color: var(--charcoal); }
:focus-visible { outline: 2px solid var(--taupe); outline-offset: 3px; border-radius: 4px; }
h1, h2, h3 { margin: 0; font-weight: 400; }
p { margin: 0; }

.wrap { width: min(1160px, 100% - 40px); margin-inline: auto; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 12px; z-index: 100; background: var(--charcoal); color: var(--pearl); padding: 8px 14px; border-radius: 999px; }

.h2 { font-family: var(--serif); font-size: var(--step-3); line-height: 1.12; letter-spacing: .005em; }
.lead { font-size: var(--step-1); line-height: 1.6; color: var(--ink-2); max-width: 36em; }
.head { display: grid; gap: 14px; margin-bottom: 48px; max-width: 760px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font: 500 1rem/1 var(--sans); letter-spacing: .02em; text-decoration: none;
  padding: 15px 26px; border-radius: 999px; border: 1px solid transparent; cursor: pointer;
  transition: background-color .2s ease, color .2s ease, border-color .2s ease;
}
.btn svg { width: 20px; height: 20px; fill: currentColor; }
.btn--lg { padding: 18px 32px; font-size: 1.0625rem; }
.btn--sm { padding: 11px 20px; font-size: .9375rem; }
.btn--block { width: 100%; }
.btn--dark { background: var(--charcoal); color: var(--pearl); }
.btn--dark:hover { background: var(--taupe); color: var(--white); }
.btn--ghost { border-color: var(--sand); color: var(--charcoal); background: transparent; }
.btn--ghost:hover { border-color: var(--taupe); color: var(--charcoal); background: var(--white); }
.btn--line { border-color: var(--charcoal); color: var(--charcoal); background: transparent; }
.btn--line:hover { background: var(--charcoal); color: var(--pearl); }
.btn--wa { background: transparent; border-color: var(--sage); color: var(--sage); }
.btn--wa:hover { background: var(--sage); color: var(--white); }
.btn:disabled { opacity: .6; cursor: progress; }

/* ---------- Nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 50; height: var(--nav-h);
  background: rgba(248, 246, 242, .88); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent; transition: border-color .3s ease;
}
.nav.is-scrolled { border-bottom-color: var(--sand-soft); }
.nav__inner { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--charcoal); }
.brand img { width: 40px; height: auto; }
.brand__name { font-family: var(--serif); font-size: 1.5rem; letter-spacing: .14em; text-transform: uppercase; line-height: 1; display: grid; }
.brand__name small { font-family: var(--sans); font-size: .58rem; letter-spacing: .42em; margin-top: 5px; color: var(--ink-2); }
.nav__links { display: flex; align-items: center; gap: 30px; }
.nav__links a:not(.btn) { color: var(--charcoal); text-decoration: none; font-size: .975rem; }
.nav__links a:not(.btn):hover { color: var(--taupe); }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; padding: clamp(56px, 9vw, 120px) 0 clamp(64px, 9vw, 128px); }
.hero::before { /* soft daylight from the top right, like the flyer */
  content: ""; position: absolute; inset: -20% -10% auto auto; width: 70%; height: 120%;
  background: radial-gradient(closest-side, rgba(255, 255, 255, .95), rgba(255, 255, 255, 0));
  pointer-events: none;
}
.hero__inner { position: relative; display: grid; grid-template-columns: 1.15fr .85fr; align-items: center; gap: clamp(32px, 6vw, 96px); }
.hero__tag { font-size: 1rem; letter-spacing: .08em; color: var(--taupe); margin-bottom: 22px; }
.hero__title { font-family: var(--serif); font-size: var(--step-4); line-height: 1.02; letter-spacing: -.005em; }
.hero__lead { margin-top: 26px; font-size: var(--step-1); line-height: 1.6; color: var(--ink-2); max-width: 31em; }
.hero__actions { margin-top: 38px; display: flex; flex-wrap: wrap; gap: 14px; }
.hero__price { margin-top: 26px; font-size: .9375rem; color: var(--ink-2); }

.hero__shell { position: relative; justify-self: center; width: min(100%, 440px); }
.hero__shell::after { /* the shell rests on a surface */
  content: ""; position: absolute; left: 12%; right: 12%; bottom: -26px; height: 34px;
  background: radial-gradient(closest-side, rgba(90, 78, 60, .22), rgba(90, 78, 60, 0));
}
@property --fan { syntax: "<angle>"; inherits: false; initial-value: 180deg; }
.hero__shell img {
  width: 100%; position: relative; z-index: 1;
  /* The shell opens rib by rib, fanning out from its hinge (bottom centre). */
  -webkit-mask-image: conic-gradient(from -90deg at 50% 100%, #000 var(--fan, 180deg), transparent 0);
  mask-image: conic-gradient(from -90deg at 50% 100%, #000 var(--fan, 180deg), transparent 0);
  animation: fan-open 1.8s cubic-bezier(.33, .8, .25, 1) .25s both;
}
@keyframes fan-open { from { --fan: 0deg; } to { --fan: 180deg; } }

/* ---------- Why ---------- */
.why { background: var(--mist); padding: clamp(64px, 9vw, 112px) 0; }
.why__inner { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 96px); align-items: start; }
.why__body > p { font-size: var(--step-1); line-height: 1.65; color: var(--ink-2); }
.outcomes { list-style: none; margin: 36px 0 0; padding: 0; display: grid; gap: 22px; }
.outcomes li { display: grid; gap: 2px; padding-left: 22px; border-left: 2px solid var(--sand); }
.outcomes b { font-weight: 500; font-size: 1.125rem; }
.outcomes span { color: var(--ink-2); }

/* ---------- Sessions ---------- */
.sessions { padding: clamp(72px, 10vw, 128px) 0; }
.session-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--sand-soft); }
.session {
  display: grid; grid-template-columns: 96px 1fr; gap: 24px; align-items: baseline;
  padding: 30px 0; border-bottom: 1px solid var(--sand-soft);
}
.session__n { font-family: var(--serif); font-size: 3.25rem; line-height: 1; color: var(--sand); }
.session h3 { font-size: var(--step-2); font-family: var(--serif); line-height: 1.2; }
.session p { margin-top: 8px; color: var(--ink-2); max-width: 40em; }

/* ---------- Pricing ---------- */
.pricing { background: var(--white); padding: clamp(72px, 10vw, 128px) 0; }
.plans { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
.plan { display: flex; flex-direction: column; gap: 22px; padding: clamp(28px, 4vw, 44px); border: 1px solid var(--sand-soft); border-radius: 28px; background: var(--pearl); }
.plan--full { background: var(--charcoal); color: var(--pearl); border-color: var(--charcoal); }
.plan h3 { font-family: var(--serif); font-size: var(--step-2); }
.plan__price { color: var(--ink-2); }
.plan__price b { display: block; font-family: var(--serif); font-weight: 400; font-size: 3rem; line-height: 1.1; color: var(--charcoal); }
.plan--full .plan__price, .plan.plan--full li { color: var(--sand-soft); }
.plan--full .plan__price b { color: var(--pearl); }
.plan ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; flex: 1; }
.plan li { padding-left: 26px; position: relative; color: var(--ink-2); }
.plan li::before { content: ""; position: absolute; left: 0; top: .72em; width: 12px; height: 1px; background: var(--sand); }
.plan .btn { align-self: flex-start; }
.plan--full .btn--dark { background: var(--pearl); color: var(--charcoal); }
.plan--full .btn--dark:hover { background: var(--sand); }

/* ---------- How ---------- */
.how { padding: clamp(72px, 10vw, 128px) 0; }
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; }
.steps li { display: grid; gap: 10px; align-content: start; }
.steps span { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; border: 1px solid var(--sand); font-family: var(--serif); font-size: 1.25rem; color: var(--taupe); }
.steps h3 { font-size: 1.25rem; font-weight: 500; margin-top: 8px; }
.steps p { color: var(--ink-2); }

/* ---------- Book ---------- */
.book { background: var(--mist); padding: clamp(72px, 10vw, 128px) 0; }
.book__inner { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(32px, 6vw, 88px); align-items: start; }
.book__intro { display: grid; gap: 18px; position: sticky; top: calc(var(--nav-h) + 32px); }
.direct { list-style: none; margin: 14px 0 0; padding: 0; display: grid; gap: 10px; font-size: 1.0625rem; }
.direct a { color: var(--charcoal); text-decoration-color: var(--sand); }

.form { background: var(--white); border-radius: 28px; padding: clamp(24px, 4vw, 44px); display: grid; gap: 18px; }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { display: grid; gap: 7px; }
.field > span { font-size: .9375rem; font-weight: 500; }
.field i { font-style: normal; font-weight: 400; color: var(--ink-2); }
.field input, .field select, .field textarea {
  width: 100%; font: inherit; font-size: 1rem; color: var(--charcoal);
  padding: 13px 15px; border: 1px solid var(--sand-soft); border-radius: 14px; background: var(--pearl);
}
.field textarea { resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--taupe); box-shadow: 0 0 0 4px rgba(125, 111, 90, .14); }
.field.is-invalid input { border-color: #b4532f; }
.consent { display: grid; grid-template-columns: auto 1fr; gap: 12px; font-size: .9375rem; color: var(--ink-2); align-items: start; }
.consent input { margin-top: 5px; width: 18px; height: 18px; accent-color: var(--charcoal); }
.form__error { color: #a3472a; font-weight: 500; }
.form__trap { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form__done { padding: 24px; border-radius: 18px; background: #eef1ea; border: 1px solid #d3dbc9; }
.form__done b { display: block; font-family: var(--serif); font-weight: 400; font-size: 1.5rem; color: var(--sage); margin-bottom: 6px; }
.form__done p { color: var(--ink-2); }

/* ---------- Footer ---------- */
.footer { padding: 64px 0 48px; }
.footer__inner { display: grid; grid-template-columns: auto 1fr; gap: 48px; align-items: center; }
.footer__logo { width: 180px; }
.footer__cols { display: grid; gap: 16px; color: var(--ink-2); }
.footer__line { font-family: var(--serif); font-size: var(--step-2); color: var(--charcoal); line-height: 1.25; }
.footer__cols a { color: var(--charcoal); }
.footer__legal { font-size: .875rem; }

.quickbar { display: none; }

/* ---------- Privacy page ---------- */
.page { padding: clamp(48px, 8vw, 96px) 0; }
.prose { max-width: 720px; }
.prose h1 { font-family: var(--serif); font-size: var(--step-3); line-height: 1.12; margin-bottom: 12px; }
.prose h2 { font-family: var(--serif); font-size: var(--step-2); margin: 40px 0 10px; }
.prose p, .prose li { color: var(--ink-2); }
.prose p + p { margin-top: 12px; }
.prose ul { padding-left: 20px; }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .hero__inner, .why__inner, .book__inner { grid-template-columns: 1fr; }
  .hero__shell { width: min(70%, 340px); order: -1; }
  .book__intro { position: static; }
  .plans, .steps { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  .hero__shell { width: min(56%, 220px); }
  :root { --nav-h: 66px; }
  .nav__links a:not(.btn) { display: none; }
  .brand__name { font-size: 1.25rem; }
  .form__row { grid-template-columns: 1fr; }
  .session { grid-template-columns: 56px 1fr; gap: 14px; }
  .session__n { font-size: 2.5rem; }
  .footer__inner { grid-template-columns: 1fr; gap: 28px; }
  body { padding-bottom: 76px; }
  .quickbar {
    display: grid; grid-template-columns: 1fr 1fr 1.2fr; gap: 8px; position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
    padding: 10px 14px calc(10px + env(safe-area-inset-bottom)); background: rgba(248, 246, 242, .96);
    backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-top: 1px solid var(--sand-soft);
  }
  .quickbar a { display: grid; place-items: center; padding: 12px 6px; border-radius: 999px; border: 1px solid var(--sand); color: var(--charcoal); text-decoration: none; font-weight: 500; }
  .quickbar .quickbar__primary { background: var(--charcoal); color: var(--pearl); border-color: var(--charcoal); }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero__shell img { animation: none; }
}
