/* ==========================================================================
   MattWindsor.com — Apple.com-derived design system
   Values sourced from apple.com production CSS (2026)
   ========================================================================== */

: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-blue: #0071e3;
  --color-blue-hover: #0076df;
  --color-blue-active: #006edb;
  --color-link: #0066cc;

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

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

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

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

html { scroll-behavior: smooth; scroll-padding-top: 60px; }

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;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; display: block; }
a { color: var(--color-link); text-decoration: none; }
a:hover { text-decoration: underline; }
sup { font-size: 0.6em; }

/* ===== Gradient text ===== */
.gradient-text {
  background-image: var(--gradient-ai);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

/* ==========================================================================
   Nav
   ========================================================================== */
.globalnav {
  position: sticky;
  top: 0;
  z-index: 9999;
  width: 100%;
  height: 48px;
  background: rgba(22, 22, 23, 0.8);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  backdrop-filter: saturate(180%) blur(20px);
}

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

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

.nav-links { display: flex; gap: 32px; }
.nav-links a {
  font-size: 12px;
  letter-spacing: -0.01em;
  color: rgba(255, 255, 255, 0.8);
  transition: color 0.2s ease-out;
}
.nav-links a:hover { color: #fff; text-decoration: none; }

.nav-cta {
  font-size: 12px;
  color: #fff;
  background: var(--color-blue);
  border-radius: var(--radius-pill);
  padding: 5px 12px;
  transition: background 0.2s ease-out;
}
.nav-cta:hover { background: var(--color-blue-hover); text-decoration: none; }

/* ==========================================================================
   Sections
   ========================================================================== */
.section { padding: 120px 22px; overflow: hidden; }
.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: 14px;
}
.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.005em;
  margin-bottom: 24px;
}

.body-copy {
  font-family: var(--font-display);
  font-size: 21px;
  line-height: 1.381;
  font-weight: 400;
  letter-spacing: 0.011em;
  margin-bottom: 20px;
}
.section-light .body-copy, .section-gray .body-copy { color: var(--color-text); }
.section-dark .body-copy { color: rgba(245, 245, 247, 0.85); }

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

.hero::before {
  content: "";
  position: absolute;
  bottom: -320px;
  left: 50%;
  transform: translateX(-50%);
  width: 900px;
  height: 500px;
  background: radial-gradient(ellipse at center, rgba(186, 98, 252, 0.28), rgba(0, 144, 247, 0.12) 45%, transparent 70%);
  filter: blur(40px);
  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.015em;
  margin-bottom: 28px;
}

.hero-subhead {
  font-family: var(--font-display);
  font-size: 28px;
  line-height: 1.14;
  font-weight: 400;
  letter-spacing: 0.007em;
  color: rgba(245, 245, 247, 0.85);
  max-width: 640px;
  margin: 0 auto 40px;
}

.hero-footnote {
  margin-top: 24px;
  font-size: 14px;
  letter-spacing: -0.016em;
  color: var(--color-muted);
}

/* ==========================================================================
   Buttons & links
   ========================================================================== */
.cta-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 28px;
  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 16px;
  font-size: 14px;
  font-weight: 400;
  letter-spacing: -0.016em;
  transition: background 0.2s ease-out;
}
.button:hover { background: var(--color-blue-hover); text-decoration: none; }
.button:active { background: var(--color-blue-active); }

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

.link-more {
  font-size: 17px;
  letter-spacing: -0.022em;
  color: #2997ff;
}
.section-light .link-more, .section-gray .link-more { color: var(--color-link); }
.chevron { padding-inline-start: 0.15em; }

.inline-link { color: #2997ff; }

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

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

@media (max-width: 834px) {
  .statement { padding: 80px 22px; }
  .statement-text { font-size: 36px; }
}

@media (max-width: 480px) {
  .statement-text { font-size: 30px; }
}

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

.about-photo {
  width: 280px;
  height: 280px;
  object-fit: cover;
  border-radius: 22px;
  flex-shrink: 0;
}

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

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

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

.tile {
  background: var(--color-bg-white);
  border-radius: var(--radius-card);
  padding: 56px 48px;
  text-align: center;
  transition: transform 0.344s ease, box-shadow 0.344s ease;
}
.tile:hover { transform: translateY(-4px); box-shadow: 0 20px 40px rgba(0, 0, 0, 0.06); }

.tile-eyebrow {
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.022em;
  color: var(--color-muted);
  margin-bottom: 10px;
  text-transform: none;
}

.tile-headline {
  font-family: var(--font-display);
  font-size: 32px;
  line-height: 1.125;
  font-weight: 600;
  letter-spacing: 0.004em;
  margin-bottom: 16px;
}

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

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

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

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

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

.step p { font-size: 17px; color: var(--color-fine); }

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

.promise {
  background: var(--color-bg-white);
  border-radius: var(--radius-card);
  padding: 44px 40px;
}

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

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

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

.security-item {
  background: #161617;
  border-radius: var(--radius-card);
  padding: 44px 40px;
}

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

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

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

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

.stat-unit { font-size: 40px; }

.stat p { font-size: 17px; color: var(--color-fine); max-width: 300px; margin: 0 auto; }

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

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

.faq-item {
  background: var(--color-bg-white);
  border-radius: 18px;
  margin-bottom: 12px;
  overflow: hidden;
}

.faq-item summary {
  font-family: var(--font-display);
  font-size: 21px;
  font-weight: 600;
  letter-spacing: 0.011em;
  padding: 28px 32px;
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}
.faq-item summary::-webkit-details-marker { display: none; }

.faq-item summary::after {
  content: "+";
  font-weight: 400;
  font-size: 28px;
  color: var(--color-blue);
  flex-shrink: 0;
  transition: transform 0.3s ease;
}
.faq-item[open] summary::after { transform: rotate(45deg); }

.faq-item p {
  padding: 0 32px 28px;
  font-size: 17px;
  color: var(--color-fine);
}

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

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

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

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

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

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

.form-field input,
.form-field textarea {
  width: 100%;
  font-family: var(--font-text);
  font-size: 17px;
  letter-spacing: -0.022em;
  color: var(--color-text-inverse);
  background: #161617;
  border: 1px solid #424245;
  border-radius: 12px;
  padding: 13px 16px;
  outline: none;
  transition: border-color 0.2s ease-out;
  resize: vertical;
}

.form-field input:focus,
.form-field textarea:focus {
  border-color: var(--color-blue);
  box-shadow: 0 0 0 3px rgba(0, 113, 227, 0.35);
}

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

.form-submit {
  display: block;
  width: 100%;
  border: none;
  cursor: pointer;
  margin-top: 8px;
}
.form-submit:disabled { opacity: 0.6; cursor: default; }

.form-status {
  margin-top: 14px;
  font-size: 14px;
  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: #30d158; }

@media (max-width: 480px) {
  .form-row { grid-template-columns: 1fr; gap: 0; }
}

.footer { background: var(--color-bg-gray); padding: 40px 22px; }

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

.footer-fine {
  font-size: 12px;
  line-height: 1.333;
  letter-spacing: -0.01em;
  color: var(--color-fine);
  padding-bottom: 20px;
  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 (Apple StaggeredFadeIn)
   ========================================================================== */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.9s ease, transform 0.7s ease;
}
.reveal.is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1068px) {
  .section-headline { font-size: 48px; letter-spacing: -0.002em; }
  .hero-headline { font-size: 64px; letter-spacing: -0.009em; }
  .tile { padding: 48px 32px; }
}

@media (max-width: 834px) {
  .section { padding: 90px 22px; }
  .hero { padding: 120px 22px 100px; }
  .hero-headline { font-size: 56px; }
  .section-headline { font-size: 40px; line-height: 1.1; letter-spacing: 0; }
  .hero-subhead { font-size: 24px; }
  .body-copy { font-size: 19px; }
  .tile-grid, .promise-grid, .security-grid { grid-template-columns: 1fr; }
  .steps, .stats-row { grid-template-columns: 1fr; gap: 56px; }
  .about-card { flex-direction: column; text-align: center; padding: 40px 28px; }
  .about-card-text p { max-width: none; }
  .nav-links { display: none; }
}

@media (max-width: 480px) {
  .hero-headline { font-size: 44px; }
  .section-headline { font-size: 32px; line-height: 1.125; letter-spacing: 0.004em; }
  .hero-subhead { font-size: 21px; }
  .tile-headline { font-size: 28px; }
  .step-number, .stat-number { font-size: 64px; }
  .about-photo { width: 100%; height: auto; aspect-ratio: 1; }
  .faq-item summary { font-size: 19px; padding: 22px 24px; }
  .faq-item p { padding: 0 24px 22px; }
}
