:root {
  --ink: #1e2a2f;
  --dark: #334147;
  --dark-2: #2a363b;
  --yellow: #ffca00;
  --yellow-2: #f2b700;
  --muted: #5b6870;
  --line: #dde2e5;
  --bg: #f3f5f6;
  --card: #ffffff;
  --radius: 20px;
  --font: "Plus Jakarta Sans", "Helvetica Neue", Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }

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

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

a { color: var(--dark); text-decoration-color: var(--yellow); text-decoration-thickness: 2px; text-underline-offset: 3px; }
a:hover { color: #000; }

img { max-width: 100%; height: auto; }

.wrap { width: 100%; max-width: 1080px; margin: 0 auto; padding: 0 20px; }

.topbar { background: var(--card); border-bottom: 1px solid var(--line); }
.topbar .wrap { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.topbar .brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink); font-weight: 800; }
.topbar .brand img { height: 30px; width: auto; display: block; }
.topbar .brand span { padding-left: 12px; border-left: 2px solid var(--line); font-size: 15px; color: var(--muted); font-weight: 700; }
.topbar nav a { font-weight: 700; font-size: 14px; text-decoration: none; margin-left: 18px; }

.hero { background: radial-gradient(circle at 100% 0, var(--yellow) 0 160px, transparent 161px), var(--dark); color: #fff; padding: 56px 0 64px; position: relative; z-index: 2; }
.hero .wrap { position: relative; z-index: 1; }
.hero .eyebrow { color: var(--yellow); font-weight: 800; letter-spacing: 2px; text-transform: uppercase; font-size: 13px; }
.hero h1 { font-size: clamp(34px, 6vw, 54px); line-height: 1.05; margin: 12px 0 14px; letter-spacing: -1px; max-width: 640px; }
.hero h1 em { font-style: normal; color: var(--yellow); }
.hero p { color: #d5dadd; max-width: 560px; margin: 0; font-size: 17px; }

.search { margin-top: 28px; max-width: 620px; position: relative; }
.search input { width: 100%; font: inherit; font-size: 17px; padding: 18px 22px; border-radius: 16px; border: 3px solid var(--yellow); background: #fff; color: var(--ink); outline: none; }
.search input::placeholder { color: #8a959b; }
.search .results { position: absolute; left: 0; right: 0; top: calc(100% + 8px); background: #fff; border-radius: 16px; box-shadow: 0 18px 40px rgba(0,0,0,0.22); overflow: hidden; display: none; z-index: 5; }
.search .results a { display: block; padding: 14px 20px; color: var(--ink); text-decoration: none; border-bottom: 1px solid var(--line); }
.search .results a:last-child { border-bottom: 0; }
.search .results a:hover, .search .results a.active { background: var(--yellow); }
.search .results small { display: block; color: var(--muted); font-size: 13px; }
.search .results .empty { padding: 14px 20px; color: var(--muted); }

.section-title { font-size: 26px; letter-spacing: -0.5px; margin: 48px 0 18px; }

.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 16px; }
.tile { background: var(--card); border-radius: var(--radius); padding: 22px; text-decoration: none; color: var(--ink); border: 2px solid transparent; transition: transform 0.15s ease, border-color 0.15s ease; display: flex; flex-direction: column; gap: 6px; }
.tile:hover { transform: translateY(-2px); border-color: var(--yellow); color: var(--ink); }
.tile .num { width: 40px; height: 40px; border-radius: 12px; background: var(--dark); color: var(--yellow); display: flex; align-items: center; justify-content: center; font-weight: 800; margin-bottom: 8px; }
.tile strong { font-size: 17px; }
.tile span { color: var(--muted); font-size: 14px; line-height: 1.5; }
.tile.new { background: var(--yellow); }
.tile.new span { color: var(--dark); }
.tile.new .num { background: var(--dark); }

.contact { background: var(--dark); color: #fff; border-radius: var(--radius); padding: 28px; margin: 48px 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 18px; }
.contact h3 { margin: 0 0 4px; color: var(--yellow); font-size: 14px; letter-spacing: 1px; text-transform: uppercase; }
.contact a, .contact p { color: #fff; margin: 0; font-weight: 700; text-decoration: none; }
.contact .lead { grid-column: 1 / -1; font-size: 20px; font-weight: 800; }

.page-head { background: var(--dark); color: #fff; padding: 36px 0 40px; }
.crumbs { font-size: 14px; color: #b9c1c5; }
.crumbs a { color: #b9c1c5; }
.page-head h1 { font-size: clamp(30px, 5vw, 44px); line-height: 1.1; margin: 10px 0 10px; letter-spacing: -0.8px; }
.page-head p { color: #d5dadd; margin: 0; max-width: 680px; font-size: 17px; }
.badges { margin-top: 14px; display: flex; flex-wrap: wrap; gap: 8px; }
.badge { display: inline-block; padding: 5px 12px; border-radius: 999px; border: 2px solid var(--yellow); color: #fff; font-size: 13px; font-weight: 700; }

.layout { display: grid; grid-template-columns: 220px 1fr; gap: 36px; padding: 36px 0 20px; }
.toc { position: sticky; top: 20px; align-self: start; font-size: 14px; }
.toc strong { display: block; font-size: 12px; letter-spacing: 1px; text-transform: uppercase; color: var(--muted); margin-bottom: 8px; }
.toc a { display: block; padding: 6px 0 6px 12px; border-left: 3px solid var(--line); text-decoration: none; color: var(--ink); }
.toc a:hover { border-left-color: var(--yellow); }

article { min-width: 0; }
article h2 { font-size: 24px; letter-spacing: -0.4px; margin: 8px 0 14px; scroll-margin-top: 20px; }
article section { background: var(--card); border-radius: var(--radius); padding: 28px; margin-bottom: 20px; }
article p { margin: 0 0 14px; }
article ul { margin: 0 0 14px; padding-left: 22px; }
article li { margin-bottom: 6px; }

.steps { list-style: none; padding: 0; margin: 0; counter-reset: step; }
.steps > li { counter-increment: step; display: grid; grid-template-columns: 44px 1fr; gap: 14px; padding: 16px 0; border-top: 1px solid var(--line); margin: 0; }
.steps > li:first-child { border-top: 0; padding-top: 4px; }
.steps > li::before { content: counter(step); width: 40px; height: 40px; border-radius: 50%; background: var(--yellow); color: var(--dark); display: flex; align-items: center; justify-content: center; font-weight: 800; }
.steps .shot { margin-top: 12px; }
.shot img { width: 230px; max-width: 100%; border-radius: 22px; border: 6px solid var(--dark); display: block; background: var(--dark); }
.shot img.wide { width: 420px; border-radius: 16px; border-width: 4px; }
.shots { display: flex; flex-wrap: wrap; gap: 14px; }

.note { border-radius: 14px; padding: 16px 18px; margin: 4px 0 14px; background: var(--dark); color: #fff; }
.note strong { color: var(--yellow); }
.note.yellow { background: var(--yellow); color: var(--dark); }
.note.yellow strong { color: var(--dark); }
.note a { color: inherit; }

.ui { display: inline-block; padding: 1px 8px; border-radius: 6px; background: #eef0f2; border: 1px solid var(--line); font-weight: 700; font-size: 0.92em; white-space: nowrap; }

details { border-top: 1px solid var(--line); padding: 14px 0; }
details:first-of-type { border-top: 0; }
summary { cursor: pointer; font-weight: 800; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
summary::after { content: "+"; color: var(--dark); background: var(--yellow); border-radius: 8px; width: 26px; height: 26px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
details[open] summary::after { content: "\2212"; }
summary::-webkit-details-marker { display: none; }
details > div { padding-top: 10px; color: var(--ink); }

.related { display: flex; flex-wrap: wrap; gap: 10px; }
.related a { background: var(--card); border: 2px solid var(--line); border-radius: 999px; padding: 8px 16px; text-decoration: none; font-weight: 700; font-size: 14px; }
.related a:hover { border-color: var(--yellow); }

footer { color: var(--muted); font-size: 13px; padding: 10px 0 40px; }

@media (max-width: 820px) {
  .layout { grid-template-columns: 1fr; gap: 0; padding-top: 20px; }
  .toc { display: none; }
  article section { padding: 20px; }
  .hero { background: radial-gradient(circle at 100% 0, var(--yellow) 0 90px, transparent 91px), var(--dark); }
  .topbar nav a.hide-sm { display: none; }
  .topbar .brand span { display: none; }
}

.only-ios { display: none; }
html[data-platform="ios"] .only-ios { display: inline; }
html[data-platform="ios"] div.only-ios { display: block; }
html[data-platform="ios"] .only-android { display: none; }
.platform { margin-top: 18px; display: inline-flex; background: var(--dark-2); border-radius: 999px; padding: 4px; gap: 4px; }
.platform button { font: inherit; font-weight: 800; font-size: 14px; border: 0; border-radius: 999px; padding: 8px 18px; background: transparent; color: #d5dadd; cursor: pointer; }
html:not([data-platform="ios"]) .platform button[data-set="android"], html[data-platform="ios"] .platform button[data-set="ios"] { background: var(--yellow); color: var(--dark); }
html[data-platform="ios"] li.only-ios { display: grid; }
