@import url("fonts.css");

:root {
  --ground: #F7F8F8;
  --surface: #FFFFFF;
  --raised: #EFF2F1;
  --ink: #101413;
  --muted: #4F5A59;
  --line: #E2E6E5;
  --accent: #0A5A5A;
  --accent-soft: #DCEBEA;
  --on-accent: #FFFFFF;
  --ring: #101413;

  --display: "Outfit", "Helvetica Neue", Arial, sans-serif;
  --body: "Work Sans", "Helvetica Neue", Arial, sans-serif;

  --step--1: 0.8125rem;
  --step-0: 1rem;
  --step-1: clamp(1.125rem, 0.6vw + 1rem, 1.375rem);
  --step-2: clamp(1.5rem, 1.4vw + 1.15rem, 2rem);
  --step-3: clamp(2.125rem, 4vw + 1.1rem, 3.5rem);

  --gutter: clamp(1rem, 5vw, 4rem);
  --measure: 34rem;
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);

  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --ground: #0E1211;
    --surface: #161B1A;
    --raised: #1B2120;
    --ink: #EDF1F0;
    --muted: #9AA5A4;
    --line: #242C2B;
    --accent: #2FA39B;
    --accent-soft: #142523;
    --on-accent: #0E1211;
    --ring: #2FA39B;

    color-scheme: dark;
  }
}

:root[data-theme="dark"] {
  --ground: #0E1211;
  --surface: #161B1A;
  --raised: #1B2120;
  --ink: #EDF1F0;
  --muted: #9AA5A4;
  --line: #242C2B;
  --accent: #2FA39B;
  --accent-soft: #142523;
  --on-accent: #0E1211;
  --ring: #2FA39B;

  color-scheme: dark;
}

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

html { scroll-padding-top: 5rem; }

:root.motion { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--ground);
  color: var(--ink);
  font-family: var(--body);
  font-size: var(--step-0);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img, svg { max-width: 100%; }

h1, h2, h3 {
  font-family: var(--display);
  font-weight: 500;
  line-height: 1.1;
  letter-spacing: -0.02em;
  text-wrap: balance;
  margin: 0;
}

p { margin: 0; }

a { color: inherit; }

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

.skip-link {
  position: absolute;
  left: 0.5rem;
  top: -4rem;
  z-index: 50;
  padding: 0.7rem 1.1rem;
  background: var(--ink);
  color: var(--ground);
  font-size: var(--step--1);
  text-decoration: none;
  transition: top 200ms var(--ease);
}

.skip-link:focus { top: calc(0.5rem + env(safe-area-inset-top, 0px)); }

.shell {
  max-width: 68rem;
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.site-header {
  position: sticky;
  top: env(safe-area-inset-top, 0px);
  z-index: 20;
  background: var(--ground);
  background: color-mix(in srgb, var(--ground) 88%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color 250ms ease;
}

.site-header.is-stuck { border-bottom-color: var(--line); }

.header-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-block: 0.9rem;
}

.wordmark {
  display: inline-flex;
  align-items: baseline;
  gap: 0.45rem;
  font-family: var(--display);
  font-size: var(--step-0);
  font-weight: 600;
  letter-spacing: 0.16em;
  text-decoration: none;
}

.wordmark span {
  font-weight: 300;
  letter-spacing: 0.04em;
  color: var(--muted);
}

.header-tools {
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.site-nav {
  display: flex;
  gap: 1.5rem;
  margin-right: 0.75rem;
  font-size: var(--step--1);
  color: var(--muted);
}

.site-nav a {
  position: relative;
  text-decoration: none;
  padding-block: 0.4rem;
  transition: color 200ms ease;
}

.site-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0.1rem;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 240ms var(--ease);
}

.site-nav a:hover { color: var(--ink); }

.site-nav a:hover::after { transform: scaleX(1); }

.icon-button {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid transparent;
  border-radius: 999px;
  background: none;
  color: var(--muted);
  cursor: pointer;
  transition: color 200ms ease, border-color 200ms ease, background 200ms ease;
}

.icon-button:hover {
  color: var(--ink);
  border-color: var(--line);
  background: var(--surface);
}

.icon-button svg {
  width: 1.15rem;
  height: 1.15rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.nav-toggle { display: none; }

.theme-toggle .moon { display: none; }

:root[data-theme="dark"] .theme-toggle .moon { display: block; }

:root[data-theme="dark"] .theme-toggle .sun { display: none; }

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .theme-toggle .moon { display: block; }
  :root:not([data-theme="light"]) .theme-toggle .sun { display: none; }
}

.mobile-nav[hidden] { display: none; }

.mobile-nav {
  display: grid;
  gap: 0.25rem;
  padding-block: 0.5rem 1.25rem;
  border-top: 1px solid var(--line);
}

.mobile-nav a {
  padding: 0.75rem 0.25rem;
  font-family: var(--display);
  font-size: var(--step-1);
  text-decoration: none;
}

@media (max-width: 860px) {
  .site-nav { display: none; }
  .nav-toggle { display: grid; }
}

section { border-top: 1px solid var(--line); }

section:first-of-type { border-top: 0; }

.section-body { padding-block: clamp(3.5rem, 9vw, 6.5rem); }

.eyebrow {
  font-size: var(--step--1);
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1.5rem;
}

.hero .section-body {
  padding-block: clamp(3.5rem, 9vw, 6rem) clamp(3rem, 7vw, 5rem);
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: clamp(2.5rem, 6vw, 5rem);
  align-items: center;
}

.hero h1 {
  font-size: var(--step-3);
  max-width: 16ch;
}

.hero-copy {
  margin-top: 1.75rem;
  max-width: var(--measure);
  font-size: var(--step-1);
  color: var(--muted);
}

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

.mark {
  width: 100%;
  max-width: 26rem;
  margin-inline: auto;
  aspect-ratio: 1;
}

.mark svg { display: block; width: 100%; height: 100%; }

.mark .ring {
  fill: none;
  stroke: var(--line);
  stroke-width: 1;
}

.mark .bar { fill: var(--accent); }

.mark .bar-soft { fill: var(--accent-soft); }

.mark .stroke {
  fill: none;
  stroke: var(--accent);
  stroke-width: 2;
  stroke-linecap: square;
}

:root.motion .mark .spin {
  transform-origin: 50% 50%;
  animation: mark-spin 48s linear infinite;
}

@keyframes mark-spin {
  to { transform: rotate(360deg); }
}

.cta {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  margin-top: 2.5rem;
  padding: 0.85rem 1.6rem;
  background: var(--accent);
  color: var(--on-accent);
  font-family: var(--display);
  font-size: var(--step-0);
  font-weight: 500;
  text-decoration: none;
  cursor: pointer;
  transition: transform 200ms var(--ease), opacity 200ms ease;
}

.cta:hover { opacity: 0.88; transform: translateY(-1px); }

.cta svg {
  width: 1em;
  height: 1em;
  transition: transform 240ms var(--ease);
}

.cta:hover svg { transform: translateX(3px); }

.values {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 2.5rem;
  padding-block: 1.25rem;
  border-top: 1px solid var(--line);
  font-family: var(--display);
  font-size: var(--step--1);
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted);
}

.values span { display: inline-flex; align-items: center; gap: 0.75rem; }

.values span::before {
  content: "";
  width: 5px;
  height: 5px;
  background: var(--accent);
}

.lede {
  font-size: var(--step-2);
  max-width: 24ch;
}

.prose {
  margin-top: 1.5rem;
  max-width: var(--measure);
  color: var(--muted);
}

.bento {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  margin-top: 3rem;
  background: var(--line);
  border: 1px solid var(--line);
}

.bento-item {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  padding: clamp(1.5rem, 3vw, 2.25rem);
  background: var(--ground);
  transition: background 250ms ease;
}

.bento-item:hover { background: var(--surface); }

.bento-item.is-wide { grid-column: span 2; }

.bento-item.is-full { grid-column: 1 / -1; }

.bento-item h3 {
  font-size: var(--step-1);
  margin-top: 0.5rem;
}

.bento-item p {
  color: var(--muted);
  font-size: var(--step-0);
}

.bento-item svg {
  width: 1.75rem;
  height: 1.75rem;
  stroke: var(--accent);
  fill: none;
  stroke-width: 1.25;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform 300ms var(--ease);
}

.bento-item:hover svg { transform: translateY(-3px); }

@media (max-width: 860px) {
  .bento { grid-template-columns: 1fr; }
  .bento-item.is-wide,
  .bento-item.is-full { grid-column: span 1; }
}

.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr));
  gap: clamp(1.5rem, 3vw, 2.5rem);
  margin-top: 3rem;
  counter-reset: step;
}

.step { border-top: 2px solid var(--accent); padding-top: 1rem; }

.step::before {
  counter-increment: step;
  content: counter(step, decimal-leading-zero);
  display: block;
  margin-bottom: 0.75rem;
  font-family: var(--display);
  font-size: var(--step--1);
  letter-spacing: 0.16em;
  color: var(--accent);
}

.step h3 { font-size: var(--step-1); }

.step p {
  margin-top: 0.5rem;
  color: var(--muted);
  font-size: var(--step-0);
}

.status {
  display: inline-block;
  margin-top: 2rem;
  padding: 0.45rem 0.9rem;
  border: 1px solid var(--line);
  background: var(--surface);
  font-size: var(--step--1);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.product-cta {
  margin-top: 1.5rem;
}

.product-cta a {
  color: var(--accent);
  border-bottom: 1px solid currentColor;
  padding-bottom: 0.1rem;
}

.badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 2rem;
}

.badge {
  padding: 0.5rem 1rem;
  border: 1px solid var(--accent);
  font-size: var(--step--1);
  color: var(--accent);
}

.faq {
  margin-top: 2.5rem;
  border-top: 1px solid var(--line);
  max-width: 48rem;
}

.faq details {
  border-bottom: 1px solid var(--line);
}

.faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding-block: 1.25rem;
  font-family: var(--display);
  font-size: var(--step-1);
  cursor: pointer;
  list-style: none;
}

.faq summary::-webkit-details-marker { display: none; }

.faq summary::after {
  content: "";
  flex: none;
  width: 0.7rem;
  height: 0.7rem;
  border-right: 1.5px solid var(--accent);
  border-bottom: 1.5px solid var(--accent);
  transform: rotate(45deg) translate(-2px, -2px);
  transition: transform 240ms var(--ease);
}

.faq details[open] summary::after { transform: rotate(-135deg); }

.faq p {
  max-width: var(--measure);
  padding-bottom: 1.5rem;
  color: var(--muted);
}

.contact-mail {
  display: inline-block;
  margin-top: 1rem;
  font-family: var(--display);
  font-size: var(--step-2);
  color: var(--accent);
  text-decoration: none;
  padding-bottom: 0.15rem;
  background-image: linear-gradient(currentColor, currentColor);
  background-repeat: no-repeat;
  background-position: 0 100%;
  background-size: 100% 1px;
  transition: background-size 300ms var(--ease);
}

.contact-mail:hover { background-size: 0 1px; }

.site-footer {
  border-top: 1px solid var(--line);
  padding-block: clamp(2.5rem, 5vw, 4rem) calc(2rem + env(safe-area-inset-bottom, 0px));
  font-size: var(--step--1);
  color: var(--muted);
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) repeat(2, minmax(0, 1fr));
  gap: clamp(2rem, 4vw, 3rem);
}

.footer-grid h2 {
  margin-bottom: 1rem;
  font-family: var(--body);
  font-size: var(--step--1);
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink);
}

.footer-grid ul {
  display: grid;
  gap: 0.6rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.footer-grid a { text-decoration: none; transition: color 200ms ease; }

.footer-grid a:hover { color: var(--ink); }

.footer-address {
  font-style: normal;
  display: grid;
  gap: 0.4rem;
  max-width: 22rem;
}

.footer-base {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem;
  margin-top: clamp(2rem, 4vw, 3rem);
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
}

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

.doc {
  max-width: 44rem;
  padding-block: clamp(3rem, 7vw, 5rem);
}

.doc h1 { font-size: var(--step-2); }

.doc h2 {
  margin-top: 2.5rem;
  font-size: var(--step-1);
}

.doc p, .doc li { margin-top: 1rem; color: var(--muted); }

.doc ul { padding-left: 1.2rem; }

.doc-meta {
  margin-top: 0.75rem;
  font-size: var(--step--1);
  color: var(--muted);
}

.doc-back {
  display: inline-block;
  margin-top: 3rem;
  color: var(--accent);
  font-size: var(--step--1);
}

:root.motion .anim {
  opacity: 0;
  transform: translateY(14px);
}

:root.motion .anim.is-in,
:root.motion-done .anim {
  opacity: 1;
  transform: none;
  transition: opacity 520ms var(--ease), transform 520ms var(--ease);
  transition-delay: var(--delay, 0ms);
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

.field {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: clip;
}

.field .rails {
  position: absolute;
  inset: 0;
  max-width: 68rem;
  margin-inline: auto;
  opacity: 0.55;
  background-image: repeating-linear-gradient(
    to right,
    var(--line) 0 1px,
    transparent 1px calc(100% / 4)
  );
}

.field .orbit {
  position: absolute;
  top: -12vmin;
  right: -22vmin;
  width: 78vmin;
  height: 78vmin;
  opacity: 0.5;
}

.field .orbit svg { width: 100%; height: 100%; }

.field .orbit circle {
  fill: none;
  stroke: var(--line);
  stroke-width: 1;
}

:root.motion .field .orbit .drift {
  transform-origin: 50% 50%;
  animation: mark-spin 140s linear infinite reverse;
}

.site-header, main, .site-footer { position: relative; z-index: 1; }

.watermark {
  position: absolute;
  right: var(--gutter);
  bottom: 0;
  width: min(34vw, 17rem);
  color: var(--line);
  opacity: 0.7;
  pointer-events: none;
}

.watermark svg { display: block; width: 100%; height: auto; }

#products .section-body, .site-footer .shell { position: relative; }

.footer-mark {
  display: block;
  width: 100%;
  margin-top: clamp(2rem, 4vw, 3rem);
  color: var(--line);
}

.footer-mark svg { display: block; width: 100%; height: auto; }

.footer-mark text {
  fill: none;
  stroke: currentColor;
  stroke-width: 1;
  font-family: var(--display);
  font-size: 72px;
  font-weight: 600;
  letter-spacing: 0.28em;
}

@media (max-width: 720px) {
  .field .rails { background-image: none; }
  .watermark { display: none; }
}
