/* SteadyLogic marketing draft. Colours and type follow the house brand. */

:root {
  --navy: #001030;
  --paper: #f5f4f1;
  --ink: #1d1d1f;
  --brass: #386c9b;
  --brass-dark: #71c1fe;
  --white: #ffffff;
  --secondary: #6e6e73;
  --tertiary: #86868b;
  --hairline: #d8d4cc;
  --hairline-dark: rgba(245, 244, 241, 0.16);
  --secondary-on-dark: rgba(245, 244, 241, 0.72);
  --nav-fg: rgba(29, 29, 31, 0.8);
  --header-h: 72px;
  --wrap: 980px;
  --wrap-wide: 1120px;
  --ease: cubic-bezier(0.4, 0, 0.6, 1);
  --ease-enter: cubic-bezier(0, 0, 0.2, 1);
  --font: "Figtree", -apple-system, BlinkMacSystemFont, system-ui, "Helvetica Neue", Arial, sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font);
  font-size: 17px;
  font-weight: 400;
  line-height: 1.4706;
  letter-spacing: -0.022em;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

a {
  color: var(--brass);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
  text-underline-offset: 0.18em;
}

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

.section-navy :focus-visible,
.site-footer :focus-visible {
  outline-color: var(--brass-dark);
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -48px;
  z-index: 100;
  padding: 8px 16px;
  background: var(--navy);
  color: var(--white);
  border-radius: 980px;
}

.skip-link:focus {
  top: 12px;
}

.wrap {
  width: min(var(--wrap), 87.5%);
  margin-inline: auto;
}

.wrap.narrow,
.narrow {
  max-width: 740px;
}

/* Header */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  height: var(--header-h);
  background: rgba(245, 244, 241, 0.8);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s var(--ease), background 0.2s var(--ease);
}

@supports not ((backdrop-filter: blur(20px)) or (-webkit-backdrop-filter: blur(20px))) {
  .site-header {
    background: var(--paper);
  }
}

.site-header.is-scrolled {
  border-bottom-color: var(--hairline);
  background: rgba(245, 244, 241, 0.92);
}

.nav {
  width: min(var(--wrap-wide), 92%);
  margin-inline: auto;
  height: 100%;
  display: flex;
  align-items: center;
  gap: 20px;
}

.logo {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  text-decoration: none;
}

.logo img,
.footer-logo img {
  width: 188px;
  height: 32px;
}

.strap {
  margin: 0;
  flex: 1 1 auto;
  font-size: 12px;
  line-height: 1.333;
  letter-spacing: -0.01em;
  color: var(--secondary);
}

.nav-links {
  margin: 0 0 0 auto;
  padding: 0;
  list-style: none;
  display: flex;
  align-items: center;
  gap: 28px;
}

.nav-links a {
  color: var(--nav-fg);
  font-size: 12px;
  letter-spacing: -0.01em;
  text-decoration: none;
}

.nav-links a:hover {
  color: var(--ink);
  text-decoration: none;
}

.nav-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 70px;
  min-height: 32px;
  padding: 6px 14px;
  border-radius: 980px;
  background: var(--navy);
  color: var(--white) !important;
  transition: background-color 100ms linear;
}

.nav-cta:hover {
  background: #001a4d;
  color: var(--white) !important;
}

/* Buttons */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 70px;
  min-height: 44px;
  padding: 12px 22px;
  border-radius: 980px;
  font-family: inherit;
  font-size: 17px;
  font-weight: 400;
  letter-spacing: -0.022em;
  line-height: 1.2;
  text-decoration: none;
  transition: background-color 100ms linear, color 100ms linear, border-color 100ms linear;
}

.btn:hover {
  text-decoration: none;
}

.btn-primary {
  background: var(--navy);
  color: var(--white);
}

.btn-primary:hover {
  background: #001a4d;
  color: var(--white);
}

.btn-secondary {
  background: transparent;
  color: var(--navy);
  border: 1px solid var(--navy);
}

.btn-secondary:hover {
  background: var(--white);
  color: var(--navy);
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 32px;
}

/* Hero */

.hero {
  min-height: calc(100svh - var(--header-h));
  display: flex;
  align-items: center;
  background: var(--paper);
  padding: 80px 0 120px;
}

.hero-inner {
  max-width: 860px;
  text-align: left;
}

.hero-title {
  margin: 0;
  font-size: 80px;
  font-weight: 600;
  line-height: 1.05;
  letter-spacing: -0.015em;
  color: var(--ink);
}

.hero-lead {
  margin: 28px 0 0;
  max-width: 36em;
  font-size: 21px;
  line-height: 1.381;
  letter-spacing: 0.011em;
  color: var(--secondary);
}

/* Sections */

.section {
  padding: 140px 0;
}

.section-white {
  background: var(--white);
}

.section-paper {
  background: var(--paper);
}

.section-navy {
  background: var(--navy);
  color: var(--paper);
}

.section-navy .section-title,
.section-navy .step-title {
  color: var(--white);
}

.section-navy .intro,
.section-navy .eyebrow,
.section-navy p {
  color: var(--secondary-on-dark);
}

.section-navy .eyebrow {
  color: var(--brass-dark);
}

.eyebrow {
  margin: 0 0 16px;
  font-size: 12px;
  line-height: 1.333;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--brass);
}

.section-title {
  margin: 0;
  font-size: 48px;
  font-weight: 600;
  line-height: 1.0835;
  letter-spacing: -0.003em;
  color: var(--ink);
}

.intro {
  margin: 24px 0 0;
  font-size: 21px;
  line-height: 1.381;
  letter-spacing: 0.011em;
  color: var(--secondary);
}

.section-head {
  margin-bottom: 72px;
}

/* How we build steps */

.steps {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
}

.step {
  margin: 0;
  padding: 36px 36px 40px;
  background: var(--white);
  border-radius: 28px;
  border: 1px solid var(--hairline);
}

.step-num {
  margin: 0 0 20px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--brass);
}

.step-title {
  margin: 0 0 12px;
  font-size: 24px;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.01em;
  color: var(--ink);
}

.step p:last-child {
  margin: 0;
  color: var(--secondary);
  font-size: 17px;
  line-height: 1.4706;
  letter-spacing: -0.022em;
}

/* True Heading */

.section-product {
  background: var(--paper);
  padding: 80px 0 140px;
}

.product {
  background: var(--white);
  border-radius: 28px;
  border: 1px solid var(--hairline);
  padding: 80px 72px;
}

.product-copy {
  max-width: 740px;
}

/* Footer */

.site-footer {
  background: var(--navy);
  color: var(--secondary-on-dark);
  padding: 72px 0 56px;
}

.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 32px;
}

.footer-logo {
  display: inline-flex;
  text-decoration: none;
}

.footer-legal {
  max-width: 42em;
  font-size: 12px;
  line-height: 1.5;
  letter-spacing: -0.01em;
}

.footer-legal p {
  margin: 0 0 10px;
}

.footer-legal a {
  color: var(--brass-dark);
}

.footer-legal a:hover {
  color: var(--white);
}

.copyright {
  margin-top: 18px !important;
  color: rgba(245, 244, 241, 0.5);
}

/* Motion */

.js .reveal {
  opacity: 0;
  transform: translateY(28px);
}

.js .reveal.is-visible {
  opacity: 1;
  transform: none;
  transition:
    opacity 0.4s var(--ease-enter) calc(0.05s + var(--d, 0ms)),
    transform 0.5s var(--ease-enter) var(--d, 0ms);
}

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

  .js .reveal,
  .js .reveal.is-visible {
    opacity: 1;
    transform: none;
    filter: none;
    transition: none;
  }
}

/* Tablet */

@media (max-width: 1068px) {
  :root {
    --header-h: 64px;
  }

  .hero-title {
    font-size: 64px;
    line-height: 1.0625;
    letter-spacing: -0.009em;
  }

  .section-title {
    font-size: 40px;
    line-height: 1.1;
  }

  .section {
    padding: 112px 0;
  }

  .product {
    padding: 64px 48px;
  }

  .hero {
    padding: 64px 0 96px;
  }
}

@media (max-width: 860px) {
  .steps {
    grid-template-columns: 1fr;
  }

  .strap {
    display: none;
  }
}

/* Phone */

@media (max-width: 734px) {
  :root {
    --header-h: 60px;
  }

  .nav {
    width: 90%;
    gap: 12px;
  }

  .logo img,
  .footer-logo img {
    width: 176px;
    height: 30px;
  }

  .nav-links li:not(:last-child) {
    display: none;
  }

  .hero-title {
    font-size: 48px;
    line-height: 1.0835;
    letter-spacing: -0.003em;
  }

  .hero-lead,
  .intro {
    font-size: 19px;
    line-height: 1.4211;
  }

  .section-title {
    font-size: 32px;
    line-height: 1.125;
    letter-spacing: 0.004em;
  }

  .section,
  .section-product {
    padding: 80px 0;
  }

  .section-head {
    margin-bottom: 40px;
  }

  .hero {
    padding: 48px 0 80px;
    min-height: calc(100svh - var(--header-h));
  }

  .product {
    padding: 40px 24px;
    border-radius: 18px;
  }

  .step {
    padding: 28px 24px 32px;
    border-radius: 18px;
  }

  .cta-row {
    flex-direction: column;
    align-items: stretch;
  }

  .btn {
    width: 100%;
  }

  .site-footer {
    padding: 56px 0 48px;
  }
}

@media (min-width: 1441px) {
  .hero-title {
    font-size: 80px;
  }
}

/* Cookie banner and legal page */

.has-cookie-bar {
  padding-bottom: var(--cookie-h, 0px);
}

.cookie-bar {
  position: fixed;
  inset: auto 0 0;
  z-index: 80;
  background: var(--white);
  border-top: 1px solid var(--hairline);
  box-shadow: 0 -8px 24px rgba(0, 16, 48, 0.06);
}

.cookie-inner {
  width: min(var(--wrap-wide), 92%);
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  padding: 16px 0;
}

.cookie-copy {
  flex: 1 1 420px;
}

.cookie-copy p {
  margin: 0;
  font-size: 14px;
  line-height: 1.5;
  letter-spacing: -0.01em;
  color: var(--ink);
}

.cookie-copy p + p {
  margin-top: 6px;
}

.cookie-title {
  font-weight: 600;
  color: var(--navy);
}

.cookie-thanks {
  font-weight: 500;
  color: var(--navy);
}

.cookie-copy a {
  color: var(--brass);
}

.cookie-actions {
  display: flex;
  gap: 12px;
  flex: 0 0 auto;
  margin-left: auto;
}

.cookie-btn {
  min-width: 132px;
  min-height: 48px;
  padding: 10px 20px;
  border-radius: 980px;
  border: 2px solid var(--navy);
  background: var(--white);
  color: var(--navy);
  font-family: inherit;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.2;
  cursor: pointer;
  transition: background-color 100ms linear, color 100ms linear;
}

.cookie-btn:hover {
  background: var(--navy);
  color: var(--white);
}

.cookie-bar[hidden],
.cookie-bar .cookie-actions[hidden],
.cookie-bar .cookie-thanks[hidden] {
  display: none;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
  margin: 12px 0 0 !important;
}

.footer-links a,
.link-btn {
  color: var(--brass-dark);
}

.link-btn {
  appearance: none;
  background: none;
  border: 0;
  padding: 0;
  font: inherit;
  font-size: 12px;
  line-height: 1.5;
  letter-spacing: -0.01em;
  color: var(--brass-dark);
  cursor: pointer;
  text-align: left;
}

.link-btn:hover,
.footer-links a:hover {
  color: var(--white);
  text-decoration: underline;
  text-underline-offset: 0.18em;
}

.legal-page {
  padding-top: 80px;
}

.prose {
  max-width: 740px;
}

.prose h1 {
  margin: 0 0 12px;
}

.legal-meta {
  margin: 0 0 32px;
  font-size: 14px;
  color: var(--secondary);
}

.prose h2 {
  margin: 36px 0 12px;
  font-size: 24px;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--ink);
}

.prose p,
.prose li {
  font-size: 17px;
  line-height: 1.4706;
  letter-spacing: -0.022em;
  color: var(--ink);
}

.prose ul {
  margin: 0 0 16px;
  padding-left: 1.2em;
}

.prose li + li {
  margin-top: 8px;
}

.table-wrap {
  overflow-x: auto;
  margin: 20px 0;
  -webkit-overflow-scrolling: touch;
}

.table-wrap table {
  border-collapse: collapse;
  width: 100%;
  min-width: 560px;
  font-size: 15px;
  line-height: 1.45;
}

.table-wrap th,
.table-wrap td {
  border: 1px solid var(--hairline);
  padding: 10px 12px;
  text-align: left;
  vertical-align: top;
  color: var(--ink);
}

.table-wrap th {
  background: var(--white);
  color: var(--navy);
  font-weight: 600;
}

@media (max-width: 734px) {
  .cookie-inner {
    width: 90%;
    flex-direction: column;
    align-items: stretch;
    gap: 16px;
    padding: 16px 0 18px;
  }

  .cookie-actions {
    width: 100%;
    margin-left: 0;
  }

  .cookie-btn {
    flex: 1 1 0;
    min-width: 0;
  }
}

/* Contact form */

html {
  scroll-padding-top: calc(var(--header-h) + 16px);
}

.contact-block {
  max-width: 740px;
}

.contact-card {
  background: var(--white);
  border: 1px solid var(--hairline);
  border-radius: 28px;
  padding: 40px 40px 44px;
}

.contact-card #contact-description {
  margin: 0 0 8px;
  font-size: 17px;
  color: var(--secondary);
}

#contact-form {
  position: relative;
  margin-top: 8px;
}

#contact-form label {
  display: block;
  font-size: 14px;
  font-weight: 500;
  margin: 16px 0 6px;
  color: var(--ink);
}

#contact-form input,
#contact-form textarea {
  width: 100%;
  border: 1px solid #b5bac2;
  border-radius: 9px;
  padding: 11px 12px;
  background: var(--white);
  color: var(--ink);
  font-family: inherit;
  font-size: 17px;
  line-height: 1.4;
  min-height: 46px;
}

#contact-form textarea {
  resize: vertical;
  min-height: 120px;
}

#contact-form .btn {
  margin-top: 20px;
}

#contact-form .btn:disabled {
  opacity: 0.6;
  cursor: default;
}

.form-hint {
  margin: 2px 0 6px;
  font-size: 13px;
  line-height: 1.5;
  color: var(--secondary);
}

.form-small {
  margin: 12px 0 0;
  font-size: 13px;
  line-height: 1.5;
  letter-spacing: -0.01em;
  color: var(--secondary);
}

.form-small a {
  color: var(--brass);
  text-decoration: underline;
  text-underline-offset: 0.18em;
}

#form-note {
  margin-top: 18px;
  font-size: 14px;
  line-height: 1.5;
  color: var(--secondary);
}

#form-note.is-sent {
  font-size: 18px;
  font-weight: 600;
  color: var(--navy);
}

#form-note.is-error {
  color: var(--ink);
  font-weight: 500;
}

#contact-form .hp {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@media (max-width: 734px) {
  .contact-card {
    padding: 28px 24px 32px;
    border-radius: 18px;
  }
}

/* Straplines, sketches and split sections */

.hero-kicker,
.section-kicker {
  margin: 0 0 18px;
  font-size: 21px;
  font-weight: 500;
  line-height: 1.3;
  letter-spacing: -0.016em;
  color: var(--brass);
}

.section-statement {
  background: var(--paper);
  padding: 100px 0;
}

.statement {
  margin: 0 auto;
  max-width: 16em;
  text-align: center;
  font-size: 48px;
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.003em;
  color: var(--ink);
}

.wrap.wrap-wide {
  width: min(var(--wrap-wide), 90%);
  max-width: none;
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  gap: 56px;
  align-items: center;
}

.split-top {
  align-items: start;
}

.split-copy .intro {
  max-width: 36em;
}

.steps-stack {
  grid-template-columns: 1fr;
  margin-top: 40px;
}

.sketch-frame,
.sketch-plain,
.sketch-page {
  margin: 0;
}

.sketch-frame {
  background: var(--white);
  border-radius: 24px;
  overflow: hidden;
  isolation: isolate;
}

.sketch-frame img,
.sketch-plain img,
.sketch-page img {
  width: 100%;
  height: auto;
  mix-blend-mode: multiply;
}

.section-product {
  padding-bottom: 48px;
}

.product-with-sketches {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  gap: 48px 40px;
  align-items: center;
}

.product-with-sketches .product-copy {
  max-width: none;
}

.sketch-cluster {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px 16px;
  padding: 20px 4px 8px;
}

.sketch-page {
  background: var(--white);
  border-radius: 8px;
  overflow: hidden;
  isolation: isolate;
  box-shadow:
    0 14px 40px rgba(0, 16, 48, 0.12),
    0 2px 6px rgba(0, 16, 48, 0.06);
  transform: rotate(var(--tilt, 0deg));
  transform-origin: center center;
}

.sketch-page-1 { --tilt: -6deg; }
.sketch-page-2 { --tilt: 5deg; position: relative; z-index: 2; }
.sketch-page-3 { --tilt: -3.5deg; }
.sketch-page-4 { --tilt: 6.5deg; position: relative; z-index: 2; }

.js .sketch-page.reveal {
  opacity: 0;
  transform: translateY(28px) rotate(var(--tilt, 0deg));
}

.js .sketch-page.reveal.is-visible {
  opacity: 1;
  transform: rotate(var(--tilt, 0deg));
  transition:
    opacity 0.4s var(--ease-enter) calc(0.05s + var(--d, 0ms)),
    transform 0.6s var(--ease-enter) var(--d, 0ms);
}

.section-loop {
  background: var(--paper);
  padding: 24px 0 80px;
}

.loop-wrap {
  max-width: 420px;
}

.sketch-loop {
  margin: 0 auto;
}

.footer-tag {
  margin: 0;
  font-size: 15px;
  font-weight: 500;
  letter-spacing: -0.014em;
  color: var(--paper);
}

@media (prefers-reduced-motion: reduce) {
  .js .sketch-page.reveal,
  .js .sketch-page.reveal.is-visible {
    opacity: 1;
    transform: rotate(var(--tilt, 0deg));
    transition: none;
  }
}

@media (max-width: 1068px) {
  .statement {
    font-size: 40px;
  }

  .split,
  .product-with-sketches {
    gap: 40px;
  }
}

@media (max-width: 860px) {
  .split,
  .product-with-sketches {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .sketch-cluster {
    padding: 0;
  }

  .section-statement {
    padding: 80px 0;
  }
}

@media (max-width: 734px) {
  .hero-kicker,
  .section-kicker {
    font-size: 19px;
  }

  .statement {
    font-size: 32px;
    line-height: 1.125;
  }

  .section-statement {
    padding: 64px 0;
  }

  .sketch-frame {
    border-radius: 16px;
  }

  .sketch-page {
    --tilt: 0deg;
    border-radius: 6px;
    box-shadow:
      0 8px 24px rgba(0, 16, 48, 0.1),
      0 1px 3px rgba(0, 16, 48, 0.05);
  }

  .section-loop {
    padding: 8px 0 48px;
  }

  .loop-wrap {
    max-width: 300px;
  }

  .footer-tag {
    font-size: 14px;
  }
}
