/* ==========================================================================
   Tidynizer — landing page
   ========================================================================== */

:root {
  --bg: #efece5;
  --bg-2: #e6e2d8;
  --ink: #111110;
  --ink-2: #2a2926;
  --muted: #6f6b62;
  --line: rgba(17, 17, 16, 0.14);
  --lime: #d6ff3d;
  --blue: #3a55ff;
  --orange: #ff5a1f;
  --pink: #ffb7e3;
  --violet: #9b8cff;

  --sans: "Inter Tight", system-ui, -apple-system, "Segoe UI", sans-serif;
  --serif: "Instrument Serif", "Times New Roman", serif;
  --mono: "JetBrains Mono", ui-monospace, Menlo, monospace;

  --pad: clamp(16px, 3.2vw, 48px);
  --radius: clamp(18px, 2.2vw, 32px);
  --ease: cubic-bezier(0.7, 0, 0.2, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

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

html { -webkit-text-size-adjust: 100%; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: hidden; }

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

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

a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
em { font-family: var(--serif); font-style: italic; font-weight: 400; letter-spacing: -0.01em; }
img, svg { display: block; }

.mono {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.section-label { color: var(--muted); margin-bottom: clamp(24px, 4vw, 56px); }

.h2 {
  font-size: clamp(2.6rem, 7.4vw, 7.5rem);
  line-height: 0.92;
  letter-spacing: -0.05em;
  font-weight: 500;
  margin: 0;
}

section, .footer { padding: 0 var(--pad); }

/* ---------- Grain ---------- */
.grain {
  position: fixed;
  inset: -50%;
  z-index: 90;
  pointer-events: none;
  opacity: 0.07;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: grain 1s steps(6) infinite;
}
@keyframes grain {
  0% { transform: translate(0, 0); }
  20% { transform: translate(-4%, 3%); }
  40% { transform: translate(3%, -5%); }
  60% { transform: translate(-6%, -2%); }
  80% { transform: translate(5%, 4%); }
  100% { transform: translate(0, 0); }
}

/* ---------- Loader ---------- */
.loader {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: var(--ink);
  color: var(--bg);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: var(--pad);
  transition: transform 1.1s var(--ease) 0.15s;
}
.loader__inner {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 24px;
}
.loader__word {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(2.4rem, 7vw, 6rem);
  line-height: 1;
}
.loader__count {
  font-size: clamp(4rem, 16vw, 15rem);
  font-weight: 500;
  letter-spacing: -0.06em;
  line-height: 0.8;
  font-variant-numeric: tabular-nums;
}
.loader__bar { height: 2px; background: rgba(239, 236, 229, 0.15); margin-top: 24px; }
.loader__bar span {
  display: block;
  height: 100%;
  width: 100%;
  background: var(--lime);
  transform-origin: left;
  transform: scaleX(var(--p, 0));
}
.is-loaded .loader { transform: translateY(-100%); }
.is-ready .loader { display: none; }

/* ---------- Cursor ---------- */
.cursor {
  position: fixed;
  left: 0;
  top: 0;
  z-index: 95;
  width: 12px;
  height: 12px;
  margin: -6px 0 0 -6px;
  border-radius: 50%;
  background: var(--ink);
  pointer-events: none;
  display: grid;
  place-items: center;
  opacity: 0;
  transition: width 0.45s var(--ease-out), height 0.45s var(--ease-out), margin 0.45s var(--ease-out), background 0.3s, opacity 0.3s;
}
.cursor__label {
  font-family: var(--mono);
  font-size: 11px;
  text-transform: uppercase;
  color: var(--ink);
  white-space: nowrap;
  opacity: 0;
  transition: opacity 0.2s;
}
.has-cursor .cursor { opacity: 1; }
.cursor.is-hover { width: 56px; height: 56px; margin: -28px 0 0 -28px; background: var(--lime); mix-blend-mode: normal; }
.cursor.is-label { width: 104px; height: 104px; margin: -52px 0 0 -52px; background: var(--lime); }
.cursor.is-label .cursor__label { opacity: 1; }
@media (pointer: coarse) { .cursor { display: none; } }

/* ---------- Nav ---------- */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 80;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px var(--pad);
  color: #fff;
  mix-blend-mode: difference;
}
.nav__logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  font-size: 19px;
  letter-spacing: -0.03em;
}
.nav__logo svg { width: 24px; height: 24px; fill: currentColor; transition: transform 0.8s var(--ease); }
.nav__logo:hover svg { transform: rotate(180deg); }
.nav__logo sup { font-size: 10px; font-weight: 500; }
.nav__links { display: flex; gap: clamp(16px, 2.6vw, 40px); }
.nav__links a, .footer__grid a { position: relative; }
.nav__links a::after, .footer__grid a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -2px;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.5s var(--ease);
}
.nav__links a:hover::after, .footer__grid a:hover::after { transform: scaleX(1); transform-origin: left; }
.nav__cta {
  border: 1px solid currentColor;
  border-radius: 999px;
  padding: 9px 18px;
  font-size: 15px;
  white-space: nowrap;
}
@media (max-width: 760px) { .nav__links { display: none; } }

/* ---------- Buttons ---------- */
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  height: 56px;
  padding: 0 28px;
  border-radius: 999px;
  font-weight: 500;
  overflow: hidden;
  isolation: isolate;
  transition: color 0.5s var(--ease);
}
.btn::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  border-radius: inherit;
  background: var(--lime);
  transform: translateY(101%);
  transition: transform 0.6s var(--ease);
}
.btn:hover::before { transform: translateY(0); }
.btn--ink { background: var(--ink); color: var(--bg); }
.btn--ink:hover { color: var(--ink); }
.btn--ghost { border: 1px solid var(--ink); }

/* ---------- Reveal ---------- */
.reveal { opacity: 0; transform: translateY(40px); transition: opacity 1.1s var(--ease-out), transform 1.1s var(--ease-out); }
.reveal.is-in { opacity: 1; transform: none; }

/* ---------- Hero ---------- */
.hero { padding-top: clamp(96px, 14vh, 150px); padding-bottom: clamp(48px, 8vw, 110px); }
.hero__meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  color: var(--muted);
  margin-bottom: clamp(20px, 3vw, 40px);
}
.tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px 6px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 14px;
  color: var(--ink);
}
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--orange); box-shadow: 0 0 0 0 rgba(255, 90, 31, 0.6); animation: pulse 2s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 9px rgba(255, 90, 31, 0); } 100% { box-shadow: 0 0 0 0 rgba(255, 90, 31, 0); } }

.hero__title {
  margin: 0;
  font-weight: 500;
  font-size: clamp(3.6rem, 13.2vw, 15rem);
  line-height: 0.86;
  letter-spacing: -0.065em;
}
.hero__title .line { display: block; overflow: hidden; padding-bottom: 0.06em; }
.hero__title .line > span {
  display: inline-block;
  transform: translateY(110%) rotate(4deg);
  transform-origin: left bottom;
  transition: transform 1.3s var(--ease);
}
.hero__title .line:nth-child(2) { padding-left: 12vw; }
.hero__title .line:nth-child(2) > span { transition-delay: 0.08s; }
.hero__title .line:nth-child(3) > span { transition-delay: 0.16s; }
.hero__title em { letter-spacing: -0.04em; }
.hero__title .accent { color: var(--orange); }
.is-loaded .hero__title .line > span { transform: none; }

.hero__row {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  flex-wrap: wrap;
  gap: 28px;
  margin: clamp(28px, 4vw, 56px) 0 clamp(40px, 6vw, 80px);
}
.hero__lede { max-width: 30ch; margin: 0; font-size: clamp(18px, 1.6vw, 22px); line-height: 1.35; letter-spacing: -0.01em; }
.hero__ctas { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- Desk demo ---------- */
.window {
  background: var(--bg-2);
  border-radius: var(--radius);
  border: 1px solid var(--line);
  overflow: hidden;
  box-shadow: 0 40px 80px -40px rgba(17, 17, 16, 0.35);
}
.window__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 12px 12px 18px;
  border-bottom: 1px solid var(--line);
  background: var(--bg);
}
.window__lights { display: flex; gap: 7px; }
.window__lights i { width: 12px; height: 12px; border-radius: 50%; background: var(--line); }
.window__lights i:nth-child(1) { background: var(--orange); }
.window__lights i:nth-child(2) { background: #ffc83d; }
.window__lights i:nth-child(3) { background: #3dcc6e; }
.window__title { color: var(--muted); font-size: 11px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.window__btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: 999px;
  background: var(--ink);
  color: var(--bg);
  font-size: 14px;
  font-weight: 500;
  white-space: nowrap;
  transition: background 0.3s, color 0.3s;
}
.window__btn:hover { background: var(--lime); color: var(--ink); }
.window__btn .spark { display: inline-block; transition: transform 0.8s var(--ease); }
.window__btn:hover .spark { transform: rotate(180deg) scale(1.2); }

.desk {
  position: relative;
  height: clamp(440px, 46vw, 600px);
  overflow: hidden;
  background:
    radial-gradient(circle at 20% 15%, rgba(214, 255, 61, 0.35), transparent 45%),
    radial-gradient(circle at 85% 80%, rgba(155, 140, 255, 0.28), transparent 45%),
    var(--bg-2);
  cursor: pointer;
}
.desk__col {
  position: absolute;
  top: 18px;
  text-align: center;
  font-family: var(--mono);
  font-size: 11px;
  text-transform: uppercase;
  color: var(--muted);
  opacity: 0;
  transform: translateY(-8px);
  transition: opacity 0.5s, transform 0.6s var(--ease-out);
  pointer-events: none;
}
.desk.is-tidy .desk__col { opacity: 1; transform: none; transition-delay: 0.6s; }
.desk__col b { color: var(--ink); font-weight: 500; }

.file {
  position: absolute;
  left: 0;
  top: 0;
  width: 96px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  transition: transform 1.15s var(--ease);
  will-change: transform;
}
.desk.no-anim .file { transition: none; }
.file__icon {
  position: relative;
  width: 58px;
  height: 70px;
  border-radius: 8px 18px 8px 8px;
  background: var(--c);
  box-shadow: 0 10px 20px -10px rgba(17, 17, 16, 0.45), inset 0 0 0 1px rgba(17, 17, 16, 0.08);
  display: flex;
  align-items: flex-end;
  padding: 7px;
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 500;
  color: var(--fc, var(--ink));
  transition: transform 0.4s var(--ease-out);
}
.file__icon::after {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 16px;
  height: 16px;
  border-radius: 0 18px 0 6px;
  background: rgba(255, 255, 255, 0.45);
}
.file:hover .file__icon { transform: translateY(-4px) scale(1.06); }
.file__name {
  max-width: 100%;
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 11.5px;
  line-height: 1.25;
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  background: rgba(239, 236, 229, 0.7);
}
@media (max-width: 700px) {
  .file { width: 64px; }
  .file__icon { width: 42px; height: 52px; font-size: 8.5px; padding: 5px; border-radius: 6px 13px 6px 6px; }
  .file__icon::after { width: 12px; height: 12px; border-radius: 0 13px 0 5px; }
  .file__name { font-size: 9.5px; padding: 1px 3px; }
  .desk__col { font-size: 9px; }
  .desk__col b { display: block; }
}

/* ---------- Marquee ---------- */
.marquee {
  padding: clamp(20px, 3vw, 36px) 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  overflow: hidden;
  background: var(--ink);
  color: var(--bg);
}
.marquee__track { display: flex; width: max-content; animation: marquee 32s linear infinite; }
.marquee:hover .marquee__track { animation-play-state: paused; }
.marquee__group { display: flex; align-items: center; gap: clamp(20px, 3vw, 48px); padding-right: clamp(20px, 3vw, 48px); }
.marquee span { font-size: clamp(2.6rem, 7vw, 6.5rem); line-height: 1; letter-spacing: -0.05em; font-weight: 500; white-space: nowrap; }
.marquee b { color: var(--lime); font-size: clamp(1.6rem, 4vw, 3.6rem); font-weight: 400; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Manifesto ---------- */
.manifesto { padding-top: clamp(96px, 14vw, 200px); padding-bottom: clamp(96px, 14vw, 200px); }
.manifesto__text {
  margin: 0;
  max-width: 22ch;
  font-size: clamp(2rem, 5.2vw, 5.4rem);
  line-height: 1;
  letter-spacing: -0.045em;
  font-weight: 500;
}
.manifesto__text .w { opacity: 0.14; transition: opacity 0.25s linear; }
.manifesto__text .w.is-on { opacity: 1; }
.manifesto__text .w.serif { font-family: var(--serif); font-style: italic; font-weight: 400; letter-spacing: -0.02em; }
.manifesto__sign { display: flex; align-items: baseline; gap: 18px; margin-top: clamp(32px, 4vw, 56px); color: var(--muted); }
.signature { font-family: var(--serif); font-style: italic; font-size: 34px; color: var(--ink); }

/* ---------- Features (stacking cards) ---------- */
.features { padding-bottom: clamp(80px, 10vw, 160px); }
.features__head { margin-bottom: clamp(40px, 6vw, 80px); }
.stack { display: grid; gap: 6vh; }
.card {
  position: sticky;
  top: calc(12vh + var(--i) * 22px);
  min-height: min(76vh, 680px);
  border-radius: var(--radius);
  padding: clamp(24px, 4vw, 56px);
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: clamp(24px, 4vw, 64px);
  align-items: stretch;
  transform-origin: 50% 0;
  will-change: transform;
}
.card--lime { background: var(--lime); }
.card--blue { background: var(--blue); color: #fff; }
.card--orange { background: var(--orange); }
.card--ink { background: var(--ink); color: var(--bg); }
.card__copy { display: flex; flex-direction: column; }
.card__num { opacity: 0.7; }
.card h3 {
  margin: auto 0 18px;
  padding-top: 40px;
  font-size: clamp(2.6rem, 6vw, 6rem);
  line-height: 0.9;
  letter-spacing: -0.055em;
  font-weight: 500;
}
.card p { margin: 0; max-width: 36ch; font-size: clamp(16px, 1.3vw, 19px); line-height: 1.4; }
.card__list { list-style: none; padding: 0; margin: 28px 0 0; display: flex; flex-wrap: wrap; gap: 8px; }
.card__list li { border: 1px solid currentColor; border-radius: 999px; padding: 6px 12px; font-size: 11px; opacity: 0.85; }
.card__visual {
  border-radius: calc(var(--radius) - 8px);
  background: rgba(255, 255, 255, 0.28);
  padding: clamp(18px, 3vw, 40px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 300px;
}
.card--blue .card__visual { background: rgba(255, 255, 255, 0.12); }
.card--ink .card__visual { background: rgba(255, 255, 255, 0.06); align-items: center; }
@media (max-width: 860px) {
  .card { grid-template-columns: 1fr; top: calc(9vh + var(--i) * 14px); min-height: 0; }
  .card h3 { padding-top: 28px; margin-top: 0; }
  .card__visual { min-height: 240px; }
}

.chip {
  display: inline-flex;
  align-items: center;
  padding: 5px 11px;
  border-radius: 999px;
  background: rgba(17, 17, 16, 0.08);
  font-size: 14px;
  white-space: nowrap;
}
.chip--line { background: transparent; border: 1px solid currentColor; }
.chip--ink { background: var(--ink); color: var(--bg); }

.rule { background: var(--bg); border-radius: 18px; padding: 18px; box-shadow: 0 24px 48px -28px rgba(17, 17, 16, 0.5); }
.rule__row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding: 12px 0; border-bottom: 1px dashed var(--line); font-size: 15px; }
.rule__foot { display: flex; justify-content: space-between; align-items: center; padding-top: 14px; color: var(--muted); gap: 12px; }
.toggle { width: 44px; height: 26px; border-radius: 99px; background: var(--line); position: relative; flex: none; }
.toggle i { position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; transition: transform 0.4s var(--ease); }
.toggle.is-on { background: var(--ink); }
.toggle.is-on i { transform: translateX(18px); background: var(--lime); }

.shots { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.shots i {
  aspect-ratio: 4 / 3;
  border-radius: 8px;
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.9), rgba(255, 255, 255, 0.55));
  position: relative;
  transition: transform 0.6s var(--ease), opacity 0.6s;
}
.shots i::before { content: ""; position: absolute; left: 12%; right: 30%; top: 22%; height: 8%; border-radius: 4px; background: rgba(58, 85, 255, 0.35); }
.shots i::after { content: ""; position: absolute; left: 12%; right: 50%; top: 42%; height: 8%; border-radius: 4px; background: rgba(58, 85, 255, 0.2); }
.card.is-active .shots i.old { transform: scale(0.6) translateY(10px); opacity: 0.18; }
.shots i:nth-child(3n) { transition-delay: 0.1s; }
.shots i:nth-child(3n + 1) { transition-delay: 0.2s; }
.shots__cap { margin-top: 22px !important; opacity: 0.85; }

.history { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.history li {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 14px 14px 18px;
  border-radius: 14px;
  background: var(--bg);
  font-size: 15px;
  box-shadow: 0 16px 32px -24px rgba(17, 17, 16, 0.6);
}
.history li .mono { color: var(--muted); width: 74px; flex: none; font-size: 11px; }
.history li b { font-weight: 500; }
.history li .chip { margin-left: auto; font-size: 12px; }
@media (max-width: 520px) {
  .history li { flex-wrap: wrap; gap: 4px 10px; font-size: 14px; }
  .history li .mono { width: 100%; }
}

.ring { position: relative; width: min(100%, 300px); aspect-ratio: 1; }
.ring svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.ring circle { fill: none; stroke-width: 10; }
.ring__track { stroke: rgba(255, 255, 255, 0.1); }
.ring__fill { stroke: var(--lime); stroke-linecap: round; stroke-dasharray: 540; stroke-dashoffset: 540; transition: stroke-dashoffset 2s var(--ease); }
.card.is-active .ring__fill { stroke-dashoffset: 0; }
.ring__txt { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; gap: 6px; }
.ring__txt strong { font-size: clamp(4rem, 9vw, 7rem); line-height: 0.8; font-weight: 500; letter-spacing: -0.06em; }
.ring__txt .mono { opacity: 0.6; }

/* ---------- Stats ---------- */
.stats { padding-top: clamp(40px, 6vw, 80px); padding-bottom: clamp(80px, 10vw, 140px); }
.stats__grid { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line); }
.stat { padding: 28px 24px 28px 0; border-right: 1px solid var(--line); display: flex; flex-direction: column; gap: 12px; }
.stat + .stat { padding-left: 24px; }
.stat:last-child { border-right: 0; }
.stat strong { font-size: clamp(3.4rem, 7vw, 7rem); font-weight: 500; letter-spacing: -0.06em; line-height: 0.9; font-variant-numeric: tabular-nums; }
.stat small { font-family: var(--serif); font-style: italic; font-weight: 400; font-size: 0.42em; letter-spacing: -0.01em; margin-left: 4px; }
.stat > span { color: var(--muted); max-width: 22ch; }
.stat:nth-child(2) { transition-delay: 0.08s; }
.stat:nth-child(3) { transition-delay: 0.16s; }
.stat:nth-child(4) { transition-delay: 0.24s; }
@media (max-width: 900px) {
  .stats__grid { grid-template-columns: 1fr 1fr; }
  .stat:nth-child(2) { border-right: 0; }
  .stat:nth-child(3) { padding-left: 0; }
  .stat:nth-child(n + 3) { border-top: 1px solid var(--line); }
}
@media (max-width: 480px) {
  .stats__grid { grid-template-columns: 1fr; }
  .stat, .stat + .stat { padding-left: 0; border-right: 0; }
  .stat + .stat { border-top: 1px solid var(--line); }
}
.logos {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 20px 40px;
  margin-top: clamp(48px, 6vw, 80px);
  color: var(--muted);
  font-size: clamp(13px, 1.3vw, 16px);
}
.logos span { transition: color 0.3s; }
.logos span:hover { color: var(--ink); }

/* ---------- Quotes ---------- */
.quotes { padding-bottom: clamp(80px, 10vw, 160px); }
.quotes__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.quote {
  margin: 0;
  padding: clamp(24px, 3vw, 36px);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 48px;
  min-height: 340px;
  transition: background 0.5s var(--ease), transform 0.6s var(--ease-out), opacity 1.1s var(--ease-out);
}
.quote:hover { background: #fff; }
.quote:nth-child(2) { transition-delay: 0s, 0s, 0.1s; }
.quote:nth-child(3) { transition-delay: 0s, 0s, 0.2s; }
.quote blockquote { margin: 0; font-family: var(--serif); font-size: clamp(1.7rem, 2.4vw, 2.4rem); line-height: 1.05; letter-spacing: -0.015em; }
.quote figcaption { display: flex; align-items: center; gap: 10px; font-weight: 500; flex-wrap: wrap; }
.quote figcaption i { width: 32px; height: 32px; border-radius: 50%; background: var(--c); }
.quote figcaption span { color: var(--muted); font-weight: 400; }
@media (max-width: 900px) { .quotes__grid { grid-template-columns: 1fr; } .quote { min-height: 0; } }

/* ---------- Pricing ---------- */
.pricing { padding-bottom: clamp(80px, 10vw, 160px); }
.pricing__head { display: flex; justify-content: space-between; align-items: flex-end; flex-wrap: wrap; gap: 24px; margin-bottom: clamp(32px, 5vw, 64px); }
.switch { display: inline-flex; padding: 4px; border-radius: 999px; border: 1px solid var(--line); background: var(--bg-2); }
.switch button { padding: 10px 18px; border-radius: 999px; font-size: 14px; font-weight: 500; transition: background 0.4s var(--ease), color 0.4s; }
.switch button.is-active { background: var(--ink); color: var(--bg); }
.save { color: var(--orange); margin-left: 4px; }
.switch button.is-active .save { color: var(--lime); }
.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.plan {
  position: relative;
  padding: clamp(24px, 3vw, 40px);
  border-radius: var(--radius);
  background: var(--bg-2);
  display: flex;
  flex-direction: column;
}
.plan h3 { margin: 0; font-size: 22px; font-weight: 500; letter-spacing: -0.02em; }
.plan__price { margin: 36px 0 8px; display: flex; align-items: baseline; gap: 4px; }
.plan__price span { font-size: clamp(3.6rem, 6vw, 5.6rem); font-weight: 500; letter-spacing: -0.06em; line-height: 0.9; display: inline-block; transition: transform 0.45s var(--ease), opacity 0.3s; }
.plan__price span.is-swap { transform: translateY(-30%); opacity: 0; }
.plan__price small { font-family: var(--serif); font-style: italic; font-size: 24px; color: var(--muted); }
.plan__desc { margin: 0 0 28px; color: var(--muted); }
.plan ul { list-style: none; margin: 0 0 36px; padding: 0; border-top: 1px solid var(--line); }
.plan li { padding: 12px 0; border-bottom: 1px solid var(--line); display: flex; gap: 10px; }
.plan li::before { content: "✓"; color: var(--orange); }
.plan .btn { margin-top: auto; }
.plan--hot { background: var(--ink); color: var(--bg); }
.plan--hot .plan__desc, .plan--hot .plan__price small { color: rgba(239, 236, 229, 0.6); }
.plan--hot ul, .plan--hot li { border-color: rgba(239, 236, 229, 0.15); }
.plan--hot li::before { color: var(--lime); }
.plan--hot .btn--ink { background: var(--lime); color: var(--ink); }
.plan--hot .btn--ink::before { background: var(--bg); }
.plan__badge { position: absolute; top: clamp(24px, 3vw, 40px); right: clamp(24px, 3vw, 40px); background: var(--lime); color: var(--ink); padding: 5px 10px; border-radius: 99px; font-size: 10px; }
.plan:nth-child(2) { transition-delay: 0.08s; }
.plan:nth-child(3) { transition-delay: 0.16s; }
@media (max-width: 900px) { .plans { grid-template-columns: 1fr; } }

/* ---------- FAQ ---------- */
.faq { padding-bottom: clamp(80px, 10vw, 160px); }
.faq__list { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  padding: clamp(20px, 2.4vw, 32px) 0;
  font-size: clamp(1.3rem, 2.6vw, 2.4rem);
  letter-spacing: -0.035em;
  font-weight: 500;
  cursor: pointer;
  transition: padding 0.5s var(--ease);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary:hover { padding-left: 12px; }
.faq summary span {
  flex: none;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid var(--line);
  display: grid;
  place-items: center;
  font-weight: 400;
  font-size: 22px;
  transition: transform 0.5s var(--ease), background 0.3s;
}
.faq details[open] summary span { transform: rotate(45deg); background: var(--lime); border-color: var(--lime); }
.faq details p { margin: 0; padding: 0 0 32px; max-width: 60ch; color: var(--muted); font-size: 18px; animation: fade 0.6s var(--ease-out); }
@keyframes fade { from { opacity: 0; transform: translateY(-8px); } }

/* ---------- Footer ---------- */
.footer {
  background: var(--ink);
  color: var(--bg);
  border-radius: var(--radius) var(--radius) 0 0;
  padding-top: clamp(64px, 10vw, 140px);
  overflow: hidden;
}
.footer__cta > .mono { color: rgba(239, 236, 229, 0.55); margin: 0 0 24px; }
.footer__title { margin: 0; font-size: clamp(3rem, 9.5vw, 10rem); line-height: 0.88; letter-spacing: -0.06em; font-weight: 500; }
.footer__title em { color: var(--lime); }
.footer__btns { display: flex; flex-wrap: wrap; gap: 12px; margin-top: clamp(32px, 4vw, 56px); transition-delay: 0.1s; }
.store {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 12px 22px 12px 16px;
  border-radius: 16px;
  border: 1px solid rgba(239, 236, 229, 0.25);
  transition: background 0.4s, color 0.4s, border-color 0.4s;
}
.store:hover { background: var(--lime); color: var(--ink); border-color: var(--lime); }
.store svg { width: 26px; height: 26px; fill: currentColor; }
.store span { display: flex; flex-direction: column; line-height: 1.1; font-weight: 500; font-size: 18px; }
.store small { font-size: 11px; font-weight: 400; opacity: 0.6; }

.footer__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr) 1.6fr;
  gap: 32px;
  margin-top: clamp(64px, 10vw, 140px);
  padding-top: 32px;
  border-top: 1px solid rgba(239, 236, 229, 0.15);
}
.footer__grid > div { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; }
.footer__grid h4 { margin: 0 0 8px; font-weight: 400; color: rgba(239, 236, 229, 0.5); }
.news { position: relative; display: flex; width: 100%; border-bottom: 1px solid rgba(239, 236, 229, 0.4); }
.news input { flex: 1; min-width: 0; background: none; border: 0; outline: 0; color: inherit; font: inherit; font-size: 20px; padding: 10px 0; }
.news input::placeholder { color: rgba(239, 236, 229, 0.35); }
.news button { font-size: 24px; padding: 0 4px; transition: transform 0.4s var(--ease), color 0.3s; }
.news button:hover { transform: translateX(6px); color: var(--lime); }
.news__ok { position: absolute; inset: 0; display: flex; align-items: center; background: var(--ink); color: var(--lime); opacity: 0; pointer-events: none; transition: opacity 0.4s; }
.news.is-done .news__ok { opacity: 1; }
@media (max-width: 860px) {
  .footer__grid { grid-template-columns: 1fr 1fr 1fr; }
  .footer__news { grid-column: 1 / -1; }
}
@media (max-width: 520px) { .footer__grid { grid-template-columns: 1fr 1fr; } }

.footer__mark {
  margin: clamp(48px, 8vw, 100px) 0 0;
  font-size: 25.4vw;
  font-weight: 600;
  letter-spacing: -0.075em;
  line-height: 0.78;
  white-space: nowrap;
  text-align: center;
  color: var(--bg);
  transform: translateY(var(--mark-y, 30%));
}
.footer__base {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  padding: 24px 0;
  color: rgba(239, 236, 229, 0.5);
  border-top: 1px solid rgba(239, 236, 229, 0.15);
  position: relative;
  background: var(--ink);
}
.footer__base a:hover { color: var(--lime); }

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; transition-delay: 0s !important; }
  .grain { animation: none; }
  .reveal { opacity: 1; transform: none; }
}
