/* ==========================================================================
   ItemSpan — Page styles
   --------------------------------------------------------------------------
   Styling that belongs to one page only. Ordered to match the site's
   navigation: home, features, pricing, support, legal, download, contact, 404.
   ========================================================================== */

/* ==========================================================================
   HOME
   ========================================================================== */

/* --- Hero --------------------------------------------------------------- */

.hero {
  position: relative;
  min-height: 690px;
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, 0.7fr);
  gap: 56px;
  align-items: center;
  padding: 58px max(7vw, calc((100vw - 1320px) / 2)) var(--space-6);
}

.hero-copy {
  max-width: 760px;
  position: relative;
  z-index: 2;
  padding-bottom: 72px;
}

.hero-labels {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  flex-wrap: wrap;
  margin-bottom: var(--space-5);
}

.hero-copy h1 {
  max-width: 730px;
}

.hero-lead {
  max-width: 600px;
  margin-top: var(--space-5);
  font-size: var(--text-lead);
  line-height: 1.55;
  color: var(--ink);
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 38px;
  flex-wrap: wrap;
  margin-top: 30px;
}

.hero-actions .button {
  min-width: 202px;
}

.hero .span-line {
  z-index: 1;
}

/* --- Waitlist band ------------------------------------------------------ */

.waitlist-band {
  padding-block: var(--space-8);
  background: var(--mist);
  border-block: 1px solid var(--border-soft);
}

.waitlist-band-inner {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: var(--space-8);
  align-items: center;
}

.waitlist-band h2 {
  max-width: 15ch;
}

.waitlist-band > div > p {
  margin-top: var(--space-4);
  max-width: 48ch;
  font-size: 1.05rem;
}

/* --- "One continuous record" stages ------------------------------------- */

.stages {
  padding: var(--space-8) 0 58px;
  background: var(--mist);
}

.stages h2 {
  max-width: 540px;
  margin-bottom: 42px;
  font-size: clamp(1.75rem, 2.5vw, 2.25rem);
}

/* The gold rail runs behind the numbered circles, tying the three stages into
   one line — the same "continuous record" idea as the logo. */
.stage-rail {
  height: 2px;
  margin: 0 0 -27px 28px;
  background: var(--gold);
}

.stage-grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 46px;
}

.stage {
  display: grid;
  grid-template-columns: 56px 76px 1fr;
  gap: 18px;
  align-items: start;
}

.stage-number {
  width: 56px;
  height: 56px;
  display: grid;
  place-items: center;
  border: 3px solid var(--gold);
  border-radius: 50%;
  background: var(--canvas);
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 700;
}

.stage-icon {
  width: 76px;
  height: 76px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #fff;
  color: var(--evergreen);
}

.stage-icon svg {
  width: 38px;
  height: 38px;
  stroke-width: 1.75;
}

.stage h3 {
  margin: 6px 0;
  font-size: 1.25rem;
}

.stage p {
  font-size: 0.92rem;
}

/* --- Audience section --------------------------------------------------- */

.audience {
  padding-block: var(--space-9);
}

.audience-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-8);
  align-items: start;
}

.audience h2 {
  max-width: 18ch;
}

.audience p {
  margin-top: var(--space-4);
  font-size: 1.05rem;
  max-width: 52ch;
}

/* Eight trades is a long single column, so it splits into two on anything
   wide enough. auto-fit means it collapses back to one without a media query. */
.audience-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: var(--space-4) var(--space-5);
}

.audience-list li {
  display: grid;
  grid-template-columns: 24px 1fr;
  gap: var(--space-3);
  align-items: start;
  line-height: 1.55;
}

.audience-list svg {
  width: 22px;
  height: 22px;
  margin-top: 3px;
  color: var(--evergreen);
}

/* --- Boundaries ("what it doesn't do") ---------------------------------- */

.boundaries {
  padding-block: var(--space-9);
  background: var(--mist);
}

.boundaries-head {
  max-width: 640px;
  margin-bottom: var(--space-7);
}

.boundaries-head p {
  margin-top: var(--space-3);
  font-size: 1.05rem;
}

.boundaries-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: var(--space-4);
}

.boundary {
  padding: var(--space-5);
  border-left: 3px solid var(--gold);
  background: var(--surface);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--ink);
}

/* --- Home FAQ ----------------------------------------------------------- */

.home-faq {
  padding-block: var(--space-9);
}

.home-faq-inner {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: var(--space-8);
  align-items: start;
}

/* --- Closing CTA -------------------------------------------------------- */

.closing-cta {
  padding-block: var(--space-9);
  border-top: 1px solid var(--border);
  text-align: center;
}

.closing-cta h2 {
  max-width: 20ch;
  margin-inline: auto;
  font-size: clamp(1.9rem, 3.4vw, 2.8rem);
}

.closing-cta > p {
  max-width: 54ch;
  margin: var(--space-4) auto 0;
  font-size: 1.05rem;
}

.closing-cta .waitlist {
  margin: var(--space-6) auto 0;
}

/* ==========================================================================
   FEATURES
   ========================================================================== */

.features-hero {
  padding-top: 74px;
  display: grid;
  grid-template-columns: 1.1fr 0.72fr;
  gap: 74px;
  align-items: center;
}

.features-intro h1 {
  max-width: 680px;
  font-size: clamp(2.7rem, 5.3vw, 4.85rem);
}

.features-intro > p {
  max-width: 610px;
  margin-top: 28px;
  color: var(--ink);
  font-size: 1.18rem;
}

/* Four-step rail: Intake → Record → Use → Outcome. The connecting gold line is
   the <i> element inside each step except the last. */
.workflow-rail {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin-top: 54px;
}

.workflow-step {
  position: relative;
  text-align: center;
}

.workflow-step > span {
  position: relative;
  z-index: 2;
  width: 64px;
  height: 64px;
  margin: 0 auto 11px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--mist);
  color: var(--evergreen);
}

.workflow-step svg {
  width: 30px;
  height: 30px;
  stroke-width: 1.8;
}

.workflow-step strong,
.workflow-step small {
  display: block;
}

.workflow-step small {
  margin-top: 5px;
  color: var(--secondary);
  line-height: 1.4;
}

.workflow-step i {
  position: absolute;
  top: 31px;
  left: calc(50% + 32px);
  width: calc(100% - 54px);
  height: 2px;
  background: var(--gold);
}

.section-kicker {
  margin: 70px 0 var(--space-5);
  font-size: clamp(1.5rem, 2.4vw, 2rem);
}

.feature-list {
  border-top: 1px solid var(--border);
}

.feature-row {
  min-height: 265px;
  padding: 38px var(--space-2);
  border-bottom: 1px solid var(--border);
  display: grid;
  grid-template-columns: 92px 1fr 0.9fr;
  gap: 38px;
  align-items: start;
}

.feature-copy h3 {
  margin: 7px 0 19px;
  font-size: 1.75rem;
  font-weight: 700;
  letter-spacing: -0.035em;
}

.feature-copy ul {
  padding-left: 21px;
  list-style: disc;
  color: var(--ink);
}

.feature-copy li {
  margin: 10px 0;
  padding-left: 5px;
  line-height: 1.55;
}

.feature-aside {
  min-height: 165px;
  padding: var(--space-3) 0 var(--space-3) var(--space-6);
  border-left: 1px solid var(--gold);
}

.feature-aside-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

.feature-aside-list > strong {
  color: var(--evergreen);
}

.feature-aside-list span {
  display: flex;
  gap: var(--space-3);
  align-items: center;
  line-height: 1.45;
}

.feature-aside-list svg {
  width: 25px;
  height: 25px;
  flex: 0 0 25px;
  color: var(--evergreen);
}

/* Small three-column grid illustrating a lot record. */
.mini-table {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--border);
  border-left: 1px solid var(--border);
  font-size: 0.76rem;
}

.mini-table > * {
  min-height: 42px;
  padding: 10px;
  border-right: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.warning-list > span {
  display: flex;
  gap: 10px;
  align-items: center;
  color: var(--warning);
}

.warning-list svg {
  width: 28px;
  height: 28px;
}

.warning-list p {
  margin: 5px 0 20px 38px;
  font-size: 0.84rem;
}

.pro-band {
  margin-top: 42px;
  padding: 30px 38px;
  border-bottom: 3px solid var(--gold);
  border-radius: var(--radius-lg);
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 28px;
  align-items: center;
  background: var(--mist);
}

.pro-band > svg {
  width: 52px;
  height: 52px;
  color: var(--evergreen);
}

.pro-band p {
  color: var(--ink);
  font-size: 1.18rem;
}

.pro-band strong {
  color: var(--evergreen);
}

.features-footnote {
  max-width: 540px;
  margin: 44px auto 0;
  text-align: center;
  font-size: 0.86rem;
}

/* ==========================================================================
   PRICING
   ========================================================================== */

.pricing-page {
  padding-top: 54px;
}

.pricing-intro {
  max-width: 760px;
  margin: 0 auto 40px;
  text-align: center;
}

.pricing-intro h1 {
  font-size: clamp(2.5rem, 4.2vw, 4rem);
}

.pricing-intro p {
  max-width: 680px;
  margin: var(--space-4) auto 0;
  font-size: 1.1rem;
}

.price-plans {
  display: grid;
  grid-template-columns: 0.8fr 1.45fr;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--mist);
  overflow: hidden;
}

.plan {
  min-height: 226px;
  padding: 27px 34px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 25px;
  text-align: center;
}

.plan h2 {
  font-size: 1.75rem;
}

.plan p {
  margin-top: 6px;
  font-size: 0.86rem;
}

.plan-free .button {
  min-width: 180px;
}

.plan-price {
  font-family: var(--font-display);
  font-size: 2.3rem;
  font-weight: 700;
}

/* The Pro card sits proud of the container: a 2px evergreen border and the
   lighter canvas background lift it above the mist-coloured panel. */
.plan-pro {
  margin: -1px;
  border: 2px solid var(--evergreen);
  border-radius: var(--radius-lg);
  background: var(--canvas);
}

.plan-note {
  font-size: 0.84rem;
  color: var(--secondary);
}

.pro-prices {
  width: 100%;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
}

.pro-prices > span {
  position: relative;
  padding: 0 var(--space-5);
  border-right: 1px solid var(--border);
}

.pro-prices > span:last-child {
  border-right: 0;
}

.pro-prices small,
.pro-prices strong {
  display: block;
}

.pro-prices strong {
  margin-top: 3px;
  font-family: var(--font-display);
  font-size: 1.9rem;
  font-variant-numeric: tabular-nums;
}

/* The tag sits under its price. inline-flex won't centre inside the column on
   its own, so give it an auto margin and let it size to its text. */
.pro-prices .tag-gold {
  margin: var(--space-2) auto 0;
  width: fit-content;
}

.pricing-notes {
  max-width: 850px;
  margin: var(--space-5) auto 28px;
}

.pricing-notes p {
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
  margin: 7px 0;
  font-size: var(--text-small);
}

.pricing-notes svg {
  width: 19px;
  height: 19px;
  flex: 0 0 19px;
  margin-top: 2px;
  color: var(--evergreen);
}

.comparison-head {
  margin: var(--space-7) 0 var(--space-5);
  text-align: center;
}

.pricing-links {
  margin-top: 30px;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 34px;
  flex-wrap: wrap;
  color: var(--evergreen);
  font-size: var(--text-small);
}

.pricing-links span {
  display: flex;
  align-items: center;
  gap: 9px;
}

.pricing-links svg {
  width: 20px;
  height: 20px;
}

/* ==========================================================================
   SUPPORT
   ========================================================================== */

.support-shell {
  padding-top: 54px;
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(350px, 0.75fr);
  gap: 58px;
}

.support-main h1 {
  font-size: clamp(2.7rem, 4.5vw, 4.45rem);
}

.support-lead {
  margin: var(--space-5) 0 30px;
  font-size: 1.08rem;
}

.contact-band {
  margin-top: 38px;
  padding: 27px 30px;
  border-radius: var(--radius-lg);
  display: grid;
  grid-template-columns: auto 1fr 0.9fr;
  gap: 25px;
  background: var(--mist);
}

.contact-band > svg {
  width: 38px;
  height: 38px;
  color: var(--evergreen);
}

.contact-band h2 {
  margin-bottom: var(--space-2);
  font-size: 1.45rem;
}

.contact-band p {
  margin-bottom: 10px;
  font-size: 0.88rem;
}

.contact-band a:not(.button) {
  color: var(--evergreen);
  font-weight: 600;
}

.contact-band .button {
  width: 100%;
}

.contact-band .small-note {
  margin-top: 10px;
  font-size: 0.76rem;
}

.legal-preview {
  padding: 18px 0 0 44px;
  border-left: 1px solid var(--gold);
}

.legal-preview > small {
  font-weight: var(--weight-semibold);
}

.legal-preview > h2 {
  margin: 26px 0 var(--space-6);
  font-size: 1.8rem;
}

.legal-preview-grid {
  display: grid;
  grid-template-columns: 130px 1fr;
  gap: 26px;
}

.legal-preview-grid nav {
  padding-right: var(--space-5);
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 22px;
  font-size: 0.72rem;
  line-height: 1.4;
}

.legal-preview-grid h3 {
  margin: 0 0 9px;
  color: var(--evergreen);
  font-size: 1.08rem;
}

.legal-preview-grid p {
  margin: 0 0 var(--space-5);
  font-size: 0.82rem;
}

.legal-preview-grid .text-link {
  font-size: 0.82rem;
}

/* ==========================================================================
   LEGAL PAGES (Privacy, Terms)
   --------------------------------------------------------------------------
   Deliberately plainer than the rest of the site. These are documents, and
   they should read like documents: narrow measure, generous line height, a
   sticky table of contents, and no decoration competing with the text.
   ========================================================================== */

.legal-page {
  padding-top: var(--space-8);
  max-width: 1120px;
}

.legal-page > header {
  max-width: 900px;
  margin-bottom: var(--space-7);
}

.legal-status {
  margin-bottom: var(--space-3);
  font-size: 0.84rem;
  font-weight: 600;
}

.legal-page h1 {
  font-size: clamp(2.5rem, 4vw, 4rem);
}

.legal-page h1 span {
  color: var(--secondary);
  font-weight: 600;
}

.draft-notice {
  margin-top: var(--space-5);
  padding: 18px var(--space-5);
  border-left: 4px solid var(--gold);
  background: #fff3d6;
  color: #5b3a00;
  line-height: 1.55;
}

.legal-layout {
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  gap: 65px;
}

.legal-toc {
  position: sticky;
  top: 110px;
  align-self: start;
  display: flex;
  flex-direction: column;
  border-top: 1px solid var(--border);
}

.legal-toc a {
  padding: 11px 2px;
  border-bottom: 1px solid var(--border);
  color: var(--secondary);
  text-decoration: none;
  font-size: 0.82rem;
  line-height: 1.4;
  transition: color var(--duration-fast) var(--ease);
}

.legal-toc a:hover {
  color: var(--evergreen);
}

.legal-copy {
  max-width: 740px;
}

.legal-copy section {
  margin-bottom: 40px;
  scroll-margin-top: 120px;
}

.legal-copy h2 {
  margin-bottom: var(--space-3);
  color: var(--evergreen);
  font-size: 1.45rem;
  letter-spacing: -0.02em;
}

.legal-copy p {
  margin-bottom: var(--space-3);
  line-height: 1.72;
}

.legal-copy a {
  color: var(--evergreen);
  text-underline-offset: 4px;
}

/* ==========================================================================
   DOWNLOAD, CONTACT, 404
   ========================================================================== */

.simple-page {
  padding-top: 82px;
  padding-bottom: 28px;
}

.simple-page h1 {
  max-width: 820px;
  font-size: clamp(2.6rem, 4.5vw, 4.2rem);
}

.page-lead {
  max-width: 760px;
  margin-top: 22px;
  font-size: 1.12rem;
}

/* --- Download ----------------------------------------------------------- */

.download-waitlist {
  margin-top: var(--space-7);
  padding: var(--space-6);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--mist);
}

.download-waitlist h2 {
  font-size: 1.5rem;
}

.download-waitlist > p {
  margin-top: 10px;
  margin-bottom: var(--space-5);
  max-width: 60ch;
}

.store-options {
  margin-top: var(--space-6);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-5);
}

.store-options article {
  padding: 26px;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 18px;
  background: var(--surface);
}

.store-options article > svg {
  width: 36px;
  height: 36px;
  color: var(--evergreen);
}

.store-options h2 {
  font-size: 1.4rem;
}

.store-options p {
  margin-top: 7px;
  font-size: 0.88rem;
}

.store-options .button-disabled,
.store-options .button {
  grid-column: 1 / -1;
}

.notice-box {
  margin-top: var(--space-5);
  padding: 27px 30px;
  border-radius: var(--radius-lg);
  background: var(--mist);
}

.notice-box h2 {
  font-size: 1.4rem;
}

.notice-box p {
  margin-top: 10px;
}

/* --- Contact ------------------------------------------------------------ */

.contact-grid {
  margin-top: var(--space-6);
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: var(--space-5);
}

.contact-details,
.support-checklist {
  padding: 34px;
  border-radius: var(--radius-lg);
}

.contact-details {
  background: var(--mist);
}

.contact-details > svg {
  width: 42px;
  height: 42px;
  margin-bottom: 22px;
  color: var(--evergreen);
}

.contact-details h2,
.support-checklist h2 {
  font-size: 1.55rem;
}

.contact-details p {
  margin: 10px 0 22px;
}

.contact-details .button {
  max-width: 100%;
  padding-inline: 18px;
}

.support-checklist {
  border: 1px solid var(--border);
  background: var(--surface);
}

.support-checklist ul {
  margin-top: 22px;
  display: flex;
  flex-direction: column;
  gap: 17px;
}

.support-checklist li {
  display: grid;
  grid-template-columns: 32px 1fr;
  gap: var(--space-3);
  align-items: start;
  line-height: 1.55;
}

.support-checklist li > span,
.support-checklist li > svg {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--mist);
  color: var(--evergreen);
  font-weight: 700;
  padding: 6px;
}

/* --- 404 ---------------------------------------------------------------- */

.not-found .button {
  margin-top: var(--space-6);
}

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */

@media (max-width: 1080px) {
  .hero {
    grid-template-columns: minmax(0, 1fr) 330px;
    gap: 34px;
  }

  .hero-copy {
    padding-bottom: 40px;
  }

  /* Below this width the number and icon stack vertically so the text column
     keeps a usable measure. */
  .stage {
    grid-template-columns: 52px 1fr;
  }

  .stage-icon {
    grid-column: 1;
    grid-row: 2;
    width: 60px;
    height: 60px;
  }

  .stage > div:last-child {
    grid-column: 2;
    grid-row: 2;
  }

  .features-hero {
    gap: 36px;
  }

  .workflow-step small {
    font-size: 0.68rem;
  }

  .support-shell,
  .waitlist-band-inner,
  .audience-inner,
  .home-faq-inner {
    grid-template-columns: 1fr;
    gap: var(--space-6);
  }

  .legal-preview {
    padding: 36px 0 0;
    border-top: 1px solid var(--gold);
    border-left: 0;
  }

  .legal-preview-grid {
    grid-template-columns: 180px 1fr;
  }

  .legal-layout {
    grid-template-columns: 1fr;
    gap: var(--space-6);
  }

  .legal-toc {
    position: static;
  }

  .price-plans {
    grid-template-columns: 1fr;
  }

  .feature-row {
    grid-template-columns: 92px 1fr;
    gap: var(--space-5) var(--space-6);
  }

  .feature-aside {
    grid-column: 2;
    padding-left: var(--space-5);
  }
}

@media (max-width: 820px) {
  .hero {
    min-height: 0;
    grid-template-columns: 1fr;
    padding: var(--space-7) var(--gutter) 0;
    overflow: visible;
  }

  .hero-copy {
    padding-bottom: 0;
  }

  .hero-copy h1 {
    font-size: clamp(2.45rem, 11vw, 4rem);
  }

  .hero-actions {
    gap: var(--space-5);
  }

  .hero-actions .button {
    min-width: 100%;
  }

  .phone-wrap {
    width: min(86vw, 350px);
    margin: var(--space-7) auto -32px;
  }

  /* The decorative sweep is cropped awkwardly on narrow screens, so it's
     removed rather than squeezed. */
  .hero .span-line {
    display: none;
  }

  .features-hero,
  .contact-grid,
  .store-options {
    grid-template-columns: 1fr;
  }

  .workflow-rail {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-5) 10px;
  }

  .workflow-step i {
    display: none;
  }

  .stage-grid {
    grid-template-columns: 1fr;
    gap: var(--space-6);
  }

  .stage-rail {
    display: none;
  }

  .feature-row {
    grid-template-columns: 1fr;
    gap: var(--space-4);
  }

  .feature-aside {
    grid-column: 1;
    padding: var(--space-3) 0 var(--space-3) var(--space-4);
  }

  .pro-band {
    grid-template-columns: 1fr;
    gap: var(--space-4);
    text-align: left;
  }

  .contact-band {
    grid-template-columns: 1fr;
  }

  .pro-prices {
    grid-template-columns: 1fr;
  }

  .pro-prices > span {
    padding: var(--space-3) 0;
    border-right: 0;
    border-bottom: 1px solid var(--border);
  }

  .pro-prices > span:last-child {
    border-bottom: 0;
  }

  .legal-preview-grid {
    grid-template-columns: 1fr;
  }

  .legal-preview-grid nav {
    padding-right: 0;
    border-right: 0;
    flex-direction: row;
    flex-wrap: wrap;
    gap: var(--space-3) var(--space-4);
  }

  .simple-page {
    padding-top: var(--space-7);
  }

  .contact-details,
  .support-checklist {
    padding: var(--space-5);
  }
}
