/* =========================================================
   Do You Need a Fractional Chief AI Officer? landing page
   Palette + type sampled / chosen to extend the book cover.
   ========================================================= */

:root {
  --cream:   #E3E0DA;
  --cream-2: #ECEAE4;   /* lighter cream for lift */
  --paper:   #FBFAF7;   /* card / white */
  --navy:    #384C60;
  --navy-d:  #2C3C4D;   /* deeper navy for footer/depth */
  --ink:     #2A3A49;   /* body text */
  --ink-soft:#4A5867;
  --gold:    #B69E60;
  --gold-d:  #9E863F;   /* deeper gold for hover/contrast */

  --maxw: 1140px;
  --pad: clamp(1.25rem, 4vw, 3rem);

  --serif: "Newsreader", Georgia, "Times New Roman", serif;
  --sans: "Hanken Grotesk", -apple-system, BlinkMacSystemFont, sans-serif;

  --shadow-cover: 0 30px 60px -20px rgba(40,58,73,.45), 0 8px 18px -10px rgba(40,58,73,.3);
  --shadow-card: 0 18px 40px -22px rgba(40,58,73,.35);
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--sans);
  color: var(--ink);
  background: var(--cream);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  /* subtle paper grain */
  background-image:
    radial-gradient(rgba(40,58,73,.022) 1px, transparent 1px);
  background-size: 4px 4px;
}

.wrap { max-width: var(--maxw); margin-inline: auto; padding-inline: var(--pad); width: 100%; }

h1, h2, h3 { font-family: var(--serif); color: var(--navy); font-weight: 600; line-height: 1.1; letter-spacing: -0.01em; text-wrap: balance; }

a { color: var(--gold-d); text-decoration: none; }
a:hover { text-decoration: underline; }

.eyebrow {
  font-family: var(--sans);
  font-weight: 600;
  font-size: .78rem;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--gold-d);
  margin-bottom: 1rem;
}
.eyebrow--gold { color: var(--gold); }

/* ---------- Top bar ---------- */
.topbar {
  position: sticky; top: 0; z-index: 50;
  background: rgba(227,224,218,.82);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(40,58,73,.10);
}
.topbar__inner { display: flex; align-items: center; justify-content: space-between; min-height: 60px; gap: 1.25rem; padding-block: .5rem; }
.wordmark { font-family: var(--serif); font-weight: 600; font-size: clamp(.92rem, 2.1vw, 1.12rem); color: var(--navy); letter-spacing: .01em; line-height: 1.15; }
.wordmark:hover { text-decoration: none; }
.topbar__cta {
  font-family: var(--sans); font-weight: 600; font-size: .9rem;
  color: var(--navy); padding: .4rem .9rem; border: 1px solid var(--gold);
  border-radius: 999px; transition: all .25s ease;
}
.topbar__cta:hover { background: var(--gold); color: var(--paper); text-decoration: none; }

/* ---------- Hero ---------- */
.hero { padding-top: clamp(2.5rem, 7vw, 5rem); padding-bottom: clamp(1.5rem, 4vw, 3rem); }
.hero__grid {
  display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
}
.hero__copy { max-width: 36rem; }
h1 { font-size: clamp(2.05rem, 4.6vw, 3.25rem); margin-bottom: 1.25rem; }
.lede { font-size: clamp(1.05rem, 1.6vw, 1.22rem); color: var(--ink-soft); max-width: 33rem; }

.hero__cover { display: flex; justify-content: center; }
.hero__cover img {
  width: 100%; max-width: 420px; height: auto;
  filter: drop-shadow(0 30px 45px rgba(40,58,73,.35));
  transform: rotate(.5deg);
  transition: transform .5s ease;
}
.hero__cover img:hover { transform: rotate(0deg) translateY(-4px); }

/* ---------- Signup form ---------- */
.signup {
  margin-top: 2rem; background: var(--paper);
  border: 1px solid rgba(40,58,73,.10);
  border-radius: 14px; padding: 1.5rem; box-shadow: var(--shadow-card);
}
.signup__title { font-weight: 600; color: var(--navy); margin-bottom: 1rem; font-size: 1rem; }
.signup__row { display: grid; grid-template-columns: 1fr 1fr; gap: .65rem; margin-bottom: .65rem; }
.signup input[type=text], .signup input[type=email] {
  width: 100%; font-family: var(--sans); font-size: 1rem; color: var(--ink);
  padding: .85rem 1rem; border: 1px solid rgba(40,58,73,.22); border-radius: 9px;
  background: #fff; transition: border-color .2s ease, box-shadow .2s ease;
}
.signup input::placeholder { color: #93999f; }
.signup input:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px rgba(182,158,96,.22); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }

.btn {
  display: inline-block; width: 100%; cursor: pointer; border: none;
  font-family: var(--sans); font-weight: 700; font-size: 1.02rem; letter-spacing: .01em;
  padding: .95rem 1.4rem; border-radius: 9px; transition: transform .15s ease, background .25s ease, box-shadow .25s ease;
}
.btn--primary { background: var(--navy); color: var(--cream-2); box-shadow: 0 8px 20px -10px rgba(40,58,73,.7); }
.btn--primary:hover { background: var(--navy-d); transform: translateY(-2px); box-shadow: 0 12px 24px -10px rgba(40,58,73,.75); }
.btn--navy { background: var(--navy); color: var(--cream-2); }
.btn--navy:hover { background: var(--navy-d); transform: translateY(-2px); }

.signup__micro { font-size: .82rem; color: var(--ink-soft); margin-top: .75rem; text-align: center; }
.signup__micro--center { text-align: center; }
.signup__msg { font-size: .92rem; margin-top: .6rem; text-align: center; font-weight: 600; min-height: 0; }
.signup__msg.ok { color: #2c7a5a; }
.signup__msg.err { color: #b4452f; }
.signup.is-done .signup__row, .signup.is-done .btn, .signup.is-done .signup__micro { display: none; }

/* ---------- Decorative rule ---------- */
.rule { height: 1px; margin-top: clamp(2rem, 5vw, 3.5rem); }
.rule--gold { background: linear-gradient(90deg, transparent, var(--gold) 18%, var(--gold) 82%, transparent); opacity: .55; }

/* ---------- Bands ---------- */
.band { padding: clamp(3rem, 7vw, 5.5rem) 0; }
.band--navy { background: var(--navy); color: var(--cream); }
.band--navy h2 { color: var(--paper); }
.band--navy p { color: rgba(243,240,233,.86); }
.band--gold { background: linear-gradient(160deg, var(--gold) 0%, var(--gold-d) 100%); color: var(--navy-d); }
.band--gold h2 { color: var(--navy-d); }
.band__inner h2 { font-size: clamp(1.8rem, 3.6vw, 2.7rem); margin-bottom: 1.75rem; }
.band__inner--center { text-align: center; max-width: 40rem; margin-inline: auto; }
.band__cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; font-size: 1.05rem; }
.band__sub { font-size: 1.1rem; margin-bottom: 1.75rem; color: var(--navy-d); opacity: .85; }

.signup--inline { background: transparent; border: none; box-shadow: none; padding: 0; margin-top: 0; display: grid; gap: .65rem; max-width: 38rem; margin-inline: auto; }
.signup--inline .signup__email { text-align: left; }
.band--gold .signup--inline input { border-color: rgba(44,60,77,.3); }
.band--gold .signup__micro { color: var(--navy-d); opacity: .8; }

/* ---------- What's inside ---------- */
.inside { padding: clamp(3.5rem, 8vw, 6rem) 0 0; }
.inside__head { max-width: 40rem; margin-bottom: clamp(2rem, 4vw, 3rem); }
.inside__head h2 { font-size: clamp(1.65rem, 3.2vw, 2.35rem); }
.checklist { list-style: none; display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem 3rem; }
.checklist li { display: flex; gap: 1rem; align-items: flex-start; padding-bottom: 1.4rem; border-bottom: 1px solid rgba(40,58,73,.12); }
.checklist li:last-child:nth-child(odd) { grid-column: 1 / -1; max-width: 50%; }
.tick { flex: 0 0 26px; width: 26px; height: 26px; border-radius: 50%; margin-top: 3px; background: var(--gold); position: relative; }
.tick::after { content: ""; position: absolute; left: 9px; top: 5px; width: 6px; height: 11px; border: solid var(--paper); border-width: 0 2.5px 2.5px 0; transform: rotate(45deg); }
.checklist h3 { font-size: 1.18rem; margin-bottom: .3rem; }
.checklist p { font-size: .98rem; color: var(--ink-soft); }

/* ---------- About ---------- */
.about { padding: clamp(3.5rem, 8vw, 6rem) 0; }
.about__grid { display: grid; grid-template-columns: 280px 1fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.about__photo img { width: 100%; aspect-ratio: 1 / 1; height: auto; border-radius: 50%; object-fit: cover; box-shadow: var(--shadow-card); }
.about__copy h2 { font-size: clamp(1.9rem, 3.6vw, 2.6rem); margin-bottom: .5rem; }
.about__role { font-weight: 600; color: var(--gold-d); margin-bottom: 1rem; font-size: 1.05rem; }
.about__copy p { color: var(--ink-soft); max-width: 34rem; }

/* ---------- Footer ---------- */
.foot { background: var(--navy-d); color: rgba(243,240,233,.8); padding: 2.25rem 0; }
.foot__inner { display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; }
.foot__brand { font-family: var(--serif); color: var(--paper); font-size: 1.05rem; }
.foot__brand span { color: var(--gold); }
.foot__meta { font-size: .9rem; }
.foot__meta a { color: var(--gold); }

/* ---------- Reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: none; }
/* hero staggered load */
.hero .reveal[data-d="1"] { transition-delay: .05s; }
.hero .reveal[data-d="2"] { transition-delay: .18s; }
.hero .reveal[data-d="3"] { transition-delay: .32s; }
.hero .reveal[data-d="4"] { transition-delay: .46s; }

/* ---------- Responsive ---------- */
@media (max-width: 860px) {
  .hero__grid { grid-template-columns: 1fr; }
  .hero__cover { order: -1; }
  .hero__cover img { max-width: 280px; transform: none; }
  .band__cols { grid-template-columns: 1fr; gap: 1.25rem; }
  .checklist { grid-template-columns: 1fr; }
  .checklist li:last-child:nth-child(odd) { max-width: 100%; }
  .about__grid { grid-template-columns: 1fr; text-align: center; }
  .about__photo { max-width: 220px; margin-inline: auto; }
  .about__copy p { margin-inline: auto; }
}
@media (max-width: 520px) {
  .signup__row { grid-template-columns: 1fr; }
  .topbar__cta { display: none; }
  .foot__inner { flex-direction: column; text-align: center; }
}

@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .hero__cover img, .btn { transition: none; }
}
