/* =========================================================================
   imprv.ai — webinar signup landing pages
   Design tokens lifted from firmy.imprv.ai (Fraunces + Inter, orange/ink)
   ========================================================================= */

:root {
  /* palette */
  --ink:        #0E0C0C;
  --ink-2:      #2a2724;
  --muted:      #6f6b6b;
  --muted-2:    #8f8b85;
  --line:       #EBEBEB;
  --line-soft:  #f1efe9;
  --cream:      #f7f6ef;
  --cream-2:    #faf9f5;
  --paper:      #ffffff;

  --orange:     #F97337;
  --orange-2:   #ff6b52;
  --orange-tint:#fff5ef;
  --amber:      #FFC975;
  --purple:     #A093EC;
  --purple-2:   #6b5fc0;
  --purple-tint:#f3f1fc;
  --blue:       #273287;
  --blue-deep:  #101d47;
  --green:      #7CE0A8;
  --green-deep: #00492C;

  --radius:   16px;
  --radius-sm:10px;
  --radius-lg:24px;
  --shadow-sm: 0 1px 3px rgba(14,12,12,.06), 0 1px 2px rgba(14,12,12,.04);
  --shadow-md: 0 12px 40px rgba(14,12,12,.10);
  --shadow-lg: 0 30px 80px rgba(14,12,12,.16);

  --maxw: 1120px;
  --sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --serif:'Fraunces', Georgia, serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  font-family: var(--sans);
  color: var(--ink);
  background: var(--cream-2);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
button { font-family: inherit; cursor: pointer; }

.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

/* ---------- top bar ---------- */
.topbar {
  position: sticky; top: 0; z-index: 50;
  background: rgba(250,249,245,.85);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--line);
}
.topbar__inner { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 700; letter-spacing: -.01em; }
.brand img { height: 28px; width: auto; }
.brand__tag { color: var(--muted); font-weight: 500; font-size: 14px; }
.topbar__cta {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--ink); color: #fff; text-decoration: none;
  padding: 10px 18px; border-radius: 999px; font-weight: 600; font-size: 14px; white-space: nowrap;
  transition: transform .15s ease, background .15s ease;
}
.topbar__cta:hover { transform: translateY(-1px); background: var(--orange); }

/* ---------- hero ---------- */
.hero { position: relative; overflow: hidden; }
.hero::before {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(1100px 480px at 78% -8%, var(--orange-tint) 0%, transparent 60%),
    radial-gradient(900px 480px at 8% 4%, var(--purple-tint) 0%, transparent 55%);
  z-index: 0;
}
.hero__grid {
  position: relative; z-index: 1;
  display: grid; grid-template-columns: 1.15fr .85fr; gap: 56px;
  align-items: center; padding: 72px 0 64px;
}

.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--paper); border: 1px solid var(--line);
  color: var(--ink-2); font-weight: 600; font-size: 13px; letter-spacing: .02em;
  padding: 7px 14px; border-radius: 999px; box-shadow: var(--shadow-sm);
}
.eyebrow .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--orange); box-shadow: 0 0 0 4px rgba(249,115,55,.18); animation: pulse 2s infinite; }
@keyframes pulse { 0%,100% { opacity: 1; } 50% { opacity: .45; } }

h1.hero__title {
  font-family: var(--serif); font-weight: 600; letter-spacing: -.02em;
  font-size: clamp(34px, 5.2vw, 58px); line-height: 1.03; margin: 22px 0 0;
}
.hero__title em { font-style: italic; color: var(--orange); }
.hero__lead { margin-top: 20px; font-size: clamp(16px, 1.6vw, 19px); color: var(--muted); max-width: 42ch; }

.hero__meta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }
.meta-chip {
  display: inline-flex; align-items: center; gap: 9px;
  background: var(--paper); border: 1px solid var(--line); border-radius: 12px;
  padding: 11px 15px; font-size: 14px; font-weight: 500; box-shadow: var(--shadow-sm);
}
.meta-chip svg { width: 18px; height: 18px; color: var(--orange); flex: none; }
.meta-chip b { font-weight: 700; }

.hero__ctas { display: flex; align-items: center; gap: 16px; margin-top: 30px; flex-wrap: wrap; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  border: 0; border-radius: 999px; font-weight: 600; font-size: 16px; white-space: nowrap;
  padding: 15px 28px; text-decoration: none; transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
}
.btn--primary { background: var(--orange); color: #fff; box-shadow: 0 10px 26px rgba(249,115,55,.32); }
.btn--primary:hover { transform: translateY(-2px); box-shadow: 0 16px 34px rgba(249,115,55,.4); }
.btn--ghost { background: transparent; color: var(--ink); }
.btn--ghost:hover { color: var(--orange); }
.btn--block { width: 100%; }
.btn--lg { padding: 17px 30px; font-size: 17px; }

/* speaker card in hero */
.speaker-card {
  position: relative; background: var(--paper); border: 1px solid var(--line);
  border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-lg);
}
.speaker-card__photo { position: relative; aspect-ratio: 4/4.3; overflow: hidden; }
.speaker-card__photo img { width: 100%; height: 100%; object-fit: cover; filter: brightness(1.14) contrast(1.02) saturate(1.05); }
.speaker-card__badge {
  position: absolute; left: 16px; top: 16px; z-index: 2;
  display: inline-flex; align-items: center; gap: 7px;
  background: rgba(14,12,12,.72); color: #fff; backdrop-filter: blur(6px);
  padding: 7px 13px; border-radius: 999px; font-size: 12px; font-weight: 600; letter-spacing: .04em;
}
.speaker-card__badge .live { width: 7px; height: 7px; border-radius: 50%; background: #ff5b47; box-shadow: 0 0 0 0 rgba(255,91,71,.7); animation: live 1.5s infinite; }
@keyframes live { 0% { box-shadow: 0 0 0 0 rgba(255,91,71,.7); } 70% { box-shadow: 0 0 0 8px rgba(255,91,71,0); } 100% { box-shadow: 0 0 0 0 rgba(255,91,71,0); } }
.speaker-card__body { padding: 18px 20px 20px; }
.speaker-card__name { font-family: var(--serif); font-weight: 600; font-size: 22px; letter-spacing: -.01em; }
.speaker-card__role { color: var(--muted); font-size: 14px; margin-top: 3px; }
.socials { display: flex; gap: 10px; margin-top: 14px; }
.socials a {
  width: 38px; height: 38px; border-radius: 10px; border: 1px solid var(--line);
  display: inline-flex; align-items: center; justify-content: center; color: var(--ink-2);
  transition: all .15s ease;
}
.socials a:hover { background: var(--ink); color: #fff; border-color: var(--ink); transform: translateY(-2px); }
.socials svg { width: 18px; height: 18px; }

/* ---------- section scaffolding ---------- */
section.block { padding: 68px 0; }
.section-head { max-width: 720px; }
.section-kicker { font-weight: 700; font-size: 13px; letter-spacing: .12em; text-transform: uppercase; color: var(--orange); }
.section-title { font-family: var(--serif); font-weight: 600; letter-spacing: -.02em; font-size: clamp(26px, 3.4vw, 38px); line-height: 1.08; margin-top: 12px; }
.section-sub { color: var(--muted); margin-top: 14px; font-size: 17px; }

/* agenda / takeaways */
.cards {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 18px; margin-top: 34px;
}
.card {
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px 24px; box-shadow: var(--shadow-sm); transition: transform .18s ease, box-shadow .18s ease;
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
/* minimalistic masked icons — larger, no tinted box, brand-colored */
.card__ico {
  display: block; width: 56px; height: 56px; margin-bottom: 20px;
  background: currentColor;
  -webkit-mask: var(--ico) center / contain no-repeat;
  mask: var(--ico) center / contain no-repeat;
}
.card__ico.is-target { color: var(--orange); --ico: url("/images/target.svg"); }
.card__ico.is-live { color: var(--purple-2); --ico: url("/images/live.svg"); }
.card__ico.is-gift { color: var(--blue); --ico: url("/images/gift.svg"); }
.card h3 { font-size: 18px; letter-spacing: -.01em; }
.card p { color: var(--muted); margin-top: 8px; font-size: 15px; }

/* numbered agenda list */
.agenda { margin-top: 34px; display: grid; gap: 14px; }
.agenda__item {
  display: grid; grid-template-columns: 44px 1fr; gap: 18px; align-items: start;
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 20px 22px; box-shadow: var(--shadow-sm);
}
.agenda__num {
  width: 44px; height: 44px; border-radius: 12px; background: var(--ink); color: #fff;
  display: grid; place-items: center; font-family: var(--serif); font-weight: 600; font-size: 19px;
}
.agenda__item h3 { font-size: 18px; letter-spacing: -.01em; }
.agenda__item p { color: var(--muted); margin-top: 5px; font-size: 15px; }
.agenda__cta {
  margin-top: 28px; display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 18px;
  background: var(--orange-tint); border: 1px solid #ffe0cf; border-radius: var(--radius);
  padding: 22px 26px;
}
.agenda__cta-text { font-family: var(--serif); font-weight: 600; font-size: 19px; letter-spacing: -.01em; color: var(--ink); max-width: 34ch; }

/* ---------- bio ---------- */
.bio { background: var(--cream); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.bio__grid { display: grid; grid-template-columns: 300px 1fr; gap: 48px; align-items: center; }
.bio__photo { border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-md); aspect-ratio: 4/4.4; }
.bio__photo img { width: 100%; height: 100%; object-fit: cover; filter: brightness(1.14) contrast(1.02) saturate(1.05); }
.bio__body p { color: var(--ink-2); font-size: 17px; margin-top: 16px; }
.bio__body p.lead { font-size: 19px; color: var(--ink); }
.bio__body .socials { margin-top: 22px; }

/* ---------- signup form ---------- */
.signup { position: relative; }
.signup__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; }
.signup__pitch .section-title { margin-top: 12px; }
.perks { margin-top: 26px; display: grid; gap: 14px; }
.perk { display: grid; grid-template-columns: 26px 1fr; gap: 14px; align-items: start; font-size: 16px; }
.perk svg { width: 22px; height: 22px; color: var(--green-deep); margin-top: 2px; }

.form-card {
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 32px; box-shadow: var(--shadow-lg);
}
.form-card__title { font-family: var(--serif); font-weight: 600; font-size: 24px; letter-spacing: -.01em; }
.form-card__sub { color: var(--muted); margin-top: 6px; font-size: 15px; }
.field { margin-top: 18px; }
.field label { display: block; font-size: 14px; font-weight: 600; margin-bottom: 7px; }
.field label .opt { color: var(--muted-2); font-weight: 500; }
.input, .textarea {
  width: 100%; border: 1.5px solid var(--line); border-radius: var(--radius-sm);
  padding: 13px 15px; font-size: 15px; font-family: inherit; color: var(--ink);
  background: var(--cream-2); transition: border-color .15s ease, background .15s ease, box-shadow .15s ease;
}
.input:focus, .textarea:focus {
  outline: none; border-color: var(--orange); background: #fff;
  box-shadow: 0 0 0 4px rgba(249,115,55,.14);
}
.textarea { resize: vertical; min-height: 84px; }
.field.has-error .input, .field.has-error .textarea { border-color: #c0392b; box-shadow: 0 0 0 4px rgba(192,57,43,.12); }
.field__err { color: #c0392b; font-size: 13px; margin-top: 6px; display: none; }
.field.has-error .field__err { display: block; }

.check { display: grid; grid-template-columns: 22px 1fr; gap: 11px; align-items: start; margin-top: 20px; font-size: 13.5px; color: var(--muted); }
.check input { width: 18px; height: 18px; margin-top: 2px; accent-color: var(--orange); }
.check a { color: var(--ink-2); text-decoration: underline; }

.form-card .btn { margin-top: 24px; }
.form-note { text-align: center; color: var(--muted-2); font-size: 12.5px; margin-top: 14px; }
.form-error-box {
  display: none; margin-top: 16px; background: #fdecea; border: 1px solid #f5c6c0;
  color: #a12b1e; border-radius: var(--radius-sm); padding: 12px 14px; font-size: 14px;
}
.form-error-box.show { display: block; }

/* success state */
.form-success { display: none; text-align: center; padding: 8px 4px; }
.form-success.show { display: block; animation: pop .4s ease; }
@keyframes pop { from { opacity: 0; transform: scale(.96); } to { opacity: 1; transform: none; } }
.form-success__mark {
  width: 68px; height: 68px; border-radius: 50%; background: var(--green); color: var(--green-deep);
  display: grid; place-items: center; margin: 6px auto 18px;
}
.form-success__mark svg { width: 34px; height: 34px; }
.form-success h3 { font-family: var(--serif); font-weight: 600; font-size: 24px; }
.form-success p { color: var(--muted); margin-top: 10px; font-size: 15px; }

.spinner {
  width: 18px; height: 18px; border: 2.5px solid rgba(255,255,255,.5); border-top-color: #fff;
  border-radius: 50%; animation: spin .7s linear infinite; display: none;
}
.btn.is-loading .spinner { display: inline-block; }
.btn.is-loading .btn__label { opacity: .8; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- course suggestion ---------- */
.course { background: var(--ink); color: #fff; }
.course .section-kicker { color: var(--amber); }
.course .section-title { color: #fff; }
.course .section-sub { color: rgba(255,255,255,.62); }
.course-card {
  margin-top: 34px; display: grid; grid-template-columns: 1.2fr 1fr; gap: 8px;
  background: linear-gradient(135deg, #1a1715 0%, #211d1a 100%);
  border: 1px solid rgba(255,255,255,.1); border-radius: var(--radius-lg); overflow: hidden;
}
.course-card__body { padding: 36px; }
.course-card__tag {
  display: inline-flex; align-items: center; gap: 7px; font-size: 12px; font-weight: 600;
  letter-spacing: .06em; text-transform: uppercase; color: var(--amber);
  background: rgba(255,201,117,.12); padding: 6px 12px; border-radius: 999px;
}
.course-card__title { font-family: var(--serif); font-weight: 600; font-size: clamp(22px, 2.6vw, 30px); line-height: 1.12; margin-top: 18px; }
.course-card__desc { color: rgba(255,255,255,.66); margin-top: 14px; font-size: 16px; max-width: 46ch; }
.course-card__cta { margin-top: 26px; }
.course-card__side {
  background:
    radial-gradient(420px 320px at 70% 20%, rgba(249,115,55,.4), transparent 60%),
    radial-gradient(420px 320px at 30% 90%, rgba(160,147,236,.4), transparent 60%),
    #16130f;
  display: grid; place-items: center; padding: 36px; position: relative;
}
.course-card__glyph { font-family: var(--serif); font-style: italic; font-weight: 600; font-size: 30px; color: #fff; text-align: center; opacity: .96; }
.course-card__side--img { padding: 0; background: #16130f; overflow: hidden; }
.course-card__side--img img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.course-card__side--img:hover img { transform: scale(1.04); }
.course-more { margin-top: 22px; color: rgba(255,255,255,.5); font-size: 14px; }
.course-more a { color: var(--amber); text-decoration: none; font-weight: 600; }
.course-more a:hover { text-decoration: underline; }

/* ---------- final CTA ---------- */
.finalcta { text-align: center; }
.finalcta .section-title { max-width: 18ch; margin-inline: auto; }
.finalcta .btn { margin-top: 26px; }

/* ---------- footer ---------- */
.footer { border-top: 1px solid var(--line); padding: 40px 0; color: var(--muted); font-size: 14px; }
.footer__inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.footer .socials a { border-color: var(--line); }

/* ---------- 404 ---------- */
.notfound { min-height: 70vh; display: grid; place-items: center; text-align: center; }
.notfound h1 { font-family: var(--serif); font-size: 40px; }
.notfound p { color: var(--muted); margin-top: 12px; }
.notfound .btn { margin-top: 24px; }

/* ---------- responsive ---------- */
@media (max-width: 900px) {
  .hero__grid { grid-template-columns: 1fr; gap: 40px; padding: 48px 0; }
  .speaker-card { max-width: 420px; }
  .bio__grid { grid-template-columns: 1fr; gap: 28px; }
  .bio__photo { max-width: 300px; }
  .signup__grid { grid-template-columns: 1fr; gap: 34px; }
  .course-card { grid-template-columns: 1fr; }
  .course-card__side { min-height: 180px; }
}
@media (max-width: 560px) {
  .wrap { padding: 0 18px; }
  section.block { padding: 48px 0; }
  .form-card { padding: 24px; }
  .brand__tag { display: none; }
}

.fade-in { animation: fade .5s ease both; }
@keyframes fade { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
