:root {
  --primary: #2f6f5e;
  --primary-dark: #1f5446;
  --primary-soft: #d6ede4;
  --mint: #6fbfa8;
  --bg: #f5fbf6;
  --surface: #ffffff;
  --text: #1b2a25;
  --text-muted: #55675f;
  --border: #d5e3dc;
  --radius: 12px;
  --radius-lg: 20px;
  --shadow: 0 10px 30px rgba(31, 84, 70, 0.12);
  --max-width: 1080px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang TC",
    "Noto Sans TC", "Microsoft JhengHei", Roboto, "Helvetica Neue", Arial,
    sans-serif;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 72px;
}

body {
  margin: 0;
  font-family: var(--font);
  color: var(--text);
  background: var(--bg);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: var(--primary);
}

h1,
h2,
h3 {
  line-height: 1.3;
  margin: 0 0 0.5em;
}

p {
  margin: 0 0 1em;
}

.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 20px;
}

/* Header */

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(245, 251, 246, 0.92);
  backdrop-filter: saturate(180%) blur(12px);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--border);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
  gap: 16px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  text-decoration: none;
  font-weight: 700;
  font-size: 1.1rem;
}

.brand img {
  width: 36px;
  height: 36px;
  border-radius: 9px;
}

.brand small {
  font-weight: 500;
  color: var(--text-muted);
  font-size: 0.85rem;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 24px;
}

.site-nav a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.95rem;
}

.site-nav a:hover {
  color: var(--primary);
}

.lang-switch {
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 4px 12px;
  font-size: 0.85rem !important;
}

/* Buttons & badges */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  transition: background 0.2s, transform 0.2s;
}

.btn-primary {
  background: var(--primary);
  color: #fff;
}

.btn-primary:hover {
  background: var(--primary-dark);
  transform: translateY(-1px);
}

.btn-outline {
  border: 1px solid var(--primary);
  color: var(--primary);
}

.btn-outline:hover {
  background: var(--primary-soft);
}

.btn svg {
  width: 20px;
  height: 20px;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}

.store-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.store-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 16px;
  border-radius: var(--radius);
  background: #e6ece9;
  color: #7b8a84;
  cursor: default;
  user-select: none;
}

.store-badge svg {
  width: 22px;
  height: 22px;
  fill: currentColor;
}

.store-badge span {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.store-badge small {
  font-size: 0.7rem;
}

.store-badge strong {
  font-size: 0.95rem;
}

/* Hero */

.hero {
  padding: 72px 0 80px;
  background: radial-gradient(
      circle at 85% 20%,
      rgba(111, 191, 168, 0.28),
      transparent 55%
    ),
    linear-gradient(180deg, #e9f6ef 0%, var(--bg) 100%);
  overflow: hidden;
}

.hero .container {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  align-items: center;
  gap: 48px;
}

.eyebrow {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 999px;
  background: var(--primary-soft);
  color: var(--primary);
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 16px;
}

.hero h1 {
  font-size: clamp(2rem, 4.5vw, 3rem);
  letter-spacing: 0.01em;
}

.hero .lead {
  font-size: 1.15rem;
  color: var(--text-muted);
  max-width: 34em;
  margin-bottom: 28px;
}

.hero .store-badges {
  margin-top: 20px;
}

.phone {
  width: 100%;
  max-width: 280px;
  margin: 0 auto;
  border-radius: 36px;
  padding: 10px;
  background: #1b2a25;
  box-shadow: var(--shadow), 0 30px 60px rgba(31, 84, 70, 0.18);
}

.phone img {
  border-radius: 28px;
  width: 100%;
  height: auto;
  aspect-ratio: 9 / 16;
  object-fit: cover;
  object-position: top;
}

/* Sections */

.section {
  padding: 80px 0;
}

.section-alt {
  background: var(--surface);
}

.section-head {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 48px;
}

.section-head h2 {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
}

.section-head p {
  color: var(--text-muted);
  font-size: 1.05rem;
}

.grid {
  display: grid;
  gap: 20px;
}

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

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

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

.card h3 {
  font-size: 1.15rem;
}

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

.card .note {
  display: block;
  margin-top: 8px;
  font-size: 0.85rem;
  color: #7b8a84;
}

.icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--primary-soft);
  color: var(--primary);
  margin-bottom: 16px;
}

.icon svg {
  width: 24px;
  height: 24px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.pain .card {
  border-left: 4px solid var(--mint);
}

/* Steps */

.steps {
  counter-reset: step;
}

.step {
  position: relative;
  padding-top: 64px;
}

.step::before {
  counter-increment: step;
  content: counter(step);
  position: absolute;
  top: 20px;
  left: 24px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Screens */

.screens {
  display: flex;
  justify-content: center;
  gap: 48px;
}

.screens figure {
  margin: 0;
  text-align: center;
  flex: 0 0 auto;
  width: 280px;
}

.screens figcaption {
  margin-top: 20px;
}

.screens figcaption strong {
  display: block;
  font-size: 1.05rem;
}

.screens figcaption span {
  color: var(--text-muted);
  font-size: 0.95rem;
}

/* Contact */

.contact {
  background: linear-gradient(135deg, var(--primary) 0%, #3f8c77 100%);
  color: #fff;
  text-align: center;
}

.contact h2 {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
}

.contact p {
  color: rgba(255, 255, 255, 0.85);
  max-width: 36em;
  margin: 0 auto 28px;
}

.contact .cta-row,
.contact .store-badges {
  justify-content: center;
}

.contact .store-badges {
  margin-top: 20px;
}

.contact .btn-primary {
  background: #fff;
  color: var(--primary);
}

.contact .btn-primary:hover {
  background: var(--primary-soft);
}

.contact .store-badge {
  background: rgba(255, 255, 255, 0.15);
  color: rgba(255, 255, 255, 0.8);
}

/* Footer */

.site-footer {
  padding: 32px 0;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.site-footer .container {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.site-footer p {
  margin: 0;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 24px;
}

.footer-links a {
  color: var(--text-muted);
  text-decoration: none;
}

.footer-links a:hover {
  color: var(--primary);
  text-decoration: underline;
}

/* Legal */

.legal {
  padding: 56px 0 80px;
}

.legal .container {
  max-width: 760px;
}

.legal h1 {
  font-size: clamp(1.8rem, 4vw, 2.4rem);
}

.legal-meta {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-bottom: 2em;
}

.legal h2 {
  font-size: 1.3rem;
  margin-top: 2.2em;
}

.legal h3 {
  font-size: 1.05rem;
  margin-top: 1.4em;
}

.legal ul {
  padding-left: 1.4em;
  margin: 0 0 1em;
}

.legal li {
  margin-bottom: 0.4em;
}

/* 404 */

.not-found {
  min-height: 70vh;
  display: flex;
  align-items: center;
  text-align: center;
}

.not-found .container {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.not-found img {
  width: 96px;
  border-radius: 22px;
  margin-bottom: 24px;
}

.not-found .cta-row {
  justify-content: center;
}

/* Responsive */

@media (max-width: 900px) {
  .grid-3 {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 760px) {
  .site-nav a:not(.lang-switch) {
    display: none;
  }

  .brand small {
    display: none;
  }

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

  .hero .container {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .phone {
    max-width: 240px;
  }

  .section {
    padding: 64px 0;
  }

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

  .screens {
    justify-content: flex-start;
    gap: 24px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    padding-bottom: 12px;
    margin: 0 -20px;
    padding-left: 20px;
    padding-right: 20px;
  }

  .screens figure {
    width: 240px;
    scroll-snap-align: center;
  }

  .site-footer .container {
    flex-direction: column;
    text-align: center;
  }
}

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

  .btn {
    transition: none;
  }
}
