:root {
  --ink: #172033;
  --ink-soft: #202a3d;
  --paper: #f6f7f4;
  --paper-deep: #ecefea;
  --surface: #ffffff;
  --line: #d9ded8;
  --line-strong: #b8c0b9;
  --accent: #315ee7;
  --accent-soft: #e9efff;
  --lime: #b8e54a;
  --teal: #2f8f83;
  --muted: #626b78;
  --mono: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  --page: min(1180px, calc(100% - 40px));
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: Inter, Pretendard, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.65;
  text-rendering: optimizeLegibility;
}
main section[id] { scroll-margin-top: 80px; }
a { color: inherit; text-decoration: none; }
code { font-family: var(--mono); }
h1, h2, h3, p { margin-top: 0; }
a:focus-visible, summary:focus-visible {
  outline: 3px solid color-mix(in srgb, var(--accent) 70%, white);
  outline-offset: 4px;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--accent);
  font-size: 13px;
  font-weight: 750;
  letter-spacing: -.01em;
}

.dashboard-hero {
  width: var(--page);
  margin: 0 auto;
  padding: clamp(64px, 8vw, 104px) 0 clamp(48px, 5vw, 64px);
}

.dashboard-heading { max-width: 760px; }
.dashboard-heading h1 {
  margin-bottom: 24px;
  font-size: clamp(48px, 6vw, 72px);
  line-height: 1.06;
  letter-spacing: -.055em;
}
.lead {
  max-width: 680px;
  margin-bottom: 0;
  color: #46505f;
  font-size: clamp(17px, 1.5vw, 20px);
  line-height: 1.75;
}

.hero-notes {
  margin: 28px 0 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 24px;
  color: var(--muted);
  list-style: none;
  font-size: 14px;
}
.hero-notes li { display: flex; align-items: center; gap: 8px; }
.hero-notes li::before {
  width: 5px;
  height: 5px;
  content: "";
  background: var(--accent);
  border-radius: 50%;
}

.category-grid {
  margin-top: clamp(44px, 6vw, 72px);
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.category-card {
  min-height: 262px;
  padding: 24px;
  position: relative;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  color: var(--ink);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: 0 1px 2px rgba(23, 32, 51, .03);
  transition: border-color 150ms ease, box-shadow 150ms ease, transform 150ms ease;
}
.category-card::before {
  width: 34px;
  height: 3px;
  position: absolute;
  top: 0;
  left: 24px;
  content: "";
  background: var(--accent);
  border-radius: 0 0 3px 3px;
}
.category-card:hover {
  border-color: #aeb8c5;
  box-shadow: 0 12px 28px rgba(23, 32, 51, .08);
  transform: translateY(-2px);
}
.category-top, .category-card footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.category-top {
  color: #727b87;
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .05em;
}
.category-top b {
  color: #7a8490;
  font-family: inherit;
  font-size: 9px;
  font-weight: 650;
  letter-spacing: .03em;
}
.category-card > div:nth-child(2) { margin: auto 0; }
.card-kicker { display: none; }
.category-card h2 {
  margin-bottom: 10px;
  font-size: clamp(22px, 2vw, 28px);
  line-height: 1.15;
  letter-spacing: -.04em;
}
.category-card p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.65;
}
.category-card footer {
  margin-top: 24px;
  padding-top: 16px;
  color: #4f5967;
  border-top: 1px solid var(--line);
  font-size: 13px;
  font-weight: 700;
}
.category-card footer code {
  overflow: hidden;
  color: #7a8490;
  font-size: 10px;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.category-card footer span { color: var(--accent); }
.network-card, .time-card, .image-card, .text-card,
.date-card, .percent-card, .qr-card, .json-card {
  color: var(--ink);
  background: var(--surface);
}
.network-card::before { background: #315ee7; }
.time-card::before { background: #7c5ce5; }
.image-card::before { background: #168f83; }
.text-card::before { background: #d6674d; }
.date-card::before { background: #2f6cba; }
.percent-card::before { background: #c88716; }
.qr-card::before { background: #49566c; }
.json-card::before { background: #8b55a6; }

.guide-section, .about-section, .principles, .faq-section {
  padding-top: clamp(72px, 8vw, 104px);
  padding-bottom: clamp(72px, 8vw, 104px);
}
.guide-section { padding-top: clamp(56px, 6vw, 76px); }
.guide-section, .principles {
  width: var(--page);
  margin: 0 auto;
}
.section-header {
  max-width: 720px;
  margin-bottom: 40px;
}
.section-header h2, .about-section h2, .principles h2 {
  margin-bottom: 20px;
  font-size: clamp(34px, 4vw, 52px);
  line-height: 1.12;
  letter-spacing: -.045em;
}
.section-header > p:last-child {
  max-width: 680px;
  color: var(--muted);
  font-size: 17px;
}

.task-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}
.task-card {
  min-height: 350px;
  padding: 28px;
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
}
.task-card > span {
  color: var(--accent);
  font-size: 12px;
  font-weight: 750;
}
.task-card h3 {
  margin: 36px 0 14px;
  font-size: 25px;
  line-height: 1.25;
  letter-spacing: -.035em;
}
.task-card p { color: var(--muted); font-size: 15px; }
.task-card ul {
  margin: auto 0 0;
  padding: 20px 0 0;
  list-style: none;
  border-top: 1px solid var(--line);
}
.task-card li + li { margin-top: 10px; }
.task-card a {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  color: #394250;
  font-size: 14px;
  font-weight: 700;
}
.task-card a:hover { color: var(--accent); }

.about-section {
  padding-right: max(20px, calc((100% - 1180px) / 2));
  padding-left: max(20px, calc((100% - 1180px) / 2));
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  gap: clamp(50px, 8vw, 110px);
  color: #f7f8fb;
  background: var(--ink-soft);
}
.about-section .eyebrow { color: #9bb2ff; }
.about-copy > p:not(.eyebrow) {
  max-width: 720px;
  color: #c6cdd9;
  font-size: 17px;
}
.about-copy > p + p { margin-top: 20px; }
.fact-grid {
  margin: 0;
  align-self: center;
  border-top: 1px solid #455064;
}
.fact-grid div {
  padding: 22px 0;
  display: grid;
  grid-template-columns: minmax(100px, .4fr) 1fr;
  align-items: baseline;
  gap: 18px;
  border-bottom: 1px solid #455064;
}
.fact-grid dt {
  color: #9bb2ff;
  font-family: var(--mono);
  font-size: clamp(28px, 3vw, 42px);
  font-weight: 750;
}
.fact-grid dd { margin: 0; color: #c6cdd9; }

.principles {
  display: grid;
  grid-template-columns: .85fr 1.15fr;
  gap: clamp(50px, 8vw, 110px);
}
.principles ol {
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--line-strong);
}
.principles li {
  padding: 22px 0;
  display: grid;
  grid-template-columns: 52px 1fr;
  border-bottom: 1px solid var(--line);
}
.principles li b { color: var(--accent); font-family: var(--mono); font-size: 12px; }
.principles li span { color: var(--muted); }
.principles li strong {
  margin-bottom: 4px;
  display: block;
  color: var(--ink);
  font-size: 18px;
}

.faq-section {
  padding-right: max(20px, calc((100% - 1180px) / 2));
  padding-left: max(20px, calc((100% - 1180px) / 2));
  display: grid;
  grid-template-columns: .8fr 1.2fr;
  gap: clamp(50px, 8vw, 110px);
  background: var(--paper-deep);
}
.faq-section .section-header { margin-bottom: 0; }
.faq-list { border-top: 1px solid var(--line-strong); }
.faq-list details { border-bottom: 1px solid var(--line); }
.faq-list summary {
  padding: 22px 38px 22px 0;
  position: relative;
  cursor: pointer;
  list-style: none;
  font-size: 18px;
  font-weight: 700;
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after {
  position: absolute;
  top: 19px;
  right: 2px;
  content: "+";
  color: var(--accent);
  font-size: 24px;
  font-weight: 400;
}
.faq-list details[open] summary::after { content: "−"; }
.faq-list p { margin: -4px 42px 22px 0; color: var(--muted); }

.final-cta {
  width: var(--page);
  margin: clamp(64px, 8vw, 96px) auto;
  padding: clamp(36px, 5vw, 58px);
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 40px;
  color: #eef2ff;
  background: var(--accent);
  border-radius: 16px;
}
.final-cta p { margin-bottom: 10px; color: #ced8ff; font-size: 13px; font-weight: 700; }
.final-cta p, .final-cta h2 { grid-column: 1; }
.final-cta h2 {
  max-width: 720px;
  margin: 0;
  font-size: clamp(32px, 4vw, 52px);
  line-height: 1.1;
  letter-spacing: -.045em;
}
.final-cta a {
  min-height: 48px;
  padding: 11px 18px;
  display: inline-flex;
  align-items: center;
  gap: 24px;
  color: var(--ink);
  background: white;
  border-radius: 9px;
  font-weight: 750;
  white-space: nowrap;
  grid-column: 2;
  grid-row: 1 / 3;
  align-self: end;
}

.site-footer {
  padding: clamp(48px, 6vw, 72px) max(20px, calc((100% - 1180px) / 2)) 28px;
  color: #f2f4f8;
  background: #141b29;
}
.footer-main {
  padding-bottom: clamp(44px, 6vw, 70px);
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 60px;
}
.footer-identity > a {
  display: inline-block;
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -.035em;
}
.footer-identity p { max-width: 470px; margin: 12px 0 0; color: #9fa8b7; }
.footer-links {
  display: grid;
  grid-template-columns: repeat(2, minmax(130px, 1fr));
  gap: 12px 34px;
  font-size: 14px;
}
.footer-links a { color: #d5dae3; }
.footer-links a:hover { color: #9bb2ff; text-decoration: underline; text-underline-offset: 5px; }
.footer-meta {
  padding-top: 20px;
  display: flex;
  justify-content: space-between;
  gap: 24px;
  color: #7f8998;
  border-top: 1px solid #30394a;
}

.document-page main { min-height: 70vh; }
.policy { width: min(780px, calc(100% - 40px)); margin: 0 auto; padding: 80px 0 112px; }
.policy h1 { margin-bottom: 4px; font-size: clamp(42px, 6vw, 68px); letter-spacing: -.05em; }
.policy .updated { color: var(--muted); }
.policy section { padding: 28px 0; border-top: 1px solid var(--line); }
.policy section:first-of-type { margin-top: 48px; }
.policy h2 { margin-bottom: 8px; font-size: 22px; }
.policy section p { margin-bottom: 0; color: var(--muted); }
.back-link { margin-top: 38px; display: inline-block; font-weight: 750; text-decoration: underline; text-underline-offset: 5px; }
.text-link { font-weight: 750; text-decoration: underline; text-underline-offset: 4px; }

@media (min-width: 1280px) {
  .dashboard-heading { max-width: 800px; }
}

@media (max-width: 1279px) {
  .category-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 1023px) {
  .task-grid { grid-template-columns: 1fr; }
  .task-card { min-height: 0; }
  .about-section, .principles, .faq-section { grid-template-columns: 1fr; }
  .final-cta { grid-template-columns: 1fr; align-items: start; }
  .final-cta p, .final-cta h2, .final-cta a { grid-column: 1; grid-row: auto; }
}

@media (max-width: 767px) {
  :root { --page: min(100% - 32px, 1180px); }
  .dashboard-hero { padding-top: 48px; padding-bottom: 72px; }
  .dashboard-heading h1 {
    margin-bottom: 18px;
    font-size: clamp(42px, 11.5vw, 54px);
    line-height: 1.08;
  }
  .dashboard-heading .lead { font-size: 16px; }
  .hero-notes { margin-top: 22px; display: grid; gap: 7px; font-size: 13px; }
  .category-grid { margin-top: 36px; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .category-card { min-height: 166px; padding: 16px; border-radius: 11px; }
  .category-card::before { left: 16px; }
  .category-top { font-size: 8px; }
  .category-top b, .category-card p, .category-card footer code { display: none; }
  .category-card > div:nth-child(2) { margin: 22px 0 0; }
  .category-card h2 { margin: 0; font-size: clamp(19px, 5.7vw, 24px); line-height: 1.14; }
  .category-card footer { margin-top: auto; padding-top: 10px; justify-content: flex-end; font-size: 11px; }
  .guide-section, .about-section, .principles, .faq-section { padding-top: 64px; padding-bottom: 64px; }
  .section-header { margin-bottom: 28px; }
  .section-header h2, .about-section h2, .principles h2 { margin-bottom: 16px; font-size: clamp(32px, 9vw, 42px); }
  .section-header > p:last-child, .about-copy > p:not(.eyebrow) { font-size: 16px; }
  .task-grid { gap: 10px; }
  .task-card { padding: 22px; }
  .task-card h3 { margin: 22px 0 10px; font-size: 23px; }
  .about-section { gap: 34px; }
  .about-copy > p + p { margin-top: 16px; }
  .fact-grid { display: grid; grid-template-columns: repeat(3, 1fr); }
  .fact-grid div { padding: 15px 7px; display: block; border-right: 1px solid #455064; }
  .fact-grid div:last-child { border-right: 0; }
  .fact-grid dt { font-size: 21px; }
  .fact-grid dd { font-size: 11px; }
  .principles, .faq-section { gap: 28px; }
  .principles li { padding: 17px 0; grid-template-columns: 42px 1fr; }
  .faq-list summary { padding-top: 18px; padding-bottom: 18px; font-size: 17px; }
  .faq-list summary::after { top: 15px; }
  .final-cta { margin-top: 48px; margin-bottom: 48px; padding: 28px; gap: 24px; }
  .final-cta h2 { font-size: 32px; }
  .footer-main { padding-bottom: 38px; flex-direction: column; gap: 32px; }
}

@media (max-width: 479px) {
  .footer-links { grid-template-columns: 1fr; }
  .footer-meta { flex-direction: column; gap: 8px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .category-card { transition: none; }
}
