﻿:root {
  --navy: #14243b;
  --navy-deep: #0d1b2d;
  --gold: #b69a65;
  --gold-light: #e7d9bb;
  --ivory: #f7f5f0;
  --white: #ffffff;
  --ink: #202b38;
  --muted: #78818b;
  --line: #e8e8e4;
  --green: #507966;
  --radius: 18px;
  --shadow: 0 12px 38px rgba(20,36,59,.055);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--ivory);
  color: var(--ink);
  font-family: "Microsoft YaHei", "PingFang SC",
    "Noto Sans SC", system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
  line-height: 1.65;
}

button, input {
  font: inherit;
}

button {
  cursor: pointer;
}

button:focus-visible,
input:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 3px;
}

.app-shell {
  max-width: 1100px;
  min-height: 100vh;
  margin: 0 auto;
  background: var(--white);
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 6%;
  background: var(--white);
  border-bottom: 1px solid var(--line);
}

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

.brand-mark {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  background: var(--navy);
  color: var(--gold-light);
  border-radius: 13px;
  font-family: Georgia, serif;
  font-size: 25px;
}

.brand strong {
  display: block;
  color: var(--navy);
  font-size: 17px;
  letter-spacing: .02em;
}

.brand span {
  display: block;
  color: var(--muted);
  font-size: 9px;
  letter-spacing: .13em;
}

.version {
  color: var(--gold);
  font-size: 12px;
  font-weight: 700;
}

.hero {
  min-height: 365px;
  display: flex;
  align-items: center;
  padding: 65px 7%;
  color: white;
  background:
    linear-gradient(110deg,
      rgba(13,27,45,.96),
      rgba(20,36,59,.78)),
    radial-gradient(circle at 80% 20%,
      #697c79, transparent 50%),
    var(--navy);
}

.hero-content {
  max-width: 650px;
}

.eyebrow,
.section-heading > span {
  color: var(--gold);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .15em;
}

.hero h1 {
  margin: 18px 0;
  font-size: clamp(27px, 4.5vw, 45px);
  line-height: 1.4;
  font-weight: 600;
  letter-spacing: .025em;
}

.hero p {
  max-width: 440px;
  color: #d9e0e6;
  font-size: 14px;
}

main > section:not(.hero) {
  padding: 48px 7%;
}

.section-heading {
  margin-bottom: 23px;
}

.section-heading h2 {
  margin: 7px 0;
  color: var(--navy);
  font-size: clamp(21px, 3vw, 27px);
  font-weight: 650;
}

.section-heading p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

.status-card {
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 23px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.status-icon {
  width: 48px;
  height: 48px;
  flex-shrink: 0;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: #f0eee8;
  color: var(--gold);
  font-size: 29px;
}

.status-card > div:nth-child(2) {
  flex: 1;
  min-width: 0;
}

.status-card strong {
  color: var(--navy);
  font-size: 16px;
}

.status-card p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 12px;
}

.status-pill {
  flex-shrink: 0;
  padding: 5px 10px;
  border-radius: 20px;
  background: #f2eee6;
  color: #917b53;
  font-size: 11px;
}

.primary-button,
.secondary-button {
  width: 100%;
  min-height: 49px;
  margin-top: 19px;
  padding: 12px 18px;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 600;
  transition: transform .2s, background .2s;
}

.primary-button {
  border: none;
  background: var(--navy);
  color: white;
}

.primary-button:disabled {
  opacity: .5;
  cursor: not-allowed;
}

.secondary-button {
  border: 1px solid var(--navy);
  background: white;
  color: var(--navy);
}

.secondary-button:hover {
  background: #f5f7f9;
}

.helper-text {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 12px;
  text-align: center;
}

.preferences {
  background: #faf9f6;
}

.preference-list {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: white;
}

.preference-item {
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 19px 21px;
  border-bottom: 1px solid var(--line);
  cursor: pointer;
}

.preference-item:last-child {
  border-bottom: none;
}

.preference-symbol {
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: #f4f1e9;
  color: #9c8455;
  font-size: 21px;
}

.preference-copy {
  flex: 1;
  min-width: 0;
}

.preference-copy strong {
  display: block;
  color: var(--navy);
  font-size: 14px;
}

.preference-copy small {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-size: 11px;
}

.preference-item input {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  accent-color: var(--navy);
  cursor: pointer;
}

.device-card,
.guide-card {
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: white;
  box-shadow: var(--shadow);
}

.device-row {
  display: flex;
  justify-content: space-between;
  gap: 15px;
  padding: 15px 0;
  border-bottom: 1px solid var(--line);
  font-size: 13px;
}

.device-row:first-child {
  padding-top: 0;
}

.device-row strong {
  color: var(--navy);
  text-align: right;
  font-size: 12px;
}

.guide {
  background: #faf9f6;
}

.guide-card h3 {
  margin: 0 0 8px;
  color: var(--navy);
  font-size: 15px;
}

.guide-card h3:not(:first-child) {
  margin-top: 25px;
}

.guide-card p {
  margin: 0;
  color: #626d78;
  font-size: 13px;
}

.guide-note {
  margin-top: 22px !important;
  padding-top: 17px;
  border-top: 1px solid var(--line);
  color: #987c4d !important;
}

footer {
  padding: 38px 7%;
  background: var(--navy-deep);
  color: white;
  text-align: center;
}

footer span {
  font-family: Georgia, serif;
  font-size: 20px;
}

footer p {
  margin: 7px 0;
  color: #c8d1d9;
  font-size: 12px;
}

footer small {
  color: #98a4b1;
  font-size: 10px;
}

@media (max-width: 600px) {
  .topbar {
    padding: 15px 20px;
  }

  .hero {
    min-height: 335px;
    padding: 55px 25px;
  }

  .hero h1 {
    font-size: 29px;
  }

  main > section:not(.hero) {
    padding: 38px 20px;
  }

  .status-card {
    flex-wrap: wrap;
    padding: 19px;
  }

  .status-pill {
    margin-left: 63px;
  }

  .preference-item {
    padding: 17px 15px;
    gap: 12px;
  }

  .device-card,
  .guide-card {
    padding: 19px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: .01ms !important;
    animation-duration: .01ms !important;
  }
}
