:root {
  --navy: #1a1a2e;
  --amber: #E8A317;
  --amber-ink: #8a5d00;
  --bg: #f5f5f7;
  --card: #ffffff;
  --text: #1a1a2e;
  --muted: #5c5c6e;
  --line: #e2e2e8;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #12121f;
    --card: #1c1c30;
    --text: #ececf3;
    --muted: #a3a3b8;
    --line: #2c2c44;
    --amber-ink: #f2bd4b;
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.6 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
body > main { flex: 1; width: 100%; }
a { color: var(--amber-ink); }
.wrap { max-width: 880px; margin: 0 auto; padding: 0 20px; }

header.top { padding: 20px 0; }
header.top .wrap { display: flex; align-items: center; gap: 10px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; font-weight: 700; letter-spacing: .2px; }
.brand img { width: 28px; height: 28px; }

.hero {
  background: var(--navy);
  color: #fff;
  border-radius: 24px;
  padding: 56px 32px;
  position: relative;
  overflow: hidden;
}
.hero .spool { position: absolute; right: -60px; top: -60px; width: 280px; opacity: .18; }
.hero h1 { font-size: clamp(2rem, 6vw, 3.2rem); line-height: 1.1; margin: 0 0 12px; position: relative; }
.hero p { font-size: 1.15rem; color: #d4d4e2; max-width: 34em; margin: 0 0 24px; position: relative; }
.pill {
  display: inline-block;
  background: var(--amber);
  color: var(--navy);
  font-weight: 700;
  padding: 8px 16px;
  border-radius: 999px;
  position: relative;
}

.features { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; margin: 32px 0; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 20px; }
.card h3 { margin: 0 0 6px; font-size: 1.05rem; }
.card p { margin: 0; color: var(--muted); font-size: .95rem; }
.dot { display: inline-block; width: 10px; height: 10px; border-radius: 50%; margin-right: 8px; vertical-align: 1px; }

.apple {
  border: 2px dashed var(--line);
  border-radius: 16px;
  padding: 20px 24px;
  margin: 0 0 32px;
}
.apple h2 { margin: 0 0 6px; font-size: 1.1rem; }
.apple p { margin: 0; color: var(--muted); }

footer { border-top: 1px solid var(--line); padding: 14px 0 18px; color: var(--muted); font-size: .8rem; }
.foot { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 18px; }
.foot nav { display: flex; gap: 14px; margin-left: auto; }
.foot a { color: var(--muted); text-decoration: none; }
.foot a:hover { color: var(--amber-ink); text-decoration: underline; }

.doc { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 32px; margin-bottom: 32px; }
.doc h1 { margin-top: 0; line-height: 1.2; }
.doc h2 { font-size: 1.2rem; margin-top: 2em; }
.doc .updated { color: var(--muted); margin-top: -8px; }
.doc li { margin-bottom: 6px; }

@media (max-width: 560px) {
  .wrap { padding: 0 16px; }
  .hero { padding: 40px 20px; border-radius: 18px; }
  .hero .spool { width: 170px; right: -70px; top: -70px; }
  .doc { padding: 20px; }
  footer { font-size: .75rem; }
  .foot details.notice { order: 5; flex-basis: 100%; }
}

.toolbar { margin: 0 0 8px; }
.toolbar button {
  font: inherit; font-size: .9rem; font-weight: 600;
  color: var(--amber-ink); background: none;
  border: 1px solid var(--line); border-radius: 999px;
  padding: 6px 14px; cursor: pointer;
}
details.sec { border-top: 1px solid var(--line); }
details.sec > summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 0; }
details.sec > summary::-webkit-details-marker { display: none; }
details.sec > summary h2 { margin: 0; }
details.sec > summary::after { content: "+"; font-size: 1.4rem; line-height: 1; color: var(--muted); }
details.sec[open] > summary::after { content: "\2212"; }
details.sec[open] { padding-bottom: 8px; }
.doc .toolbar + details.sec { margin-top: 8px; }

details.notice > summary { cursor: pointer; list-style: none; }
details.notice > summary::-webkit-details-marker { display: none; }
details.notice > summary::after { content: " \25B8"; }
details.notice[open] { order: 10; flex-basis: 100%; }
details.notice[open] > summary::after { content: " \25BE"; }
details.notice > summary:hover { color: var(--text); }
details.notice p { margin: 6px 0 0; line-height: 1.5; }
