/* InkTether — inktether.com
   Colours and type follow brand/tokens.json. No external requests. */

@font-face {
  font-family: "Outfit";
  src: url("/fonts/outfit-latin.woff2") format("woff2");
  font-weight: 500 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --ink: #151515;
  --paper: #FAFAF8;
  --coral: #E5574A;
  --accent-light: #C23F31;
  --night: #141619;
  --graphite: #5A5F66;
  --mist: #A3A8AF;
  --plug: #8A8F94;

  --bg: var(--paper);
  --fg: var(--ink);
  --muted: var(--graphite);
  --link: var(--accent-light);
  --surface: #FFFFFF;
  --rule: rgba(21, 21, 21, 0.14);
  --rule-strong: rgba(21, 21, 21, 0.28);
  --button-bg: var(--accent-light);
  --button-fg: #FFFFFF;

  --font-display: "Outfit", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-body: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

  --gutter: clamp(1.25rem, 5vw, 3rem);
  --section-space: clamp(4rem, 9vw, 7.5rem);

  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: var(--night);
    --fg: var(--paper);
    --muted: var(--mist);
    --link: var(--coral);
    --surface: #1C1F23;
    --rule: rgba(250, 250, 248, 0.14);
    --rule-strong: rgba(250, 250, 248, 0.3);
    --button-bg: var(--coral);
    --button-fg: var(--ink);
  }
}

/* Base ------------------------------------------------------------------ */

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 1.5rem;
}

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.6;
  overflow-wrap: break-word;
}

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

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

p {
  margin: 0;
}

a {
  color: var(--link);
  text-underline-offset: 0.2em;
  text-decoration-thickness: 1px;
}

a:hover {
  text-decoration-thickness: 2px;
}

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

::selection {
  background: var(--accent-light);
  color: #FFFFFF;
}

.wrap {
  width: 100%;
  max-width: 76rem;
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 10;
  padding: 0.6rem 1rem;
  background: var(--button-bg);
  color: var(--button-fg);
  font-weight: 600;
  text-decoration: none;
  border-radius: 6px;
}

.skip-link:focus {
  top: 1rem;
}

main:focus {
  outline: none;
}

/* Header ---------------------------------------------------------------- */

.site-header {
  border-bottom: 1px solid var(--rule);
}

.header-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 2rem;
  padding-block: 1.5rem;
}

.brand {
  display: inline-block;
  border-radius: 4px;
}

.brand img {
  height: 32px;
  width: auto;
}

.nav-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 1.75rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.nav-list a {
  display: inline-block;
  padding-block: 0.35rem;
  color: var(--fg);
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 0.975rem;
  text-decoration: none;
}

.nav-list a:hover {
  color: var(--link);
}

@media (max-width: 560px) {
  .header-inner {
    padding-block: 1.25rem 0.75rem;
  }

  .site-header nav {
    width: 100%;
  }

  .nav-list {
    justify-content: space-between;
    gap: 0.1rem 0.75rem;
  }

  .nav-list a {
    font-size: 0.9375rem;
  }
}

@media (max-width: 359px) {
  .nav-list {
    gap: 0.1rem 0.5rem;
  }

  .nav-list a {
    font-size: 0.875rem;
  }
}

/* Hero ------------------------------------------------------------------ */

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

.hero-inner {
  display: grid;
  gap: clamp(2.5rem, 5vw, 4rem);
  align-items: center;
}

@media (min-width: 60rem) {
  .hero-inner {
    grid-template-columns: minmax(0, 9fr) minmax(0, 13fr);
  }
}

.status {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 0.9rem;
  color: var(--muted);
  font-size: 0.9375rem;
  line-height: 1.35;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.35rem 0.85rem 0.35rem 0.7rem;
  border: 1px solid var(--rule-strong);
  border-radius: 999px;
  color: var(--fg);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.875rem;
  letter-spacing: 0.01em;
}

.nowrap {
  white-space: nowrap;
}

.status-dot {
  flex: none;
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  background: var(--coral);
}

h1 {
  margin-top: 1.5rem;
  font-size: clamp(2.5rem, 1.35rem + 4.6vw, 4.75rem);
  font-weight: 650;
  letter-spacing: -0.025em;
  line-height: 1.02;
}

.lede {
  margin-top: 1.5rem;
  max-width: 32rem;
  color: var(--muted);
  font-size: clamp(1.125rem, 1rem + 0.5vw, 1.3125rem);
  line-height: 1.5;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem 1.75rem;
  margin-top: 2.25rem;
}

.button {
  display: inline-block;
  padding: 0.8rem 1.4rem;
  border-radius: 8px;
  background: var(--button-bg);
  color: var(--button-fg);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1rem;
  line-height: 1.2;
  text-decoration: none;
}

.button:hover {
  background: color-mix(in srgb, var(--button-bg) 88%, var(--fg));
}

.text-link {
  font-family: var(--font-display);
  font-weight: 500;
}

.hero-art {
  margin: 0;
}

.hero-art svg {
  width: 100%;
  height: auto;
  overflow: visible;
}

/* Illustration parts */
.ill-line {
  stroke: var(--fg);
}

.ill-screen {
  fill: var(--surface);
}

.ill-ink {
  stroke: var(--coral);
  stroke-linecap: round;
  stroke-linejoin: round;
}

.ill-boot,
.ill-base {
  fill: var(--fg);
}

.ill-tip {
  fill: var(--plug);
}

.ill-pencil {
  fill: var(--surface);
  stroke: var(--fg);
}

.callouts text {
  fill: var(--muted);
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 19px;
  letter-spacing: 0.02em;
}

.callout-line {
  fill: none;
  stroke: var(--muted);
  stroke-width: 1.25;
}

@media (max-width: 40rem) {
  .callouts {
    display: none;
  }
}

/* The illustration's resting state is fully drawn. The hidden starting state
   lives only in the keyframes (fill-mode: both), so the line, cable and plug
   still show if animations never run. */
@media (prefers-reduced-motion: no-preference) {
  .draw {
    stroke-dasharray: 1;
    animation: draw 1.6s cubic-bezier(0.55, 0, 0.3, 1) 0.4s both;
  }

  .draw-cable {
    animation-duration: 0.5s;
    animation-delay: 1.95s;
    animation-timing-function: linear;
  }

  .draw-echo {
    animation-duration: 1.3s;
    animation-delay: 2.35s;
  }

  .plug {
    animation: appear 0.3s ease-out 2.3s both;
  }
}

@keyframes draw {
  from {
    stroke-dashoffset: 1;
  }
  to {
    stroke-dashoffset: 0;
  }
}

@keyframes appear {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

/* Software strip -------------------------------------------------------- */

.software {
  border-block: 1px solid var(--rule);
}

.software p {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.4rem 1.5rem;
  padding-block: 1.25rem;
}

.software-label {
  color: var(--muted);
  font-size: 0.9375rem;
}

.software-list {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 1.0625rem;
}

/* Sections -------------------------------------------------------------- */

.section {
  padding-block: var(--section-space) 0;
}

.section:last-child {
  padding-bottom: var(--section-space);
}

.label {
  display: flex;
  align-items: baseline;
  gap: 0.75rem;
  margin-bottom: 1rem;
  color: var(--muted);
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 0.875rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.label-num {
  color: var(--link);
  font-weight: 600;
  letter-spacing: 0.04em;
  font-variant-numeric: tabular-nums;
}

h2 {
  max-width: 22ch;
  font-size: clamp(2rem, 1.4rem + 2.4vw, 3.25rem);
  letter-spacing: -0.02em;
}

h3 {
  font-size: 1.3125rem;
  letter-spacing: -0.005em;
  line-height: 1.25;
}

/* Steps: numbered circles joined by a coral line, like the mark's cable */

.steps {
  --step-gap: clamp(2rem, 4vw, 3.5rem);
  display: grid;
  gap: var(--step-gap);
  margin: clamp(2.5rem, 5vw, 3.5rem) 0 0;
  padding: 0;
  list-style: none;
}

.steps li {
  position: relative;
  padding-left: 4.5rem;
}

.steps li:not(:last-child)::after {
  content: "";
  position: absolute;
  left: 23px;
  top: 3.75rem;
  bottom: calc(-1 * var(--step-gap) + 0.75rem);
  width: 2px;
  background: var(--coral);
}

.step-num {
  position: absolute;
  left: 0;
  top: 0;
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border: 2px solid var(--fg);
  border-radius: 50%;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.25rem;
  line-height: 1;
}

.steps h3 {
  padding-top: 0.6rem;
}

.steps p {
  margin-top: 0.6rem;
  color: var(--muted);
  max-width: 34rem;
}

@media (min-width: 52rem) {
  .steps {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .steps li {
    padding-left: 0;
    padding-top: 4.75rem;
  }

  .steps li:not(:last-child)::after {
    left: 3.75rem;
    right: calc(-1 * var(--step-gap) + 0.75rem);
    top: 23px;
    bottom: auto;
    width: auto;
    height: 2px;
  }

  .steps h3 {
    padding-top: 0;
  }
}

/* Features -------------------------------------------------------------- */

.features {
  display: grid;
  margin: clamp(2.5rem, 5vw, 3.5rem) 0 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--rule);
}

.features li {
  padding: 2rem 0;
  border-bottom: 1px solid var(--rule);
}

.features p {
  margin-top: 0.6rem;
  color: var(--muted);
}

.icon {
  width: 28px;
  height: 28px;
  margin-bottom: 1.25rem;
  color: var(--fg);
}

.icon-stroke,
.icon-ink-stroke {
  fill: none;
  stroke-width: 1.75;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.icon-stroke {
  stroke: currentColor;
}

.icon-ink-stroke {
  stroke: var(--coral);
}

.icon-ink {
  fill: var(--coral);
}

.icon-fill {
  fill: currentColor;
}

.icon-tip {
  fill: var(--plug);
}

@media (min-width: 40rem) {
  .features {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 3rem;
  }
}

@media (min-width: 64rem) {
  .features {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    column-gap: 3.5rem;
  }

  .features li {
    padding: 2.5rem 0;
  }
}

/* Requirements ---------------------------------------------------------- */

.reqs {
  display: grid;
  gap: 1rem;
  margin-top: clamp(2.5rem, 5vw, 3.5rem);
}

.req {
  padding: 1.75rem 1.5rem;
  border: 1px solid var(--rule-strong);
  border-radius: 12px;
  background: var(--surface);
}

.req h3 {
  font-size: 1.25rem;
}

.req ul {
  margin: 0.9rem 0 0;
  padding: 0;
  list-style: none;
  color: var(--muted);
  font-size: 1rem;
}

.req li {
  position: relative;
  padding-left: 1.1rem;
}

.req li + li {
  margin-top: 0.5rem;
}

.req li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.72em;
  width: 0.45rem;
  height: 2px;
  background: var(--coral);
}

@media (min-width: 40rem) {
  .reqs {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 64rem) {
  .reqs {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

/* FAQ ------------------------------------------------------------------- */

.faq-inner {
  display: grid;
  gap: clamp(2rem, 4vw, 3rem);
}

@media (min-width: 60rem) {
  .faq-inner {
    grid-template-columns: minmax(0, 4fr) minmax(0, 7fr);
    align-items: start;
  }
}

.faq {
  border-top: 1px solid var(--rule);
}

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

.faq summary {
  position: relative;
  display: block;
  padding: 1.35rem 2.5rem 1.35rem 0;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.1875rem;
  line-height: 1.35;
  cursor: pointer;
  list-style: none;
}

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

.faq summary::before,
.faq summary::after {
  content: "";
  position: absolute;
  right: 0.25rem;
  top: 50%;
  width: 14px;
  height: 2px;
  background: currentColor;
  transition: transform 0.2s ease;
}

.faq summary::after {
  transform: rotate(90deg);
}

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

.faq summary:hover {
  color: var(--link);
}

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

@media (prefers-reduced-motion: reduce) {
  .faq summary::before,
  .faq summary::after {
    transition: none;
  }
}

/* Footer ---------------------------------------------------------------- */

.site-footer {
  --link: var(--coral);
  background: var(--night);
  color: var(--paper);
  border-top: 1px solid rgba(250, 250, 248, 0.12);
}

.footer-inner {
  display: grid;
  gap: 1.5rem;
  padding-block: clamp(3rem, 6vw, 4.5rem);
}

.footer-brand {
  justify-self: start;
  border-radius: 4px;
}

.footer-brand img {
  height: 28px;
  width: auto;
}

.footer-status {
  font-family: var(--font-display);
  font-weight: 500;
}

.footer-legal {
  display: grid;
  gap: 0.4rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(250, 250, 248, 0.14);
  color: var(--mist);
  font-size: 0.875rem;
}

.footer-legal p:last-child {
  max-width: 48rem;
}

.site-footer ::selection {
  background: var(--coral);
  color: var(--ink);
}
