/* ============================================================================
   Finding Flow — theflowfinder.com
   Rebuilt from the Claude Design handoff "Finding Flow Landing".
   Fluid layout (no breakpoints): max-width containers, auto-fit grids, clamp().
   ========================================================================== */

:root {
  --ink: #1B2231;
  --text-2: #384258;
  --text-3: #5B6472;
  --bg: #ECEEEF;
  --surface: #FBFAF8;
  --orange: #E8672D;
  --orange-hover: #C74F1D;
  --gold: #D9A441;
  --teal: #2E6F76;
  --teal-hover: #1F4F55;
  --footer-bg: #1B2231;
  --footer-text: #C7CCD4;
  --footer-muted: #8890A0;
  --hairline: rgba(27, 34, 49, 0.12);
  --radius: 10px;
  --radius-pill: 100px;
  --container: 1180px;
  --gutter: clamp(20px, 4vw, 32px);
  --font-head: "Fraunces", Georgia, "Times New Roman", serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
}

/* ---- reset ---------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  /* clip (not hidden) — contains the rotated hero photo without turning
     <body> into a scroll container (which breaks sticky nav + window scroll) */
  overflow-x: clip;
}

img { max-width: 100%; display: block; }

h1, h2, h3, p, ul, blockquote, figure { margin: 0; }

a { color: inherit; }
a:hover { color: var(--orange-hover); }

button { font-family: inherit; }

::placeholder { color: #9BA3B0; opacity: 1; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; }
}

/* ---- helpers ------------------------------------------------------------- */
.container {
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0);
  white-space: nowrap; border: 0;
}

.hp-field {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
  opacity: 0;
  pointer-events: none;
}

.skip-link {
  position: absolute;
  left: 12px; top: -60px;
  z-index: 100;
  background: var(--ink);
  color: var(--surface);
  padding: 10px 16px;
  border-radius: var(--radius-pill);
  text-decoration: none;
  font-size: 14px;
  transition: top 0.15s ease;
}
.skip-link:focus { top: 12px; color: var(--surface); }

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

/* ---- shared type ------------------------------------------------------- */
.eyebrow {
  display: inline-block;
  font-size: 13px;
  font-weight: 500;
  padding: 5px 12px;
  border-radius: var(--radius-pill);
  margin: 0 0 16px;
}
.eyebrow--orange { color: var(--orange-hover); background: rgba(232, 103, 45, 0.10); }
.eyebrow--teal   { color: var(--teal-hover);   background: rgba(46, 111, 118, 0.10); }
.eyebrow--grey   { color: var(--text-3);       background: rgba(91, 100, 114, 0.10); }

.section-title {
  font-family: var(--font-head);
  font-weight: 560;
  letter-spacing: -0.01em;
  font-size: clamp(24px, 2.6vw, 32px);
  line-height: 1.24;
  text-wrap: pretty;
}
.section-title--center { text-align: center; }

.prose {
  font-size: 16.5px;
  line-height: 1.7;
  color: var(--text-3);
  margin-top: 16px;
  max-width: 48ch;
  text-wrap: pretty;
}

.checklist {
  list-style: none;
  padding: 0;
  margin-top: 22px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.checklist li {
  position: relative;
  padding-left: 20px;
  font-size: 15px;
  line-height: 1.5;
  color: var(--text-2);
}
.checklist li::before {
  content: "";
  position: absolute;
  left: 0; top: 8px;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--gold);
}

.pull-quote {
  font-family: var(--font-head);
  font-size: 19px;
  line-height: 1.55;
  font-style: italic;
  color: var(--ink);
  border-left: 3px solid var(--gold);
  padding-left: 18px;
  margin: 22px 0 12px;
}
.pull-quote cite {
  display: block;
  margin-top: 10px;
  font-family: var(--font-body);
  font-style: normal;
  font-size: 13.5px;
  color: var(--text-3);
}

.fineprint {
  font-size: 13px;
  color: var(--text-3);
  margin-top: 10px;
}
.fineprint--wide {
  font-size: 13.5px;
  line-height: 1.6;
  margin-top: 14px;
  max-width: 46ch;
}

.text-link {
  font-size: 15px;
  color: var(--text-2);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: rgba(27, 34, 49, 0.12);
}
.text-link:hover { color: var(--orange-hover); }

/* ---- buttons ---------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 15px;
  font-weight: 500;
  padding: 14px 26px;
  border-radius: var(--radius-pill);
  border: none;
  text-decoration: none;
  cursor: pointer;
  white-space: nowrap;
  transition: background-color 0.15s ease, color 0.15s ease;
}
.btn--orange { background: var(--orange); color: #fff; }
.btn--orange:hover { background: var(--orange-hover); color: #fff; }

.btn--teal { background: var(--teal); color: #fff; font-size: 14.5px; padding: 13px 22px; }
.btn--teal:hover { background: var(--teal-hover); color: #fff; }

.btn--dark { background: var(--ink); color: var(--surface); font-size: 14px; padding: 9px 18px; }
.btn--dark:hover { background: var(--text-2); color: var(--surface); }

.btn--lg { font-size: 15px; padding: 15px 30px; }

/* shown only if the Stripe link is still a placeholder */
.buy-note {
  font-size: 13px;
  color: var(--teal-hover);
  margin: 10px 0 0;
  max-width: 400px;
}

.btn[disabled] { opacity: 0.75; cursor: default; }

/* ---- nav ------------------------------------------------------------- */
.site-nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(236, 238, 239, 0.88);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--hairline);
}
.site-nav__inner {
  max-width: var(--container);
  margin-inline: auto;
  padding: 18px var(--gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}
.brand {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 21px;
  display: flex;
  align-items: center;
  gap: 9px;
  text-decoration: none;
  color: var(--ink);
}
.brand:hover { color: var(--ink); }
.brand__dot {
  width: 9px; height: 9px;
  border-radius: 50%;
  background: var(--orange);
  box-shadow: 0 0 0 3px rgba(232, 103, 45, 0.18);
}
.site-nav__links {
  display: flex;
  align-items: center;
  gap: clamp(16px, 3vw, 30px);
  flex-wrap: wrap;
}
.nav-link {
  font-size: 14.5px;
  text-decoration: none;
  color: var(--text-2);
  padding-bottom: 3px;
  border-bottom: 1px solid transparent;
  transition: color 0.15s ease, border-color 0.15s ease;
}
.nav-link:hover { color: var(--ink); border-bottom-color: var(--orange); }

/* anchor targets clear the sticky nav */
:where([id]) { scroll-margin-top: 92px; }

/* ---- hero ---------------------------------------------------------- */
.hero { padding: 76px 0 88px; }
.hero__inner {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(320px, 100%), 1fr));
  gap: clamp(40px, 5vw, 64px);
  align-items: center;
}
.hero__copy { min-width: 0; }
.hero__title {
  font-family: var(--font-head);
  font-weight: 560;
  letter-spacing: -0.01em;
  font-size: clamp(32px, 4.4vw, 52px);
  line-height: 1.12;
  color: var(--ink);
  text-wrap: pretty;
}
.hero__lede {
  font-size: 18px;
  color: var(--text-3);
  line-height: 1.6;
  margin-top: 22px;
  max-width: 46ch;
  text-wrap: pretty;
}
.hero__actions {
  display: flex;
  align-items: center;
  gap: 26px;
  margin-top: 34px;
  flex-wrap: wrap;
}

/* photo mat: white padding + slight rotation */
.photo-mat {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  background: #fff;
  padding: 14px;
  box-shadow: 0 30px 60px -26px rgba(27, 34, 49, 0.38);
  transform: rotate(-1.4deg);
  min-width: 0;
}
.photo-mat__frame {
  border-radius: 5px;
  overflow: hidden;
}
.photo-mat__frame--45 { aspect-ratio: 4 / 5; }
.photo-mat__frame img { width: 100%; height: 100%; object-fit: cover; }

@media (prefers-reduced-motion: reduce) {
  .photo-mat { transform: none; }
}

/* ---- story --------------------------------------------------------- */
.story { padding: 10px 0 96px; }
.story__inner {
  max-width: 660px;
  margin-inline: auto;
  padding-inline: var(--gutter);
  text-align: center;
}
.story__lead {
  font-family: var(--font-head);
  font-size: 23px;
  font-weight: 500;
  line-height: 1.7;
  color: var(--ink);
  margin-bottom: 20px;
  text-wrap: pretty;
}
.story__body {
  font-size: 20px;
  line-height: 1.75;
  color: var(--text-2);
  text-wrap: pretty;
}

/* ---- split sections (book + print) -------------------------------- */
.split { padding: 80px 0; }
.split__inner {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(320px, 100%), 1fr));
  gap: clamp(40px, 5vw, 64px);
  align-items: center;
}
#book .split__inner { grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr)); }
.split__copy { min-width: 0; }
.split__media {
  min-width: 0;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 24px 48px -28px rgba(27, 34, 49, 0.30);
}
#print .split__media { box-shadow: 0 24px 48px -28px rgba(31, 79, 85, 0.35); }
.split__media img { width: 100%; }
.split__actions {
  margin-top: 28px;
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.rating {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 14px;
}
.rating__stars { color: var(--gold); font-size: 15px; letter-spacing: 1px; }
.rating__text { font-size: 13.5px; color: var(--text-3); }

/* ---- testimonials ------------------------------------------------- */
.testimonials { padding: 90px 0 30px; }
.testimonials__head {
  text-align: center;
  max-width: 520px;
  margin: 0 auto 36px;
}
.testimonials__head .section-title { margin-top: 10px; }

.feature-quote {
  max-width: 720px;
  margin: 0 auto 56px;
  text-align: center;
  font-family: var(--font-head);
  font-style: italic;
  font-weight: 500;
  font-size: clamp(22px, 3vw, 30px);
  line-height: 1.5;
  color: var(--ink);
  padding: 0 12px;
  text-wrap: pretty;
}
.feature-quote cite {
  display: block;
  font-family: var(--font-body);
  font-style: normal;
  font-weight: 500;
  font-size: 14.5px;
  color: var(--orange-hover);
  margin-top: 18px;
}

.quote-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(260px, 100%), 1fr));
  gap: 22px;
}
.quote-card {
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  padding: 26px 24px;
  display: flex;
  flex-direction: column;
}
.quote-card__avatar {
  width: 38px; height: 38px;
  border-radius: 50%;
  background: var(--text-3);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 16px;
}
.quote-card__avatar--orange { background: var(--orange); }
.quote-card__avatar--gold   { background: var(--gold); }
.quote-card__avatar--slate  { background: var(--text-3); }
.quote-card__avatar--ink    { background: var(--text-2); }
.quote-card blockquote {
  font-family: var(--font-head);
  font-style: italic;
  font-size: 15.5px;
  line-height: 1.55;
  color: var(--ink);
  flex: 1;
}
.quote-card figcaption { margin-top: 16px; }
.quote-card__name {
  display: block;
  font-size: 14px;
  font-weight: 500;
  color: var(--ink);
}
.quote-card__role {
  display: block;
  margin-top: 2px;
  font-size: 12.5px;
  line-height: 1.4;
  color: var(--text-3);
}

.press-line {
  text-align: center;
  font-size: 13.5px;
  color: var(--text-3);
  margin-top: 36px;
}

/* ---- signup forms ----------------------------------------------- */
.signup-form {
  display: flex;
  gap: 10px;
  margin-top: 26px;
  max-width: 400px;
  flex-wrap: wrap;
}
.signup-form--center {
  margin-inline: auto;
  justify-content: center;
}
.signup-form input[type="email"] {
  flex: 1;
  min-width: 180px;
  padding: 13px 16px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--hairline);
  background: var(--surface);
  font-family: var(--font-body);
  font-size: 15px;
  color: var(--ink);
}
.next-release__card .signup-form input[type="email"] { background: #fff; }
.signup-form button { margin: 0; }
.signup-form.is-done input[type="email"] { opacity: 0.6; }

.signup-status {
  font-size: 13px;
  margin-top: 10px;
  max-width: 400px;
}
.signup-status[data-state="error"] { color: var(--orange-hover); }
.signup-status[data-state="ok"] { color: var(--teal-hover); }
.signup-form--center + .signup-status { text-align: center; margin-inline: auto; }

/* ---- about ---------------------------------------------------- */
.about { padding: 90px 0; }
.about__inner {
  max-width: 620px;
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.about__avatar {
  width: 60px; height: 60px;
  border-radius: 50%;
  margin: 0 auto 28px;
  background: linear-gradient(135deg, var(--orange) 0%, var(--gold) 100%);
  color: #fff;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.about__lead {
  font-family: var(--font-head);
  font-size: 19px;
  font-weight: 500;
  line-height: 1.7;
  color: var(--ink);
  text-wrap: pretty;
}
.about__body {
  font-size: 16.5px;
  line-height: 1.75;
  color: var(--text-2);
  margin-top: 18px;
  text-wrap: pretty;
}

/* ---- next release ------------------------------------------- */
.next-release { padding: 60px 0 96px; }
.next-release__card {
  max-width: 640px;
  margin-inline: auto;
  text-align: center;
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  padding: 48px clamp(24px, 4vw, 40px);
}
.next-release__card .eyebrow { margin-bottom: 16px; }
.next-release__body {
  font-size: 15.5px;
  color: var(--text-3);
  line-height: 1.65;
  margin: 14px auto 0;
  max-width: 44ch;
}

/* ---- closing ---------------------------------------------- */
.closing { padding: 96px 0; text-align: center; }
.closing__title {
  font-family: var(--font-head);
  font-weight: 560;
  letter-spacing: -0.01em;
  font-size: clamp(26px, 3.4vw, 38px);
  max-width: 16ch;
  margin: 0 auto;
}
.closing__body {
  font-size: 18px;
  color: var(--text-3);
  line-height: 1.6;
  margin: 16px auto 0;
  max-width: 46ch;
}
.closing .btn { margin-top: 30px; }

/* ---- footer --------------------------------------------- */
.site-footer {
  background: var(--footer-bg);
  color: var(--footer-text);
  padding: 52px 0 30px;
}
.site-footer__top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 32px;
  padding-bottom: 32px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}
.site-footer__brand {
  font-family: var(--font-head);
  font-size: 20px;
  color: #fff;
}
.site-footer__links {
  display: flex;
  gap: 36px;
  flex-wrap: wrap;
}
.site-footer__links a {
  font-size: 14px;
  text-decoration: none;
  color: var(--footer-text);
}
.site-footer__links a:hover { color: #fff; }
.site-footer__bottom {
  padding-top: 22px;
  font-size: 13px;
  color: var(--footer-muted);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
}

/* ---- legal pages (privacy.html) ------------------------ */
.legal { max-width: 680px; margin-inline: auto; padding: 64px var(--gutter) 96px; }
.legal h1 {
  font-family: var(--font-head);
  font-weight: 560;
  letter-spacing: -0.01em;
  font-size: clamp(28px, 3.4vw, 40px);
}
.legal h2 {
  font-family: var(--font-head);
  font-weight: 560;
  font-size: 20px;
  margin-top: 36px;
}
.legal p, .legal li {
  color: var(--text-2);
  line-height: 1.75;
  font-size: 16px;
}
.legal ul { padding-left: 20px; margin-top: 8px; }
.legal a { color: var(--orange-hover); }
.legal .updated { color: var(--text-3); font-size: 14px; }
.legal .back { display: inline-block; margin-top: 40px; font-size: 14px; }

/* ---- optional-block toggles (data-* on <body>) --------- */
body:not([data-ratings]) .js-ratings { display: none; }
body:not([data-press]) .js-press { display: none; }
body:not([data-next-release]) #next-release { display: none; }

/* ---- small screens ------------------------------------- */
@media (max-width: 640px) {
  :where([id]) { scroll-margin-top: 72px; }

  /* Compact one-row sticky bar: brand + Shop only.
     The in-page anchor links stay available in the footer. */
  .site-nav__inner { padding-top: 12px; padding-bottom: 12px; }
  .site-nav__links { gap: 14px; }
  .nav-link { display: none; }

  .hero { padding: 48px 0 56px; }
  .split { padding: 56px 0; }
  .testimonials { padding: 64px 0 20px; }
  .about { padding: 64px 0; }
  .closing { padding: 72px 0; }
  .story { padding: 8px 0 64px; }
  .story__body { font-size: 18px; }
  .story__lead { font-size: 21px; }
}
