/* ==========================================================================
   Tokens
   ========================================================================== */
:root {
  --c-night: #1D1A33;
  --c-dusk: #2A2650;
  --c-dusk-deep: #3A3470;
  --c-line: #5A5299;
  --c-milk: #F6F1FF;
  --c-muted: #C9C2E6;
  --c-soft: #E4DEFA;
  --c-yellow: #FFD166;
  --c-lilac: #A996FF;
  --c-pink: #FF9CC2;
  --c-mint: #7CE0C3;
  --c-violet: #6E4FE0;
  --c-ink-muted: #4A4560;

  --f-display: "Comfortaa", "Nunito", system-ui, sans-serif;
  --f-body: "Nunito", "Segoe UI", system-ui, sans-serif;

  --r-s: 14px;
  --r-m: 22px;
  --r-l: 28px;
  --r-xl: 40px;

  --container: 1136px;
  --gutter: clamp(20px, 5vw, 72px);
  --section-gap: clamp(72px, 10vw, 128px);
}

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

html { scroll-behavior: smooth; scroll-padding-top: 104px; }

body {
  margin: 0;
  background: var(--c-night);
  color: var(--c-milk);
  font-family: var(--f-body);
  font-size: 17px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

img, svg { max-width: 100%; display: block; }
img { height: auto; }
a { color: inherit; }
a:hover { color: var(--c-yellow); }

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

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

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

/* ==========================================================================
   Layout helpers
   ========================================================================== */
.container {
  width: 100%;
  max-width: calc(var(--container) + var(--gutter) * 2);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.main { display: flex; flex-direction: column; gap: var(--section-gap); padding-bottom: var(--section-gap); }

/* ==========================================================================
   Section head (shared block)
   ========================================================================== */
.section-head { display: flex; flex-direction: column; gap: 16px; margin-bottom: 40px; }
.section-head--center { align-items: center; text-align: center; }
.section-head__eyebrow { font-size: 16px; font-weight: 800; color: var(--c-lilac); text-transform: uppercase; letter-spacing: 1px; }
.section-head__title {
  margin: 0; font-family: var(--f-display); font-weight: 700;
  font-size: clamp(30px, 4.2vw, 44px); line-height: 1.15; letter-spacing: -0.5px;
}
.section-head__text { margin: 0; font-size: clamp(17px, 1.8vw, 20px); color: var(--c-muted); max-width: 760px; }

/* ==========================================================================
   Button
   ========================================================================== */
.button {
  display: inline-flex; align-items: center; justify-content: center;
  font-family: inherit; font-size: 18px; font-weight: 800; line-height: 1.2;
  padding: 20px 32px; border-radius: 18px; border: 2px solid transparent;
  text-decoration: none; cursor: pointer; transition: transform .15s ease, background-color .15s ease;
}
.button:active { transform: translateY(1px); }
.button--primary { background: var(--c-yellow); color: var(--c-night); }
.button--primary:hover { background: #FFDC85; color: var(--c-night); }
.button--outline { background: transparent; color: var(--c-milk); border-color: var(--c-lilac); }
.button--outline:hover { background: rgba(169, 150, 255, .12); color: var(--c-milk); }
.button--dark { background: var(--c-night); color: var(--c-yellow); }
.button--dark:hover { background: #2E2A58; color: var(--c-yellow); }
.button--ghost { background: none; color: var(--c-lilac); border-color: var(--c-lilac); font-size: 16px; padding: 12px 20px; }
.button--block { width: 100%; }

/* ==========================================================================
   Header
   ========================================================================== */
.header {
  position: sticky; top: 0; z-index: 50;
  padding: 16px 0;
  background: rgba(29, 26, 51, .9);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--c-dusk-deep);
}
.header__inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.header__logo { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.header__logo-text { font-family: var(--f-display); font-weight: 700; font-size: 24px; }
.header__logo svg { flex-shrink: 0; }
.header__logo-text { white-space: nowrap; }
.header__logo-break { display: none; }
@media (max-width: 560px) {
  .header__inner { gap: 12px; }
  .header__logo { gap: 8px; }
  .header .header__logo svg { width: 40px; height: 32px; }
  .header .header__logo-text { font-size: 16px; line-height: 1.1; }
  .header__logo-break { display: inline; }
  .header .header__cta { padding: 10px 12px; font-size: 14px; }
}
.header__nav { display: flex; align-items: center; gap: 32px; font-weight: 600; }
.header__link { text-decoration: none; }
.header__cta { padding: 14px 22px; font-size: 16px; border-radius: 16px; white-space: nowrap; }

@media (max-width: 860px) {
  .header__link { display: none; }
  .header {
    padding: 10px 0; padding-top: calc(10px + env(safe-area-inset-top, 0px));
  }
  .header__logo svg { width: 40px; height: 32px; }
  .header__logo-text { font-size: 20px; }
  .header__cta { padding: 11px 16px; font-size: 15px; border-radius: 14px; }
  html { scroll-padding-top: 88px; }
}

/* ==========================================================================
   Hero
   ========================================================================== */
.hero { padding-top: 32px; }
.hero__inner { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 48px; align-items: center; }
.hero__content { display: flex; flex-direction: column; gap: 28px; }
.hero__badge { align-self: flex-start; background: #2E2A58; color: #CFC4FF; padding: 8px 16px; border-radius: 999px; font-weight: 800; font-size: 14px; }
.hero__title { margin: 0; font-family: var(--f-display); font-weight: 700; font-size: clamp(38px, 5vw, 58px); line-height: 1.1; letter-spacing: -1px; }
.hero__title-accent { color: var(--c-yellow); }
.hero__text { margin: 0; font-size: clamp(18px, 1.8vw, 20px); line-height: 1.55; color: var(--c-muted); max-width: 480px; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 16px 24px; align-items: center; }
.hero__link { font-weight: 700; }

.hero__visual { position: relative; display: flex; flex-direction: column; align-items: center; gap: 24px; padding-top: 150px; }
.hero__moon { position: absolute; top: 0; right: 30px; width: 80px; height: 80px; }
.hero__cat { position: absolute; z-index: 2; top: -18px; left: 50%; transform: translateX(-52%); width: 380px; filter: drop-shadow(0 14px 18px rgba(0,0,0,.45)); }

@media (max-width: 960px) {
  .hero__inner { grid-template-columns: minmax(0, 1fr); }
  .hero__visual { padding-top: 130px; }
  .hero__cat { width: 330px; }
}

/* ==========================================================================
   Budget card (hero widget)
   ========================================================================== */
.budget-card {
  position: relative;
  width: 100%; max-width: 400px; background: var(--c-dusk); border-radius: 32px; padding: 32px;
  display: flex; flex-direction: column; gap: 20px; box-shadow: 0 24px 60px rgba(0,0,0,.35);
  animation: budget-float 5.5s ease-in-out infinite;
}
@keyframes budget-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-7px); }
}
.budget-card__meta { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 12px; font-size: 15px; white-space: nowrap; font-weight: 600; color: var(--c-muted); }
.budget-card__amount { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 12px; }
.budget-card__value {
  font-family: var(--f-display); font-weight: 700; font-size: 56px; line-height: 1; color: var(--c-yellow);
  font-variant-numeric: tabular-nums;
}
.budget-card__total { font-size: 17px; color: var(--c-muted); }
.budget-card__toast {
  position: absolute; right: 28px; bottom: 86px;
  margin: 0; padding: 7px 12px; border-radius: 999px;
  background: var(--c-night); border: 1px solid var(--c-pink); color: var(--c-pink);
  font-size: 13px; font-weight: 800; line-height: 1; white-space: nowrap;
  opacity: 0; transform: translateY(6px) scale(.96);
  transition: opacity .25s ease, transform .25s ease;
  pointer-events: none; z-index: 2;
}
.budget-card__toast.is-on {
  opacity: 1; transform: translateY(0) scale(1);
}
.budget-card.is-tight .budget-card__today-value { color: var(--c-pink); }
.budget-card__days { display: flex; gap: 6px; }
.budget-card__day { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; gap: 6px; height: 84px; font-size: 12px; font-weight: 800; color: var(--c-muted); }
.budget-card__day.is-current { color: var(--c-yellow); }
.budget-card__bar {
  position: relative; overflow: hidden;
  width: 100%; height: 56px; border-radius: 6px;
  border: 2px dashed var(--c-line); background: transparent;
  box-sizing: border-box;
  transition: border-color .35s ease, border-style .35s ease;
}
.budget-card__bar-fill {
  position: absolute; left: 0; right: 0; bottom: 0;
  height: 0; background: var(--c-yellow); border-radius: 3px;
  transition: height 1.1s cubic-bezier(.22, .8, .3, 1), background-color .4s ease;
}
.budget-card__day.is-current .budget-card__bar {
  border: 2px solid var(--c-yellow);
  animation: budget-today-glow 2.4s ease-in-out infinite;
}
.budget-card__day.is-past .budget-card__bar {
  border-color: transparent;
  border-style: solid;
  animation: none;
}
.budget-card__day.is-past .budget-card__bar-fill {
  background: var(--c-lilac);
}
@keyframes budget-today-glow {
  0%, 100% { box-shadow: 0 0 0 0 rgba(255, 209, 102, 0); }
  50% { box-shadow: 0 0 0 6px rgba(255, 209, 102, .18); }
}
.budget-card:not(.is-live) .budget-card__day:nth-child(-n+3) .budget-card__bar {
  height: var(--bar-h); border: 0; background: var(--c-lilac);
}
.budget-card:not(.is-live) .budget-card__day:nth-child(4) { color: var(--c-yellow); }
.budget-card:not(.is-live) .budget-card__day:nth-child(4) .budget-card__bar {
  border: 2px solid var(--c-yellow);
}
.budget-card__today { display: flex; justify-content: space-between; align-items: center; background: var(--c-night); border-radius: 18px; padding: 16px 20px; font-weight: 700; }
.budget-card__today-value { font-family: var(--f-display); font-size: 28px; white-space: nowrap; font-variant-numeric: tabular-nums; }

/* ==========================================================================
   Notice
   ========================================================================== */
.notice {
  width: 100%; max-width: 400px; display: flex; gap: 14px; align-items: center;
  background: #3A2F4F; border: 1px solid var(--c-yellow); border-radius: 20px;
  padding: 14px 22px 14px 12px; font-size: 15px; line-height: 1.45;
}
.notice__image { width: 72px; height: 82px; object-fit: contain; flex-shrink: 0; }

/* ==========================================================================
   Moods
   ========================================================================== */
.moods__title { margin: 0 0 28px; font-family: var(--f-display); font-weight: 700; font-size: clamp(28px, 3.4vw, 40px); }
.moods__list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; margin: 0; padding: 0; list-style: none; }
.mood { height: 340px; background: var(--c-dusk); border-radius: var(--r-l); padding: 28px 28px 0; display: flex; flex-direction: column; gap: 8px; overflow: hidden; }
.mood__tag { align-self: flex-start; color: var(--c-night); font-weight: 800; font-size: 13px; padding: 6px 12px; border-radius: 999px; }
.mood__tag--calm { background: var(--c-lilac); }
.mood__tag--alert { background: var(--c-yellow); }
.mood__tag--angry { background: var(--c-pink); }
.mood__text { margin: 0; font-size: 17px; line-height: 1.45; color: var(--c-soft); }
.mood__image { margin-top: auto; align-self: center; height: 210px; width: auto; object-fit: contain; object-position: bottom; }
.mood__image--crop { height: 230px; width: 150px; object-fit: cover; object-position: top; }

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

/* ==========================================================================
   Screens
   ========================================================================== */
.screens__list { display: flex; justify-content: center; align-items: flex-start; gap: clamp(16px, 3vw, 40px); margin: 0; padding: 0; list-style: none; }
.screens__item { flex: 0 1 300px; display: flex; flex-direction: column; align-items: center; gap: 16px; margin-top: 64px; }
.screens__item--main { flex-basis: 340px; margin-top: 0; }
.screens__image { width: 100%; }
.screens__caption { margin: 0; text-align: center; font-size: 16px; font-weight: 700; color: var(--c-muted); }
.screens__item--main .screens__caption { color: var(--c-milk); }

@media (max-width: 860px) {
  .screens__list {
    justify-content: flex-start; overflow-x: auto; scroll-snap-type: x mandatory;
    margin: 0 calc(var(--gutter) * -1); padding: 0 var(--gutter) 8px; scrollbar-width: none;
  }
  .screens__list::-webkit-scrollbar { display: none; }
  .screens__item, .screens__item--main { flex: 0 0 72%; margin-top: 0; scroll-snap-align: center; }
  .screens__item--main { order: -1; }
}

/* ==========================================================================
   Problem
   ========================================================================== */
.problem__inner { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 48px; align-items: center; }
.problem__visual { position: relative; height: 480px; background: var(--c-dusk); border-radius: 36px; overflow: hidden; display: flex; justify-content: center; align-items: flex-end; }
.problem__image { width: 250px; height: 300px; object-fit: contain; object-position: bottom; transform: scaleX(-1); }
.problem__content { display: flex; flex-direction: column; gap: 24px; }
.problem__text { margin: 0; font-size: clamp(17px, 1.8vw, 20px); line-height: 1.55; color: var(--c-muted); }
.problem__text strong { color: var(--c-milk); }

.spending-list { position: absolute; top: 40px; left: 40px; right: 40px; margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 10px; }
.spending-list__item { display: flex; justify-content: space-between; gap: 12px; color: var(--c-muted); font-size: 16px; }
.spending-list__sum { color: var(--c-milk); font-weight: 800; white-space: nowrap; }
.spending-list__sum--unknown { color: var(--c-pink); }

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

/* ==========================================================================
   Steps
   ========================================================================== */
.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; margin: 0; padding: 0; list-style: none; counter-reset: step; }
.step { background: var(--c-dusk); border-radius: var(--r-l); padding: 32px; display: flex; flex-direction: column; gap: 16px; }
.step__number { font-family: var(--f-display); font-weight: 700; font-size: 56px; color: var(--c-yellow); line-height: 1; }
.step__title { margin: 0; font-size: 24px; font-weight: 800; line-height: 1.25; }
.step__text { margin: 0; color: var(--c-muted); }

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

/* Step with app screenshot */
.step--with-screen { padding: 0; gap: 0; overflow: hidden; }
.step__body { display: flex; flex-direction: column; gap: 16px; padding: 32px 32px 24px; }
.step__screen { margin-top: auto; height: 400px; overflow: hidden; display: flex; justify-content: center; padding: 0 20px; }
.step__image { width: 100%; max-width: 300px; height: auto; align-self: flex-start; margin-bottom: -60%; }

@media (max-width: 860px) {
  .step__screen { height: 360px; }
}


/* ==========================================================================
   Calculator
   ========================================================================== */
.calc { background: var(--c-dusk); border-radius: var(--r-xl); padding: clamp(28px, 5vw, 56px); display: flex; flex-direction: column; gap: 40px; }
.calc .section-head { margin-bottom: 0; }
.calc__controls { display: flex; flex-direction: column; gap: 20px; }
.calc__top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; }
.calc__income { display: flex; align-items: center; gap: 12px; font-weight: 700; }
.calc__input {
  font-family: inherit; font-size: 18px; font-weight: 800; color: var(--c-milk);
  background: var(--c-night); border: 1px solid var(--c-line); border-radius: var(--r-s);
  padding: 12px 16px; width: 150px;
}
.calc__presets { display: flex; flex-wrap: wrap; gap: 10px; }
.calc__preset {
  font-family: inherit; font-size: 15px; font-weight: 800; padding: 10px 16px; border-radius: 12px; cursor: pointer;
  border: 2px solid var(--c-line); background: transparent; color: var(--c-milk);
}
.calc__preset--active { border-color: var(--c-yellow); background: var(--c-yellow); color: var(--c-night); }
.calc__bar { display: flex; height: 28px; border-radius: 12px; overflow: hidden; background: var(--c-night); }
.calc__bar-part { transition: width .2s ease; }
.calc__bar-part--needs { background: var(--c-milk); }
.calc__bar-part--wants { background: var(--c-yellow); }
.calc__bar-part--savings { background: var(--c-lilac); }
.calc__groups { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.calc__results { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }

.share { background: var(--c-night); border-radius: var(--r-m); padding: 22px; display: flex; flex-direction: column; gap: 10px; }
.share__name { display: flex; align-items: center; gap: 10px; font-weight: 800; }
.share__dot { width: 14px; height: 14px; border-radius: 5px; }
.share__dot--needs { background: var(--c-milk); }
.share__dot--wants { background: var(--c-yellow); }
.share__dot--savings { background: var(--c-lilac); }
.share__values { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; }
.share__percent { font-family: var(--f-display); font-weight: 700; font-size: 36px; }
.share__amount { font-size: 18px; font-weight: 700; color: var(--c-muted); white-space: nowrap; }
.share__range { width: 100%; cursor: pointer; accent-color: var(--c-yellow); }
.share__range--needs { accent-color: var(--c-milk); }
.share__note { font-size: 15px; color: var(--c-muted); padding-top: 6px; }

.result { background: var(--c-night); border-radius: 24px; padding: 24px; display: flex; flex-direction: column; gap: 8px; border: 2px solid transparent; }
.result--accent { border-color: var(--c-yellow); }
.result__label, .result__hint { font-size: 15px; color: var(--c-muted); }
.result__value { font-family: var(--f-display); font-weight: 700; font-size: clamp(30px, 3.4vw, 40px); }
.result--accent .result__value { color: var(--c-yellow); }

.calc__example { display: grid; grid-template-columns: 7fr 5fr; gap: 40px; align-items: end; padding-top: 16px; }
.calc__example-text { display: flex; flex-direction: column; gap: 16px; }
.calc__example-title { margin: 0; font-size: 26px; font-weight: 800; line-height: 1.25; }
.calc__example-text p { margin: 0; font-size: 18px; color: var(--c-muted); }

.week-chart { display: flex; gap: 12px; height: 220px; margin: 0; padding: 0; list-style: none; }
.week-chart__day { flex: 1; min-width: 0; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; gap: 8px; }
.week-chart__sum { font-size: 15px; font-weight: 800; white-space: nowrap; }
.week-chart__bar { width: 100%; border-radius: 12px; background: var(--c-lilac); }
.week-chart__bar--over { background: var(--c-yellow); }
.week-chart__bar--left { height: 150px; border: 2px dashed var(--c-pink); background: none; display: flex; align-items: center; justify-content: center; }
.week-chart__name { font-size: 14px; font-weight: 800; color: var(--c-muted); }
.week-chart__day--left .week-chart__sum,
.week-chart__day--left .week-chart__name { color: var(--c-pink); }
.week-chart__cat { width: 64px; height: 73px; object-fit: contain; }

@media (max-width: 960px) {
  .calc__example { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 720px) {
  .calc__groups, .calc__results { grid-template-columns: minmax(0, 1fr); }
  .week-chart { gap: 6px; }
  .week-chart__sum { font-size: 11px; }
  .week-chart__cat { width: 36px; }
}

/* ==========================================================================
   Receipts
   ========================================================================== */
.receipts__inner { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 56px; align-items: center; }
.receipts__content { display: flex; flex-direction: column; gap: 24px; }
.receipts__content .section-head { margin-bottom: 0; }
.receipts__bank { background: var(--c-dusk); border-radius: var(--r-m); padding: 20px 24px; display: flex; flex-direction: column; gap: 6px; }
.receipts__bank-label { font-size: 14px; color: var(--c-muted); }
.receipts__bank-row { display: flex; justify-content: space-between; font-size: 20px; font-weight: 800; }
.receipts__steps { display: flex; flex-direction: column; gap: 14px; margin: 0; padding: 0; list-style: none; }
.receipts__step { display: flex; gap: 16px; align-items: flex-start; font-size: 18px; }
.receipts__step-number { flex-shrink: 0; width: 36px; height: 36px; border-radius: 12px; background: var(--c-yellow); color: var(--c-night); font-weight: 800; display: flex; align-items: center; justify-content: center; }
.receipts__step-text { padding-top: 5px; }
.receipts__visual { position: relative; display: flex; justify-content: center; padding-top: 150px; }
.receipts__cat { position: absolute; z-index: 2; top: 0; right: 0; width: 120px; height: 187px; object-fit: contain; }

.receipt { width: 100%; max-width: 440px; filter: drop-shadow(0 24px 40px rgba(0,0,0,.4)); }
.receipt__paper { background: #FFFFFF; color: var(--c-night); border-radius: 20px 20px 0 0; padding: 32px 32px 20px; display: flex; flex-direction: column; gap: 14px; }
.receipt__head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.receipt__shop { font-size: 20px; font-weight: 800; }
.receipt__meta { font-size: 14px; color: #6B6488; }
.receipt__divider { border: 0; border-top: 2px dashed #D9D4E4; margin: 0; }
.receipt__items { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 14px; }
.receipt__item { display: flex; align-items: center; gap: 10px; font-size: 16px; }
.receipt__name { flex: 1; }
.receipt__price { width: 64px; text-align: right; font-weight: 700; }
.receipt__total { display: flex; justify-content: space-between; font-size: 20px; font-weight: 800; }
.receipt__split { display: flex; height: 36px; border-radius: 12px; overflow: hidden; font-size: 14px; font-weight: 800; }
.receipt__split-part { display: flex; align-items: center; padding: 0 12px; white-space: nowrap; }
.receipt__split-part--need { width: 44%; background: var(--c-lilac); }
.receipt__split-part--want { width: 56%; background: var(--c-yellow); }
.receipt__edge { display: block; width: 100%; height: 14px; }

.tag { font-size: 12px; font-weight: 800; padding: 3px 9px; border-radius: 999px; white-space: nowrap; }
.tag--need { background: #E4DDFF; color: #3B2A8C; }
.tag--want { background: #FFE9A8; color: #6B4E00; }

@media (max-width: 960px) {
  .receipts__inner { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 480px) {
  .receipt__paper { padding: 24px 18px 16px; }
  .receipts__cat { width: 90px; }
}

/* ==========================================================================
   Features
   ========================================================================== */
.features { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; margin: 0; padding: 0; list-style: none; }
.feature { background: var(--c-dusk); border-radius: 24px; padding: 28px; display: flex; flex-direction: column; gap: 14px; }
.feature__icon { width: 52px; height: 52px; border-radius: 16px; display: flex; align-items: center; justify-content: center; }
.feature__icon--yellow { background: var(--c-yellow); }
.feature__icon--lilac { background: var(--c-lilac); }
.feature__icon--pink { background: var(--c-pink); }
.feature__icon--mint { background: var(--c-mint); }
.feature__title { margin: 0; font-size: 20px; font-weight: 800; }
.feature__text { margin: 0; font-size: 16px; color: var(--c-muted); }

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

/* ==========================================================================
   Pricing
   ========================================================================== */
.pricing { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; max-width: 1000px; margin: 96px auto 0; }
.plan { position: relative; border-radius: 32px; padding: clamp(28px, 4vw, 40px); display: flex; flex-direction: column; gap: 28px; }
.plan--free { background: var(--c-dusk); }
.plan--paid { background: var(--c-milk); color: var(--c-night); }
.plan__cat { position: absolute; top: -96px; right: 28px; width: 130px; height: 121px; object-fit: contain; }
.plan__head { display: flex; flex-direction: column; gap: 8px; }
.plan__name { margin: 0; font-size: 26px; font-weight: 800; line-height: 1.25; }
.plan__price { display: flex; align-items: baseline; gap: 14px; }
.plan__value { font-family: var(--f-display); font-weight: 700; font-size: 48px; }
.plan__old { font-size: 22px; color: #6B6488; }
.plan__period { font-size: 16px; color: var(--c-muted); }
.plan--paid .plan__period { color: var(--c-ink-muted); }
.plan__action { margin-top: auto; }

.check-list { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 14px; line-height: 1.4; }
.check-list__item { display: flex; gap: 12px; align-items: flex-start; }
.check-list__icon { flex-shrink: 0; margin-top: 2px; stroke: var(--c-lilac); }
.check-list--dark .check-list__icon { stroke: var(--c-violet); }
.check-list__note { display: block; font-size: 14px; color: var(--c-muted); margin-top: 2px; }
.check-list--dark .check-list__note { color: var(--c-ink-muted); }

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

/* ==========================================================================
   Signup
   ========================================================================== */
.signup { background: var(--c-dusk); border-radius: var(--r-xl); padding: clamp(28px, 5vw, 56px); display: grid; grid-template-columns: 5fr 7fr; gap: 56px; align-items: center; }
.signup__intro { display: flex; flex-direction: column; gap: 20px; align-self: stretch; }
.signup__intro .section-head { margin-bottom: 0; }
.signup__cat { margin-top: auto; align-self: flex-end; width: 230px; height: 282px; object-fit: contain; }
.signup__form { display: flex; flex-direction: column; gap: 20px; }
.signup__row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.signup__error { margin: 0; color: var(--c-pink); font-weight: 700; }
.signup__hint { margin: -8px 0 0; font-size: 14px; color: var(--c-muted); }
.signup__success { display: flex; flex-direction: column; align-items: center; gap: 20px; text-align: center; padding: 40px 0; }
.signup__success[hidden], .signup__form[hidden] { display: none; }
.signup__success-image { width: 380px; }
.signup__success-title { margin: 0; font-family: var(--f-display); font-size: 32px; }
.signup__success-text { margin: 0; font-size: 19px; color: var(--c-muted); max-width: 440px; }

.field { display: flex; flex-direction: column; gap: 8px; font-size: 15px; font-weight: 700; border: 0; margin: 0; padding: 0; min-width: 0; }
.field__legend { padding: 0 0 8px; font-weight: 700; }
.field__control {
  font-family: inherit; font-size: 17px; color: var(--c-milk); background: var(--c-night);
  border: 1px solid var(--c-line); border-radius: var(--r-s); padding: 14px 16px; width: 100%;
}
.field__control::placeholder { color: #8C84B5; }
.field__control--textarea { resize: vertical; min-height: 96px; }
.field__options { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }

.choice { display: flex; align-items: center; gap: 10px; background: var(--c-night); border: 1px solid var(--c-line); border-radius: var(--r-s); padding: 12px 16px; font-weight: 600; font-size: 16px; cursor: pointer; }
.choice:has(input:checked) { border-color: var(--c-yellow); }
.choice__input { width: 18px; height: 18px; accent-color: var(--c-yellow); flex-shrink: 0; }

@media (max-width: 960px) {
  .signup { grid-template-columns: minmax(0, 1fr); }
  .signup__cat { display: none; }
}
@media (max-width: 560px) {
  .signup__row, .field__options { grid-template-columns: minmax(0, 1fr); }
}

/* ==========================================================================
   FAQ
   ========================================================================== */
.faq { max-width: 900px; margin: 0 auto; }
.faq__list { display: flex; flex-direction: column; gap: 12px; }
.faq__item { background: var(--c-dusk); border-radius: var(--r-m); overflow: hidden; }
.faq__question {
  list-style: none; cursor: pointer; padding: 24px 28px; display: flex; justify-content: space-between; align-items: center; gap: 16px;
  font-size: 19px; font-weight: 800;
}
.faq__question::-webkit-details-marker { display: none; }
.faq__sign { font-size: 28px; line-height: 1; color: var(--c-yellow); transition: transform .2s ease; }
.faq__item[open] .faq__sign { transform: rotate(45deg); }
.faq__answer { margin: 0; padding: 0 28px 24px; font-size: 17px; line-height: 1.6; color: var(--c-muted); }

/* ==========================================================================
   Footer
   ========================================================================== */
.footer { border-top: 1px solid var(--c-dusk-deep); padding: 40px 0; }
.footer__inner { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 32px; }
.footer__brand { display: flex; align-items: center; gap: 14px; }
.footer__name { font-family: var(--f-display); font-weight: 700; font-size: 22px; }
.footer__caption { display: block; font-size: 15px; color: var(--c-muted); }
.footer__nav { display: flex; flex-wrap: wrap; gap: 28px; font-weight: 600; }
.footer__link { text-decoration: none; }

/* Very small phones */
@media (max-width: 360px) {
  .header .header__logo svg { width: 32px; height: 26px; }
  .header .header__logo-text { font-size: 15px; }
  .header .header__cta { padding: 9px 10px; font-size: 13px; }
  .week-chart { gap: 4px; }
  .week-chart__sum { font-size: 10px; }
}

/* Problem cat on small screens */
@media (max-width: 560px) {
  .problem__visual { height: 400px; }
  .problem__image { width: 150px; height: 180px; }
}

/* ==========================================================================
   Pay page
   ========================================================================== */
.pay { padding-top: 24px; }
.pay__intro { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 40px; align-items: center; }
.pay__intro-text { display: flex; flex-direction: column; gap: 20px; }
.pay__title { margin: 0; font-family: var(--f-display); font-weight: 700; font-size: clamp(36px, 5vw, 56px); line-height: 1.1; letter-spacing: -1px; }
.pay__lead { margin: 0; font-size: clamp(18px, 1.8vw, 20px); color: var(--c-muted); max-width: 560px; }

.offer { position: relative; background: var(--c-milk); color: var(--c-night); border-radius: 32px; padding: 32px; display: flex; flex-direction: column; gap: 10px; overflow: hidden; min-height: 220px; }
.offer__price { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 14px; }
.offer__value { font-family: var(--f-display); font-weight: 700; font-size: 56px; line-height: 1; }
.offer__old { font-size: 24px; color: #6B6488; }
.offer__period { width: 100%; font-size: 16px; color: var(--c-ink-muted); }
.offer__note { margin: 0; font-size: 16px; color: var(--c-ink-muted); max-width: 60%; }
.offer__cat { position: absolute; right: -10px; bottom: -40px; width: 150px; transform: scaleX(-1); }
.offer__cta { align-self: flex-start; margin-top: 8px; padding: 14px 22px; font-size: 16px; position: relative; z-index: 1; }

.pay__grid { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: 40px; align-items: start; }
.pay__info { display: flex; flex-direction: column; gap: 24px; }

.pay-note { border-radius: var(--r-m); padding: 24px 28px; display: flex; flex-direction: column; gap: 8px; }
.pay-note--payment { background: #3A2F4F; border: 1px solid var(--c-yellow); }
.pay-note--why { background: var(--c-dusk); }
.pay-note__title { margin: 0; font-size: 20px; font-weight: 800; }
.pay-note__text { margin: 0; color: var(--c-soft); }

.pay-block { display: flex; flex-direction: column; gap: 18px; padding-top: 8px; }
.pay-block__title { margin: 0; font-family: var(--f-display); font-weight: 700; font-size: 28px; }

.perks { margin: 0; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.perk { background: var(--c-dusk); border-radius: var(--r-m); padding: 24px; display: flex; flex-direction: column; gap: 10px; }
.perk__badge { align-self: flex-start; font-family: var(--f-display); font-weight: 700; font-size: 20px; padding: 6px 12px; border-radius: 12px; color: var(--c-night); }
.perk--discount .perk__badge { background: var(--c-yellow); }
.perk--free .perk__badge { background: var(--c-lilac); }
.perk__title { margin: 0; font-size: 18px; font-weight: 800; }
.perk__text { margin: 0; font-size: 16px; color: var(--c-muted); }

.pay__form-wrap { position: sticky; top: 104px; }
.pay-form { background: var(--c-dusk); border-radius: var(--r-xl); padding: clamp(24px, 4vw, 40px); display: flex; flex-direction: column; gap: 18px; }
.pay-form--success { align-items: center; text-align: center; }
.pay-form[hidden], .pay__form-wrap .wpcf7[hidden] { display: none !important; }
.pay-form__title { margin: 0; font-family: var(--f-display); font-weight: 700; font-size: 28px; }
.pay-form__terms { display: block; width: 100%; min-width: 0; }
.field__optional { font-weight: 400; color: var(--c-muted); }

.choice--term { align-items: flex-start; padding: 14px 16px; }
.choice__label { display: flex; flex-direction: column; gap: 2px; }
.choice__sum { font-size: 15px; font-weight: 600; color: var(--c-muted); }

.consent { display: flex; gap: 12px; align-items: flex-start; font-size: 15px; color: var(--c-soft); cursor: pointer; }
.consent .choice__input { margin-top: 2px; }

@media (max-width: 960px) {
  .pay__intro, .pay__grid { grid-template-columns: minmax(0, 1fr); }
  .pay__form-wrap { position: static; }
}
@media (max-width: 560px) {
  .perks, .pay-form__terms { grid-template-columns: minmax(0, 1fr); }
  .offer__value { font-size: 44px; }
  .offer__note { max-width: 62%; }
  .offer__cat { width: 120px; }
}
