/* intentioncraft.com
   Colors, type, buttons and the highlight follow the Intention Craft Design System
   (tokens.css, Button, HighlightBox, web-pages.md). */

@font-face {
  font-family: "Work Sans";
  src: url("/assets/fonts/work-sans-latin-wght-normal.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --orange: #ff5e1a;
  --orange-hover: #ff6e30;
  --orange-press: #e24e10;
  --ink: #282828;
  --gray: #dad9d9;
  --muted: #5c5a5a;
  --rule: #8a8888;
  --ember-ground: #1e1d1e;
  --font: "Work Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --pad-x: clamp(20px, 5vw, 48px);
  --pad-y: clamp(64px, 10vw, 128px);
  --hero-w: max(1443px, 100vw);
  --dot: calc(var(--hero-w) * 39 / 1443);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; font-family: var(--font); color: var(--ink); background: #fff; }
img { max-width: 100%; }
a { color: var(--orange); }
a:hover { color: var(--orange-press); }
h1, h2, h3 { text-wrap: balance; letter-spacing: -0.02em; }
:focus-visible { outline: 3px solid rgba(255,94,26,.6); outline-offset: 2px; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Sections: one width, one rhythm. Themes from the design system. */
.section { padding: var(--pad-y) var(--pad-x); }
.section-tight { padding: 40px var(--pad-x); }
.inner { max-width: 1120px; margin: 0 auto; }
.narrow { max-width: 720px; margin: 0 auto; }
.on-white { background: #fff; }
.on-gray { background: var(--gray); }
.on-dark { background: var(--ink); color: #fff; }
.on-dark a:not(.btn) { color: var(--orange-hover); }
.split { display: flex; flex-wrap: wrap; gap: 48px; align-items: center; }
.split > * { flex: 1 1 400px; min-width: 0; }
.stack { display: flex; flex-direction: column; gap: 20px; }
.center { text-align: center; align-items: center; }

.display { margin: 0; font-size: clamp(2.25rem, 4.5vw, 3.25rem); line-height: 1.15; font-weight: 700; }
.h2 { margin: 0; font-size: clamp(1.75rem, 3vw, 2.125rem); line-height: 1.2; font-weight: 700; }
.h3 { margin: 0; font-size: 1.5rem; line-height: 1.25; font-weight: 700; }
.kicker { margin: 0; font-size: 14px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--orange); }
.lead { margin: 0; font-size: 20px; line-height: 1.45; font-weight: 600; }
.body, .body p, .body li { font-size: 18px; line-height: 1.6; }
.body p { margin: 0; }
.list { margin: 0; padding-left: 22px; font-size: 18px; line-height: 1.6; }
.list li + li { margin-top: 4px; }
.small { font-size: 14px; }
.muted { color: var(--muted); }
.on-dark .muted { color: rgba(255,255,255,.75); }
.photo { display: block; width: 100%; height: 420px; object-fit: cover; border-radius: 16px; }

/* The highlight: a box that hugs its word and never touches the lines around it.
   Its own line height (1) and small padding; the heading carrying it uses line-height 1.15 or more. */
.hl {
  display: inline-block; background: var(--orange); color: #fff;
  padding: .04em .18em .06em; line-height: 1;
  -webkit-box-decoration-break: clone; box-decoration-break: clone;
}

/* Buttons (design system Button: primary, secondary, ghost on dark) */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font-family: var(--font); font-weight: 700; line-height: 1.15; letter-spacing: -0.01em; text-align: center;
  font-size: 1.0625rem; padding: 14px 26px; border-radius: 10px; border: 2px solid transparent;
  text-decoration: none; cursor: pointer;
  transition: background 200ms cubic-bezier(.2,.7,.2,1), color 200ms, border-color 200ms, transform 120ms;
}
.btn-lg { font-size: 1.1875rem; padding: 18px 34px; }
.btn-sm { font-size: .9375rem; padding: 10px 18px; }
.btn-primary { background: var(--orange); color: #fff; box-shadow: 0 8px 22px rgba(255,94,26,.28); }
.btn-primary:hover { background: var(--orange-hover); color: #fff; }
.btn-primary:active { background: var(--orange-press); transform: translateY(1px); }
.btn-secondary { background: transparent; color: var(--orange); border-color: var(--orange); }
.btn-secondary:hover { background: var(--orange); color: #fff; }
.btn-ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,.4); }
.btn-ghost:hover { border-color: #fff; color: #fff; }
.btn[disabled] { opacity: .6; cursor: wait; }
.actions { display: flex; flex-wrap: wrap; gap: 20px; align-items: center; }
.alt-ask { display: flex; flex-direction: column; gap: 6px; }

/* Header */
.site-header { background: var(--ink); padding: 14px var(--pad-x); }
.header-row { max-width: 1120px; margin: 0 auto; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 24px; }
.logo { display: block; height: 28px; width: auto; }
.header-nav { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 28px; }
.header-nav a:not(.btn) { color: #fff; font-size: 16px; font-weight: 600; text-decoration: none; }
.header-nav a:not(.btn):hover, .header-nav a[aria-current="page"] { color: var(--orange-hover); }

/* Home hero: full-bleed photo, darkened, pinned just below Jake's face so his head never crops */
.hero {
  color: #fff; min-height: 640px; display: flex; align-items: center;
  padding: var(--pad-y) var(--pad-x);
  background-color: var(--ink);
  background-image: linear-gradient(180deg, rgba(26,26,26,.55), rgba(26,26,26,.75)), url("/assets/img/hero-desktop.jpg");
  background-repeat: no-repeat; background-position: 0 0, 0% 23%; background-size: cover, 150% auto;
}
.hero .inner { width: 100%; }
.hero-copy { max-width: 760px; display: flex; flex-direction: column; gap: 24px; }
.hero h1 { margin: 0; font-size: clamp(2.5rem, 5vw, 4rem); line-height: 1.15; font-weight: 700; }
@media (min-width: 901px) { .one-line { white-space: nowrap; } }
@media (max-width: 900px) {
  .hero { background-image: linear-gradient(180deg, rgba(26,26,26,.6), rgba(26,26,26,.8)), url("/assets/img/hero-phone.jpg"); background-size: cover, cover; background-position: 0 0, 50% 20%; }
}

/* Rotating word */
.rotator { margin: 0; text-align: center; font-size: clamp(1.75rem, 3.5vw, 2.6rem); font-weight: 700; letter-spacing: -0.02em; line-height: 1.15; }
.underline { text-decoration: underline; text-decoration-color: var(--orange); text-decoration-thickness: 4px; text-underline-offset: 8px; }
.rot { position: relative; display: inline-block; min-width: 6.2em; height: 1.15em; vertical-align: bottom; text-align: left; }
.rot span { position: absolute; left: 0; top: 0; opacity: 0; white-space: nowrap; color: var(--orange); animation: rotfade 10.5s infinite; }
.rot span:nth-child(2) { animation-delay: 1.5s; } .rot span:nth-child(3) { animation-delay: 3s; }
.rot span:nth-child(4) { animation-delay: 4.5s; } .rot span:nth-child(5) { animation-delay: 6s; }
.rot span:nth-child(6) { animation-delay: 7.5s; } .rot span:nth-child(7) { animation-delay: 9s; }
@keyframes rotfade { 0% { opacity: 0; } 6% { opacity: 1; } 14% { opacity: 1; } 17% { opacity: 0; } 100% { opacity: 0; } }
@media (prefers-reduced-motion: reduce) {
  .rot span { animation: none; } .rot span:first-child { opacity: 1; }
  html { scroll-behavior: auto; }
}
@media (max-width: 560px) { .rot { min-width: 0; display: block; margin: 8px auto 0; width: 6.2em; text-align: center; } .rot span { left: 0; right: 0; } }

/* Cards */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 24px; }
.card { background: #fff; border: 2px solid var(--orange); border-radius: 16px; padding: 32px; display: flex; flex-direction: column; gap: 12px; }
.card p { margin: 0; font-size: 16px; line-height: 1.6; }
.card .num { font-size: 14px; font-weight: 700; color: var(--orange); }

/* Testimonials: one at a time, arrows and dots. Without JavaScript they all show, stacked. */
.quotes { width: 100%; max-width: 880px; margin: 0 auto; display: flex; align-items: center; gap: 16px; }
.quotes-track { flex: 1 1 auto; min-width: 0; display: grid; gap: 20px; }
.quote { margin: 0; background: var(--gray); padding: clamp(32px, 5vw, 56px) clamp(24px, 5vw, 64px); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 24px; text-align: center; }
.quote img { width: 128px; height: 128px; border-radius: 999px; object-fit: cover; display: block; background: #fff; }
.quote blockquote { margin: 0; font-size: clamp(1.25rem, 2.2vw, 1.5rem); line-height: 1.35; font-weight: 700; }
.quote figcaption { font-size: 16px; line-height: 1.5; }
.js .quotes-track { grid-template-areas: "q"; }
.js .quote { grid-area: q; visibility: hidden; }
.js .quote.is-current { visibility: visible; }
.arrow { flex: none; width: 52px; height: 52px; border-radius: 999px; border: 0; background: var(--orange); color: #fff; font-size: 24px; cursor: pointer; display: none; }
.arrow:hover { background: var(--orange-hover); }
.js .arrow { display: block; }
.dots { display: none; gap: 12px; justify-content: center; }
.js .dots { display: flex; }
.dots button { width: 12px; height: 12px; padding: 0; border: 0; border-radius: 999px; background: var(--rule); cursor: pointer; }
.dots button[aria-current="true"] { background: var(--orange); }
@media (max-width: 560px) { .arrow { width: 40px; height: 40px; font-size: 20px; } .quotes { gap: 8px; } }

/* Numbered steps: a short list, lighter than cards */
.steps { list-style: none; margin: 0 auto; padding: 0; display: flex; flex-direction: column; gap: 20px; width: 100%; }
.steps li { display: flex; gap: 16px; align-items: baseline; }
.steps .num { flex: none; font-size: 18px; font-weight: 700; color: var(--orange); }
.steps p { margin: 0; font-size: 19px; line-height: 1.55; font-weight: 600; }

/* A quote inside a page */
.pull { margin: 0; border-left: 4px solid var(--orange); padding: 4px 0 4px 20px; }
.pull blockquote { margin: 0 0 8px; font-size: 20px; line-height: 1.45; font-weight: 700; }
.pull figcaption { font-size: 15px; }

/* FAQ */
.faq { display: flex; flex-direction: column; border-top: 1px solid var(--rule); }
.faq details { border-bottom: 1px solid var(--rule); padding: 18px 0; }
.faq summary { font-weight: 700; font-size: 17px; cursor: pointer; }
.faq p { margin: 12px 0 0; font-size: 16px; line-height: 1.6; }

/* Crash course signup */
.signup-row { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; width: 100%; }
.signup-row input { flex: 1 1 260px; max-width: 360px; height: 52px; font: inherit; font-size: 16px; padding: 0 16px; border: 1px solid #bfbebe; border-radius: 10px; color: var(--ink); background: #fff; }
.signup-row input:focus { outline: none; border-color: var(--orange); box-shadow: 0 0 0 3px rgba(255,94,26,.45); }
.form-status { margin: 0; font-size: 16px; font-weight: 600; text-wrap: balance; }
.form-status:empty { display: none; }
.form-status.is-error { color: var(--orange-press); }

/* Prose pages (privacy) */
.prose { max-width: 720px; margin: 0 auto; font-size: 18px; line-height: 1.6; }
.prose h1 { font-size: clamp(2.25rem, 4.5vw, 3.25rem); line-height: 1.15; margin: 0 0 8px; }
.prose h2 { font-size: 1.5rem; margin: 40px 0 8px; }
.prose p, .prose ul { margin: 0 0 16px; }
.prose li + li { margin-top: 6px; }

/* Footer */
.site-footer { background: #000; color: #fff; padding: 40px var(--pad-x); }
.footer-row { max-width: 1120px; margin: 0 auto; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 24px; align-items: center; font-size: 14px; }
.footer-links { display: flex; flex-wrap: wrap; gap: 12px 24px; align-items: center; }
.footer-links a { color: #fff; }
.footer-links a:hover { color: var(--orange-hover); }
.footer-links span { color: rgba(255,255,255,.7); }

/* Thank-you and 404 pages: Jake pointing beside the message, on the ember band with no people */
.cheer {
  color: #fff; background-color: var(--ember-ground);
  background-image: url("/assets/img/ember-band-desktop.png"), url("/assets/img/dot-tile-desktop.png");
  background-repeat: no-repeat, repeat; background-position: center bottom, center bottom;
  background-size: var(--hero-w) auto, var(--dot) var(--dot);
}
.cheer-inner { max-width: 1040px; margin: 0 auto; padding: 56px 24px 0; display: flex; align-items: flex-end; gap: 32px; }
.cheer-text { flex: 1 1 0; padding-bottom: calc(var(--hero-w) * 150 / 1443); }
.cheer h1 { margin: 0 0 16px; font-size: 56px; line-height: 1.05; font-weight: 700; }
.cheer-kicker { margin: 0 0 4px; font-size: 24px; line-height: 1.3; font-weight: 700; color: var(--orange-hover); }
.cheer-note { margin: 0 0 20px; font-size: 20px; line-height: 1.4; font-weight: 600; color: #fff; text-wrap: balance; }
.cheer-lead { margin: 0 0 16px; font-size: 22px; line-height: 1.45; font-weight: 600; text-wrap: balance; }
.cheer-step { margin: 0 0 12px; font-size: 19px; line-height: 1.55; color: var(--gray); text-wrap: balance; }
.cheer-small { margin: 0 0 28px; font-size: 15px; color: var(--gray); }
.cheer a:not(.btn) { color: var(--orange-hover); font-weight: 600; }
.cheer a:not(.btn):hover { color: #fff; }
.cheer-photo { flex: 0 0 auto; width: min(44%, 440px); height: auto; display: block; }
@media (max-width: 760px) {
  .cheer { background-image: url("/assets/img/ember-band-phone.png"), url("/assets/img/ember-band-phone-tile.png"); background-size: 555px 221px, 15px 15px; }
  .cheer-inner { flex-direction: column; align-items: center; text-align: center; padding-top: 40px; gap: 8px; }
  .cheer-text { padding-bottom: 8px; }
  .cheer h1 { font-size: 40px; }
  .cheer-photo { width: min(80%, 340px); }
}

/* Phones */
@media (max-width: 640px) {
  .header-nav .btn { display: none; }
  .header-nav { gap: 20px; }
  .photo { height: 340px; }
  .split { gap: 32px; }
}
