/* Tucano Time — tucanotime.com
   Hand-written, dependency-free CSS. No external fonts, no trackers. */

:root {
  --paper: #f6f0e4;
  --paper-2: #efe6d5;
  --card: #fffdf7;
  --ink: #17120f;
  --ink-soft: #423a33;
  --muted: #6a6057;
  --line: #d8cdbb;
  --line-strong: #b9a98f;
  --dark-line: #43382e;
  --orange: #f4a300;
  --orange-deep: #e95420;
  --orange-soft: #fbe6bd;
  --accent-text: #9d3f0c;
  --green: #2f6b4f;
  --wrap: 1180px;
  --gutter: clamp(1.1rem, 4vw, 2.5rem);
  --radius: 14px;
  --font-sans: "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, "Liberation Mono", monospace;
  --shadow-hard: 4px 4px 0 var(--ink);
}

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

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

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

h1, h2, h3, h4 {
  margin: 0;
  font-weight: 800;
  line-height: 1.04;
  letter-spacing: -0.038em;
  text-wrap: balance;
}

h2 { font-size: clamp(2rem, 4.2vw, 3.45rem); }
h3 { font-size: 1.12rem; letter-spacing: -0.02em; }
p { margin: 0 0 1rem; }
p:last-child { margin-bottom: 0; }

a { color: inherit; text-decoration-thickness: 1.5px; text-underline-offset: 3px; }
a:hover { text-decoration-color: var(--orange-deep); }

code {
  font-family: var(--font-mono);
  font-size: 0.88em;
  background: rgba(23, 18, 15, 0.07);
  border: 1px solid rgba(23, 18, 15, 0.09);
  border-radius: 5px;
  padding: 0.08em 0.32em;
}

::selection { background: var(--orange); color: var(--ink); }

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

.section-ink :focus-visible,
.site-footer :focus-visible,
.terminal :focus-visible,
.clone-card :focus-visible { outline-color: var(--orange); }

.section-orange :focus-visible { outline-color: var(--ink); }

.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: 1rem;
  top: -100%;
  z-index: 100;
  background: var(--ink);
  color: var(--paper);
  padding: 0.7rem 1rem;
  border-radius: 0 0 8px 8px;
  font-weight: 700;
}
.skip-link:focus { top: 0; }

.copy-fallback {
  position: fixed;
  top: -1000px;
  left: 0;
}

.wrap {
  width: min(100% - (2 * var(--gutter)), var(--wrap));
  margin-inline: auto;
}

/* ---------------------------------------------------------------- header */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(246, 240, 228, 0.95);
  border-bottom: 1px solid var(--line);
  backdrop-filter: saturate(140%) blur(12px);
  -webkit-backdrop-filter: saturate(140%) blur(12px);
  transition: box-shadow 180ms ease;
}

.site-header.is-stuck { box-shadow: 0 6px 24px rgba(23, 18, 15, 0.08); }

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

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
  flex: 0 0 auto;
}

.brand-mark {
  width: 34px;
  height: auto;
  image-rendering: pixelated;
}

.brand-word {
  font-size: 1.24rem;
  font-weight: 800;
  letter-spacing: -0.045em;
}

.brand-word strong {
  color: var(--accent-text);
  font-weight: 800;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: clamp(0.9rem, 2vw, 1.55rem);
  font-size: 0.92rem;
  font-weight: 600;
}

.site-nav > a:not(.nav-github) {
  text-decoration: none;
  padding: 0.4rem 0;
  border-bottom: 2px solid transparent;
}
.site-nav > a:not(.nav-github):hover { border-bottom-color: var(--orange-deep); }

.nav-github {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  border: 1.5px solid var(--ink);
  border-radius: 9px;
  padding: 0.42rem 0.75rem;
  text-decoration: none;
  background: var(--card);
  box-shadow: 2px 2px 0 var(--ink);
  transition: transform 120ms ease, box-shadow 120ms ease;
}
.nav-github:hover {
  transform: translate(1px, 1px);
  box-shadow: 1px 1px 0 var(--ink);
  text-decoration: none;
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1.5px solid var(--ink);
  border-radius: 9px;
  background: var(--card);
  cursor: pointer;
  padding: 0;
  place-items: center;
}

.nav-toggle-bars,
.nav-toggle-bars::before,
.nav-toggle-bars::after {
  display: block;
  width: 19px;
  height: 2px;
  background: var(--ink);
  position: relative;
}
.nav-toggle-bars::before,
.nav-toggle-bars::after {
  content: "";
  position: absolute;
  left: 0;
}
.nav-toggle-bars::before { top: -6px; }
.nav-toggle-bars::after { top: 6px; }

.nav-toggle[aria-expanded="true"] .nav-toggle-bars { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars::before { top: 0; transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars::after { top: 0; transform: rotate(-45deg); }
.nav-toggle-bars,
.nav-toggle-bars::before,
.nav-toggle-bars::after { transition: transform 150ms ease; }

/* ------------------------------------------------------------------ hero */

.hero {
  position: relative;
  padding: clamp(2.5rem, 5.5vw, 4.75rem) 0 2.5rem;
  background:
    radial-gradient(circle at 1px 1px, rgba(23, 18, 15, 0.11) 1px, transparent 1.6px) 0 0 / 26px 26px,
    radial-gradient(900px 480px at 82% 22%, rgba(244, 163, 0, 0.2), transparent 62%),
    var(--paper);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.03fr 1fr;
  gap: clamp(2.2rem, 5vw, 4.5rem);
  align-items: center;
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  margin-bottom: 1.2rem;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--accent-text);
}

.pulse {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--green);
  flex: 0 0 auto;
  box-shadow: 0 0 0 4px rgba(47, 107, 79, 0.16);
}

.hero h1 {
  font-size: clamp(2.75rem, 5.6vw, 5rem);
  letter-spacing: -0.052em;
  line-height: 0.96;
  max-width: 13ch;
  margin-bottom: 1.4rem;
}

.hero h1 em {
  position: relative;
  display: inline-block;
  font-style: normal;
  white-space: nowrap;
  isolation: isolate;
}

.hero h1 em::after {
  content: "";
  position: absolute;
  z-index: -1;
  left: -0.06em;
  right: -0.06em;
  bottom: 0.03em;
  height: 0.34em;
  background: var(--orange);
  transform: rotate(-1.2deg);
  border-radius: 2px;
}

.hero-lede {
  max-width: 55ch;
  color: var(--ink-soft);
  font-size: 1.06rem;
  line-height: 1.65;
  margin-bottom: 1.8rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-bottom: 1.7rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.82rem 1.15rem;
  border: 1.5px solid var(--ink);
  border-radius: 10px;
  font-family: var(--font-sans);
  font-size: 0.95rem;
  font-weight: 700;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  box-shadow: 3px 3px 0 var(--ink);
  transition: transform 120ms ease, box-shadow 120ms ease, background 120ms ease;
}

.btn:hover {
  transform: translate(1px, 1px);
  box-shadow: 2px 2px 0 var(--ink);
  text-decoration: none;
}
.btn:active {
  transform: translate(3px, 3px);
  box-shadow: 0 0 0 var(--ink);
}

.btn-primary { background: var(--orange); color: var(--ink); }
.btn-primary:hover { background: #ffb31a; }
.btn-secondary { background: var(--card); color: var(--ink); }
.btn-wide { width: 100%; }

.hero-checks {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem 1.25rem;
  margin: 0;
  padding: 0;
  list-style: none;
  font-family: var(--font-mono);
  font-size: 0.71rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.hero-checks li { display: flex; align-items: center; gap: 0.38rem; }
.hero-checks li::before {
  content: "✓";
  color: var(--green);
  font-size: 0.9rem;
  font-weight: 800;
}

.hero-art {
  position: relative;
  min-width: 0;
  padding-top: 1.5rem;
}

.hero-glow {
  position: absolute;
  inset: 8% -6% -8% 6%;
  background: radial-gradient(circle at 55% 45%, rgba(244, 163, 0, 0.5), transparent 65%);
  filter: blur(28px);
  z-index: 0;
  border-radius: 50%;
}

.browser img { width: 100%; }

.browser {
  position: relative;
  z-index: 1;
  border: 1.5px solid var(--ink);
  border-radius: var(--radius);
  background: var(--card);
  overflow: hidden;
}

.browser-hero {
  transform: rotate(-1.5deg);
  box-shadow: 14px 14px 0 rgba(23, 18, 15, 0.14);
}

.browser-bar {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.5rem 0.65rem;
  background: #eee4d3;
  border-bottom: 1px solid var(--line);
}

.browser-dots { display: inline-flex; gap: 4px; flex: 0 0 auto; }
.browser-dots i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  border: 1px solid #9b8c77;
  background: transparent;
}
.browser-dots i:first-child { background: var(--orange); }

.browser-url {
  flex: 1;
  min-width: 0;
  font-family: var(--font-mono);
  font-size: 0.64rem;
  color: var(--muted);
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.26rem 0.6rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.browser-local {
  flex: 0 0 auto;
  font-family: var(--font-mono);
  font-size: 0.57rem;
  font-weight: 700;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  color: var(--green);
  border: 1px solid currentColor;
  border-radius: 999px;
  padding: 0.14rem 0.42rem;
}

.hero-toucan {
  position: absolute;
  z-index: 3;
  width: clamp(96px, 13vw, 148px);
  height: auto;
  top: -3.1rem;
  right: -1.4rem;
  transform: rotate(5deg);
  image-rendering: pixelated;
  pointer-events: none;
}

.sticker {
  position: absolute;
  z-index: 4;
  padding: 0.42rem 0.72rem;
  border: 1.5px solid var(--ink);
  border-radius: 7px;
  background: var(--orange);
  color: var(--ink);
  font-family: var(--font-mono);
  font-size: 0.71rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  box-shadow: 3px 3px 0 var(--ink);
}

.sticker-yours {
  top: 21%;
  left: -2.4rem;
  transform: rotate(-6deg);
}

.sticker-price {
  bottom: -1.15rem;
  right: 1.6rem;
  background: var(--card);
  transform: rotate(2.5deg);
}

.trust-strip {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  margin: 3.4rem 0 0;
  padding: 0;
  list-style: none;
  border-block: 1px solid var(--line);
  font-family: var(--font-mono);
  font-size: 0.66rem;
  font-weight: 600;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

.trust-strip li {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.95rem 0.7rem;
  border-left: 1px solid var(--line);
  line-height: 1.3;
}
.trust-strip li:first-child { border-left: 0; padding-left: 0; }
.trust-strip span {
  color: var(--accent-text);
  font-size: 0.6rem;
  letter-spacing: 0.02em;
}

/* -------------------------------------------------------------- sections */

.section {
  padding: clamp(4rem, 8.5vw, 7.25rem) 0;
  border-top: 1px solid var(--line);
}

.section-head {
  max-width: 760px;
  margin-bottom: clamp(2.2rem, 4vw, 3.4rem);
}

.section-head-split {
  max-width: none;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: clamp(1.5rem, 4vw, 4rem);
  align-items: end;
}

.section-head-split .lede { max-width: 46ch; justify-self: end; }

.section-head h2 { margin-bottom: 0.8rem; }
.section-head .lede { font-size: 1.04rem; color: var(--ink-soft); }

.kicker {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  margin-bottom: 0.9rem;
  font-family: var(--font-mono);
  font-size: 0.71rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--accent-text);
}

.kicker::before {
  content: "";
  width: 9px;
  height: 9px;
  background: var(--orange-deep);
  flex: 0 0 auto;
}

.kicker-ink { color: var(--ink); }
.kicker-ink::before { background: var(--ink); }

.lede {
  font-size: 1.05rem;
  line-height: 1.65;
  color: var(--ink-soft);
}

.mark {
  background: linear-gradient(transparent 60%, var(--orange) 60%);
  padding: 0 0.05em;
}

/* -------------------------------------------------------------- dark band */

.section-ink {
  background:
    radial-gradient(circle at 1px 1px, rgba(246, 240, 228, 0.09) 1px, transparent 1.6px) 0 0 / 28px 28px,
    var(--ink);
  color: var(--paper);
  border-top: 0;
  border-bottom: 0;
}

.section-ink .kicker { color: var(--orange); }
.section-ink .kicker::before { background: var(--orange); }
.section-ink .lede { color: #c9bcaa; }
.section-ink h2 .mark { background: var(--orange); color: var(--ink); padding: 0 0.08em; }

.sovereignty-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: start;
}

.file-card {
  border: 1px solid var(--dark-line);
  border-radius: var(--radius);
  background: #211a15;
  overflow: hidden;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.28);
}

.file-card-bar {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.65rem 0.85rem;
  border-bottom: 1px solid var(--dark-line);
  background: #2a211b;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  color: #b2a492;
}

.file-card pre,
.terminal pre,
.clone-code pre {
  margin: 0;
  overflow-x: auto;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  line-height: 1.75;
  tab-size: 2;
}

.file-card pre { padding: 1.25rem 1.15rem; color: #e7dcca; }
.tree-dim { color: #8d7f6e; }
.tree-dir { color: var(--orange); }
.tree-file { color: #9dc3a8; }

.file-card-note {
  padding: 0 1.15rem 1.2rem;
  margin: 0;
  color: #a99b89;
  font-size: 0.82rem;
}

.promise-list {
  display: grid;
  gap: 1.45rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.promise-list li {
  display: grid;
  grid-template-columns: 2.6rem minmax(0, 1fr);
  gap: 0.9rem;
  padding-bottom: 1.45rem;
  border-bottom: 1px solid var(--dark-line);
}
.promise-list li:last-child { border-bottom: 0; padding-bottom: 0; }

.promise-num {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--orange);
  padding-top: 0.25rem;
}

.promise-list h3 { color: var(--paper); margin-bottom: 0.35rem; font-size: 1.12rem; }
.promise-list p { color: #c2b4a2; font-size: 0.94rem; line-height: 1.6; }

.sovereignty-note {
  margin-top: clamp(2rem, 4vw, 3rem);
  padding-top: 1.35rem;
  border-top: 1px solid var(--dark-line);
  max-width: 86ch;
  color: #a99b89;
  font-size: 0.84rem;
  line-height: 1.6;
}
.sovereignty-note code { color: #d8ccbc; background: rgba(255, 255, 255, 0.07); border-color: rgba(255, 255, 255, 0.1); }

/* -------------------------------------------------------------- features */

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.15rem;
}

.feature {
  background: var(--card);
  border: 1.5px solid var(--ink);
  border-radius: var(--radius);
  padding: 1.45rem 1.4rem 1.5rem;
  transition: transform 160ms ease, box-shadow 160ms ease;
}

.feature:hover {
  transform: translate(-2px, -2px);
  box-shadow: 5px 5px 0 var(--orange);
}

.feature-icon {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  margin-bottom: 1.05rem;
  background: var(--orange-soft);
  border: 1.5px solid var(--ink);
  border-radius: 10px;
  color: var(--ink);
}

.feature h3 { margin-bottom: 0.45rem; }
.feature p { color: var(--ink-soft); font-size: 0.92rem; line-height: 1.6; }
.feature code { font-size: 0.82em; }

/* ------------------------------------------------------------------ tour */

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

.tour-tabs {
  display: flex;
  gap: 0.25rem;
  margin-bottom: 1.8rem;
  border-bottom: 1px solid var(--line-strong);
  overflow-x: auto;
  scrollbar-width: thin;
}

.tour-tab {
  appearance: none;
  border: 0;
  border-bottom: 3px solid transparent;
  margin-bottom: -1px;
  padding: 0.75rem 1.05rem;
  background: transparent;
  color: var(--muted);
  font-family: var(--font-sans);
  font-size: 0.94rem;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
}

.tour-tab:hover { color: var(--ink); }
.tour-tab[aria-selected="true"] {
  color: var(--ink);
  border-bottom-color: var(--orange-deep);
}

.tour-stage {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(0, 0.85fr);
  gap: clamp(1.8rem, 4vw, 3rem);
  align-items: center;
}

.browser-tour { box-shadow: 10px 10px 0 rgba(23, 18, 15, 0.12); }
.browser-tour img { width: 100%; }

.tour-meta { padding: 0.5rem 0; }

.tour-kicker {
  margin-bottom: 0.4rem;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent-text);
}

.tour-meta h3 { font-size: clamp(1.55rem, 3vw, 2.2rem); margin-bottom: 0.75rem; }
.tour-meta p { color: var(--ink-soft); font-size: 0.98rem; line-height: 1.65; }

.dark-note {
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(0, 0.88fr);
  gap: clamp(1.8rem, 4vw, 3.2rem);
  align-items: center;
  margin-top: clamp(2.8rem, 5vw, 4rem);
  padding-top: clamp(2.2rem, 4vw, 3.2rem);
  border-top: 1px solid var(--line-strong);
}

.browser-dark { box-shadow: 8px 8px 0 rgba(23, 18, 15, 0.14); }
.dark-note-copy h3 { font-size: clamp(1.5rem, 2.8vw, 2rem); margin-bottom: 0.6rem; }
.dark-note-copy p { color: var(--ink-soft); font-size: 0.96rem; line-height: 1.65; }

.tour-foot {
  margin-top: 1.2rem;
  padding-left: 0.85rem;
  border-left: 3px solid var(--orange);
  color: var(--muted) !important;
  font-size: 0.83rem !important;
}

/* ------------------------------------------------------------- self-host */

.selfhost-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: start;
}

.selfhost-copy h2 { margin-bottom: 0.9rem; }
.selfhost-copy > .lede { margin-bottom: 2rem; }

.steps {
  display: grid;
  gap: 1.5rem;
  margin: 0 0 1.8rem;
  padding: 0;
  list-style: none;
}

.steps li {
  display: grid;
  grid-template-columns: 2.4rem minmax(0, 1fr);
  gap: 0.9rem;
}

.step-num {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border: 1.5px solid var(--ink);
  border-radius: 50%;
  background: var(--orange);
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 800;
  box-shadow: 2px 2px 0 var(--ink);
}

.steps h3 { margin-bottom: 0.3rem; font-size: 1.02rem; }
.steps p { color: var(--ink-soft); font-size: 0.92rem; line-height: 1.6; }

.selfhost-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
  font-size: 0.9rem;
  color: var(--muted);
}

.text-link {
  font-weight: 700;
  text-decoration: underline;
  text-decoration-color: var(--orange-deep);
  text-decoration-thickness: 2px;
}

.terminal {
  border: 1.5px solid var(--ink);
  border-radius: var(--radius);
  background: #14100d;
  color: #efe5d4;
  overflow: hidden;
  box-shadow: 8px 8px 0 rgba(23, 18, 15, 0.16);
}

.terminal-bar {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.6rem 0.8rem;
  background: #201913;
  border-bottom: 1px solid #3a2f26;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  color: #a99b89;
}

.terminal-bar .browser-dots i { border-color: #6a5b4b; }

.copy-btn {
  margin-left: auto;
  appearance: none;
  border: 1px solid currentColor;
  border-radius: 6px;
  background: transparent;
  color: inherit;
  padding: 0.32rem 0.55rem;
  font-family: var(--font-mono);
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
}
.copy-btn:hover { background: rgba(255, 255, 255, 0.1); }
.copy-btn.is-copied { background: var(--orange); color: var(--ink); border-color: var(--orange); }

.terminal pre { padding: 1.35rem 1.2rem; color: #f0e6d6; font-size: 0.76rem; }

.terminal-foot {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.85rem 1.2rem;
  border-top: 1px solid #3a2f26;
  color: #c3b5a3;
  font-size: 0.82rem;
}
.terminal-foot strong { color: #f0e6d6; font-weight: 600; }

.terminal-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #58bd86;
  box-shadow: 0 0 0 3px rgba(88, 189, 134, 0.15);
}

.host-facts {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  margin: 4rem 0 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--line);
}

.host-facts li {
  padding: 1.4rem 1.2rem 0 0;
  border-right: 1px solid var(--line);
}
.host-facts li:last-child { border-right: 0; padding-right: 0; }
.host-facts li + li { padding-left: 1.2rem; }
.host-facts h3 { font-size: 0.98rem; margin-bottom: 0.4rem; }
.host-facts p { color: var(--muted); font-size: 0.86rem; line-height: 1.55; }

/* ------------------------------------------------------------------ free */

.section-orange {
  background:
    repeating-linear-gradient(135deg, rgba(255, 255, 255, 0.075) 0 2px, transparent 2px 9px),
    var(--orange);
  color: var(--ink);
  border-block: 2px solid var(--ink);
}

.price-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
}

.price-copy h2 { margin-bottom: 1rem; font-size: clamp(2.2rem, 4.5vw, 3.6rem); }
.price-copy p { max-width: 52ch; font-size: 1.02rem; line-height: 1.65; }
.price-small { margin-top: 1.2rem; font-size: 0.86rem !important; max-width: 46ch !important; opacity: 0.85; }

.price-card {
  background: var(--card);
  border: 2px solid var(--ink);
  border-radius: 16px;
  padding: 1.8rem;
  box-shadow: 8px 8px 0 var(--ink);
  transform: rotate(0.6deg);
}

.price-figure {
  display: flex;
  align-items: baseline;
  gap: 0.6rem;
  margin: 0 0 1.1rem;
  padding-bottom: 1.1rem;
  border-bottom: 1px solid var(--line);
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}
.price-figure span {
  font-family: var(--font-sans);
  font-size: clamp(3.4rem, 6vw, 4.6rem);
  font-weight: 800;
  letter-spacing: -0.06em;
  line-height: 0.9;
  color: var(--ink);
}

.price-list {
  display: grid;
  gap: 0.6rem;
  margin: 0 0 1.5rem;
  padding: 0;
  list-style: none;
  font-size: 0.92rem;
  color: var(--ink-soft);
}

.price-list li { display: flex; gap: 0.55rem; align-items: flex-start; }
.price-list li::before {
  content: "✓";
  color: var(--green);
  font-weight: 800;
  flex: 0 0 auto;
}

/* ----------------------------------------------------------- open source */

.contribute-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.15rem;
}

.contrib-card {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  padding: 1.4rem;
  background: var(--card);
  border: 1.5px solid var(--ink);
  border-radius: var(--radius);
  text-decoration: none;
  transition: transform 160ms ease, box-shadow 160ms ease;
}

.contrib-card:hover {
  transform: translate(-2px, -2px);
  box-shadow: 5px 5px 0 var(--orange);
  text-decoration: none;
}

.contrib-icon {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  margin-bottom: 0.4rem;
  border: 1.5px solid var(--ink);
  border-radius: 9px;
  background: var(--orange-soft);
}

.contrib-card h3 { font-size: 1.1rem; }
.contrib-card p { color: var(--ink-soft); font-size: 0.92rem; line-height: 1.6; flex: 1; }

.contrib-go {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent-text);
  margin-top: 0.5rem;
}
.contrib-card:hover .contrib-go span { display: inline-block; transform: translateX(3px); }
.contrib-go span { transition: transform 140ms ease; display: inline-block; }

.clone-card {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 1.5rem 2.5rem;
  align-items: center;
  margin-top: 2.2rem;
  padding: clamp(1.5rem, 3vw, 2.2rem);
  background: var(--ink);
  color: var(--paper);
  border-radius: 16px;
  border: 2px solid var(--ink);
  box-shadow: 8px 8px 0 var(--orange);
}

.clone-copy h3 { font-size: 1.45rem; margin-bottom: 0.55rem; }
.clone-copy p { color: #c3b5a3; font-size: 0.92rem; line-height: 1.6; }
.clone-copy code { background: rgba(255, 255, 255, 0.1); border-color: rgba(255, 255, 255, 0.12); color: #f0e6d6; }

.clone-code { position: relative; }

.clone-code pre {
  padding: 1.1rem 1.2rem;
  background: #0f0c09;
  border: 1px solid #3a2f26;
  border-radius: 10px;
  color: #f0e6d6;
  font-size: 0.76rem;
}

.clone-code .copy-btn {
  position: absolute;
  top: 0.55rem;
  right: 0.55rem;
  background: #1b1510;
  color: #d9cdbd;
}

.clone-btn {
  grid-column: 1 / -1;
  justify-self: start;
  width: auto;
  margin-top: 0.2rem;
}
.clone-card .btn-primary { color: var(--ink); }

/* ------------------------------------------------------------------- faq */

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

.faq-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(0, 1.18fr);
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: start;
}

.faq-intro { position: sticky; top: 110px; }
.faq-intro h2 { margin-bottom: 0.9rem; }
.faq-intro .lede a { font-weight: 700; }

.faq-list { border-top: 1px solid var(--line-strong); }

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

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

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

.faq-list summary::after {
  content: "+";
  flex: 0 0 auto;
  font-family: var(--font-mono);
  font-size: 1.3rem;
  font-weight: 400;
  line-height: 1;
  color: var(--accent-text);
}

.faq-list details[open] summary::after { content: "−"; }

.faq-list details p {
  max-width: 68ch;
  padding: 0 2rem 1.2rem 0;
  color: var(--ink-soft);
  font-size: 0.94rem;
  line-height: 1.65;
}

/* ---------------------------------------------------------------- footer */

.site-footer {
  background: var(--ink);
  color: var(--paper);
  border-top: 6px solid var(--orange);
  padding: clamp(3rem, 6vw, 4.5rem) 0 1.5rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) repeat(3, minmax(0, 0.75fr));
  gap: 2rem;
}

.footer-brand .brand { margin-bottom: 1rem; }
.brand-footer .brand-word { color: var(--paper); font-size: 1.35rem; }
.brand-footer .brand-word strong { color: var(--orange); }

.footer-mark {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  padding: 4px;
  background: var(--paper);
  border-radius: 9px;
}
.footer-mark img { width: 100%; image-rendering: pixelated; }

.footer-brand p {
  max-width: 36ch;
  color: #c3b5a3;
  font-size: 0.92rem;
  line-height: 1.6;
}

.footer-fine {
  margin-top: 1rem;
  font-family: var(--font-mono);
  font-size: 0.66rem !important;
  letter-spacing: 0.05em;
  color: #948675 !important;
}

.footer-col h2 {
  margin-bottom: 0.9rem;
  font-family: var(--font-mono);
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--orange);
}

.footer-col a {
  display: block;
  margin: 0.48rem 0;
  color: #d8ccbc;
  font-size: 0.9rem;
  text-decoration: none;
}
.footer-col a:hover { color: var(--paper); text-decoration: underline; text-decoration-color: var(--orange); }

.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 3rem;
  padding-top: 1.25rem;
  border-top: 1px solid #3a302a;
  font-size: 0.76rem;
  color: #a99c8b;
}
.footer-bottom p { margin: 0; }
.footer-top a { color: #d8ccbc; text-decoration: none; }
.footer-top a:hover { color: var(--paper); }

/* ------------------------------------------------------------- animation */

@media (prefers-reduced-motion: no-preference) {
  .hero-copy > * {
    animation: rise-in 650ms cubic-bezier(0.22, 1, 0.36, 1) both;
  }
  .hero-copy > :nth-child(2) { animation-delay: 60ms; }
  .hero-copy > :nth-child(3) { animation-delay: 120ms; }
  .hero-copy > :nth-child(4) { animation-delay: 180ms; }
  .hero-copy > :nth-child(5) { animation-delay: 240ms; }
  .hero-art { animation: rise-in 800ms 160ms cubic-bezier(0.22, 1, 0.36, 1) both; }

  .pulse::after {
    content: "";
    position: absolute;
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: var(--green);
    animation: ping 2.8s ease-out infinite;
  }
}

@keyframes rise-in {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes ping {
  0% { transform: scale(1); opacity: 0.5; }
  70%, 100% { transform: scale(3.1); opacity: 0; }
}

.pulse { position: relative; }

/* ------------------------------------------------------------ responsive */

@media (max-width: 1040px) {
  .hero-grid { grid-template-columns: 1fr; gap: 3.5rem; }
  .hero-copy { max-width: 720px; }
  .hero h1 { max-width: 15ch; }
  .hero-art { max-width: 780px; width: 100%; margin-inline: auto; }
  .sticker-yours { left: -1rem; }
  .section-head-split { grid-template-columns: 1fr; align-items: start; }
  .section-head-split .lede { justify-self: start; }
  .sovereignty-grid { grid-template-columns: 1fr; }
  .feature-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tour-stage { grid-template-columns: 1fr; }
  .tour-meta { max-width: 720px; }
  .dark-note { grid-template-columns: 1fr; }
  .dark-note-copy { max-width: 720px; }
  .company-inner { grid-template-columns: 1fr; }
  .company-logo { width: 190px; justify-self: start; }
  .selfhost-grid { grid-template-columns: 1fr; }
  .price-grid { grid-template-columns: 1fr; }
  .price-copy { max-width: 720px; }
  .price-card { max-width: 460px; }
  .faq-grid { grid-template-columns: 1fr; }
  .faq-intro { position: static; }
  .host-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .host-facts li:nth-child(2) { border-right: 0; }
  .host-facts li:nth-child(3) { padding-left: 0; border-top: 1px solid var(--line); }
  .host-facts li:nth-child(4) { border-top: 1px solid var(--line); }
  .host-facts li { padding-top: 1.4rem; margin-top: 1.4rem; }
  .host-facts li:nth-child(-n + 2) { margin-top: 0; }
  .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

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

  .site-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 0.6rem var(--gutter) 1.1rem;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    box-shadow: 0 18px 30px rgba(23, 18, 15, 0.12);
  }

  .site-nav.is-open { display: flex; }

  .site-nav > a:not(.nav-github) {
    padding: 0.8rem 0;
    border-bottom: 1px solid var(--line);
  }

  .nav-github { margin-top: 0.9rem; align-self: flex-start; }

  .sticker-yours { top: 8%; left: -0.5rem; }
  .hero-toucan { right: 0.25rem; }

  .clone-card { grid-template-columns: 1fr; }
  .clone-btn { justify-self: stretch; }
  .footer-bottom { flex-direction: column; }
}

@media (max-width: 620px) {
  .hero { padding-top: 2rem; }
  .hero h1 { font-size: clamp(2.45rem, 11vw, 3.4rem); }
  .hero-lede { font-size: 1rem; }
  .hero-actions .btn { width: 100%; }
  .hero-art { padding-top: 0.5rem; }
  .browser-hero img {
    max-height: 430px;
    object-fit: cover;
    object-position: top;
  }
  .tour-tabs { scrollbar-width: none; }
  .tour-tabs::-webkit-scrollbar { display: none; }
  .tour-tab { padding: 0.7rem 0.55rem; font-size: 0.88rem; }
  .hero-toucan { width: 92px; top: -2.3rem; }
  .sticker { font-size: 0.63rem; padding: 0.34rem 0.55rem; }
  .sticker-yours { top: 6%; left: -0.35rem; }
  .sticker-price { right: 0.5rem; bottom: -1.4rem; }
  .browser-local { display: none; }
  .trust-strip { grid-template-columns: repeat(2, 1fr); margin-top: 2.4rem; }
  .trust-strip li { border-left: 0; border-top: 1px solid var(--line); padding-left: 0; }
  .trust-strip li:nth-child(-n + 2) { border-top: 0; }
  .feature-grid { grid-template-columns: 1fr; }
  .contribute-grid { grid-template-columns: 1fr; }
  .host-facts { grid-template-columns: 1fr; }
  .host-facts li,
  .host-facts li + li,
  .host-facts li:nth-child(3),
  .host-facts li:nth-child(4) {
    padding: 1.2rem 0;
    margin: 0;
    border-right: 0;
    border-top: 1px solid var(--line);
  }
  .host-facts li:first-child { border-top: 0; padding-top: 1.4rem; }
  .price-card { padding: 1.4rem; transform: none; }
  .footer-grid { grid-template-columns: 1fr; gap: 1.8rem; }
  .footer-col { border-top: 1px solid #3a302a; padding-top: 1.2rem; }
  .footer-fine { font-size: 0.62rem !important; }
  .terminal pre { font-size: 0.68rem; }
  .file-card pre { font-size: 0.68rem; }
  .faq-list details p { padding-right: 0; }
}

/* --------------------------------------------------------------- company */

.company-band {
  padding: clamp(2.8rem, 5.5vw, 4.2rem) 0;
  background: var(--paper-2);
  border-top: 1px solid var(--line);
}

.company-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 0.65fr);
  gap: clamp(1.5rem, 4vw, 3.5rem);
  align-items: center;
}

.company-inner h2 { font-size: clamp(1.7rem, 3.1vw, 2.5rem); margin-bottom: 0.6rem; }
.company-inner p { color: var(--ink-soft); max-width: 62ch; }
.company-links { margin-top: 1rem; }
.company-logo {
  width: min(260px, 100%);
  justify-self: center;
  mix-blend-mode: multiply;
}

/* ----------------------------------------------------------------- legal */

.legal {
  padding: clamp(3rem, 7vw, 5.5rem) 0;
  background:
    radial-gradient(circle at 1px 1px, rgba(23, 18, 15, 0.09) 1px, transparent 1.6px) 0 0 / 28px 28px,
    var(--paper);
}

.legal-wrap { max-width: 820px; }
.legal h1 { font-size: clamp(2.4rem, 5.2vw, 4rem); margin-bottom: 1rem; }
.legal .lede { margin-bottom: 2rem; }
.legal h2 { font-size: clamp(1.35rem, 2.4vw, 1.7rem); margin: 2.4rem 0 0.6rem; }
.legal p, .legal li { color: var(--ink-soft); line-height: 1.7; }
.legal ul { display: grid; gap: 0.55rem; margin: 0 0 1rem; padding-left: 1.2rem; }
.legal a { text-decoration-color: var(--orange-deep); text-decoration-thickness: 2px; }
.legal .btn { margin-top: 1.4rem; text-decoration: none; }
.legal-updated { margin-top: 2.2rem; font-family: var(--font-mono); font-size: 0.72rem !important; color: var(--muted) !important; }
.legal-footer { margin-top: 0; }

/* ------------------------------------------------------------------- 404 */

.notfound {
  display: grid;
  align-items: center;
  min-height: calc(100vh - 74px - 150px);
  padding: clamp(3rem, 8vw, 6rem) 0;
  background:
    radial-gradient(circle at 1px 1px, rgba(23, 18, 15, 0.1) 1px, transparent 1.6px) 0 0 / 26px 26px,
    radial-gradient(700px 420px at 80% 50%, rgba(244, 163, 0, 0.22), transparent 65%),
    var(--paper);
}

.notfound-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.45fr);
  gap: 2rem;
  align-items: center;
}

.notfound h1 { font-size: clamp(2.8rem, 7vw, 5.4rem); margin-bottom: 1rem; }
.notfound .lede { max-width: 52ch; margin-bottom: 1.8rem; }
.notfound-toucan {
  width: min(280px, 100%);
  justify-self: center;
  image-rendering: pixelated;
  transform: rotate(4deg);
}
.notfound-footer { margin-top: 0; }

@media (max-width: 760px) {
  .notfound-grid { grid-template-columns: 1fr; }
  .notfound-toucan { width: 170px; justify-self: start; }
}

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