/* Inkpilot website. One shared stylesheet, no build step.
   Colors come from the app (ios/Inkpilot/Design/Theme.swift). */

:root {
  color-scheme: light dark;

  /* Brand */
  --ink: #453ddb;
  --ink-strong: #2b218c;
  --violet: #7d40ed;
  --paper: #fffdf6;
  --paper-edge: #dbd6cc;

  /* Feature colors: --x is the swatch, --x-text is readable text on the page */
  --fill: #4d45e6;
  --fill-text: #3a33c9;
  --write: #0d9487;
  --write-text: #0a7368;
  --letters: #e6800f;
  --letters-text: #9a5205;
  --chat: #7d3bed;
  --chat-text: #6526d0;
  --hand: #e03366;
  --hand-text: #b51f4c;
  --machine: #268cf2;
  --machine-text: #1764b8;
  --success: #21b366;
  --success-text: #137a45;

  /* Surfaces and text */
  --bg: #fbfaf7;
  --bg-soft: #f3f1fb;
  --surface: #ffffff;
  --surface-2: #f6f5fb;
  --text: #17162b;
  --muted: #55546b;
  --line: rgba(23, 22, 43, 0.1);
  --line-strong: rgba(23, 22, 43, 0.18);
  --link: #3a33c9;
  --focus: #7d40ed;
  --shadow: 0 1px 2px rgba(23, 22, 43, 0.05), 0 8px 24px rgba(23, 22, 43, 0.06);
  --shadow-lg: 0 30px 60px -24px rgba(43, 33, 140, 0.45);
  --hero-glow: rgba(125, 64, 237, 0.16);
  --tint: 0.12;

  --font: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-round: ui-rounded, "SF Pro Rounded", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-mono: ui-monospace, "SF Mono", SFMono-Regular, Menlo, Consolas, monospace;

  --radius: 22px;
  --radius-sm: 14px;
  --wrap: 1120px;
  --gutter: 20px;

  /* Line drawings (plotter, Wi-Fi box, phone) */
  --ill-stroke: #3a3955;
  --ill-body: #ffffff;
  --ill-soft: #eceaf6;
  --ill-paper: #fffdf6;
  --ill-ink: #453ddb;
  --ill-phone: #1c1b29;
  --ill-phone-edge: #1c1b29;
  --ill-screen: #fbfaf7;
  --ill-sticker: #ffffff;
}

@media (prefers-color-scheme: dark) {
  :root {
    --ink: #8782ff;
    --ink-strong: #b9b6ff;
    --fill-text: #a29dff;
    --write-text: #4fd1c1;
    --letters-text: #ffb562;
    --chat-text: #c3a2ff;
    --hand-text: #ff8fb0;
    --machine-text: #7dbcff;
    --success-text: #5fd897;

    --bg: #0e0d18;
    --bg-soft: #15132a;
    --surface: #191829;
    --surface-2: #211f35;
    --text: #f2f1fa;
    --muted: #b0afc6;
    --line: rgba(255, 255, 255, 0.1);
    --line-strong: rgba(255, 255, 255, 0.18);
    --link: #a9a5ff;
    --focus: #b9a2ff;
    --shadow: 0 1px 2px rgba(0, 0, 0, 0.4), 0 8px 24px rgba(0, 0, 0, 0.35);
    --shadow-lg: 0 30px 60px -24px rgba(0, 0, 0, 0.7);
    --hero-glow: rgba(135, 130, 255, 0.18);
    --tint: 0.2;

    --ill-stroke: #c9c8dc;
    --ill-body: #232138;
    --ill-soft: #2c2a44;
    --ill-paper: #ece9df;
    --ill-phone: #08070f;
    --ill-phone-edge: #4a4866;
    --ill-screen: #15132a;
    --ill-sticker: #f4f2ea;
  }
}

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

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

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

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    transition: none !important;
    animation: none !important;
  }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

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

img {
  height: auto;
}

h1,
h2,
h3,
h4 {
  font-family: var(--font-round);
  line-height: 1.15;
  letter-spacing: -0.01em;
  margin: 0 0 0.5em;
  text-wrap: balance;
}

h1 {
  font-size: clamp(2.25rem, 5.6vw, 3.75rem);
  font-weight: 800;
  letter-spacing: -0.025em;
}

h2 {
  font-size: clamp(1.75rem, 3.6vw, 2.5rem);
  font-weight: 800;
}

h3 {
  font-size: 1.35rem;
  font-weight: 700;
}

p {
  margin: 0 0 1em;
}

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

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

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

code,
kbd {
  font-family: var(--font-mono);
  font-size: 0.9em;
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 0.08em 0.38em;
  overflow-wrap: anywhere;
}

strong {
  font-weight: 650;
}

[hidden] {
  display: none !important;
}

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

.skip-link {
  position: absolute;
  left: 12px;
  top: -60px;
  z-index: 100;
  background: var(--surface);
  color: var(--text);
  padding: 10px 16px;
  border-radius: 10px;
  box-shadow: var(--shadow);
  font-weight: 600;
}

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

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

@media (max-width: 400px) {
  :root {
    --gutter: 16px;
  }
}

/* ---------- Shipping banner (above the header on every page) ---------- */

.promo-bar {
  background: linear-gradient(90deg, #453ddb, #7d40ed);
  color: #fff;
  font-size: 0.92rem;
  font-weight: 600;
  line-height: 1.4;
}

.promo-bar p {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 2px 14px;
  min-height: 40px;
  margin: 0;
  padding-block: 8px;
  text-align: center;
}

.promo-bar .promo-text {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.promo-bar svg {
  width: 18px;
  height: 18px;
  flex: none;
}

.promo-bar a {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: #fff;
  text-decoration-color: rgba(255, 255, 255, 0.6);
}

.promo-bar a:hover {
  text-decoration-color: #fff;
}

.promo-bar a svg {
  width: 16px;
  height: 16px;
}

.promo-bar :focus-visible {
  outline-color: #fff;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 64px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  text-decoration: none;
  font-family: var(--font-round);
  font-weight: 800;
  font-size: 1.2rem;
  letter-spacing: -0.01em;
}

.brand img {
  width: 36px;
  height: 36px;
  border-radius: 9px;
  box-shadow: 0 2px 8px rgba(69, 61, 219, 0.3);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 4px;
}

.site-nav a {
  color: var(--muted);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  padding: 8px 12px;
  border-radius: 10px;
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
  color: var(--text);
  background: var(--surface-2);
}

.site-nav a.nav-shop,
.menu-panel a.nav-shop {
  color: var(--ink);
}

/* Mobile menu: a <details> element, so it works without JavaScript */
.menu {
  display: none;
  position: relative;
}

.menu summary {
  list-style: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  cursor: pointer;
  color: var(--text);
  border: 1px solid var(--line);
  background: var(--surface);
}

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

.menu summary svg {
  width: 22px;
  height: 22px;
}

.menu .icon-close {
  display: none;
}

.menu[open] .icon-open {
  display: none;
}

.menu[open] .icon-close {
  display: block;
}

.menu-panel {
  position: absolute;
  right: 0;
  top: calc(100% + 10px);
  width: min(260px, calc(100vw - 32px));
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow);
  padding: 8px;
  display: grid;
}

.menu-panel a {
  color: var(--text);
  text-decoration: none;
  font-weight: 600;
  padding: 12px 14px;
  border-radius: 10px;
}

.menu-panel a:hover,
.menu-panel a[aria-current="page"] {
  background: var(--surface-2);
}

@media (max-width: 760px) {
  .site-nav {
    display: none;
  }
  .menu {
    display: block;
  }
}

/* ---------- Buttons and badges ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 12px 22px;
  border-radius: 14px;
  font-weight: 700;
  font-size: 1rem;
  text-decoration: none;
  border: 1px solid transparent;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-primary {
  background: linear-gradient(135deg, #453ddb, #7d40ed);
  color: #fff;
  box-shadow: 0 8px 20px -8px rgba(69, 61, 219, 0.7);
}

.btn-secondary {
  background: var(--surface);
  color: var(--text);
  border-color: var(--line-strong);
}

.btn svg {
  width: 18px;
  height: 18px;
  flex: none;
}

.store-badge {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-height: 56px;
  padding: 8px 20px 8px 14px;
  border-radius: 16px;
  background: var(--text);
  color: var(--bg);
}

.store-badge svg {
  width: 28px;
  height: 28px;
  flex: none;
}

.store-badge span {
  display: grid;
  line-height: 1.15;
}

.store-badge small {
  font-size: 0.75rem;
  opacity: 0.8;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.store-badge b {
  font-family: var(--font-round);
  font-size: 1.15rem;
  font-weight: 700;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--ink);
  background: color-mix(in srgb, var(--ink) 12%, transparent);
  padding: 6px 12px;
  border-radius: 999px;
  margin: 0 0 18px;
}

.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.8rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--surface-2);
  color: var(--muted);
  border: 1px solid var(--line);
}

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

.section {
  padding-block: clamp(64px, 9vw, 112px);
}

.section-alt {
  background: var(--bg-soft);
  border-block: 1px solid var(--line);
}

.section-first {
  padding-top: clamp(36px, 5vw, 56px);
}

.section-head {
  max-width: 720px;
  margin: 0 auto clamp(36px, 5vw, 56px);
  text-align: center;
}

.section-head p {
  color: var(--muted);
  font-size: 1.15rem;
}

.lead {
  font-size: clamp(1.1rem, 2vw, 1.25rem);
  color: var(--muted);
  max-width: 38em;
}

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

.hero {
  position: relative;
  overflow: hidden;
  padding-block: clamp(48px, 7vw, 96px) clamp(56px, 8vw, 104px);
  background:
    radial-gradient(60% 60% at 85% 20%, var(--hero-glow), transparent 70%),
    radial-gradient(50% 50% at 10% 0%, color-mix(in srgb, var(--ink) 10%, transparent), transparent 70%);
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  align-items: center;
  gap: clamp(32px, 5vw, 64px);
}

.hero h1 {
  margin-bottom: 20px;
}

.hero h1 .accent {
  background: linear-gradient(120deg, #453ddb, #7d40ed);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

@media (prefers-color-scheme: dark) {
  .hero h1 .accent {
    background: linear-gradient(120deg, #a29dff, #c3a2ff);
    -webkit-background-clip: text;
    background-clip: text;
  }
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin: 28px 0 16px;
}

.hero-note {
  color: var(--muted);
  font-size: 0.95rem;
  margin: 0;
}

.hero-phones {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  min-height: 0;
}

.hero-phones .phone-back {
  position: absolute;
  right: 4%;
  top: 9%;
  transform: rotate(6deg);
  width: min(250px, 42%);
  opacity: 0.96;
}

.hero-phones .phone-front {
  position: relative;
  z-index: 1;
  transform: translateX(-12%) rotate(-3deg);
}

@media (max-width: 900px) {
  .hero-grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .hero-phones .phone-back {
    display: none;
  }
  .hero-phones .phone-front {
    transform: none;
  }
}

/* ---------- iPhone frame ---------- */

.phone {
  width: min(290px, 76vw);
  padding: 3.3%;
  border-radius: 16% / 7.4%;
  background: linear-gradient(150deg, #3a3a46, #101016 40%, #26262f);
  box-shadow: var(--shadow-lg), inset 0 0 0 1.5px rgba(255, 255, 255, 0.12);
  flex: none;
}

.phone .screen {
  position: relative;
  border-radius: 12.6% / 5.8%;
  overflow: hidden;
  background: var(--paper);
}

.phone .screen img {
  display: block;
  width: 100%;
  height: auto;
}

/* Dynamic Island */
.phone .screen::after {
  content: "";
  position: absolute;
  top: 1.25%;
  left: 50%;
  width: 28.6%;
  height: 3.85%;
  transform: translateX(-50%);
  background: #050507;
  border-radius: 999px;
}

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

.features {
  display: grid;
  gap: clamp(56px, 8vw, 96px);
}

.feature {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(28px, 5vw, 72px);
}

.feature:nth-child(even) .feature-media {
  order: -1;
}

.feature-media {
  display: flex;
  justify-content: center;
  position: relative;
}

.feature-media::before {
  content: "";
  position: absolute;
  inset: 8% 6%;
  border-radius: 40px;
  background: color-mix(in srgb, var(--c, var(--ink)) calc(var(--tint) * 100%), transparent);
  transform: rotate(-4deg);
}

.feature-media .phone {
  position: relative;
  width: min(270px, 66vw);
}

.feature-label {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  color: var(--c-text, var(--ink));
  margin-bottom: 14px;
}

.icon-badge {
  display: inline-grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: var(--c, var(--ink));
  color: #fff;
  flex: none;
}

.icon-badge svg {
  width: 22px;
  height: 22px;
}

.feature h3 {
  font-size: clamp(1.6rem, 3vw, 2.1rem);
  font-weight: 800;
}

.feature p {
  color: var(--muted);
  font-size: 1.08rem;
}

.feature p:last-child {
  margin-bottom: 0;
}

.checks {
  list-style: none;
  padding: 0;
  margin: 18px 0 0;
  display: grid;
  gap: 10px;
}

.checks li {
  position: relative;
  padding-left: 30px;
}

.checks li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.32em;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: color-mix(in srgb, var(--c, var(--ink)) 18%, transparent);
}

.checks li::after {
  content: "";
  position: absolute;
  left: 6px;
  top: 0.52em;
  width: 6px;
  height: 9px;
  border: solid var(--c-text, var(--ink));
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

.c-fill { --c: var(--fill); --c-text: var(--fill-text); }
.c-write { --c: var(--write); --c-text: var(--write-text); }
.c-letters { --c: var(--letters); --c-text: var(--letters-text); }
.c-chat { --c: var(--chat); --c-text: var(--chat-text); }
.c-hand { --c: var(--hand); --c-text: var(--hand-text); }
.c-machine { --c: var(--machine); --c-text: var(--machine-text); }

@media (max-width: 860px) {
  .feature {
    grid-template-columns: minmax(0, 1fr);
  }
  .feature:nth-child(even) .feature-media {
    order: 0;
  }
  .feature-media .phone {
    width: min(240px, 64vw);
  }
}

/* ---------- Steps ---------- */

.steps {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  counter-reset: step;
}

.steps li {
  counter-increment: step;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px 24px 24px;
  box-shadow: var(--shadow);
}

.steps li::before {
  content: counter(step);
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 14px;
  margin-bottom: 18px;
  background: linear-gradient(135deg, #453ddb, #7d40ed);
  color: #fff;
  font-family: var(--font-round);
  font-weight: 800;
  font-size: 1.2rem;
}

.steps h3 {
  font-size: 1.2rem;
}

.steps p {
  color: var(--muted);
  margin: 0;
}

.center-link {
  text-align: center;
  margin: 36px 0 0;
}

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

/* ---------- Pricing ---------- */

.trial-banner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  text-align: left;
  max-width: 760px;
  margin: 0 auto 32px;
  padding: 14px 20px;
  border-radius: var(--radius-sm);
  background: color-mix(in srgb, var(--success) 12%, var(--surface));
  border: 1px solid color-mix(in srgb, var(--success) 30%, transparent);
  color: var(--text);
  font-weight: 600;
}

.trial-banner svg {
  width: 22px;
  height: 22px;
  color: var(--success-text);
  flex: none;
}

.plans {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.plan {
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px 22px 24px;
  box-shadow: var(--shadow);
}

.plan h3 {
  font-size: 1.3rem;
  margin-bottom: 2px;
}

.plan-tagline {
  color: var(--muted);
  font-size: 0.95rem;
  margin: 0 0 18px;
}

.price {
  display: flex;
  align-items: baseline;
  gap: 6px;
  margin: 0 0 6px;
  font-family: var(--font-round);
}

.price b {
  font-size: 2.2rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.price span {
  color: var(--muted);
  font-weight: 600;
}

.usage {
  font-weight: 700;
  color: var(--ink);
  margin: 0 0 16px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line);
}

.plan .checks {
  margin: 0;
  font-size: 0.97rem;
}

.plan .checks li.no::before {
  background: color-mix(in srgb, var(--muted) 16%, transparent);
}

.plan .checks li.no::after {
  border: 0;
  width: 8px;
  height: 2px;
  left: 5px;
  top: 0.82em;
  background: var(--muted);
  transform: none;
}

.plan-featured {
  border: 2px solid var(--ink);
}

.fine-print {
  max-width: 760px;
  margin: 32px auto 0;
  color: var(--muted);
  font-size: 0.95rem;
  text-align: center;
}

.fine-print p {
  margin-bottom: 0.6em;
}

@media (max-width: 1040px) {
  .plans {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 560px) {
  .plans {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* ---------- Explainer card ---------- */

.explain {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 18px;
  align-items: start;
  max-width: 760px;
  margin: 28px auto 0;
  padding: 22px;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--line);
}

.explain h3 {
  font-size: 1.1rem;
  margin-bottom: 6px;
}

.explain p {
  color: var(--muted);
  margin: 0;
}

@media (max-width: 480px) {
  .explain {
    grid-template-columns: minmax(0, 1fr);
  }
}

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

.faq {
  max-width: 800px;
  margin-inline: auto;
  display: grid;
  gap: 12px;
}

.faq details {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 0 20px;
}

.faq summary {
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 18px 0;
  font-weight: 700;
  font-size: 1.05rem;
}

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

.faq summary::after {
  content: "";
  flex: none;
  width: 10px;
  height: 10px;
  border: solid var(--muted);
  border-width: 0 2px 2px 0;
  transform: rotate(45deg) translateY(-3px);
  transition: transform 0.2s ease;
}

.faq details[open] summary::after {
  transform: rotate(225deg) translateY(-2px);
}

.faq .answer {
  padding: 0 0 18px;
  color: var(--muted);
}

.faq .answer p:last-child,
.faq .answer ol:last-child,
.faq .answer ul:last-child {
  margin-bottom: 0;
}

.faq .answer ol,
.faq .answer ul {
  padding-left: 1.3em;
}

.faq .answer li {
  margin-bottom: 0.35em;
}

/* ---------- Pages (setup, support, legal) ---------- */

.page-hero {
  padding-block: clamp(48px, 7vw, 88px) clamp(28px, 4vw, 44px);
  background:
    radial-gradient(60% 80% at 90% 0%, var(--hero-glow), transparent 70%);
  border-bottom: 1px solid var(--line);
}

.page-hero h1 {
  font-size: clamp(2.1rem, 5vw, 3.1rem);
  margin-bottom: 14px;
}

.page-hero .lead {
  margin: 0;
}

.meta {
  color: var(--muted);
  font-size: 0.95rem;
  margin: 14px 0 0;
}

.doc {
  max-width: 780px;
  margin-inline: auto;
  padding-block: clamp(36px, 5vw, 56px) clamp(64px, 8vw, 96px);
}

.doc h2 {
  font-size: clamp(1.45rem, 2.6vw, 1.75rem);
  margin-top: 2.2em;
  padding-top: 0.2em;
}

.doc h2:first-child {
  margin-top: 0;
}

.doc h3 {
  font-size: 1.2rem;
  margin-top: 1.6em;
}

.doc ul,
.doc ol {
  padding-left: 1.3em;
  margin: 0 0 1em;
}

.doc li {
  margin-bottom: 0.45em;
}

.doc li::marker {
  color: var(--ink);
  font-weight: 700;
}

.callout {
  border-radius: var(--radius);
  padding: 22px 24px;
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  margin: 0 0 2em;
}

.callout h2,
.callout h3 {
  margin-top: 0;
  font-size: 1.2rem;
}

.callout ul:last-child,
.callout ol:last-child,
.callout p:last-child {
  margin-bottom: 0;
}

.callout-note {
  background: color-mix(in srgb, var(--ink) 8%, var(--surface));
  border-color: color-mix(in srgb, var(--ink) 22%, transparent);
  box-shadow: none;
}

.callout-warn {
  background: color-mix(in srgb, var(--letters) 10%, var(--surface));
  border-color: color-mix(in srgb, var(--letters) 30%, transparent);
  box-shadow: none;
}

.toc {
  margin: 0 0 2.4em;
  padding: 18px 22px;
  border-radius: var(--radius-sm);
  background: var(--surface-2);
  border: 1px solid var(--line);
}

.toc p {
  font-weight: 700;
  margin: 0 0 8px;
}

.toc ol {
  margin: 0;
  columns: 2 220px;
  column-gap: 32px;
}

.toc li {
  break-inside: avoid;
  margin-bottom: 0.3em;
}

.path {
  font-weight: 650;
  color: var(--text);
}

.cmd {
  margin: 0.6em 0 1.2em;
  padding: 14px 16px;
  border-radius: 12px;
  background: #15132a;
  color: #f2f1fa;
  font-family: var(--font-mono);
  font-size: 0.92rem;
  line-height: 1.5;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  border: 1px solid var(--line);
}

@media (prefers-color-scheme: dark) {
  .cmd {
    background: #08070f;
  }
}

/* Setup page */

.choice-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin: 0 0 2.4em;
}

.choice {
  display: block;
  padding: 20px;
  border-radius: var(--radius-sm);
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  color: var(--text);
  text-decoration: none;
}

.choice:hover {
  border-color: var(--ink);
}

.choice b {
  display: block;
  font-family: var(--font-round);
  font-size: 1.15rem;
  margin-bottom: 4px;
}

.choice span {
  color: var(--muted);
  font-size: 0.97rem;
}

@media (max-width: 560px) {
  .choice-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

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

@media (max-width: 700px) {
  .choice-grid-3 {
    grid-template-columns: minmax(0, 1fr);
  }
}

.downloads {
  display: grid;
  gap: 10px;
  margin: 0.6em 0 1.4em;
  padding: 0;
  list-style: none;
}

.download {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  border-radius: 14px;
  background: var(--surface);
  border: 1px solid var(--line-strong);
  color: var(--text);
  text-decoration: none;
}

.download:hover {
  border-color: var(--ink);
}

.download svg {
  width: 22px;
  height: 22px;
  color: var(--ink);
  flex: none;
}

.download span {
  display: grid;
  min-width: 0;
}

.download b {
  font-family: var(--font-mono);
  font-size: 0.95rem;
  overflow-wrap: anywhere;
}

.download small {
  color: var(--muted);
  font-size: 0.88rem;
}

.steps-list {
  counter-reset: s;
  list-style: none;
  padding: 0 !important;
}

.steps-list > li {
  counter-increment: s;
  position: relative;
  padding-left: 46px;
  margin-bottom: 1.1em;
}

.steps-list > li::before {
  content: counter(s);
  position: absolute;
  left: 0;
  top: 0;
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 10px;
  background: color-mix(in srgb, var(--ink) 14%, transparent);
  color: var(--ink);
  font-weight: 800;
  font-family: var(--font-round);
  font-size: 0.95rem;
}

/* Support page */

.contact-card {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.contact-card p {
  margin: 0;
}

.quick-links {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin: 0 0 2.4em;
}

@media (max-width: 640px) {
  .quick-links {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* 404 */

.not-found {
  min-height: 60vh;
  display: grid;
  place-items: center;
  text-align: center;
  padding-block: 80px;
}

.not-found .big {
  font-family: var(--font-round);
  font-weight: 800;
  font-size: clamp(4rem, 14vw, 7rem);
  line-height: 1;
  margin: 0 0 12px;
  background: linear-gradient(120deg, #453ddb, #7d40ed);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.not-found .hero-actions {
  justify-content: center;
}

/* ---------- Shop: product cards ---------- */

.products {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  max-width: 960px;
  margin-inline: auto;
}

.product {
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.product-media {
  padding: 22px 24px 14px;
  background: color-mix(in srgb, var(--ink) 7%, var(--surface-2));
  border-bottom: 1px solid var(--line);
}

.product-media svg {
  display: block;
  width: 100%;
  height: auto;
}

.product-body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 22px 24px 24px;
}

.product-tag {
  align-self: flex-start;
  margin: 0 0 10px;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--ink);
  background: color-mix(in srgb, var(--ink) 12%, transparent);
}

.product-name {
  font-size: 1.55rem;
  font-weight: 800;
  margin: 0 0 4px;
}

.product .price {
  margin: 0 0 12px;
}

.product .price span {
  font-size: 0.95rem;
}

.product-for {
  color: var(--muted);
}

.product-for:last-child {
  margin-bottom: 0;
}

.product-sub {
  font-size: 1rem;
  margin: 6px 0 0;
}

.product .checks {
  margin-top: 12px;
  font-size: 0.98rem;
}

.buy {
  margin-top: auto;
  padding-top: 22px;
}

.btn-buy {
  width: 100%;
}

.btn-buy .i-ready {
  display: none;
}

.btn-buy.is-ready .i-ready {
  display: block;
}

.btn-buy.is-ready .i-soon {
  display: none;
}

/* Before the store is connected, buy buttons have no link and say Coming soon */
.btn-buy[aria-disabled="true"] {
  background: var(--surface-2);
  color: var(--muted);
  border-color: var(--line-strong);
  box-shadow: none;
  cursor: not-allowed;
}

.btn-buy[aria-disabled="true"]:hover {
  transform: none;
}

.ship-note {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 0.9rem;
  text-align: center;
}

.ship-facts {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px 26px;
  max-width: 960px;
  margin: 28px auto 0;
  padding: 0;
  color: var(--muted);
  font-weight: 600;
  font-size: 0.97rem;
}

.ship-facts li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.ship-facts svg {
  width: 20px;
  height: 20px;
  flex: none;
  color: var(--success-text);
}

.shop-contact {
  max-width: 800px;
  margin: 28px auto 0;
}

.policy-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px 22px;
  margin: 14px 0 0;
  font-size: 0.95rem;
}

@media (max-width: 720px) {
  .products {
    grid-template-columns: minmax(0, 1fr);
    max-width: 520px;
  }
}

@media (max-width: 400px) {
  .product-media {
    padding: 16px 16px 10px;
  }
  .product-body {
    padding: 20px 18px 20px;
  }
}

/* ---------- Shop: comparison table ---------- */

.table-wrap {
  max-width: 860px;
  margin-inline: auto;
  overflow-x: auto;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.compare {
  width: 100%;
  border-collapse: collapse;
}

.compare th,
.compare td {
  padding: 14px 18px;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid var(--line);
}

.compare tbody tr:last-child th,
.compare tbody tr:last-child td {
  border-bottom: 0;
}

.compare thead th {
  font-family: var(--font-round);
  font-size: 1.1rem;
  background: var(--surface-2);
}

.compare tbody th {
  width: 32%;
  color: var(--muted);
  font-weight: 600;
}

@media (max-width: 560px) {
  .compare th,
  .compare td {
    padding: 10px 12px;
    font-size: 0.92rem;
  }
  .compare thead th {
    font-size: 1rem;
  }
  .compare tbody th {
    width: 30%;
  }
}

/* ---------- How it connects (home page) ---------- */

.connect {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  align-items: center;
  gap: clamp(28px, 5vw, 56px);
}

.connect-figure {
  margin: 0;
  padding: clamp(14px, 3vw, 28px);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.connect-figure svg {
  display: block;
  width: 100%;
  height: auto;
}

.connect .steps-list {
  margin: 0;
}

.connect .steps-list > li:last-child {
  margin-bottom: 0;
}

.connect .steps-list p {
  margin: 0;
  color: var(--muted);
}

.connect .steps-list strong {
  color: var(--text);
}

.mini-cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: clamp(32px, 5vw, 48px);
}

.mini-card {
  padding: 20px 22px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
}

.mini-card h3 {
  font-size: 1.08rem;
  margin-bottom: 6px;
}

.mini-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.98rem;
}

@media (max-width: 860px) {
  .connect,
  .mini-cards {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* ---------- Line drawings ---------- */

.ill-body,
.ill-soft,
.ill-line,
.ill-paper,
.ill-sticker {
  stroke: var(--ill-stroke);
  stroke-width: 2;
  stroke-linejoin: round;
  stroke-linecap: round;
}

.ill-body {
  fill: var(--ill-body);
}

.ill-soft {
  fill: var(--ill-soft);
}

.ill-line {
  fill: none;
}

.ill-paper {
  fill: var(--ill-paper);
  stroke-width: 1.5;
}

.ill-detail {
  fill: none;
  stroke: var(--ill-stroke);
  stroke-width: 1.5;
  stroke-linecap: round;
  opacity: 0.45;
}

.ill-ink {
  fill: none;
  stroke: var(--ill-ink);
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.ill-pen {
  fill: var(--ink);
  stroke: var(--ill-stroke);
  stroke-width: 1.5;
  stroke-linejoin: round;
}

.ill-dot {
  fill: var(--ill-stroke);
}

.ill-led {
  fill: var(--success);
}

.ill-wave {
  fill: none;
  stroke: var(--ink);
  stroke-width: 3.5;
  stroke-linecap: round;
}

.ill-cable {
  fill: none;
  stroke: var(--ill-stroke);
  stroke-width: 3;
  stroke-linecap: round;
}

.ill-phone {
  fill: var(--ill-phone);
  stroke: var(--ill-phone-edge);
  stroke-width: 2;
}

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

.ill-island {
  fill: #050507;
}

.ill-ui {
  fill: var(--line-strong);
}

.ill-ui-card {
  fill: var(--surface);
  stroke: var(--line-strong);
  stroke-width: 1;
}

.ill-ui-btn {
  fill: var(--ink);
}

.ill-sticker {
  fill: var(--ill-sticker);
  stroke-width: 1.5;
}

.ill-qr {
  fill: #17162b;
}

.ill-qr-o {
  fill: none;
  stroke: #17162b;
  stroke-width: 2;
}

.ill-label {
  fill: var(--muted);
  font-family: var(--font);
  font-size: 20px;
  font-weight: 650;
  text-anchor: middle;
}

.ill-label-sm {
  font-size: 16px;
}

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

.site-footer {
  border-top: 1px solid var(--line);
  background: var(--bg-soft);
  padding-block: 48px 32px;
  font-size: 0.95rem;
}

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

.footer-brand p {
  color: var(--muted);
  margin: 12px 0 0;
  max-width: 30em;
}

.footer-col p {
  font-weight: 700;
  margin: 0 0 10px;
}

.footer-col ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 8px;
}

.footer-col a,
.footer-brand a.mail {
  color: var(--muted);
  text-decoration: none;
}

.footer-col a:hover,
.footer-brand a.mail:hover {
  color: var(--text);
  text-decoration: underline;
}

.footer-legal {
  margin-top: 36px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.85rem;
}

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

@media (max-width: 820px) {
  .footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .footer-brand {
    grid-column: 1 / -1;
  }
}

@media (max-width: 380px) {
  .footer-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}
