/* ==========================================================================
   TokoKartu — PT Kartu Digital Indonesia
   Brand: Signal Red #FF0000 · Core Black #020000 · Pure White #FFFEFE
   Type:  Tektur (display) · Rethink Sans (body)
   ========================================================================== */

/* ---------- 1. Tokens ---------- */
:root {
  --red:        #FF0000;
  --red-700:    #C80C09;
  --red-900:    #680805;
  --red-950:    #3A0302;
  --black:      #020000;
  --white:      #FFFEFE;

  --bg:         #020000;
  --bg-raise:   #0B0808;
  --bg-card:    #100C0C;
  --line:       rgba(255,255,255,.09);
  --line-soft:  rgba(255,255,255,.055);

  --txt:        #FFFEFE;
  --txt-2:      rgba(255,254,254,.66);
  --txt-3:      rgba(255,254,254,.42);

  --display: "Tektur", "Arial Narrow", system-ui, sans-serif;
  --body: "Rethink Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;

  --max: 1180px;
  --pad: clamp(20px, 5vw, 40px);
  --r: 16px;
  --r-lg: 24px;

  --ease: cubic-bezier(.22,.61,.36,1);
}

/* ---------- 2. Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--txt);
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, select { font: inherit; color: inherit; }
::selection { background: var(--red); color: var(--white); }

/* ---------- 3. Language switching ---------- */
html[data-lang="id"] [data-lang="en"],
html[data-lang="en"] [data-lang="id"] { display: none !important; }

/* ---------- 4. Layout helpers ---------- */
.wrap { width: 100%; max-width: var(--max); margin-inline: auto; padding-inline: var(--pad); }
.section { padding-block: clamp(56px, 7vw, 92px); position: relative; }
.section--line { border-top: 1px solid var(--line-soft); }

.eyebrow {
  font-family: var(--display);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 18px;
}
.eyebrow--muted { color: var(--txt-3); }

h1, h2, h3, h4 { font-family: var(--display); font-weight: 700; line-height: 1.06; letter-spacing: -.01em; }
h2 { font-size: clamp(30px, 4.4vw, 50px); }
h3 { font-size: clamp(19px, 2vw, 23px); line-height: 1.2; }
.lede { font-size: clamp(16px, 1.5vw, 18.5px); color: var(--txt-2); max-width: 62ch; margin-top: 20px; }

/* ---------- 5. Header ---------- */
.header {
  position: sticky; top: 0; z-index: 90;
  background: rgba(2,0,0,.78);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid var(--line-soft);
}
.header__in { display: flex; align-items: center; gap: 16px; height: 66px; }
.header__logo img { height: 34px; width: auto; }
.header__spacer { flex: 1; }

.langswitch {
  display: inline-flex; padding: 3px; gap: 2px;
  border: 1px solid var(--line); border-radius: 999px; background: rgba(255,255,255,.03);
}
.langswitch button {
  border: 0; background: transparent; cursor: pointer;
  font-family: var(--display); font-size: 11.5px; font-weight: 600; letter-spacing: .09em;
  color: var(--txt-3); padding: 5px 12px; border-radius: 999px;
  transition: color .18s var(--ease), background .18s var(--ease);
}
.langswitch button:hover { color: var(--txt); }
html[data-lang="id"] .langswitch [data-set="id"],
html[data-lang="en"] .langswitch [data-set="en"] { background: var(--white); color: var(--black); }

/* ---------- 6. Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  font-family: var(--display); font-weight: 600; font-size: 14px; letter-spacing: .02em;
  padding: 13px 22px; border-radius: 11px; border: 1px solid transparent;
  cursor: pointer; white-space: nowrap;
  transition: transform .16s var(--ease), background .18s var(--ease), border-color .18s var(--ease), box-shadow .18s var(--ease);
}
.btn:active { transform: translateY(1px); }
.btn--primary { background: var(--red); color: var(--white); box-shadow: 0 6px 26px -8px rgba(255,0,0,.75); }
.btn--primary:hover { background: #ff2323; box-shadow: 0 10px 34px -8px rgba(255,0,0,.9); }
.btn--ghost { border-color: var(--line); color: var(--txt); background: rgba(255,255,255,.02); }
.btn--ghost:hover { border-color: rgba(255,255,255,.28); background: rgba(255,255,255,.05); }
.btn--sm { padding: 9px 16px; font-size: 12.5px; border-radius: 9px; }

/* ---------- 7. Hero ---------- */
.hero { position: relative; overflow: hidden; padding-block: clamp(48px, 6vw, 84px) clamp(40px, 4.5vw, 60px); }
.hero::before {
  content: ""; position: absolute; inset: -30% -20% auto -20%; height: 150%;
  background:
    radial-gradient(58% 46% at 50% 108%, rgba(255,0,0,.42) 0%, rgba(255,0,0,.12) 38%, transparent 68%),
    radial-gradient(38% 30% at 82% 12%, rgba(200,12,9,.20) 0%, transparent 62%);
  pointer-events: none;
  animation: breathe 9s ease-in-out infinite alternate;
}
.hero::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image: linear-gradient(var(--line-soft) 1px, transparent 1px), linear-gradient(90deg, var(--line-soft) 1px, transparent 1px);
  background-size: 66px 66px;
  mask-image: radial-gradient(70% 55% at 50% 40%, #000 0%, transparent 78%);
  -webkit-mask-image: radial-gradient(70% 55% at 50% 40%, #000 0%, transparent 78%);
  opacity: .55;
}
@keyframes breathe { from { opacity: .75; } to { opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .hero::before { animation: none; } }

.hero__in { position: relative; z-index: 1; }
.hero__grid { display: grid; gap: clamp(44px, 6vw, 72px); grid-template-columns: 1fr; align-items: center; }
@media (min-width: 1000px) { .hero__grid { grid-template-columns: minmax(0,1.08fr) minmax(0,.92fr); } }

.badge {
  display: inline-flex; align-items: center; gap: 9px;
  border: 1px solid rgba(255,0,0,.32); background: rgba(255,0,0,.07);
  padding: 6px 14px 6px 9px; border-radius: 999px;
  font-size: 12.5px; color: rgba(255,254,254,.86); letter-spacing: .01em;
}
.badge .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--red); box-shadow: 0 0 0 0 rgba(255,0,0,.6); animation: pulse 2.4s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 7px rgba(255,0,0,0); } 100% { box-shadow: 0 0 0 0 rgba(255,0,0,0); } }

.hero h1 {
  font-size: clamp(38px, 5.6vw, 60px);
  margin-top: 24px;
  text-wrap: balance;
}
.hero h1 .accent { color: var(--red); }
.hero__lede { font-size: clamp(16.5px, 1.7vw, 19px); color: var(--txt-2); margin-top: 22px; max-width: 52ch; }

/* ---------- 8. Waitlist form ---------- */
.waitlist { margin-top: 34px; max-width: 520px; }
.waitlist__row { display: flex; gap: 10px; flex-wrap: wrap; }
.waitlist__row .field { flex: 1 1 220px; min-width: 0; }
.field input, .field select {
  width: 100%; background: rgba(255,255,255,.045); border: 1px solid var(--line);
  border-radius: 11px; padding: 13px 15px; color: var(--txt); font-size: 15px;
  transition: border-color .18s var(--ease), background .18s var(--ease);
}
.field input::placeholder { color: var(--txt-3); }
.field input:focus, .field select:focus { outline: none; border-color: rgba(255,0,0,.6); background: rgba(255,255,255,.06); }
.field select option { background: #14100f; color: var(--white); }
.waitlist__roles { display: flex; gap: 8px; margin-bottom: 10px; flex-wrap: wrap; }
.roletag { position: relative; }
.roletag input { position: absolute; opacity: 0; pointer-events: none; }
.roletag span {
  display: block; cursor: pointer; user-select: none;
  border: 1px solid var(--line); border-radius: 999px; padding: 7px 15px;
  font-size: 13px; color: var(--txt-2);
  transition: all .18s var(--ease);
}
/* `~` not `+` — the label holds an ID span and an EN span, so the checked
   state must reach whichever one the language switch is showing. */
.roletag input:checked ~ span { border-color: var(--red); background: rgba(255,0,0,.12); color: var(--white); }
.roletag input:focus-visible ~ span { outline: 2px solid var(--red); outline-offset: 2px; }
.waitlist__note { font-size: 12.5px; color: var(--txt-3); margin-top: 12px; line-height: 1.55; }
.waitlist__note a { color: var(--txt-2); text-decoration: underline; text-underline-offset: 2px; }
.formmsg { margin-top: 14px; font-size: 14px; display: none; border-radius: 11px; padding: 13px 15px; }
.formmsg.ok { display: block; background: rgba(255,0,0,.09); border: 1px solid rgba(255,0,0,.3); }
.formmsg.err { display: block; background: rgba(255,255,255,.05); border: 1px solid var(--line); color: var(--txt-2); }

/* ---------- 9. Phone mockup ---------- */
.phonewrap { position: relative; display: flex; justify-content: center; perspective: 1400px; }
.phonewrap::before {
  content: ""; position: absolute; width: 78%; height: 72%; top: 14%;
  background: radial-gradient(circle, rgba(255,0,0,.30), transparent 68%); filter: blur(46px);
}
.phone {
  position: relative; width: min(320px, 84vw); border-radius: 40px;
  background: #0a0808; border: 1px solid rgba(255,255,255,.14);
  padding: 9px; box-shadow: 0 44px 90px -32px rgba(0,0,0,.95), inset 0 0 0 1px rgba(255,255,255,.04);
}
.phone__screen { background: #F4F4F5; border-radius: 32px; overflow: hidden; color: #111; font-size: 12px; line-height: 1.4; }
.phone__notch { position: absolute; top: 15px; left: 50%; transform: translateX(-50%); width: 92px; height: 20px; background: #0a0808; border-radius: 999px; z-index: 3; }

.app__top { padding: 34px 14px 10px; background: #fff; display: flex; align-items: center; gap: 10px; }
.app__search { flex: 1; display: flex; align-items: center; gap: 7px; background: #fff; border: 1px solid #E4E4E7; border-radius: 999px; padding: 8px 13px; color: #9b9ba1; font-size: 11.5px; }
.app__ic { width: 15px; height: 15px; stroke: #3f3f46; fill: none; stroke-width: 1.9; flex: none; }
.app__bell { position: relative; }
.app__badge { position: absolute; top: -5px; right: -6px; background: var(--red); color: #fff; font-size: 8px; font-weight: 700; min-width: 14px; height: 14px; border-radius: 999px; display: grid; place-items: center; padding: 0 3px; }

.app__body { padding: 4px 14px 10px; background: #F4F4F5; max-height: 430px; overflow: hidden; }
.app__h { font-family: var(--display); font-size: 9.5px; font-weight: 700; letter-spacing: .13em; color: #52525b; margin: 14px 0 3px; }
.app__sub { font-size: 10px; color: #8a8a92; margin-bottom: 9px; }
.app__tabs { display: flex; gap: 6px; margin-bottom: 9px; }
.app__tab { font-size: 10.5px; padding: 5px 14px; border-radius: 999px; background: #E4E4E7; color: #52525b; font-weight: 500; }
.app__tab.on { background: #18181b; color: #fff; }

.app__task { display: flex; align-items: center; gap: 9px; background: #fff; border: 1px solid #ECECEE; border-radius: 11px; padding: 9px 10px; margin-bottom: 6px; }
.app__taskic { width: 27px; height: 27px; border-radius: 8px; background: #F4F4F5; display: grid; place-items: center; flex: none; }
.app__taskic svg { width: 14px; height: 14px; stroke: #3f3f46; fill: none; stroke-width: 1.8; }
.app__tasktxt { flex: 1; min-width: 0; }
.app__tasktxt b { display: block; font-size: 11px; font-weight: 600; color: #18181b; }
.app__tasktxt i { display: block; font-style: normal; font-size: 9.5px; color: #a1a1aa; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.app__count { background: var(--red); color: #fff; font-size: 8.5px; font-weight: 700; width: 15px; height: 15px; border-radius: 999px; display: grid; place-items: center; flex: none; }
.app__chev { color: #c4c4c8; font-size: 12px; flex: none; }

.app__games { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.app__game { aspect-ratio: 1/1.06; background: #fff; border: 1px solid #ECECEE; border-radius: 10px; display: grid; place-items: center; text-align: center; padding: 4px; }
.app__game span { font-family: var(--display); font-size: 8px; font-weight: 700; line-height: 1.15; letter-spacing: -.01em; }
.app__game.g1 span { color: #2A5CAA; }
.app__game.g2 span { color: #1c1c1e; }
.app__game.g3 span { color: var(--red); }
.app__game.g4 { background: #DEDEE1; }
.app__game.g4 span { color: #9a9aa1; }

.app__rowhead { display: flex; align-items: baseline; justify-content: space-between; }
.app__see { font-size: 9.5px; color: #71717a; }
.app__cards { display: grid; grid-template-columns: repeat(2, 1fr) 26px; gap: 7px; }
.app__card { aspect-ratio: 3/4.1; border-radius: 10px; position: relative; }
.app__card:nth-child(1) { background: linear-gradient(150deg, #E8A33D, #B8721E); }
.app__card:nth-child(2) { background: linear-gradient(150deg, #3C6FB5, #23477E); }
.app__card:nth-child(3) { background: linear-gradient(150deg, #6E6E76, #46464C); }
.app__heart { position: absolute; top: 5px; right: 5px; width: 16px; height: 16px; border-radius: 999px; background: rgba(255,255,255,.9); display: grid; place-items: center; }
.app__heart svg { width: 9px; height: 9px; stroke: #52525b; fill: none; stroke-width: 2; }

.app__nav { display: grid; grid-template-columns: repeat(5,1fr); background: #fff; border-top: 1px solid #ECECEE; padding: 8px 4px 12px; }
.app__navi { display: grid; justify-items: center; gap: 3px; font-size: 8.5px; color: #a1a1aa; }
.app__navi svg { width: 16px; height: 16px; stroke: #a1a1aa; fill: none; stroke-width: 1.8; }
.app__navi.on { color: #18181b; font-weight: 600; }
.app__navi.on svg { stroke: #18181b; }

.phone__cap { text-align: center; font-size: 12px; color: var(--txt-3); margin-top: 20px; }

/* ---------- 10. USP strip (3-up, with brand icons) ---------- */
.usps { display: grid; gap: 14px; grid-template-columns: 1fr; margin-top: clamp(48px, 6vw, 76px); }
@media (min-width: 820px) { .usps { grid-template-columns: repeat(3, 1fr); } }

.usp {
  position: relative; overflow: hidden;
  background: var(--bg-card); border: 1px solid var(--line-soft);
  border-radius: var(--r-lg); padding: 30px 28px 32px;
  transition: border-color .24s var(--ease), transform .24s var(--ease);
}
.usp::after {
  content: ""; position: absolute; inset: auto -40% -80% -40%; height: 130%;
  background: radial-gradient(50% 50% at 50% 0%, rgba(255,0,0,.16), transparent 70%);
  opacity: 0; transition: opacity .3s var(--ease); pointer-events: none;
}
.usp:hover { border-color: rgba(255,0,0,.34); transform: translateY(-4px); }
.usp:hover::after { opacity: 1; }
.usp > * { position: relative; z-index: 1; }
.usp b { display: block; font-family: var(--display); font-size: 19px; font-weight: 700; margin-bottom: 9px; }
.usp p { font-size: 14.5px; color: var(--txt-2); }

/* Shared icon plate for USPs and sneak-peek features */
.ico {
  width: 54px; height: 54px; border-radius: 15px; margin-bottom: 20px;
  display: grid; place-items: center; flex: none;
  background: linear-gradient(150deg, rgba(255,0,0,.20), rgba(255,0,0,.05));
  border: 1px solid rgba(255,0,0,.28);
}
.ico svg { width: 28px; height: 28px; }
.ico--sm { width: 46px; height: 46px; border-radius: 13px; margin-bottom: 0; }
.ico--sm svg { width: 24px; height: 24px; }
/* Icon drawing conventions: outline strokes in white, accent shapes in Signal Red */
.ico .s { fill: none; stroke: var(--white); stroke-width: 1.7; stroke-linejoin: round; stroke-linecap: round; }
.ico .a { fill: var(--red); stroke: none; }
.ico .as { fill: none; stroke: var(--red); stroke-width: 1.7; stroke-linejoin: round; stroke-linecap: round; }
.ico .f { fill: rgba(255,255,255,.10); stroke: none; }

/* ---------- 11. Cards / grids ---------- */
.grid { display: grid; gap: 16px; }
.grid--2 { grid-template-columns: 1fr; }
.grid--3 { grid-template-columns: 1fr; }
@media (min-width: 700px) { .grid--2 { grid-template-columns: repeat(2,1fr); } .grid--3 { grid-template-columns: repeat(2,1fr); } }
@media (min-width: 1000px) { .grid--3 { grid-template-columns: repeat(3,1fr); } }

.card {
  background: var(--bg-card); border: 1px solid var(--line-soft);
  border-radius: var(--r-lg); padding: 28px;
  transition: border-color .22s var(--ease), transform .22s var(--ease), background .22s var(--ease);
}
.card:hover { border-color: rgba(255,255,255,.16); transform: translateY(-3px); }
.card__n {
  font-family: var(--display); font-size: 12px; font-weight: 700;
  width: 34px; height: 34px; border-radius: 9px; background: var(--red); color: var(--white);
  display: grid; place-items: center; margin-bottom: 18px;
}
.card__n svg { width: 19px; height: 19px; display: block; }
.card h3 { margin-bottom: 10px; }
.card p { color: var(--txt-2); font-size: 14.5px; }

.answer {
  margin-top: 22px; border-radius: var(--r-lg); padding: 26px 28px;
  background: linear-gradient(120deg, rgba(255,0,0,.13), rgba(255,0,0,.03));
  border: 1px solid rgba(255,0,0,.3);
}
.answer b { font-family: var(--display); display: block; margin-bottom: 8px; font-size: 16px; }
.answer b.answer__hd { display: flex; align-items: center; gap: 11px; margin-bottom: 10px; }
.answer__mark { width: 28px; height: 28px; border-radius: 8px; flex: 0 0 auto; }
.answer p { color: rgba(255,254,254,.8); font-size: 15px; }

/* ---------- 12. Sneak-peek feature list ---------- */
.featlist { display: grid; gap: 14px; grid-template-columns: 1fr; }
@media (min-width: 820px) { .featlist { grid-template-columns: repeat(2, 1fr); } }
.feat {
  display: flex; gap: 18px; align-items: flex-start;
  padding: 24px 24px 26px; border-radius: var(--r-lg);
  background: var(--bg-card); border: 1px solid var(--line-soft);
  transition: border-color .24s var(--ease), transform .24s var(--ease);
}
.feat:hover { border-color: rgba(255,0,0,.3); transform: translateY(-3px); }
.feat b { font-family: var(--display); font-size: 17px; display: block; margin-bottom: 7px; line-height: 1.2; }
.feat p { font-size: 14px; color: var(--txt-2); }

/* ---------- 13. Steps ---------- */
.steps { display: grid; gap: 8px; }
.step { display: flex; gap: 16px; align-items: baseline; padding: 15px 20px; border-radius: 13px; background: rgba(255,255,255,.028); border: 1px solid var(--line-soft); }
.step__n { font-family: var(--display); font-weight: 700; font-size: 14px; color: var(--red); flex: none; width: 26px; }
.step p { font-size: 14.5px; color: rgba(255,254,254,.86); }

/* ---------- 14. Timeline ---------- */
.tl { display: grid; gap: 10px; }
.tl__i { display: grid; grid-template-columns: 92px 1fr; gap: 18px; align-items: center; padding: 20px; border-radius: var(--r); border: 1px solid var(--line-soft); background: var(--bg-card); }
@media (max-width: 620px) { .tl__i { grid-template-columns: 1fr; gap: 10px; } }
.tl__t { font-family: var(--display); font-size: 10.5px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; padding: 5px 10px; border-radius: 7px; text-align: center; background: rgba(255,255,255,.07); color: var(--txt-3); justify-self: start; }
.tl__i--done .tl__t { background: var(--red); color: var(--white); }
.tl__i b { font-family: var(--display); font-size: 17px; display: block; }

/* ---------- 15. CTA band ---------- */
.cta {
  position: relative; overflow: hidden; border-radius: 28px; padding: clamp(38px, 6vw, 66px);
  background: linear-gradient(135deg, var(--red-950) 0%, #150404 55%, var(--black) 100%);
  border: 1px solid rgba(255,0,0,.22); text-align: center;
}
.cta::after { content: ""; position: absolute; inset: auto -10% -70% -10%; height: 100%; background: radial-gradient(50% 60% at 50% 0%, rgba(255,0,0,.30), transparent 70%); pointer-events: none; }
.cta > * { position: relative; z-index: 1; }
.cta h2 { text-wrap: balance; }
.cta p { color: var(--txt-2); margin: 18px auto 0; max-width: 55ch; }
.cta .btn { margin-top: 30px; }

/* ---------- 16. Footer ---------- */
.footer { border-top: 1px solid var(--line-soft); background: #050202; padding-block: clamp(48px, 6vw, 72px) 34px; }
.footer__grid { display: grid; gap: 40px; grid-template-columns: 1fr; }
@media (min-width: 860px) { .footer__grid { grid-template-columns: 1.5fr 1fr 1fr 1.2fr; } }
.footer__logo { height: 34px; width: auto; margin-bottom: 18px; }

.social {
  display: flex; align-items: center; flex-wrap: wrap;
  column-gap: 15px; row-gap: 12px; margin-top: 16px;
}
.social a {
  display: inline-flex; align-items: center; justify-content: center;
  color: rgba(255,254,254,.5);
  transition: color .18s var(--ease);
}
.social a:hover { color: var(--red); }
.social a:focus-visible { outline: 2px solid var(--red); outline-offset: 3px; border-radius: 3px; }
/* Equalise optical weight: the outlined marks (Instagram, email) would otherwise
   read lighter than the solid ones (Facebook, WhatsApp, TikTok, X, Threads). */
.social svg { width: 16px; height: 16px; display: block; stroke-width: 2; }
.footer p, .footer li, .footer address { font-size: 13.5px; color: var(--txt-3); font-style: normal; line-height: 1.75; }
.footer h4 { font-family: var(--display); font-size: 11.5px; letter-spacing: .16em; text-transform: uppercase; color: var(--txt); margin-bottom: 14px; }
.footer ul { list-style: none; padding: 0; }
.footer a:hover { color: var(--txt); }
.footer__legal { margin-top: 42px; padding-top: 26px; border-top: 1px solid var(--line-soft); display: flex; flex-wrap: wrap; gap: 8px 22px; justify-content: space-between; }
.footer__legal p { font-size: 12.5px; }
.reg { font-family: var(--body); font-size: 12.5px; color: var(--txt-3); line-height: 1.8; }
.reg b { color: var(--txt-2); font-weight: 600; }

/* ---------- 17. Legal / doc pages ---------- */
.doc { padding-block: clamp(50px, 7vw, 84px); }
.doc__head { border-bottom: 1px solid var(--line-soft); padding-bottom: 30px; margin-bottom: 12px; }
.doc__head h1 { font-size: clamp(32px, 5vw, 52px); }
.doc__meta { font-size: 13px; color: var(--txt-3); margin-top: 16px; }
.doc__body { max-width: 76ch; }
.doc__body h2 { font-size: clamp(21px, 2.4vw, 26px); margin-top: 46px; margin-bottom: 14px; }
.doc__body h3 { font-size: 17px; margin-top: 28px; margin-bottom: 9px; }
.doc__body p { color: var(--txt-2); margin-bottom: 14px; font-size: 15.5px; }
.doc__body ul, .doc__body ol { color: var(--txt-2); font-size: 15.5px; padding-left: 22px; margin-bottom: 16px; }
.doc__body li { margin-bottom: 8px; }
.doc__body a { color: var(--red); text-decoration: underline; text-underline-offset: 3px; }
.doc__body strong { color: var(--txt); font-weight: 600; }
.doc__toc { border: 1px solid var(--line-soft); border-radius: var(--r); padding: 22px 24px; background: var(--bg-card); margin-bottom: 12px; }
.doc__toc h4 { font-family: var(--display); font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: var(--txt-3); margin-bottom: 12px; }
.doc__toc ol { margin: 0; padding-left: 20px; font-size: 14px; color: var(--txt-2); }
.doc__toc li { margin-bottom: 5px; }
.doc__toc a { text-decoration: none; }
.doc__toc a:hover { color: var(--red); }

.dl { display: grid; gap: 1px; background: var(--line-soft); border: 1px solid var(--line-soft); border-radius: var(--r); overflow: hidden; margin: 22px 0; }
.dl__r { display: grid; grid-template-columns: 1fr; gap: 2px; background: var(--bg-card); padding: 14px 20px; }
@media (min-width: 640px) { .dl__r { grid-template-columns: 230px 1fr; gap: 18px; align-items: baseline; } }
.dl__r dt { font-size: 13px; color: var(--txt-3); }
.dl__r dd { margin: 0; font-size: 14.5px; color: var(--txt); }

.notice { border: 1px solid rgba(255,0,0,.3); background: rgba(255,0,0,.07); border-radius: var(--r); padding: 20px 22px; margin: 24px 0; }
.notice p { color: rgba(255,254,254,.82); margin: 0; font-size: 14.5px; }
.notice b { font-family: var(--display); display: block; margin-bottom: 6px; color: var(--txt); }

.backlink { display: inline-flex; align-items: center; gap: 8px; font-size: 13.5px; color: var(--txt-3); margin-bottom: 26px; }
.backlink:hover { color: var(--txt); }

/* ---------- 18. Contact page ---------- */
.contactgrid { display: grid; gap: 16px; grid-template-columns: 1fr; margin-top: 32px; }
@media (min-width: 700px) { .contactgrid { grid-template-columns: repeat(2,1fr); } }
.contactcard { background: var(--bg-card); border: 1px solid var(--line-soft); border-radius: var(--r-lg); padding: 26px; }
.contactcard h3 { font-size: 17px; margin-bottom: 6px; }
.contactcard .v { font-size: 17px; color: var(--txt); margin-top: 10px; display: block; word-break: break-word; }
.contactcard .v:hover { color: var(--red); }
.contactcard p { font-size: 13.5px; color: var(--txt-3); }

/* ---------- 19. Reveal animation ---------- */
.rv { opacity: 0; transform: translateY(20px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.rv.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .rv { opacity: 1; transform: none; transition: none; } }

/* ---------- 20. Utilities ---------- */
.sr { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.mt-s { margin-top: 14px; } .mt-m { margin-top: 28px; } .mt-l { margin-top: 44px; }
.center { text-align: center; margin-inline: auto; }
:focus-visible { outline: 2px solid var(--red); outline-offset: 3px; border-radius: 4px; }
