/*
 * TransformwithST visual foundation.
 * Base styles serve mobile screens; media queries expand that system for larger
 * viewports. The --temporary-* color tokens await approved brand colors.
 */

:root {
  color-scheme: light;

  /* Colors: temporary neutral tokens, ready to swap for approved branding. */
  --temporary-canvas: #ffffff;
  --temporary-surface: #f8fafc;
  --temporary-surface-strong: #e2e8f0;
  --temporary-text: #172033;
  --temporary-text-muted: #526072;
  --temporary-border: #cbd5e1;
  --temporary-action: #126b4a;
  --temporary-action-hover: #0d5138;
  --temporary-action-text: #ffffff;
  --temporary-focus: #155eef;
  --temporary-status-positive: #147a54;

  /* Typography: system fonts load quickly and remain easy to read. */
  --font-sans: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-size-100: 0.875rem;
  --font-size-200: 1rem;
  --font-size-300: 1.125rem;
  --font-size-400: clamp(1.5rem, 5vw, 2.25rem);
  --font-size-500: clamp(2rem, 8vw, 3.5rem);
  --line-height-tight: 1.1;
  --line-height-body: 1.6;
  --font-weight-regular: 400;
  --font-weight-medium: 500;
  --font-weight-semibold: 600;
  --font-weight-bold: 700;

  /* Spacing: use this scale for consistent gaps and section breathing room. */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.25rem;
  --space-6: 1.5rem;
  --space-8: 2rem;
  --space-10: 2.5rem;
  --space-12: 3rem;
  --space-16: 4rem;
  --space-20: 5rem;

  /* Shape, elevation, and movement: use sparingly to keep the interface calm. */
  --radius-sm: 0.5rem;
  --radius-md: 0.75rem;
  --radius-lg: 1rem;
  --radius-pill: 999px;
  --shadow-sm: 0 1px 2px rgb(23 32 51 / 8%);
  --shadow-md: 0 8px 24px rgb(23 32 51 / 12%);
  --transition-fast: 160ms ease;
  --transition-base: 220ms ease;

  /* Layout: mobile uses 20px gutters; containers grow without becoming too wide. */
  --page-padding: 1.25rem;
  --container-narrow: 42rem;
  --container-default: 70rem;
  --container-wide: 82rem;
  --hero-media-max: 16rem;
}

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

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

body {
  min-width: 320px;
  margin: 0;
  overflow-x: hidden;
  color: var(--temporary-text);
  background: var(--temporary-canvas);
  font-family: var(--font-sans);
  font-size: var(--font-size-200);
  font-weight: var(--font-weight-regular);
  line-height: var(--line-height-body);
}

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

button,
input,
textarea,
select {
  font: inherit;
}

button,
[role="button"] {
  cursor: pointer;
}

a {
  color: inherit;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1,
h2,
h3 {
  color: var(--temporary-text);
  font-weight: var(--font-weight-bold);
  line-height: var(--line-height-tight);
  text-wrap: balance;
}

h1 {
  margin-bottom: var(--space-6);
  font-size: var(--font-size-500);
}

h2 {
  margin-bottom: var(--space-5);
  font-size: var(--font-size-400);
}

h3 {
  margin-bottom: var(--space-3);
  font-size: var(--font-size-300);
}

p {
  margin-bottom: var(--space-4);
}

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

/* Container utilities keep future sections readable and consistently aligned. */
.container,
.container-narrow,
.container-wide {
  width: min(100% - (var(--page-padding) * 2), var(--container-default));
  margin-inline: auto;
}

.container-narrow {
  max-width: var(--container-narrow);
}

.container-wide {
  max-width: var(--container-wide);
}

/* These layout primitives cover common future stacks and wrapping action rows. */
.stack {
  display: grid;
  gap: var(--space-4);
}

.cluster {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
  align-items: center;
}

/* Button primitives meet the 48px touch-target guideline on mobile. */
.button {
  display: inline-flex;
  min-height: 3rem;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: var(--space-3) var(--space-5);
  border: 1px solid transparent;
  border-radius: var(--radius-md);
  font-weight: var(--font-weight-semibold);
  line-height: 1.25;
  text-align: center;
  text-decoration: none;
  transition: background-color var(--transition-fast), border-color var(--transition-fast),
    box-shadow var(--transition-fast), color var(--transition-fast);
}

.button-primary {
  color: var(--temporary-action-text);
  background: var(--temporary-action);
  box-shadow: var(--shadow-sm);
}

.button-primary:hover {
  background: var(--temporary-action-hover);
  box-shadow: var(--shadow-md);
}

.button-secondary {
  color: var(--temporary-text);
  border-color: var(--temporary-border);
  background: var(--temporary-canvas);
}

.button-secondary:hover {
  background: var(--temporary-surface);
}

.button-full {
  width: 100%;
}

/* Hero: compact proof image first, leaving the core message and CTA above the fold. */
.site-header {
  padding-top: max(var(--space-2), env(safe-area-inset-top));
  padding-bottom: var(--space-2);
}

.site-header__inner {
  display: flex;
  align-items: center;
  min-height: 2rem;
}

.site-brand {
  display: inline-block;
  color: var(--temporary-text);
  font-size: var(--font-size-200);
  font-weight: var(--font-weight-bold);
  letter-spacing: -0.02em;
  text-decoration: none;
}

.hero {
  padding-top: var(--space-2);
  padding-bottom: max(var(--space-12), env(safe-area-inset-bottom));
}

.hero__layout {
  display: grid;
  gap: var(--space-4);
}

.hero__visual {
  width: min(100%, var(--hero-media-max));
  margin: 0 auto;
}

.hero__visual img {
  width: 100%;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}

.hero__content {
  max-width: var(--container-narrow);
}

.hero__content h1 {
  margin-bottom: var(--space-4);
}

.hero__content h1 span {
  display: block;
}

.hero__hook {
  margin-bottom: var(--space-2);
  color: var(--temporary-text-muted);
  font-size: var(--font-size-300);
  font-weight: var(--font-weight-semibold);
  line-height: 1.3;
}

.hero__statement {
  font-size: var(--font-size-500);
}

.hero__supporting-copy {
  max-width: 38rem;
  margin-bottom: var(--space-5);
  color: var(--temporary-text-muted);
  font-size: var(--font-size-300);
}

.hero__cta {
  margin-bottom: var(--space-4);
  box-shadow: var(--shadow-md);
  font-weight: var(--font-weight-bold);
}

.hero__trust {
  margin-bottom: 0;
  color: var(--temporary-text-muted);
  font-size: var(--font-size-100);
  font-weight: var(--font-weight-medium);
}

/* Problem section: quiet, familiar language with compact scan-friendly cards. */
.problem-section {
  padding-block: var(--space-16);
  padding-bottom: var(--space-12);
  background: var(--temporary-surface);
}

.problem-section__eyebrow {
  margin-bottom: var(--space-3);
  color: var(--temporary-text-muted);
  font-size: var(--font-size-100);
  font-weight: var(--font-weight-bold);
  letter-spacing: 0.08em;
}

.problem-section__body {
  max-width: 36rem;
  color: var(--temporary-text-muted);
}

.problem-section__body p {
  margin-bottom: var(--space-3);
}

.problem-section__final-sentence {
  color: var(--temporary-text);
  font-weight: var(--font-weight-semibold);
}

.problem-section__transition {
  margin: var(--space-6) 0 0;
  padding: var(--space-5) var(--space-4);
  border-radius: var(--radius-md);
  background: var(--temporary-surface-strong);
  color: var(--temporary-text);
  font-size: var(--font-size-300);
  font-weight: var(--font-weight-bold);
  line-height: 1.4;
  text-align: center;
}

.problem-card-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-3);
  padding: 0;
  margin: 0;
  list-style: none;
}

.problem-card {
  display: flex;
  min-height: 5rem;
  align-items: center;
  padding: var(--space-3);
  border: 1px solid var(--temporary-border);
  border-radius: var(--radius-md);
  background: var(--temporary-canvas);
  box-shadow: var(--shadow-sm);
  font-size: var(--font-size-100);
  font-weight: var(--font-weight-semibold);
  line-height: 1.35;
}

/* Reframe section: an uncluttered typographic pause between the problem and solution. */
.reframe-section {
  margin-top: calc(var(--space-16) * -1);
  padding-block: var(--space-16);
  background: var(--temporary-canvas);
}

.reframe-section__content {
  max-width: 38rem;
}

.reframe-section__eyebrow {
  margin-bottom: var(--space-3);
  color: var(--temporary-text-muted);
  font-size: var(--font-size-100);
  font-weight: var(--font-weight-bold);
  letter-spacing: 0.08em;
}

.reframe-section h2 {
  max-width: 32rem;
  margin-bottom: var(--space-5);
}

.reframe-section__statement {
  max-width: 34rem;
  margin-bottom: var(--space-8);
  color: var(--temporary-text);
  font-size: var(--font-size-300);
  font-weight: var(--font-weight-semibold);
  line-height: 1.4;
}

.reframe-section__body {
  max-width: 36rem;
  margin-bottom: var(--space-8);
  color: var(--temporary-text-muted);
}

.reframe-section__closing {
  margin-bottom: 0;
  font-weight: var(--font-weight-semibold);
}

/* Founder story: personal narrative and chronological moments, not a results dashboard. */
.founder-section {
  margin-top: calc(var(--space-20) * -1);
  padding-block: var(--space-16);
  background: var(--temporary-surface);
}

.founder-section__layout {
  display: grid;
  gap: var(--space-4);
}

.founder-section__visual {
  width: min(100%, 20rem);
  margin: 0 auto;
}

.founder-section__visual img {
  width: 100%;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}

.founder-section__content {
  max-width: var(--container-narrow);
}

.founder-section__eyebrow {
  margin-bottom: var(--space-3);
  color: var(--temporary-text-muted);
  font-size: var(--font-size-100);
  font-weight: var(--font-weight-bold);
  letter-spacing: 0.08em;
}

.founder-section__story {
  max-width: 32rem;
  margin-bottom: var(--space-8);
  color: var(--temporary-text-muted);
}

.founder-section__story p {
  margin-bottom: var(--space-3);
}

.founder-metrics {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-3);
  padding-top: var(--space-5);
  margin: 0;
  border-top: 1px solid var(--temporary-border);
}

.founder-metrics dt {
  margin-bottom: var(--space-1);
  font-size: var(--font-size-300);
  font-weight: var(--font-weight-bold);
  line-height: var(--line-height-tight);
}

.founder-metrics dd {
  margin: 0;
  color: var(--temporary-text-muted);
  font-size: var(--font-size-100);
}

/* Transformation proof: a simple gallery keeps the future approved imagery central. */
.transformations-section {
  padding-block: var(--space-16);
  background: var(--temporary-canvas);
}

.transformations-section__eyebrow {
  margin-bottom: var(--space-3);
  color: var(--temporary-text-muted);
  font-size: var(--font-size-100);
  font-weight: var(--font-weight-bold);
  letter-spacing: 0.08em;
}

.transformations-section h2 {
  max-width: 34rem;
  margin-bottom: var(--space-4);
}

.transformations-section__intro {
  max-width: 38rem;
  margin-bottom: var(--space-8);
  color: var(--temporary-text-muted);
}

.transformation-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-6);
  padding: 0;
  margin: 0;
  list-style: none;
}

.transformation-grid li {
  min-width: 0;
}

.transformation-grid img {
  width: 100%;
  max-width: 18rem;
  height: auto;
  margin-inline: auto;
  border: 1px solid var(--temporary-border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  object-fit: contain;
}

/* Customer stories: a narrative list that keeps people, not metrics, central. */
.customer-stories-section {
  padding-block: var(--space-16);
  background: var(--temporary-surface);
}

.customer-stories-section__eyebrow {
  margin-bottom: var(--space-3);
  color: var(--temporary-text-muted);
  font-size: var(--font-size-100);
  font-weight: var(--font-weight-bold);
  letter-spacing: 0.08em;
}

.customer-stories-section h2 {
  max-width: 36rem;
  margin-bottom: var(--space-4);
}

.customer-stories-section__intro {
  max-width: 38rem;
  margin-bottom: var(--space-8);
  color: var(--temporary-text-muted);
}

.customer-stories-list {
  display: grid;
  gap: var(--space-8);
}

.customer-story {
  min-width: 0;
}

.customer-story__image {
  width: min(100%, 18rem);
  height: auto;
  margin-inline: auto;
  margin-bottom: var(--space-4);
  border-radius: var(--radius-md);
  object-fit: contain;
}

.customer-story__content {
  max-width: 38rem;
}

.customer-story h3 {
  max-width: 34rem;
  margin-bottom: var(--space-4);
}

.customer-story__body {
  color: var(--temporary-text-muted);
}

.customer-story__body p {
  margin-bottom: var(--space-4);
}

.customer-story__metrics-line {
  margin-bottom: 0;
  color: var(--temporary-text-muted);
  font-size: var(--font-size-100);
  font-weight: var(--font-weight-medium);
  line-height: 1.4;
}

.customer-story__key-result {
  margin-bottom: var(--space-4);
  color: var(--temporary-text);
  font-size: var(--font-size-200);
  font-weight: var(--font-weight-bold);
  letter-spacing: 0.06em;
}

.customer-story__name,
.customer-story__result {
  display: block;
}

.customer-story__name {
  margin-bottom: var(--space-2);
  font-size: var(--font-size-200);
  line-height: 1.3;
}

.customer-story__result {
  font-size: var(--font-size-400);
  line-height: var(--line-height-tight);
}

.customer-story--card {
  padding: var(--space-5);
  border-top: 3px solid var(--temporary-border);
  border-radius: var(--radius-md);
  background: var(--temporary-canvas);
  box-shadow: var(--shadow-sm);
}

/* Method section: one coherent numbered approach, not a set of unrelated cards. */
.method-section {
  padding-block: var(--space-16);
  background: var(--temporary-canvas);
}

.method-section__eyebrow {
  margin-bottom: var(--space-3);
  color: var(--temporary-text-muted);
  font-size: var(--font-size-100);
  font-weight: var(--font-weight-bold);
  letter-spacing: 0.08em;
}

.method-section h2 {
  margin-bottom: var(--space-4);
}

.method-section__intro {
  margin-bottom: var(--space-8);
  color: var(--temporary-text-muted);
}

.method-list {
  display: grid;
  gap: 0;
  padding: 0;
  margin: 0;
  list-style: none;
}

.method-list__item {
  padding-block: var(--space-6);
  border-top: 1px solid var(--temporary-border);
}

.method-list__item:first-child {
  padding-top: 0;
  border-top: 0;
}

.method-list__number {
  margin-bottom: var(--space-2);
  color: var(--temporary-text-muted);
  font-size: var(--font-size-200);
  font-weight: var(--font-weight-bold);
  letter-spacing: 0.08em;
}

.method-list h3 {
  margin-bottom: var(--space-3);
  font-weight: var(--font-weight-bold);
}

.method-list__body {
  max-width: 36rem;
  margin-bottom: 0;
  color: var(--temporary-text-muted);
  font-size: var(--font-size-200);
}

/* Process section: a connected vertical sequence, distinct from Section 7 dividers. */
.process-section {
  padding-block: var(--space-16);
  background: var(--temporary-surface);
}

.process-section__eyebrow {
  margin-bottom: var(--space-3);
  color: var(--temporary-text-muted);
  font-size: var(--font-size-100);
  font-weight: var(--font-weight-bold);
  letter-spacing: 0.08em;
}

.process-section h2 {
  margin-bottom: var(--space-4);
}

.process-section__intro {
  margin-bottom: var(--space-8);
  color: var(--temporary-text-muted);
}

.process-list {
  position: relative;
  display: grid;
  gap: var(--space-8);
  padding: 0;
  margin: 0;
  list-style: none;
}

.process-list::before {
  position: absolute;
  top: var(--space-2);
  bottom: var(--space-2);
  left: 0.7rem;
  border-left: 1px solid var(--temporary-border);
  content: "";
}

.process-step {
  position: relative;
  display: grid;
  grid-template-columns: 2rem minmax(0, 1fr);
  gap: var(--space-4);
  align-items: start;
}

.process-step__number {
  position: relative;
  z-index: 1;
  padding-block: var(--space-1);
  color: var(--temporary-text);
  background: var(--temporary-surface);
  font-size: var(--font-size-200);
  font-weight: var(--font-weight-bold);
  line-height: 1.4;
}

.process-step h3 {
  margin-bottom: var(--space-2);
  font-size: var(--font-size-200);
  line-height: 1.3;
}

.process-step p {
  margin-bottom: 0;
  color: var(--temporary-text-muted);
}

/* FAQ section: a compact, readable list that answers objections without heavy cards. */
.faq-section {
  padding-block: var(--space-16);
  background: var(--temporary-canvas);
}

.faq-section__eyebrow {
  margin-bottom: var(--space-3);
  color: var(--temporary-text-muted);
  font-size: var(--font-size-100);
  font-weight: var(--font-weight-bold);
  letter-spacing: 0.08em;
}

.faq-section h2 {
  margin-bottom: var(--space-4);
}

.faq-section__intro {
  margin-bottom: var(--space-8);
  color: var(--temporary-text-muted);
}

.faq-list {
  margin: 0;
}

.faq-item {
  padding-block: var(--space-5);
  border-top: 1px solid var(--temporary-border);
}

.faq-item:last-child {
  border-bottom: 1px solid var(--temporary-border);
}

.faq-item dt {
  margin-bottom: var(--space-2);
  font-weight: var(--font-weight-semibold);
}

.faq-item dd {
  margin: 0;
  color: var(--temporary-text-muted);
}

/* Conversion section: a clear, calm next step after the full story and method. */
.conversion-section {
  padding-block: var(--space-16);
  border-top: 1px solid var(--temporary-border);
  background: var(--temporary-surface-strong);
}

.conversion-section__content {
  text-align: center;
}

.conversion-section__eyebrow {
  margin-bottom: var(--space-3);
  color: var(--temporary-text-muted);
  font-size: var(--font-size-100);
  font-weight: var(--font-weight-bold);
  letter-spacing: 0.08em;
}

.conversion-section h2 {
  max-width: 32rem;
  margin-inline: auto;
  margin-bottom: var(--space-4);
}

.conversion-section__intro {
  max-width: 34rem;
  margin-inline: auto;
  margin-bottom: var(--space-6);
  color: var(--temporary-text-muted);
}

.conversion-section__detail {
  max-width: 34rem;
  margin-inline: auto;
  margin-bottom: var(--space-6);
  color: var(--temporary-text-muted);
  font-size: var(--font-size-100);
}

.conversion-section__cta {
  max-width: 24rem;
  margin-inline: auto;
  box-shadow: var(--shadow-md);
  font-weight: var(--font-weight-bold);
}

.conversion-section__reassurance {
  max-width: 32rem;
  margin: var(--space-4) auto 0;
  color: var(--temporary-text-muted);
  font-size: var(--font-size-100);
}

@media (min-width: 48rem) {
  /* Tablet: additional gutter space, retaining the same mobile content hierarchy. */
  :root {
    --page-padding: 2rem;
    --hero-media-max: 18rem;
  }

  .button-full-tablet-auto {
    width: auto;
  }

  .hero {
    padding-top: var(--space-6);
    padding-bottom: var(--space-16);
  }

  .hero__layout {
    gap: var(--space-10);
  }

  .problem-section {
    padding-block: var(--space-20);
    padding-bottom: var(--space-16);
  }

  .reframe-section {
    margin-top: 0;
    padding-block: var(--space-20);
  }

  .founder-section {
    margin-top: 0;
    padding-block: var(--space-20);
  }

  .transformations-section {
    padding-block: var(--space-20);
  }

  .customer-stories-section {
    padding-block: var(--space-20);
  }

  .customer-stories-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: var(--space-6);
    align-items: start;
  }

  .method-section {
    padding-block: var(--space-20);
  }

  .process-section {
    padding-block: var(--space-20);
  }

  .faq-section {
    padding-block: var(--space-20);
  }

  .conversion-section {
    padding-block: var(--space-20);
  }
}

@media (min-width: 75rem) {
  /* Desktop: wider gutters only; it is an expansion of the mobile-first design. */
  :root {
    --page-padding: 3rem;
    --hero-media-max: 27rem;
  }

  .hero {
    padding-top: var(--space-10);
    padding-bottom: var(--space-20);
  }

  .hero__layout {
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1fr);
    gap: var(--space-16);
    align-items: center;
  }

  .hero__visual {
    margin: 0;
  }

  .problem-card-list {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .founder-section__layout {
    grid-template-columns: minmax(16rem, 0.75fr) minmax(0, 1fr);
    gap: var(--space-16);
    align-items: start;
  }

  .founder-section__visual {
    width: 100%;
    margin: 0;
  }

  .transformation-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: var(--space-4);
  }

  .transformation-grid li:last-child {
    grid-column: 2;
  }

  .transformation-grid img {
    max-width: 22rem;
  }

  .customer-story__image {
    width: min(100%, 22rem);
    margin-inline: 0;
  }

  .customer-story--card {
    padding: var(--space-6);
  }

  .method-section__content {
    max-width: var(--container-default);
  }

  .method-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: var(--space-10);
  }

  .method-list__item {
    padding-block: var(--space-8);
  }

  .method-list__item:first-child {
    padding-top: var(--space-8);
    border-top: 1px solid var(--temporary-border);
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
