:root {
  color-scheme: light;
  --felt: #0d3d31;
  --felt-deep: #06281f;
  --jade: #2fa374;
  --jade-light: #dff4e9;
  --bone: #fff9ed;
  --paper: #f5f0e6;
  --paper-deep: #e9e1d2;
  --ink: #17201d;
  --muted: #65716c;
  --line: #d8d0c0;
  --brass: #d6a84f;
  --cinnabar: #c84a32;
  --white: #ffffff;
  --shadow: 0 22px 60px rgba(30, 38, 34, 0.12);
  --radius: 10px;
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  overflow-x: hidden;
  background: var(--paper);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", sans-serif;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
}

a:focus-visible,
summary:focus-visible {
  outline: 3px solid var(--brass);
  outline-offset: 4px;
  border-radius: 4px;
}

.shell {
  width: min(1120px, calc(100% - 36px));
  max-width: calc(100vw - 36px);
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid rgba(216, 208, 192, 0.84);
  background: rgba(245, 240, 230, 0.94);
  backdrop-filter: blur(16px);
}

.nav {
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.nav-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 16px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  color: var(--felt-deep);
  font-family: "Avenir Next", Avenir, sans-serif;
  font-weight: 800;
  letter-spacing: -0.02em;
  text-decoration: none;
}

.brand img {
  width: 38px;
  height: 38px;
  border-radius: 9px;
  box-shadow: 0 6px 16px rgba(13, 61, 49, 0.18);
}

.brand span {
  white-space: nowrap;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 6px;
}

.nav-links a {
  padding: 8px 11px;
  border-radius: 7px;
  color: #40504a;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
}

.nav-links a:hover,
.nav-links a[aria-current="page"] {
  background: var(--bone);
  color: var(--felt);
}

main {
  overflow: hidden;
}

.hero {
  position: relative;
  padding: 72px 0 64px;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(320px, 0.9fr);
  gap: 72px;
  align-items: center;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--jade);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  margin: 0;
  color: var(--felt-deep);
  font-family: "Avenir Next", Avenir, sans-serif;
  line-height: 1.12;
  letter-spacing: -0.035em;
}

h1 {
  max-width: 760px;
  font-size: clamp(46px, 7vw, 82px);
  font-weight: 800;
}

h2 {
  font-size: clamp(30px, 4vw, 46px);
}

h3 {
  font-size: 21px;
  letter-spacing: -0.02em;
}

.hero-lede {
  max-width: 650px;
  margin: 24px 0 0;
  color: #46534e;
  font-size: clamp(18px, 2.2vw, 22px);
  line-height: 1.55;
}

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

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  padding: 0 18px;
  border: 1px solid transparent;
  border-radius: 8px;
  font-weight: 850;
  text-decoration: none;
  transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.button:hover {
  transform: translateY(-2px);
}

.button-primary {
  background: var(--felt);
  color: var(--white);
  box-shadow: 0 12px 28px rgba(13, 61, 49, 0.2);
}

.button-primary:hover {
  background: var(--felt-deep);
}

.button-secondary {
  border-color: var(--line);
  background: var(--bone);
  color: var(--felt);
}

.hero-art {
  position: relative;
  min-height: 430px;
  display: grid;
  place-items: center;
}

.app-icon {
  position: relative;
  z-index: 2;
  width: min(280px, 66vw);
  border-radius: 25%;
  box-shadow: var(--shadow);
}

.tile-rack {
  position: absolute;
  z-index: 3;
  right: 0;
  bottom: 22px;
  display: flex;
  align-items: flex-end;
  gap: 4px;
  padding: 9px 11px 8px;
  border: 1px solid rgba(214, 168, 79, 0.55);
  border-radius: 8px;
  background: rgba(255, 249, 237, 0.94);
  box-shadow: 0 16px 34px rgba(30, 38, 34, 0.15);
  transform: rotate(-3deg);
}

.tile-rack img {
  width: 48px;
  height: auto;
}

.section {
  padding: 70px 0;
}

.section-dark {
  background: var(--felt-deep);
  color: var(--bone);
}

.section-dark h2,
.section-dark h3 {
  color: var(--bone);
}

.section-dark .card h3 {
  color: var(--felt-deep);
}

.section-dark .eyebrow {
  color: #72d4aa;
}

.section-heading {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(280px, 1.2fr);
  gap: 60px;
  align-items: end;
  margin-bottom: 34px;
}

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

.section-dark .section-heading p {
  color: #b8c9c2;
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.card {
  min-height: 190px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bone);
}

.card .signal {
  display: block;
  width: 34px;
  height: 4px;
  margin-bottom: 24px;
  border-radius: 999px;
  background: var(--jade);
}

.card:nth-child(2) .signal {
  background: var(--brass);
}

.card:nth-child(3) .signal {
  background: var(--cinnabar);
}

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

.legal-hero,
.support-hero {
  padding: 64px 0 34px;
}

.page-title {
  max-width: 820px;
  font-size: clamp(42px, 6vw, 68px);
}

.page-intro {
  max-width: 760px;
  margin: 20px 0 0;
  color: var(--muted);
  font-size: 19px;
  overflow-wrap: anywhere;
}

.contact-panel {
  width: 100%;
  max-width: 100%;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 28px;
  align-items: center;
  margin: 24px 0 42px;
  padding: 30px;
  border-radius: var(--radius);
  background: var(--felt);
  color: var(--bone);
  box-shadow: var(--shadow);
}

.contact-panel h2 {
  color: var(--bone);
  font-size: clamp(26px, 4vw, 38px);
}

.contact-panel p {
  margin: 9px 0 0;
  color: #c5d8d0;
}

.contact-panel .button {
  background: var(--bone);
  color: var(--felt);
}

.faq-list {
  display: grid;
  gap: 10px;
}

details {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bone);
}

summary {
  position: relative;
  cursor: pointer;
  list-style: none;
  padding: 20px 56px 20px 22px;
  color: var(--felt-deep);
  font-family: "Avenir Next", Avenir, sans-serif;
  font-size: 18px;
  font-weight: 800;
}

summary::-webkit-details-marker {
  display: none;
}

summary::after {
  content: "+";
  position: absolute;
  top: 17px;
  right: 22px;
  color: var(--jade);
  font-size: 24px;
  line-height: 1;
}

details[open] summary::after {
  content: "−";
}

.faq-answer {
  padding: 0 22px 20px;
  border-top: 1px solid var(--line);
}

.faq-answer p {
  margin: 16px 0 0;
  color: var(--muted);
}

.legal-layout {
  display: grid;
  grid-template-columns: 230px minmax(0, 1fr);
  gap: 56px;
  align-items: start;
  padding-bottom: 72px;
}

.legal-nav {
  position: sticky;
  top: 104px;
  display: grid;
  gap: 7px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bone);
}

.legal-nav a {
  padding: 7px 9px;
  border-radius: 6px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
}

.legal-nav a:hover {
  background: var(--jade-light);
  color: var(--felt);
}

.legal-content {
  min-width: 0;
}

.status-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-bottom: 34px;
}

.status-item {
  padding: 15px;
  border: 1px solid #bddfce;
  border-radius: 8px;
  background: var(--jade-light);
  color: var(--felt);
  font-size: 14px;
  font-weight: 800;
  text-align: center;
}

.legal-section {
  padding: 0 0 34px;
  scroll-margin-top: 110px;
}

.legal-section + .legal-section {
  padding-top: 34px;
  border-top: 1px solid var(--line);
}

.legal-section h2 {
  font-size: 28px;
}

.legal-section p,
.legal-section li {
  color: #4f5b56;
}

.legal-section a,
.inline-link {
  color: var(--felt);
  font-weight: 800;
  text-decoration-color: var(--jade);
  text-underline-offset: 3px;
}

.meta {
  margin-top: 14px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 750;
}

.notice {
  margin: 26px 0 34px;
  padding: 17px 18px;
  border-left: 4px solid var(--brass);
  background: var(--bone);
  color: #4f5b56;
}

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

.footer-grid {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 28px;
}

.footer-brand {
  max-width: 430px;
}

.footer-brand strong {
  display: block;
  color: var(--felt-deep);
  font-family: "Avenir Next", Avenir, sans-serif;
  font-size: 18px;
}

.footer-brand p {
  margin: 7px 0 0;
  color: var(--muted);
  font-size: 14px;
}

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

.footer-links a {
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
}

.footer-links a:hover {
  color: var(--felt);
}

@media (max-width: 840px) {
  .hero-grid,
  .section-heading,
  .legal-layout {
    grid-template-columns: 1fr;
  }

  .hero-grid {
    gap: 28px;
  }

  .hero-art {
    min-height: 360px;
  }

  .section-heading {
    gap: 18px;
  }

  .legal-layout {
    gap: 30px;
  }

  .legal-nav {
    position: static;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 680px) {
  .shell {
    width: min(calc(100% - 28px), 1120px);
    max-width: calc(100vw - 28px);
  }

  .site-header {
    position: static;
  }

  .nav {
    min-height: auto;
    align-items: flex-start;
    flex-direction: column;
    padding: 16px 0 13px;
    gap: 12px;
  }

  .nav-actions {
    width: 100%;
    align-items: flex-start;
    flex-direction: column-reverse;
    gap: 10px;
  }

  .nav-links {
    width: 100%;
    overflow-x: auto;
    padding-bottom: 2px;
  }

  .nav-links a {
    white-space: nowrap;
  }

  .hero {
    padding: 48px 0 50px;
  }

  .page-title {
    max-width: 330px;
    font-size: 38px;
    overflow-wrap: anywhere;
  }

  .hero-art {
    min-height: 300px;
  }

  .app-icon {
    width: 210px;
  }

  .tile-rack {
    right: 4px;
    bottom: 6px;
  }

  .tile-rack img {
    width: 38px;
  }

  .section,
  .legal-hero,
  .support-hero {
    padding: 48px 0;
  }

  .card-grid,
  .status-strip {
    grid-template-columns: 1fr;
  }

  .card {
    min-height: 0;
  }

  .contact-panel {
    grid-template-columns: 1fr;
    padding: 24px;
    overflow: hidden;
  }

  .contact-panel > *,
  .section-heading > *,
  .faq-list,
  details,
  summary {
    min-width: 0;
  }

  .contact-panel h2,
  .contact-panel p,
  summary {
    overflow-wrap: anywhere;
  }

  .contact-panel .button {
    width: 100%;
  }

  .legal-nav {
    grid-template-columns: 1fr 1fr;
  }

  .footer-grid {
    flex-direction: column;
  }

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

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

  .button {
    transition: none;
  }
}
