:root {
  --brand: #3a76f0;
  --brand-dark: #2f63cc;
  --ink: #101828;
  --muted: #5b6472;
  --faint: #8a93a3;
  --line: #e5e9f0;
  --bg: #ffffff;
  --soft: #f4f6f9;
  --soft-ink: #1c2433;
  --radius: 12px;
  --max: 1120px;
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI",
    Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  font-size: 16px;
  line-height: 1.65;
}

h1, h2, h3 { line-height: 1.25; letter-spacing: -0.01em; margin: 0 0 12px; }
h1 { font-size: 44px; font-weight: 700; }
h2 { font-size: 30px; font-weight: 700; }
h3 { font-size: 18px; font-weight: 650; }
p { margin: 0 0 14px; }
a { color: var(--brand); text-decoration: none; }
a:hover { text-decoration: underline; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 24px; }
section { scroll-margin-top: 76px; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  display: flex;
  align-items: center;
  gap: 28px;
  height: 64px;
}
.brand { display: flex; align-items: center; gap: 10px; color: var(--ink); font-weight: 700; font-size: 19px; }
.brand:hover { text-decoration: none; }
.brand img { width: 30px; height: 30px; display: block; }
.main-nav { display: flex; gap: 22px; margin-left: 8px; }
.main-nav a { color: var(--muted); font-size: 15px; }
.main-nav a:hover { color: var(--ink); text-decoration: none; }
.header-spacer { flex: 1; }
.lang-select {
  font: inherit;
  font-size: 14px;
  color: var(--muted);
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  padding: 6px 8px;
  max-width: 170px;
}
.btn {
  display: inline-block;
  background: var(--brand);
  color: #fff;
  font-weight: 600;
  font-size: 15px;
  padding: 11px 22px;
  border-radius: 10px;
  border: 1px solid var(--brand);
}
.btn:hover { background: var(--brand-dark); text-decoration: none; color: #fff; }
.btn.small { padding: 8px 16px; font-size: 14px; }
.btn.ghost { background: #fff; color: var(--ink); border-color: var(--line); }
.btn.ghost:hover { border-color: var(--ink); background: #fff; color: var(--ink); }
.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--line);
  border-radius: 8px;
  line-height: 1;
  padding: 7px 11px;
  color: var(--ink);
  cursor: pointer;
}

.hero { padding: 72px 0 64px; border-bottom: 1px solid var(--line); }
.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 56px;
  align-items: center;
}
.eyebrow {
  display: inline-block;
  font-size: 13px;
  font-weight: 650;
  color: var(--brand);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 4px 12px;
  margin-bottom: 18px;
  background: var(--soft);
}
.hero p.lead { font-size: 19px; color: var(--muted); margin: 0 0 26px; }
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 14px; }
.hero-note { font-size: 13.5px; color: var(--faint); }

.phone {
  width: min(290px, 100%);
  margin: 0 auto;
  border: 1px solid var(--line);
  border-radius: 36px;
  background: #fff;
  box-shadow: 0 18px 44px rgba(16, 24, 40, 0.10);
  overflow: hidden;
}
.phone-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 16px 12px;
  border-bottom: 1px solid var(--line);
  background: var(--soft);
}
.phone-avatar {
  width: 34px; height: 34px; border-radius: 50%;
  background: var(--brand); color: #fff;
  font-size: 14px; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  flex: none;
}
.phone-name { font-size: 14px; font-weight: 650; }
.phone-sub { font-size: 12px; color: var(--faint); }
.phone-body { padding: 16px 14px; display: flex; flex-direction: column; gap: 8px; background: #fff; }
.bubble {
  max-width: 82%;
  padding: 9px 12px;
  border-radius: 14px;
  font-size: 13.5px;
  line-height: 1.5;
}
.bubble.them { background: var(--soft); color: var(--ink); border-top-left-radius: 4px; align-self: flex-start; }
.bubble.me { background: var(--brand); color: #fff; border-top-right-radius: 4px; align-self: flex-end; }
.bubble.sys {
  align-self: center;
  background: none;
  color: var(--faint);
  font-size: 12px;
  padding: 2px 0;
}
.phone-input {
  display: flex; gap: 8px; align-items: center;
  padding: 12px 14px 16px;
  border-top: 1px solid var(--line);
}
.phone-input span.field {
  flex: 1; font-size: 13px; color: var(--faint);
  border: 1px solid var(--line); border-radius: 999px; padding: 7px 14px;
}
.phone-input span.send {
  width: 32px; height: 32px; border-radius: 50%;
  background: var(--brand); color: #fff;
  display: flex; align-items: center; justify-content: center;
}

.band { padding: 68px 0; }
.band.soft { background: var(--soft); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-kicker { font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; color: var(--brand); margin-bottom: 10px; }
.section-sub { color: var(--muted); font-size: 17px; max-width: 720px; margin: 0 0 36px; }

.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
  background: #fff;
}
.card h3 { margin-bottom: 8px; }
.card p { color: var(--muted); font-size: 15px; margin: 0; }
.card .icon {
  width: 38px; height: 38px; border-radius: 10px;
  background: var(--soft); color: var(--brand);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 14px;
  font-style: normal;
}
.ic {
  width: 20px; height: 20px; flex: none;
  fill: none; stroke: currentColor; stroke-width: 2;
  stroke-linecap: round; stroke-linejoin: round;
}
.ic.fill { fill: currentColor; stroke: none; }
.nav-toggle .ic { width: 22px; height: 22px; display: block; }
.card .icon .ic { width: 20px; height: 20px; }
.tick .ic { width: 13px; height: 13px; stroke-width: 3; }
.send .ic { width: 15px; height: 15px; stroke-width: 2.5; }
.store-btn .ic { width: 17px; height: 17px; }
.svg-defs { position: absolute; width: 0; height: 0; overflow: hidden; }

.check-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 18px; }
.check-list li { display: grid; grid-template-columns: 28px 1fr; gap: 12px; align-items: start; }
.check-list .tick {
  width: 24px; height: 24px; border-radius: 50%;
  background: var(--brand); color: #fff;
  display: flex; align-items: center; justify-content: center;
  margin-top: 2px;
}
.check-list strong { display: block; margin-bottom: 2px; }
.check-list p { color: var(--muted); font-size: 15px; margin: 0; }

.honest-box {
  border: 1px solid var(--line);
  border-left: 4px solid var(--brand);
  border-radius: 8px;
  background: #fff;
  padding: 18px 22px;
  margin-top: 32px;
}
.honest-box p { margin: 0; color: var(--muted); font-size: 15px; }
.honest-box strong { color: var(--ink); }

.perm-table { width: 100%; border-collapse: collapse; font-size: 15px; background: #fff; }
.perm-table th, .perm-table td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
.perm-table th { font-size: 13px; text-transform: uppercase; letter-spacing: 0.06em; color: var(--faint); font-weight: 700; }
.perm-table td:first-child { font-weight: 650; white-space: nowrap; }
.perm-table td:last-child { color: var(--muted); }
.table-scroll { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }

.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; counter-reset: step; }
.step { border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; background: #fff; }
.step .n {
  width: 30px; height: 30px; border-radius: 50%;
  border: 1.5px solid var(--brand); color: var(--brand);
  font-weight: 700; font-size: 14px;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 12px;
}
.step p { color: var(--muted); font-size: 15px; margin: 0; }

.faq { max-width: 780px; }
.faq details { border: 1px solid var(--line); border-radius: 10px; background: #fff; margin-bottom: 10px; }
.faq summary { cursor: pointer; padding: 16px 20px; font-weight: 600; font-size: 15.5px; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; float: right; color: var(--faint); font-weight: 400; }
.faq details[open] summary::after { content: "–"; }
.faq .answer { padding: 0 20px 18px; color: var(--muted); font-size: 15px; }

.dl-buttons { display: flex; gap: 12px; flex-wrap: wrap; margin: 20px 0 12px; }
.store-btn {
  display: inline-flex; align-items: center; gap: 10px;
  border: 1px solid var(--ink); border-radius: 10px;
  background: var(--ink); color: #fff;
  padding: 10px 18px; font-size: 15px; font-weight: 600;
}
.store-btn:hover { text-decoration: none; background: #000; color: #fff; }
.store-btn.light { background: #fff; color: var(--ink); border-color: var(--line); }
.store-btn.light:hover { border-color: var(--ink); }

.article { max-width: 800px; padding: 56px 24px 72px; }
.article h1 { font-size: 34px; margin-bottom: 6px; }
.article .updated { color: var(--faint); font-size: 14px; margin-bottom: 28px; }
.article h2 { font-size: 21px; margin: 34px 0 10px; padding-top: 10px; }
.article p, .article li { font-size: 15.5px; color: #2a3444; }
.article ul { padding-left: 22px; }
.article li { margin-bottom: 6px; }
.article .toc { border: 1px solid var(--line); border-radius: 10px; background: var(--soft); padding: 18px 22px; margin: 24px 0 8px; }
.article .toc strong { display: block; margin-bottom: 8px; font-size: 14px; }
.article .toc ol { margin: 0; padding-left: 20px; font-size: 14.5px; }
.article .toc li { margin-bottom: 3px; }
.fallback-note {
  border: 1px solid var(--line);
  background: var(--soft);
  border-radius: 8px;
  padding: 12px 16px;
  font-size: 14px;
  color: var(--muted);
  margin-bottom: 20px;
}
.notfound { text-align: center; padding-top: 96px; }
.notfound p { color: var(--muted); }

.site-footer { border-top: 1px solid var(--line); padding: 48px 0 32px; background: #fff; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 32px; margin-bottom: 32px; }
.footer-brand p { color: var(--muted); font-size: 14px; max-width: 300px; }
.footer-col h4 { font-size: 13px; text-transform: uppercase; letter-spacing: 0.07em; color: var(--faint); margin: 0 0 12px; }
.footer-col a { display: block; color: var(--muted); font-size: 14.5px; margin-bottom: 8px; }
.footer-col a:hover { color: var(--ink); }
.footer-bottom { border-top: 1px solid var(--line); padding-top: 20px; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; color: var(--faint); font-size: 13.5px; }

@media (max-width: 920px) {
  h1 { font-size: 34px; }
  h2 { font-size: 25px; }
  .hero { padding: 48px 0; }
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .grid-3, .grid-2, .steps { grid-template-columns: 1fr; }
  .main-nav {
    display: none;
    position: absolute;
    top: 64px; left: 0; right: 0;
    background: #fff;
    flex-direction: column;
    gap: 0;
    border-bottom: 1px solid var(--line);
    margin: 0;
    padding: 8px 24px 16px;
  }
  .main-nav.open { display: flex; }
  .main-nav a { padding: 10px 0; border-top: 1px solid var(--line); }
  .nav-toggle { display: block; }
  .header-cta { display: none; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 560px) {
  .footer-grid { grid-template-columns: 1fr; }
  .lang-select { max-width: 132px; }
}
