:root {
  --paper: #f8f6f0;
  --surface: #ffffff;
  --ink: #25231f;
  --muted: #6f6a62;
  --line: rgba(37, 35, 31, 0.1);
  --accent: #db6a48;
  --accent-ink: #b9502f;
  --tint: rgba(219, 106, 72, 0.1);
  --c1: #d96b5a;
  --c2: #e9b66a;
  --c3: #a9bfa3;
  --c4: #667e89;
  --c5: #343e54;
  --radius: 22px;
  --shadow: 0 30px 60px -20px rgba(37, 35, 31, 0.28), 0 12px 24px -12px rgba(37, 35, 31, 0.18);
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root {
    --paper: #121110;
    --surface: #1e1d1a;
    --ink: #f4f1ea;
    --muted: #a39e95;
    --line: rgba(244, 241, 234, 0.12);
    --accent-ink: #ef8a6a;
    --tint: rgba(219, 106, 72, 0.16);
    --shadow: 0 30px 60px -20px rgba(0, 0, 0, 0.7), 0 12px 24px -12px rgba(0, 0, 0, 0.5);
    color-scheme: dark;
  }
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Inter", "Segoe UI", Roboto, sans-serif;
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: var(--accent-ink); }

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

h1, h2, h3 {
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Inter", "Segoe UI", sans-serif;
  letter-spacing: -0.03em;
  line-height: 1.05;
  margin: 0;
}
h1 { font-size: clamp(44px, 7vw, 80px); font-weight: 800; }
h2 { font-size: clamp(32px, 4.6vw, 52px); font-weight: 800; }
h3 { font-size: 21px; font-weight: 700; letter-spacing: -0.015em; line-height: 1.2; }

.eyebrow {
  display: inline-block;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent-ink);
  margin-bottom: 14px;
}
.lead { font-size: clamp(18px, 2vw, 21px); color: var(--muted); max-width: 34em; }

/* Navigation */
.nav {
  position: sticky;
  top: 0;
  z-index: 10;
  backdrop-filter: saturate(180%) blur(18px);
  -webkit-backdrop-filter: saturate(180%) blur(18px);
  background: color-mix(in srgb, var(--paper) 78%, transparent);
  border-bottom: 1px solid var(--line);
}
.nav .wrap { display: flex; align-items: center; gap: 28px; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 19px; color: var(--ink); text-decoration: none; letter-spacing: -0.02em; }
.brand img { width: 32px; height: 32px; border-radius: 8px; }
.nav nav { display: flex; gap: 24px; margin-left: auto; }
.nav nav a { color: var(--muted); text-decoration: none; font-size: 15px; font-weight: 500; }
.nav nav a:hover { color: var(--ink); }
.lang { color: var(--muted); text-decoration: none; font-size: 15px; font-weight: 600; padding: 6px 10px; border-radius: 9px; border: 1px solid var(--line); }
.lang:hover { color: var(--ink); }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 22px;
  border-radius: 14px;
  font-weight: 650;
  font-size: 16px;
  text-decoration: none;
  border: 0;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--accent); color: #fff; box-shadow: 0 10px 24px -10px rgba(219, 106, 72, 0.8); }
.btn-dark { background: var(--ink); color: var(--paper); }
.btn-small { padding: 9px 16px; font-size: 14px; border-radius: 11px; white-space: nowrap; }
.store-btn { padding: 12px 22px 12px 18px; }
.store-btn small { display: block; font-size: 11px; font-weight: 500; opacity: 0.8; line-height: 1.1; }
.store-btn strong { display: block; font-size: 19px; line-height: 1.1; letter-spacing: -0.01em; }

/* Hero */
.hero { padding: 72px 0 40px; overflow: hidden; }
.hero .wrap { display: grid; grid-template-columns: 1.05fr 1fr; gap: 40px; align-items: center; }
.hero h1 span { background: linear-gradient(90deg, var(--c1), var(--c2) 35%, var(--c3) 60%, var(--c4) 80%, var(--c5)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero .lead { margin: 22px 0 30px; }
.hero-cta { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; }
.hero-note { color: var(--muted); font-size: 15px; }

.phones { position: relative; height: 640px; }
.phones .blob {
  position: absolute;
  inset: 60px 0 40px 40px;
  border-radius: 48px;
  background: linear-gradient(135deg, var(--c2), var(--c1) 45%, var(--c4));
  opacity: 0.22;
  filter: blur(4px);
}
.phone {
  position: absolute;
  width: 290px;
  aspect-ratio: 1206 / 2622;
  border-radius: 46px;
  padding: 9px;
  background: #111;
  box-shadow: var(--shadow), inset 0 0 0 2px #2b2b2b;
}
.phone img { width: 100%; height: 100%; object-fit: cover; border-radius: 38px; }
.phones .phone.front { right: 30px; top: 0; transform: rotate(3deg); z-index: 2; }
.phones .phone.back { left: 10px; top: 60px; transform: rotate(-5deg) scale(0.9); }

/* Palette ribbon */
.ribbon { display: flex; height: 10px; }
.ribbon i { flex: 1; }
.ribbon i:nth-child(1) { background: var(--c1); }
.ribbon i:nth-child(2) { background: var(--c2); }
.ribbon i:nth-child(3) { background: var(--c3); }
.ribbon i:nth-child(4) { background: var(--c4); }
.ribbon i:nth-child(5) { background: var(--c5); }

section { padding: 96px 0; }
.section-head { text-align: center; max-width: 720px; margin: 0 auto 56px; }
.section-head .lead { margin: 18px auto 0; }

/* Try it */
.try { padding-top: 64px; }
.try-card { background: var(--surface); border-radius: 30px; padding: 28px; box-shadow: var(--shadow); }
.try-top { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 20px; flex-wrap: wrap; }
.try-top p { margin: 4px 0 0; color: var(--muted); font-size: 15px; }
.swatches { display: grid; grid-template-columns: repeat(5, 1fr); height: 220px; border-radius: 20px; overflow: hidden; }
.swatch {
  border: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: flex-start;
  padding: 18px;
  cursor: pointer;
  font: inherit;
  font-weight: 700;
  font-size: 17px;
  letter-spacing: 0.02em;
  transition: background-color 0.45s ease, color 0.45s ease;
}
.swatch small { font-weight: 500; font-size: 12px; opacity: 0.75; letter-spacing: 0; }

/* Features */
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.card { background: var(--surface); border-radius: var(--radius); padding: 28px; border: 1px solid var(--line); }
.card p { color: var(--muted); margin: 10px 0 0; font-size: 16px; }
.icon {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  margin-bottom: 18px;
  color: #fff;
}
.icon svg { width: 24px; height: 24px; }

/* Showcase rows */
.show { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; padding: 48px 0; }
.show.flip .show-text { order: 2; }
.show-text .lead { margin-top: 18px; }
.show-text ul { list-style: none; padding: 0; margin: 26px 0 0; display: grid; gap: 12px; }
.show-text li { display: flex; gap: 12px; align-items: flex-start; }
.show-text li::before { content: ""; flex: none; width: 22px; height: 22px; margin-top: 2px; border-radius: 50%; background: var(--tint) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23db6a48' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5L19 8'/%3E%3C/svg%3E") center / 13px no-repeat; }
.show-media { position: relative; display: grid; place-items: center; padding: 30px 0; }
.show-media::before { content: ""; position: absolute; inset: 10% 8%; border-radius: 40px; background: var(--tint); }
.show-media .phone { position: relative; }

/* Pricing */
.pricing { background: var(--surface); border-block: 1px solid var(--line); }
.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; align-items: stretch; }
.plan { position: relative; border-radius: var(--radius); padding: 30px; border: 1px solid var(--line); background: var(--paper); display: flex; flex-direction: column; }
.plan.best { border: 2px solid var(--accent); box-shadow: var(--shadow); }
.badge { position: absolute; top: -13px; left: 30px; background: var(--accent); color: #fff; font-size: 12px; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase; padding: 5px 11px; border-radius: 8px; }
.price { font-size: 44px; font-weight: 800; letter-spacing: -0.03em; margin: 14px 0 0; }
.price span { font-size: 17px; font-weight: 500; color: var(--muted); letter-spacing: 0; }
.plan .sub { color: var(--muted); font-size: 15px; margin: 4px 0 0; min-height: 3em; }
.compare { margin-top: 56px; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); }
.compare table { width: 100%; border-collapse: collapse; font-size: 16px; }
.compare th, .compare td { padding: 14px 20px; text-align: left; border-bottom: 1px solid var(--line); }
.compare tr:last-child td { border-bottom: 0; }
.compare th { background: var(--paper); font-size: 13px; text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); }
.compare td:not(:first-child), .compare th:not(:first-child) { text-align: center; width: 18%; }
.yes { color: var(--accent-ink); font-weight: 800; }
.no { color: var(--muted); }

/* Privacy band */
.privacy-band { background: var(--ink); color: var(--paper); border-radius: 36px; padding: 64px; display: grid; grid-template-columns: 1.2fr 1fr; gap: 48px; align-items: center; }
.privacy-band .lead { color: color-mix(in srgb, var(--paper) 72%, transparent); margin-top: 16px; }
.privacy-band .eyebrow { color: var(--c2); }
.facts { display: grid; gap: 14px; }
.fact { display: flex; gap: 14px; align-items: center; padding: 16px 18px; border-radius: 16px; background: color-mix(in srgb, var(--paper) 8%, transparent); font-weight: 600; }
.fact b { width: 12px; height: 12px; border-radius: 50%; flex: none; }

/* FAQ */
.faq { max-width: 780px; margin: 0 auto; }
details { border-bottom: 1px solid var(--line); padding: 20px 0; }
summary { cursor: pointer; font-weight: 700; font-size: 19px; list-style: none; display: flex; justify-content: space-between; gap: 20px; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; font-weight: 400; font-size: 26px; line-height: 1; color: var(--accent-ink); transition: transform 0.2s ease; }
details[open] summary::after { transform: rotate(45deg); }
details p { color: var(--muted); margin: 12px 0 0; }

/* CTA + footer */
.cta { text-align: center; }
.cta img { width: 96px; height: 96px; border-radius: 22px; margin: 0 auto 26px; box-shadow: var(--shadow); }
.cta .lead { margin: 18px auto 32px; }
footer { border-top: 1px solid var(--line); padding: 36px 0 48px; color: var(--muted); font-size: 15px; }
footer .wrap { display: flex; flex-wrap: wrap; gap: 20px; align-items: center; justify-content: space-between; }
footer nav { display: flex; flex-wrap: wrap; gap: 22px; }
footer a { color: var(--muted); text-decoration: none; }
footer a:hover { color: var(--ink); }

/* Document pages (privacy, support) */
.doc { padding: 64px 0 96px; }
.doc .wrap { max-width: 760px; }
.doc h1 { font-size: clamp(38px, 6vw, 56px); margin-bottom: 10px; }
.doc h2 { font-size: 24px; letter-spacing: -0.02em; margin: 40px 0 10px; }
.doc p, .doc li { color: var(--muted); }
.doc .updated { margin-bottom: 30px; }

/* Reveal on scroll */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* Responsive */
@media (max-width: 960px) {
  .hero .wrap, .show, .privacy-band { grid-template-columns: 1fr; }
  .show.flip .show-text { order: 0; }
  .grid, .plans { grid-template-columns: 1fr 1fr; }
  .phones { height: 560px; max-width: 520px; margin: 0 auto; width: 100%; }
  .privacy-band { padding: 44px 32px; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .wrap { width: calc(100% - 32px); }
  .nav nav { display: none; }
  .nav .wrap { gap: 12px; }
  .nav .lang { margin-left: auto; font-size: 14px; padding: 5px 9px; }
  .hero { padding-top: 44px; }
  .grid, .plans { grid-template-columns: 1fr; }
  section { padding: 72px 0; }
  .phones { height: 470px; }
  .phone { width: 220px; border-radius: 36px; padding: 7px; }
  .phone img { border-radius: 30px; }
  .phones .phone.front { right: 0; }
  .phones .phone.back { left: 0; top: 50px; }
  .swatches { grid-template-columns: 1fr; height: auto; }
  .swatch { min-height: 64px; flex-direction: row; justify-content: space-between; align-items: center; }
  .compare th, .compare td { padding: 12px; font-size: 14px; }
  .privacy-band { border-radius: 28px; padding: 36px 22px; }
}
