/* SoftCloud Mail — site styles (landing, auth pages, terms, 404) */
@import url('fonts.css');

:root {
  --acc: #0B7A8A;
  --acc-d: #07505B;
  --acc-l: #5FB3BF;
  --tint: #CFE8EC;
  --tint2: #E3F1F3;
  --ink: #14212B;
  --body: #3A4855;
  --muted: #5A6977;
  --line: #DCE5EC;
  --ground: #EEF3F8;
  --dark: #0E2A31;
  --ok: #1F7A4D;
  --err: #B3372F;
  --shadow-card: 0 2px 6px rgba(20,33,43,.06), 0 24px 60px rgba(20,33,43,.10);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--ground);
  color: var(--ink);
  font-family: 'Onest', system-ui, -apple-system, 'Segoe UI', sans-serif;
  font-size: 16px;
  line-height: 1.5;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
a:hover { color: var(--acc); }
img, svg { display: block; }
button, input, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; }
input::placeholder, textarea::placeholder { color: #7A8896; }
:focus-visible { outline: 3px solid rgba(11,122,138,.45); outline-offset: 2px; border-radius: 8px; }
.display { font-family: 'Unbounded', 'Onest', sans-serif; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.wrap { width: 100%; max-width: 1440px; margin: 0 auto; padding: 0 80px; }
[hidden] { display: none !important; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 48px; padding: 0 24px; border-radius: 999px;
  font-size: 16px; font-weight: 500; white-space: nowrap;
  border: 1px solid #C9D5E0; background: #fff; color: var(--ink);
  transition: background-color .15s ease, box-shadow .15s ease, transform .15s ease;
}
.btn:hover { color: var(--ink); background: #F6F9FB; }
.btn-primary { background: var(--acc); border-color: var(--acc); color: #fff; font-weight: 600; }
.btn-primary:hover { background: #0A6F7E; color: #fff; }
.btn-lg { height: 56px; padding: 0 30px; font-size: 17px; }
.btn-block { width: 100%; }
.btn-shadow { box-shadow: 0 6px 16px rgba(11,122,138,.24); }
.btn[disabled] { opacity: .6; cursor: default; }

/* ---------- header ---------- */
.site-header { position: relative; z-index: 20; }
.site-header .wrap { height: 92px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: flex; align-items: center; gap: 12px; color: var(--ink); }
.brand:hover { color: var(--ink); }
.brand-text { font-family: 'Unbounded', 'Onest', sans-serif; font-size: 21px; font-weight: 600; letter-spacing: -0.01em; }
.main-nav { display: flex; gap: 36px; font-size: 16px; font-weight: 500; }
.header-actions { display: flex; align-items: center; gap: 12px; }
.menu-btn { display: none; width: 44px; height: 44px; border: 0; background: transparent; align-items: center; justify-content: center; color: var(--ink); }
.mobile-nav { display: none; }

.lang {
  display: flex; height: 40px; padding: 4px; border-radius: 999px;
  background: #fff; border: 1px solid var(--line);
}
.lang button {
  height: 30px; padding: 0 12px; border: 0; border-radius: 999px;
  background: transparent; color: var(--body); font-size: 13px; font-weight: 600;
}
.lang button[aria-pressed="true"] { background: var(--ink); color: #fff; }
.lang.on-dark { background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.18); }
.lang.on-dark button { color: rgba(255,255,255,.75); }
.lang.on-dark button[aria-pressed="true"] { background: #fff; color: var(--ink); }

/* ---------- hero ---------- */
.hero .wrap { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 760px; padding-top: 20px; }
.hero-copy { width: 660px; max-width: 100%; display: flex; flex-direction: column; gap: 30px; position: relative; z-index: 3; }
.badge {
  display: inline-flex; align-items: center; gap: 10px; align-self: flex-start;
  height: 36px; padding: 0 16px 0 8px; border-radius: 999px;
  background: #fff; border: 1px solid var(--line); font-size: 14px; font-weight: 500; color: var(--body);
}
.badge i { width: 22px; height: 22px; border-radius: 999px; background: var(--acc); display: flex; align-items: center; justify-content: center; }
.hero h1 { margin: 0; font-size: 76px; line-height: 1.04; font-weight: 700; letter-spacing: -0.035em; }
.accent { color: var(--acc); }
.lead { margin: 0; font-size: 21px; line-height: 1.5; color: var(--body); max-width: 560px; }

.claim {
  display: flex; align-items: center; width: 620px; max-width: 100%; height: 68px;
  padding: 8px 8px 8px 24px; border-radius: 999px; background: #fff;
  border: 1px solid var(--line); box-shadow: 0 24px 50px -28px rgba(10,60,75,.35);
}
.claim:focus-within { border-color: var(--acc); }
.claim input { flex: 1; min-width: 0; border: 0; outline: none; background: transparent; font-size: 19px; }
.claim .suffix { font-size: 19px; font-weight: 500; color: var(--body); padding-right: 16px; white-space: nowrap; }
.claim .btn { height: 52px; flex-shrink: 0; }

.trust { display: flex; align-items: center; flex-wrap: wrap; gap: 10px 22px; font-size: 15px; color: var(--body); }
.trust span { display: inline-flex; align-items: center; gap: 8px; }
.trust .dot { color: #9AA6B2; }
.trust a { color: var(--acc-d); font-weight: 600; }

/* ---------- 3D stage ---------- */
.stage-box { width: 660px; height: 700px; flex-shrink: 0; position: relative; }
.stage { position: absolute; left: 0; top: 0; width: 660px; height: 700px; perspective: 1400px; perspective-origin: 50% 42%; transform-origin: 0 0; }
.p3d { transform-style: preserve-3d; }
.abs { position: absolute; }
.ring-bg { left: 70px; top: 90px; width: 520px; height: 520px; border-radius: 999px; background: #E2ECF1; }
.ring-line { left: 130px; top: 150px; width: 400px; height: 400px; border-radius: 999px; border: 1px solid #CFDDE5; }
.orbit-wrap { left: 70px; top: 90px; width: 520px; height: 520px; }
.orbit { left: 0; top: 0; width: 520px; height: 520px; border-radius: 999px; border: 1.5px solid rgba(11,122,138,.30); animation: orbit 26s linear infinite; }
.orbit2 { left: 60px; top: 60px; width: 400px; height: 400px; border-radius: 999px; border: 1px dashed rgba(20,33,43,.18); animation: orbit2 34s linear infinite; }
.orb { position: absolute; border-radius: 999px; background: radial-gradient(circle at 32% 28%, #b8e6ec 0%, var(--acc) 55%, #04353d 100%); box-shadow: 0 14px 24px -10px rgba(10,70,85,.45); }
.orb.light { background: radial-gradient(circle at 32% 28%, #ffffff 0%, #e6f1f4 60%, #b9d5de 100%); }
.bob { left: 190px; top: 220px; width: 280px; height: 230px; animation: bob 7s ease-in-out infinite; }
.spin { left: 0; top: 0; width: 280px; height: 230px; animation: spinY 16s linear infinite; }
.slab { position: absolute; height: 58px; border-radius: 29px; }
.slab.face { box-shadow: inset 0 -8px 18px rgba(0,0,0,.12), inset 0 6px 12px rgba(255,255,255,.35); }
.floor-shadow { left: 220px; top: 520px; width: 220px; height: 26px; border-radius: 999px; background: rgba(10,60,75,.16); filter: blur(12px); }
.cloud { position: absolute; filter: drop-shadow(0 30px 30px rgba(20,70,85,.18)); pointer-events: none; }
.puff { position: absolute; border-radius: 999px; background: radial-gradient(circle at 34% 28%, #ffffff 0%, #f5fafb 40%, #dbeaef 80%, #c9dde5 100%); box-shadow: inset -12px -16px 26px rgba(20,90,110,.12); }
.fa { animation: floatA 9s ease-in-out infinite; }
.fb { animation: floatB 11s ease-in-out infinite; }
.fc { animation: floatC 8s ease-in-out infinite; }

@keyframes spinY { from { transform: rotateX(-14deg) rotateY(0deg); } to { transform: rotateX(-14deg) rotateY(360deg); } }
@keyframes bob { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-20px); } }
@keyframes floatA { 0%,100% { transform: translate(0,0); } 50% { transform: translate(14px,-18px); } }
@keyframes floatB { 0%,100% { transform: translate(0,0); } 50% { transform: translate(-16px,-12px); } }
@keyframes floatC { 0%,100% { transform: translate(0,0) scale(1); } 50% { transform: translate(8px,14px) scale(1.04); } }
@keyframes orbit { from { transform: rotateX(74deg) rotateY(-12deg) rotateZ(0deg); } to { transform: rotateX(74deg) rotateY(-12deg) rotateZ(360deg); } }
@keyframes orbit2 { from { transform: rotateX(66deg) rotateY(20deg) rotateZ(360deg); } to { transform: rotateX(66deg) rotateY(20deg) rotateZ(0deg); } }

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

/* ---------- sections ---------- */
.section { padding-top: 70px; }
.section-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 40px; margin-bottom: 48px; }
.h2 { margin: 0; font-size: 46px; line-height: 1.1; font-weight: 600; letter-spacing: -0.03em; }
.section-head .h2 { max-width: 740px; }
.section-head p { margin: 0; font-size: 18px; line-height: 1.55; color: var(--body); max-width: 400px; }
.eyebrow { font-size: 14px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--acc-d); }
.text { margin: 0; font-size: 18px; line-height: 1.6; color: var(--body); }

.features { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.card {
  min-height: 300px; padding: 36px; border-radius: 28px; background: #fff; border: 1px solid var(--line);
  display: flex; flex-direction: column; justify-content: space-between; gap: 32px;
  transition: transform .3s ease;
}
.card:hover { transform: translateY(-4px); }
.icon-tile { width: 64px; height: 64px; border-radius: 20px; background: var(--tint2); display: flex; align-items: center; justify-content: center; color: var(--acc); }
.card h3 { margin: 0 0 12px; font-family: 'Unbounded', 'Onest', sans-serif; font-size: 23px; font-weight: 600; letter-spacing: -0.02em; }
.card p { margin: 0; font-size: 17px; line-height: 1.55; color: var(--body); }

.split { display: flex; align-items: center; gap: 64px; min-height: 720px; }
.split-copy { width: 460px; flex-shrink: 0; display: flex; flex-direction: column; gap: 26px; }
.checks { display: flex; flex-direction: column; gap: 16px; font-size: 17px; margin: 0; padding: 0; list-style: none; }
.checks li { display: flex; align-items: center; gap: 14px; }
.checks i { width: 28px; height: 28px; border-radius: 999px; background: var(--tint); display: flex; align-items: center; justify-content: center; color: var(--acc-d); flex-shrink: 0; }

.mock-box { position: relative; width: 780px; height: 620px; flex-shrink: 0; }
.mock {
  position: absolute; left: 20px; top: 60px; width: 720px; height: 470px; border-radius: 24px;
  background: var(--ground); border: 1px solid var(--line); box-shadow: 0 60px 90px -40px rgba(10,60,75,.45);
  overflow: hidden; display: flex; flex-direction: column; z-index: 1;
  transform: perspective(1800px) rotateX(8deg) rotateY(-12deg);
}
.mock-top { height: 56px; flex-shrink: 0; padding: 0 16px; display: flex; align-items: center; gap: 14px; }
.mock-brand { width: 150px; display: flex; align-items: center; gap: 8px; font-family: 'Unbounded', sans-serif; font-size: 13px; font-weight: 600; }
.mock-search { flex: 1; height: 34px; border-radius: 17px; background: #DDE6EF; display: flex; align-items: center; padding: 0 14px; gap: 8px; font-size: 12px; color: #4A5967; }
.mock-avatar { width: 28px; height: 28px; border-radius: 999px; background: var(--acc); color: #fff; font-size: 12px; font-weight: 600; display: flex; align-items: center; justify-content: center; }
.mock-body { flex: 1; display: flex; min-height: 0; }
.mock-side { width: 166px; flex-shrink: 0; padding: 4px 10px; display: flex; flex-direction: column; gap: 2px; font-size: 12px; }
.mock-compose { align-self: flex-start; height: 40px; padding: 0 16px; border-radius: 14px; background: var(--acc); color: #fff; font-weight: 600; display: flex; align-items: center; margin-bottom: 10px; box-shadow: 0 6px 14px rgba(11,122,138,.25); }
.mock-folder { height: 32px; padding: 0 12px; display: flex; align-items: center; justify-content: space-between; color: var(--body); }
.mock-folder.on { border-radius: 16px; background: var(--tint); font-weight: 600; color: var(--acc-d); }
.mock-list { flex: 1; margin: 0 12px 12px 0; border-radius: 16px; background: #fff; overflow: hidden; display: flex; flex-direction: column; }
.mock-bar { height: 42px; flex-shrink: 0; border-bottom: 1px solid #E6ECF2; }
.mock-row { height: 54px; flex-shrink: 0; padding: 0 18px; border-bottom: 1px solid #EEF2F6; background: #F7F9FB; display: flex; align-items: center; gap: 14px; font-size: 13px; }
.mock-row.u { background: #fff; font-weight: 600; }
.mock-row .cb { width: 14px; height: 14px; border-radius: 4px; border: 1.5px solid #B8C4CF; flex-shrink: 0; }
.mock-row .f { width: 130px; flex-shrink: 0; }
.mock-row .s { flex: 1; }
.mock-row .d { font-size: 12px; color: var(--muted); }
.mock-row.u .d { color: var(--ink); }

.steps { display: flex; gap: 40px; padding: 44px 48px; border-radius: 28px; background: #fff; border: 1px solid var(--line); }
.step { flex: 1 1 0; display: flex; flex-direction: column; gap: 14px; }
.step .num { width: 52px; height: 52px; border-radius: 16px; background: var(--acc); color: #fff; font-family: 'Unbounded', sans-serif; font-size: 20px; font-weight: 600; display: flex; align-items: center; justify-content: center; }
.step h3 { margin: 0; font-family: 'Unbounded', 'Onest', sans-serif; font-size: 22px; font-weight: 600; letter-spacing: -0.02em; }
.step p { margin: 0; font-size: 17px; line-height: 1.55; color: var(--body); }

.apps { display: flex; gap: 64px; align-items: flex-start; }
.apps-copy { width: 460px; flex-shrink: 0; display: flex; flex-direction: column; gap: 22px; padding-top: 12px; }
.apps-grid { flex: 1; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.server { padding: 30px 32px 18px; border-radius: 24px; background: #fff; border: 1px solid var(--line); }
.server-head { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.server-head i { width: 44px; height: 44px; border-radius: 14px; background: var(--tint2); display: flex; align-items: center; justify-content: center; color: var(--acc); }
.server-head h3 { margin: 0; font-family: 'Unbounded', 'Onest', sans-serif; font-size: 19px; font-weight: 600; }
.server dl { margin: 0; }
.server dl div { display: flex; justify-content: space-between; gap: 16px; padding: 14px 0; border-top: 1px solid #EEF2F6; font-size: 16px; }
.server dt { color: var(--muted); }
.server dd { margin: 0; font-weight: 600; text-align: right; word-break: break-all; }

.cta { position: relative; overflow: hidden; border-radius: 40px; background: var(--dark); padding: 64px 72px; display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 360px; }
.cta .ring { position: absolute; border-radius: 999px; border: 1px solid rgba(255,255,255,.08); }
.cta-copy { position: relative; z-index: 2; max-width: 720px; display: flex; flex-direction: column; gap: 32px; }
.cta h2 { margin: 0; font-size: 48px; line-height: 1.08; font-weight: 600; letter-spacing: -0.03em; color: #fff; }
.cta-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.btn-white { background: #fff; border-color: #fff; color: var(--ink); font-weight: 600; }
.btn-white:hover { background: #EEF3F8; color: var(--ink); }
.btn-outline-light { background: transparent; border-color: rgba(255,255,255,.3); color: #fff; }
.btn-outline-light:hover { background: rgba(255,255,255,.08); color: #fff; }
.cta-art { position: relative; width: 360px; height: 260px; flex-shrink: 0; z-index: 1; }

/* ---------- footer ---------- */
.site-footer .wrap > div { min-height: 132px; border-top: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; padding: 24px 0; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 12px 28px; font-size: 15px; font-weight: 500; }
.site-footer .copy { font-size: 14px; color: var(--muted); }
.site-footer .brand-text { font-size: 16px; }

/* ---------- auth pages (register / forgot / done) ---------- */
.page-auth { min-height: 100vh; display: flex; flex-direction: column; position: relative; overflow: hidden; }
.page-auth .site-header .wrap { padding: 0 64px; height: 88px; }
.auth-main { flex: 1; overflow: hidden; display: flex; align-items: center; justify-content: center; gap: 96px; padding: 20px 64px 60px; position: relative; }
.auth-intro { width: 440px; display: flex; flex-direction: column; gap: 28px; position: relative; z-index: 2; }
.auth-intro h1 { margin: 0; font-size: 46px; line-height: 1.08; font-weight: 700; letter-spacing: -0.03em; }
.benefits { display: flex; flex-direction: column; gap: 22px; margin: 0; padding: 0; list-style: none; }
.benefits li { display: flex; gap: 16px; align-items: flex-start; }
.benefits i { width: 48px; height: 48px; border-radius: 16px; background: #fff; display: flex; align-items: center; justify-content: center; flex-shrink: 0; box-shadow: 0 6px 16px -8px rgba(10,60,75,.25); color: var(--acc); }
.benefits b { display: block; font-size: 17px; font-weight: 600; }
.benefits span { font-size: 15px; line-height: 1.5; color: var(--body); }
.note-box { padding: 22px 24px; border-radius: 20px; background: #fff; border: 1px solid var(--line); display: flex; gap: 14px; font-size: 15px; line-height: 1.55; color: var(--body); }
.note-box i { width: 40px; height: 40px; border-radius: 12px; background: var(--tint2); display: flex; align-items: center; justify-content: center; flex-shrink: 0; color: var(--acc); }
.note-box strong { color: var(--ink); }

.auth-card { width: 480px; max-width: 100%; padding: 40px; border-radius: 28px; background: #fff; box-shadow: var(--shadow-card); display: flex; flex-direction: column; gap: 18px; position: relative; z-index: 2; }
.auth-card h2 { margin: 0 0 4px; font-family: 'Unbounded', 'Onest', sans-serif; font-size: 24px; font-weight: 600; letter-spacing: -0.02em; }
.field { display: flex; flex-direction: column; gap: 8px; font-size: 14px; font-weight: 500; color: var(--body); }
.input, .input-wrap {
  height: 50px; border: 1px solid #C9D5E0; border-radius: 12px; background: #fff; padding: 0 16px;
  font-size: 16px; color: var(--ink); outline: none; width: 100%;
  transition: border-color .15s ease, box-shadow .15s ease;
}
textarea.input { height: 120px; padding: 14px 16px; line-height: 1.5; resize: vertical; }
.input:focus, .input-wrap:focus-within { border-color: var(--acc); box-shadow: 0 0 0 3px rgba(11,122,138,.16); }
.input-wrap { display: flex; align-items: center; gap: 4px; padding-right: 8px; }
.input-wrap input { flex: 1; min-width: 0; border: 0; outline: none; background: transparent; font-size: 16px; height: 100%; }
.input-wrap .suffix { font-size: 16px; color: var(--muted); padding-right: 8px; white-space: nowrap; }
.icon-btn { width: 36px; height: 36px; border: 0; border-radius: 10px; background: transparent; color: var(--muted); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.icon-btn:hover { background: var(--ground); color: var(--ink); }
.field.has-error .input, .field.has-error .input-wrap { border-color: var(--err); box-shadow: 0 0 0 3px rgba(179,55,47,.12); }
.hint { display: flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 500; min-height: 18px; color: var(--muted); }
.hint.ok { color: var(--ok); }
.hint.err { color: var(--err); }
.meter { display: flex; gap: 6px; }
.meter span { flex: 1; height: 4px; border-radius: 2px; background: var(--line); transition: background-color .2s ease; }
.meter.s1 span:nth-child(-n+1), .meter.s2 span:nth-child(-n+2), .meter.s3 span:nth-child(-n+3), .meter.s4 span { background: var(--acc); }
.meter.s1 span:nth-child(-n+1) { background: #D9812B; }
.check { display: flex; align-items: flex-start; gap: 10px; font-size: 14px; line-height: 1.45; color: var(--body); font-weight: 400; }
.check input { width: 18px; height: 18px; margin: 1px 0 0; accent-color: var(--acc); flex-shrink: 0; }
.check a, .auth-card .muted a { color: var(--acc-d); font-weight: 600; }
.auth-card .muted { margin: 0; text-align: center; font-size: 14px; color: var(--muted); }
.captcha { min-height: 78px; display: flex; align-items: center; }
.captcha-missing { width: 100%; height: 74px; border: 1px dashed #B8C6D2; border-radius: 12px; background: #F7FAFC; display: flex; align-items: center; justify-content: center; font-size: 13px; color: var(--muted); }
.form-error { display: none; padding: 12px 14px; border-radius: 12px; background: #FBEDEC; color: var(--err); font-size: 14px; font-weight: 500; }
.form-error.show { display: block; }
.form-ok { padding: 12px 14px; border-radius: 12px; background: #E7F4EC; color: var(--ok); font-size: 14px; font-weight: 500; }

.done { align-items: center; text-align: center; gap: 20px; padding: 48px 44px 40px; }
.done .big-check { width: 76px; height: 76px; border-radius: 999px; background: var(--tint); display: flex; align-items: center; justify-content: center; color: var(--acc-d); }
.done h2 { font-size: 30px; }
.done p { margin: 0; font-size: 17px; line-height: 1.5; color: var(--body); }
.addr-box { width: 100%; min-height: 60px; border-radius: 14px; background: var(--ground); display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 8px 8px 8px 20px; }
.addr-box span { font-size: 18px; font-weight: 600; word-break: break-all; text-align: left; }
.addr-box button { width: 44px; height: 44px; border: 0; border-radius: 12px; background: #fff; color: var(--body); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.link-acc { font-size: 14px; font-weight: 500; color: var(--acc-d); }

/* ---------- terms ---------- */
.terms .wrap { display: flex; gap: 48px; align-items: flex-start; padding-top: 40px; padding-bottom: 60px; }
.toc { position: sticky; top: 24px; width: 280px; flex-shrink: 0; display: flex; flex-direction: column; gap: 2px; padding: 20px; border-radius: 24px; background: #fff; border: 1px solid var(--line); }
.toc a { display: block; padding: 8px 14px; border-radius: 10px; font-size: 15px; font-weight: 500; color: var(--body); }
.toc a:hover { background: var(--tint2); color: var(--acc-d); }
.doc { flex: 1; max-width: 880px; padding: 56px 64px; border-radius: 28px; background: #fff; border: 1px solid var(--line); display: flex; flex-direction: column; gap: 32px; }
.doc h1 { margin: 0 0 10px; font-size: 44px; font-weight: 700; letter-spacing: -0.03em; line-height: 1.1; }
.doc .updated { font-size: 15px; color: var(--muted); }
.doc section { scroll-margin-top: 24px; display: flex; flex-direction: column; gap: 12px; }
.doc h2 { margin: 0; font-family: 'Unbounded', 'Onest', sans-serif; font-size: 22px; font-weight: 600; letter-spacing: -0.02em; }
.doc p, .doc li { margin: 0; font-size: 17px; line-height: 1.7; color: var(--body); }
.doc ul { margin: 0; padding-left: 22px; display: flex; flex-direction: column; gap: 6px; }
.doc a { color: var(--acc-d); font-weight: 600; }
.doc .lead-p { font-size: 18px; color: var(--ink); }

/* ---------- 404 ---------- */
.nf { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 22px; padding: 20px 20px 80px; text-align: center; position: relative; }
.nf-art { position: relative; width: 420px; height: 220px; max-width: 100%; }
.nf .code { font-family: 'Unbounded', sans-serif; font-size: 18px; font-weight: 600; color: var(--acc-d); letter-spacing: .1em; }
.nf h1 { margin: 0; font-size: 44px; font-weight: 700; letter-spacing: -0.03em; line-height: 1.1; }
.nf p { margin: 0; font-size: 18px; color: var(--body); }
.nf .actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 8px; }

/* ---------- responsive ---------- */
@media (max-width: 1360px) {
  .wrap { padding: 0 48px; }
  .hero h1 { font-size: 64px; }
  .stage-box { width: 540px; height: 573px; }
  .stage { transform: scale(.818); }
  .mock-box { width: 640px; height: 520px; }
  .mock { transform: perspective(1800px) rotateX(8deg) rotateY(-12deg) scale(.84); transform-origin: 0 0; }
}
@media (max-width: 1100px) {
  .main-nav { display: none; }
  .hero .wrap { flex-direction: column; align-items: flex-start; min-height: 0; padding-top: 32px; }
  .hero-copy { width: 100%; }
  .stage-box { align-self: center; width: 480px; height: 509px; margin-top: -20px; }
  .stage { transform: scale(.727); }
  .section-head { flex-direction: column; align-items: flex-start; gap: 16px; }
  .features { grid-template-columns: 1fr; }
  .card { min-height: 0; }
  .split, .apps { flex-direction: column; align-items: stretch; gap: 32px; min-height: 0; }
  .split-copy, .apps-copy { width: 100%; }
  .mock-box { align-self: center; }
  .cta-art { display: none; }
  .auth-main { flex-direction: column; gap: 32px; align-items: center; }
  .auth-intro { width: 480px; max-width: 100%; }
  .toc { display: none; }
  .auth-main > .cloud { display: none; }
}
@media (max-width: 760px) {
  body { font-size: 15px; }
  .wrap { padding: 0 20px; }
  .site-header .wrap, .page-auth .site-header .wrap { height: 68px; padding: 0 16px 0 20px; }
  .brand-text { font-size: 18px; }
  .brand svg, .brand img { width: 32px; height: 32px; }
  .header-actions .btn-primary, .header-actions .lang { display: none; }
  .header-actions .btn { height: 40px; padding: 0 16px; font-size: 14px; }
  .menu-btn { display: flex; }
  .mobile-nav { position: absolute; top: 64px; right: 12px; left: 12px; padding: 12px; border-radius: 20px; background: #fff; box-shadow: var(--shadow-card); flex-direction: column; gap: 4px; z-index: 30; }
  .mobile-nav.open { display: flex; }
  .mobile-nav a { padding: 12px 14px; border-radius: 12px; font-weight: 500; }
  .mobile-nav a:hover { background: var(--ground); }
  .mobile-nav .lang { align-self: flex-start; margin: 8px 6px 4px; }
  .hero h1 { font-size: 40px; line-height: 1.06; }
  .lead { font-size: 17px; }
  .hero-copy { gap: 20px; }
  .claim { flex-wrap: wrap; height: auto; border-radius: 22px; padding: 10px; gap: 10px; }
  .claim input { height: 50px; padding: 0 14px; border-radius: 14px; background: var(--ground); font-size: 16px; flex: 1 1 0; }
  .claim .suffix { font-size: 15px; padding: 0 4px; }
  .claim .btn { width: 100%; border-radius: 14px; height: 50px; }
  .stage-box { width: 350px; height: 372px; margin: -10px auto 0; }
  .stage { transform: scale(.53); }
  .section { padding-top: 48px; }
  .h2 { font-size: 28px; line-height: 1.15; }
  .section-head { margin-bottom: 24px; }
  .section-head p, .text { font-size: 16px; }
  .card { padding: 24px; border-radius: 22px; flex-direction: row; align-items: flex-start; gap: 16px; }
  .icon-tile { width: 48px; height: 48px; border-radius: 16px; flex-shrink: 0; }
  .card h3 { font-size: 18px; margin-bottom: 6px; }
  .card p { font-size: 15px; }
  .mock-box { display: none; }
  .steps { flex-direction: column; gap: 24px; padding: 28px 24px; border-radius: 22px; }
  .apps-grid { grid-template-columns: 1fr; }
  .server { padding: 22px 22px 10px; }
  .cta { padding: 32px 24px; border-radius: 28px; min-height: 0; }
  .cta h2 { font-size: 26px; line-height: 1.15; }
  .cta-actions .btn { flex: 1 1 100%; }
  .site-footer .wrap > div { flex-direction: column; align-items: flex-start; }
  .auth-main { padding: 8px 16px 40px; }
  .auth-intro h1 { font-size: 32px; }
  .auth-intro .benefits { display: none; }
  .auth-card { padding: 28px 22px; border-radius: 24px; }
  .input-wrap .suffix { font-size: 14px; }
  .doc { padding: 32px 22px; border-radius: 22px; }
  .doc h1 { font-size: 32px; }
  .terms .wrap { padding-top: 16px; }
  .nf h1 { font-size: 32px; }
}
@media (max-width: 760px) { .trust .dot { display: none; } }
