:root {
  --teal: #16a097;
  --teal-600: #128a82;
  --teal-dark: #0e5f5a;
  --deep: #0d2a2a;
  --cream: #f7f2e7;
  --cream-2: #efe8d8;
  --ink: #15201f;
  --muted: #5a6664;
  --card: #ffffff;
  --line: #e4ddcc;
  --radius: 20px;
  --shadow: 0 18px 50px -20px rgba(13, 42, 42, 0.35);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; } }
body {
  margin: 0;
  font-family: Manrope, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color: var(--ink);
  background: var(--cream);
  line-height: 1.6;
  font-size: 16px;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--teal-dark); }
a:focus-visible, summary:focus-visible, .btn:focus-visible { outline: 3px solid var(--teal); outline-offset: 3px; border-radius: 8px; }
.wrap { width: min(1120px, 100% - 32px); margin-inline: auto; }
.skip { position: absolute; left: -999px; top: 8px; background: #fff; padding: 8px 12px; border-radius: 8px; z-index: 50; }
.skip:focus { left: 8px; }

/* Header */
.nav { position: sticky; top: 0; z-index: 20; background: rgba(247, 242, 231, 0.9); backdrop-filter: saturate(160%) blur(10px); border-bottom: 1px solid transparent; }
.nav-row { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.nav-links { display: flex; align-items: center; gap: 28px; font-weight: 700; font-size: 15px; }
.nav-links a:not(.btn) { color: var(--ink); text-decoration: none; }
.nav-links a:not(.btn):hover { color: var(--teal-dark); }
.nav-menu { display: none; position: relative; }
.nav-menu summary { list-style: none; cursor: pointer; width: 44px; height: 44px; display: grid; place-content: center; gap: 5px; border-radius: 12px; }
.nav-menu summary::-webkit-details-marker { display: none; }
.nav-menu summary span { display: block; width: 22px; height: 2px; background: var(--ink); border-radius: 2px; }
.nav-menu nav { position: absolute; right: 0; top: 52px; background: #fff; border-radius: 16px; box-shadow: var(--shadow); padding: 12px; display: grid; gap: 4px; min-width: 220px; }
.nav-menu nav a { padding: 10px 12px; border-radius: 10px; text-decoration: none; color: var(--ink); font-weight: 700; }
.nav-menu nav a:not(.btn):hover { background: var(--cream); }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; background: var(--teal); color: #fff; text-decoration: none; font-weight: 800; padding: 14px 22px; border-radius: 999px; border: 0; transition: background .15s, transform .15s; }
.btn:hover { background: var(--teal-600); transform: translateY(-1px); }
.btn svg { width: 20px; height: 20px; fill: currentColor; }
.btn-small { padding: 10px 18px; font-size: 14px; }
.btn-ghost { background: #fff; color: var(--ink); border: 1px solid var(--line); }
.btn-ghost:hover { background: #fff; border-color: var(--teal); }
.btn[aria-disabled="true"] { opacity: .7; pointer-events: none; }
.btn small { display: block; font-weight: 600; font-size: 11px; opacity: .85; line-height: 1.1; }
.btn .two-line { display: grid; text-align: left; line-height: 1.15; }

/* Hero */
.hero { padding: 56px 0 72px; background: radial-gradient(1200px 500px at 85% 10%, #d5fbf8 0%, rgba(213, 251, 248, 0) 60%), var(--cream); overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 48px; align-items: center; }
.eyebrow { color: var(--teal-dark); font-weight: 800; font-size: 13px; letter-spacing: .06em; text-transform: uppercase; margin: 0 0 12px; }
.eyebrow.center { text-align: center; }
.eyebrow.light { color: #8fe3dc; }
h1 { font-size: clamp(34px, 5.4vw, 58px); line-height: 1.05; letter-spacing: -0.02em; margin: 0 0 18px; font-weight: 800; }
.lead { font-size: clamp(17px, 2vw, 19px); color: var(--muted); margin: 0 0 28px; max-width: 560px; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; }
.cta-row.center { justify-content: center; }
.chips { list-style: none; padding: 0; margin: 28px 0 0; display: flex; flex-wrap: wrap; gap: 8px; }
.chips li { background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: 6px 12px; font-size: 13px; font-weight: 700; color: var(--teal-dark); }
.hero-phones { position: relative; height: 560px; }
.phone { width: 270px; border-radius: 40px; padding: 10px; background: #111; box-shadow: var(--shadow); }
.phone img { border-radius: 30px; width: 100%; }
.hero-phones .phone { position: absolute; }
.phone-front { left: 50%; top: 0; transform: translateX(-30%) rotate(3deg); z-index: 2; }
.phone-back { left: 50%; top: 60px; transform: translateX(-95%) rotate(-6deg); opacity: .95; }

/* Strip */
.strip { background: var(--deep); color: #fff; padding: 28px 0; }
.strip-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.strip strong { display: block; font-size: 24px; font-weight: 800; color: #8fe3dc; }
.strip span { font-size: 14px; color: #cfe5e2; }

/* Sections */
.section { padding: 88px 0; scroll-margin-top: 68px; }
.section.alt { background: var(--cream-2); }
.section-title { text-align: center; font-size: clamp(28px, 4vw, 40px); line-height: 1.15; margin: 0 0 40px; letter-spacing: -0.01em; }
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.card { background: var(--card); border-radius: var(--radius); padding: 26px; border: 1px solid var(--line); transition: transform .15s, box-shadow .15s; }
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.card h3 { margin: 14px 0 6px; font-size: 19px; }
.card p { margin: 0; color: var(--muted); }
.icon { width: 48px; height: 48px; border-radius: 14px; background: #e0f6f4; display: grid; place-items: center; }
.icon svg { width: 26px; height: 26px; fill: none; stroke: var(--teal-dark); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

.showcase { display: grid; grid-template-columns: 340px 1fr; gap: 64px; align-items: center; }
.showcase .phone { margin-inline: auto; }
.showcase.reverse { grid-template-columns: 1fr 340px; }
.showcase.reverse .phone { order: 2; }
.showcase-copy h2 { font-size: clamp(28px, 3.6vw, 40px); line-height: 1.12; margin: 0 0 14px; letter-spacing: -0.01em; }
.showcase-copy p { color: var(--muted); font-size: 17px; }
.ticks { list-style: none; padding: 0; margin: 20px 0 0; display: grid; gap: 10px; }
.ticks li { padding-left: 32px; position: relative; }
.ticks li::before { content: ""; position: absolute; left: 0; top: 3px; width: 20px; height: 20px; border-radius: 50%; background: var(--teal) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 12 4 4 8-8'/%3E%3C/svg%3E") center/14px no-repeat; }

.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; counter-reset: s; }
.steps li { background: #fff; border-radius: var(--radius); padding: 28px; border: 1px solid var(--line); }
.steps span { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--teal); color: #fff; font-weight: 800; }
.steps h3 { margin: 16px 0 6px; }
.steps p { margin: 0; color: var(--muted); }

.section.dark { background: var(--deep); color: #fff; }
.safety-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 48px; align-items: start; }
.safety-grid h2 { font-size: clamp(28px, 3.6vw, 40px); line-height: 1.12; margin: 0 0 14px; }
.safety-grid p { color: #cfe5e2; font-size: 17px; }
.safety-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.safety-list li { background: rgba(255, 255, 255, 0.06); border: 1px solid rgba(255, 255, 255, 0.12); border-radius: 16px; padding: 18px 20px; color: #e3f1ef; }
.safety-list strong { color: #fff; }

.download { background: linear-gradient(180deg, var(--cream) 0%, #e2f6f3 100%); }
.download-card { background: #fff; border-radius: 28px; padding: clamp(28px, 5vw, 56px); text-align: center; box-shadow: var(--shadow); max-width: 760px; }
.download-mark { margin: 0 auto 12px; }
.download-card h2 { font-size: clamp(28px, 4vw, 40px); margin: 0 0 8px; }
.download-card > p { color: var(--muted); margin: 0 0 24px; }
.apk-meta { margin-top: 22px; font-size: 13px; color: var(--muted); }
.apk-meta code { word-break: break-all; font-size: 12px; }
.apk-help { text-align: left; max-width: 520px; margin: 18px auto 0; font-size: 14px; color: var(--muted); }
.apk-help summary { cursor: pointer; font-weight: 700; color: var(--ink); }

.faq { max-width: 800px; }
.faq details { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 4px 20px; margin-bottom: 12px; }
.faq summary { cursor: pointer; font-weight: 800; padding: 14px 0; list-style: none; position: relative; padding-right: 28px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 0; top: 10px; font-size: 22px; color: var(--teal); }
.faq details[open] summary::after { content: "–"; }
.faq details p { margin: 0 0 16px; color: var(--muted); }

/* Document pages */
.doc { background: var(--card); border-radius: var(--radius); padding: clamp(22px, 4vw, 44px); max-width: 780px; margin: 40px auto; border: 1px solid var(--line); }
.doc h1 { font-size: clamp(28px, 4vw, 38px); }
.doc h2 { font-size: 19px; margin: 28px 0 6px; color: var(--teal-dark); }
.version { color: var(--muted); font-size: 14px; margin-top: 32px; }

/* Footer */
.foot { background: #0b2222; color: #cfe5e2; padding: 56px 0 28px; }
.foot a { color: #e3f1ef; text-decoration: none; display: block; margin: 6px 0; }
.foot a:hover { text-decoration: underline; }
.foot h2 { font-size: 14px; color: #fff; margin: 0 0 8px; text-transform: uppercase; letter-spacing: .06em; }
.foot img { filter: brightness(0) invert(1); opacity: .9; }
.foot-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 32px; }
.foot-note { border-top: 1px solid rgba(255, 255, 255, 0.12); margin-top: 32px; padding-top: 20px; font-size: 13px; color: #9fbab6; }

/* Tablet */
@media (max-width: 960px) {
  .nav-links { display: none; }
  .nav-menu { display: block; }
  .hero-grid, .safety-grid { grid-template-columns: 1fr; }
  .hero { padding-top: 32px; text-align: center; }
  .lead { margin-inline: auto; }
  .cta-row, .chips { justify-content: center; }
  .hero-phones { height: 470px; max-width: 420px; margin: 8px auto 0; width: 100%; }
  .hero-phones .phone { width: 220px; }
  .cards { grid-template-columns: repeat(2, 1fr); }
  .strip-grid { grid-template-columns: repeat(2, 1fr); }
  .showcase, .showcase.reverse { grid-template-columns: 1fr; gap: 32px; text-align: center; }
  .showcase.reverse .phone { order: 0; }
  .ticks { text-align: left; max-width: 460px; margin-inline: auto; }
  .steps { grid-template-columns: 1fr; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
}

/* Phone */
@media (max-width: 560px) {
  .section { padding: 64px 0; }
  .hero-phones { height: 400px; }
  .hero-phones .phone { width: 180px; border-radius: 32px; padding: 8px; }
  .hero-phones .phone img { border-radius: 24px; }
  .phone-back { top: 40px; transform: translateX(-88%) rotate(-6deg); }
  .phone-front { transform: translateX(-18%) rotate(3deg); }
  .showcase .phone { width: 240px; }
  .cards { grid-template-columns: 1fr; }
  .strip-grid { grid-template-columns: 1fr 1fr; gap: 18px; }
  .strip strong { font-size: 20px; }
  .cta-row .btn { width: 100%; }
  .foot-grid { grid-template-columns: 1fr; }
}
