:root {
  --bg: #F4F9FF;
  --surface: #FFFFFF;
  --accent: #BFE3F8;
  --text: #1B2430;
  --muted: #74818F;
  --border: #E1EDF7;
  --pink: #F7C6DB;
  --pink-bg: #FFF7FA;
  --radius: 16px;
  --max: 1040px;
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 17px/1.6 var(--font);
  overflow-wrap: break-word;
}

a { color: inherit; }
img, svg { max-width: 100%; height: auto; }

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

/* Header */
.site-header { padding: 18px 0; }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; font-size: 1.15rem; text-decoration: none; }
.brand img { width: 34px; height: 34px; }
.lang-switch {
  font-size: .9rem; font-weight: 600; text-decoration: none;
  padding: 6px 12px; border: 1px solid var(--border); border-radius: 999px; background: var(--surface);
}
.lang-switch:hover { border-color: var(--accent); }

/* Hero */
.hero { padding: 32px 0 56px; }
.hero .wrap { display: grid; grid-template-columns: 1.3fr 1fr; gap: 40px; align-items: center; }
.hero h1 { font-size: clamp(2rem, 5vw, 3.1rem); line-height: 1.12; margin: 0 0 16px; letter-spacing: -.02em; }
.hero p.lead { font-size: 1.15rem; color: var(--muted); margin: 0 0 28px; max-width: 34em; }

.phone {
  justify-self: center; width: min(260px, 70vw); aspect-ratio: 9 / 18.5;
  border-radius: 38px; border: 10px solid var(--text);
  background: linear-gradient(160deg, var(--accent), var(--pink-bg) 55%, var(--pink));
  box-shadow: 0 24px 60px rgba(27, 36, 48, .18);
  display: grid; place-items: center; font-size: 4.5rem;
}

/* Buttons */
.btn-play {
  display: inline-flex; align-items: center; gap: 10px;
  background: var(--text); color: #fff; text-decoration: none; font-weight: 600;
  padding: 14px 22px; border-radius: 12px; border: 0;
}
.btn-play[aria-disabled="true"] { opacity: .75; cursor: default; }
.btn-play svg { width: 22px; height: 22px; fill: currentColor; }

/* Sections */
section { padding: 48px 0; }
h2 { font-size: clamp(1.5rem, 3.5vw, 2rem); line-height: 1.2; margin: 0 0 12px; letter-spacing: -.01em; }
.section-intro { color: var(--muted); margin: 0 0 32px; max-width: 40em; }

.highlight {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 28px; display: grid; grid-template-columns: auto 1fr; gap: 20px; align-items: start;
}
.highlight .icon { font-size: 2.2rem; line-height: 1; }
.highlight h2 { font-size: 1.4rem; }
.highlight p { margin: 0 0 8px; }

.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.feature { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 22px; }
.feature .icon { font-size: 1.7rem; }
.feature h3 { font-size: 1.05rem; margin: 10px 0 6px; }
.feature p { margin: 0; color: var(--muted); font-size: .97rem; }

.plus { background: var(--pink-bg); border: 1px solid var(--pink); border-radius: var(--radius); padding: 28px; }
.plus p { margin: 0; }

.cta { text-align: center; }
.cta p { color: var(--muted); }

/* Documents (legal pages, guide) */
.doc { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 32px clamp(20px, 5vw, 48px); margin: 8px 0 48px; }
.doc h1 { font-size: clamp(1.8rem, 4.5vw, 2.4rem); line-height: 1.15; margin: 0 0 6px; }
.doc .updated { color: var(--muted); font-size: .95rem; margin: 0 0 24px; }
.doc section { padding: 20px 0 4px; border-top: 1px solid var(--border); }
.doc section:first-of-type { border-top: 0; }
.doc h2 { font-size: 1.3rem; }
.doc li { margin: 4px 0; }
.doc .summary { background: var(--bg); border-radius: 12px; padding: 18px 22px; border: 0; }
.toc { columns: 2; padding-left: 20px; }

/* Footer */
.site-footer { border-top: 1px solid var(--border); padding: 32px 0 40px; color: var(--muted); font-size: .92rem; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 8px 20px; margin-bottom: 14px; }
.site-footer nav a { text-decoration: none; color: var(--text); }
.site-footer nav a:hover { text-decoration: underline; }
.site-footer p { margin: 4px 0; }

@media (max-width: 820px) {
  .hero .wrap { grid-template-columns: 1fr; }
  .features { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  body { font-size: 16px; }
  .features { grid-template-columns: 1fr; }
  .highlight { grid-template-columns: 1fr; }
  .toc { columns: 1; }
}
.phone img { width: 44%; border-radius: 24%; box-shadow: 0 10px 30px rgba(232, 106, 158, .35); }

/* Guide: topic cards, search, fold-out topics, small screenshots with tap-to-zoom */
.guide h3 { font-size: 1.05rem; margin: 22px 0 6px; }
.guide .path { color: var(--muted); font-size: .95rem; margin-top: 0; }
.guide .toc {
  columns: auto; padding: 0; margin: 8px 0 20px;
  display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px;
}
.guide .topic {
  display: flex; align-items: center; gap: 10px; padding: 12px 14px;
  text-decoration: none; font-weight: 600; font-size: .95rem;
  background: var(--bg); border: 1px solid var(--border); border-radius: 14px;
  transition: border-color .15s, transform .15s;
}
.guide .topic:hover, .guide .topic:focus-visible { border-color: var(--accent); transform: translateY(-1px); }
.guide .topic[hidden] { display: none; }
.guide .ti { font-size: 1.4rem; line-height: 1; }

.guide-tools { display: flex; gap: 10px; margin: 0 0 12px; }
.guide-tools input {
  flex: 1; min-width: 0; font: inherit; padding: 10px 16px;
  border: 1px solid var(--border); border-radius: 999px; background: var(--surface); color: var(--text);
}
.guide-tools input:focus { outline: 2px solid var(--accent); border-color: var(--accent); }
.guide-tools button {
  font: inherit; font-size: .9rem; font-weight: 600; padding: 8px 16px; cursor: pointer;
  border: 1px solid var(--border); border-radius: 999px; background: var(--surface); color: var(--text);
}
.guide-empty { color: var(--muted); }

.guide section { padding: 0; border-top: 1px solid var(--border); scroll-margin-top: 12px; }
.guide section[hidden] { display: none; }
.guide details > summary { list-style: none; cursor: pointer; display: flex; align-items: center; gap: 12px; padding: 16px 4px; }
.guide details > summary::-webkit-details-marker { display: none; }
.guide details > summary::after {
  content: ""; margin-left: auto; margin-right: 6px; width: 9px; height: 9px; flex: none;
  border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted); transform: rotate(-45deg); transition: transform .2s;
}
.guide details[open] > summary::after { transform: rotate(45deg); }
.guide details > summary h2 { font-size: 1.2rem; margin: 0; }
.guide details > summary:hover h2 { text-decoration: underline; text-decoration-color: var(--accent); }
.guide details[open] { padding-bottom: 12px; }

.guide .shots { display: flex; flex-wrap: wrap; gap: 10px; margin: 12px 0; }
.guide .shots img {
  width: 150px; max-width: 100%; cursor: zoom-in;
  border: 1px solid var(--border); border-radius: 14px; background: var(--bg);
  transition: transform .15s, box-shadow .15s;
}
.guide .shots img:hover, .guide .shots img:focus-visible { transform: scale(1.03); box-shadow: 0 8px 20px rgba(27, 36, 48, .15); outline: none; }
.guide table { width: 100%; border-collapse: collapse; margin: 12px 0; font-size: .95rem; }
.guide th, .guide td { text-align: left; padding: 8px 10px; border-bottom: 1px solid var(--border); vertical-align: top; }
.guide .to-top { font-size: .9rem; margin-top: 18px; }
.guide .to-top a { color: var(--muted); }

.zoom { border: 0; padding: 16px 60px 12px; background: transparent; max-width: 100vw; max-height: 100vh; text-align: center; }
.zoom::backdrop { background: rgba(27, 36, 48, .85); }
.zoom img { max-height: 80vh; max-width: min(420px, 80vw); border-radius: 18px; display: block; margin: 0 auto; }
.zoom-caption { color: #fff; font-size: .95rem; margin: 10px auto 0; max-width: 420px; }
.zoom button {
  position: absolute; width: 44px; height: 44px; border: 0; border-radius: 999px; cursor: pointer;
  background: rgba(255, 255, 255, .92); color: var(--text); font-size: 1.6rem; line-height: 1;
}
.zoom .zoom-close { top: 8px; right: 8px; font-size: 1.1rem; }
.zoom .zoom-prev { left: 8px; top: 45%; }
.zoom .zoom-next { right: 8px; top: 45%; }
.zoom button[hidden] { display: none; }

@media (max-width: 560px) {
  .guide .toc { grid-template-columns: 1fr 1fr; }
  .guide .shots img { width: calc(33.3% - 7px); }
  .zoom { padding: 60px 8px 64px; }
  .zoom .zoom-prev, .zoom .zoom-next { top: auto; bottom: 8px; }
  .zoom .zoom-prev { left: calc(50% - 52px); }
  .zoom .zoom-next { right: calc(50% - 52px); }
}
