/* ==========================================================================
   MattWindsor.com: Apple-derived design system
   Type scale, color, and motion values modeled on apple.com production CSS
   ========================================================================== */

:root {
  --font-display: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --font-text: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", Helvetica, Arial, sans-serif;

  --color-text: #1d1d1f;
  --color-text-inverse: #f5f5f7;
  --color-muted: #86868b;
  --color-fine: #6e6e73;
  --color-bg-white: #ffffff;
  --color-bg-gray: #f5f5f7;
  --color-bg-black: #000000;
  --color-surface-dark: #16161a;
  --color-blue: #0071e3;
  --color-blue-hover: #0077ed;
  --color-blue-active: #006edb;
  --color-link: #0066cc;
  --color-link-dark: #2997ff;

  --hairline-light: rgba(0, 0, 0, 0.08);
  --hairline-dark: rgba(255, 255, 255, 0.10);

  --gradient-ai: linear-gradient(108deg, #0090f7, #ba62fc 33%, #f2416b 66%, #f55600);

  --radius-card: 28px;
  --radius-input: 14px;
  --radius-pill: 980px;

  --width-narrow: 734px;
  --width-content: 1068px;

  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --section-pad: 130px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 64px;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-text);
  font-size: 17px;
  line-height: 1.4706;
  letter-spacing: -0.022em;
  color: var(--color-text);
  background: var(--color-bg-white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: var(--color-link); text-decoration: none; }
a:hover { text-decoration: underline; }
sup { font-size: 0.62em; vertical-align: super; line-height: 0; }

::selection { background: rgba(0, 113, 227, 0.24); color: inherit; }

:focus-visible {
  outline: 2px solid var(--color-blue);
  outline-offset: 3px;
  border-radius: 4px;
}
.section-dark :focus-visible { outline-color: #5ac8fa; }

/* ===== Gradient text ===== */
.gradient-text {
  background-image: var(--gradient-ai);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  /* keeps descenders from clipping in Safari */
  padding-bottom: 0.06em;
}

/* ==========================================================================
   Nav
   ========================================================================== */
.globalnav {
  position: sticky;
  top: 0;
  z-index: 9999;
  width: 100%;
  height: 52px;
  background: rgba(22, 22, 23, 0.72);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.globalnav-inner {
  max-width: var(--width-content);
  margin: 0 auto;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 22px;
  gap: 16px;
}

.nav-brand {
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.022em;
  color: rgba(255, 255, 255, 0.92);
  white-space: nowrap;
  transition: color 0.25s var(--ease-out);
}
.nav-brand:hover { color: #fff; text-decoration: none; }

.nav-links { display: flex; gap: 30px; }
.nav-links a {
  font-size: 13px;
  letter-spacing: -0.01em;
  color: rgba(255, 255, 255, 0.72);
  transition: color 0.25s var(--ease-out);
  line-height: 52px;
}
.nav-links a:hover { color: #fff; text-decoration: none; }

.nav-cta {
  font-size: 13px;
  font-weight: 400;
  color: #fff;
  background: var(--color-blue);
  border-radius: var(--radius-pill);
  padding: 7px 15px;
  white-space: nowrap;
  transition: background 0.25s var(--ease-out), transform 0.25s var(--ease-out);
}
.nav-cta:hover { background: var(--color-blue-hover); text-decoration: none; }
.nav-cta:active { transform: scale(0.97); }

/* ==========================================================================
   Sections
   ========================================================================== */
.section { padding: var(--section-pad) 22px; position: relative; }
.section-light { background: var(--color-bg-white); color: var(--color-text); }
.section-gray { background: var(--color-bg-gray); color: var(--color-text); }
.section-dark { background: var(--color-bg-black); color: var(--color-text-inverse); }

.content-narrow {
  max-width: var(--width-narrow);
  margin: 0 auto;
  text-align: center;
}

.eyebrow {
  font-family: var(--font-display);
  font-size: 21px;
  font-weight: 600;
  letter-spacing: 0.011em;
  margin-bottom: 12px;
}
.section-gray .eyebrow, .section-light .eyebrow { color: var(--color-muted); }

.section-headline {
  font-family: var(--font-display);
  font-size: 56px;
  line-height: 1.0714;
  font-weight: 600;
  letter-spacing: -0.008em;
  margin-bottom: 22px;
  text-wrap: balance;
}

.body-copy {
  font-family: var(--font-display);
  font-size: 21px;
  line-height: 1.4286;
  font-weight: 400;
  letter-spacing: 0.011em;
  margin-bottom: 18px;
  text-wrap: pretty;
}
.section-light .body-copy, .section-gray .body-copy { color: var(--color-fine); }
.section-dark .body-copy { color: rgba(245, 245, 247, 0.82); }
.content-narrow .body-copy:last-child { margin-bottom: 0; }

/* ==========================================================================
   Hero
   ========================================================================== */
.hero {
  background: var(--color-bg-black);
  color: var(--color-text-inverse);
  padding: 170px 22px 150px;
  text-align: center;
  position: relative;
  overflow: hidden;
  isolation: isolate;
}

/* ambient glow */
.hero::before {
  content: "";
  position: absolute;
  z-index: -1;
  bottom: -340px;
  left: 50%;
  transform: translateX(-50%);
  width: min(1000px, 150vw);
  height: 540px;
  background: radial-gradient(ellipse at center,
    rgba(186, 98, 252, 0.30),
    rgba(0, 144, 247, 0.14) 45%,
    transparent 72%);
  filter: blur(50px);
  pointer-events: none;
}

.hero-content { position: relative; max-width: var(--width-narrow); margin: 0 auto; }

.hero-headline {
  font-family: var(--font-display);
  font-size: 80px;
  line-height: 1.05;
  font-weight: 600;
  letter-spacing: -0.017em;
  margin-bottom: 26px;
  text-wrap: balance;
}

.hero-subhead {
  font-family: var(--font-display);
  font-size: 26px;
  line-height: 1.23;
  font-weight: 400;
  letter-spacing: 0.007em;
  color: rgba(245, 245, 247, 0.82);
  max-width: 620px;
  margin: 0 auto 38px;
  text-wrap: pretty;
}

.hero-footnote {
  margin-top: 22px;
  font-size: 14px;
  line-height: 1.4286;
  letter-spacing: -0.016em;
  color: var(--color-muted);
}
.hero-footnote a { color: var(--color-link-dark); }

/* ==========================================================================
   Buttons & links
   ========================================================================== */
.cta-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 26px;
  flex-wrap: wrap;
}

.button {
  display: inline-block;
  font-family: var(--font-text);
  background: var(--color-blue);
  color: #fff;
  border-radius: var(--radius-pill);
  padding: 9px 17px;
  font-size: 14px;
  font-weight: 400;
  letter-spacing: -0.016em;
  transition: background 0.25s var(--ease-out), transform 0.25s var(--ease-out);
}
.button:hover { background: var(--color-blue-hover); text-decoration: none; }
.button:active { transform: scale(0.98); }

.button-elevated { padding: 13px 24px; font-size: 17px; letter-spacing: -0.022em; }

.link-more {
  display: inline-flex;
  align-items: center;
  font-size: 17px;
  letter-spacing: -0.022em;
  color: var(--color-link-dark);
  transition: opacity 0.25s var(--ease-out);
}
.section-light .link-more, .section-gray .link-more { color: var(--color-link); }
.link-more:hover { text-decoration: none; opacity: 0.75; }
.link-more:hover .chevron { transform: translateX(2px); }
.chevron {
  padding-inline-start: 0.2em;
  display: inline-block;
  transition: transform 0.25s var(--ease-out);
}

.inline-link { color: var(--color-link-dark); }

/* ==========================================================================
   Results statement
   ========================================================================== */
.statement { padding: 115px 22px; }
.statement + .section-light { padding-top: 24px; }

.statement-text {
  font-family: var(--font-display);
  font-size: 48px;
  line-height: 1.0834;
  font-weight: 600;
  letter-spacing: -0.003em;
  text-wrap: balance;
}

/* ==========================================================================
   About
   ========================================================================== */
.about-card {
  max-width: var(--width-content);
  margin: 60px auto 0;
  background: var(--color-bg-gray);
  border: 1px solid var(--hairline-light);
  border-radius: var(--radius-card);
  display: flex;
  align-items: center;
  gap: 52px;
  padding: 52px;
}

.about-photo {
  width: 264px;
  height: 264px;
  object-fit: cover;
  object-position: center 28%;
  border-radius: 20px;
  flex-shrink: 0;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.12);
}

.about-card-text h3 {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 600;
  letter-spacing: 0.007em;
  margin-bottom: 10px;
}

.about-card-text p {
  font-size: 17px;
  line-height: 1.5;
  color: var(--color-fine);
  max-width: 480px;
}

/* ==========================================================================
   Tile grid (systems)
   ========================================================================== */
.tile-grid {
  max-width: var(--width-content);
  margin: 60px auto 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.tile {
  background: var(--color-bg-white);
  border: 1px solid var(--hairline-light);
  border-radius: var(--radius-card);
  padding: 54px 46px;
  text-align: center;
  transition: transform 0.5s var(--ease-out), box-shadow 0.5s var(--ease-out);
}
.tile:hover {
  transform: translateY(-5px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.04), 0 18px 44px rgba(0, 0, 0, 0.09);
}

.tile-eyebrow {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 600;
  letter-spacing: -0.018em;
  color: var(--color-muted);
  margin-bottom: 10px;
}

.tile-headline {
  font-family: var(--font-display);
  font-size: 30px;
  line-height: 1.14;
  font-weight: 600;
  letter-spacing: 0.002em;
  margin-bottom: 14px;
  text-wrap: balance;
}

.tile-subhead {
  font-size: 17px;
  line-height: 1.4706;
  letter-spacing: -0.022em;
  color: var(--color-fine);
  max-width: 400px;
  margin: 0 auto;
  text-wrap: pretty;
}

.grid-footnote {
  text-align: center;
  margin: 38px auto 0;
  max-width: var(--width-narrow);
  font-size: 17px;
  color: var(--color-muted);
}

/* ==========================================================================
   Steps
   ========================================================================== */
.steps {
  max-width: var(--width-content);
  margin: 68px auto 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 44px;
  text-align: center;
}

.step-number {
  font-family: var(--font-display);
  font-size: 76px;
  font-weight: 600;
  letter-spacing: -0.015em;
  line-height: 1;
  margin-bottom: 16px;
}

.step h3 {
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 600;
  letter-spacing: 0.009em;
  margin-bottom: 10px;
}

.step p {
  font-size: 17px;
  line-height: 1.5;
  color: var(--color-fine);
  text-wrap: pretty;
}

/* ==========================================================================
   Promises (straight talk)
   ========================================================================== */
.promise-grid {
  max-width: var(--width-content);
  margin: 60px auto 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.promise {
  background: var(--color-bg-white);
  border: 1px solid var(--hairline-light);
  border-radius: var(--radius-card);
  padding: 42px 40px;
  transition: transform 0.5s var(--ease-out), box-shadow 0.5s var(--ease-out);
}
.promise:hover {
  transform: translateY(-4px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.04), 0 16px 38px rgba(0, 0, 0, 0.08);
}

.promise h3 {
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 600;
  letter-spacing: 0.009em;
  margin-bottom: 8px;
}

.promise p { font-size: 17px; line-height: 1.5; color: var(--color-fine); }

/* ==========================================================================
   Security
   ========================================================================== */
.security-grid {
  max-width: var(--width-content);
  margin: 60px auto 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.security-item {
  background: var(--color-surface-dark);
  border: 1px solid var(--hairline-dark);
  border-radius: var(--radius-card);
  padding: 42px 40px;
  transition: background 0.4s var(--ease-out), border-color 0.4s var(--ease-out);
}
.security-item:hover {
  background: #1c1c20;
  border-color: rgba(255, 255, 255, 0.16);
}

.security-item h3 {
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 600;
  letter-spacing: 0.009em;
  margin-bottom: 8px;
  color: var(--color-text-inverse);
}

.security-item p { font-size: 17px; line-height: 1.5; color: rgba(245, 245, 247, 0.62); }

/* ==========================================================================
   Stats
   ========================================================================== */
.stats-row {
  max-width: var(--width-content);
  margin: 68px auto 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 44px;
  text-align: center;
}

.stat-number {
  font-family: var(--font-display);
  font-size: 76px;
  font-weight: 600;
  letter-spacing: -0.015em;
  line-height: 1;
  margin-bottom: 14px;
}

.stat-unit { font-size: 38px; letter-spacing: -0.01em; }

.stat p {
  font-size: 17px;
  line-height: 1.5;
  color: var(--color-fine);
  max-width: 310px;
  margin: 0 auto;
  text-wrap: pretty;
}

.sources {
  text-align: center;
  margin-top: 52px;
  font-size: 12px;
  line-height: 1.4;
  letter-spacing: -0.01em;
  color: var(--color-muted);
}

/* ==========================================================================
   FAQ
   ========================================================================== */
.faq-list {
  max-width: var(--width-narrow);
  margin: 52px auto 0;
}

.faq-item {
  background: var(--color-bg-white);
  border: 1px solid var(--hairline-light);
  border-radius: 18px;
  margin-bottom: 12px;
  overflow: hidden;
  transition: box-shadow 0.4s var(--ease-out);
}
.faq-item[open] { box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06); }

.faq-item summary {
  font-family: var(--font-display);
  font-size: 21px;
  line-height: 1.24;
  font-weight: 600;
  letter-spacing: 0.011em;
  padding: 26px 30px;
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  text-align: left;
  transition: color 0.25s var(--ease-out);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary:hover { color: var(--color-blue); }

.faq-item summary::after {
  content: "";
  flex-shrink: 0;
  width: 15px;
  height: 15px;
  background: var(--color-blue);
  /* plus sign built from a mask so it can rotate cleanly */
  -webkit-mask: linear-gradient(#000 0 0) center/100% 2px no-repeat,
                linear-gradient(#000 0 0) center/2px 100% no-repeat;
  mask: linear-gradient(#000 0 0) center/100% 2px no-repeat,
        linear-gradient(#000 0 0) center/2px 100% no-repeat;
  transition: transform 0.35s var(--ease-out);
}
.faq-item[open] summary::after { transform: rotate(135deg); }

.faq-item p {
  padding: 0 30px 26px;
  font-size: 17px;
  line-height: 1.5;
  color: var(--color-fine);
  text-align: left;
  text-wrap: pretty;
}

/* ==========================================================================
   Final CTA / contact form
   ========================================================================== */
.final-cta { padding: 150px 22px; text-align: center; }

.contact-form {
  max-width: 560px;
  margin: 44px auto 0;
  text-align: left;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.form-field { margin-bottom: 14px; }

.form-field label {
  display: block;
  font-size: 14px;
  letter-spacing: -0.016em;
  color: rgba(245, 245, 247, 0.72);
  margin-bottom: 7px;
}

.form-field .optional { color: var(--color-muted); }

.form-field input,
.form-field textarea {
  width: 100%;
  font-family: var(--font-text);
  font-size: 17px;
  line-height: 1.4;
  letter-spacing: -0.022em;
  color: var(--color-text-inverse);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: var(--radius-input);
  padding: 14px 16px;
  outline: none;
  transition: border-color 0.25s var(--ease-out), background 0.25s var(--ease-out), box-shadow 0.25s var(--ease-out);
  resize: vertical;
  min-height: 50px;
}
.form-field textarea { min-height: 120px; }

.form-field input::placeholder,
.form-field textarea::placeholder { color: rgba(245, 245, 247, 0.35); }

.form-field input:hover,
.form-field textarea:hover { border-color: rgba(255, 255, 255, 0.28); }

.form-field input:focus,
.form-field textarea:focus {
  border-color: var(--color-blue);
  background: rgba(255, 255, 255, 0.08);
  box-shadow: 0 0 0 4px rgba(0, 113, 227, 0.25);
  outline: none;
}

.hp-field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.form-submit {
  display: block;
  width: 100%;
  border: none;
  cursor: pointer;
  margin-top: 6px;
  padding: 15px 24px;
}
.form-submit:disabled { opacity: 0.55; cursor: default; transform: none; }

.form-status {
  margin-top: 14px;
  font-size: 14px;
  line-height: 1.4286;
  letter-spacing: -0.016em;
  text-align: center;
  color: rgba(245, 245, 247, 0.7);
  min-height: 20px;
}
.form-status.is-error { color: #ff6961; }
.form-status.is-success { color: #41d97a; }

/* ==========================================================================
   Footer
   ========================================================================== */
.footer { background: var(--color-bg-gray); padding: 38px 22px; }

.footer-inner { max-width: var(--width-content); margin: 0 auto; }

.footer-fine {
  font-size: 12px;
  line-height: 1.4;
  letter-spacing: -0.01em;
  color: var(--color-fine);
  padding-bottom: 18px;
  border-bottom: 1px solid #d2d2d7;
  margin-bottom: 16px;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 12px;
  color: var(--color-fine);
}
.footer-bottom a { color: var(--color-fine); }

/* ==========================================================================
   Reveal animation
   ========================================================================== */
/* Hidden only when JS is confirmed available, so a script failure or a
   crawler without JS still sees fully rendered content. */
.js .reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.9s var(--ease-out), transform 0.8s var(--ease-out);
  will-change: opacity, transform;
}
.js .reveal.is-visible { opacity: 1; transform: none; will-change: auto; }

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

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1068px) {
  :root { --section-pad: 110px; }
  .section-headline { font-size: 48px; letter-spacing: -0.004em; }
  .hero-headline { font-size: 68px; letter-spacing: -0.012em; }
  .statement-text { font-size: 42px; }
  .tile { padding: 46px 32px; }
  .about-card { gap: 40px; padding: 44px; }
  .about-photo { width: 224px; height: 224px; }
}

@media (max-width: 834px) {
  :root { --section-pad: 92px; }
  .hero { padding: 120px 22px 104px; }
  .hero-headline { font-size: 54px; letter-spacing: -0.009em; }
  .hero-subhead { font-size: 22px; margin-bottom: 34px; }
  .section-headline { font-size: 40px; line-height: 1.1; letter-spacing: 0; }
  .statement { padding: 86px 22px; }
  .statement-text { font-size: 36px; letter-spacing: 0; }
  .body-copy { font-size: 19px; }
  .eyebrow { font-size: 19px; }
  .tile-grid, .promise-grid, .security-grid { grid-template-columns: 1fr; }
  .steps, .stats-row { grid-template-columns: 1fr; gap: 52px; }
  .about-card { flex-direction: column; text-align: center; padding: 40px 28px; gap: 28px; }
  .about-card-text p { max-width: none; }
  .nav-links { display: none; }

  /* comfortable tap targets on touch devices */
  .nav-cta {
    padding: 0 18px;
    font-size: 14px;
    display: inline-flex;
    align-items: center;
    min-height: 44px;
  }
  .nav-brand { display: inline-flex; align-items: center; min-height: 44px; }
  .link-more { min-height: 44px; }
  .hero-footnote a, .footer-bottom a { display: inline-block; padding: 6px 0; }
}

@media (max-width: 480px) {
  :root { --section-pad: 76px; }
  .section, .final-cta { padding-left: 20px; padding-right: 20px; }
  .hero { padding: 100px 20px 88px; }
  .hero-headline { font-size: 42px; letter-spacing: -0.006em; }
  .hero-subhead { font-size: 19px; letter-spacing: 0; }
  .section-headline { font-size: 32px; line-height: 1.125; letter-spacing: 0.004em; }
  .statement { padding: 68px 20px; }
  .statement-text { font-size: 29px; line-height: 1.14; }
  .body-copy { font-size: 18px; }
  .eyebrow { font-size: 18px; margin-bottom: 10px; }
  .tile { padding: 40px 26px; border-radius: 22px; }
  .tile-headline { font-size: 26px; }
  .promise, .security-item { padding: 34px 26px; border-radius: 22px; }
  .promise h3, .security-item h3, .step h3 { font-size: 22px; }
  .step-number, .stat-number { font-size: 62px; }
  .stat-unit { font-size: 32px; }
  .about-card { padding: 32px 24px; border-radius: 22px; }
  .about-photo { width: 100%; max-width: 260px; height: auto; aspect-ratio: 1; }
  .about-card-text h3 { font-size: 24px; }
  .faq-item { border-radius: 16px; }
  .faq-item summary { font-size: 18px; padding: 20px 22px; gap: 14px; }
  .faq-item p { padding: 0 22px 20px; font-size: 16px; }
  .form-row { grid-template-columns: 1fr; gap: 0; }
  .cta-row { gap: 18px; }
  .button-elevated { padding: 14px 26px; }
  .footer-bottom { flex-direction: column; gap: 4px; }
}
