:root {
  --bg: #F2F2F7;
  --card: #FFFFFF;
  --text: #000000;
  --muted: #5F5F64;
  --line: rgba(60, 60, 67, 0.18);
  --accent: #1E6BFF;
  --on-accent: #FFFFFF;
  --link: #1558E0;
  --shadow: 0 1px 2px rgba(0, 0, 0, 0.04), 0 8px 24px rgba(0, 0, 0, 0.06);
  --radius: 22px;
  --gutter: 16px;
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "SF Pro Display", system-ui, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #000000;
    --card: #1C1C1E;
    --text: #FFFFFF;
    --muted: #A1A1A8;
    --line: rgba(235, 235, 245, 0.18);
    --accent: #3D84FF;
    --on-accent: #000000;
    --link: #6FA3FF;
    --shadow: none;
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-wrap: break-word;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--link); text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 6px; }

.skip {
  position: absolute; left: var(--gutter); top: -100px; z-index: 10;
  background: var(--card); color: var(--text); padding: 10px 16px; border-radius: 12px;
  box-shadow: var(--shadow); font-weight: 600;
}
.skip:focus { top: 12px; }

.wrap { width: 100%; max-width: 1080px; margin: 0 auto; padding-inline: var(--gutter); }
@media (min-width: 720px) { :root { --gutter: 24px; } }

/* header */
.site-header { padding-block: 16px; }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.brand { color: var(--text); text-decoration: none; font-weight: 700; letter-spacing: -0.02em; font-size: 17px; }
.nav { display: flex; gap: 20px; font-size: 15px; }
.nav a { color: var(--muted); text-decoration: none; padding-block: 6px; }
.nav a:hover { color: var(--text); }
@media (max-width: 420px) { .nav a.opt { display: none; } }

/* type */
h1, h2, h3 { margin: 0; font-weight: 700; }
h1 { font-size: clamp(36px, 9vw, 64px); line-height: 1.04; letter-spacing: -0.035em; }
h2 { font-size: clamp(28px, 6vw, 40px); line-height: 1.1; letter-spacing: -0.03em; }
h3 { font-size: 20px; line-height: 1.25; letter-spacing: -0.015em; }
p { margin: 0; }
.lede { font-size: clamp(19px, 3.6vw, 22px); line-height: 1.4; color: var(--muted); max-width: 34em; letter-spacing: -0.01em; }
.eyebrow { font-size: 15px; font-weight: 600; color: var(--muted); letter-spacing: 0; margin-bottom: 12px; }

/* buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 0 26px; border-radius: 16px; border: 0;
  background: var(--accent); color: var(--on-accent);
  font: inherit; font-weight: 600; font-size: 17px; text-decoration: none;
  transition: transform .15s ease, opacity .15s ease;
}
.btn:hover { opacity: .92; }
.btn:active { transform: scale(.98); }
.btn small { display: block; font-size: 12px; font-weight: 500; opacity: .85; line-height: 1.1; }
.btn-label { display: flex; flex-direction: column; align-items: flex-start; line-height: 1.15; text-align: left; }
.btn-label span:last-child { font-size: 19px; }
.btn-label span:first-child { font-size: 12px; font-weight: 500; opacity: .85; }
.btn.secondary { background: var(--card); color: var(--text); box-shadow: inset 0 0 0 1px var(--line); }

/* hero */
.hero { padding-block: 40px 56px; display: grid; gap: 40px; }
.hero h1 { margin-bottom: 18px; }
.hero .actions { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; margin-top: 28px; }
.hero .note { font-size: 14px; color: var(--muted); }
.hero-art { position: relative; }
.hero-art .frame {
  background: var(--card); border-radius: 28px; padding: 10px; box-shadow: var(--shadow);
}
.hero-art .frame img { border-radius: 20px; width: 100%; }
.hero-art .chip {
  position: absolute; right: 12px; bottom: -18px; background: var(--card); border-radius: 16px;
  padding: 8px; width: 38%; box-shadow: var(--shadow), 0 0 0 1px var(--line);
}
.hero-art .chip img { border-radius: 10px; }
@media (min-width: 860px) {
  .hero { grid-template-columns: 1.05fr 1fr; align-items: center; padding-block: 72px 88px; gap: 64px; }
}

/* sections */
.section { padding-block: 56px; }
.section > .wrap > header { margin-bottom: 32px; max-width: 36em; }
.section > .wrap > header p { margin-top: 12px; color: var(--muted); font-size: 19px; }

.grid { display: grid; gap: 16px; grid-template-columns: 1fr; list-style: none; margin: 0; padding: 0; }
@media (min-width: 600px) { .grid.features { grid-template-columns: 1fr 1fr; } }
@media (min-width: 900px) { .grid.features { grid-template-columns: repeat(3, 1fr); } }

.card { background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; }
.feature img { width: 100%; aspect-ratio: 360 / 220; object-fit: cover; }
.feature .body { padding: 18px 20px 22px; }
.feature p { margin-top: 6px; color: var(--muted); font-size: 16px; }
.tag { display: inline-block; margin-top: 10px; font-size: 12px; font-weight: 600; color: var(--muted); border: 1px solid var(--line); border-radius: 999px; padding: 2px 10px; }

.steps { counter-reset: step; display: grid; gap: 16px; list-style: none; margin: 0; padding: 0; }
@media (min-width: 600px) { .steps { grid-template-columns: 1fr 1fr; } }
@media (min-width: 900px) { .steps { grid-template-columns: repeat(4, 1fr); } }
.steps li { counter-increment: step; padding: 22px 20px 24px; }
.steps li::before {
  content: counter(step); display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%;
  background: var(--accent); color: var(--on-accent); font-weight: 700; font-size: 15px; margin-bottom: 16px;
}
.steps p { margin-top: 6px; color: var(--muted); font-size: 16px; }

.plans { display: grid; gap: 16px; }
@media (min-width: 720px) { .plans { grid-template-columns: repeat(3, 1fr); } }
.plan { padding: 24px 22px; }
.plan.featured { box-shadow: inset 0 0 0 2px var(--accent), var(--shadow); }
.plan h3 { margin-bottom: 4px; }
.plan .price { color: var(--muted); font-size: 15px; margin-bottom: 14px; }
.plan ul { margin: 0; padding-left: 20px; color: var(--text); font-size: 16px; }
.plan li + li { margin-top: 6px; }
.fine { margin-top: 24px; color: var(--muted); font-size: 15px; max-width: 46em; }

/* prose (legal, support) */
.page-head { padding-block: 32px 24px; }
.page-head h1 { font-size: clamp(34px, 8vw, 52px); }
.meta { margin-top: 12px; color: var(--muted); font-size: 15px; }
.draft {
  margin-top: 20px; padding: 14px 16px; border-radius: 16px; background: var(--card);
  box-shadow: inset 0 0 0 1px var(--line); font-size: 15px; color: var(--muted);
}
.prose { background: var(--card); border-radius: var(--radius); padding: 28px 20px 36px; box-shadow: var(--shadow); margin-bottom: 48px; }
@media (min-width: 720px) { .prose { padding: 44px 48px 56px; } }
.prose > * { max-width: 42em; }
.prose h2 { font-size: 26px; letter-spacing: -0.025em; margin-top: 40px; margin-bottom: 12px; scroll-margin-top: 16px; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { font-size: 18px; margin-top: 24px; margin-bottom: 6px; }
.prose p, .prose ul, .prose ol { margin-top: 12px; }
.prose ul, .prose ol { padding-left: 22px; }
.prose li + li { margin-top: 6px; }
.toc { margin-bottom: 8px; padding: 0; list-style: none; columns: 1; font-size: 15px; }
@media (min-width: 720px) { .toc { columns: 2; column-gap: 32px; } }
.toc li { break-inside: avoid; margin: 0 0 6px; }
.ph { background: rgba(255, 196, 0, 0.22); border-radius: 4px; padding: 0 4px; font-weight: 600; }

.table-wrap { overflow-x: auto; margin-top: 16px; border-radius: 12px; box-shadow: inset 0 0 0 1px var(--line); }
table { border-collapse: collapse; width: 100%; font-size: 15px; min-width: 520px; }
th, td { text-align: left; vertical-align: top; padding: 10px 14px; border-bottom: 1px solid var(--line); }
tr:last-child td { border-bottom: 0; }
th { font-weight: 600; color: var(--muted); }

/* FAQ */
.faq details { border-bottom: 1px solid var(--line); padding-block: 4px; }
.faq details:last-of-type { border-bottom: 0; }
.faq summary { cursor: pointer; font-weight: 600; font-size: 18px; letter-spacing: -0.01em; padding-block: 14px; list-style: none; display: flex; justify-content: space-between; gap: 16px; align-items: center; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; flex: none; width: 9px; height: 9px; border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted); transform: rotate(45deg); transition: transform .2s ease; margin-right: 4px; }
.faq details[open] summary::after { transform: rotate(-135deg); }
.faq details > *:not(summary) { padding-bottom: 12px; margin-top: 0; }
.faq details p + p, .faq details p + ul { margin-top: 10px; }
.faq details ul { padding-left: 22px; margin-bottom: 0; }
.faq h2 { margin-top: 36px; }
.faq h2:first-child { margin-top: 0; }
.contact { padding: 24px 22px; margin-bottom: 24px; }
.contact p { margin-top: 8px; color: var(--muted); }
.contact a.mail { font-size: 20px; font-weight: 600; }

/* footer */
.site-footer { border-top: 1px solid var(--line); margin-top: 24px; padding-block: 32px 48px; font-size: 15px; color: var(--muted); }
.site-footer .wrap { display: grid; gap: 16px; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 8px 24px; }
.site-footer a { color: var(--text); text-decoration: none; padding-block: 4px; }
.site-footer a:hover { text-decoration: underline; }
.site-footer p { max-width: 46em; font-size: 14px; }

.center { text-align: center; }
.notfound { padding-block: 96px; }
.notfound .actions { margin-top: 28px; }

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

.lede.tight { margin-top: 14px; }
.contact h2 { font-size: 22px; }

@media (max-width: 640px) {
  .table-wrap { box-shadow: none; overflow: visible; }
  table, tbody, tr, th, td { display: block; min-width: 0; width: 100%; }
  thead { position: absolute; left: -9999px; }
  tr { padding: 14px 16px; margin-bottom: 10px; border-radius: 14px; box-shadow: inset 0 0 0 1px var(--line); }
  th, td { border: 0; padding: 0; }
  tbody th { color: var(--text); font-size: 16px; margin-bottom: 4px; }
  td + td { margin-top: 8px; }
  td:nth-of-type(1)::before, td:nth-of-type(2)::before { display: block; font-size: 12px; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; }
  td:nth-of-type(1)::before { content: "What it is"; }
  td:nth-of-type(2)::before { content: "Why we need it"; }
}
