:root {
  color-scheme: light;
  --page: #f6f6f8;
  --surface: rgba(255, 255, 255, 0.82);
  --surface-solid: #ffffff;
  --ink: #17171a;
  --muted: #65656d;
  --line: rgba(23, 23, 26, 0.11);
  --violet: #57307f;
  --violet-deep: #39204f;
  --lilac: #ece2f7;
  --navy: #071d3b;
  --navy-soft: #0d2c53;
  --teal: #34b8bc;
  --orange: #ff7a1a;
  --radius-lg: 28px;
  --radius-md: 20px;
  --shadow: 0 24px 70px rgba(20, 20, 35, 0.08);
  --content: 1120px;
}

* {
  box-sizing: border-box;
}

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

body {
  min-width: 320px;
  margin: 0;
  background: var(--page);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  font-size: 17px;
  line-height: 1.6;
  text-rendering: optimizeLegibility;
}

body.knit-page {
  --page: #f5f2f3;
  --ink: #34263d;
  --muted: #6b606f;
  --line: rgba(57, 32, 79, 0.12);
  --accent: var(--violet);
  background-image: radial-gradient(circle at 15% 0%, #eee3f6 0, transparent 30rem);
}

body.iron-page {
  --page: #06172f;
  --surface: rgba(13, 44, 83, 0.72);
  --surface-solid: #0d2c53;
  --ink: #ffffff;
  --muted: #b9c9dc;
  --line: rgba(255, 255, 255, 0.14);
  --accent: var(--teal);
  color-scheme: dark;
  background-image:
    radial-gradient(circle at 85% 5%, rgba(52, 184, 188, 0.18), transparent 28rem),
    linear-gradient(180deg, #06172f 0%, #071d3b 100%);
}

a {
  color: inherit;
}

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

.site-header,
.site-footer,
main {
  width: min(calc(100% - 40px), var(--content));
  margin-inline: auto;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 76px;
  gap: 24px;
  border-bottom: 1px solid var(--line);
}

.brand {
  color: var(--ink);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  text-decoration: none;
}

.site-nav ul,
.footer-nav,
.feature-grid {
  padding: 0;
  margin: 0;
  list-style: none;
}

.site-nav ul,
.footer-nav {
  display: flex;
  align-items: center;
  gap: 8px 22px;
  flex-wrap: wrap;
}

.site-nav a,
.footer-nav a,
.text-link {
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
}

.site-nav a:hover,
.footer-nav a:hover,
.text-link:hover {
  color: var(--ink);
}

.site-nav a[aria-current="page"] {
  color: var(--ink);
}

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

.knit-page :focus-visible {
  outline-color: #7c4cac;
}

.home-hero {
  padding: clamp(76px, 12vw, 144px) 0 clamp(56px, 8vw, 96px);
  max-width: 820px;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 750;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

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

h1,
h2,
h3 {
  line-height: 1.08;
  letter-spacing: -0.035em;
}

h1 {
  margin-bottom: 20px;
  font-size: clamp(3.2rem, 9vw, 6.5rem);
}

h2 {
  margin-bottom: 16px;
  font-size: clamp(2rem, 4vw, 3.4rem);
}

h3 {
  margin-bottom: 10px;
  font-size: 1.25rem;
}

.lead {
  max-width: 760px;
  margin-bottom: 14px;
  font-size: clamp(1.35rem, 3vw, 2.1rem);
  line-height: 1.3;
  letter-spacing: -0.025em;
}

.supporting,
.app-card p,
.feature-card p,
.legal-content p,
.legal-content li {
  color: var(--muted);
}

.supporting {
  max-width: 640px;
  margin: 0;
  font-size: 1.05rem;
}

.apps-section {
  padding-bottom: clamp(72px, 10vw, 120px);
}

.section-heading {
  margin-bottom: 28px;
}

.app-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}

.app-card {
  position: relative;
  display: flex;
  min-height: 570px;
  flex-direction: column;
  align-items: flex-start;
  padding: clamp(28px, 5vw, 48px);
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}

.app-card::after {
  position: absolute;
  right: -90px;
  bottom: -110px;
  width: 280px;
  height: 280px;
  border: 60px solid currentColor;
  border-radius: 50%;
  content: "";
  opacity: 0.05;
  pointer-events: none;
}

.app-card.knit {
  background: linear-gradient(145deg, #fbf9fb, #eee6f4);
  color: var(--violet-deep);
}

.app-card.iron {
  border-color: rgba(255, 255, 255, 0.12);
  background: linear-gradient(145deg, var(--navy-soft), var(--navy));
  color: #ffffff;
}

.app-card p {
  max-width: 470px;
  margin-bottom: 32px;
}

.app-card.iron p {
  color: #c6d4e5;
}

.app-logo {
  width: clamp(112px, 20vw, 164px);
  aspect-ratio: 1;
  margin-bottom: 34px;
  border-radius: 25%;
  box-shadow: 0 16px 36px rgba(10, 13, 30, 0.16);
  object-fit: contain;
}

.app-card h3 {
  font-size: clamp(2rem, 4vw, 3rem);
}

.button-row {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: auto;
}

.button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  padding: 11px 20px;
  border: 1px solid transparent;
  border-radius: 999px;
  background: var(--ink);
  color: var(--page);
  font-size: 0.95rem;
  font-weight: 700;
  line-height: 1.2;
  text-decoration: none;
  transition: transform 160ms ease, opacity 160ms ease;
}

.button:hover {
  transform: translateY(-2px);
}

.knit .button,
.knit-page .button {
  background: var(--violet);
  color: #ffffff;
}

.iron .button,
.iron-page .button {
  background: var(--teal);
  color: #041b35;
}

.button.secondary {
  border-color: var(--line);
  background: transparent;
  color: var(--ink);
}

.iron .button.secondary,
.iron-page .button.secondary {
  border-color: rgba(255, 255, 255, 0.22);
  color: #ffffff;
}

.product-hero {
  display: grid;
  min-height: min(720px, calc(100vh - 76px));
  grid-template-columns: minmax(0, 1.15fr) minmax(280px, 0.85fr);
  align-items: center;
  gap: clamp(48px, 8vw, 100px);
  padding: clamp(64px, 10vw, 120px) 0;
}

.product-hero h1 {
  font-size: clamp(3.1rem, 7vw, 6rem);
}

.product-mark {
  justify-self: end;
  width: min(100%, 390px);
  border-radius: 25%;
  box-shadow: 0 34px 80px rgba(11, 12, 30, 0.2);
  object-fit: contain;
}

.iron-page .product-mark {
  box-shadow: 0 34px 80px rgba(0, 0, 0, 0.32);
}

.features {
  padding: 20px 0 clamp(80px, 12vw, 140px);
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.feature-card,
.info-card {
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--surface);
  box-shadow: 0 12px 40px rgba(20, 20, 35, 0.04);
}

.feature-card {
  min-height: 180px;
  padding: 26px;
}

.feature-card p {
  margin-bottom: 0;
  font-size: 0.95rem;
}

.feature-number {
  display: block;
  margin-bottom: 32px;
  color: var(--accent);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.12em;
}

.iron-page .feature-card:nth-child(3n) {
  border-top-color: var(--orange);
}

.content-wrap {
  max-width: 780px;
  padding: clamp(64px, 10vw, 112px) 0 clamp(80px, 12vw, 140px);
}

.content-wrap h1 {
  font-size: clamp(2.6rem, 7vw, 4.6rem);
}

.info-card {
  margin: 36px 0;
  padding: clamp(24px, 5vw, 36px);
}

.info-card p:last-child,
.legal-content section p:last-child {
  margin-bottom: 0;
}

.contact-link {
  display: inline-block;
  color: var(--accent, var(--violet));
  font-size: clamp(1.05rem, 3vw, 1.3rem);
  font-weight: 750;
  overflow-wrap: anywhere;
}

.iron-page .contact-link {
  color: #62d5d8;
}

.legal-content {
  max-width: 720px;
}

.legal-content section {
  padding: 30px 0;
  border-top: 1px solid var(--line);
}

.legal-content h2 {
  font-size: clamp(1.35rem, 4vw, 1.8rem);
  letter-spacing: -0.02em;
}

.legal-content ul {
  padding-left: 1.25em;
}

.legal-content li + li {
  margin-top: 6px;
}

.date {
  margin-bottom: 44px;
  color: var(--muted);
  font-size: 0.92rem;
}

.warning {
  padding: 18px 20px;
  border: 1px solid #9d6d1c;
  border-radius: 14px;
  background: #fff3d7;
  color: #5a3900;
  font-weight: 650;
}

address {
  font-style: normal;
}

.site-footer {
  display: flex;
  min-height: 110px;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.88rem;
}

.site-footer p {
  margin: 0;
}

@media (max-width: 820px) {
  .app-grid,
  .product-hero {
    grid-template-columns: 1fr;
  }

  .app-card {
    min-height: 520px;
  }

  .product-hero {
    min-height: auto;
  }

  .product-mark {
    justify-self: start;
    width: min(68vw, 320px);
    grid-row: 1;
  }

  .feature-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 580px) {
  .site-header,
  .site-footer,
  main {
    width: min(calc(100% - 28px), var(--content));
  }

  .site-header {
    min-height: 68px;
  }

  .site-nav ul {
    gap: 8px 14px;
  }

  .site-nav .optional-link {
    display: none;
  }

  .home-hero {
    padding-top: 64px;
  }

  .app-card {
    min-height: 500px;
    padding: 28px;
    border-radius: 24px;
  }

  .feature-grid {
    grid-template-columns: 1fr;
  }

  .feature-card {
    min-height: 0;
  }

  .feature-number {
    margin-bottom: 20px;
  }

  .button-row,
  .button {
    width: 100%;
  }

  .site-footer {
    align-items: flex-start;
    flex-direction: column;
    justify-content: center;
    padding: 28px 0;
  }
}

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

  .button {
    transition: none;
  }
}
