:root {
  color-scheme: light;
  --brand: #ff4500;
  --brand-deep: #d93a00;
  --brand-soft: #fff0ea;
  --canvas: #f4f3ee;
  --surface: #fffefd;
  --ink: #1d1d1b;
  --muted: #66655f;
  --line: #dcdad2;
  --blue: #007ea7;
  --green: #16794a;
  --shadow: 0 20px 55px rgba(38, 32, 25, 0.09);
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "PingFang TC",
    "Noto Sans TC", "Microsoft JhengHei", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--canvas);
  font-size: 16px;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-underline-offset: 0.2em;
}

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

button,
a {
  -webkit-tap-highlight-color: transparent;
}

:focus-visible {
  outline: 3px solid rgba(0, 126, 167, 0.38);
  outline-offset: 4px;
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 100;
  transform: translateY(-150%);
  padding: 10px 14px;
  border-radius: 10px;
  color: white;
  background: var(--ink);
  transition: transform 160ms var(--ease-out);
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid rgba(220, 218, 210, 0.86);
  background: rgba(244, 243, 238, 0.9);
  backdrop-filter: blur(18px);
}

.nav-shell {
  width: min(1180px, calc(100% - 40px));
  min-height: 72px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  color: var(--ink);
  font-size: 18px;
  font-weight: 760;
  letter-spacing: -0.02em;
  text-decoration: none;
}

.brand-mark {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  color: white;
  background: var(--brand);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.2);
  font-size: 17px;
  font-weight: 820;
}

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

.nav-links a {
  padding: 9px 12px;
  border-radius: 10px;
  color: #44433f;
  font-size: 14px;
  font-weight: 620;
  text-decoration: none;
  transition: color 160ms ease, background-color 160ms ease,
    transform 140ms var(--ease-out);
}

.nav-links a[aria-current="page"] {
  color: var(--brand-deep);
  background: var(--brand-soft);
}

.nav-links a:active,
.button:active,
.footer-links a:active {
  transform: scale(0.97);
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 12px;
  color: var(--ink);
  background: var(--surface);
  font: inherit;
}

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

.hero {
  padding: 88px 0 54px;
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(360px, 0.95fr);
  align-items: center;
  gap: clamp(48px, 8vw, 104px);
}

.eyebrow {
  margin: 0 0 16px;
  color: var(--brand-deep);
  font-size: 14px;
  font-weight: 760;
  letter-spacing: 0.08em;
}

h1,
h2,
h3 {
  line-height: 1.18;
  letter-spacing: -0.035em;
}

h1 {
  max-width: 760px;
  margin: 0;
  font-size: clamp(42px, 6.4vw, 74px);
  font-weight: 820;
}

.hero-copy {
  max-width: 650px;
  margin: 24px 0 0;
  color: var(--muted);
  font-size: clamp(18px, 2vw, 21px);
}

.actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-top: 32px;
}

.button {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 18px;
  border: 1px solid transparent;
  border-radius: 13px;
  font-size: 15px;
  font-weight: 720;
  text-decoration: none;
  transition: transform 140ms var(--ease-out), background-color 160ms ease,
    border-color 160ms ease;
}

.button-primary {
  color: white;
  background: var(--brand);
  box-shadow: 0 10px 28px rgba(255, 69, 0, 0.2);
}

.button-secondary {
  border-color: var(--line);
  color: var(--ink);
  background: var(--surface);
}

.microcopy {
  margin-top: 14px;
  color: var(--muted);
  font-size: 13px;
}

.product-preview {
  position: relative;
  min-height: 530px;
}

.device {
  position: absolute;
  top: 0;
  right: 0;
  width: min(350px, 90%);
  padding: 14px;
  border: 1px solid rgba(255, 255, 255, 0.42);
  border-radius: 42px;
  background: #1f1f1d;
  box-shadow: 0 34px 80px rgba(33, 29, 24, 0.2);
  transform: rotate(2deg);
}

.device-screen {
  min-height: 500px;
  padding: 24px 18px;
  border-radius: 30px;
  background: #f8f7f3;
}

.device-bar {
  width: 92px;
  height: 24px;
  margin: -17px auto 24px;
  border-radius: 0 0 15px 15px;
  background: #1f1f1d;
}

.preview-title {
  margin: 0;
  font-size: 25px;
  font-weight: 780;
}

.preview-subtitle {
  margin: 4px 0 18px;
  color: var(--muted);
  font-size: 13px;
}

.today-card,
.preview-card {
  border: 1px solid #e5e2d9;
  border-radius: 16px;
  background: white;
}

.today-card {
  padding: 16px;
  color: white;
  background: var(--brand);
  box-shadow: 0 16px 28px rgba(255, 69, 0, 0.14);
}

.today-card strong {
  display: block;
  font-size: 22px;
}

.today-card span {
  font-size: 13px;
  opacity: 0.85;
}

.preview-list {
  display: grid;
  gap: 10px;
  margin-top: 14px;
}

.preview-card {
  display: grid;
  grid-template-columns: 38px 1fr auto;
  align-items: center;
  gap: 12px;
  padding: 12px;
}

.preview-icon {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  color: var(--brand-deep);
  background: var(--brand-soft);
  font-weight: 800;
}

.preview-card strong,
.preview-card small {
  display: block;
}

.preview-card strong {
  font-size: 14px;
}

.preview-card small {
  color: var(--muted);
  font-size: 12px;
}

.preview-time {
  color: var(--muted);
  font-size: 12px;
}

.floating-note {
  position: absolute;
  left: 0;
  bottom: 36px;
  width: 220px;
  padding: 16px;
  border: 1px solid rgba(220, 218, 210, 0.9);
  border-radius: 16px;
  background: rgba(255, 254, 253, 0.94);
  box-shadow: var(--shadow);
  backdrop-filter: blur(14px);
}

.floating-note strong {
  display: block;
  margin-bottom: 3px;
}

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

.section {
  padding: 92px 0;
}

.section-dark {
  color: #f7f6f2;
  background: #11110f;
}

.section-heading {
  max-width: 720px;
  margin-bottom: 42px;
}

.section-heading h2 {
  margin: 0;
  font-size: clamp(32px, 4vw, 48px);
}

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

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

.role-grid,
.feature-grid,
.trust-grid {
  display: grid;
  gap: 18px;
}

.role-grid {
  grid-template-columns: repeat(2, 1fr);
}

.feature-grid {
  grid-template-columns: repeat(4, 1fr);
}

.trust-grid {
  grid-template-columns: repeat(3, 1fr);
}

.card {
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--surface);
}

.role-card {
  min-height: 280px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.role-card.coach {
  color: white;
  border-color: #1d1d1b;
  background: #1d1d1b;
}

.role-label,
.number {
  color: var(--brand-deep);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.role-card.coach .role-label {
  color: #ff8a60;
}

.card h3 {
  margin: 12px 0 10px;
  font-size: 24px;
}

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

.role-card.coach p {
  color: #bbb9b2;
}

.feature-card {
  min-height: 230px;
  padding: 24px;
  border-color: #292925;
  background: #191917;
}

.feature-card h3 {
  font-size: 20px;
}

.feature-card p {
  color: #aaa8a1;
  font-size: 14px;
}

.privacy-band {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 56px;
  align-items: center;
  padding: 42px;
  border: 1px solid #ffd0bf;
  border-radius: 24px;
  background: var(--brand-soft);
}

.privacy-band h2 {
  margin: 0;
  font-size: clamp(30px, 4vw, 44px);
}

.privacy-band p {
  margin: 16px 0 0;
  color: #6c554d;
}

.privacy-points {
  display: grid;
  gap: 12px;
}

.privacy-point {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.74);
}

.check {
  flex: 0 0 auto;
  width: 22px;
  height: 22px;
  display: grid;
  place-items: center;
  margin-top: 2px;
  border-radius: 50%;
  color: white;
  background: var(--green);
  font-size: 12px;
}

.cta {
  padding: 64px 0 88px;
}

.cta-box {
  padding: 52px;
  border-radius: 24px;
  color: white;
  background: var(--brand);
  box-shadow: 0 26px 60px rgba(255, 69, 0, 0.19);
}

.cta-box h2 {
  max-width: 700px;
  margin: 0;
  font-size: clamp(32px, 5vw, 52px);
}

.cta-box p {
  max-width: 660px;
  margin: 16px 0 0;
  color: rgba(255, 255, 255, 0.84);
}

.cta-box .button {
  color: var(--brand-deep);
  background: white;
}

.site-footer {
  border-top: 1px solid var(--line);
  padding: 36px 0 42px;
  color: var(--muted);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 28px;
  align-items: start;
}

.footer-copy {
  margin: 12px 0 0;
  font-size: 13px;
}

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

.footer-links a {
  font-size: 13px;
  transition: transform 140ms var(--ease-out), color 160ms ease;
}

.legal-hero {
  padding: 72px 0 44px;
}

.legal-hero h1 {
  max-width: 900px;
  font-size: clamp(40px, 6vw, 64px);
}

.legal-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  margin-top: 18px;
  color: var(--muted);
  font-size: 14px;
}

.legal-layout {
  display: grid;
  grid-template-columns: 230px minmax(0, 760px);
  justify-content: center;
  gap: 60px;
  padding: 32px 0 100px;
}

.toc {
  position: sticky;
  top: 100px;
  align-self: start;
}

.toc strong {
  display: block;
  margin-bottom: 10px;
  font-size: 13px;
}

.toc a {
  display: block;
  padding: 5px 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
  text-decoration: none;
}

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

.legal-content > p:first-child {
  margin-top: 0;
}

.legal-content h2 {
  margin: 58px 0 18px;
  padding-top: 12px;
  font-size: 28px;
  scroll-margin-top: 90px;
}

.legal-content h2:first-of-type {
  margin-top: 0;
}

.legal-content h3 {
  margin: 32px 0 12px;
  font-size: 20px;
}

.legal-content p,
.legal-content li {
  color: #45443f;
}

.legal-content li + li {
  margin-top: 8px;
}

.legal-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 24px 0;
  font-size: 14px;
}

.legal-content th,
.legal-content td {
  padding: 13px 12px;
  border: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

.legal-content th {
  background: #ebe9e2;
}

.notice,
.step-card {
  padding: 18px 20px;
  border-radius: 16px;
  background: var(--brand-soft);
}

.notice {
  border-left: 4px solid var(--brand);
}

.step-list {
  display: grid;
  gap: 12px;
  margin: 24px 0;
  padding: 0;
  list-style: none;
}

.step-card {
  display: grid;
  grid-template-columns: 36px 1fr;
  gap: 12px;
  background: var(--surface);
  border: 1px solid var(--line);
}

.step-number {
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  color: white;
  background: var(--brand);
  font-weight: 800;
}

.step-card strong,
.step-card span {
  display: block;
}

.step-card span {
  margin-top: 2px;
  color: var(--muted);
}

.support-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin-top: 28px;
}

.support-card {
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--surface);
}

.support-card h2,
.support-card h3 {
  margin-top: 0;
}

.support-card p:last-child {
  margin-bottom: 0;
}

@media (hover: hover) and (pointer: fine) {
  .nav-links a:hover {
    color: var(--brand-deep);
    background: rgba(255, 240, 234, 0.72);
  }

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

  .button-secondary:hover {
    border-color: #b7b4aa;
  }

  .footer-links a:hover,
  .toc a:hover {
    color: var(--brand-deep);
  }
}

@media (max-width: 940px) {
  .hero-grid,
  .privacy-band {
    grid-template-columns: 1fr;
  }

  .product-preview {
    width: min(520px, 100%);
    margin: 0 auto;
  }

  .feature-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .legal-layout {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .toc {
    position: static;
    padding: 18px;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: var(--surface);
  }

  .toc nav {
    columns: 2;
  }
}

@media (max-width: 720px) {
  .nav-shell,
  .shell {
    width: min(100% - 28px, 1180px);
  }

  .nav-toggle {
    display: grid;
    place-items: center;
  }

  .nav-links {
    position: absolute;
    top: 64px;
    left: 14px;
    right: 14px;
    display: none;
    padding: 10px;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: var(--surface);
    box-shadow: var(--shadow);
  }

  .nav-links[data-open="true"] {
    display: grid;
  }

  .nav-links a {
    padding: 12px;
  }

  .hero {
    padding-top: 58px;
  }

  .hero-grid {
    gap: 56px;
  }

  .product-preview {
    min-height: 500px;
  }

  .device {
    position: relative;
    width: min(340px, 92%);
    margin-left: auto;
  }

  .floating-note {
    bottom: 12px;
  }

  .section {
    padding: 68px 0;
  }

  .role-grid,
  .feature-grid,
  .trust-grid,
  .support-grid {
    grid-template-columns: 1fr;
  }

  .privacy-band,
  .cta-box {
    padding: 28px 22px;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }

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

  .legal-hero {
    padding-top: 50px;
  }

  .legal-layout {
    padding-bottom: 72px;
  }

  .toc nav {
    columns: 1;
  }

  .legal-content h2 {
    font-size: 25px;
  }

  .table-scroll {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
}

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

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

@media print {
  body {
    background: white;
  }

  .site-header,
  .site-footer,
  .toc,
  .button {
    display: none !important;
  }

  .shell,
  .legal-layout {
    width: 100%;
    max-width: none;
  }

  .legal-hero {
    padding: 0 0 24px;
  }

  .legal-layout {
    display: block;
    padding: 0;
  }

  .legal-content h2 {
    break-after: avoid;
  }

  a {
    text-decoration: none;
  }
}
