:root {
  --paper: #f6f3ec;
  --card: #fffdf8;
  --ink: #1d1b16;
  --muted: #6a655a;
  --line: rgba(29, 27, 22, 0.12);
  --leaf: #2d7a4d;
  --leaf-ink: #ffffff;
  --shadow: 0 24px 60px -24px rgba(40, 32, 12, 0.35), 0 2px 6px rgba(40, 32, 12, 0.08);
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --paper: #131210;
    --card: #1c1a16;
    --ink: #f3f0e7;
    --muted: #a39d8e;
    --line: rgba(243, 240, 231, 0.14);
    --leaf: #6cc78c;
    --leaf-ink: #0f1a12;
    --shadow: 0 24px 60px -24px rgba(0, 0, 0, 0.8), 0 2px 6px rgba(0, 0, 0, 0.4);
  }
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 17px/1.6 -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", "PingFang SC", sans-serif;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; }
a:focus-visible, .button:focus-visible { outline: 3px solid var(--leaf); outline-offset: 3px; border-radius: 6px; }

.wrap { width: min(1080px, 100% - 40px); margin-inline: auto; }

header.top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px 0;
}

.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; font-weight: 650; font-size: 19px; letter-spacing: -0.01em; }
.brand img { width: 38px; height: 38px; border-radius: 9px; box-shadow: 0 1px 3px rgba(0, 0, 0, 0.25); }
nav a { margin-left: 22px; color: var(--muted); text-decoration: none; font-size: 15px; }
nav a:hover { color: var(--ink); }

h1, h2, h3 { font-family: ui-serif, "New York", "Iowan Old Style", Georgia, "Songti SC", serif; letter-spacing: -0.02em; line-height: 1.12; margin: 0; }

.hero {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 48px;
  align-items: center;
  padding: 40px 0 72px;
}

.hero h1 { font-size: clamp(40px, 6vw, 68px); font-weight: 600; }
.hero h1 em { font-style: italic; color: var(--leaf); }
.lede { font-size: 20px; color: var(--muted); max-width: 30em; margin: 22px 0 30px; }

.actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.button {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 13px 22px; border-radius: 999px;
  background: var(--ink); color: var(--paper);
  font-weight: 600; font-size: 16px; text-decoration: none;
}
.button.soon { background: var(--leaf); color: var(--leaf-ink); cursor: default; }
.note { color: var(--muted); font-size: 15px; }

.phones { position: relative; display: flex; justify-content: center; align-items: flex-start; min-height: 460px; }
.phone {
  width: min(46%, 240px);
  border-radius: 28px;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  background: var(--card);
  display: block;
}
.phones .phone:nth-child(1) { transform: rotate(-4deg) translateY(18px); }
.phones .phone:nth-child(2) { transform: rotate(3deg) translate(-10px, -6px); }

section { padding: 64px 0; border-top: 1px solid var(--line); }
section h2 { font-size: clamp(28px, 4vw, 40px); font-weight: 600; margin-bottom: 14px; }
section > .wrap > p.sub { color: var(--muted); max-width: 36em; margin: 0 0 36px; }

.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.feature { background: var(--card); border: 1px solid var(--line); border-radius: 18px; padding: 22px; }
.feature h3 { font-size: 21px; margin-bottom: 8px; font-weight: 600; }
.feature p { margin: 0; color: var(--muted); font-size: 16px; }

.steps { counter-reset: step; display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; padding: 0; list-style: none; margin: 0; }
.steps li { counter-increment: step; }
.steps li::before {
  content: counter(step);
  display: grid; place-items: center;
  width: 36px; height: 36px; border-radius: 50%;
  background: var(--leaf); color: var(--leaf-ink);
  font-weight: 700; margin-bottom: 14px;
}
.steps strong { display: block; font-size: 19px; margin-bottom: 4px; }
.steps span { color: var(--muted); }

.shots { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.shots figure { margin: 0; }
.shots img { width: 100%; height: auto; border-radius: 22px; border: 1px solid var(--line); box-shadow: var(--shadow); display: block; }
.shots figcaption { margin-top: 12px; font-size: 15px; color: var(--muted); text-align: center; }

.support { background: var(--card); border: 1px solid var(--line); border-radius: 22px; padding: 32px; }
.support a { color: var(--leaf); font-weight: 600; }

footer { padding: 36px 0 56px; border-top: 1px solid var(--line); color: var(--muted); font-size: 15px; display: flex; flex-wrap: wrap; gap: 12px 28px; justify-content: space-between; }
footer a { text-decoration: none; }
footer a:hover { color: var(--ink); }

/* Privacy and text pages */
.doc { max-width: 720px; padding: 28px 0 64px; }
.doc h1 { font-size: clamp(36px, 5vw, 52px); font-weight: 600; margin-bottom: 8px; }
.doc .date { color: var(--muted); margin: 0 0 32px; }
.doc h2 { font-size: 26px; margin: 40px 0 10px; font-weight: 600; }
.doc p, .doc li { color: var(--ink); }
.doc ul { padding-left: 22px; }
.doc .summary { background: var(--card); border: 1px solid var(--line); border-left: 4px solid var(--leaf); border-radius: 12px; padding: 18px 22px; margin: 0 0 8px; }
.doc a { color: var(--leaf); }

@media (max-width: 860px) {
  header.top { flex-wrap: wrap; gap: 8px 16px; }
  nav { white-space: nowrap; }
  nav a { margin-left: 0; margin-right: 18px; }
  .hero { grid-template-columns: 1fr; gap: 24px; padding-bottom: 48px; }
  .phones { min-height: 0; }
  .features, .steps { grid-template-columns: 1fr; }
  .shots { grid-template-columns: repeat(2, 1fr); }
}

@media (prefers-reduced-motion: no-preference) {
  .hero > div, .phones .phone { animation: rise 0.7s cubic-bezier(0.2, 0.7, 0.2, 1) both; }
  .phones .phone:nth-child(2) { animation-delay: 0.12s; }
  @keyframes rise { from { opacity: 0; translate: 0 14px; } to { opacity: 1; translate: 0 0; } }
}
