:root,
html[data-theme="dark"] {
  color-scheme: dark;
  --paper: #0a1513;
  --surface: #11201d;
  --ink: #ecf4f1;
  --mist: #9bb1aa;
  --line: rgba(236, 244, 241, 0.12);
  --line-strong: rgba(236, 244, 241, 0.26);
  --brand: #5fd9c0;
  --brand-soft: rgba(95, 217, 192, 0.12);
  --action: #8df0d6;
  --action-hover: #b8f7e6;
  --on-action: #072e2a;
  --header: rgba(10, 21, 19, 0.9);
}

html[data-theme="light"] {
  color-scheme: light;
  --paper: #f1f4ef;
  --surface: #ffffff;
  --ink: #0b1f1b;
  --mist: #4a5f59;
  --line: rgba(11, 31, 27, 0.12);
  --line-strong: rgba(11, 31, 27, 0.26);
  --brand: #0e7c70;
  --brand-soft: rgba(14, 124, 112, 0.1);
  --action: #0a3d38;
  --action-hover: #0e544d;
  --on-action: #ffffff;
  --header: rgba(241, 244, 239, 0.9);
}

:root {
  --font-display: "Unbounded", "Golos Text", system-ui, sans-serif;
  --font-text: "Golos Text", system-ui, sans-serif;
  --width: 1240px;
  --gutter: 48px;
  --header-h: 76px;
  --petrol: #0a3d38;
  --petrol-deep: #072e2a;
  --foam: #f3fbf8;
  --mint: #8df0d6;
  --idea: #ffd84d;
  --idea-hover: #ffe27a;
  --idea-ink: #2b2200;
  --anytool: #2f28a8;
  --ease-out: cubic-bezier(0.2, 0.8, 0.2, 1);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  min-height: 100vh;
  overflow-x: hidden;
  font-family: var(--font-text);
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}

.wp-site-blocks { padding: 0; }

:root :where(.wp-site-blocks) > * { margin-block: 0; }

a { color: inherit; text-decoration: none; }

:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 3px;
}

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 500;
  letter-spacing: -0.02em;
  text-wrap: balance;
}

.skip-link,
.skip-link.screen-reader-text {
  position: absolute;
  left: 12px;
  top: 12px;
  z-index: 30;
  padding: 10px 14px;
  border-radius: 10px;
  background: var(--ink);
  color: var(--paper);
  clip: auto !important;
  clip-path: none;
  height: auto;
  width: auto;
  transform: translateY(-160%);
}

.skip-link:focus { transform: none; }

.page:not(body) {
  width: min(var(--width), calc(100% - var(--gutter) * 2));
  margin-inline: auto;
}

/* Header */

.wp-site-blocks > :has(> .site-header) {
  position: sticky;
  top: 0;
  z-index: 20;
}

.site-header {
  position: relative;
  border-bottom: 1px solid transparent;
  transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.site-header.is-scrolled {
  background: var(--header);
  border-bottom-color: var(--line);
  backdrop-filter: blur(14px);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: var(--header-h);
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 500;
  letter-spacing: -0.02em;
}

.logo-mark {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  color: var(--petrol);
  background: var(--mint);
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 700;
}

.logo-mark img {
  display: block;
  width: 28px;
  height: 28px;
}

.nav-tools {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-links { display: none; }

.nav-links ul,
.nav-panel ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-product {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
  min-height: 44px;
  padding: 0 14px 0 8px;
  border: 1px solid var(--line);
  border-radius: 12px;
  font-size: 14px;
  font-weight: 500;
  white-space: nowrap;
  transition: border-color 0.15s ease;
}

.nav-product img {
  width: 24px;
  height: 24px;
  object-fit: contain;
}

.nav-product:hover { border-color: var(--line-strong); }

.nav-toggle,
.theme-toggle {
  display: grid;
  place-items: center;
  min-width: 44px;
  min-height: 44px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: transparent;
  color: inherit;
  font: inherit;
  cursor: pointer;
  transition: border-color 0.15s ease;
}

.nav-toggle:hover,
.theme-toggle:hover { border-color: var(--line-strong); }

.theme-toggle svg {
  width: 18px;
  height: 18px;
  display: none;
}

.theme-toggle .icon-sun {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
}

.theme-toggle .icon-moon {
  fill: currentColor;
  stroke: none;
}

html[data-theme="dark"] .theme-toggle .icon-sun,
html[data-theme="light"] .theme-toggle .icon-moon {
  display: block;
}

.nav-toggle-bars,
.nav-toggle-bars::before,
.nav-toggle-bars::after {
  display: block;
  width: 18px;
  height: 1.5px;
  border-radius: 2px;
  background: currentColor;
  position: relative;
  transition: transform 0.2s ease, top 0.2s ease, background-color 0.2s ease;
}

.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; }

body.nav-open .nav-toggle-bars { background: transparent; }

body.nav-open .nav-toggle-bars::before {
  top: 0;
  transform: rotate(45deg);
}

body.nav-open .nav-toggle-bars::after {
  top: 0;
  transform: rotate(-45deg);
}

body.nav-open { overflow: hidden; }

body.nav-open .site-header {
  background: var(--paper);
  border-bottom-color: var(--line);
}

.nav-panel {
  position: fixed;
  inset: 0;
  z-index: 18;
  padding: calc(var(--header-h) + 32px) var(--gutter) 40px;
  background: var(--paper);
  visibility: hidden;
  opacity: 0;
  transition: opacity 0.2s ease, visibility 0s linear 0.2s;
}

body.nav-open .nav-panel {
  visibility: visible;
  opacity: 1;
  transition: opacity 0.2s ease;
}

.nav-panel ul {
  display: grid;
  border-top: 1px solid var(--line);
}

.nav-panel li { border-bottom: 1px solid var(--line); }

.nav-panel li:last-child { border-bottom: 0; }

.nav-panel a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 18px 0;
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 500;
  letter-spacing: -0.02em;
}

.nav-panel a[aria-current="page"] { color: var(--brand); }

.nav-panel .nav-product {
  width: fit-content;
  margin: 20px 0 0;
  padding: 0 16px 0 10px;
  min-height: 52px;
  font-family: var(--font-text);
  font-size: 16px;
  letter-spacing: 0;
}

.nav-panel .nav-product img {
  width: 30px;
  height: 30px;
}

.btn.btn-header { display: none; }

/* Header sitting on the petrol hero */

.home:not(.nav-open) .site-header:not(.is-scrolled) { color: var(--foam); }

.home:not(.nav-open) .site-header:not(.is-scrolled) .nav-links a { color: rgba(243, 251, 248, 0.72); }

.home:not(.nav-open) .site-header:not(.is-scrolled) .nav-links a:hover { color: var(--foam); }

.home:not(.nav-open) .site-header:not(.is-scrolled) .nav-product,
.home:not(.nav-open) .site-header:not(.is-scrolled) .nav-toggle,
.home:not(.nav-open) .site-header:not(.is-scrolled) .theme-toggle {
  border-color: rgba(243, 251, 248, 0.22);
}

.home:not(.nav-open) .site-header:not(.is-scrolled) .btn-header {
  background: var(--idea);
  color: var(--idea-ink);
}

/* Buttons */

.btn,
.wp-block-button__link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 24px;
  border: 1px solid transparent;
  border-radius: 14px;
  font: inherit;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease, transform 0.15s ease;
}

.btn:active { transform: translateY(1px); }

.btn-primary,
.wp-block-button__link {
  background: var(--action);
  color: var(--on-action);
}

.btn-primary:hover,
.wp-block-button__link:hover { background: var(--action-hover); }

.btn-secondary {
  background: transparent;
  border-color: var(--line-strong);
  color: var(--ink);
}

.btn-secondary:hover { border-color: var(--ink); }

.btn-idea {
  background: var(--idea);
  color: var(--idea-ink);
}

.btn-idea:hover { background: var(--idea-hover); }

/* Hero */

.hero {
  position: relative;
  overflow: hidden;
  margin-top: calc(var(--header-h) * -1);
  padding: calc(var(--header-h) + 64px) 0 88px;
  background: var(--petrol);
  color: var(--foam);
}

.hero-code {
  position: absolute;
  top: calc(var(--header-h) + 36px);
  right: max(var(--gutter), calc((100% - var(--width)) / 2));
  display: flex;
  flex-direction: column;
  gap: 14px;
  width: min(520px, 46%);
  pointer-events: none;
  mask-image: linear-gradient(180deg, #000 30%, transparent 92%);
}

.hero-code span {
  position: relative;
  width: var(--w);
  height: 10px;
  margin-left: calc(var(--x) * 9%);
  border-radius: 5px;
  background: rgba(141, 240, 214, 0.1);
  transform-origin: left center;
  animation: codeType 0.5s var(--ease-out) both;
  animation-delay: calc(200ms + var(--i) * 55ms);
}

.hero-code span.is-mint { background: rgba(141, 240, 214, 0.24); }
.hero-code span.is-idea { background: rgba(255, 216, 77, 0.3); }

.hero-code span:last-child::after {
  content: "";
  position: absolute;
  top: -4px;
  left: calc(100% + 10px);
  width: 3px;
  height: 18px;
  border-radius: 2px;
  background: var(--idea);
  animation: caretBlink 1.1s steps(1) 1.4s infinite both;
}

.hero-inner { position: relative; }

.hero h1 {
  margin: 0;
  font-size: clamp(44px, 8.4vw, 116px);
  line-height: 0.98;
  letter-spacing: -0.045em;
}

.hero h1 span {
  display: block;
  padding-bottom: 0.06em;
  animation: lineRise 0.9s var(--ease-out) both;
}

.hero h1 span + span { animation-delay: 0.12s; }

.hero-intro {
  animation: fadeRise 0.8s var(--ease-out) 0.35s both;
}

.builder {
  animation: fadeRise 0.9s var(--ease-out) 0.5s both;
}

.idea {
  animation: notePop 0.5s var(--ease-out) both;
  animation-delay: calc(0.7s + var(--i, 0) * 60ms);
}

.hero-body {
  display: grid;
  gap: 40px;
  margin-top: 56px;
}

.lead {
  margin: 0;
  max-width: 30em;
  color: rgba(243, 251, 248, 0.78);
  font-size: clamp(17px, 1.4vw, 19px);
  line-height: 1.6;
  text-wrap: pretty;
}

.hero-link {
  display: inline-block;
  margin-top: 20px;
  color: var(--foam);
  font-weight: 600;
  text-decoration: underline;
  text-decoration-color: var(--mint);
  text-decoration-thickness: 2px;
  text-underline-offset: 6px;
}

.hero-link:hover { color: var(--mint); }

/* Idea builder */

.builder {
  padding: 28px;
  border: 1px solid rgba(141, 240, 214, 0.14);
  border-radius: 28px;
  background: var(--petrol-deep);
  box-shadow: 0 40px 80px -48px rgba(0, 0, 0, 0.7);
}

.builder-prompt {
  margin: 0 0 18px;
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 500;
}

.ideas {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.idea {
  position: relative;
  padding: 13px 16px;
  border: 0;
  border-radius: 6px;
  background: rgba(255, 216, 77, 0.08);
  box-shadow: inset 0 0 0 1px rgba(255, 216, 77, 0.38);
  color: var(--idea);
  font: inherit;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.15s ease, transform 0.25s var(--ease-out), box-shadow 0.25s ease;
}

.idea:hover { background: rgba(255, 216, 77, 0.16); }

.idea[aria-selected="true"] {
  background: var(--idea);
  color: var(--idea-ink);
  box-shadow: 0 14px 24px -12px rgba(0, 0, 0, 0.7);
  transform: rotate(-2deg) translateY(-2px);
}

.idea[aria-selected="true"]::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 0;
  width: 12px;
  height: 12px;
  border-radius: 0 0 6px 0;
  background: linear-gradient(315deg, var(--petrol-deep) 50%, #d8b324 50%);
}

.idea[aria-selected="true"].is-picked {
  animation: noteSlap 0.45s var(--ease-out);
}

.idea:focus-visible { outline-color: var(--idea); }

.build {
  display: grid;
  gap: 16px;
  margin-top: 24px;
  padding-top: 24px;
  border-top: 1px dashed rgba(141, 240, 214, 0.24);
}

.build[hidden] { display: none; }

.build-summary {
  margin: 0;
  max-width: 28em;
  color: rgba(243, 251, 248, 0.86);
  line-height: 1.55;
}

.build-label {
  margin: 0;
  color: rgba(141, 240, 214, 0.75);
  font-size: 14px;
  font-weight: 500;
}

.parts {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.parts li {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 9px 14px 9px 12px;
  border: 1px solid rgba(141, 240, 214, 0.32);
  border-radius: 10px;
  background: rgba(141, 240, 214, 0.08);
  color: var(--mint);
  font-size: 15px;
  font-weight: 500;
  animation: partIn 0.45s var(--ease-out) both;
  animation-delay: calc(var(--i, 0) * 70ms);
}

.parts li::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 2px;
  background: var(--mint);
}

.build .btn-idea {
  justify-self: start;
  margin-top: 4px;
}

.build-summary,
.build-label {
  animation: fadeRise 0.4s var(--ease-out) both;
}

/* Sections */

.band { padding: 112px 0; }

.section-head {
  max-width: 720px;
  margin-bottom: 56px;
}

.section-head h2,
.cta h2,
.page-head h2,
.contact-panel h2 {
  margin: 0;
  font-size: clamp(32px, 4vw, 56px);
  line-height: 1.04;
  letter-spacing: -0.035em;
}

.section-head p {
  margin: 18px 0 0;
  max-width: 40em;
  color: var(--mist);
  font-size: 18px;
  line-height: 1.6;
  text-wrap: pretty;
}

/* Services index */

.index {
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--line-strong);
}

.index li {
  display: grid;
  gap: 10px;
  padding: 32px 0;
  border-bottom: 1px solid var(--line);
}

.index h3 {
  margin: 0;
  font-size: clamp(24px, 2.8vw, 38px);
  line-height: 1.1;
  letter-spacing: -0.03em;
}

.index p {
  margin: 0;
  max-width: 34em;
  color: var(--mist);
  line-height: 1.6;
}

/* Services list inside page content */

.grid {
  display: grid;
  border-top: 1px solid var(--line-strong);
}

.card {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  column-gap: 20px;
  row-gap: 6px;
  padding: 28px 0;
  border-bottom: 1px solid var(--line);
}

.card .icon {
  grid-row: 1 / span 2;
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: var(--petrol);
  color: var(--mint);
}

.icon svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.card h3 {
  margin: 0;
  font-size: 22px;
  line-height: 1.2;
  color: var(--ink);
}

.card p {
  margin: 0;
  max-width: 36em;
  color: var(--mist);
  line-height: 1.6;
}

/* Process band */

.process {
  padding: 112px 0;
  background: var(--idea);
  color: var(--idea-ink);
}

.process .section-head p { color: rgba(43, 34, 0, 0.74); }

.steps {
  counter-reset: step;
  display: grid;
  gap: 40px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.step {
  counter-increment: step;
  padding-top: 24px;
  border-top: 3px solid var(--idea-ink);
}

.step::before {
  content: counter(step);
  display: block;
  margin-bottom: 20px;
  font-family: var(--font-display);
  font-size: clamp(64px, 7vw, 104px);
  font-weight: 500;
  line-height: 0.9;
  letter-spacing: -0.05em;
  color: var(--petrol);
}

.step h3 {
  margin: 0 0 10px;
  font-size: 22px;
  line-height: 1.2;
}

.step p {
  margin: 0;
  max-width: 28em;
  color: rgba(43, 34, 0, 0.76);
  line-height: 1.6;
}

.aside {
  margin: 22px 0 0;
  color: var(--mist);
}

/* CTA band */

.cta {
  padding: 112px 0;
  background: var(--petrol);
  color: var(--foam);
}

.cta-inner {
  display: grid;
  gap: 40px;
}

.cta h2 { font-size: clamp(36px, 5vw, 72px); }

.cta p {
  margin: 20px 0 0;
  max-width: 32em;
  color: rgba(243, 251, 248, 0.76);
  font-size: 18px;
  line-height: 1.6;
}

.cta-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 20px 32px;
}

.cta-mail {
  font-family: var(--font-display);
  font-size: clamp(17px, 1.9vw, 28px);
  font-weight: 500;
  letter-spacing: -0.02em;
  white-space: nowrap;
  text-decoration: underline;
  text-decoration-color: var(--idea);
  text-decoration-thickness: 3px;
  text-underline-offset: 9px;
  transition: color 0.15s ease;
}

.cta-mail:hover { color: var(--idea); }

/* Footer */

.site-footer {
  padding: 64px 0 40px;
  color: var(--mist);
  font-size: 15px;
}

.footer-grid {
  display: grid;
  gap: 40px;
}

.footer-brand {
  display: grid;
  align-content: start;
  gap: 18px;
}

.footer-brand .logo { color: var(--ink); }

.footer-brand p {
  margin: 0;
  max-width: 260px;
  line-height: 1.55;
}

.footer-brand .btn {
  width: fit-content;
  min-height: 44px;
  padding: 0 18px;
  font-size: 15px;
}

.footer-col {
  display: grid;
  align-content: start;
  gap: 10px;
}

.footer-col h2 {
  margin: 0 0 6px;
  font-family: var(--font-text);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0;
  color: var(--mist);
}

.footer-col a {
  width: fit-content;
  color: var(--ink);
  font-weight: 500;
  line-height: 1.45;
  transition: color 0.15s ease;
}

.footer-col a:hover { color: var(--brand); }

.footer-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 56px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  font-size: 14px;
}

.footer-bar a {
  color: var(--ink);
  font-weight: 500;
}

.footer-bar a:hover { color: var(--brand); }

/* Inner pages */

.badge {
  width: fit-content;
  display: inline-flex;
  align-items: center;
  margin: 0 0 20px;
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--brand-soft);
  color: var(--brand);
  font-size: 14px;
  font-weight: 600;
}

.page-head { padding: 72px 0 40px; }

.page-head h1,
.page-head .wp-block-post-title,
.page-head .wp-block-query-title {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(40px, 6vw, 80px);
  font-weight: 500;
  line-height: 1;
  letter-spacing: -0.04em;
}

.page-head p {
  margin: 18px 0 0;
  max-width: 38em;
  color: var(--mist);
  font-size: 18px;
  line-height: 1.6;
  text-wrap: pretty;
}

.entry { padding: 0 0 24px; }

.entry + .band { padding-top: 48px; }

.services-entry { padding-bottom: 96px; }

.entry a {
  color: var(--brand);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.entry > p,
.entry > .wp-block-group > p,
.wp-block-post-content > p {
  margin: 0 0 1.15em;
  max-width: 40em;
  color: var(--mist);
  font-size: 18px;
  line-height: 1.65;
  text-wrap: pretty;
}

.entry p:last-child,
.wp-block-post-content > p:last-child {
  margin-bottom: 0;
}

.entry h2,
.wp-block-post-content h2 {
  margin: 40px 0 12px;
  font-size: clamp(22px, 2.4vw, 28px);
  line-height: 1.2;
  color: var(--ink);
}

.entry h3,
.wp-block-post-content h3 {
  margin: 28px 0 8px;
  font-size: 20px;
  color: var(--ink);
}

.entry .card h3,
.wp-block-post-content .card h3 { margin: 0; }

.entry ul,
.entry ol,
.wp-block-post-content ul,
.wp-block-post-content ol {
  margin: 0 0 1.2em;
  padding-left: 1.2em;
  max-width: 40em;
  color: var(--mist);
  line-height: 1.65;
}

.entry li + li,
.wp-block-post-content li + li {
  margin-top: 0.35em;
}

.entry .grid { margin-top: 48px; }

.legal-entry {
  width: min(800px, calc(100% - var(--gutter) * 2));
  padding-bottom: 96px;
}

.legal-entry > *,
.legal-entry .wp-block-post-content {
  max-width: 40em;
}

.contact-entry { padding-bottom: 24px; }

.contact-entry a[href^="mailto:"] {
  display: inline-block;
  margin-top: 8px;
  font-family: var(--font-display);
  font-size: clamp(20px, 2.4vw, 28px);
  font-weight: 500;
  text-decoration-thickness: 2px;
  text-underline-offset: 6px;
}

.contact-panel {
  display: grid;
  gap: 24px;
  margin: 32px auto 112px;
  padding: 48px;
  border-radius: 28px;
  background: var(--petrol);
  color: var(--foam);
}

.contact-panel p {
  margin: 12px 0 0;
  max-width: 36em;
  color: rgba(243, 251, 248, 0.76);
  line-height: 1.6;
}

.contact-panel-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px 24px;
}

.contact-panel .btn-primary {
  background: var(--idea);
  color: var(--idea-ink);
}

.contact-panel .btn-primary:hover { background: var(--idea-hover); }

.contact-mail {
  font-weight: 500;
  color: var(--foam);
  text-decoration: underline;
  text-decoration-color: var(--idea);
  text-underline-offset: 4px;
}

/* Projects page */

.project-list {
  display: grid;
  gap: 24px;
  padding: 8px 0 96px;
}

.project-card {
  display: grid;
  gap: 32px;
  padding: 40px;
  border: 1px solid var(--line);
  border-radius: 28px;
  background: var(--surface);
}

.project-copy .badge { margin-bottom: 24px; }

.project-copy h2 {
  margin: 0;
  font-size: clamp(30px, 4vw, 48px);
  line-height: 1.05;
}

.project-copy > p {
  margin: 16px 0 0;
  max-width: 36em;
  color: var(--mist);
  font-size: 18px;
  line-height: 1.6;
}

.project-points {
  display: grid;
  gap: 12px;
  margin: 28px 0 0;
  padding: 0;
  list-style: none;
}

.project-points li {
  position: relative;
  padding-left: 24px;
  line-height: 1.5;
}

.project-points li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.5em;
  width: 9px;
  height: 9px;
  border-radius: 2px;
  background: var(--brand);
}

.project-copy .hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}

.project-legal {
  display: inline-block;
  margin-top: 20px;
  margin-right: 18px;
  color: var(--mist);
  font-size: 14px;
  font-weight: 500;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.project-legal:hover { color: var(--ink); }

.project-visual {
  display: grid;
  place-items: center;
  min-height: 260px;
  border-radius: 20px;
  background: var(--petrol);
}

.project-card-anytool .project-visual { background: var(--anytool); }

.project-card-sortspot .project-visual { background: var(--sortspot, #f0d400); }

.project-visual img {
  width: 140px;
  height: 140px;
  object-fit: contain;
  border-radius: 32px;
}

/* KeepMe app landing */

.keepme-app { padding-bottom: 96px; }

.keepme-app img,
.sortspot-app img,
.anytool-app img {
  max-width: 100%;
  height: auto;
}

.keepme-app-hero {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 48px;
  align-items: center;
  padding: 48px 0 24px;
}

.keepme-app-topline {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 14px;
  margin-bottom: 22px;
}

.keepme-app-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin: 0;
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 500;
}

.keepme-app-brand img {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  object-fit: cover;
}

.keepme-app-topline .badge { margin: 0; }

.keepme-app-hero h1 {
  margin: 18px 0 0;
  font-size: clamp(36px, 5.4vw, 64px);
  line-height: 1.02;
  letter-spacing: -0.04em;
}

.keepme-app-accent { color: var(--brand); }

.keepme-app-lead {
  margin: 18px 0 0;
  max-width: 34em;
  color: var(--mist);
  font-size: 19px;
  line-height: 1.6;
}

.keepme-app-hero .hero-actions { margin-top: 28px; }

.keepme-app-mini {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin: 28px 0 0;
  padding: 0;
  list-style: none;
}

.keepme-app-mini li {
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--surface);
  font-weight: 500;
}

.keepme-app-mini li::before {
  content: "✓ ";
  color: var(--brand);
}

.keepme-app-legal-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 16px 22px;
  margin-top: 22px;
}

.keepme-app-legal-nav a {
  color: var(--mist);
  font-size: 14px;
  font-weight: 500;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.keepme-app-legal-nav a:hover { color: var(--ink); }

.keepme-app-hero-media {
  display: flex;
  justify-content: center;
  align-items: center;
}

.keepme-app-hero-media img {
  display: block;
  width: min(100%, 320px);
  height: auto;
  border-radius: 28px;
  border: 1px solid var(--line);
  box-shadow: 0 18px 40px rgba(7, 46, 42, 0.14);
}

.keepme-app-section { padding: 64px 0 0; }

.keepme-app-cards,
.keepme-app-shots,
.keepme-app-pricing {
  display: grid;
  gap: 18px;
  margin-top: 28px;
}

.keepme-app-cards { grid-template-columns: repeat(4, minmax(0, 1fr)); }

.keepme-app-card,
.keepme-app-price {
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 28px;
  background: var(--surface);
}

.keepme-app-card h3,
.keepme-app-price h2 {
  margin: 0 0 8px;
}

.keepme-app-card p,
.keepme-app-price p,
.keepme-app-privacy p,
.keepme-app-privacy li {
  color: var(--mist);
}

.keepme-app-shots {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  justify-items: center;
}

.keepme-app-shot {
  margin: 0;
  width: 100%;
  max-width: 230px;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: var(--surface);
}

.keepme-app-shot img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 16px;
}

.keepme-app-privacy {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 28px;
  align-items: center;
  padding: 34px;
  border: 1px solid var(--line);
  border-radius: 36px;
  background: var(--brand-soft);
}

.keepme-app-privacy h2 { margin: 0 0 14px; }

.keepme-app-privacy ul {
  margin: 18px 0 0;
  padding-left: 1.2em;
  line-height: 1.7;
}

.keepme-app-privacy .hero-actions { margin-top: 24px; }

.keepme-app-privacy img {
  display: block;
  width: min(100%, 280px);
  height: auto;
  justify-self: center;
  border-radius: 22px;
  border: 1px solid var(--line);
}

.keepme-app-pricing { grid-template-columns: 1fr 1fr; }

.keepme-app-price .hero-actions { margin-top: 22px; }

/* Sortspot app landing */

:root {
  --sortspot: #f0d400;
  --sortspot-ink: #111111;
  --sortspot-wash: rgba(240, 212, 0, 0.16);
}

html[data-theme="dark"] {
  --sortspot: #ffe44d;
  --sortspot-ink: #111111;
  --sortspot-wash: rgba(255, 228, 77, 0.12);
}

.sortspot-app { padding-bottom: 96px; }

.sortspot-hero {
  display: grid;
  gap: 28px;
  margin-top: 28px;
  padding: 36px;
  border: 1px solid var(--line);
  border-radius: 36px;
  background:
    radial-gradient(circle at 12% 18%, var(--sortspot-wash), transparent 42%),
    radial-gradient(circle at 88% 80%, var(--sortspot-wash), transparent 36%),
    var(--surface);
}

.sortspot-topline {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 14px;
  margin-bottom: 22px;
}

.sortspot-brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  margin: 0;
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 500;
}

.sortspot-brand img {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  object-fit: cover;
}

.sortspot-pill {
  display: inline-flex;
  margin: 0;
  padding: 10px 18px;
  border-radius: 999px;
  background: var(--sortspot);
  color: var(--sortspot-ink);
  font-weight: 700;
  font-size: 15px;
}

.sortspot-hero h1 {
  margin: 18px 0 0;
  max-width: 14em;
  font-size: clamp(34px, 5vw, 58px);
  line-height: 1.02;
  letter-spacing: -0.04em;
}

.sortspot-lead {
  margin: 16px 0 0;
  max-width: 38em;
  color: var(--mist);
  font-size: 18px;
  line-height: 1.6;
}

.sortspot-hero .hero-actions { margin-top: 26px; }

.btn.sortspot-btn {
  background: var(--sortspot);
  color: var(--sortspot-ink);
  border-color: transparent;
}

.btn.sortspot-btn:hover {
  filter: brightness(1.05);
  color: var(--sortspot-ink);
}

.sortspot-legal-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 16px 22px;
  margin-top: 20px;
}

.sortspot-legal-nav a {
  color: var(--mist);
  font-size: 14px;
  font-weight: 500;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.sortspot-legal-nav a:hover { color: var(--ink); }

.sortspot-hero-art {
  margin: 8px 0 0;
  overflow: hidden;
  border-radius: 28px;
  border: 1px solid var(--line);
  background: #fff;
}

.sortspot-hero-art img {
  display: block;
  width: 100%;
  height: auto;
  max-height: 320px;
  object-fit: contain;
  object-position: center;
}

.sortspot-rails {
  display: grid;
  gap: 28px;
  margin-top: 56px;
}

.sortspot-rail {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: 28px;
  align-items: center;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 32px;
  background: var(--surface);
}

.sortspot-rail-flip { grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr); }

.sortspot-rail-flip .sortspot-rail-copy { order: 2; }
.sortspot-rail-flip .sortspot-phone { order: 1; }

.sortspot-kicker {
  display: inline-flex;
  margin: 0 0 12px;
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--sortspot-wash);
  color: var(--ink);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.sortspot-rail-copy h2 {
  margin: 0;
  font-size: clamp(28px, 3.6vw, 42px);
  line-height: 1.08;
}

.sortspot-rail-copy > p {
  margin: 14px 0 0;
  max-width: 32em;
  color: var(--mist);
  font-size: 17px;
  line-height: 1.6;
}

.sortspot-points {
  display: grid;
  gap: 10px;
  margin: 20px 0 0;
  padding: 0;
  list-style: none;
}

.sortspot-points li {
  position: relative;
  padding-left: 22px;
  color: var(--mist);
  line-height: 1.45;
}

.sortspot-points li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 9px;
  height: 9px;
  border-radius: 2px;
  background: var(--sortspot);
}

.sortspot-phone {
  margin: 0;
  justify-self: center;
  width: min(100%, 280px);
  padding: 8px;
  border-radius: 24px;
  border: 1px solid var(--line);
  background:
    radial-gradient(circle at 30% 20%, var(--sortspot-wash), transparent 55%),
    var(--paper);
}

.sortspot-phone img {
  display: block;
  width: 100%;
  height: auto;
  max-height: 520px;
  object-fit: contain;
  border-radius: 18px;
}

.sortspot-privacy {
  margin-top: 56px;
  padding: 28px;
  border-radius: 32px;
  border: 1px solid var(--line);
  background: var(--sortspot-wash);
}

.sortspot-privacy-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) auto;
  gap: 24px;
  align-items: end;
}

.sortspot-privacy h2 {
  margin: 0 0 10px;
  font-size: clamp(26px, 3vw, 36px);
  line-height: 1.1;
}

.sortspot-privacy p {
  margin: 0;
  max-width: 46em;
  color: var(--mist);
  line-height: 1.6;
}

.sortspot-privacy-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: flex-end;
}

.sortspot-download {
  margin-top: 28px;
  padding: 40px 32px;
  border-radius: 32px;
  background: var(--sortspot);
  color: var(--sortspot-ink);
}

.sortspot-download .sortspot-kicker {
  background: rgba(17, 17, 17, 0.08);
  color: var(--sortspot-ink);
}

.sortspot-download h2 {
  margin: 0;
  font-size: clamp(30px, 4vw, 46px);
  line-height: 1.05;
  color: var(--sortspot-ink);
}

.sortspot-download p {
  margin: 14px 0 0;
  max-width: 34em;
  color: rgba(17, 17, 17, 0.78);
  font-size: 17px;
  line-height: 1.55;
}

.sortspot-download .hero-actions { margin-top: 24px; }

.sortspot-download .btn.sortspot-btn {
  background: var(--sortspot-ink);
  color: #fff;
}

.sortspot-download .btn.sortspot-btn:hover {
  color: #fff;
  filter: brightness(1.15);
}

/* Anytool app landing — bento kit */

:root {
  --anytool-accent: #5b4dff;
  --anytool-docs: #3d7bff;
  --anytool-images: #19a36a;
  --anytool-media: #e24aa8;
  --anytool-utils: #f08a24;
  --anytool-wash: rgba(91, 77, 255, 0.12);
}

html[data-theme="dark"] {
  --anytool-wash: rgba(91, 77, 255, 0.18);
}

.anytool-app { padding-bottom: 96px; }

.anytool-intro {
  padding: 40px 0 8px;
  max-width: 820px;
}

.anytool-intro-brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 24px;
}

.anytool-intro-brand img {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  object-fit: cover;
}

.anytool-name {
  margin: 0;
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 500;
  line-height: 1;
}

.anytool-tag {
  margin: 8px 0 0;
  color: var(--mist);
  font-size: 14px;
}

.anytool-intro h1 {
  margin: 0;
  font-size: clamp(34px, 5.2vw, 60px);
  line-height: 1.02;
  letter-spacing: -0.04em;
}

.anytool-lead {
  margin: 16px 0 0;
  color: var(--mist);
  font-size: 18px;
  line-height: 1.6;
}

.anytool-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 22px 0 0;
  padding: 0;
  list-style: none;
}

.anytool-chips li {
  padding: 10px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  font-size: 14px;
  font-weight: 600;
}

.anytool-intro .hero-actions { margin-top: 26px; }

.btn.anytool-btn {
  background: var(--anytool-accent);
  color: #fff;
  border-color: transparent;
}

.btn.anytool-btn:hover {
  filter: brightness(1.08);
  color: #fff;
}

.anytool-legal-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 18px;
}

.anytool-legal-nav a {
  color: var(--mist);
  font-size: 14px;
  font-weight: 500;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.anytool-legal-nav a:hover { color: var(--ink); }

.anytool-kicker {
  display: inline-flex;
  margin: 0 0 12px;
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--anytool-wash);
  color: var(--ink);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.anytool-stage {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 28px;
  align-items: center;
  margin-top: 36px;
  padding: 28px;
  border-radius: 36px;
  border: 1px solid var(--line);
  background:
    linear-gradient(135deg, var(--anytool-wash), transparent 55%),
    var(--surface);
}

.anytool-stage-copy h2 {
  margin: 0;
  font-size: clamp(28px, 3.4vw, 42px);
  line-height: 1.08;
}

.anytool-stage-copy p:last-child {
  margin: 14px 0 0;
  color: var(--mist);
  line-height: 1.6;
}

.anytool-stage-shot {
  margin: 0;
  justify-self: end;
  width: min(100%, 300px);
}

.anytool-stage-shot img {
  display: block;
  width: 100%;
  height: auto;
  max-height: 540px;
  object-fit: contain;
  border-radius: 24px;
  border: 1px solid var(--line);
  box-shadow: 0 18px 40px rgba(47, 40, 168, 0.16);
}

.anytool-bento { margin-top: 64px; }

.anytool-bento-head {
  margin-bottom: 22px;
}

.anytool-bento-head h2 {
  margin: 0;
  font-size: clamp(28px, 3.4vw, 42px);
  line-height: 1.08;
}

.anytool-bento-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  justify-items: center;
}

.anytool-tile {
  margin: 0;
  width: 100%;
  max-width: 320px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 28px;
  background: var(--surface);
  overflow: hidden;
}

.anytool-tile img {
  display: block;
  width: 100%;
  height: auto;
  max-height: 520px;
  object-fit: contain;
  margin: 0 auto;
  border-radius: 18px;
}

.anytool-tile-copy h3 {
  margin: 0;
  font-size: clamp(22px, 2.4vw, 28px);
  line-height: 1.15;
}

.anytool-tile-copy > p {
  margin: 10px 0 0;
  color: var(--mist);
  line-height: 1.55;
}

.anytool-tile-copy ul {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 16px 0 0;
  padding: 0;
  list-style: none;
}

.anytool-tile-copy li {
  padding: 7px 11px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.55);
  color: var(--ink);
  font-size: 13px;
  font-weight: 600;
}

html[data-theme="dark"] .anytool-tile-copy li {
  background: rgba(255, 255, 255, 0.08);
}

.anytool-tile-docs {
  background:
    linear-gradient(180deg, rgba(61, 123, 255, 0.14), transparent 46%),
    var(--surface);
}

.anytool-tile-images {
  background:
    linear-gradient(180deg, rgba(25, 163, 106, 0.14), transparent 46%),
    var(--surface);
}

.anytool-tile-media {
  background:
    linear-gradient(180deg, rgba(226, 74, 168, 0.14), transparent 46%),
    var(--surface);
}

.anytool-tile-utils {
  background:
    linear-gradient(180deg, rgba(240, 138, 36, 0.16), transparent 46%),
    var(--surface);
}

.anytool-favorites {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: 28px;
  align-items: center;
  margin-top: 28px;
  padding: 28px;
  border-radius: 32px;
  border: 1px solid var(--line);
  background:
    radial-gradient(circle at 85% 20%, rgba(91, 77, 255, 0.16), transparent 40%),
    var(--surface);
}

.anytool-favorites-copy h2 {
  margin: 0;
  font-size: clamp(28px, 3.4vw, 42px);
  line-height: 1.08;
}

.anytool-favorites-copy > p {
  margin: 14px 0 0;
  color: var(--mist);
  line-height: 1.6;
}

.anytool-favorites-shot {
  margin: 0;
  justify-self: center;
  width: min(100%, 280px);
}

.anytool-favorites-shot img {
  display: block;
  width: 100%;
  height: auto;
  max-height: 520px;
  object-fit: contain;
  border-radius: 24px;
  border: 1px solid var(--line);
}

.anytool-privacy {
  margin-top: 28px;
  padding: 28px;
  border-radius: 28px;
  border: 1px dashed var(--line-strong);
  background: var(--paper);
}

.anytool-privacy h2 {
  margin: 0 0 10px;
  font-size: clamp(24px, 3vw, 34px);
}

.anytool-privacy p {
  margin: 0 0 18px;
  max-width: 46em;
  color: var(--mist);
  line-height: 1.6;
}

.anytool-download {
  display: flex;
  flex-wrap: wrap;
  gap: 22px;
  align-items: end;
  justify-content: space-between;
  margin-top: 28px;
  padding: 32px;
  border-radius: 32px;
  background: linear-gradient(135deg, #3a2fd4, #7a4dff);
  color: #fff;
}

.anytool-download .anytool-kicker {
  background: rgba(255, 255, 255, 0.16);
  color: #fff;
}

.anytool-download h2 {
  margin: 0;
  color: #fff;
  font-size: clamp(28px, 3.6vw, 42px);
  line-height: 1.05;
}

.anytool-download p {
  margin: 12px 0 0;
  max-width: 34em;
  color: rgba(255, 255, 255, 0.84);
  line-height: 1.55;
}

.anytool-download .btn.anytool-btn {
  background: #fff;
  color: #2f28a8;
}

.anytool-download .btn.btn-secondary {
  background: transparent;
  color: #fff;
  border-color: rgba(255, 255, 255, 0.45);
}

.anytool-download .btn.btn-secondary:hover {
  border-color: #fff;
  color: #fff;
}

/* Legal pages */

.legal-page { padding-bottom: 96px; }

.legal-page .page-head { padding-bottom: 24px; }

.legal-brand {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 24px;
}

.legal-brand img {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  object-fit: cover;
}

.legal-brand .badge { margin: 0; }

.legal-brand .legal-meta { margin: 6px 0 0; }

.legal-meta {
  margin: 14px 0 0;
  color: var(--mist);
  font-size: 15px;
}

.legal-doc {
  max-width: 800px;
  margin-top: 24px;
  padding: 48px;
  border: 1px solid var(--line);
  border-radius: 28px;
  background: var(--surface);
}

.legal-note {
  margin: 28px 0;
  padding: 20px 24px;
  border-radius: 12px;
  border-left: 4px solid var(--idea);
  background: var(--brand-soft);
  line-height: 1.6;
}

.legal-doc > p {
  margin: 0 0 4px;
  color: var(--mist);
  line-height: 1.72;
}

.legal-doc h2 {
  margin: 36px 0 10px;
  font-size: 21px;
  line-height: 1.25;
}

.legal-doc h3 {
  margin: 24px 0 8px;
  font-size: 17px;
  line-height: 1.35;
}

.legal-doc ul {
  margin: 8px 0 16px;
  padding-left: 1.25em;
  color: var(--mist);
  line-height: 1.72;
}

.legal-doc li + li { margin-top: 6px; }

.legal-table-wrap {
  margin: 16px 0 20px;
  overflow-x: auto;
}

.legal-doc table {
  width: 100%;
  border-collapse: collapse;
  font-size: 15px;
  line-height: 1.5;
}

.legal-doc th,
.legal-doc td {
  padding: 12px 14px;
  border: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

.legal-doc th {
  background: var(--brand-soft);
  color: var(--ink);
  font-weight: 600;
}

.legal-doc td { color: var(--mist); }

.legal-doc a,
.legal-back a {
  color: var(--brand);
  font-weight: 600;
}

.legal-back { margin: 28px 0 0; }

/* Error page */

.error-page {
  display: grid;
  align-content: center;
  justify-items: start;
  min-height: calc(100svh - 360px);
  padding: 72px 0 96px;
}

.error-page > * { max-width: 720px; }

.error-page h1 {
  margin: 0;
  font-size: clamp(40px, 6vw, 80px);
  line-height: 1;
  letter-spacing: -0.04em;
}

.error-page p {
  margin: 18px 0 32px;
  max-width: 34em;
  color: var(--mist);
  font-size: 18px;
  line-height: 1.6;
}

/* Motion: load sequence and scroll reveals (.motion is set before first paint) */

.index h3 { transition: translate 0.35s var(--ease-out), color 0.2s ease; }
.index li:hover h3 { translate: 10px 0; color: var(--brand); }

.page-head > *,
.error-page > * { animation: fadeRise 0.8s var(--ease-out) both; }
.page-head > :nth-child(2),
.error-page > :nth-child(2) { animation-delay: 0.1s; }
.page-head > :nth-child(3),
.error-page > :nth-child(3) { animation-delay: 0.2s; }

.motion :is(.section-head, .cta-copy, .project-card, .contact-panel, .legal-doc) {
  transition: opacity 0.8s var(--ease-out), translate 0.8s var(--ease-out);
  transition-delay: calc(var(--d, 0) * 120ms);
}

.motion :is(.section-head, .cta-copy, .project-card, .contact-panel, .legal-doc):not(.is-in) {
  opacity: 0;
  translate: 0 32px;
}

.motion :is(.index li, .grid .card) {
  position: relative;
  border-bottom-color: transparent;
  transition: opacity 0.7s var(--ease-out), translate 0.7s var(--ease-out);
  transition-delay: calc(var(--d, 0) * 90ms + 120ms);
}

.motion :is(.index li, .grid .card)::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: -1px;
  left: 0;
  height: 1px;
  background: var(--line);
  transform-origin: left center;
  transition: scale 1s var(--ease-out) calc(var(--d, 0) * 90ms);
}

.motion :is(.index li, .grid .card):not(.is-in) {
  opacity: 0;
  translate: -18px 0;
}

.motion :is(.index li, .grid .card):not(.is-in)::after { scale: 0 1; }

.motion .step {
  position: relative;
  border-top-color: rgba(43, 34, 0, 0.16);
}

.motion .step::after {
  content: "";
  position: absolute;
  top: -3px;
  right: 0;
  left: 0;
  height: 3px;
  background: var(--idea-ink);
  transform-origin: left center;
  transition: scale 0.9s var(--ease-out) calc(var(--d, 0) * 200ms);
}

.motion .step::before {
  transition: opacity 0.7s var(--ease-out), translate 0.7s var(--ease-out);
  transition-delay: calc(var(--d, 0) * 200ms + 250ms);
}

.motion .step > * {
  transition: opacity 0.7s ease;
  transition-delay: calc(var(--d, 0) * 200ms + 420ms);
}

.motion .step:not(.is-in)::after { scale: 0 1; }

.motion .step:not(.is-in)::before {
  opacity: 0;
  translate: 0 45%;
}

.motion .step:not(.is-in) > * { opacity: 0; }

.motion .cta-mail {
  text-decoration: none;
  padding-bottom: 9px;
  background: linear-gradient(var(--idea), var(--idea)) left bottom / 100% 3px no-repeat;
  transition: background-size 0.9s var(--ease-out) 0.35s, color 0.15s ease;
}

.motion .cta-actions:not(.is-in) .cta-mail { background-size: 0 3px; }

@keyframes codeType {
  from {
    opacity: 0;
    scale: 0 1;
  }
  to {
    opacity: 1;
    scale: 1 1;
  }
}

@keyframes caretBlink {
  0% { opacity: 1; }
  50% { opacity: 0; }
}

@keyframes lineRise {
  from {
    opacity: 0;
    translate: 0 0.4em;
    clip-path: inset(0 0 100% 0);
  }
  to {
    opacity: 1;
    translate: 0 0;
    clip-path: inset(-20% -5% -20% -5%);
  }
}

@keyframes fadeRise {
  from {
    opacity: 0;
    translate: 0 18px;
  }
  to {
    opacity: 1;
    translate: 0 0;
  }
}

@keyframes notePop {
  from {
    opacity: 0;
    scale: 0.85;
  }
  to {
    opacity: 1;
    scale: 1;
  }
}

@keyframes noteSlap {
  0% {
    scale: 1.14;
    rotate: -5deg;
  }
  100% {
    scale: 1;
    rotate: 0deg;
  }
}

@keyframes partIn {
  from {
    opacity: 0;
    transform: translateY(10px) scale(0.96);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

/* Layout */

@media (min-width: 720px) {
  .steps { grid-template-columns: repeat(3, 1fr); gap: 32px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }

  .index li {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 32px;
    align-items: baseline;
  }

  .card {
    grid-template-columns: 48px minmax(0, 0.9fr) minmax(0, 1.1fr);
    align-items: center;
  }

  .card .icon { grid-row: auto; }

  .build {
    grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
    grid-template-areas:
      "summary label"
      "summary parts"
      "cta parts";
    column-gap: 32px;
    align-content: start;
  }

  .build-summary { grid-area: summary; }
  .build-label { grid-area: label; }
  .parts { grid-area: parts; align-content: start; }
  .build .btn-idea { grid-area: cta; align-self: end; }
}

@media (min-width: 960px) {
  .hero-body {
    grid-template-columns: minmax(0, 4fr) minmax(0, 8fr);
    gap: 56px;
    align-items: start;
  }

  .hero-intro { padding-top: 8px; }

  .builder { padding: 32px; }

  .cta-inner {
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
    align-items: end;
  }

  .cta-actions {
    flex-direction: column;
    align-items: flex-start;
  }

  .nav-toggle { display: none; }

  .nav-links { display: block; margin-right: 8px; }

  .nav-links ul {
    display: flex;
    gap: 4px;
  }

  .nav-links a {
    position: relative;
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    padding: 0 12px;
    color: var(--mist);
    font-size: 15px;
    font-weight: 500;
    transition: color 0.15s ease;
  }

  .nav-links a:hover,
  .nav-links a[aria-current="page"] { color: var(--ink); }

  .nav-links a[aria-current="page"]::after {
    content: "";
    position: absolute;
    left: 12px;
    right: 12px;
    bottom: 6px;
    height: 2px;
    border-radius: 2px;
    background: var(--brand);
  }

  .nav-tools { gap: 10px; }

  .btn.btn-header {
    display: inline-flex;
    min-height: 44px;
    padding: 0 18px;
    font-size: 15px;
  }

  .footer-grid {
    grid-template-columns: 1.4fr 0.8fr 0.8fr 1.2fr;
    gap: 40px;
  }

  .project-card {
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr);
    align-items: stretch;
    padding: 48px;
  }

  .contact-panel {
    grid-template-columns: 1fr auto;
    align-items: center;
    padding: 56px;
  }
}

@media (min-width: 960px) and (max-width: 1159px) {
  .site-header .nav-product span {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
  }

  .site-header .nav-product {
    width: 44px;
    padding: 0;
    justify-content: center;
  }
}

@media (max-width: 959px) {
  :root { --gutter: 28px; }

  .band,
  .process,
  .cta { padding: 80px 0; }

  .page-head { padding: 48px 0 28px; }

  .hero { padding: calc(var(--header-h) + 40px) 0 64px; }

  .hero-body { margin-top: 36px; }

  .keepme-app-hero,
  .keepme-app-privacy,
  .keepme-app-pricing { grid-template-columns: 1fr; }

  .keepme-app-cards,
  .keepme-app-shots { grid-template-columns: repeat(2, minmax(0, 1fr)); }

  .keepme-app-hero { padding-top: 28px; }

  .sortspot-rail,
  .sortspot-rail-flip,
  .sortspot-privacy-inner { grid-template-columns: 1fr; }

  .sortspot-rail-flip .sortspot-rail-copy,
  .sortspot-rail-flip .sortspot-phone { order: initial; }

  .sortspot-privacy-links { justify-content: flex-start; }

  .sortspot-hero { padding: 24px; }

  .anytool-stage,
  .anytool-favorites,
  .anytool-bento-grid { grid-template-columns: 1fr; }

  .anytool-stage-shot { justify-self: center; }
}

@media (max-width: 639px) {
  :root { --gutter: 18px; --header-h: 64px; }

  body { font-size: 16px; }

  .nav { gap: 8px; }

  .logo { gap: 10px; font-size: 16px; }

  .logo-mark {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    font-size: 13px;
  }

  .nav-tools { gap: 6px; }

  .site-header .nav-product span {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
  }

  .site-header .nav-product {
    width: 44px;
    padding: 0;
    justify-content: center;
  }

  .hero h1 { font-size: clamp(30px, 9.2vw, 40px); }

  .hero-code {
    top: calc(var(--header-h) + 20px);
    width: 58%;
    height: 150px;
    overflow: hidden;
    gap: 9px;
    opacity: 0.55;
  }

  .hero-code span { height: 7px; }

  .builder {
    margin-inline: -6px;
    padding: 22px 18px;
    border-radius: 22px;
  }

  .idea { padding: 11px 13px; font-size: 14px; }

  .parts li { font-size: 14px; }

  .build .btn-idea { width: 100%; }

  .band,
  .process,
  .cta { padding: 64px 0; }

  .section-head { margin-bottom: 36px; }
  .section-head p { font-size: 17px; }

  .index li { padding: 24px 0; }

  .card {
    grid-template-columns: 44px minmax(0, 1fr);
    column-gap: 16px;
    padding: 22px 0;
  }

  .card .icon { width: 44px; height: 44px; }
  .card h3 { font-size: 19px; }

  .project-card,
  .legal-doc { padding: 28px; border-radius: 24px; }

  .keepme-app-cards,
  .keepme-app-shots,
  .keepme-app-mini { grid-template-columns: 1fr; }

  .keepme-app-privacy { padding: 24px; border-radius: 28px; }

  .sortspot-download { padding: 28px 22px; }

  .sortspot-phone { width: min(100%, 250px); }

  .keepme-app-hero-media img { width: min(100%, 280px); }

  .anytool-stage-shot,
  .anytool-favorites-shot { width: min(100%, 250px); }

  .anytool-tile { max-width: 280px; }

  .anytool-download {
    flex-direction: column;
    align-items: stretch;
    padding: 26px 22px;
  }

  .anytool-download .hero-actions .btn { width: 100%; }

  .cta-actions .btn { width: 100%; }

  .contact-panel {
    margin-bottom: 72px;
    padding: 32px 24px;
    border-radius: 24px;
  }

  .contact-panel .btn { width: 100%; }

  .site-footer { padding-top: 48px; }
  .footer-bar { margin-top: 40px; }

  .error-page {
    min-height: 0;
    padding: 48px 0 64px;
  }
}

@media (max-width: 380px) {
  .logo > span:not(.logo-mark) {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
  }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-delay: 0s !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

.editor-styles-wrapper {
  font-family: var(--font-text);
  color: var(--ink, #ecf4f1);
  background: var(--paper, #0a1512);
}
