:root {
  color-scheme: light dark;
  --bg: #f3f5f4;
  --surface: #ffffff;
  --surface-soft: #e9eeec;
  --text: #14201f;
  --muted: #50605d;
  --line: #cbd5d1;
  --accent: #bd581f;
  --accent-hover: #963f14;
  --accent-text: #ffffff;
  --teal: #176f68;
  --focus: #9a3d0f;
  --shadow: 0 18px 44px rgba(36, 68, 63, 0.11);
  --radius: 14px;
  --header-height: 72px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0b1114;
    --surface: #111a1e;
    --surface-soft: #182427;
    --text: #f1f4f2;
    --muted: #b3c0bc;
    --line: #304044;
    --accent: #e78543;
    --accent-hover: #f19b61;
    --accent-text: #13100e;
    --teal: #79c8bf;
    --focus: #ffb27d;
    --shadow: 0 18px 48px rgba(0, 0, 0, 0.28);
  }
}

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

html {
  scroll-behavior: smooth;
}

body {
  min-width: 320px;
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Hiragino Kaku Gothic ProN", "Yu Gothic", "YuGothic", sans-serif;
  font-size: 16px;
  line-height: 1.75;
  text-rendering: optimizeLegibility;
}

a {
  color: inherit;
}

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

.skip-link {
  position: fixed;
  top: 8px;
  left: 8px;
  z-index: 100;
  padding: 10px 16px;
  border-radius: 8px;
  background: var(--text);
  color: var(--bg);
  transform: translateY(-150%);
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header {
  border-bottom: 1px solid var(--line);
  background: color-mix(in srgb, var(--bg) 92%, transparent);
}

.header-inner {
  min-height: var(--header-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.shell {
  width: min(1120px, calc(100% - 40px));
  margin-inline: auto;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  min-height: 44px;
  text-decoration: none;
}

.brand-logo {
  display: block;
  width: 112px;
  height: auto;
  filter: invert(1);
}

@media (prefers-color-scheme: dark) {
  .brand-logo {
    filter: none;
  }
}

.brand-label {
  padding-left: 14px;
  border-left: 1px solid var(--line);
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.03em;
  white-space: nowrap;
}

.header-nav {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-link {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  padding: 8px 12px;
  border-radius: 8px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
}

.nav-link:hover,
.nav-link[aria-current="page"] {
  background: var(--surface-soft);
  color: var(--text);
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 0.52fr);
  gap: 56px;
  align-items: end;
  padding-block: 80px 72px;
}

.hero-copy {
  max-width: 760px;
}

.eyebrow {
  margin: 0 0 16px;
  color: var(--teal);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.08em;
}

h1,
h2,
h3,
p,
li {
  overflow-wrap: break-word;
  word-break: normal;
}

@supports (word-break: auto-phrase) {
  h1,
  h2,
  h3,
  p,
  li {
    word-break: auto-phrase;
  }
}

.phrase {
  display: inline;
  white-space: nowrap;
}

h1 {
  max-width: 820px;
  margin: 0;
  font-size: clamp(2.45rem, 6vw, 4.75rem);
  font-weight: 650;
  letter-spacing: -0.055em;
  line-height: 1.08;
}

.hero-text {
  max-width: 38rem;
  margin: 24px 0 0;
  color: var(--muted);
  font-size: clamp(1rem, 2vw, 1.14rem);
}

.hero-note {
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.hero-note > strong,
.hero-note > span {
  display: block;
}

.hero-note strong {
  margin-bottom: 6px;
  font-size: 15px;
}

.hero-note span {
  color: var(--muted);
  font-size: 14px;
}

.section {
  padding-block: 72px;
}

.section-heading {
  max-width: 680px;
  margin-bottom: 32px;
}

.section-heading h2,
.content-column h2,
.support-panel h2,
.privacy-copy h2 {
  margin: 0 0 12px;
  font-size: clamp(1.55rem, 3vw, 2.15rem);
  letter-spacing: -0.035em;
  line-height: 1.25;
}

.section-heading p,
.content-column p,
.privacy-copy p {
  margin: 0;
  color: var(--muted);
}

.product-category {
  padding-top: 28px;
  border-top: 1px solid var(--line);
}

.category-heading {
  display: grid;
  grid-template-columns: minmax(0, 0.7fr) minmax(0, 1.3fr);
  gap: 32px;
  align-items: baseline;
  margin-bottom: 28px;
}

.category-heading h3,
.category-heading p {
  margin: 0;
}

.category-heading h3 {
  font-size: clamp(1.25rem, 2.5vw, 1.65rem);
  letter-spacing: -0.025em;
}

.category-heading p {
  color: var(--muted);
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 20px;
}

.product-card {
  position: relative;
  display: grid;
  min-height: 260px;
  align-content: space-between;
  gap: 36px;
  padding: 30px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: 0 1px 0 color-mix(in srgb, var(--text) 4%, transparent);
  text-decoration: none;
  transition: transform 150ms ease, border-color 150ms ease, box-shadow 150ms ease;
}

.product-card:nth-child(1) {
  grid-column: span 7;
}

.product-card:nth-child(2) {
  grid-column: span 5;
  background: color-mix(in srgb, var(--teal) 8%, var(--surface));
}

.product-card:nth-child(3) {
  grid-column: 3 / span 8;
  min-height: 230px;
  background: color-mix(in srgb, var(--accent) 8%, var(--surface));
}

.product-card:hover {
  border-color: color-mix(in srgb, var(--accent) 52%, var(--line));
  box-shadow: var(--shadow);
  transform: translateY(-3px);
}

.product-card:active,
.button:active {
  transform: translateY(1px);
}

.product-mark {
  display: grid;
  width: 52px;
  height: 52px;
  place-items: center;
  border-radius: 12px;
  background: var(--text);
  color: var(--bg);
  font-size: 19px;
  font-weight: 850;
}

.product-card-copy h4 {
  margin: 0;
  font-size: clamp(1.35rem, 3vw, 1.9rem);
  letter-spacing: -0.035em;
  line-height: 1.28;
}

.product-card-copy p {
  max-width: 50ch;
  margin: 12px 0 0;
  color: var(--muted);
}

.card-link {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  gap: 10px;
  margin-top: 22px;
  color: var(--accent);
  font-weight: 800;
}

.guidance {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: 48px;
  align-items: start;
  padding: 40px;
  border-radius: var(--radius);
  background: var(--text);
  color: var(--bg);
}

.guidance h2 {
  margin: 0;
  font-size: clamp(1.7rem, 4vw, 2.6rem);
  letter-spacing: -0.045em;
  line-height: 1.2;
}

.guidance-list,
.check-list {
  margin: 0;
  padding-left: 1.3em;
}

.guidance-list li + li,
.check-list li + li {
  margin-top: 10px;
}

.page-header {
  padding-block: 50px 34px;
}

.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin-bottom: 30px;
  color: var(--muted);
  font-size: 14px;
}

.breadcrumbs a {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}

.page-title-wrap {
  display: grid;
  grid-template-columns: 68px minmax(0, 1fr);
  gap: 22px;
  align-items: start;
}

.page-title-wrap h1 {
  max-width: 900px;
  font-size: clamp(2.15rem, 5vw, 4.2rem);
}

.product-type {
  margin: 0 0 10px;
  color: var(--teal);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.04em;
}

.page-lead {
  max-width: 64ch;
  margin: 22px 0 0;
  color: var(--muted);
  font-size: 1.08rem;
}

.help-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(290px, 0.48fr);
  gap: 56px;
  align-items: start;
  padding-block: 36px 88px;
}

.content-column {
  display: grid;
  gap: 46px;
}

.content-block {
  padding-top: 28px;
  border-top: 1px solid var(--line);
}

.content-block:first-child {
  padding-top: 0;
  border-top: 0;
}

.check-list {
  margin-top: 18px;
  color: var(--muted);
}

.support-panel {
  position: sticky;
  top: 24px;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.support-panel p {
  margin: 0 0 18px;
  color: var(--muted);
}

.button {
  display: inline-flex;
  width: 100%;
  min-height: 50px;
  align-items: center;
  justify-content: center;
  padding: 12px 18px;
  border-radius: 10px;
  background: var(--accent);
  color: var(--accent-text);
  font-weight: 850;
  text-align: center;
  text-decoration: none;
  white-space: nowrap;
  transition: transform 120ms ease, background-color 120ms ease;
}

.button:hover {
  background: var(--accent-hover);
}

.email-fallback {
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  font-size: 14px;
}

.email-fallback strong,
.email-address {
  display: block;
}

.email-address {
  margin-top: 5px;
  color: var(--teal);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 13px;
  font-weight: 700;
  overflow-wrap: anywhere;
  word-break: break-all;
}

.security-note {
  margin-top: 20px;
  padding: 14px 16px;
  border-radius: 10px;
  background: var(--surface-soft);
  color: var(--muted);
  font-size: 13px;
}

.source-link {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  color: var(--teal);
  font-weight: 750;
}

.privacy-copy,
.error-copy {
  max-width: 760px;
  padding-block: 72px 96px;
}

.privacy-copy h1,
.error-copy h1 {
  font-size: clamp(2.3rem, 6vw, 4.6rem);
}

.privacy-copy > p,
.error-copy > p {
  margin: 22px 0 0;
  color: var(--muted);
}

.privacy-copy section {
  margin-top: 48px;
  padding-top: 28px;
  border-top: 1px solid var(--line);
}

.back-link {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  margin-top: 30px;
  color: var(--accent);
  font-weight: 850;
}

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

.footer-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 32px;
  align-items: center;
  min-height: 128px;
  padding-block: 28px;
}

.footer-brand {
  display: flex;
  gap: 18px;
  align-items: center;
}

.partner-logo {
  width: 104px;
  height: auto;
  filter: invert(1);
}

@media (prefers-color-scheme: dark) {
  .partner-logo {
    filter: none;
  }
}

.footer-copy {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 6px 18px;
}

.footer-links a {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
}

@media (max-width: 767px) {
  .shell {
    width: min(100% - 32px, 1120px);
  }

  .header-inner {
    align-items: flex-start;
    min-height: auto;
    padding-block: 14px;
  }

  .brand {
    gap: 10px;
  }

  .brand-logo {
    width: 90px;
  }

  .brand-label {
    padding-left: 10px;
    font-size: 12px;
  }

  .header-nav .nav-link:not([aria-current="page"]) {
    display: none;
  }

  .hero,
  .guidance,
  .help-layout,
  .footer-inner {
    grid-template-columns: 1fr;
  }

  .hero {
    gap: 32px;
    padding-block: 52px 48px;
  }

  .section {
    padding-block: 52px;
  }

  .category-heading,
  .product-grid {
    grid-template-columns: 1fr;
  }

  .category-heading {
    gap: 8px;
  }

  .product-card:nth-child(n) {
    grid-column: 1;
    min-height: 230px;
    padding: 24px;
  }

  .guidance {
    gap: 28px;
    padding: 28px 24px;
  }

  .page-title-wrap {
    grid-template-columns: 52px minmax(0, 1fr);
    gap: 16px;
  }

  .page-title-wrap .product-mark {
    width: 52px;
    height: 52px;
  }

  .help-layout {
    gap: 38px;
    padding-block: 24px 64px;
  }

  .support-panel {
    position: static;
  }

  .footer-links {
    justify-content: flex-start;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.001ms !important;
  }
}
