/* tpiy.com — editorial site in the tPiy brand (brand/README.md). No framework; logical properties (RTL ready). */

@font-face{font-family:'Inter Variable';font-style:normal;font-display:swap;font-weight:100 900;src:url(/assets/fonts/inter-latin-ext-opsz-normal.5e6d4fe9d9.woff2) format('woff2-variations'),url(/assets/fonts/inter-latin-ext-opsz-normal.5e6d4fe9d9.woff2) format('woff2');unicode-range:U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF}
@font-face{font-family:'Inter Variable';font-style:normal;font-display:swap;font-weight:100 900;src:url(/assets/fonts/inter-latin-opsz-normal.2c295d99e2.woff2) format('woff2-variations'),url(/assets/fonts/inter-latin-opsz-normal.2c295d99e2.woff2) format('woff2');unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}

/* ---------------------------------------------------------------- tokens */

:root {
  --brand-ink: #222222;
  --brand-red: #fd1b20;
  --brand-orange-dark: #fd4c0e;
  --brand-orange: #fd9102;
  --brand-yellow: #fcce01;
  --brand-blue: #0074fc;
  --gradient: linear-gradient(90deg, #fd1b20 0%, #fd4c0e 30%, #fd9102 65%, #fcce01 100%);

  --font: 'Inter Variable', Inter, system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  --mono: ui-monospace, 'SF Mono', 'Cascadia Code', 'JetBrains Mono', Menlo, Consolas, 'Liberation Mono', monospace;

  --paper: #faf8f4;
  --paper-2: #f2efe8;
  --card: #ffffff;
  --ink: #1f1f1f;
  --ink-2: #3b3a37;
  --muted: #5f5e5a;
  --rule: #e4dfd5;
  --rule-strong: #c9c2b5;
  --link: #0058c4;
  --link-hover: #003f8f;
  --accent-text: #b13a0e;
  --focus: #0074fc;
  --field: #ffffff;
  --btn-bg: #1f1f1f;
  --btn-ink: #ffffff;
  --btn-hover: #000000;
  --error: #b42318;
  --error-soft: #fdecea;
  --success: #0b6447;
  --success-soft: #e6f5ee;
  --tba-bg: #fef3c7;
  --tba-ink: #6b4b00;
  --highlight: linear-gradient(90deg, rgba(253, 76, 14, 0.22), rgba(252, 206, 1, 0.42));
  --glow-1: rgba(253, 145, 2, 0.13);
  --glow-2: rgba(0, 116, 252, 0.08);
  --shadow: 0 1px 2px rgba(31, 31, 31, 0.05), 0 8px 24px rgba(31, 31, 31, 0.06);
  --shadow-lg: 0 24px 60px rgba(31, 31, 31, 0.16);

  --wrap: 1200px;
  --gutter: clamp(16px, 4vw, 40px);
  --header-h: 68px;
  --radius: 14px;
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --paper: #121214;
    --paper-2: #18181b;
    --card: #1d1d21;
    --ink: #edece8;
    --ink-2: #cfcdc7;
    --muted: #a6a59f;
    --rule: #2c2c31;
    --rule-strong: #46464d;
    --link: #8ab8ff;
    --link-hover: #b5d2ff;
    --accent-text: #ff9e70;
    --focus: #5aa2ff;
    --field: #17171a;
    --btn-bg: #edece8;
    --btn-ink: #121214;
    --btn-hover: #ffffff;
    --error: #ff8a80;
    --error-soft: rgba(255, 90, 80, 0.13);
    --success: #63d4a3;
    --success-soft: rgba(63, 178, 127, 0.14);
    --tba-bg: rgba(252, 206, 1, 0.16);
    --tba-ink: #f6d76b;
    --highlight: linear-gradient(90deg, rgba(253, 76, 14, 0.38), rgba(252, 206, 1, 0.3));
    --glow-1: rgba(253, 145, 2, 0.12);
    --glow-2: rgba(0, 116, 252, 0.12);
    --shadow: 0 1px 2px rgba(0, 0, 0, 0.4), 0 8px 24px rgba(0, 0, 0, 0.3);
    --shadow-lg: 0 24px 60px rgba(0, 0, 0, 0.55);
  }
}

/* CJK: the system font of each script (correct glyphs for shared Han characters); Inter only for Latin. */
html:lang(ja) {
  --font: 'Inter Variable', system-ui, 'Hiragino Sans', 'Hiragino Kaku Gothic ProN', 'Noto Sans CJK JP', 'Noto Sans JP', 'Yu Gothic UI', Meiryo, sans-serif;
}
html:lang(ko) {
  --font: 'Inter Variable', system-ui, 'Apple SD Gothic Neo', 'Malgun Gothic', 'Noto Sans CJK KR', 'Noto Sans KR', 'NanumGothic', sans-serif;
}
html:lang(zh-Hans) {
  --font: 'Inter Variable', system-ui, 'PingFang SC', 'Hiragino Sans GB', 'Noto Sans CJK SC', 'Noto Sans SC', 'Microsoft YaHei', sans-serif;
}

/* ------------------------------------------------------------------ base */

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: calc(var(--header-h) + 16px);
}

@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }
}

body {
  margin: 0;
  min-width: 320px;
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.65;
  font-optical-sizing: auto;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-wrap: break-word;
}

html:lang(ja) body,
html:lang(zh-Hans) body {
  line-height: 1.8;
  line-break: strict;
}
html:lang(ko) body {
  line-height: 1.75;
  word-break: keep-all;
}

h1,
h2,
h3,
h4 {
  margin: 0;
  line-height: 1.15;
  font-weight: 700;
  letter-spacing: -0.02em;
  text-wrap: balance;
}
html:lang(ja) :is(h1, h2, h3, h4) {
  word-break: auto-phrase; /* Chrome 119+: break Japanese headings between phrases */
}
html:lang(ja) :is(h1, h2, h3, h4),
html:lang(ko) :is(h1, h2, h3, h4),
html:lang(zh-Hans) :is(h1, h2, h3, h4) {
  letter-spacing: 0;
  line-height: 1.35;
}

p {
  margin: 0 0 1em;
}
p:last-child {
  margin-block-end: 0;
}

a {
  color: var(--link);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}
a:hover {
  color: var(--link-hover);
  text-decoration-thickness: 2px;
}

:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 2px;
  border-radius: 4px;
}

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

code {
  font-family: var(--mono);
  font-size: 0.9em;
  padding: 0.1em 0.35em;
  border-radius: 5px;
  background: var(--paper-2);
  border: 1px solid var(--rule);
  overflow-wrap: anywhere;
}

strong {
  font-weight: 650;
}

ul,
ol {
  margin: 0 0 1em;
  padding-inline-start: 1.25em;
}

[hidden] {
  display: none !important;
}

.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.muted {
  color: var(--muted);
}

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.topline {
  height: 4px;
  background: var(--gradient);
}

.skip-link {
  position: absolute;
  inset-inline-start: 12px;
  inset-block-start: -100px;
  z-index: 100;
  padding: 10px 16px;
  border-radius: 10px;
  background: var(--btn-bg);
  color: var(--btn-ink);
  font-weight: 600;
}
.skip-link:focus {
  inset-block-start: 12px;
}

main:focus {
  outline: none;
}

.arrow {
  display: inline-block;
  transition: transform 0.15s ease;
}
a:hover .arrow {
  transform: translateX(3px);
}

/* --------------------------------------------------------------- buttons */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5em;
  min-height: 48px;
  padding: 0.6em 1.4em;
  border: 1.5px solid transparent;
  border-radius: 999px;
  font: inherit;
  font-weight: 650;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}
.btn:hover {
  text-decoration: none;
}
.btn-ink {
  background: var(--btn-bg);
  color: var(--btn-ink);
}
.btn-ink:hover {
  background: var(--btn-hover);
  color: var(--btn-ink);
}
.btn-ghost {
  border-color: var(--ink);
  color: var(--ink);
  background: transparent;
}
.btn-ghost:hover {
  background: var(--ink);
  color: var(--paper);
}
.btn-small {
  min-height: 40px;
  padding: 0.4em 1.1em;
  font-size: 0.92rem;
}
.btn[disabled] {
  opacity: 0.6;
  cursor: progress;
}

/* -------------------------------------------------------------- masthead */

.masthead {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--paper);
  background: color-mix(in srgb, var(--paper) 92%, transparent);
  -webkit-backdrop-filter: saturate(1.4) blur(10px);
  backdrop-filter: saturate(1.4) blur(10px);
  border-block-end: 1px solid var(--rule);
}

.masthead-inner {
  display: flex;
  align-items: center;
  gap: 24px;
  min-height: var(--header-h);
}

.brand {
  display: inline-flex;
  flex-shrink: 0;
  border-radius: 6px;
}
.brand img {
  display: block;
  width: 102px;
  height: auto;
}

.nav-desktop {
  margin-inline-start: auto;
}
.nav-desktop ul,
.nav-mobile ul {
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-desktop ul {
  display: flex;
  gap: 4px;
}
.nav-desktop a,
.nav-mobile a {
  display: block;
  padding: 8px 12px;
  border-radius: 8px;
  color: var(--ink-2);
  font-weight: 550;
  font-size: 0.95rem;
  text-decoration: none;
}
.nav-desktop a:hover,
.nav-mobile a:hover {
  color: var(--ink);
  background: var(--paper-2);
}
.nav-desktop a[aria-current='page'] {
  color: var(--ink);
  box-shadow: inset 0 -2px 0 var(--brand-orange-dark);
  border-radius: 0;
}

.masthead-tools {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-inline-start: 8px;
}

details > summary {
  list-style: none;
  cursor: pointer;
}
details > summary::-webkit-details-marker {
  display: none;
}

.lang-menu,
.nav-mobile {
  position: relative;
}
.lang-menu > summary,
.nav-mobile > summary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 40px;
  padding: 6px 12px;
  border: 1.5px solid var(--rule-strong);
  border-radius: 999px;
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--ink);
  background: var(--card);
  user-select: none;
}
.lang-menu > summary:hover,
.nav-mobile > summary:hover {
  border-color: var(--ink);
}

.flag {
  display: inline-block;
  width: 20px;
  height: 15px;
  flex-shrink: 0;
  border-radius: 2px;
  object-fit: cover;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.12);
}

.chev {
  width: 7px;
  height: 7px;
  margin-inline-start: 2px;
  border-inline-end: 2px solid currentColor;
  border-block-end: 2px solid currentColor;
  transform: translateY(-2px) rotate(45deg);
  transition: transform 0.15s ease;
}
.lang-menu[open] .chev {
  transform: translateY(1px) rotate(-135deg);
}

.lang-list {
  position: absolute;
  inset-inline-end: 0;
  top: calc(100% + 8px);
  z-index: 60;
  min-width: 200px;
  margin: 0;
  padding: 6px;
  list-style: none;
  background: var(--card);
  border: 1px solid var(--rule);
  border-radius: 12px;
  box-shadow: var(--shadow-lg);
}
.lang-list a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 12px;
  border-radius: 8px;
  color: var(--ink);
  text-decoration: none;
  font-weight: 500;
}
.lang-list a:hover {
  background: var(--paper-2);
}
.lang-list a[aria-current='true'] {
  font-weight: 700;
  background: var(--paper-2);
}

.burger {
  position: relative;
  width: 16px;
  height: 2px;
  background: currentColor;
  border-radius: 2px;
}
.burger::before,
.burger::after {
  content: '';
  position: absolute;
  inset-inline-start: 0;
  width: 16px;
  height: 2px;
  background: currentColor;
  border-radius: 2px;
}
.burger::before {
  top: -5px;
}
.burger::after {
  top: 5px;
}

.nav-mobile > nav {
  position: absolute;
  inset-inline-end: 0;
  top: calc(100% + 8px);
  z-index: 60;
  width: min(300px, calc(100vw - 2 * var(--gutter)));
  padding: 8px;
  background: var(--card);
  border: 1px solid var(--rule);
  border-radius: 12px;
  box-shadow: var(--shadow-lg);
}
.nav-mobile a {
  padding: 12px 14px;
  font-size: 1rem;
}

@media (min-width: 1040px) {
  .nav-mobile {
    display: none;
  }
}
@media (max-width: 1039.98px) {
  .nav-desktop {
    display: none;
  }
  .masthead-tools {
    margin-inline-start: auto;
  }
}
@media (max-width: 639.98px) {
  .masthead-cta {
    display: none;
  }
}
@media (max-width: 479.98px) {
  .lang-current {
    display: none;
  }
  /* Icon only on small phones; the word stays for screen readers (the button's accessible name). */
  .nav-mobile-label {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0 0 0 0);
    clip-path: inset(50%);
    white-space: nowrap;
    border: 0;
  }
  .nav-mobile > summary {
    padding-inline: 12px;
    min-width: 44px;
    justify-content: center;
  }
  .masthead-inner {
    gap: 12px;
  }
}

/* ------------------------------------------------------------ type parts */

.kicker {
  display: flex;
  align-items: baseline;
  gap: 12px;
  margin: 0 0 18px;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent-text);
}
html:lang(ja) .kicker,
html:lang(ko) .kicker,
html:lang(zh-Hans) .kicker {
  letter-spacing: 0.04em;
  font-size: 0.875rem;
}
.kicker-num {
  font-variant-numeric: tabular-nums;
  color: var(--ink);
  padding-inline-end: 12px;
  border-inline-end: 1px solid var(--rule-strong);
}

.lead {
  font-size: clamp(1.125rem, 1.6vw, 1.3rem);
  line-height: 1.55;
  color: var(--ink-2);
  max-width: 62ch;
}
.lead.narrow {
  max-width: 58ch;
}

.display {
  font-size: clamp(1.85rem, 3.6vw, 3rem);
  line-height: 1.06;
  font-weight: 750;
  letter-spacing: -0.03em;
  margin-block-end: 20px;
}
html:lang(ja) .display,
html:lang(ko) .display,
html:lang(zh-Hans) .display {
  line-height: 1.3;
  letter-spacing: 0;
}

.note {
  margin-top: 40px;
  padding-top: 20px;
  border-top: 1px solid var(--rule);
  color: var(--ink-2);
  max-width: 70ch;
}

.link-list {
  list-style: none;
  padding: 0;
  margin: 24px 0 0;
  border-top: 1px solid var(--rule);
}
.link-list li {
  border-bottom: 1px solid var(--rule);
}
.link-list a {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 2px;
  color: var(--ink);
  font-weight: 600;
  text-decoration: none;
}
.link-list a:hover {
  color: var(--link);
}

/* ------------------------------------------------------------------ home */

.hero {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(60% 70% at 92% 8%, var(--glow-1), transparent 70%),
    radial-gradient(50% 60% at 70% 100%, var(--glow-2), transparent 70%);
  border-block-end: 1px solid var(--rule);
}
.hero-grid {
  display: grid;
  gap: 48px;
  align-items: center;
  padding-block: clamp(48px, 8vw, 104px);
}
@media (min-width: 960px) {
  .hero-grid {
    grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr);
    gap: 64px;
  }
}
.hero h1 {
  font-size: clamp(2.5rem, 6.2vw, 5.1rem);
  line-height: 0.99;
  font-weight: 780;
  letter-spacing: -0.042em;
  margin-block-end: 26px;
}
html:lang(de) .hero h1,
html:lang(es) .hero h1,
html:lang(tr) .hero h1 {
  font-size: clamp(2.3rem, 5.4vw, 4.4rem);
}
html:lang(ja) .hero h1,
html:lang(ko) .hero h1,
html:lang(zh-Hans) .hero h1 {
  font-size: clamp(2.1rem, 4.6vw, 3.7rem);
  line-height: 1.25;
  letter-spacing: 0;
}
.hero h1 strong {
  font-weight: inherit;
  background: var(--highlight) no-repeat 0 88% / 100% 0.3em;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}
.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}

/* The ad mock: how a tPiy ad looks in a landscape game (decorative). */
.hero-figure {
  margin: 0;
}
.hero-figure figcaption {
  margin-top: 16px;
  font-size: 0.92rem;
  color: var(--muted);
  max-width: 52ch;
}
.ad-mock {
  container-type: inline-size;
  padding: 10px;
  border-radius: 26px;
  background: #18181a;
  box-shadow: var(--shadow-lg), inset 0 0 0 1px rgba(255, 255, 255, 0.06);
  transform: rotate(-2deg);
}
@media (prefers-color-scheme: dark) {
  .ad-mock {
    background: #000;
    box-shadow: var(--shadow-lg), inset 0 0 0 1px rgba(255, 255, 255, 0.12);
  }
}
.mock-screen {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: 17px;
  color: #fff;
  background:
    radial-gradient(circle at 80% 26%, #fcce01 0 6%, rgba(252, 206, 1, 0.35) 6.5% 10%, transparent 10.5%),
    linear-gradient(172deg, transparent 64%, #10224f 64.4%),
    linear-gradient(188deg, transparent 71%, #0a1736 71.4%),
    linear-gradient(180deg, #0062d6 0%, #3d97ff 52%, #ffc58a 100%);
  font-size: clamp(9px, 2.6cqi, 15px);
  line-height: 1.25;
}
.mock-screen > * {
  position: absolute;
}
.mock-ad {
  top: 4.5%;
  inset-inline-start: 3%;
  padding: 0.25em 0.6em;
  border-radius: 0.4em;
  background: rgba(0, 0, 0, 0.62);
  font-weight: 700;
  letter-spacing: 0.02em;
}
.mock-close {
  top: 4%;
  inset-inline-end: 3%;
  display: grid;
  place-items: center;
  width: 2.1em;
  height: 2.1em;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.55);
  font-size: 1em;
}
.mock-card {
  top: 50%;
  left: 50%;
  display: flex;
  align-items: center;
  gap: 0.9em;
  width: 62%;
  padding: 0.9em 1.1em;
  border-radius: 1em;
  background: rgba(255, 255, 255, 0.95);
  color: #1f1f1f;
  transform: translate(-50%, -58%);
  box-shadow: 0 0.8em 2em rgba(0, 0, 0, 0.25);
}
.mock-icon {
  width: 3.6em;
  height: 3.6em;
  flex-shrink: 0;
  border-radius: 0.8em;
  background: #fff;
}
.mock-text p {
  margin: 0;
}
.mock-brand {
  font-weight: 750;
  font-size: 1.25em;
  letter-spacing: -0.01em;
}
.mock-tagline {
  color: #55544f;
  font-size: 0.85em;
}
.mock-why {
  bottom: 5%;
  inset-inline-start: 3%;
  padding: 0.35em 0.8em;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.9);
  color: #1f1f1f;
  font-weight: 600;
  font-size: 0.85em;
}
.mock-cta {
  bottom: 5%;
  inset-inline-end: 3%;
  padding: 0.5em 1.3em;
  border-radius: 999px;
  background: #0066e0;
  color: #fff;
  font-weight: 750;
}

.facts {
  border-block-end: 1px solid var(--rule);
  background: var(--card);
}
.facts-list {
  display: grid;
  grid-template-columns: 1fr;
  margin: 0;
  padding: 0;
  list-style: none;
}
.facts-list li {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 22px 0;
  border-block-end: 1px solid var(--rule);
}
.facts-list li:last-child {
  border-block-end: 0;
}
.facts-list strong {
  font-size: 1.05rem;
  font-weight: 700;
}
.facts-list span {
  color: var(--muted);
  font-size: 0.95rem;
}
@media (min-width: 640px) {
  .facts-list {
    grid-template-columns: repeat(2, 1fr);
  }
  .facts-list li {
    padding: 26px 24px;
    border-block-end: 0;
    border-inline-start: 1px solid var(--rule);
  }
  .facts-list li:nth-child(odd) {
    border-inline-start: 0;
    padding-inline-start: 0;
  }
}
@media (min-width: 1040px) {
  .facts-list {
    grid-template-columns: repeat(4, 1fr);
  }
  .facts-list li:nth-child(odd) {
    border-inline-start: 1px solid var(--rule);
    padding-inline-start: 24px;
  }
  .facts-list li:first-child {
    border-inline-start: 0;
    padding-inline-start: 0;
  }
}

.band {
  padding-block: clamp(56px, 8vw, 112px);
  border-block-end: 1px solid var(--rule);
  scroll-margin-top: var(--header-h);
}
.band-alt {
  background: var(--paper-2);
}

.split {
  display: grid;
  gap: 24px 64px;
}
@media (min-width: 960px) {
  .split {
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  }
  .split-form {
    grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  }
}
.prose {
  font-size: 1.125rem;
  color: var(--ink-2);
  max-width: 64ch;
}
@media (min-width: 960px) {
  .split .prose {
    padding-top: 40px;
  }
}

.feature-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0 40px;
  margin: 48px 0 0;
  padding: 0;
  list-style: none;
}
@media (min-width: 640px) {
  .feature-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (min-width: 1040px) {
  .feature-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}
.feature {
  padding: 22px 0 30px;
  border-top: 2px solid var(--ink);
}
.feature-num {
  display: block;
  margin-bottom: 14px;
  font-size: 0.8rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  color: var(--accent-text);
}
.feature h3 {
  font-size: 1.25rem;
  margin-bottom: 8px;
}
.feature p {
  color: var(--muted);
  margin: 0;
}

.panels-title {
  margin: 64px 0 20px;
  font-size: 1.35rem;
}
.panel-cards {
  display: grid;
  gap: 16px;
}
@media (min-width: 720px) {
  .panel-cards {
    grid-template-columns: repeat(2, 1fr);
  }
}
.panel-card {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 26px 28px;
  border: 1px solid var(--rule-strong);
  border-radius: var(--radius);
  background: var(--card);
  color: var(--ink);
  text-decoration: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
}
.panel-card:hover {
  color: var(--ink);
  border-color: var(--ink);
  box-shadow: var(--shadow);
  transform: translateY(-2px);
}
.panel-card-host {
  font-family: var(--mono);
  font-size: 0.85rem;
  color: var(--accent-text);
}
.panel-card-title {
  font-size: 1.45rem;
  font-weight: 720;
  letter-spacing: -0.02em;
}
.panel-card-text {
  color: var(--muted);
}
.panel-card-go {
  margin-top: 10px;
  font-weight: 650;
  color: var(--link);
}

.check-list {
  list-style: none;
  padding: 0;
  margin: 28px 0 0;
}
.check-list li {
  position: relative;
  padding-inline-start: 30px;
  margin-bottom: 12px;
  color: var(--ink-2);
}
.check-list li::before {
  content: '';
  position: absolute;
  inset-inline-start: 2px;
  top: 0.45em;
  width: 14px;
  height: 8px;
  border-inline-start: 2.5px solid var(--brand-orange-dark);
  border-block-end: 2.5px solid var(--brand-orange-dark);
  transform: rotate(-45deg);
}

/* ------------------------------------------------------------- documents */

.doc-head {
  padding-block: clamp(40px, 6vw, 80px) clamp(28px, 4vw, 44px);
  border-block-end: 1px solid var(--rule);
  background: radial-gradient(50% 120% at 100% 0%, var(--glow-1), transparent 70%);
}
.doc-head h1 {
  font-size: clamp(2.3rem, 5vw, 4rem);
  line-height: 1.02;
  font-weight: 760;
  letter-spacing: -0.035em;
  margin-block-end: 18px;
}
html:lang(ja) .doc-head h1,
html:lang(ko) .doc-head h1,
html:lang(zh-Hans) .doc-head h1 {
  line-height: 1.25;
  letter-spacing: 0;
}
.doc-meta {
  display: grid;
  gap: 6px;
  margin-top: 28px;
  padding-top: 18px;
  border-top: 1px solid var(--rule);
  font-size: 0.95rem;
}
.doc-meta p {
  margin: 0;
}
.effective {
  font-weight: 650;
}
.binding {
  color: var(--muted);
  max-width: 80ch;
}
.lang-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 14px;
  margin-top: 8px;
}
.lang-row-label {
  color: var(--muted);
}
.lang-row ul {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 14px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.lang-row a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 32px;
  color: var(--ink-2);
  text-decoration: none;
  font-weight: 550;
}
.lang-row a:hover {
  color: var(--link);
  text-decoration: underline;
}

.doc-intro {
  display: grid;
  gap: 20px;
  padding-block: 36px 0;
}
@media (min-width: 960px) {
  .doc-intro {
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
    align-items: start;
  }
}
.why-box,
.summary-box {
  padding: 26px 28px;
  border-radius: var(--radius);
  background: var(--card);
  border: 1px solid var(--rule);
  box-shadow: var(--shadow);
}
.why-box {
  position: relative;
  overflow: hidden;
}
.why-box::before {
  content: '';
  position: absolute;
  inset-block: 0;
  inset-inline-start: 0;
  width: 5px;
  background: var(--gradient);
}
.why-box h2,
.summary-box h2 {
  font-size: 1.3rem;
  margin-bottom: 10px;
}
.why-label {
  margin: 0 0 12px;
}
.ad-chip {
  display: inline-block;
  padding: 2px 9px;
  border-radius: 6px;
  background: #1f1f1f;
  color: #fff;
  font-size: 0.8rem;
  font-weight: 700;
}
@media (prefers-color-scheme: dark) {
  .ad-chip {
    background: #edece8;
    color: #121214;
  }
}
.summary-list {
  margin: 0;
  padding: 0;
  list-style: none;
}
.summary-list li {
  position: relative;
  padding-inline-start: 26px;
  margin-bottom: 9px;
  color: var(--ink-2);
}
.summary-list li::before {
  content: '';
  position: absolute;
  inset-inline-start: 2px;
  top: 0.6em;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--gradient);
}

.doc-grid {
  display: grid;
  gap: 24px;
  padding-block: 36px clamp(56px, 8vw, 104px);
}
@media (min-width: 1040px) {
  .doc-grid {
    grid-template-columns: 250px minmax(0, 1fr);
    gap: 64px;
  }
}

.toc {
  font-size: 0.92rem;
}
.toc ol {
  margin: 0;
  padding: 0;
  list-style: none;
}
.toc ol ol {
  margin: 4px 0 8px;
  padding-inline-start: 14px;
  border-inline-start: 1px solid var(--rule);
}
.toc a {
  display: block;
  padding: 5px 0;
  color: var(--ink-2);
  text-decoration: none;
  line-height: 1.35;
}
.toc ol ol a {
  padding-block: 3px;
  color: var(--muted);
  font-size: 0.88rem;
}
.toc a:hover {
  color: var(--link);
  text-decoration: underline;
}
.toc-title {
  margin: 0 0 10px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}
.toc-mobile {
  border: 1px solid var(--rule-strong);
  border-radius: 12px;
  background: var(--card);
}
.toc-mobile > summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  min-height: 48px;
  padding: 10px 16px;
  font-weight: 650;
}
.toc-mobile > summary::after {
  content: '+';
  font-size: 1.3rem;
  font-weight: 400;
  color: var(--muted);
}
.toc-mobile[open] > summary::after {
  content: '−';
}
.toc-mobile > ol {
  padding: 0 16px 14px;
}
.toc-desktop {
  display: none;
}
@media (min-width: 1040px) {
  .toc-mobile {
    display: none;
  }
  .toc-desktop {
    display: block;
    position: sticky;
    top: calc(var(--header-h) + 24px);
    max-height: calc(100vh - var(--header-h) - 48px);
    overflow-y: auto;
    padding-inline-end: 8px;
  }
}

.doc {
  max-width: 74ch;
  min-width: 0;
}
.doc-section {
  padding-block: 8px 28px;
  margin-block-end: 28px;
  border-block-end: 1px solid var(--rule);
}
.doc-section:last-child {
  border-block-end: 0;
}
.doc h2 {
  display: flex;
  align-items: baseline;
  gap: 14px;
  margin-block: 0 18px;
  font-size: clamp(1.4rem, 2.4vw, 1.75rem);
  letter-spacing: -0.02em;
  scroll-margin-top: calc(var(--header-h) + 16px);
}
.sec-num {
  flex-shrink: 0;
  font-size: 0.75em;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  color: var(--accent-text);
}
.doc h3 {
  margin-block: 34px 12px;
  font-size: 1.2rem;
  scroll-margin-top: calc(var(--header-h) + 16px);
}
.doc h4 {
  font-size: 1.05rem;
  margin-bottom: 6px;
}
.doc p,
.doc li {
  color: var(--ink-2);
}
.doc strong {
  color: var(--ink);
}
.bullets li {
  margin-bottom: 8px;
}
.bullets li::marker {
  color: var(--accent-text);
}

.data-grid {
  display: grid;
  gap: 14px;
  margin-top: 18px;
}
@media (min-width: 720px) {
  .data-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
.data-card {
  padding: 20px 22px;
  border: 1px solid var(--rule);
  border-radius: 12px;
  background: var(--card);
}
.data-card p {
  font-size: 0.97rem;
}
.data-card dl {
  margin: 12px 0 0;
  padding-top: 12px;
  border-top: 1px solid var(--rule);
  font-size: 0.95rem;
}
.data-card dt {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}
.data-card dd {
  margin: 2px 0 10px;
  color: var(--ink-2);
}
.data-card dd:last-child {
  margin-bottom: 0;
}

.callout {
  padding: 20px 22px;
  border-radius: 12px;
  background: var(--paper-2);
  border: 1px solid var(--rule);
}
.callout-strong {
  position: relative;
  overflow: hidden;
  background: var(--card);
  padding-inline-start: 28px;
}
.callout-strong::before {
  content: '';
  position: absolute;
  inset-block: 0;
  inset-inline-start: 0;
  width: 5px;
  background: var(--gradient);
}

.bases {
  margin: 14px 0 0;
}
.basis {
  padding: 14px 0;
  border-top: 1px solid var(--rule);
}
.basis dt {
  font-weight: 650;
  color: var(--ink);
}
.basis dd {
  margin: 4px 0 0;
  color: var(--ink-2);
}

.tba-badge {
  display: inline-block;
  margin-inline-end: 6px;
  padding: 1px 8px;
  border-radius: 6px;
  background: var(--tba-bg);
  color: var(--tba-ink);
  font-size: 0.8rem;
  font-weight: 700;
  vertical-align: 0.1em;
}

.list-intro {
  font-weight: 600;
}
.prohibited {
  list-style: none;
  padding: 0;
  display: grid;
  gap: 0;
  border-top: 1px solid var(--rule);
}
.prohibited li {
  position: relative;
  padding: 10px 0 10px 32px;
  border-bottom: 1px solid var(--rule);
  margin: 0;
}
.prohibited li::before {
  content: '';
  position: absolute;
  inset-inline-start: 4px;
  top: 0.95em;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background:
    linear-gradient(45deg, transparent 44%, #fff 44% 56%, transparent 56%),
    linear-gradient(-45deg, transparent 44%, #fff 44% 56%, transparent 56%),
    #c8231a;
}

.code-line {
  margin: 0 0 18px;
  padding: 16px 18px;
  border-radius: 12px;
  background: #1c1c1f;
  color: #f4f3ef;
  font-family: var(--mono);
  font-size: 0.98rem;
  overflow-x: auto;
}
.code-line code {
  padding: 0;
  border: 0;
  background: none;
  color: inherit;
  font-size: inherit;
}

.contact-cards {
  display: grid;
  gap: 16px;
}
@media (min-width: 720px) {
  .contact-cards {
    grid-template-columns: repeat(2, 1fr);
  }
}
.contact-card {
  padding: 22px 26px;
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  background: var(--card);
}
.contact-card p {
  margin: 0 0 4px;
}
.contact-card-label {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}
.contact-card-mail {
  font-size: 1.3rem;
  font-weight: 700;
}

/* ----------------------------------------------------------------- forms */

.form-page {
  display: grid;
  gap: 32px;
  padding-block: 40px clamp(56px, 8vw, 104px);
}
@media (min-width: 1000px) {
  .form-page {
    grid-template-columns: minmax(0, 4fr) minmax(0, 7fr);
    gap: 72px;
  }
  .form-aside {
    position: sticky;
    top: calc(var(--header-h) + 24px);
    align-self: start;
  }
}
.form-aside h2 {
  font-size: 1.2rem;
  margin: 0 0 12px;
}
.form-aside h2:not(:first-child) {
  margin-top: 30px;
}
.form-aside .callout {
  margin-block: 22px;
}
.form-aside p {
  font-size: 0.97rem;
}
.steps {
  counter-reset: step;
  list-style: none;
  padding: 0;
}
.steps li {
  position: relative;
  counter-increment: step;
  padding-inline-start: 38px;
  margin-bottom: 12px;
  color: var(--ink-2);
}
.steps li::before {
  content: counter(step);
  position: absolute;
  inset-inline-start: 0;
  top: 0.05em;
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--btn-bg);
  color: var(--btn-ink);
  font-size: 0.8rem;
  font-weight: 700;
}
.id-list {
  list-style: none;
  padding: 0;
}
.id-list li {
  padding: 12px 0;
  border-top: 1px solid var(--rule);
  color: var(--ink-2);
  font-size: 0.97rem;
}

.form-title {
  font-size: 1.5rem;
  margin-bottom: 8px;
}
.form-lead {
  color: var(--ink-2);
  margin-bottom: 24px;
}

.form-wrap {
  min-width: 0;
}
.form {
  position: relative;
  padding: clamp(20px, 3.5vw, 36px);
  border: 1px solid var(--rule);
  border-radius: 18px;
  background: var(--card);
  box-shadow: var(--shadow);
}
.form-note {
  margin-bottom: 22px;
  font-size: 0.92rem;
  color: var(--muted);
}
.form-section {
  margin: 8px 0 18px;
  padding-top: 4px;
  font-size: 1.15rem;
}
.form-section:not(:first-of-type) {
  margin-top: 30px;
  padding-top: 26px;
  border-top: 1px solid var(--rule);
}

.field {
  margin: 0 0 22px;
  min-width: 0;
}
.field-row {
  display: grid;
  gap: 0 18px;
}
@media (min-width: 640px) {
  .field-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
.field > label,
.field legend {
  display: block;
  margin-bottom: 6px;
  font-weight: 650;
  color: var(--ink);
}
.opt {
  font-weight: 450;
  color: var(--muted);
}
.hint {
  margin: -2px 0 8px;
  font-size: 0.9rem;
  line-height: 1.45;
  color: var(--muted);
}

.field input[type='text'],
.field input[type='email'],
.field input[type='url'],
.field input[type='datetime-local'],
.field textarea,
.field select {
  display: block;
  width: 100%;
  min-height: 48px;
  padding: 11px 14px;
  border: 1.5px solid var(--rule-strong);
  border-radius: 10px;
  background: var(--field);
  color: var(--ink);
  font: inherit;
  font-size: 1rem;
  line-height: 1.45;
  transition: border-color 0.12s ease, box-shadow 0.12s ease;
}
.field textarea {
  min-height: 120px;
  resize: vertical;
}
.field input:hover,
.field textarea:hover,
.field select:hover {
  border-color: var(--ink-2);
}
.field input:focus-visible,
.field textarea:focus-visible,
.field select:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 1px;
  border-color: var(--focus);
  border-radius: 10px;
}
.select {
  position: relative;
  display: block;
}
.select select {
  appearance: none;
  padding-inline-end: 44px;
  cursor: pointer;
}
.select::after {
  content: '';
  position: absolute;
  inset-inline-end: 18px;
  top: 50%;
  width: 8px;
  height: 8px;
  border-inline-end: 2px solid var(--ink-2);
  border-block-end: 2px solid var(--ink-2);
  transform: translateY(-70%) rotate(45deg);
  pointer-events: none;
}

fieldset.field {
  margin-inline: 0;
  padding: 0;
  border: 0;
}
.choices {
  display: grid;
  gap: 10px;
}
@media (min-width: 640px) {
  .choices {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
.choice-item,
.check-item {
  font-weight: 400;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 16px;
  border: 1.5px solid var(--rule-strong);
  border-radius: 12px;
  background: var(--field);
  cursor: pointer;
  transition: border-color 0.12s ease, background-color 0.12s ease;
}
.choice-item:hover,
.check-item:hover {
  border-color: var(--ink-2);
}
.choice-item:has(input:checked),
.check-item:has(input:checked) {
  border-color: var(--ink);
  background: var(--paper-2);
  box-shadow: inset 0 0 0 1px var(--ink);
}
.choice-item:has(input:focus-visible),
.check-item:has(input:focus-visible) {
  outline: 3px solid var(--focus);
  outline-offset: 2px;
}
.choice-item input,
.check-item input {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  margin: 2px 0 0;
  accent-color: var(--ink);
}
.choice-item input:focus-visible,
.check-item input:focus-visible {
  outline: none;
}
.choice-text,
.check-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.choice-label {
  font-weight: 600;
  line-height: 1.4;
}
.choice-hint {
  font-size: 0.88rem;
  line-height: 1.45;
  color: var(--muted);
}

.field-error {
  display: flex;
  gap: 8px;
  margin: 8px 0 0;
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--error);
}
.field-error::before {
  content: '!';
  display: grid;
  place-items: center;
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  margin-top: 0.1em;
  border-radius: 50%;
  background: var(--error);
  color: var(--card);
  font-size: 0.75rem;
  font-weight: 800;
}
.has-error input,
.has-error textarea,
.has-error select,
.has-error .choice-item,
.has-error .check-item {
  border-color: var(--error);
}

.hp {
  position: absolute;
  inset-inline-start: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form-alert {
  margin: 0 0 18px;
  padding: 14px 16px;
  border-radius: 10px;
  border-inline-start: 4px solid var(--error);
  background: var(--error-soft);
  color: var(--ink);
  font-weight: 550;
}
.form-alert:focus {
  outline: 3px solid var(--focus);
  outline-offset: 2px;
}
.form-alert a {
  font-weight: 700;
}
.form-actions {
  margin-top: 8px;
}
.btn-submit {
  min-width: 200px;
}
@media (max-width: 479.98px) {
  .btn-submit {
    width: 100%;
  }
}
.form-privacy {
  margin: 18px 0 0;
  font-size: 0.88rem;
  color: var(--muted);
}

.form-success {
  padding: clamp(22px, 3.5vw, 36px);
  border-radius: 18px;
  border: 1.5px solid var(--success);
  background: var(--success-soft);
}
.form-success:focus {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
}
.success-title {
  font-size: 1.3rem;
  font-weight: 750;
}
.ref {
  font-family: var(--mono);
  font-size: 1.15rem;
  letter-spacing: 0.02em;
}

.identity {
  margin: 0 0 8px;
}
.identity dt {
  margin-top: 14px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}
.identity dd {
  margin: 2px 0 0;
  font-weight: 550;
}
.identity-note {
  display: block;
  font-weight: 400;
  font-size: 0.92rem;
  color: var(--muted);
}

/* ------------------------------------------------------------------- 404 */

.not-found {
  padding-block: clamp(64px, 12vw, 160px);
}
.nf-code {
  margin: 0;
  font-size: clamp(5rem, 18vw, 11rem);
  font-weight: 800;
  line-height: 0.9;
  letter-spacing: -0.06em;
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.not-found h1 {
  margin: 18px 0 12px;
  font-size: clamp(1.8rem, 4vw, 2.6rem);
}
.not-found .link-list {
  max-width: 480px;
}

/* ---------------------------------------------------------------- footer */

.footer {
  position: relative;
  background: #141415;
  color: #e9e7e2;
  font-size: 0.95rem;
}
@media (prefers-color-scheme: dark) {
  .footer {
    background: #0b0b0c;
    border-top: 1px solid var(--rule);
  }
}
.footer::before {
  content: '';
  display: block;
  height: 4px;
  background: var(--gradient);
}
.footer a {
  color: #e9e7e2;
  text-decoration: none;
}
.footer a:hover {
  color: #fff;
  text-decoration: underline;
}
.footer .muted {
  color: #a9a7a1;
}
.footer :focus-visible {
  outline-color: #7cb5ff;
}
.footer-grid {
  display: grid;
  gap: 40px;
  padding-block: 56px 40px;
}
@media (min-width: 900px) {
  .footer-grid {
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 2fr) minmax(0, 1fr);
    gap: 48px;
  }
}
.footer-brand img {
  width: 102px;
  margin-bottom: 14px;
}
.footer-brand p {
  max-width: 34ch;
}
.footer-nav {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 28px;
}
.footer-title {
  margin: 0 0 12px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #a9a7a1;
}
.footer-col ul {
  margin: 0;
  padding: 0;
  list-style: none;
}
.footer-col li {
  margin-bottom: 8px;
}
.footer-address {
  font-style: normal;
  line-height: 1.7;
}
.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 24px;
  padding-block: 20px 28px;
  border-top: 1px solid #2c2c30;
  font-size: 0.85rem;
}
.footer-bottom p {
  margin: 0;
}
.footer-bottom a {
  text-decoration: underline;
  text-underline-offset: 0.18em;
}

/* ----------------------------------------------------------------- print */

@media print {
  .masthead,
  .footer,
  .toc,
  .topline,
  .skip-link,
  .lang-row {
    display: none !important;
  }
  body {
    background: #fff;
    color: #000;
  }
  .doc-grid {
    display: block;
  }
}

/* ------------------------------------------------- privacy: data modes */

.mode-grid {
  display: grid;
  gap: 14px;
  margin: 18px 0;
}
@media (min-width: 720px) {
  .mode-grid {
    grid-template-columns: minmax(0, 2fr) minmax(0, 3fr);
    align-items: start;
  }
}
.mode-card {
  padding: 20px 22px;
  border: 1px solid var(--rule);
  border-radius: 12px;
  background: var(--card);
}
.mode-card .bullets {
  margin: 10px 0 0;
  font-size: 0.97rem;
}
.mode-card-full {
  position: relative;
  overflow: hidden;
  padding-inline-start: 28px;
}
.mode-card-full::before {
  content: '';
  position: absolute;
  inset-block: 0;
  inset-inline-start: 0;
  width: 5px;
  background: var(--gradient);
}
.mode-name {
  margin-bottom: 6px;
  font-size: 1.05rem;
  font-weight: 750;
  color: var(--ink);
}
.segments-label {
  margin-bottom: 8px;
  font-weight: 650;
  color: var(--ink);
}
.segments {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 18px;
  padding: 0;
  list-style: none;
}
.segments li {
  padding: 4px 12px;
  border-radius: 999px;
  border: 1px solid var(--rule-strong);
  background: var(--card);
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--ink);
}
