/* Сайт «Сейчас»: та же системная палитра iOS, что и в приложении (src/web/public/app.css), светлая и тёмная тема. */
:root {
  --bg: #f2f2f7; --card: #fff; --card2: #f2f2f7; --fill: rgba(120,120,128,.12); --fill2: rgba(120,120,128,.08);
  --label: #000; --label2: rgba(60,60,67,.6); --label3: rgba(60,60,67,.3); --sep: rgba(60,60,67,.18);
  --blue: #007aff; --green: #34c759; --orange: #ff9500; --red: #ff3b30; --yellow: #ffcc00; --indigo: #5856d6; --gray: #8e8e93;
  --bar: rgba(242,242,247,.8); --shadow: 0 1px 2px rgba(0,0,0,.04), 0 12px 32px rgba(0,0,0,.07);
  --phone: #1c1c1e;
  --round: ui-rounded, "SF Pro Rounded", -apple-system, system-ui, sans-serif;
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #000; --card: #1c1c1e; --card2: #2c2c2e; --fill: rgba(120,120,128,.24); --fill2: rgba(120,120,128,.16);
    --label: #fff; --label2: rgba(235,235,245,.6); --label3: rgba(235,235,245,.3); --sep: rgba(84,84,88,.65);
    --blue: #0a84ff; --green: #30d158; --orange: #ff9f0a; --red: #ff453a; --yellow: #ffd60a; --indigo: #5e5ce6; --gray: #98989f;
    --bar: rgba(0,0,0,.72); --shadow: 0 0 0 .5px rgba(255,255,255,.08);
    --phone: #2c2c2e;
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; background: var(--bg); color: var(--label);
  font: 17px/1.47 -apple-system, BlinkMacSystemFont, "SF Pro Text", system-ui, "Segoe UI", Roboto, sans-serif;
  letter-spacing: -.41px; -webkit-font-smoothing: antialiased;
}
a { color: var(--blue); text-decoration: none; }
a:focus-visible, .pill:focus-visible { outline: 3px solid color-mix(in srgb, var(--blue) 55%, transparent); outline-offset: 3px; border-radius: 12px; }
h1, h2, h3 { margin: 0; }
img { display: block; }

/* ---------- Шапка ---------- */
.top {
  position: sticky; top: 0; z-index: 10; display: flex; align-items: center; justify-content: space-between;
  padding: calc(env(safe-area-inset-top) + 10px) max(20px, calc((100% - 1080px) / 2)) 10px;
  background: var(--bar); -webkit-backdrop-filter: saturate(180%) blur(20px); backdrop-filter: saturate(180%) blur(20px);
  border-bottom: .5px solid var(--sep);
}
.brand { display: flex; align-items: center; gap: 10px; color: var(--label); font-weight: 600; font-size: 19px; letter-spacing: -.2px; }
.brand img { border-radius: 8px; }

.pill {
  display: inline-flex; align-items: center; justify-content: center; height: 52px; padding: 0 28px; border-radius: 26px;
  background: var(--blue); color: #fff; font-weight: 600; font-size: 17px; transition: transform .15s, opacity .15s;
}
.pill:active { transform: scale(.97); opacity: .85; }
.pill.small { height: 34px; padding: 0 16px; font-size: 15px; border-radius: 17px; }
.quiet { font-size: 17px; font-weight: 500; padding: 0 6px; }

main { padding: 0 20px; }

/* ---------- Первый экран ---------- */
.hero {
  max-width: 1080px; margin: 0 auto; padding: 40px 0 72px;
  display: grid; gap: 44px; align-items: center;
}
.hero h1 { font-size: clamp(44px, 12vw, 76px); line-height: 1.02; font-weight: 800; letter-spacing: -.035em; }
.lead { font-size: clamp(19px, 2.4vw, 22px); line-height: 1.4; color: var(--label2); margin: 20px 0 28px; max-width: 30em; letter-spacing: -.3px; }
.actions { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.note { font-size: 15px; color: var(--label2); margin: 22px 0 0; letter-spacing: -.2px; max-width: 30em; }
@media (min-width: 900px) {
  .hero { grid-template-columns: 1.1fr .9fr; padding: 72px 0 110px; }
}

/* Телефон: экран «Сейчас» из настоящих элементов приложения */
.phone {
  justify-self: center; position: relative; width: min(330px, 86vw); aspect-ratio: 9 / 19; border-radius: 52px;
  background: var(--phone); padding: 11px; box-shadow: 0 30px 60px -20px rgba(0,0,0,.35), 0 0 0 1px rgba(0,0,0,.06);
}
.island { position: absolute; top: 22px; left: 50%; width: 92px; height: 26px; margin-left: -46px; border-radius: 14px; background: #000; z-index: 2; }
.screen { position: relative; height: 100%; border-radius: 42px; background: var(--bg); overflow: hidden; padding: 58px 14px 0; font-size: 13px; }
.app-nav b { display: block; font-size: 27px; line-height: 1.1; font-weight: 700; letter-spacing: .2px; }
.app-nav span { color: var(--label2); font-size: 12px; }
.app-tabs { position: absolute; left: 0; right: 0; bottom: 0; height: 58px; display: flex; justify-content: space-around; align-items: flex-start; padding-top: 12px; background: var(--bar); border-top: .5px solid var(--sep); }
.app-tabs i { width: 22px; height: 22px; border-radius: 7px; background: var(--fill); }
.app-tabs i.on { background: var(--blue); }

.pick { position: relative; margin-top: 14px; }
.pile { list-style: none; margin: 0; padding: 0; position: absolute; inset: 0 0 auto; }
.pile li {
  background: var(--card); border-radius: 12px; padding: 10px 12px; margin-bottom: 6px; font-size: 13px; box-shadow: var(--shadow);
  transition: transform .7s cubic-bezier(.6,0,.25,1), opacity .5s ease; transition-delay: calc(var(--i) * 70ms);
}
.now-card {
  position: relative; background: var(--card); border-radius: 22px; padding: 16px; box-shadow: var(--shadow);
  opacity: 0; transform: translateY(18px) scale(.96); transition: opacity .5s ease .55s, transform .6s cubic-bezier(.2,.9,.25,1.1) .55s;
}
/* Момент выбора: стопка дел уходит, остаётся одно */
.pick.done .pile li { transform: translateY(calc(var(--i) * -6px + 40px)) scale(.92); opacity: 0; }
.pick.done .now-card { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .pile { display: none; }
  .now-card { opacity: 1; transform: none; transition: none; }
}
.now-card h2 { font-size: 19px; line-height: 1.2; letter-spacing: -.3px; margin: 10px 0 6px; }
.why { color: var(--label2); margin: 0 0 12px; font-size: 13px; line-height: 1.35; }
.step { background: var(--fill2); border-radius: 12px; padding: 9px 11px; margin-bottom: 12px; font-size: 13px; }
.step span { display: block; color: var(--label2); font-size: 11px; margin-bottom: 2px; }
.btn { display: flex; align-items: center; justify-content: center; height: 40px; border-radius: 12px; font-weight: 600; font-size: 14px; }
.btn.primary { background: var(--blue); color: #fff; margin-bottom: 8px; }
.btn-row { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.btn.green-t { background: color-mix(in srgb, var(--green) 15%, transparent); color: var(--green); }
.btn.tinted { background: color-mix(in srgb, var(--blue) 14%, transparent); color: var(--blue); }

.chips { display: flex; flex-wrap: wrap; gap: 5px; }
.chip { display: inline-flex; align-items: center; gap: 5px; font-size: 12px; font-weight: 500; padding: 3px 8px; border-radius: 99px; background: var(--fill); color: var(--label2); white-space: nowrap; letter-spacing: -.08px; }
.chip.red { background: color-mix(in srgb, var(--red) 14%, transparent); color: var(--red); }
.dot { width: 8px; height: 8px; border-radius: 50%; display: inline-block; flex: none; }

/* ---------- Возможности ---------- */
.features { max-width: 1080px; margin: 0 auto; }
.feature { display: grid; gap: 26px; align-items: center; padding: 56px 0; border-top: .5px solid var(--sep); }
.f-text h2 { font-size: clamp(28px, 5vw, 38px); line-height: 1.12; font-weight: 700; letter-spacing: -.025em; margin-bottom: 16px; max-width: 16em; }
.f-text p { color: var(--label2); margin: 0 0 12px; max-width: 32em; font-size: 18px; letter-spacing: -.3px; }
.f-demo { display: flex; justify-content: center; }
@media (min-width: 900px) {
  .feature { grid-template-columns: 1fr 1fr; gap: 64px; padding: 88px 0; }
  .feature.flip .f-text { order: 2; }
}
.f-demo > * { width: 100%; max-width: 380px; background: var(--card); border-radius: 26px; padding: 20px; box-shadow: var(--shadow); }

/* «Не сейчас» */
.sheet-demo h3 { font-size: 17px; margin-bottom: 14px; }
.reasons { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.reasons span { background: var(--fill2); border-radius: 12px; padding: 11px 12px; font-size: 15px; }
.reasons .on { background: color-mix(in srgb, var(--blue) 14%, transparent); color: var(--blue); font-weight: 600; }
.prio { display: flex; gap: 12px; align-items: center; padding: 11px 12px; margin-bottom: 10px; border-radius: 14px; background: color-mix(in srgb, var(--blue) 10%, transparent); }
.prio > span { font-size: 22px; }
.prio b { display: block; font-size: 15px; }
.prio small { color: var(--label2); font-size: 13px; }
.answer { margin-top: 14px; padding: 12px 14px; border-radius: 14px; background: color-mix(in srgb, var(--green) 12%, transparent); font-size: 15px; line-height: 1.35; }
.answer b { display: block; margin-bottom: 2px; }

/* Таймер */
.timer-demo { text-align: center; position: relative; }
.ring { width: 190px; height: 190px; margin: 4px auto 0; transform: rotate(-90deg); display: block; }
.ring circle { fill: none; stroke-width: 9; }
.ring .track { stroke: var(--fill); }
.ring .bar { stroke: var(--blue); stroke-linecap: round; stroke-dasharray: 326.7; stroke-dashoffset: 190; transition: stroke-dashoffset 1s linear; }
.ring-time { position: absolute; top: 20px; left: 0; right: 0; height: 190px; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.ring-time b { font: 300 46px/1 var(--round); font-variant-numeric: tabular-nums; letter-spacing: 0; }
.ring-time span { color: var(--label2); font-size: 13px; margin-top: 4px; }
.timer-title { font-weight: 700; font-size: 20px; margin: 12px 0 10px; letter-spacing: -.3px; }
.mini-btns { display: flex; justify-content: center; gap: 8px; margin-bottom: 16px; }
.mini-btns span { background: var(--fill); border-radius: 99px; padding: 7px 14px; font-size: 14px; font-weight: 600; }
.list-demo { text-align: left; }
.lh { font-size: 12px; color: var(--label2); margin: 10px 4px 5px; }
.lr { display: flex; align-items: center; gap: 10px; background: var(--fill2); border-radius: 12px; padding: 10px 12px; font-size: 15px; margin-bottom: 6px; }
.grow { flex: 1; min-width: 0; }
.tab { font: 500 15px var(--round); font-variant-numeric: tabular-nums; }
.tab.muted { color: var(--label2); font-weight: 400; }

/* Статистика */
.streaks { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 18px; }
.streak { background: var(--fill2); border-radius: 16px; padding: 12px 14px; }
.streak b { display: block; font: 700 28px/1.1 var(--round); }
.streak span { color: var(--label2); font-size: 13px; }
.bars { position: relative; height: 150px; display: grid; grid-template-columns: repeat(7, 1fr); gap: 8px; align-items: end; padding-bottom: 20px; }
.goal { position: absolute; left: 0; right: 0; bottom: calc(20px + 130px * .75); border-top: 1.5px dashed var(--label3); }
.goal span { position: absolute; right: 0; top: -18px; font-size: 11px; color: var(--label2); }
.bar { position: relative; height: 100%; display: flex; flex-direction: column; justify-content: flex-end; }
.bar i { display: block; height: var(--h); min-height: 3px; border-radius: 6px; background: color-mix(in srgb, var(--blue) 55%, transparent); }
.bar.today i { background: var(--blue); }
.bar span { position: absolute; bottom: -20px; left: 0; right: 0; text-align: center; font-size: 11px; color: var(--label2); }
.sum { margin-top: 16px; color: var(--label2); font-size: 15px; }
.sum b { color: var(--label); }

/* Уведомления */
.notes-demo { background: none !important; box-shadow: none !important; padding: 0 !important; display: grid; gap: 10px; }
.note-card {
  display: flex; gap: 11px; align-items: flex-start; padding: 12px 14px; border-radius: 20px; font-size: 14px; line-height: 1.3;
  background: color-mix(in srgb, var(--card) 82%, transparent); -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px); box-shadow: var(--shadow);
}
.note-card img { width: 36px; height: 36px; border-radius: 9px; flex: none; }
.note-card div { flex: 1; min-width: 0; }
.note-card b { display: block; font-size: 15px; }
.note-card span { color: var(--label2); }
.note-card time { color: var(--label2); font-size: 13px; }
.note-card.done b { color: var(--green); }

/* Ввод */
.bubble { background: color-mix(in srgb, var(--blue) 12%, transparent); border-radius: 18px 18px 6px 18px; padding: 12px 14px; font-size: 15px; line-height: 1.35; margin-left: 24px; }
.parsed { margin: 14px 0; }
.ph { font-weight: 600; font-size: 15px; margin: 0 4px 8px; }
.compose { display: flex; align-items: center; justify-content: space-between; height: 46px; border-radius: 23px; background: var(--fill2); padding: 0 8px 0 16px; color: var(--label3); font-size: 15px; }
.mic { font-style: normal; width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; background: var(--fill); }

/* Неделя */
.week-demo { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; }
.day { min-height: 190px; background: var(--fill2); border-radius: 12px; padding: 8px 5px; display: flex; flex-direction: column; gap: 5px; }
.day b { font-size: 12px; text-align: center; color: var(--label2); margin-bottom: 3px; }
.day.today b { color: var(--blue); }
.day i {
  font-style: normal; font-size: 11px; line-height: 1.25; padding: 6px; border-radius: 8px;
  background: color-mix(in srgb, var(--c) 16%, var(--card)); border-left: 3px solid var(--c); overflow-wrap: anywhere;
}
.day i.drag { transform: rotate(-5deg) translate(10px, 6px); box-shadow: 0 10px 22px rgba(0,0,0,.18); }

/* Застрял */
.was { font-size: 15px; color: var(--label2); text-decoration: line-through; text-decoration-color: var(--label3); text-align: center; }
.arrow { width: 2px; height: 22px; background: var(--label3); margin: 10px auto; position: relative; }
.arrow::after { content: ""; position: absolute; bottom: -1px; left: -4px; border: 5px solid transparent; border-top-color: var(--label3); border-bottom: 0; }
.steps { list-style: none; margin: 0; padding: 0; counter-reset: s; }
.steps li { counter-increment: s; display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 12px; background: var(--fill2); margin-bottom: 6px; font-size: 15px; }
.steps li::before { content: counter(s); width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; flex: none; background: var(--fill); font-size: 12px; font-weight: 600; color: var(--label2); }
.steps li.first { background: color-mix(in srgb, var(--blue) 12%, transparent); }
.steps li.first::before { background: var(--blue); color: #fff; }
.hint { text-align: center; color: var(--blue); font-size: 14px; font-weight: 500; margin-top: 10px; }

/* ---------- Как начать ---------- */
.how { max-width: 1080px; margin: 0 auto; padding: 72px 0 32px; border-top: .5px solid var(--sep); }
.how > h2 { font-size: clamp(32px, 6vw, 48px); letter-spacing: -.03em; margin-bottom: 30px; }
.how-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; counter-reset: h; }
.how-steps li { counter-increment: h; background: var(--card); border-radius: 22px; padding: 22px 22px 22px 76px; position: relative; box-shadow: var(--shadow); }
.how-steps li::before {
  content: counter(h); position: absolute; left: 22px; top: 22px; width: 38px; height: 38px; border-radius: 50%;
  display: grid; place-items: center; background: var(--blue); color: #fff; font: 600 19px var(--round);
}
.how-steps h3 { font-size: 20px; letter-spacing: -.3px; margin: 6px 0 6px; }
.how-steps p { color: var(--label2); margin: 0; font-size: 16px; }
@media (min-width: 900px) {
  .how-steps { grid-template-columns: repeat(3, 1fr); }
  .how-steps li { padding: 76px 24px 26px; }
  .how-steps li::before { top: 24px; left: 24px; }
}
.ai-note { color: var(--label2); font-size: 16px; max-width: 46em; margin: 26px 0 0; }

.final { max-width: 1080px; margin: 0 auto; padding: 72px 0 88px; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 20px; }
.final img { border-radius: 16px; box-shadow: 0 10px 30px rgba(0,0,0,.18); }
.final h2 { font-size: clamp(30px, 6vw, 44px); letter-spacing: -.03em; }

.foot {
  display: flex; flex-wrap: wrap; gap: 10px 22px; justify-content: center; padding: 26px 20px calc(env(safe-area-inset-bottom) + 30px);
  border-top: .5px solid var(--sep); color: var(--label2); font-size: 14px;
}

/* ---------- Страницы с текстом (политика, условия) ---------- */
.doc { max-width: 720px; margin: 0 auto; padding: 36px 0 64px; }
.doc h1 { font-size: clamp(32px, 6vw, 42px); letter-spacing: -.03em; line-height: 1.1; margin-bottom: 8px; }
.doc .upd { color: var(--label2); font-size: 15px; margin: 0 0 30px; }
.doc h2 { font-size: 22px; letter-spacing: -.3px; margin: 34px 0 10px; }
.doc p, .doc li { font-size: 17px; line-height: 1.55; }
.doc ul { padding-left: 22px; }
.doc li { margin-bottom: 6px; }
/* На телефоне в плане недели — три дня: в пять колонок слова не помещаются */
@media (max-width: 560px) {
  .week-demo { grid-template-columns: repeat(3, 1fr); }
  .week-demo .day:nth-child(n+4) { display: none; }
  .day i { font-size: 12px; }
}

/* Выходной */
.off-demo { text-align: center; }
.off-hero { padding: 6px 0 14px; }
.off-hero .palm { display: grid; place-items: center; width: 68px; height: 68px; margin: 0 auto 10px; border-radius: 50%; font-size: 34px; background: color-mix(in srgb, #30b0c7 16%, transparent); }
.off-hero b { display: block; font: 700 22px/1.2 var(--round); }
.off-hero small { display: block; color: var(--label2); font-size: 14px; margin-top: 4px; }
.off-week { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; margin: 4px 0 12px; }
.off-week div { background: var(--fill2); border-radius: 12px; padding: 8px 0 6px; }
.off-week div.on { background: color-mix(in srgb, #30b0c7 16%, transparent); }
.off-week b { display: block; font-size: 13px; color: var(--label2); font-weight: 600; }
.off-week i { font-style: normal; font-size: 20px; }
.off-streak { background: var(--fill2); border-radius: 14px; padding: 10px 12px; font-size: 14px; color: var(--label2); }
.off-streak b { color: var(--label); font: 700 17px var(--round); margin-right: 4px; }
