:root {
  --navy: #0a2e57;
  --navy-deep: #061f3b;
  --ink: #121f2d;
  --muted: #65707d;
  --line: rgba(10, 46, 87, 0.16);
  --surface: #f5f6f9;
  --white: #ffffff;
  --gray: #606266;
  --salmon: #ff8c82;
  --burgundy: #831100;
  --red: #e22400;
  --orange: #ff6a00;
  --sans: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Helvetica Neue", Arial, sans-serif;
  --serif: "Iowan Old Style", Baskerville, "Times New Roman", serif;
  --container: 1240px;
  --radius-sm: 12px;
  --radius-md: 22px;
  --shadow: 0 24px 70px rgba(6, 31, 59, 0.14);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--white);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 0.22em; }
button, a { -webkit-tap-highlight-color: transparent; }
button { font: inherit; }

.skip-link {
  position: fixed;
  z-index: 100;
  top: 10px;
  left: 10px;
  padding: 10px 14px;
  color: white;
  background: var(--navy);
  border-radius: 8px;
  transform: translateY(-150%);
}
.skip-link:focus { transform: translateY(0); }

.container {
  width: min(calc(100% - 48px), var(--container));
  margin-inline: auto;
}

.site-header {
  position: sticky;
  z-index: 20;
  top: 0;
  border-bottom: 1px solid transparent;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: saturate(160%) blur(18px);
  -webkit-backdrop-filter: saturate(160%) blur(18px);
  transition: border-color 180ms ease, box-shadow 180ms ease;
}
.site-header.is-scrolled {
  border-color: var(--line);
  box-shadow: 0 8px 28px rgba(6, 31, 59, 0.05);
}
.nav-shell {
  min-height: 84px;
  display: flex;
  align-items: center;
  gap: 36px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--navy);
  font-size: 24px;
  font-weight: 750;
  letter-spacing: -0.04em;
  text-decoration: none;
  white-space: nowrap;
}
.brand img {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  object-fit: cover;
}
.main-nav {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 30px;
}
.main-nav a {
  font-size: 15px;
  font-weight: 560;
  text-decoration: none;
}
.main-nav a:hover { color: var(--navy); }
.language-switch {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 11px;
  border: 1px solid var(--line);
  border-radius: 11px;
  font-size: 13px;
  font-weight: 700;
}
.language-switch a { color: var(--muted); text-decoration: none; }
.language-switch a[aria-current="page"] { color: var(--red); }
.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  margin-left: auto;
  border: 1px solid var(--line);
  border-radius: 12px;
  color: var(--navy);
  background: white;
}

.hero {
  min-height: calc(100vh - 84px);
  padding: clamp(64px, 8vw, 112px) 0 0;
  overflow: hidden;
}
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.84fr) minmax(540px, 1.3fr);
  align-items: center;
  gap: 68px;
}
.hero-copy { padding-bottom: 72px; }
h1, h2, h3, p { margin-top: 0; }
h1 {
  max-width: 660px;
  margin-bottom: 26px;
  color: var(--navy);
  font-size: clamp(54px, 6vw, 88px);
  line-height: 0.99;
  letter-spacing: -0.065em;
}
.hero-copy > p {
  max-width: 620px;
  margin-bottom: 34px;
  color: #344252;
  font-size: clamp(19px, 1.65vw, 24px);
  line-height: 1.55;
}
.button-row { display: flex; flex-wrap: wrap; gap: 14px; }
.button {
  display: inline-flex;
  min-height: 52px;
  align-items: center;
  justify-content: center;
  padding: 0 22px;
  border: 1px solid var(--navy);
  border-radius: var(--radius-sm);
  font-size: 15px;
  font-weight: 700;
  text-decoration: none;
  transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease;
}
.button:hover { transform: translateY(-2px); }
.button-primary {
  color: white;
  background: var(--navy);
  box-shadow: 0 12px 28px rgba(10, 46, 87, 0.18);
}
.button-secondary { color: var(--navy); background: white; }
.button-light { color: var(--navy); background: white; border-color: white; }

.device-stage {
  position: relative;
  min-height: 650px;
  align-self: end;
}
.device {
  position: absolute;
  overflow: hidden;
  border: 8px solid #17191d;
  background: white;
  box-shadow: var(--shadow);
}
.device img { width: 100%; height: 100%; object-fit: cover; }
.device-ipad {
  width: min(720px, 100%);
  aspect-ratio: 4 / 5.333;
  right: -7%;
  bottom: 28px;
  border-radius: 28px;
}
.device-iphone {
  z-index: 2;
  width: 245px;
  aspect-ratio: 1320 / 2868;
  left: 1%;
  bottom: 0;
  border-width: 7px;
  border-radius: 36px;
}
.chromatic-ribbon {
  height: clamp(120px, 14vw, 220px);
  margin-top: -28px;
  background: url("/assets/media/textile-ribbon.jpg") center bottom / cover no-repeat;
  transform: translateY(1px);
}
.chromatic-ribbon span { display: none; }

.section { padding: clamp(88px, 10vw, 150px) 0; }
.section-heading {
  max-width: 760px;
  margin-bottom: 70px;
}
.section-heading h2,
.editorial-heading {
  margin-bottom: 24px;
  color: var(--navy);
  font-family: var(--serif);
  font-size: clamp(48px, 5.2vw, 78px);
  font-weight: 500;
  line-height: 1.05;
  letter-spacing: -0.045em;
}
.section-heading p {
  max-width: 650px;
  color: var(--muted);
  font-size: 20px;
}
.editorial-heading em { font-weight: 400; }

.showcase {
  display: grid;
  grid-template-columns: minmax(250px, 0.55fr) minmax(520px, 1.2fr);
  gap: 90px;
  align-items: center;
  margin-bottom: 100px;
}
.showcase-copy p { color: var(--muted); font-size: 20px; }
.showcase-media {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 26px;
  box-shadow: var(--shadow);
}

.feature-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: 78px;
  row-gap: 62px;
}
.feature-item {
  position: relative;
  display: grid;
  grid-template-columns: 24px 110px 1fr;
  gap: 22px;
  padding-top: 28px;
  border-top: 1px solid var(--line);
}
.feature-rail { min-height: 156px; background: var(--rail, var(--navy)); }
.feature-number {
  color: var(--navy);
  font-family: var(--serif);
  font-size: 72px;
  line-height: 0.9;
}
.feature-text h3 { margin-bottom: 10px; color: var(--navy); font-size: 22px; }
.feature-text p { margin: 0; color: var(--muted); }

.workflow {
  padding-top: 0;
}
.workflow h2 {
  margin-bottom: 48px;
  color: var(--navy);
  font-family: var(--serif);
  font-size: clamp(42px, 4vw, 64px);
  font-weight: 500;
  letter-spacing: -0.035em;
}
.workflow-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--line);
}
.workflow-step { min-height: 250px; padding: 30px 28px 20px 0; }
.workflow-step + .workflow-step { padding-left: 28px; border-left: 1px solid var(--line); }
.workflow-step b {
  display: block;
  margin-bottom: 28px;
  color: var(--red);
  font-family: var(--serif);
  font-size: 42px;
  font-weight: 400;
}
.workflow-step h3 { margin-bottom: 10px; color: var(--navy); font-size: 21px; }
.workflow-step p { color: var(--muted); font-size: 15px; }

.privacy-band {
  color: white;
  background: var(--navy-deep);
}
.privacy-band-inner {
  min-height: 390px;
  display: grid;
  grid-template-columns: 1fr 0.9fr;
  align-items: center;
  gap: 72px;
}
.privacy-band h2 {
  max-width: 590px;
  margin-bottom: 24px;
  font-family: var(--serif);
  font-size: clamp(52px, 5vw, 76px);
  font-weight: 500;
  line-height: 1.02;
}
.privacy-band p { max-width: 620px; color: rgba(255,255,255,0.76); font-size: 19px; }
.privacy-symbol { display: flex; justify-content: center; }
.privacy-symbol svg { width: min(100%, 360px); color: var(--salmon); }

.support-callout { padding: 74px 0; border-bottom: 1px solid var(--line); }
.support-callout::before {
  content: "";
  display: block;
  width: min(calc(100% - 48px), var(--container));
  height: 5px;
  margin: 0 auto 54px;
  background: linear-gradient(90deg, var(--gray) 0 16%, var(--salmon) 16% 33%, var(--burgundy) 33% 50%, var(--red) 50% 67%, var(--orange) 67% 84%, var(--navy) 84%);
}
.support-callout-grid {
  display: grid;
  grid-template-columns: 0.8fr 0.9fr auto;
  align-items: center;
  gap: 50px;
}
.support-callout h2 {
  margin: 0;
  color: var(--navy);
  font-family: var(--serif);
  font-size: clamp(46px, 4vw, 66px);
  font-weight: 500;
}
.support-callout p { margin: 0; color: var(--muted); font-size: 20px; }

.site-footer { padding: 64px 0 28px; }
.footer-main {
  display: grid;
  grid-template-columns: minmax(280px, 1fr) auto;
  align-items: center;
  gap: 60px;
  padding-bottom: 44px;
}
.footer-brand p { margin: 8px 0 0 60px; color: var(--muted); font-size: 14px; }
.footer-links { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 26px; }
.footer-links a { font-size: 14px; text-decoration: none; }
.footer-bottom { padding-top: 22px; border-top: 1px solid var(--line); color: var(--muted); font-size: 13px; }

.document-hero { padding: 90px 0 70px; border-bottom: 1px solid var(--line); }
.document-hero h1 {
  max-width: 950px;
  margin-bottom: 24px;
  font-family: var(--serif);
  font-size: clamp(54px, 6vw, 86px);
  font-weight: 500;
  letter-spacing: -0.045em;
}
.document-hero p { max-width: 760px; color: var(--muted); font-size: 20px; }
.document-meta { margin-top: 28px; color: var(--muted); font-size: 14px; }
.document-layout {
  display: grid;
  grid-template-columns: 250px minmax(0, 780px);
  gap: 90px;
  align-items: start;
  padding: 80px 0 120px;
}
.document-nav { position: sticky; top: 115px; }
.document-nav strong { display: block; margin-bottom: 18px; color: var(--navy); }
.document-nav a { display: block; padding: 7px 0; color: var(--muted); font-size: 14px; text-decoration: none; }
.document-nav a:hover { color: var(--navy); }
.document h2 { margin: 64px 0 18px; color: var(--navy); font-family: var(--serif); font-size: 38px; font-weight: 500; }
.document h2:first-child { margin-top: 0; }
.document h3 { margin: 34px 0 12px; color: var(--navy); font-size: 21px; }
.document p, .document li { color: #3d4b5b; }
.document ul { padding-left: 1.2em; }

.faq-layout {
  display: grid;
  grid-template-columns: 0.7fr 1.3fr;
  gap: 90px;
  padding: 90px 0 120px;
}
.faq-intro h2 { color: var(--navy); font-family: var(--serif); font-size: 54px; font-weight: 500; line-height: 1.05; }
.faq-intro p { color: var(--muted); }
.faq-list { border-top: 1px solid var(--line); }
.faq-list details { border-bottom: 1px solid var(--line); }
.faq-list summary {
  position: relative;
  padding: 28px 54px 28px 0;
  color: var(--navy);
  font-family: var(--serif);
  font-size: 27px;
  cursor: pointer;
  list-style: none;
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after {
  content: "+";
  position: absolute;
  right: 4px;
  top: 24px;
  font-family: var(--sans);
  font-size: 32px;
  font-weight: 300;
}
.faq-list details[open] summary::after { content: "−"; }
.faq-answer { max-width: 680px; padding: 0 54px 30px 0; color: var(--muted); }
.contact-band { padding: 62px 0; color: white; background: var(--navy-deep); }
.contact-band-grid {
  display: grid;
  grid-template-columns: 1fr 0.9fr auto;
  align-items: center;
  gap: 56px;
}
.contact-band h2 { margin: 0; font-family: var(--serif); font-size: 42px; font-weight: 500; }
.contact-band p { margin: 0; color: rgba(255,255,255,0.72); }
.contact-link { color: var(--salmon); font-weight: 700; text-decoration: none; }
.contact-actions { display: grid; gap: 8px; }
.contact-actions a:not(.contact-link) { color: rgba(255,255,255,0.76); font-size: 14px; }

.reveal { opacity: 0; transform: translateY(22px); transition: opacity 600ms ease, transform 600ms ease; }
.reveal.is-visible { opacity: 1; transform: none; }

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

@media (max-width: 980px) {
  .nav-toggle { display: inline-grid; place-items: center; }
  .main-nav {
    position: absolute;
    top: 76px;
    right: 24px;
    left: 24px;
    display: none;
    padding: 22px;
    flex-direction: column;
    align-items: stretch;
    gap: 16px;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: white;
    box-shadow: var(--shadow);
  }
  .main-nav.is-open { display: flex; }
  .main-nav .language-switch { align-self: flex-start; }
  .hero-grid { grid-template-columns: 1fr; }
  .hero-copy { padding-bottom: 0; }
  .device-stage { min-height: 670px; }
  .device-ipad { right: 0; }
  .showcase { grid-template-columns: 1fr; gap: 48px; }
  .showcase-copy { max-width: 680px; }
  .feature-item { grid-template-columns: 18px 90px 1fr; }
  .workflow-steps { grid-template-columns: repeat(2, 1fr); }
  .workflow-step:nth-child(3) { border-left: none; border-top: 1px solid var(--line); }
  .workflow-step:nth-child(4) { border-top: 1px solid var(--line); }
  .support-callout-grid, .contact-band-grid { grid-template-columns: 1fr; gap: 26px; }
  .document-layout { grid-template-columns: 1fr; gap: 42px; }
  .document-nav { position: static; display: none; }
  .faq-layout { grid-template-columns: 1fr; gap: 54px; }
}

@media (max-width: 680px) {
  .container { width: min(calc(100% - 32px), var(--container)); }
  .nav-shell { min-height: 72px; }
  .brand { font-size: 20px; }
  .brand img { width: 42px; height: 42px; }
  .hero { min-height: auto; padding-top: 58px; }
  h1 { font-size: clamp(48px, 14vw, 68px); }
  .hero-copy > p { font-size: 18px; }
  .device-stage { min-height: 490px; margin-top: 12px; }
  .device-ipad { width: 92%; border-width: 5px; border-radius: 18px; }
  .device-iphone { width: 145px; left: 0; border-width: 4px; border-radius: 22px; }
  .chromatic-ribbon { height: 108px; margin-top: -10px; }
  .section { padding: 82px 0; }
  .section-heading { margin-bottom: 48px; }
  .section-heading h2, .editorial-heading { font-size: 48px; }
  .showcase { margin-bottom: 72px; }
  .feature-list { grid-template-columns: 1fr; row-gap: 38px; }
  .feature-item { grid-template-columns: 12px 74px 1fr; gap: 14px; }
  .feature-number { font-size: 56px; }
  .workflow-steps { grid-template-columns: 1fr; }
  .workflow-step, .workflow-step + .workflow-step { min-height: auto; padding: 26px 0; border-left: none; border-top: 1px solid var(--line); }
  .privacy-band-inner { grid-template-columns: 1fr; padding: 72px 0; }
  .privacy-symbol { display: none; }
  .support-callout::before { width: calc(100% - 32px); }
  .button-row .button { width: 100%; }
  .footer-main { grid-template-columns: 1fr; gap: 30px; }
  .footer-brand p { margin-left: 0; }
  .footer-links { justify-content: flex-start; gap: 18px 24px; }
  .document-hero { padding: 70px 0 54px; }
  .document-hero h1 { font-size: 54px; }
  .document-layout, .faq-layout { padding: 64px 0 90px; }
  .faq-list summary { font-size: 23px; }
}

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