:root {
  --bg: #080a0d;
  --surface: #151922;
  --text: #f2e8d8;
  --muted: #bdb6aa;
  --subtle: #8e8a82;
  --line: rgba(255, 255, 255, 0.08);
  --line-warm: rgba(216, 194, 154, 0.18);
  --accent: #d8c29a;
  --accent-strong: #e6cfa8;
  --max-width: 920px;
}

* {
  box-sizing: border-box;
}

html {
  font-size: 16px;
}

body {
  margin: 0;
  min-width: 320px;
  background: var(--bg);
  color: var(--text);
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Hiragino Sans", "Yu Gothic", sans-serif;
  line-height: 1.75;
}

a {
  color: var(--accent-strong);
  text-decoration: none;
  text-underline-offset: 0.22em;
}

a:hover,
a:focus-visible {
  text-decoration: underline;
}

a:focus-visible {
  outline: 3px solid rgba(216, 194, 154, 0.7);
  outline-offset: 4px;
  border-radius: 6px;
}

.wrap {
  width: min(100% - 40px, var(--max-width));
  margin: 0 auto;
}

.site-header {
  border-bottom: 1px solid var(--line);
  background: rgba(8, 10, 13, 0.82);
}

.site-footer {
  border-top: 1px solid var(--line);
}

.home-page .site-header {
  position: absolute;
  z-index: 2;
  width: 100%;
  background: linear-gradient(180deg, rgba(8, 10, 13, 0.72), rgba(8, 10, 13, 0));
  border-bottom: 0;
}

.header-wrap,
.footer-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-top: 16px;
  padding-bottom: 16px;
}

.brand {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  font-size: 1rem;
  font-weight: 500;
}

.brand-mark {
  width: 28px;
  height: 28px;
  display: block;
  border-radius: 8px;
}

.site-nav,
.footer-nav,
.plain-links {
  display: flex;
  gap: 8px 18px;
  flex-wrap: wrap;
}

.site-nav a,
.footer-nav a,
.plain-links a {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  color: var(--muted);
}

.site-nav a[aria-current="page"],
.footer-nav a[aria-current="page"] {
  color: var(--text);
  font-weight: 600;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 0;
  font-size: 1rem;
  line-height: 1.6;
  font-weight: 400;
  color: var(--muted);
}

h2 {
  margin-bottom: 14px;
  font-size: 1.25rem;
  line-height: 1.45;
  font-weight: 600;
}

.page-wrap h1 {
  margin-bottom: 16px;
  color: var(--text);
  font-size: 2rem;
  line-height: 1.3;
  font-weight: 500;
}

p,
li,
dd {
  color: var(--muted);
}

p {
  margin-bottom: 16px;
  max-width: 48rem;
}

ul {
  margin: 0;
  padding-left: 1.25rem;
}

li + li {
  margin-top: 8px;
}

.lede {
  color: var(--text);
  font-size: 1.15rem;
  line-height: 1.7;
}

.small {
  color: var(--subtle);
  font-size: 0.92rem;
}

.app-hero {
  min-height: 100svh;
  display: grid;
  align-items: center;
  padding: 96px 0 72px;
  background:
    linear-gradient(180deg, rgba(8, 10, 13, 0.24), rgba(8, 10, 13, 0.56) 52%, rgba(8, 10, 13, 0.86)),
    url("assets/bg-night-portrait.png") center bottom / cover no-repeat;
}

.app-hero-wrap {
  display: grid;
  justify-items: center;
}

.app-home {
  width: min(100%, 440px);
  min-height: 520px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 24px;
  text-align: center;
}

.app-name {
  margin: 0;
  color: var(--accent-strong);
  font-size: clamp(3.6rem, 14vw, 5.5rem);
  line-height: 1.12;
  font-weight: 400;
}

.flow-panel {
  min-height: 96px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 18px 22px;
  border: 1px solid rgba(216, 194, 154, 0.13);
  border-radius: 32px;
  background: rgba(21, 25, 34, 0.52);
}

.flow-step {
  min-width: 48px;
  display: grid;
  justify-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 0.75rem;
  line-height: 1.2;
}

.flow-icon {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(216, 194, 154, 0.16);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.025);
  color: var(--muted);
  font-size: 0.82rem;
  font-variant-numeric: tabular-nums;
}

.flow-step-primary {
  color: var(--accent);
  font-weight: 500;
}

.flow-step-primary .flow-icon {
  width: 48px;
  height: 48px;
  border-color: rgba(216, 194, 154, 0.38);
  background: rgba(216, 194, 154, 0.11);
  color: var(--accent);
}

.flow-line {
  width: 30px;
  height: 1px;
  margin-bottom: 22px;
  background: rgba(216, 194, 154, 0.18);
}

.hero-note {
  margin: 0;
  max-width: 32rem;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.8;
}

.detail-section,
.notice-section,
.page-wrap {
  padding-top: 56px;
  padding-bottom: 64px;
}

.detail-section {
  border-top: 1px solid var(--line);
  background: #0d1015;
}

.detail-wrap {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.78fr);
  gap: 48px;
}

.spec-list {
  margin: 0;
}

.spec-list div {
  padding: 18px 0;
  border-top: 1px solid var(--line);
}

.spec-list div:first-child {
  padding-top: 0;
  border-top: 0;
}

.spec-list dt {
  margin-bottom: 4px;
  color: var(--accent);
  font-size: 0.82rem;
  font-weight: 600;
}

.spec-list dd,
.faq-list dd {
  margin: 0;
}

.notice-section {
  background: var(--bg);
}

.faq-list {
  margin: 0;
}

.faq-list dt {
  margin-top: 22px;
  color: var(--text);
  font-weight: 600;
}

.faq-list dd {
  margin-top: 6px;
}

.site-footer p {
  margin: 0;
  color: var(--subtle);
}

@media (max-width: 760px) {
  .detail-wrap {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .app-home {
    min-height: 480px;
  }
}

@media (max-width: 560px) {
  .wrap {
    width: min(100% - 32px, var(--max-width));
  }

  .header-wrap,
  .footer-wrap {
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
  }

  .home-page .header-wrap {
    flex-direction: row;
    align-items: center;
  }

  .flow-panel {
    width: 100%;
    padding-right: 16px;
    padding-left: 16px;
  }

  .flow-line {
    width: 18px;
  }
}
