/* How To Make Apps and Influence Customers — Mo Bitar
   Wide, conventional layout. Flat color, no gradients, no shadows. */

:root {
  --ink:     #14161a;
  --mid:     #4a4f57;
  --light:   #797f88;
  --rule:    #e3e5e8;
  --tint:    #f7f8f9;

  /* One flat accent, plus a warm flat highlight for the numerals. */
  --accent:  #1f4fd8;
  --accent-soft: #eef2fd;

  /* Warm secondary, used only for the guarantee. */
  --pink:      #e8618c;

  --wrap:    1120px;
  --gutter:  32px;

  --sans:    "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  /* Display: a chunky grotesque with real personality. */
  --display: "Bricolage Grotesque", "Inter", Helvetica, Arial, sans-serif;
  /* Contrast face: italic serif, used only for the headline's second half. */
  --contrast: "Instrument Serif", Georgia, "Times New Roman", serif;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: #fff;
  color: var(--ink);
  font: 400 17px/1.6 var(--sans);
  letter-spacing: -.011em;
  -webkit-font-smoothing: antialiased;
}

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

a { color: inherit; }
h1, h2, h3 { margin: 0; font-weight: 600; letter-spacing: -.03em; line-height: 1.15; }

/* Display face for the major titles only. */
.hero h1,
.split-head h2,
.section-head h2,
.end h2 {
  font-family: var(--display);
  font-weight: 600;
  letter-spacing: -.03em;
}
p { margin: 0 0 1.1em; }
strong { font-weight: 600; }
em { font-style: italic; }
ul, ol { margin: 0; padding: 0; list-style: none; }

:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

/* ---------- header ---------- */

header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(255, 255, 255, .92);
  backdrop-filter: saturate(180%) blur(8px);
  -webkit-backdrop-filter: saturate(180%) blur(8px);
  border-bottom: 1px solid var(--rule);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 1.6rem;
  height: 62px;
}

/* HTMA+IC — the initialism set tight, with the accent carried by the plus. */
.wordmark {
  margin-right: auto;
  font-size: 16px;
  font-weight: 600;
  letter-spacing: -.01em;
  text-decoration: none;
  white-space: nowrap;
}
.wordmark-plus {
  color: var(--accent);
  padding: 0 .05em;
}

header nav { display: flex; gap: 1.5rem; }
header nav a {
  font-size: 14.5px;
  color: var(--mid);
  text-decoration: none;
}
header nav a:hover { color: var(--accent); }

/* ---------- buttons ---------- */

.button {
  display: inline-block;
  padding: .72rem 1.35rem;
  background: var(--accent);
  color: #fff;
  border-radius: 6px;
  font-size: .95rem;
  font-weight: 500;
  text-decoration: none;
  white-space: nowrap;
  transition: background-color .15s;
}
.button:hover { background: #1841b8; }

.button-sm { padding: .48rem 1rem; font-size: .88rem; }

.link {
  font-size: .95rem;
  color: var(--accent);
  text-decoration: none;
  white-space: nowrap;
}
.link:hover { text-decoration: underline; text-underline-offset: 3px; }

.meta { font-size: .875rem; color: var(--light); }

/* ---------- layout primitives ---------- */

.band { padding: clamp(3.5rem, 7vw, 5.5rem) 0; }
.band-tint { background: var(--tint); border-block: 1px solid var(--rule); }

/* Heading left, body right — the conventional wide two-column section. */
.split {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: start;
}
/* The heading column is short; pinning it keeps long bodies company
   instead of leaving a tall empty gutter. */
.split-head {
  position: sticky;
  top: 92px;
}
.split-head h2 { font-size: clamp(1.9rem, 3.2vw, 2.6rem); line-height: 1.1; }

.eyebrow {
  display: inline-block;
  margin: 0 0 .9rem;
  padding: .2rem .6rem;
  border-radius: 4px;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: .7rem;
  font-weight: 600;
  letter-spacing: .07em;
  text-transform: uppercase;
}
.split-body p { color: var(--mid); }
.split-body p strong { color: var(--ink); }

/* Inline citations in running text. */
.split-body p a {
  color: var(--accent);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
  text-decoration-color: rgba(31, 79, 216, .35);
}
.split-body p a:hover { text-decoration-color: var(--accent); }

.section-head {
  max-width: 44rem;
  margin-bottom: clamp(2rem, 4vw, 3rem);
}
.section-head h2 { font-size: clamp(1.5rem, 2.6vw, 2rem); margin-bottom: .7rem; }
.section-head p { color: var(--mid); margin: 0; }

/* Centred variant, for sections whose content is a narrow centred column. */
.section-head--center {
  max-width: 46rem;
  margin-inline: auto;
  text-align: center;
}
/* Narrower than the heading so the copy wraps into even lines. */
.section-head--center p {
  max-width: 34rem;
  margin-inline: auto;
  text-wrap: balance;
}

/* ---------- hero ---------- */

/* Hero is about the course only — no credentials, no portrait.
   Centered so the page opens on the pitch itself. */
.hero {
  padding: clamp(4rem, 9vw, 7rem) 0 clamp(2.5rem, 4vw, 3.5rem);
  text-align: center;
}

.hero h1 {
  max-width: 16ch;
  margin: 0 auto 1.5rem;
  font-size: clamp(2.6rem, 6vw, 4.3rem);
  line-height: 1.04;
}

/* Two faces, one headline: grotesque setup, italic-serif payoff. */
.h1-a {
  display: block;
  font-family: var(--display);
  font-weight: 700;
  letter-spacing: -.035em;
}

/* Italic-serif emphasis with a drawn underline. Used for the headline's
   second half and for single words elsewhere. */
.h1-b,
.accent-word {
  display: inline-block;
  position: relative;
  font-family: var(--contrast);
  font-style: italic;
  font-weight: 400;
  letter-spacing: -.01em;
  /* The serif runs small at matched sizes — nudge it back up to balance. */
  font-size: 1.12em;
  padding-bottom: .1em;
}

/* In running text the serif reads smaller and lighter than the surrounding
   sans, so it needs a real size bump and ink to register as emphasis. */
.split-body .accent-word {
  font-size: 1.2em;
  color: var(--ink);
}

/* Hand-drawn underline, scaled to whatever width the line ends up. */
.squiggle {
  position: absolute;
  left: 1%;
  bottom: .02em;
  width: 98%;
  height: .16em;
  overflow: visible;
  fill: none;
}

/* The viewBox is stretched to fit the text width, so keep the stroke
   from being squashed along with it. */
.squiggle path {
  stroke: var(--accent);
  stroke-width: 3px;
  stroke-linecap: round;
  vector-effect: non-scaling-stroke;
}

/* Under a single short word the same stroke reads heavy — ease it off. */
.squiggle-short path { stroke-width: 2.5px; }

.lead {
  max-width: 54ch;
  margin-inline: auto;
  font-size: 1.18rem;
  line-height: 1.55;
  color: var(--mid);
}
.lead em { font-style: italic; font-weight: 600; color: var(--ink); }

.actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 1.3rem;
  margin: 2rem 0 .9rem;
}

/* ---------- stats strip ---------- */

.stats {
  padding: 0 0 clamp(3rem, 5vw, 4rem);
}

.facts {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  margin: 0;
  background: var(--rule);
  border: 1px solid var(--rule);
  border-radius: 8px;
  overflow: hidden;
}
.facts > div { padding: 1.3rem 1.4rem; background: #fff; }
.facts dt {
  font-size: 1.12rem;
  font-weight: 600;
  letter-spacing: -.025em;
  line-height: 1.2;
}
.facts dd {
  margin: .3rem 0 0;
  font-size: .85rem;
  line-height: 1.4;
  color: var(--light);
}

/* ---------- curriculum ---------- */

.tracks {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(1.5rem, 3vw, 2.5rem);
  align-items: start;
}

.part {
  margin: 0 0 .5rem;
  padding-bottom: .5rem;
  border-bottom: 1px solid var(--rule);
  font-size: .74rem;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--accent);
}

/* Native list-item counter so <ol start> keeps numbering continuous. */
.curriculum { margin: 0; }

.curriculum li {
  position: relative;
  padding: .6rem 0 .6rem 2.3rem;
  border-bottom: 1px solid var(--rule);
  color: var(--mid);
  font-size: .95rem;
  line-height: 1.5;
}
.curriculum li:last-child { border-bottom: 0; }

.curriculum li::before {
  content: counter(list-item, decimal-leading-zero);
  position: absolute;
  left: 0;
  top: .68rem;
  font-size: .72rem;
  font-weight: 500;
  font-variant-numeric: tabular-nums;
  color: var(--accent);
}

.curriculum strong { color: var(--ink); }

.closing-note {
  max-width: 60ch;
  margin: clamp(2rem, 4vw, 3rem) 0 0;
  color: var(--mid);
}

/* ---------- about ---------- */

.author {
  display: flex;
  align-items: center;
  gap: .9rem;
  margin: 1.4rem 0 0;
}
.author img {
  width: 56px; height: 56px;
  border-radius: 50%;
  border: 1px solid var(--rule);
}
.author figcaption { display: flex; flex-direction: column; font-size: .92rem; }
.author span { color: var(--light); font-size: .85rem; }
.author a { color: var(--accent); text-decoration: none; }
.author a:hover { text-decoration: underline; text-underline-offset: 3px; }

blockquote {
  margin: 1.7rem 0;
  padding-left: 1.1rem;
  border-left: 3px solid var(--accent);
  font-size: 1.08rem;
  line-height: 1.5;
  letter-spacing: -.02em;
}

/* The advisee quote is set in the display serif so it reads as a voice
   rather than as more body copy. */
.split-body > blockquote {
  padding-left: 1.3rem;
  border-left: 3px solid var(--accent);
  font-family: var(--contrast);
  font-style: italic;
  font-size: clamp(1.5rem, 2.6vw, 2rem);
  line-height: 1.25;
  letter-spacing: -.01em;
  color: var(--ink);
}
.quote-aside {
  display: block;
  margin-top: .1em;
  color: var(--accent);
}

/* ---------- testimonials ---------- */

.testimonials {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.5rem;
  margin-top: 1.6rem;
}
.testimonial { margin: 0; }
.testimonial blockquote {
  margin: 0 0 .6rem;
  font-size: .98rem;
}
.testimonial figcaption {
  display: flex;
  flex-direction: column;
  padding-left: 1.1rem;
  font-size: .85rem;
  color: var(--light);
}
.testimonial figcaption strong { color: var(--ink); font-weight: 600; }

/* ---------- included ---------- */

/* Three columns keeps six items as two full rows — no orphan cell. */
.included {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  margin: 0;
  background: var(--rule);
  border: 1px solid var(--rule);
  border-radius: 8px;
  overflow: hidden;
}
.included > div { padding: 1.5rem; background: #fff; }

.included dt {
  display: flex;
  align-items: center;
  gap: .55rem;
  font-size: .97rem;
  font-weight: 600;
  letter-spacing: -.015em;
}

.included svg {
  width: 17px;
  height: 17px;
  flex: none;
  fill: none;
  stroke: var(--accent);
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.included dd {
  margin: .45rem 0 0;
  color: var(--mid);
  font-size: .92rem;
  line-height: 1.55;
}

/* ---------- pricing ---------- */

/* Two plans, capped and centred so the column doesn't drift left. */
.plans {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.25rem;
  align-items: stretch;
  max-width: 46rem;
  margin: 0 auto 1.25rem;
}

.plan {
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: 1.75rem;
  background: #fff;
  border: 1px solid var(--rule);
  border-radius: 10px;
}

/* The recommended plan carries a solid accent border — no shadow, no lift. */
.plan-featured {
  border-color: var(--accent);
  border-width: 2px;
  padding: calc(1.75rem - 1px);
}

/* Every card reserves the badge row so names and prices align across all three. */
.plan::before {
  content: "";
  display: block;
  height: 1.55rem;
}
.plan-featured::before { display: none; }

.plan-flag {
  display: inline-block;
  align-self: flex-start;
  height: 1.55rem;
  margin: 0 0 .5rem;
  padding: .2rem .6rem;
  border-radius: 4px;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: .7rem;
  font-weight: 600;
  line-height: 1.15rem;
  letter-spacing: .07em;
  text-transform: uppercase;
}

.plan-name {
  margin: 0;
  font-size: .95rem;
  font-weight: 600;
  letter-spacing: -.01em;
}

.plan-price {
  margin: .5rem 0 0;
  font-size: 2.3rem;
  font-weight: 600;
  letter-spacing: -.035em;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.plan-price span {
  margin-left: .25rem;
  font-size: .88rem;
  font-weight: 400;
  letter-spacing: 0;
  color: var(--light);
}

.plan-note {
  margin: .5rem 0 0;
  font-size: .88rem;
  color: var(--light);
}

.plan-list {
  flex: 1;
  margin: 1.25rem 0 1.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--rule);
  display: grid;
  gap: .6rem;
  align-content: start;
}
.plan-list li {
  position: relative;
  padding-left: 1.5rem;
  font-size: .92rem;
  line-height: 1.45;
  color: var(--mid);
}
/* Flat checkmark drawn from two borders — no icon font, no SVG. */
.plan-list li::before {
  content: "";
  position: absolute;
  left: .1rem;
  top: .42rem;
  width: 6px;
  height: 3px;
  border-left: 1.7px solid var(--accent);
  border-bottom: 1.7px solid var(--accent);
  transform: rotate(-45deg);
}

.button-quiet {
  background: #fff;
  color: var(--accent);
  border: 1px solid var(--rule);
}
.button-quiet:hover { background: var(--accent-soft); border-color: var(--accent); }

.plan .button { text-align: center; }

/* The guarantee gets its own block — flat pink wash, no shadow. */
.promise {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(1.5rem, 3vw, 2.5rem);
  align-items: center;
  max-width: 46rem;
  margin: 0 auto;
  padding: clamp(1.75rem, 3.5vw, 2.5rem);
  background: #fff;
  border: 1px solid var(--rule);
  border-radius: 10px;
}

.promise-heart {
  width: 30px;
  height: 30px;
  margin-bottom: .85rem;
  fill: var(--pink);
  stroke: none;
}

.promise-lead h3 {
  margin: 0 0 .6rem;
  font-family: var(--display);
  font-size: clamp(1.25rem, 2vw, 1.5rem);
  font-weight: 600;
  letter-spacing: -.03em;
  text-wrap: balance;
}
/* The underline under "guaranteed" picks up the pink, not the blue. */
.promise-lead .squiggle path { stroke: var(--pink); }

.promise-lead p {
  margin: 0;
  font-size: .97rem;
  line-height: 1.6;
  color: var(--mid);
}

.promise-points {
  display: grid;
  gap: 1rem;
  margin: 0;
}
.promise-points dt {
  position: relative;
  padding-left: 1.4rem;
  font-size: .93rem;
  font-weight: 600;
  letter-spacing: -.01em;
}
.promise-points dt::before {
  content: "";
  position: absolute;
  left: 0;
  top: .42em;
  width: 6px;
  height: 3px;
  border-left: 1.7px solid var(--pink);
  border-bottom: 1.7px solid var(--pink);
  transform: rotate(-45deg);
}
.promise-points dd {
  margin: .2rem 0 0 1.4rem;
  font-size: .89rem;
  line-height: 1.5;
  color: var(--light);
}

/* ---------- faq ---------- */

.faq { margin: 0; }

.faq > div {
  padding: 1.15rem 0;
  border-top: 1px solid var(--rule);
}
.faq > div:first-child { border-top: 0; padding-top: 0; }

.faq dt {
  font-size: .99rem;
  font-weight: 600;
  letter-spacing: -.015em;
}

.faq dd {
  margin: .35rem 0 0;
  color: var(--mid);
  font-size: .93rem;
  line-height: 1.6;
}

/* ---------- end ---------- */

.end {
  padding: clamp(3.5rem, 7vw, 5.5rem) 0;
  border-top: 1px solid var(--rule);
  text-align: center;
}
.end h2 {
  max-width: 22ch;
  margin: 0 auto .8rem;
  font-size: clamp(2.1rem, 4.2vw, 3.2rem);
  line-height: 1.05;
}
.end > .wrap > p { max-width: 48ch; margin-inline: auto; color: var(--mid); }
.end .actions { justify-content: center; margin-bottom: 0; }

/* ---------- footer ---------- */

footer {
  border-top: 1px solid var(--rule);
  padding: 1.8rem 0;
  font-size: .875rem;
  color: var(--light);
}
.footer-inner {
  display: flex;
  flex-wrap: wrap;
  gap: .6rem 1.4rem;
  align-items: center;
}
footer p { margin: 0; margin-right: auto; }
footer strong { color: var(--ink); font-weight: 600; }
footer nav { display: flex; flex-wrap: wrap; gap: 1.2rem; }
footer a { color: var(--light); text-decoration: none; }
footer a:hover { color: var(--accent); }

/* ---------- responsive ---------- */

@media (max-width: 900px) {
  :root { --gutter: 24px; }
  header nav { display: none; }
  .facts { grid-template-columns: repeat(2, 1fr); }
  .tracks { grid-template-columns: 1fr; gap: 2rem; }
  .testimonials { grid-template-columns: 1fr; gap: 1.2rem; }
  .included { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .plans { grid-template-columns: 1fr; gap: 1rem; }
  .plan-featured { order: -1; }
  .promise { grid-template-columns: 1fr; gap: 1.5rem; align-items: start; }
  /* Stacked, there is nothing to align to — drop the reserved badge row. */
  .plan::before { display: none; }
  .split { grid-template-columns: 1fr; gap: 1.5rem; }
  .split-head { position: static; }
}

@media (max-width: 560px) {
  body { font-size: 16px; }
  /* The hero CTA is immediately below; the header one would only crowd it. */
  .header-inner .button { display: none; }
  .facts { grid-template-columns: 1fr; }
  .included { grid-template-columns: 1fr; }
  .hero h1 { max-width: none; }
  .plan { padding: 1.4rem; }
  .plan-featured { padding: calc(1.4rem - 1px); }
}
