/* Desktopchik — styles.css
   Single stylesheet. No external fonts, no imports, no image files. */

/* ---------- tokens ---------- */
:root {
  --bg: #f7f5ef;
  --bg-soft: #f1eee4;
  --ink: #111310;
  --ink-2: #39413c;
  --muted: #5e685f;
  --accent: #145c4a;
  --accent-deep: #0f4a3b;
  --accent-soft: #e6eee9;
  --line: #e3e0d7;
  --line-strong: #d8d3c6;
  --field-line: #9c947f;
  --card: #ffffff;
  --night: #0f1512;
  --night-2: #16211c;
  --night-ink: #f3f2ed;
  --night-muted: #a7b1aa;
  --mint: #8fd8bb;
  --danger: #a3211a;
  --radius: 20px;
  --radius-sm: 13px;
  --wrap: 1180px;
  --shadow-sm: 0 1px 2px rgba(17, 19, 16, 0.04), 0 10px 30px -22px rgba(17, 19, 16, 0.28);
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue",
    Arial, "Noto Sans", sans-serif;
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img,
svg {
  display: block;
  max-width: 100%;
}

h1,
h2,
h3,
h4 {
  margin: 0;
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.03em;
  text-wrap: balance;
}

p {
  margin: 0;
}

ul,
ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
  color: inherit;
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}

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

/* ---------- layout helpers ---------- */
.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: 24px;
}

.section {
  padding: 104px 0;
}

.section--tight {
  padding: 72px 0;
}

.section--flush-top {
  padding-top: 0;
}

[id] {
  scroll-margin-top: 96px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  left: 24px;
  top: 12px;
  z-index: 100;
  padding: 10px 16px;
  border-radius: 10px;
  background: var(--accent);
  color: #fff;
  font-size: 14px;
  font-weight: 550;
  transform: translateY(-160%);
  transition: transform 0.18s var(--ease);
}

.skip-link:focus-visible {
  transform: translateY(0);
  outline-offset: 2px;
}

/* ---------- typography ---------- */
.eyebrow {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  gap: 8px;
  padding: 7px 14px 7px 12px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.55);
  color: var(--ink-2);
  font-size: 12.5px;
  font-weight: 550;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.eyebrow::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
}

.section-head {
  display: grid;
  gap: 18px;
  max-width: 620px;
}

.section-head--wide {
  max-width: 760px;
}

.h2 {
  font-size: clamp(2rem, 3.4vw, 2.85rem);
  letter-spacing: -0.032em;
  text-wrap: balance;
}

.lead {
  color: var(--muted);
  font-size: clamp(1rem, 1.4vw, 1.125rem);
  line-height: 1.62;
  max-width: 60ch;
  text-wrap: pretty;
}

/* ---------- buttons ---------- */
.btn {
  --btn-bg: var(--accent);
  --btn-fg: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 46px;
  padding: 12px 22px;
  border: 1px solid transparent;
  border-radius: 999px;
  background: var(--btn-bg);
  color: var(--btn-fg);
  font-size: 15.5px;
  font-weight: 550;
  letter-spacing: -0.005em;
  cursor: pointer;
  transition: background 0.2s var(--ease), border-color 0.2s var(--ease), transform 0.2s var(--ease),
    box-shadow 0.2s var(--ease), color 0.2s var(--ease);
}

.btn:hover {
  --btn-bg: var(--accent-deep);
  transform: translateY(-1px);
  box-shadow: 0 10px 22px -16px rgba(17, 19, 16, 0.5);
}

.btn:active {
  transform: translateY(0);
}

.btn--ghost {
  --btn-bg: transparent;
  --btn-fg: var(--ink);
  border-color: var(--line-strong);
}

.btn--ghost:hover {
  --btn-bg: rgba(255, 255, 255, 0.7);
  border-color: #b9b3a4;
}

.btn--light {
  --btn-bg: #fff;
  --btn-fg: var(--accent-deep);
}

.btn--light:hover {
  --btn-bg: #f2f7f4;
  --btn-fg: var(--accent-deep);
}

.btn--block {
  width: 100%;
}

.btn svg {
  width: 16px;
  height: 16px;
  flex: none;
}

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--accent);
  font-weight: 550;
  border-bottom: 1px solid rgba(20, 92, 74, 0.3);
  padding-bottom: 1px;
  transition: border-color 0.2s var(--ease), gap 0.2s var(--ease);
}

.link-arrow:hover {
  border-color: var(--accent);
  gap: 9px;
}

/* ---------- header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(247, 245, 239, 0.88);
  -webkit-backdrop-filter: saturate(1.4) blur(12px);
  backdrop-filter: saturate(1.4) blur(12px);
  border-bottom: 1px solid var(--line);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 72px;
}

.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -0.025em;
  color: var(--ink);
}

.wordmark svg {
  width: 26px;
  height: 26px;
  flex: none;
}

.nav {
  display: flex;
  align-items: center;
  gap: 30px;
}

.nav a {
  color: var(--ink-2);
  font-size: 15px;
  font-weight: 450;
  padding: 6px 0;
  border-bottom: 1px solid transparent;
  transition: color 0.18s var(--ease), border-color 0.18s var(--ease);
}

.nav a:hover {
  color: var(--accent);
  border-bottom-color: rgba(20, 92, 74, 0.35);
}

.site-header__actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.header-cta {
  min-height: 42px;
  padding: 10px 18px;
  font-size: 15px;
}

.burger {
  display: none;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.6);
  cursor: pointer;
}

.burger__box {
  position: relative;
  width: 18px;
  height: 12px;
}

.burger__box span {
  position: absolute;
  left: 0;
  width: 100%;
  height: 1.6px;
  border-radius: 2px;
  background: var(--ink);
  transition: transform 0.24s var(--ease), opacity 0.2s linear, top 0.24s var(--ease);
}

.burger__box span:nth-child(1) {
  top: 0;
}
.burger__box span:nth-child(2) {
  top: 5.2px;
}
.burger__box span:nth-child(3) {
  top: 10.4px;
}

.burger[aria-expanded="true"] .burger__box span:nth-child(1) {
  top: 5.2px;
  transform: rotate(45deg);
}

.burger[aria-expanded="true"] .burger__box span:nth-child(2) {
  opacity: 0;
}

.burger[aria-expanded="true"] .burger__box span:nth-child(3) {
  top: 5.2px;
  transform: rotate(-45deg);
}

.mobile-nav {
  display: none;
  border-bottom: 1px solid var(--line);
  background: var(--bg);
}

.mobile-nav[data-open="true"] {
  display: block;
  animation: panel-in 0.22s var(--ease);
}

.mobile-nav ul {
  display: grid;
  gap: 2px;
  padding: 12px 24px 22px;
}

.mobile-nav a {
  display: block;
  padding: 12px 2px;
  font-size: 17px;
  color: var(--ink);
  border-bottom: 1px solid var(--line);
}

.mobile-nav .btn {
  margin-top: 16px;
  width: 100%;
}

@keyframes panel-in {
  from {
    opacity: 0;
    transform: translateY(-6px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

/* ---------- hero ---------- */
.hero {
  padding: 84px 0 40px;
  text-align: center;
}

.hero__inner {
  display: grid;
  gap: 26px;
  justify-items: center;
  max-width: 870px;
  margin-inline: auto;
}

.hero h1 {
  font-size: clamp(2.6rem, 6.1vw, 4.35rem);
  letter-spacing: -0.042em;
  line-height: 1.02;
  max-width: 19ch;
}

.hero__sub {
  color: var(--muted);
  font-size: clamp(1.06rem, 1.7vw, 1.22rem);
  line-height: 1.6;
  max-width: 60ch;
  text-wrap: balance;
}

.hero__cta {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 4px;
}

.trust {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 6px 0;
  margin-top: 10px;
  color: var(--muted);
  font-size: 14px;
}

.trust li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.trust li + li::before {
  content: "";
  width: 3px;
  height: 3px;
  margin: 0 16px;
  border-radius: 50%;
  background: #b8b2a3;
}

.trust svg {
  width: 15px;
  height: 15px;
  color: var(--accent);
}

/* ---------- app mockup ---------- */
.mock-wrap {
  padding: 24px 0 0;
}

.mock {
  position: relative;
  max-width: 1020px;
  margin-inline: auto;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: var(--card);
  box-shadow: 0 1px 2px rgba(17, 19, 16, 0.04), 0 32px 70px -48px rgba(17, 19, 16, 0.4);
  overflow: hidden;
}

.mock::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  border-radius: inherit;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.mock__bar {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 13px 18px;
  border-bottom: 1px solid var(--line);
  background: #fdfcf9;
}

.dots {
  display: flex;
  gap: 6px;
}

.dots span {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #e0dcd0;
}

.mock__title {
  flex: 1;
  text-align: center;
  font-size: 12.5px;
  color: var(--muted);
  letter-spacing: 0.01em;
}

.mock__title strong {
  color: var(--ink-2);
  font-weight: 600;
}

.mock__bar-tools {
  display: flex;
  gap: 6px;
  width: 39px;
  justify-content: flex-end;
}

.mock__bar-tools span {
  width: 14px;
  height: 3px;
  border-radius: 2px;
  background: #e6e2d6;
}

.mock__body {
  display: grid;
  grid-template-columns: 224px 1fr;
  min-height: 348px;
}

.mock__side {
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: 20px 16px;
  border-right: 1px solid var(--line);
  background: #fbfaf6;
}

.mock__label {
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #8b9187;
  padding-left: 8px;
}

.folder-list {
  display: grid;
  gap: 2px;
}

.folder-list li {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 8px;
  border-radius: 9px;
  font-size: 13.5px;
  color: var(--ink-2);
}

.folder-list li svg {
  width: 16px;
  height: 16px;
  color: #7d857a;
  flex: none;
}

.folder-list li span:last-child {
  margin-left: auto;
  font-size: 11.5px;
  color: #98a096;
  font-variant-numeric: tabular-nums;
}

.folder-list .is-active {
  background: var(--accent-soft);
  color: var(--accent-deep);
  font-weight: 550;
}

.folder-list .is-active svg {
  color: var(--accent);
}

.storage {
  margin-top: auto;
  padding: 12px 10px 4px;
  border-top: 1px solid var(--line);
  font-size: 11.5px;
  color: var(--muted);
}

.storage__row {
  display: flex;
  justify-content: space-between;
  margin-bottom: 8px;
}

.bar {
  height: 5px;
  border-radius: 99px;
  background: #e9e5d9;
  overflow: hidden;
}

.bar > i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--accent);
}

.mock__main {
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: 22px 24px 24px;
  min-width: 0;
}

.mock__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.mock__head h3 {
  font-size: 16px;
  letter-spacing: -0.02em;
}

.mock__status {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-top: 5px;
  font-size: 12.5px;
  color: var(--muted);
}

.pulse {
  position: relative;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #2f9d76;
  flex: none;
}

.pulse::after {
  content: "";
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 1px solid rgba(47, 157, 118, 0.4);
  animation: pulse 2.6s ease-out infinite;
}

@keyframes pulse {
  0% {
    transform: scale(0.6);
    opacity: 0.9;
  }
  70%,
  100% {
    transform: scale(1.5);
    opacity: 0;
  }
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 10px;
  border-radius: 999px;
  background: #eef4f0;
  color: #1c6b52;
  font-size: 11.5px;
  font-weight: 550;
  white-space: nowrap;
}

.chip--quiet {
  background: #f2f0e9;
  color: #6d7469;
}

.progress {
  display: grid;
  gap: 9px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fcfbf7;
}

.progress__top {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  font-size: 12.5px;
  color: var(--ink-2);
}

.progress__top b {
  font-weight: 550;
}

.progress__top span {
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}

.progress .bar {
  height: 6px;
  background: #e7e3d7;
}

.progress .bar > i {
  background: linear-gradient(90deg, #145c4a, #3f9377);
}

.file-list {
  display: grid;
  gap: 1px;
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
  background: var(--line);
}

.file-list li {
  display: grid;
  grid-template-columns: 26px minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 10px;
  padding: 11px 14px;
  background: #fff;
  font-size: 13px;
}

.file-list svg {
  width: 16px;
  height: 16px;
  color: #8b9187;
}

.file-list .name {
  color: var(--ink-2);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.file-list .meta {
  color: #98a096;
  font-size: 11.5px;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.file-list .state {
  font-size: 11.5px;
  color: var(--muted);
  white-space: nowrap;
}

.file-list .state--ok {
  color: #1c6b52;
}

/* ---------- value cards ---------- */
.cards-3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  margin-top: 52px;
}

.card {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 28px 26px 30px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--card);
  box-shadow: var(--shadow-sm);
  transition: transform 0.28s var(--ease), border-color 0.28s var(--ease), box-shadow 0.28s var(--ease);
}

.card:hover {
  transform: translateY(-3px);
  border-color: #cdd8d0;
  box-shadow: 0 2px 4px rgba(17, 19, 16, 0.04), 0 24px 44px -34px rgba(17, 19, 16, 0.4);
}

.icon-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: var(--accent-soft);
  color: var(--accent);
}

.icon-badge svg {
  width: 21px;
  height: 21px;
}

.card h3 {
  font-size: 1.12rem;
  letter-spacing: -0.02em;
}

.card p {
  color: var(--muted);
  font-size: 15.5px;
  line-height: 1.6;
}

/* ---------- steps ---------- */
.steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 26px;
  margin-top: 54px;
  counter-reset: step;
}

.step {
  position: relative;
  display: grid;
  gap: 12px;
  padding-top: 26px;
  border-top: 1px solid var(--line-strong);
}

.step__num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid rgba(20, 92, 74, 0.28);
  background: rgba(255, 255, 255, 0.7);
  color: var(--accent);
  font-size: 13.5px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

.step h3 {
  font-size: 1.16rem;
  letter-spacing: -0.022em;
  max-width: 22ch;
}

.step p {
  color: var(--muted);
  font-size: 15.5px;
  max-width: 32ch;
}

/* ---------- night section ---------- */
.section--night {
  background: var(--night);
  color: var(--night-ink);
  padding: 88px 0;
}

.section--night .wrap {
  padding-inline: 24px;
}

.section--night .lead {
  color: var(--night-muted);
}

.night-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 56px;
  margin-top: 48px;
}

.night-item {
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr);
  gap: 16px;
  padding: 26px 0 28px;
  border-top: 1px solid rgba(243, 242, 237, 0.12);
}

.night-item svg {
  width: 22px;
  height: 22px;
  color: var(--mint);
  margin-top: 2px;
}

.night-item h3 {
  font-size: 1.08rem;
  letter-spacing: -0.018em;
  color: var(--night-ink);
}

.night-item p {
  margin-top: 8px;
  color: var(--night-muted);
  font-size: 15px;
  line-height: 1.6;
  max-width: 42ch;
}

.night-note {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 20px;
  padding-top: 26px;
  border-top: 1px solid rgba(243, 242, 237, 0.12);
  color: var(--night-muted);
  font-size: 13.5px;
}

.night-note svg {
  width: 16px;
  height: 16px;
  color: var(--mint);
  flex: none;
}

/* ---------- pricing ---------- */
.plans {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  margin-top: 52px;
  align-items: stretch;
}

.plan {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 30px 28px 32px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--card);
  box-shadow: var(--shadow-sm);
}

.plan__name {
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.plan__price {
  display: flex;
  align-items: baseline;
  gap: 6px;
  margin: 10px 0 4px;
}

.plan__amount {
  font-size: 2.5rem;
  font-weight: 600;
  letter-spacing: -0.04em;
  line-height: 1;
}

.plan__period {
  color: var(--muted);
  font-size: 14px;
}

.plan__desc {
  color: var(--muted);
  font-size: 14.5px;
  min-height: 44px;
}

.plan__list {
  display: grid;
  gap: 11px;
  margin: 20px 0 26px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}

.plan__list li {
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr);
  gap: 10px;
  font-size: 14.5px;
  color: var(--ink-2);
}

.plan__list svg {
  width: 16px;
  height: 16px;
  margin-top: 3px;
  color: var(--accent);
}

.plan .btn {
  margin-top: auto;
}

.plan--featured {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
  box-shadow: 0 1px 2px rgba(17, 19, 16, 0.06), 0 30px 60px -40px rgba(15, 74, 59, 0.8);
  transform: translateY(-8px);
}

.plan--featured .plan__period,
.plan--featured .plan__desc {
  color: #c9ded5;
}

.plan--featured .plan__list {
  border-top-color: rgba(255, 255, 255, 0.18);
}

.plan--featured .plan__list li {
  color: #f1f7f4;
}

.plan--featured .plan__list svg {
  color: #a8e3c9;
}

.badge {
  position: absolute;
  top: -13px;
  left: 50%;
  transform: translateX(-50%);
  padding: 5px 12px;
  border-radius: 999px;
  background: #fff;
  color: var(--accent-deep);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border: 1px solid #d5e2da;
  box-shadow: 0 2px 6px rgba(17, 19, 16, 0.08);
}

.plans-note {
  margin-top: 26px;
  color: var(--muted);
  font-size: 13.5px;
  text-align: center;
}

/* ---------- faq ---------- */
.faq {
  max-width: 820px;
  margin-top: 40px;
  border-top: 1px solid var(--line-strong);
}

.faq details {
  border-bottom: 1px solid var(--line-strong);
}

.faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 22px 4px;
  font-size: 1.04rem;
  font-weight: 550;
  letter-spacing: -0.015em;
  cursor: pointer;
  list-style: none;
  transition: color 0.18s var(--ease);
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary:hover {
  color: var(--accent);
}

.faq summary:focus-visible {
  outline-offset: -2px;
  border-radius: 8px;
}

.faq .marker {
  position: relative;
  width: 18px;
  height: 18px;
  flex: none;
}

.faq .marker::before,
.faq .marker::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 0;
  width: 100%;
  height: 1.5px;
  border-radius: 2px;
  background: currentColor;
  transition: transform 0.26s var(--ease), opacity 0.2s linear;
}

.faq .marker::after {
  transform: rotate(90deg);
}

.faq details[open] .marker::after {
  transform: rotate(0deg);
  opacity: 0;
}

.faq p {
  padding: 0 40px 24px 4px;
  color: var(--muted);
  font-size: 15.5px;
  max-width: 68ch;
}

/* ---------- demo form ---------- */
.demo {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1fr);
  gap: 56px;
  align-items: start;
}

.demo__aside {
  display: grid;
  gap: 20px;
  position: sticky;
  top: 108px;
}

.demo__aside .h2 {
  max-width: 14ch;
}

.demo__points {
  display: grid;
  gap: 12px;
  margin-top: 8px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
}

.demo__points li {
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr);
  gap: 11px;
  font-size: 14.5px;
  color: var(--ink-2);
}

.demo__points svg {
  width: 16px;
  height: 16px;
  margin-top: 4px;
  color: var(--accent);
}

.form-card {
  padding: 34px 30px 36px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--card);
  box-shadow: 0 1px 2px rgba(17, 19, 16, 0.04), 0 26px 60px -46px rgba(17, 19, 16, 0.5);
}

.form {
  display: grid;
  gap: 18px;
}

.form[hidden] {
  display: none;
}

.field {
  display: grid;
  gap: 7px;
}

.field label {
  font-size: 14px;
  font-weight: 550;
  color: var(--ink-2);
}

.field .opt {
  color: var(--muted);
  font-weight: 400;
}

.req {
  margin-left: 6px;
  color: var(--muted);
  font-size: 11.5px;
  font-weight: 500;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.form__fine a {
  color: var(--ink-2);
  text-decoration: underline;
  text-underline-offset: 2px;
  text-decoration-thickness: 1px;
}

.form__fine a:hover {
  color: var(--accent);
}

.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 11px 13px;
  border: 1px solid var(--field-line);
  border-radius: var(--radius-sm);
  background: #fff;
  color: var(--ink);
  font-family: inherit;
  font-size: 16px;
  line-height: 1.5;
  transition: border-color 0.16s var(--ease), box-shadow 0.16s var(--ease);
}

.field textarea {
  resize: vertical;
  min-height: 92px;
}

.field select {
  appearance: none;
  -webkit-appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, #6b7369 50%),
    linear-gradient(135deg, #6b7369 50%, transparent 50%);
  background-position: calc(100% - 19px) calc(50% + 1px), calc(100% - 14px) calc(50% + 1px);
  background-size: 5px 5px, 5px 5px;
  background-repeat: no-repeat;
  padding-right: 38px;
}

.field input:hover,
.field select:hover,
.field textarea:hover {
  border-color: #8a8270;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(20, 92, 74, 0.14);
}

.field input[aria-invalid="true"],
.field textarea[aria-invalid="true"],
.field select[aria-invalid="true"] {
  border-color: var(--danger);
  background: #fdf6f4;
}

.field input[aria-invalid="true"]:focus,
.field textarea[aria-invalid="true"]:focus {
  box-shadow: 0 0 0 3px rgba(163, 33, 26, 0.13);
}

.field-error {
  display: flex;
  align-items: flex-start;
  gap: 6px;
  color: var(--danger);
  font-size: 13.5px;
  line-height: 1.45;
}

.field-error[hidden] {
  display: none;
}

.field-error svg {
  width: 14px;
  height: 14px;
  margin-top: 3px;
  flex: none;
}

.checkbox {
  display: grid;
  grid-template-columns: 20px minmax(0, 1fr);
  gap: 10px;
  align-items: start;
  font-size: 14px;
  color: var(--ink-2);
  cursor: pointer;
}

.checkbox input {
  width: 18px;
  height: 18px;
  margin: 2px 0 0;
  accent-color: var(--accent);
  cursor: pointer;
}

.checkbox input[aria-invalid="true"] {
  outline: 1.5px solid var(--danger);
  outline-offset: 1px;
  border-radius: 3px;
}

.form__foot {
  display: grid;
  gap: 12px;
}

.form__fine {
  color: var(--muted);
  font-size: 12.5px;
  line-height: 1.5;
}

.success {
  display: grid;
  gap: 10px;
  justify-items: start;
  padding: 26px 24px;
  border: 1px solid #cfe2d6;
  border-radius: var(--radius);
  background: #eff6f1;
}

.success[hidden] {
  display: none;
}

.success__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
}

.success__icon svg {
  width: 19px;
  height: 19px;
}

.success h3 {
  font-size: 1.12rem;
  letter-spacing: -0.02em;
}

.success p {
  color: #3c5348;
  font-size: 15px;
}

.success:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

/* ---------- footer ---------- */
.site-footer {
  margin-top: 40px;
  padding: 64px 0 40px;
  border-top: 1px solid var(--line-strong);
}

.footer__top {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) repeat(2, minmax(0, 0.5fr));
  gap: 40px;
}

.footer__brand {
  display: grid;
  gap: 12px;
  align-content: start;
  max-width: 34ch;
}

.footer__brand p {
  color: var(--muted);
  font-size: 14.5px;
  line-height: 1.6;
}

.footer__col h3 {
  font-size: 12.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 600;
  margin-bottom: 14px;
}

.footer__col ul {
  display: grid;
  gap: 10px;
}

.footer__col a {
  color: var(--ink-2);
  font-size: 14.5px;
  transition: color 0.18s var(--ease);
}

.footer__col a:hover {
  color: var(--accent);
}

.footer__bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 52px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 13px;
}

.footer__bottom--flush {
  margin-top: 0;
  padding-top: 0;
  border-top: 0;
}

.footer__bottom a {
  border-bottom: 1px solid transparent;
}

.footer__bottom a:hover {
  color: var(--accent);
  border-bottom-color: rgba(20, 92, 74, 0.35);
}

.top-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 2px;
  color: var(--ink-2);
  font-size: 14.5px;
  transition: color 0.18s var(--ease), gap 0.18s var(--ease);
}

.top-link:hover {
  color: var(--accent);
  gap: 10px;
}

.top-link svg {
  width: 15px;
  height: 15px;
  flex: none;
}

/* ---------- legal pages ---------- */
.page-head {
  padding: 72px 0 8px;
}

.page-head h1 {
  font-size: clamp(2.1rem, 4.4vw, 3.1rem);
  letter-spacing: -0.035em;
}

.page-head .lead {
  margin-top: 16px;
}

.prose {
  max-width: 720px;
  padding-bottom: 40px;
}

.prose h2 {
  font-size: 1.3rem;
  letter-spacing: -0.02em;
  margin: 42px 0 12px;
}

.prose p,
.prose li {
  color: var(--ink-2);
  font-size: 16px;
  line-height: 1.7;
}

.prose p + p {
  margin-top: 12px;
}

.prose ul {
  display: grid;
  gap: 8px;
  margin: 12px 0;
  padding-left: 4px;
}

.prose li {
  display: grid;
  grid-template-columns: 16px minmax(0, 1fr);
  gap: 10px;
}

.prose li::before {
  content: "";
  width: 5px;
  height: 5px;
  margin-top: 11px;
  border-radius: 50%;
  background: #b3ada0;
}

.prose a {
  color: var(--accent);
  border-bottom: 1px solid rgba(20, 92, 74, 0.3);
}

.prose code {
  padding: 1px 5px;
  border-radius: 5px;
  background: var(--bg-soft);
  font-size: 0.92em;
}

.note {
  margin-top: 28px;
  padding: 18px 20px;
  border: 1px solid var(--line);
  border-left: 3px solid var(--accent);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.6);
  color: var(--muted);
  font-size: 14.5px;
  line-height: 1.6;
}

/* ---------- error page ---------- */
.center-page {
  display: grid;
  place-items: center;
  min-height: calc(100vh - 72px);
  padding: 80px 0;
  text-align: center;
}

.center-page h1 {
  font-size: clamp(2.2rem, 6vw, 3.8rem);
  letter-spacing: -0.04em;
  margin-top: 14px;
}

.center-page p {
  margin-top: 16px;
  color: var(--muted);
  font-size: 17px;
}

.center-page .btn {
  margin-top: 28px;
}

.code {
  font-size: 12.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}

/* ---------- reveal ---------- */
.js .reveal {
  opacity: 0;
  translate: 0 14px;
  transition: opacity 0.7s var(--ease), translate 0.7s var(--ease);
}

.js .reveal.is-in {
  opacity: 1;
  translate: 0 0;
}

.js .cards-3 > .reveal:nth-child(2),
.js .steps > .reveal:nth-child(2),
.js .plans > .reveal:nth-child(2),
.js .night-grid > .reveal:nth-child(2) {
  transition-delay: 0.07s;
}

.js .cards-3 > .reveal:nth-child(3),
.js .steps > .reveal:nth-child(3),
.js .plans > .reveal:nth-child(3),
.js .night-grid > .reveal:nth-child(3) {
  transition-delay: 0.14s;
}

.js .night-grid > .reveal:nth-child(4) {
  transition-delay: 0.21s;
}

/* ---------- responsive ---------- */
@media (max-width: 1024px) {
  .section {
    padding: 84px 0;
  }

  .demo {
    grid-template-columns: minmax(0, 1fr);
    gap: 36px;
  }

  .demo__aside {
    position: static;
  }

  .demo__aside .h2 {
    max-width: 22ch;
  }

  .cards-3 {
    gap: 16px;
  }

  .night-grid {
    gap: 0 40px;
  }

  .plan {
    padding: 26px 22px 26px;
  }

  .plan__amount {
    font-size: 2.15rem;
  }
}

@media (max-width: 900px) {
  .nav {
    display: none;
  }

  .burger {
    display: inline-flex;
  }

  .header-cta {
    display: none;
  }

  .mock__body {
    grid-template-columns: 190px 1fr;
  }

  .mock__side {
    padding: 16px 12px;
  }

  .mock__main {
    padding: 18px 18px 20px;
  }

  .section--night {
    padding: 64px 0;
  }
}

@media (max-width: 768px) {
  .section {
    padding: 68px 0;
  }

  .hero {
    padding: 56px 0 32px;
  }

  .cards-3,
  .steps,
  .plans {
    grid-template-columns: minmax(0, 1fr);
    gap: 14px;
  }

  .steps {
    gap: 22px;
  }

  .plan--featured {
    transform: none;
  }

  .plans {
    margin-top: 40px;
  }

  .plan__desc {
    min-height: 0;
  }

  .night-grid {
    grid-template-columns: minmax(0, 1fr);
    margin-top: 32px;
  }

  .night-item {
    padding: 22px 0 24px;
  }

  .footer__top {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 32px;
  }

  .footer__brand {
    grid-column: 1 / -1;
  }

  .form-card {
    padding: 24px 20px 26px;
  }

  .mock__body {
    grid-template-columns: minmax(0, 1fr);
    min-height: 0;
  }

  .mock__side {
    border-right: 0;
    border-bottom: 1px solid var(--line);
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    padding: 14px;
  }

  .mock__label,
  .storage {
    display: none;
  }

  .folder-list {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
  }

  .folder-list li {
    padding: 6px 10px;
    font-size: 12.5px;
    background: #f5f3ec;
    border-radius: 999px;
  }

  .folder-list li span:last-child {
    display: none;
  }

  .faq p {
    padding-right: 12px;
  }
}

@media (max-width: 560px) {
  .wrap {
    padding-inline: 20px;
  }

  .hero__cta {
    flex-direction: column;
    width: 100%;
    max-width: 340px;
  }

  .hero__cta .btn {
    width: 100%;
  }

  .trust {
    gap: 8px 18px;
    font-size: 13.5px;
  }

  .trust li + li::before {
    display: none;
  }

  .file-list .meta {
    display: none;
  }
  .mock__head {
    gap: 10px;
  }

  .progress__top {
    font-size: 12px;
  }

  .footer__top {
    grid-template-columns: minmax(0, 1fr);
  }

  .footer__bottom {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }

  .js .reveal {
    opacity: 1;
    translate: 0 0;
  }

  .pulse::after {
    display: none;
  }
}
