/* Greylock Trust booking page
   Built for older readers: 20px body text, strong contrast, large targets. */

:root {
  --paper: #F6F7FA;
  --surface: #FFFFFF;
  --ink: #1E3145;
  --body: #3A4757;
  --muted: #5F6C7B;
  --gold: #C3903C;      /* brand gold */
  --gold-btn: #9C7226;  /* brand dark gold, for buttons with white text */
  --gold-head: #9C7226;  /* brand dark gold, as on greylocktrust.com */
  --gold-text: #7E5B1C;
  --line: rgba(30, 49, 69, .13);

  --serif: 'Fraunces', Georgia, serif;
  --sans: 'DM Sans', system-ui, -apple-system, sans-serif;

  --wrap: 1200px;
  --narrow: 720px;
  --gutter: clamp(16px, 4vw, 40px);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--paper);
  color: var(--body);
  font-family: var(--sans);
  font-size: 20px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; height: auto; }
[hidden] { display: none !important; }
h1, h2, h3 { color: var(--ink); font-family: var(--serif); font-weight: 500; line-height: 1.15; margin: 0; }
h2 { font-size: clamp(30px, 4vw, 40px); margin-bottom: .6em; }
h3 { font-size: 24px; margin-bottom: .3em; }
p { margin: 0 0 1em; }
a { color: var(--ink); text-underline-offset: 3px; }

:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; border-radius: 4px; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.narrow { max-width: var(--narrow); }
.wrap.narrow { max-width: calc(var(--narrow) + 2 * var(--gutter)); }

/* Button */
/* buttons */
.btn {
  display: inline-block;
  background: var(--gold-btn);
  color: #fff;
  font-weight: 600;
  font-size: 20px;
  text-decoration: none;
  padding: 15px 36px;
  border-radius: 999px;
  transition: background .15s ease;
}
.btn:hover { background: var(--gold-text); color: #fff; }
button.btn { border: 0; cursor: pointer; font-family: inherit; line-height: inherit; }
.btn-ghost {
  background: rgba(255, 255, 255, .7);
  color: var(--ink);
  box-shadow: inset 0 0 0 2px var(--gold-btn);
}
.btn-ghost:hover { background: #fff; color: var(--ink); }

/* Landing */
.hero { padding: clamp(10px, 1.5vw, 20px) clamp(12px, 2vw, 32px) 0; }
.hero-card {
  position: relative;
  max-width: 1600px;
  margin: 0 auto;
  min-height: min(78vh, 720px);
  border-radius: 32px;
  overflow: hidden;
  background: #EEF0F3;
  display: flex;
  align-items: center;
}
.hero-bg {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: 70% 55%;
}
/* light wash so the text on the left reads clearly over the photo */
.hero-card::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(90deg,
    rgba(247,247,250,.95) 0%,
    rgba(247,247,250,.9) 38%,
    rgba(247,247,250,.55) 58%,
    rgba(247,247,250,.15) 80%,
    rgba(247,247,250,0) 100%);
}
.hero-content {
  position: relative; z-index: 1;
  max-width: 1000px;
  padding: clamp(24px, 3vw, 44px) clamp(24px, 6vw, 100px);
}
.brand {
  display: inline-flex; align-items: center; gap: 10px;
  text-decoration: none; color: var(--ink);
  font-family: var(--serif); font-size: 22px; font-weight: 500;
  margin-bottom: clamp(16px, 2.5vw, 28px);
}
.hero h1 {
  font-style: italic;
  font-variation-settings: "opsz" 144;
  color: var(--gold-head);
  font-size: clamp(40px, 4.8vw, 80px);
  max-width: 10.5em;
  line-height: 1.02;
  letter-spacing: -.025em;
  margin-bottom: .4em;
}
.hero-content > p { font-size: 19px; color: var(--body); max-width: 31em; }
.hero-content > p + p { margin-bottom: 1.1em; }
/* "Trust" in the name, in gold */
.brand-accent { color: var(--gold-head); }
.foot .brand-accent { color: var(--gold); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px 16px; }
.hero-note { font-size: 17px !important; color: var(--muted) !important; margin: .9em 0 0 !important; }

/* Video */
.video { padding: clamp(16px, 2vw, 24px) 0 0; }
.video-frame {
  position: relative;
  max-width: 960px; margin: 0 auto;
  aspect-ratio: 16 / 9;
  border-radius: 24px; overflow: hidden;
  background: #E9ECF1;
  border: 1px solid var(--line);
  display: flex; align-items: center; justify-content: center;
}
.video-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
/* Cover photo with a play button, shown until the video link is set in config.js */
.video-cover { position: absolute; inset: 0; }
.video-cover img { width: 100%; height: 100%; object-fit: cover; }
.play {
  position: absolute; left: 50%; top: 50%;
  width: 88px; height: 88px; margin: -44px 0 0 -44px;
  border-radius: 50%;
  background: rgba(30, 49, 69, .78);
  box-shadow: 0 6px 24px rgba(0, 0, 0, .25);
}
.play::after {
  content: ""; position: absolute; left: 50%; top: 50%;
  margin: -16px 0 0 -9px;
  border-style: solid; border-width: 16px 0 16px 28px;
  border-color: transparent transparent transparent #fff;
}
.soon-short { display: none; }
.video-soon {
  position: absolute; left: 0; right: 0; bottom: 0; margin: 0;
  padding: 40px 24px 18px;
  background: linear-gradient(to top, rgba(30, 49, 69, .8), rgba(30, 49, 69, 0));
  color: #fff; font-size: 18px; text-align: center;
}
@media (max-width: 600px) {
  .play { width: 52px; height: 52px; margin: -26px 0 0 -26px; }
  .play::after { margin: -10px 0 0 -6px; border-width: 10px 0 10px 17px; }
  .video-soon { font-size: 15px; padding: 24px 12px 8px; }
  .soon-long { display: none; }
  .soon-short { display: inline; }
}

/* Booking: on a white band, so Calendly's white calendar sits in it without a second frame */
.book {
  background: var(--surface);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  margin-top: clamp(28px, 4vw, 48px);
  padding: clamp(36px, 5vw, 56px) 0 clamp(28px, 4vw, 44px);
  scroll-margin-top: 0;
}
.book:focus, .gift:focus { outline: none; }
.book h2, .gift h2 { margin-bottom: .35em; }
.lead { max-width: var(--narrow); margin-bottom: 20px; }

/* Switch between the two sessions */
.switch {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  max-width: var(--narrow);
  margin: 0 0 8px;
}
.switch-option {
  display: flex; flex-direction: column; gap: 0;
  text-align: left;
  font: inherit;
  color: var(--ink);
  background: var(--surface);
  border: 2px solid var(--line);
  border-radius: 14px;
  padding: 12px 18px;
  cursor: pointer;
  transition: border-color .15s ease, background .15s ease;
}
.switch-option:hover { border-color: var(--gold); }
.switch-option[aria-selected="true"] {
  border-color: var(--gold-btn);
  background: #FBF4E6;
  box-shadow: inset 0 0 0 1px var(--gold-btn);
}
.switch-name { font-weight: 600; font-size: 20px; }
.switch-meta { color: var(--muted); font-size: 17px; }
.switch-option[aria-selected="true"] .switch-meta { color: var(--gold-text); }

/* The two calendars. The one not chosen stays laid out but out of sight,
   so Calendly can size it before it is shown. */
.panels { position: relative; }
.panel.is-off {
  position: absolute; top: 0; left: 0; right: 0;
  visibility: hidden; pointer-events: none;
}
.panel-note { max-width: var(--narrow); margin: 12px 0 0; font-size: 18px; color: var(--muted); }

/* What the client will have after the full session */
.outcomes { max-width: 920px; margin: 20px 0 20px; }
.outcomes h3 { font-family: var(--sans); font-size: 19px; font-weight: 600; margin-bottom: 10px; }
.outcomes ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 10px 32px; }
.outcomes li { position: relative; padding-left: 30px; font-size: 18px; line-height: 1.45; color: var(--ink); }
.outcomes li::before {
  content: ""; position: absolute; left: 2px; top: .3em;
  width: 7px; height: 13px;
  border: solid var(--gold-btn); border-width: 0 3px 3px 0;
  transform: rotate(45deg);
}
#panel-welcome .outcomes ul { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 760px) { .outcomes ul, #panel-welcome .outcomes ul { grid-template-columns: 1fr; } }

/* Fixed heights (Calendly's own default is 700px), so the page doesn't jump when a calendar loads */
.calendar .calendly-inline-widget { min-width: 320px; height: 700px; }
.calendar-fallback { padding: 32px 0; }
.fallback-title { font-family: var(--serif); font-size: 26px; color: var(--ink); margin-bottom: .4em; }
.calendar-fallback p:last-child { margin-bottom: 0; }

.booked { max-width: var(--narrow); margin-top: 16px; padding: 22px 28px; background: #EAF3EC; border: 1px solid #B9D6C0; border-radius: 14px; }
.booked h3 { font-size: 22px; }
.booked p { margin: 0; }
.help-line { margin: 12px 0 0; font-size: 18px; color: var(--muted); }

/* Shared numbered steps (gift section) */
.steps { margin: 0 0 16px; padding: 0 0 0 1.3em; }
.steps li { padding-left: 6px; margin-bottom: 10px; }
.steps li::marker { color: var(--gold-text); font-weight: 700; }
.steps strong { color: var(--ink); }

/* Gift: a white band like the booking area, so its calendar sits the same way */
.gift { background: var(--surface); padding: clamp(36px, 5vw, 56px) 0; scroll-margin-top: 0; }
.gift .steps, .gift-note { max-width: var(--narrow); }
.gift-note { font-size: 18px; color: var(--muted); margin-bottom: 8px; }
.gift-fallback { margin: 0; color: var(--muted); }


/* FAQ */
.faq { background: var(--surface); border-top: 1px solid var(--line); padding: clamp(56px, 8vw, 96px) 0; }
details { border-bottom: 1px solid var(--line); }
details:first-of-type { border-top: 1px solid var(--line); }
summary {
  cursor: pointer; list-style: none;
  padding: 22px 44px 22px 0; position: relative;
  font-weight: 600; color: var(--ink); font-size: 21px;
}
summary::-webkit-details-marker { display: none; }
summary::after {
  content: "+"; position: absolute; right: 4px; top: 50%;
  transform: translateY(-50%);
  font-size: 30px; font-weight: 400; color: var(--gold-text);
}
details[open] summary::after { content: "\2212"; }
details p { padding: 0 0 22px; margin: 0; }

/* Footer */
.foot { background: var(--ink); color: #D6DFE8; padding: 32px 0; font-size: 18px; }
.foot-inner { display: flex; flex-wrap: wrap; gap: 8px 32px; justify-content: space-between; }
.foot p { margin: 0; }
.foot a { color: #fff; }

/* Short laptop screens (about 720 to 800px tall): a slightly smaller hero,
   so the top of the video shows below it */
@media (min-width: 821px) and (max-height: 820px) {
  .hero-card { min-height: 0; }
  .hero h1 { font-size: clamp(40px, 4.4vw, 66px); }
  .hero-content > p { font-size: 18px; }
  .brand { margin-bottom: 14px; }
}

/* On narrower screens Calendly stacks the description above the calendar, so it needs more height */
@media (max-width: 860px) {
  .calendar .calendly-inline-widget { height: 1100px; }
}

/* Phones and narrow tablets: photo on top, text below on plain background */
@media (max-width: 820px) {
  .hero-card { display: block; min-height: 0; border-radius: 24px; background: var(--surface); }
  .hero-bg { position: relative; height: 260px; object-position: 60% 60%; }
  .hero-card::after { display: none; }
  .hero-content { padding: 28px 22px 36px; }
  .brand { margin-bottom: 20px; }
}
@media (max-width: 420px) {
  body { font-size: 19px; }
  .hero-content > p { font-size: 19px; }
  .btn { width: 100%; text-align: center; }
  .switch { grid-template-columns: 1fr; }
}
