/* =========================================================
   matasoo — mobile apps
   ========================================================= */

:root {
  --ink: #101114;
  --ink-2: #1D1F25;
  --ink-3: #2A2C33;
  --text-2: #3A3C44;
  --text-3: #4A4C55;
  --line-dark: #5A5D68;
  --muted-light: #C9CBD2;
  --soft-light: #D9DAE0;
  --paper: #F5F5F2;
  --white: #FFFFFF;
  --track: #ECECE8;
  --accent: #C8F03C;
  --display: "Bricolage Grotesque", sans-serif;
  --body: "Geist", system-ui, sans-serif;
}

*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--body);
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}

a { color: var(--ink); text-decoration: none; }
a:hover { color: var(--text-2); }

h1, h2, h3, p { margin: 0; }

.container {
  max-width: 1240px;
  margin: 0 auto;
  padding-left: 24px;
  padding-right: 24px;
}

/* ---------- Pills (buttons) ---------- */
.pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  padding: 14px 22px;
  border-radius: 999px;
  font-weight: 600;
  transition: transform 0.35s cubic-bezier(.2, .8, .2, 1), background 0.2s ease, color 0.2s ease, box-shadow 0.25s ease;
  will-change: transform;
}
.pill--dark { background: var(--ink); color: var(--white); }
.pill--dark:hover { color: var(--white); background: var(--ink-3); }
.pill--accent { background: var(--accent); color: var(--ink); }
.pill--accent:hover { color: var(--ink); }
.pill--outline { border: 1.5px solid var(--ink); }
.pill--lg { padding: 16px 26px; border-width: 2px; border-style: solid; border-color: var(--ink); }
.pill--xl { padding: 18px 30px; font-size: 18px; gap: 12px; }

/* ---------- Header ---------- */
.topbar {
  position: sticky;
  top: 0;
  z-index: 40;
  transition: transform 0.45s cubic-bezier(.2, .8, .2, 1), background 0.3s ease, box-shadow 0.3s ease;
}
.topbar.is-scrolled {
  background: rgba(245, 245, 242, 0.85);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 1.5px 0 var(--ink);
}
.topbar.is-scrolled .header { padding-top: 14px; padding-bottom: 14px; }
.topbar.is-hidden { transform: translateY(-110%); }
.header { transition: padding 0.3s ease; }
.header {
  padding-top: 24px;
  padding-bottom: 24px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.logo {
  font-family: var(--display);
  font-weight: 800;
  font-size: 28px;
  letter-spacing: -0.04em;
  color: var(--ink);
}
.logo--small { font-size: 22px; }
.logo__dot { color: var(--accent); text-shadow: 0 0 0 var(--ink); }

.nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 28px;
  font-size: 15px;
  font-weight: 500;
}
.nav .pill { padding: 12px 20px; }

/* ---------- Hero ---------- */
.hero {
  padding-top: 56px;
  padding-bottom: 88px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 440px), 1fr));
  gap: 56px;
  align-items: center;
}
.hero__text { display: flex; flex-direction: column; gap: 28px; }
.hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-3);
}
.hero__dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 3px var(--ink);
}
.hero__title {
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(2.75rem, 6vw, 5.25rem);
  line-height: 0.98;
  letter-spacing: -0.045em;
}
.hero__lead {
  font-size: 1.2rem;
  line-height: 1.6;
  color: var(--text-2);
  max-width: 34rem;
}
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* Showcase with phones */
.showcase {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: flex-end;
  gap: 20px;
  padding-top: 40px;
  min-height: 520px;
  background: var(--ink);
  border-radius: 40px;
  overflow: hidden;
}
.showcase__mark {
  position: absolute;
  top: 28px;
  left: 32px;
  font-family: var(--display);
  font-weight: 800;
  font-size: 120px;
  line-height: 1;
  letter-spacing: -0.06em;
  color: var(--ink-2);
}

.phone {
  position: relative;
  flex: none;
  background: var(--ink-3);
  padding: 10px 10px 0;
}
.phone--money {
  width: 236px;
  height: 470px;
  border-radius: 40px 40px 0 0;
  transform: translateY(24px);
}
.phone--docs {
  width: 210px;
  height: 400px;
  border-radius: 36px 36px 0 0;
  transform: translateY(20px);
}

.phone__screen {
  height: 100%;
  display: flex;
  flex-direction: column;
}
.phone--money .phone__screen {
  background: var(--white);
  border-radius: 32px 32px 0 0;
  padding: 28px 18px;
  gap: 14px;
}
.phone--docs .phone__screen {
  background: var(--accent);
  border-radius: 28px 28px 0 0;
  padding: 24px 16px;
  gap: 12px;
}
.phone__app { font-size: 12px; font-weight: 600; color: var(--text-3); }
.phone__app--sub { font-size: 11px; margin-top: 4px; }
.phone__app--dark { color: var(--ink); }

.safe { background: var(--ink); color: var(--white); border-radius: 20px; padding: 16px; }
.safe__label { font-size: 11px; color: var(--muted-light); }
.safe__amount {
  font-family: var(--display);
  font-weight: 800;
  font-size: 32px;
  letter-spacing: -0.03em;
  margin-top: 4px;
}
.safe__track { height: 6px; background: var(--ink-3); border-radius: 6px; margin-top: 12px; }
.safe__fill { height: 6px; border-radius: 6px; background: var(--accent); }

.budgets { display: flex; flex-direction: column; gap: 10px; font-size: 12px; }
.budget { display: flex; flex-direction: column; gap: 5px; }
.budget__row { display: flex; justify-content: space-between; }
.budget__track { height: 5px; background: var(--track); border-radius: 5px; }
.budget__fill { height: 5px; background: var(--ink); border-radius: 5px; }
.muted { color: var(--text-3); }

.goal {
  margin-top: auto;
  border: 1px solid #E2E2DD;
  border-radius: 16px;
  padding: 12px;
  font-size: 11px;
  display: flex;
  justify-content: space-between;
}
.goal strong { font-weight: 600; }

.doc {
  background: var(--white);
  border-radius: 14px;
  padding: 12px;
  display: flex;
  gap: 10px;
  align-items: center;
  font-size: 12px;
}
.soon {
  margin-top: auto;
  margin-bottom: 18px;
  font-family: var(--display);
  font-weight: 800;
  font-size: 26px;
  line-height: 1;
  letter-spacing: -0.03em;
  color: var(--ink);
}

/* ---------- Strip ---------- */
.strip {
  border-top: 1.5px solid var(--ink);
  border-bottom: 1.5px solid var(--ink);
  background: var(--white);
}
.marquee {
  display: flex;
  overflow: hidden;
  padding: 20px 0;
  font-family: var(--display);
  font-weight: 600;
  font-size: 20px;
  letter-spacing: -0.02em;
  white-space: nowrap;
}
.marquee__track {
  flex: none;
  display: flex;
  align-items: center;
  gap: 32px;
  padding-right: 32px;
  animation: marquee 28s linear infinite;
}
.marquee__track i { font-style: normal; font-size: 16px; color: var(--ink); display: inline-block; animation: spin 6s linear infinite; }
.strip:hover .marquee__track { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(-100%); } }

/* ---------- Sections ---------- */
.section {
  padding-top: 112px;
  padding-bottom: 112px;
  display: flex;
  flex-direction: column;
  gap: 48px;
}
#apps.section { padding-bottom: 96px; }
.section--vision { padding-top: 128px; padding-bottom: 128px; gap: 64px; }

.section__head--split {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-end;
  gap: 24px;
}
.section__titles { display: flex; flex-direction: column; gap: 14px; }
.section__lead {
  max-width: 26rem;
  font-size: 1.05rem;
  line-height: 1.6;
  color: var(--text-2);
}

.kicker {
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-3);
}
.kicker--light { color: var(--muted-light); }

.h2 {
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(2.25rem, 4.5vw, 3.75rem);
  line-height: 1;
  letter-spacing: -0.04em;
}

.band--white {
  background: var(--white);
  border-top: 1.5px solid var(--ink);
  border-bottom: 1.5px solid var(--ink);
}
.band--dark { background: var(--ink); color: var(--white); }

/* ---------- Apps ---------- */
.apps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 460px), 1fr));
  gap: 24px;
}
.app {
  border-radius: 32px;
  padding: 36px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.app--light { background: var(--white); border: 1.5px solid var(--ink); }
.app--dark { background: var(--ink); color: var(--white); }

.app__top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}
.app__icon {
  width: 64px;
  height: 64px;
  border-radius: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.app__icon--dark { background: var(--ink); }
.app__icon--accent { background: var(--accent); }

.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  padding: 8px 14px;
  border-radius: 999px;
}
.badge--live { background: var(--accent); color: var(--ink); border: 1.5px solid var(--ink); }
.badge--soon { color: var(--white); border: 1.5px solid var(--line-dark); }
.badge__dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--ink);
  animation: blink 1.6s ease-in-out infinite;
}
@keyframes blink { 50% { opacity: 0.25; } }

.app__copy { display: flex; flex-direction: column; gap: 10px; }
.app__meta { font-size: 14px; color: var(--text-3); font-weight: 500; }
.app--dark .app__meta { color: var(--muted-light); }
.app__name {
  font-family: var(--display);
  font-weight: 800;
  font-size: 40px;
  letter-spacing: -0.035em;
}
.app__desc { font-size: 1.05rem; line-height: 1.6; color: var(--text-2); }
.app--dark .app__desc { color: var(--soft-light); }

.features {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr));
  gap: 12px;
  font-size: 15px;
}
.features li {
  background: var(--paper);
  border-radius: 16px;
  padding: 14px 16px;
  line-height: 1.45;
}
.features strong { font-weight: 600; }
.app--dark .features li { background: var(--ink-2); }

.app__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: auto; }

.notify { margin-top: auto; display: flex; flex-direction: column; gap: 10px; }
.notify label { font-size: 14px; font-weight: 500; color: var(--soft-light); }
.notify__row { display: flex; flex-wrap: wrap; gap: 10px; }
.notify input {
  flex: 1 1 220px;
  min-height: 48px;
  padding: 0 18px;
  border-radius: 999px;
  border: 1.5px solid var(--line-dark);
  background: var(--ink-2);
  color: var(--white);
  font: inherit;
  font-size: 15px;
  outline: none;
  transition: border-color 0.2s;
}
.notify input::placeholder { color: #8A8D98; }
.notify input:focus { border-color: var(--accent); }
.notify button {
  min-height: 48px;
  padding: 0 22px;
  border-radius: 999px;
  border: none;
  background: var(--accent);
  color: var(--ink);
  font: inherit;
  font-weight: 600;
  font-size: 15px;
  cursor: pointer;
  transition: transform 0.2s ease;
}
.notify button:hover { transform: translateY(-2px); }
.notify__msg { font-size: 14px; color: var(--accent); min-height: 1.2em; }

/* ---------- Vision ---------- */
.manifesto {
  font-family: var(--display);
  font-weight: 600;
  font-size: clamp(2rem, 4.2vw, 3.6rem);
  line-height: 1.1;
  letter-spacing: -0.035em;
  max-width: 60rem;
}
.highlight {
  background: var(--accent);
  color: var(--ink);
  padding: 0 0.15em;
  border-radius: 0.15em;
}
.values {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
  gap: 24px;
}
.value {
  border: 1.5px solid var(--text-2);
  border-radius: 24px;
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.value__num {
  font-family: var(--display);
  font-weight: 800;
  font-size: 20px;
  color: var(--accent);
}
.value h3 { font-size: 20px; font-weight: 600; }
.value p { font-size: 15px; line-height: 1.6; color: var(--muted-light); }

/* ---------- Contact ---------- */
.contact-wrap { padding-top: 112px; padding-bottom: 112px; }
.contact {
  background: var(--ink);
  color: var(--white);
  border-radius: 40px;
  padding: clamp(36px, 6vw, 80px);
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 380px), 1fr));
  gap: 40px;
  align-items: end;
}
.contact__text { display: flex; flex-direction: column; gap: 20px; }
.contact__title {
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(2.5rem, 5.5vw, 4.5rem);
  line-height: 0.98;
  letter-spacing: -0.045em;
}
.contact__text p {
  font-size: 1.1rem;
  line-height: 1.6;
  color: var(--muted-light);
  max-width: 30rem;
}
.contact__actions { display: flex; flex-direction: column; gap: 14px; align-items: flex-start; }
.contact__alt { font-size: 15px; color: var(--muted-light); }
.contact__alt a { color: var(--white); text-decoration: underline; }

/* ---------- Footer ---------- */
.footer { border-top: 1.5px solid var(--ink); }
.footer__inner {
  padding-top: 32px;
  padding-bottom: 40px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  font-size: 14px;
  color: var(--text-2);
}
.footer__nav { display: flex; flex-wrap: wrap; gap: 8px 24px; }

/* =========================================================
   ANIMATIONS
   ========================================================= */

/* Scroll progress bar */
.progress {
  position: fixed;
  inset: 0 0 auto 0;
  height: 4px;
  z-index: 60;
  background: var(--accent);
  transform-origin: 0 50%;
  transform: scaleX(var(--p, 0));
  box-shadow: 0 1px 0 var(--ink);
}

/* Logo dot hop */
.logo__dot { display: inline-block; animation: hop 2.6s cubic-bezier(.3, 0, .3, 1) infinite; }
@keyframes hop {
  0%, 60%, 100% { transform: translateY(0); }
  70% { transform: translateY(-9px); }
  80% { transform: translateY(0) scaleX(1.25) scaleY(.8); }
  88% { transform: translateY(-3px); }
}

/* Load-in for header + hero */
.js .hero-in {
  opacity: 0;
  animation: rise 0.9s cubic-bezier(.2, .8, .2, 1) var(--d, 0s) forwards;
}
@keyframes rise {
  from { opacity: 0; translate: 0 28px; }
  to { opacity: 1; translate: 0 0; }
}

/* Hero title: word by word */
.hero__title .word {
  display: inline-block;
  overflow: hidden;
  vertical-align: top;
  padding-bottom: 0.1em;
  margin-bottom: -0.1em;
}
.hero__title .word > span {
  display: inline-block;
  translate: 0 110%;
  rotate: 6deg;
  animation: wordUp 0.95s cubic-bezier(.2, .8, .2, 1) forwards;
  animation-delay: calc(0.3s + var(--i) * 0.07s);
}
@keyframes wordUp { to { translate: 0 0; rotate: 0deg; } }
.hero__title .word--mark > span {
  background: linear-gradient(var(--accent), var(--accent)) no-repeat 0 85% / 0% 38%;
  animation: wordUp 0.95s cubic-bezier(.2, .8, .2, 1) forwards, markIn 0.7s ease forwards;
  animation-delay: calc(0.3s + var(--i) * 0.07s), 1.3s;
}
@keyframes markIn { to { background-size: 100% 38%; } }

/* Pulsing dot */
.hero__dot { animation: ring 2s ease-out infinite; }
@keyframes ring {
  0% { box-shadow: 0 0 0 3px var(--ink), 0 0 0 3px rgba(200, 240, 60, 0.9); }
  100% { box-shadow: 0 0 0 3px var(--ink), 0 0 0 16px rgba(200, 240, 60, 0); }
}

/* Showcase */
.js .showcase {
  animation: wipe 1.1s cubic-bezier(.7, 0, .2, 1) 0.3s both;
}
@keyframes wipe {
  from { clip-path: inset(100% 0 0 0 round 40px); }
  to { clip-path: inset(0 0 0 0 round 40px); }
}
.showcase__mark {
  transition: translate 0.6s cubic-bezier(.2, .8, .2, 1);
  translate: calc(var(--mx, 0) * -30px) calc(var(--my, 0) * -30px);
  animation: markGlow 6s ease-in-out infinite;
}
@keyframes markGlow { 50% { color: #262932; } }

.phone--money { animation: phoneInMoney 1.2s cubic-bezier(.2, .8, .2, 1) 0.65s both, float 5s ease-in-out 1.9s infinite; }
.phone--docs { animation: phoneInDocs 1.2s cubic-bezier(.2, .8, .2, 1) 0.85s both, float 6s ease-in-out 2.1s infinite reverse; }
@keyframes phoneInMoney { from { transform: translateY(110%) rotate(-8deg); } to { transform: translateY(24px) rotate(0); } }
@keyframes phoneInDocs { from { transform: translateY(110%) rotate(10deg); } to { transform: translateY(20px) rotate(0); } }
@keyframes float {
  0%, 100% { translate: 0 0; }
  50% { translate: 0 -14px; }
}

.safe__fill { animation: growW 1.3s cubic-bezier(.2, .8, .2, 1) 1.3s both; }
.budget:nth-child(1) .budget__fill { animation: growW 1.1s cubic-bezier(.2, .8, .2, 1) 1.5s both; }
.budget:nth-child(2) .budget__fill { animation: growW 1.1s cubic-bezier(.2, .8, .2, 1) 1.6s both; }
.budget:nth-child(3) .budget__fill { animation: growW 1.1s cubic-bezier(.2, .8, .2, 1) 1.7s both; }
@keyframes growW { from { width: 0; } }

.doc { animation: docIn 0.6s cubic-bezier(.2, .8, .2, 1) both; }
.doc:nth-of-type(2) { animation-delay: 1.5s; }
.doc:nth-of-type(3) { animation-delay: 1.65s; }
@keyframes docIn { from { opacity: 0; transform: translateX(-24px) scale(.9); } }

.soon { animation: soonPulse 2.4s ease-in-out 2s infinite; transform-origin: left bottom; }
@keyframes soonPulse { 50% { transform: scale(1.06) rotate(-2deg); } }

/* Spinning circular badge */
.spin-badge {
  position: absolute;
  top: 24px;
  right: 24px;
  width: 112px;
  height: 112px;
  z-index: 2;
  translate: calc(var(--mx, 0) * 14px) calc(var(--my, 0) * 14px);
  transition: translate 0.6s cubic-bezier(.2, .8, .2, 1);
}
.spin-badge text {
  fill: var(--accent);
  font-family: var(--display);
  font-weight: 700;
  font-size: 13.4px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.spin-badge text,
.spin-badge circle { transform-origin: 60px 60px; }
.spin-badge text { animation: spin 14s linear infinite; }
.spin-badge circle { fill: var(--accent); animation: beat 1.6s ease-in-out infinite; }
.spin-badge--contact { position: static; width: 120px; height: 120px; margin-bottom: 8px; }
.spin-badge--contact path { stroke: var(--accent); }
.spin-badge--contact:hover text { animation-duration: 3s; }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes beat { 50% { transform: scale(1.5); } }

/* Scroll reveal */
.js [data-reveal] {
  opacity: 0;
  translate: 0 48px;
  transition:
    opacity 0.8s ease var(--d, 0s),
    translate 1s cubic-bezier(.2, .8, .2, 1) var(--d, 0s),
    transform 0.45s cubic-bezier(.2, .8, .2, 1),
    box-shadow 0.4s ease,
    border-color 0.3s ease,
    background 0.3s ease;
}
.js [data-reveal].is-in { opacity: 1; translate: 0 0; }
.js .contact[data-reveal] { scale: 0.9; transition: opacity 0.8s ease, translate 1s cubic-bezier(.2, .8, .2, 1), scale 1.1s cubic-bezier(.2, .8, .2, 1); }
.js .contact[data-reveal].is-in { scale: 1; }

/* Pills: arrow nudge + sheen */
.pill { position: relative; overflow: hidden; isolation: isolate; }
.pill .arrow { transition: transform 0.3s cubic-bezier(.2, .8, .2, 1); }
.pill:hover .arrow { transform: translateX(5px); }
.pill:hover .bounce { animation: dl 0.7s ease infinite; }
@keyframes dl { 50% { transform: translateY(3px); } }
.pill--accent::after,
.pill--dark::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(110deg, transparent 30%, rgba(255, 255, 255, 0.55) 50%, transparent 70%);
  translate: -120% 0;
  transition: translate 0.7s ease;
}
.pill--dark::after { background: linear-gradient(110deg, transparent 30%, rgba(200, 240, 60, 0.35) 50%, transparent 70%); }
.pill:hover::after { translate: 120% 0; }
.pill--outline:hover { background: var(--ink); color: var(--white); }
.pill--outline:hover .arrow { color: var(--white); }
.hero .pill--accent { animation: nudge 3.5s ease-in-out 2.5s infinite; }
@keyframes nudge {
  0%, 88%, 100% { rotate: 0deg; }
  91% { rotate: -3deg; }
  94% { rotate: 3deg; }
  97% { rotate: -1.5deg; }
}

/* Nav link underline */
.nav__link {
  background: linear-gradient(currentColor, currentColor) no-repeat 0 100% / 0% 1.5px;
  padding-bottom: 2px;
  transition: background-size 0.35s cubic-bezier(.2, .8, .2, 1);
}
.nav__link:hover { background-size: 100% 1.5px; }

/* App cards: 3D tilt + glare + hard shadow */
.tilt {
  position: relative;
  transform: perspective(1100px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg));
  transition: transform 0.5s cubic-bezier(.2, .8, .2, 1), box-shadow 0.4s ease, opacity 0.8s ease, translate 1s cubic-bezier(.2, .8, .2, 1);
  transform-style: preserve-3d;
}
.js .tilt.is-tilting { transition: transform 0.08s linear, box-shadow 0.4s ease, opacity 0.8s ease, translate 1s cubic-bezier(.2, .8, .2, 1); }
.tilt::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  background: radial-gradient(circle at var(--gx, 50%) var(--gy, 50%), rgba(200, 240, 60, 0.28), transparent 45%);
  opacity: 0;
  transition: opacity 0.4s ease;
}
.tilt:hover::after { opacity: 1; }
.app--light:hover { box-shadow: 12px 12px 0 var(--ink); }
.app--dark:hover { box-shadow: 12px 12px 0 var(--accent); }
.app:hover .app__icon { animation: wiggle 0.6s ease; }
@keyframes wiggle {
  25% { transform: rotate(-12deg) scale(1.1); }
  50% { transform: rotate(10deg) scale(1.1); }
  75% { transform: rotate(-4deg); }
}
.features li { transition: transform 0.3s cubic-bezier(.2, .8, .2, 1), background 0.3s ease, color 0.3s ease; }
.features li:hover { transform: translateY(-4px) rotate(-1deg); background: var(--accent); color: var(--ink); }

/* Vision: scroll-lit words + highlight sweep */
.js .manifesto .mword { opacity: 0.16; transition: opacity 0.35s ease; }
.js .manifesto .mword.on { opacity: 1; }
.js .highlight {
  background: linear-gradient(var(--accent), var(--accent)) no-repeat 0 0 / 0% 100%;
  color: var(--white);
  transition: background-size 0.9s cubic-bezier(.7, 0, .2, 1), color 0.4s ease 0.3s;
}
.js .highlight.on { background-size: 100% 100%; color: var(--ink); }

.value { transition: transform 0.4s cubic-bezier(.2, .8, .2, 1), border-color 0.3s ease, background 0.3s ease, opacity 0.8s ease, translate 1s cubic-bezier(.2, .8, .2, 1); }
.value:hover { transform: translateY(-8px); border-color: var(--accent); background: var(--ink-2); }
.value__num { display: inline-block; transition: transform 0.5s cubic-bezier(.3, 1.6, .5, 1); transform-origin: left center; }
.value:hover .value__num { transform: scale(1.8) rotate(-8deg); }

/* Contact blob */
.contact { position: relative; overflow: hidden; isolation: isolate; }
.contact > :not(.contact__blob) { position: relative; z-index: 1; }
.contact__blob {
  position: absolute;
  z-index: 0;
  width: 520px;
  height: 520px;
  right: -140px;
  top: -180px;
  border-radius: 42% 58% 63% 37% / 45% 40% 60% 55%;
  background: radial-gradient(circle at 35% 35%, rgba(200, 240, 60, 0.45), rgba(200, 240, 60, 0) 65%);
  filter: blur(10px);
  animation: blob 14s ease-in-out infinite alternate;
}
@keyframes blob {
  0% { transform: translate(0, 0) rotate(0deg) scale(1); }
  33% { transform: translate(-120px, 80px) rotate(60deg) scale(1.15); }
  66% { transform: translate(-40px, 180px) rotate(140deg) scale(0.9); }
  100% { transform: translate(-220px, 40px) rotate(220deg) scale(1.1); }
}

/* ---------- Focus & motion ---------- */
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .hero-in,
  .js [data-reveal],
  .hero__title .word > span { opacity: 1 !important; translate: none !important; rotate: none !important; scale: none !important; }
  .js .showcase { clip-path: none !important; }
  .js .manifesto .mword { opacity: 1 !important; }
  .js .highlight { background-size: 100% 100% !important; color: var(--ink) !important; }
  .hero__title .word--mark > span { background-size: 100% 38% !important; }
}

/* ---------- Small screens ---------- */
@media (max-width: 600px) {
  .container { padding-left: 16px; padding-right: 16px; }
  .header { justify-content: center; }
  .nav { justify-content: center; gap: 8px 20px; }
  .section { padding-top: 80px; padding-bottom: 80px; }
  .section--vision { padding-top: 88px; padding-bottom: 88px; }
  .hero { padding-top: 24px; padding-bottom: 64px; gap: 40px; }
  .showcase { min-height: 420px; gap: 12px; border-radius: 28px; }
  .phone--money { width: 190px; height: 390px; }
  .phone--docs { width: 160px; height: 330px; }
  .showcase__mark { font-size: 88px; }
  .app { padding: 26px 22px; border-radius: 26px; }
  .app__name { font-size: 34px; }
  .marquee { font-size: 17px; padding: 16px 0; }
  .spin-badge { width: 84px; height: 84px; top: 16px; right: 16px; }
  .spin-badge--contact { display: none; }
  .contact { border-radius: 28px; }
  .contact-wrap { padding-top: 80px; padding-bottom: 80px; }
}

@media (max-width: 400px) {
  .phone--docs { display: none; }
}

/* ---------- ExpertDocs card (apps section, light) ---------- */
.app__icon--img { background: var(--white); border: 1.5px solid var(--ink); overflow: hidden; }
.app__icon--img img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.12); display: block; }

/* the whole card opens ExpertDocs/index.html (click handled in script.js) */
.app[data-href] { cursor: pointer; }
.app__link { color: inherit; }
.app__link:hover { color: var(--text-2); }
.app--docs .badge--soon { color: var(--ink); border-color: var(--ink); }

.app--docs .features { grid-template-columns: repeat(auto-fit, minmax(min(100%, 210px), 1fr)); }
.app--docs .features li { position: relative; padding-left: 40px; }
.app--docs .features li::before {
  content: "";
  position: absolute;
  left: 16px;
  top: 19px;
  width: 8px;
  height: 8px;
  border-radius: 2px;
  background: var(--accent);
  border: 1.5px solid var(--ink);
  box-sizing: content-box;
  width: 6px;
  height: 6px;
  transform: rotate(45deg);
}

/* ---------- Legal page ---------- */
.legal-page { max-width: 800px; padding-top: 72px; padding-bottom: 120px; }
.legal-page__title { font-family: var(--display); font-weight: 800; font-size: clamp(2.6rem, 6vw, 4.2rem); letter-spacing: -0.04em; line-height: 1.02; margin-top: 12px; }
.legal-page__meta { color: var(--text-3); margin-top: 12px; }
.legal-page h2 { font-family: var(--display); font-weight: 700; font-size: 1.6rem; letter-spacing: -0.02em; margin: 44px 0 12px; }
.legal-page p, .legal-page li { font-size: 1.05rem; line-height: 1.7; color: var(--text-2); }
.legal-page p { margin-bottom: 14px; }
.legal-page ul { padding-left: 22px; margin: 0 0 14px; }
.legal-page li { margin-bottom: 8px; }
.legal-page a { text-decoration: underline; text-underline-offset: 3px; }
.legal-page a:hover { color: var(--ink); background: var(--accent); }
