:root {
  --bg: #f8f9fb;
  --surface: #ffffff;
  --surface2: #edf0f6;
  --line: #e0e4ee;
  --ink: #0a0e27;
  --muted: #596284;
  --teal: #0097b1;
  --teal-ink: #007d93;
  --soft: #dff3f7;
  --red: #e8264b;
  --grad: linear-gradient(115deg, #0097b1 0%, #3c8bdf 30%, #8a71f1 55%, #cc4cd3 78%, #ff0080 100%);
  --radius: 22px;
  --shadow: 0 1px 2px rgba(10, 14, 39, 0.04), 0 12px 32px -12px rgba(10, 14, 39, 0.14);
  --max: 1120px;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: 'Onest', system-ui, -apple-system, 'Segoe UI', sans-serif;
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
a { color: var(--teal-ink); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--teal); }
:focus-visible { outline: 3px solid var(--teal); outline-offset: 3px; border-radius: 8px; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 20px; }

/* header */
.top {
  position: sticky; top: 0; z-index: 10;
  background: rgba(248, 249, 251, 0.86);
  backdrop-filter: saturate(1.4) blur(14px);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s;
}
.top.scrolled { border-bottom-color: var(--line); }
.top .wrap { display: flex; align-items: center; justify-content: space-between; height: 68px; gap: 16px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.brand .mark { width: 34px; height: auto; }
.brand .word { width: 112px; height: auto; }
.nav { display: flex; align-items: center; gap: 22px; }
.nav a { color: var(--ink); text-decoration: none; font-weight: 500; font-size: 15px; }
.nav a:hover { color: var(--teal-ink); }
.lang {
  appearance: none; -webkit-appearance: none;
  font: inherit; font-size: 14px; font-weight: 600; color: var(--ink);
  background: var(--surface) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%23596284' stroke-width='2'/%3E%3C/svg%3E") no-repeat right 12px center;
  border: 1px solid var(--line); border-radius: 999px;
  padding: 8px 34px 8px 14px; cursor: pointer;
}
@media (max-width: 760px) { .nav .hide-sm { display: none; } }

/* buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 54px; padding: 0 26px; border-radius: 16px;
  font: inherit; font-weight: 700; font-size: 17px; text-decoration: none; cursor: pointer; border: 0;
  transition: transform .15s ease, box-shadow .15s ease, background .15s;
}
.btn:active { transform: translateY(1px) scale(.99); }
.btn-primary { background: var(--teal); color: #fff; box-shadow: 0 10px 24px -10px rgba(0, 151, 177, .7); }
.btn-primary:hover { background: #008aa3; color: #fff; }
.btn-ghost { background: var(--surface); color: var(--ink); border: 1px solid var(--line); }
.btn-ghost:hover { color: var(--ink); border-color: #c9cfdd; }
.btn svg { width: 20px; height: 20px; }

/* hero */
.hero { padding: 56px 0 40px; overflow: hidden; }
.hero .wrap { display: grid; grid-template-columns: 1.05fr .95fr; gap: 48px; align-items: center; }
.pill {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 14px 6px 8px; border-radius: 999px;
  background: var(--surface); border: 1px solid var(--line);
  font-size: 14px; font-weight: 600; color: var(--muted);
}
.pill b { background: var(--grad); color: #fff; padding: 2px 10px; border-radius: 999px; font-size: 12px; letter-spacing: .04em; }
h1 {
  font-size: clamp(40px, 6vw, 64px); line-height: 1.02; letter-spacing: -0.035em;
  font-weight: 800; margin: 20px 0 18px;
}
h1 .g { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lead { font-size: clamp(18px, 2vw, 20px); color: var(--muted); max-width: 33em; margin: 0 0 28px; }
.cta { display: flex; flex-wrap: wrap; gap: 12px; }
.note { margin-top: 14px; font-size: 14px; color: var(--muted); }

/* phone mock */
.stage { position: relative; display: flex; justify-content: center; }
.stage::before {
  content: ''; position: absolute; inset: 8% 2% 4%;
  background: var(--grad); filter: blur(70px); opacity: .28; border-radius: 50%;
}
.phone {
  position: relative; width: 300px; max-width: 78vw; aspect-ratio: 9 / 19;
  background: var(--ink); border-radius: 46px; padding: 12px;
  box-shadow: 0 40px 80px -30px rgba(10, 14, 39, .45);
}
.screen {
  height: 100%; border-radius: 36px; background: var(--bg); overflow: hidden;
  padding: 44px 16px 16px; display: flex; flex-direction: column; gap: 12px; font-size: 13px;
}
.screen .row { display: flex; align-items: center; justify-content: space-between; }
.screen .t { font-weight: 800; font-size: 22px; letter-spacing: -.02em; }
.screen .sub { color: var(--muted); font-size: 12px; }
.days { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; }
.days span { text-align: center; padding: 7px 0; border-radius: 10px; background: var(--surface); font-weight: 600; font-size: 11px; color: var(--muted); }
.days span.on { background: var(--teal); color: #fff; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 14px; }
.card .lbl { font-size: 10px; font-weight: 700; letter-spacing: .1em; color: var(--teal-ink); }
.card .h { font-weight: 700; font-size: 17px; margin: 2px 0 6px; }
.chips { display: flex; gap: 5px; flex-wrap: wrap; }
.chips span { background: var(--surface2); border-radius: 999px; padding: 3px 9px; font-size: 11px; font-weight: 600; }
.fake-btn { margin-top: 10px; background: var(--teal); color: #fff; border-radius: 12px; text-align: center; padding: 9px; font-weight: 700; }
.sets { display: grid; gap: 6px; }
.set { display: flex; align-items: center; justify-content: space-between; background: var(--surface2); border-radius: 10px; padding: 7px 10px; font-weight: 600; }
.set .ok { width: 20px; height: 20px; border-radius: 50%; background: var(--teal); color: #fff; display: grid; place-items: center; font-size: 12px; }
.set .no { width: 20px; height: 20px; border-radius: 50%; border: 2px solid #c9cfdd; }
.pr { display: flex; gap: 8px; align-items: center; background: #fff0f6; color: #b0005c; border-radius: 12px; padding: 8px 10px; font-weight: 700; font-size: 12px; }

/* sections */
section { padding: 72px 0; }
.kicker { font-size: 13px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--teal-ink); margin: 0 0 10px; }
h2 { font-size: clamp(30px, 4vw, 42px); line-height: 1.1; letter-spacing: -0.03em; margin: 0 0 14px; font-weight: 800; }
.section-lead { color: var(--muted); max-width: 40em; margin: 0 0 36px; }

.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.feature { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; box-shadow: var(--shadow); }
.feature .ic { width: 48px; height: 48px; border-radius: 14px; background: var(--soft); display: grid; place-items: center; margin-bottom: 18px; }
.feature .ic svg { width: 24px; height: 24px; stroke: var(--teal-ink); fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.feature h3 { margin: 0 0 6px; font-size: 19px; letter-spacing: -.01em; }
.feature p { margin: 0; color: var(--muted); font-size: 16px; }

.privacy-band { background: var(--ink); color: #f4f6fb; border-radius: 32px; padding: 48px; display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; }
.privacy-band h2 { color: #fff; }
.privacy-band p { color: #b9c0d9; margin: 0; }
.checks { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.checks li { display: flex; gap: 12px; align-items: flex-start; }
.checks li::before { content: ''; flex: 0 0 22px; height: 22px; border-radius: 50%; background: #0097b1 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='10'%3E%3Cpath d='M1 5l3.5 3.5L11 1' fill='none' stroke='white' stroke-width='2'/%3E%3C/svg%3E") no-repeat center; margin-top: 2px; }

.beta { text-align: center; }
.beta .box { background: var(--surface); border: 1px solid var(--line); border-radius: 32px; padding: 56px 24px; box-shadow: var(--shadow); position: relative; overflow: hidden; }
.beta .box::after { content: ''; position: absolute; left: 0; right: 0; top: 0; height: 5px; background: var(--grad); }
.beta .mark { width: 64px; margin: 0 auto 18px; }
.beta .section-lead { margin: 0 auto 28px; }
.beta .cta { justify-content: center; }

/* footer */
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: 18px 32px; justify-content: space-between; align-items: center; }
footer nav { display: flex; flex-wrap: wrap; gap: 8px 22px; }
footer a { color: var(--ink); text-decoration: none; font-weight: 500; }
footer a:hover { color: var(--teal-ink); }

/* documents */
.doc { max-width: 760px; padding: 48px 20px 80px; margin: 0 auto; }
.doc h1 { font-size: clamp(34px, 5vw, 48px); margin: 8px 0 8px; }
.doc .meta { color: var(--muted); margin: 0 0 28px; }
.doc h2 { font-size: 24px; margin: 40px 0 10px; letter-spacing: -.02em; }
.doc h3 { font-size: 18px; margin: 24px 0 6px; }
.doc p, .doc li { color: #2a3150; }
.doc ul { padding-left: 22px; }
.doc li { margin: 6px 0; }
.doc table { width: 100%; border-collapse: collapse; margin: 12px 0 8px; font-size: 15px; }
.doc th, .doc td { text-align: left; vertical-align: top; padding: 10px 12px; border-bottom: 1px solid var(--line); }
.doc th { font-size: 13px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.callout { background: var(--soft); border-radius: 16px; padding: 16px 18px; margin: 18px 0; color: #0b4652; }
.toc { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 14px 20px; margin: 0 0 8px; }
.toc ol { margin: 6px 0; padding-left: 20px; columns: 2; column-gap: 28px; }
.toc li { margin: 3px 0; break-inside: avoid; }
.faq details { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 16px 20px; margin: 10px 0; }
.faq summary { font-weight: 700; cursor: pointer; }
.faq details p { margin: 10px 0 0; }
.mailcard { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; background: var(--surface); border: 1px solid var(--line); border-radius: 22px; padding: 22px 24px; box-shadow: var(--shadow); margin: 20px 0 8px; }
.mailcard b { font-size: 20px; }

@media (max-width: 900px) {
  .hero .wrap { grid-template-columns: 1fr; gap: 40px; }
  .hero { padding-top: 32px; }
  .grid { grid-template-columns: 1fr 1fr; }
  .privacy-band { grid-template-columns: 1fr; padding: 32px 24px; gap: 24px; }
}
@media (max-width: 600px) {
  body { font-size: 16px; }
  .grid { grid-template-columns: 1fr; }
  section { padding: 52px 0; }
  .btn { width: 100%; }
  .toc ol { columns: 1; }
  .brand .word { width: 96px; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; scroll-behavior: auto !important; } }
