:root {
  --bg: #FBFAF6;
  --surface: #FFFFFF;
  --border: #ECEAE2;
  --text-primary: #2E5A34;
  --text-secondary: #5E7A60;
  --text-tertiary: #93A795;
  --accent: #5C9A46;
  --accent-d: #3C6E3F;
  --accent-soft: rgba(92, 154, 70, 0.12);
  --tint: #F3F8EC;
}

* {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang TC",
    "Noto Sans TC", "Helvetica Neue", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.65;
  color: var(--text-primary);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
}

a {
  color: var(--accent-d);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

.container {
  max-width: 760px;
  margin: 0 auto;
  padding: 32px 20px 80px;
}

.site-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 24px;
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
  background: var(--surface);
}

.site-header .brand-link {
  display: flex;
  align-items: center;
  text-decoration: none;
}

.site-header .brand-wordmark {
  height: 46px;
  width: auto;
  display: block;
}

.site-header nav {
  margin-left: auto;
  display: flex;
  gap: 18px;
}

.site-header nav a {
  font-size: 14px;
  color: var(--text-secondary);
}

.site-header nav a.active,
.site-header nav a:hover {
  color: var(--text-primary);
  text-decoration: none;
}

h1 {
  font-size: 32px;
  font-weight: 800;
  letter-spacing: -0.3px;
  margin: 8px 0 8px;
  line-height: 1.25;
  color: var(--accent-d);
}

h2 {
  font-size: 20px;
  font-weight: 800;
  margin: 40px 0 12px;
  padding-top: 12px;
  border-top: 1px solid var(--border);
  line-height: 1.4;
  color: var(--accent-d);
}

h2:first-of-type {
  border-top: none;
  padding-top: 0;
  margin-top: 32px;
}

h3 {
  font-size: 16px;
  font-weight: 700;
  margin: 24px 0 8px;
  color: var(--text-primary);
}

p {
  margin: 12px 0;
  color: var(--text-secondary);
}

ul {
  padding-left: 22px;
  color: var(--text-secondary);
}

li {
  margin: 6px 0;
}

.meta {
  font-size: 13px;
  color: var(--text-tertiary);
  margin-bottom: 24px;
}

table {
  width: 100%;
  border-collapse: collapse;
  margin: 16px 0;
  font-size: 14px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
}

th,
td {
  padding: 12px 14px;
  text-align: left;
  border-bottom: 1px solid var(--border);
}

th {
  background: var(--tint);
  font-weight: 700;
  color: var(--text-primary);
}

td {
  color: var(--text-secondary);
}

tr:last-child td {
  border-bottom: none;
}

.contact {
  background: var(--tint);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 18px 20px;
  margin: 24px 0;
}

.contact strong {
  color: var(--text-primary);
}

/* ── Hero ── */
.hero {
  position: relative;
  text-align: center;
  padding: 36px 20px 28px;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  overflow: hidden;
  background:
    radial-gradient(ellipse at 50% 30%, var(--accent-soft) 0%, rgba(92, 154, 70, 0) 60%),
    var(--bg);
}

.hero .device {
  position: relative;
  width: 100%;
  max-width: 440px;
  margin: 18px auto 26px;
  display: flex;
  justify-content: center;
  align-items: flex-end;
}

.hero .device .phone {
  width: 54%;
}

.hero .device .phone svg {
  width: 100%;
  height: auto;
  display: block;
  filter: drop-shadow(0 16px 30px rgba(45, 90, 52, 0.16));
}

.hero .device .phone.back {
  transform: rotate(-7deg) scale(0.92);
  margin-right: -9%;
  z-index: 1;
}

.hero .device .phone.front {
  transform: rotate(4deg);
  z-index: 2;
}

.hero .device .peek {
  position: absolute;
  right: -26px;
  bottom: -18px;
  width: 132px;
  height: auto;
  z-index: 3;
  filter: drop-shadow(0 8px 14px rgba(0, 0, 0, 0.2));
}

.hero .tag {
  display: inline-block;
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1px;
  color: #fff;
  background: var(--accent);
  margin-bottom: 18px;
}

.hero h1 {
  font-size: 38px;
  margin-bottom: 12px;
}

.hero .lead {
  font-size: 17px;
  color: var(--text-secondary);
  max-width: 540px;
  margin: 0 auto 24px;
}

.cta-row {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

.cta-row a {
  padding: 13px 24px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 15px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.cta-row a.primary {
  background: var(--accent);
  color: #fff;
}

.cta-row a:hover {
  text-decoration: none;
  filter: brightness(1.05);
}

.cta-lead {
  max-width: 500px;
  margin: 4px auto 14px;
  font-size: 13.5px;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* Secondary action demoted to a quiet text link so LINE is the single button */
.cta-alt {
  display: inline-block;
  margin: 14px auto 0;
  font-size: 14px;
  font-weight: 700;
  color: var(--accent-d);
}

.cta-alt:hover {
  text-decoration: underline;
}

.guardian-box .cta-alt {
  margin: 14px 0 0;
}

/* ── Generic section scaffold ── */
.sect {
  max-width: 880px;
  margin: 0 auto;
  padding: 0 20px;
}

.sec-h {
  text-align: center;
  font-size: 22px;
  font-weight: 800;
  color: var(--accent-d);
  margin: 50px 0 6px;
  line-height: 1.3;
}

.sec-sub {
  text-align: center;
  color: var(--text-secondary);
  max-width: 520px;
  margin: 0 auto 22px;
  font-size: 15px;
  line-height: 1.6;
}

.eyebrow {
  text-align: center;
  color: var(--accent);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 1px;
  margin: 52px 0 0;
}

.band .eyebrow {
  margin-top: 6px;
}

.experts .sec-h {
  margin-top: 6px;
}

/* White-background variant (sits between two tint bands) needs its own bottom room */
.experts-plain {
  padding-bottom: 44px;
}

/* ── Section 3 · experts ── */
.expert-band {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin: 0 auto 24px;
  max-width: 620px;
}

.expert-band span {
  background: var(--tint);
  border: 1px solid #DCEAC9;
  border-radius: 999px;
  padding: 6px 13px;
  font-size: 12.5px;
  font-weight: 700;
  color: var(--accent-d);
}

.expert-row {
  display: flex;
  justify-content: center;
  gap: 22px;
  flex-wrap: wrap;
  margin-top: 6px;
}

.expert {
  flex: 1;
  min-width: 130px;
  max-width: 190px;
  background: none;
  border: none;
  box-shadow: none;
  padding: 6px;
  text-align: center;
}

.portrait {
  width: 118px;
  height: 118px;
  border-radius: 50%;
  margin: 0 auto 12px;
  background: #EFF6E6;
  border: 3px solid #fff;
  box-shadow: 0 8px 20px rgba(45, 90, 52, 0.14);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  overflow: hidden;
}

.portrait svg {
  width: 60px;
  height: 60px;
}

.portrait img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.expert h3 {
  margin: 0 0 3px;
  font-size: 16px;
  color: var(--accent-d);
}

.expert p {
  margin: 0;
  font-size: 12.5px;
  color: var(--text-secondary);
  line-height: 1.5;
}

.disclaimer {
  text-align: center;
  font-size: 11.5px;
  color: var(--text-tertiary);
  margin: 16px auto 0;
  max-width: 540px;
  line-height: 1.6;
}

/* ── Section 5 · guardian ── */
.guardian-box {
  display: flex;
  align-items: center;
  gap: 18px;
  background: var(--tint);
  border: 1px solid #DCEAC9;
  border-radius: 20px;
  padding: 24px;
  margin: 50px 0 8px;
}

.guardian-nutty {
  width: 96px;
  height: auto;
  flex-shrink: 0;
}

.guardian-box h2 {
  border: none;
  padding: 0;
  margin: 0 0 6px;
  font-size: 20px;
  color: var(--accent-d);
}

.guardian-box p {
  margin: 0 0 14px;
  font-size: 14.5px;
  color: var(--text-secondary);
  line-height: 1.6;
}

.guardian-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: stretch;
  margin-top: 18px;
}

.guardian-box .primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 13px 24px;
  border-radius: 999px;
  font-weight: 800;
  font-size: 14.5px;
}

.guardian-box .primary {
  background: var(--accent);
  color: #fff;
}

.guardian-box .primary:hover {
  text-decoration: none;
  filter: brightness(1.05);
}

/* ── Full-bleed bands (background rhythm) ── */
.band {
  width: 100%;
}

.band-tint {
  background: var(--tint);
  padding: 18px 0 40px;
}

.band .sec-h {
  margin-top: 10px;
}

/* 02 · 一個球友的一天 */
.day-flow {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 6px;
  flex-wrap: wrap;
}

.day-step {
  flex: 1;
  min-width: 110px;
  max-width: 160px;
  text-align: center;
  padding: 6px 4px;
}

.day-ic {
  width: 54px;
  height: 54px;
  margin: 0 auto 8px;
  border-radius: 50%;
  background: #fff;
  border: 1px solid #DCEAC9;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  box-shadow: 0 2px 6px rgba(45, 90, 52, 0.08);
}

.day-step h4 {
  margin: 0 0 2px;
  font-size: 14.5px;
  font-weight: 800;
  color: var(--accent-d);
}

.day-step p {
  margin: 0;
  font-size: 12px;
  color: var(--text-secondary);
  line-height: 1.45;
}

.day-arrow {
  align-self: center;
  margin-top: 14px;
  color: var(--accent);
  font-weight: 800;
  font-size: 18px;
}

/* 03 · experts 2-column trust block */
/* 04 · app showcase (phone + callouts) */
.appshow-img {
  width: 100%;
  background: #2E5A37;
}

.appshow-img img {
  display: block;
  width: 100%;
  height: auto;
}

@media (max-width: 600px) {
  .band-tint {
    padding: 8px 0 34px;
  }

  .day-step {
    flex: 1 1 42%;
    min-width: 42%;
    max-width: none;
  }

  .day-arrow {
    display: none;
  }

  

}

@media (max-width: 600px) {

  .expert-row {
    gap: 14px 18px;
  }

  .expert {
    flex: 1 1 40%;
    min-width: 40%;
    max-width: none;
  }

  .portrait {
    width: 104px;
    height: 104px;
  }

  .guardian-box {
    flex-direction: column;
    text-align: center;
  }

  .guardian-cta {
    flex-direction: column;
    align-items: stretch;
  }
}

footer {
  text-align: center;
  font-size: 13px;
  color: var(--text-tertiary);
  flex-shrink: 0;
  margin-top: auto;
  background: var(--bg);
}

.footer-inner {
  max-width: 1080px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-content: center;
  padding: 0 20px;
}

footer a {
  color: var(--text-secondary);
  margin: 0 8px;
}

/* ── Share-card showcase ── */
.share {
  text-align: center;
  padding: 8px 20px 64px;
  max-width: 760px;
  margin: 0 auto;
  /* direct flex child of body — keep it from expanding to the wide gallery */
  min-width: 0;
  width: 100%;
  box-sizing: border-box;
}

.share h2 {
  border-top: none;
  padding-top: 0;
  margin: 8px 0 8px;
}

.share > p {
  max-width: 460px;
  margin: 0 auto;
}

.share-gallery {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  gap: 18px;
  margin: 34px auto 0;
  flex-wrap: wrap;
}

.sharecard {
  position: relative;
  width: 220px;
  height: 293px;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 18px 40px rgba(45, 90, 52, 0.22);
  background: #1A1A1A;
}

.share-gallery .sharecard:nth-child(odd) {
  transform: rotate(-2.5deg);
}

.share-gallery .sharecard:nth-child(even) {
  transform: rotate(2.5deg);
  margin-top: 10px;
}

.sc-practice {
  background: linear-gradient(155deg, #357142 0%, #1C432A 100%);
}

.sc-visit {
  background: linear-gradient(155deg, #3E7B4B 0%, #214A2D 100%);
}

.sharecard .court-photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

.sharecard .scrim {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to bottom, rgba(0, 0, 0, 0.45) 0%, rgba(0, 0, 0, 0) 42%),
    linear-gradient(to top, rgba(26, 26, 26, 0.82) 0%, rgba(26, 26, 26, 0) 32%);
}

.sharecard .ov {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 14px;
  color: #fff;
  text-align: left;
}

.sharecard .ov-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.sharecard .badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 12px;
  font-weight: 800;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
}

.sharecard .badge .bi {
  width: 15px;
  height: 15px;
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.5));
}

.sharecard .mark {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 11px;
  font-weight: 800;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
}

.sharecard .mark .mark-wm {
  height: 13px;
  width: auto;
  display: block;
  filter: drop-shadow(0 1px 3px rgba(0, 0, 0, 0.55));
}

.sharecard .court {
  font-size: 20px;
  font-weight: 900;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.5);
}

.sharecard .vs {
  font-size: 11px;
  opacity: 0.92;
  margin-top: 3px;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
}

.sharecard .score {
  font-size: 30px;
  font-weight: 900;
  color: #FFE15C;
  margin-top: 8px;
  letter-spacing: 1px;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.5);
}

.sharecard .score.stat {
  display: flex;
  align-items: baseline;
  gap: 3px;
}

.sharecard .score.stat small {
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0;
  color: #F4ECD8;
}

/* ── Install guide ── */
.guide .tag-line {
  display: inline-block;
  background: var(--accent);
  color: #fff;
  font-size: 12px;
  font-weight: 800;
  padding: 5px 12px;
  border-radius: 999px;
  letter-spacing: 0.5px;
}

.guide h1 {
  margin-top: 14px;
}

.plat-nav {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin: 22px 0 4px;
}

.plat-btn {
  flex: 1;
  min-width: 180px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px;
  border-radius: 14px;
  background: var(--surface);
  border: 1px solid var(--accent);
  color: var(--accent-d);
  font-weight: 800;
}

.plat-btn-ic {
  height: 22px;
  width: auto;
  flex-shrink: 0;
}

.plat-btn:hover {
  text-decoration: none;
  background: var(--tint);
}

.plat {
  margin-top: 36px;
}

.plat-h {
  display: flex;
  align-items: center;
  gap: 10px;
  border-top: none;
  padding-top: 0;
}

.plat-ic {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 9px;
  flex-shrink: 0;
}

.plat-ic svg {
  width: 19px;
  height: 19px;
}

.plat-ic.ios {
  background: #1d1d1f;
  color: #fff;
}

.plat-ic.and {
  background: #EAF4E1;
  color: #3C6E3F;
}

.plat-ic.line {
  background: #06C755;
  color: #fff;
}

.steps {
  list-style: none;
  padding: 0;
  margin: 18px 0 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.step {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 16px 18px;
  box-shadow: 0 1px 2px rgba(45, 50, 35, 0.04);
}

.step-no {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  font-weight: 800;
  font-size: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 2px;
}

.step-body {
  flex: 1;
  min-width: 0;
}

.step-body h3 {
  margin: 0 0 4px;
  font-size: 16px;
  color: var(--accent-d);
}

.step-body p {
  margin: 0 0 8px;
  font-size: 14px;
  line-height: 1.6;
}

.step-body p:last-child {
  margin-bottom: 0;
}

.step-art {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
}

.step-art svg {
  width: 40px;
  height: 40px;
}

.step-art svg.tf {
  width: 44px;
  height: 44px;
}

.step-art img {
  width: 38px;
  height: 38px;
  border-radius: 9px;
}

.mini-btn {
  display: inline-block;
  font-size: 13px;
  font-weight: 700;
  color: var(--accent-d);
  border: 1px solid var(--accent);
  border-radius: 999px;
  padding: 7px 14px;
}

.mini-btn:hover {
  text-decoration: none;
  background: var(--tint);
}

.dl-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 15px;
  font-weight: 800;
  color: #fff;
  background: var(--accent);
  border-radius: 12px;
  padding: 12px 20px;
}

.dl-btn:hover {
  text-decoration: none;
  filter: brightness(1.05);
}

.dl-btn.ios {
  background: #1d1d1f;
}

.dl-btn.and {
  background: #3C8E3A;
}

/* iOS section — neutral dark theme (Android keeps the default green) */
.plat-btn[href="#ios"] {
  border-color: #1d1d1f;
  color: #1d1d1f;
}

.plat-btn[href="#ios"]:hover {
  background: #F2F2F4;
}

#ios .plat-h {
  color: #1d1d1f;
}

#ios .step-no {
  background: #1d1d1f;
}

#ios .step-body h3 {
  color: #1d1d1f;
}

#ios .step-art {
  color: #3A3A3C;
}

#ios .mini-btn {
  color: #1d1d1f;
  border-color: #D2D2D7;
}

#ios .mini-btn:hover {
  background: #F2F2F4;
}

#ios .hint a {
  color: #1d1d1f;
  text-decoration: underline;
}

#ios .callout {
  background: #F2F2F4;
  border-color: #D2D2D7;
}

.guide .hint {
  font-size: 12.5px;
  color: var(--text-tertiary);
  margin-top: 8px;
}

/* LINE 老用戶入口條 — 琥珀色，跨平台、不撞 iOS 藍 / Android 綠 */
.line-cue {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 18px 0 2px;
  padding: 13px 16px;
  border-radius: 14px;
  background: #FBF1DF;
  border: 1px solid #EAD3A8;
  color: #8A5A14;
  font-size: 14px;
  line-height: 1.5;
}

.line-cue:hover {
  text-decoration: none;
  background: #F8E9CE;
}

.line-cue-ic {
  font-size: 20px;
  flex-shrink: 0;
}

.line-cue-txt {
  flex: 1;
  min-width: 0;
}

.line-cue-txt b {
  color: #7A4E10;
}

.line-cue-go {
  flex-shrink: 0;
  font-weight: 800;
  color: #9A6516;
  white-space: nowrap;
}

@media (max-width: 600px) {
  .line-cue {
    flex-wrap: wrap;
  }
  .line-cue-go {
    margin-left: 32px;
  }
}

/* LINE section — amber theme (區隔 Android 綠；LINE 圖標保留官方綠) */
.cross-tag {
  display: inline-block;
  margin-top: 10px;
  background: #F4E3C4;
  color: #8A5A14;
  font-size: 12px;
  font-weight: 800;
  padding: 4px 11px;
  border-radius: 999px;
  letter-spacing: 0.3px;
}

#line .step-no {
  background: #C77D1A;
}

#line .step-body h3 {
  color: #9A6516;
}

#line .step-art {
  color: #C77D1A;
}

#line .mini-btn {
  color: #9A6516;
  border-color: #E3C48E;
}

#line .mini-btn:hover {
  background: #FBF1DF;
}

#line .callout {
  background: #FBF1DF;
  border-color: #EAD3A8;
}

.callout {
  margin-top: 14px;
  background: var(--tint);
  border: 1px solid #DCEAC9;
  border-radius: 14px;
  padding: 14px 16px;
  font-size: 13.5px;
  color: var(--text-secondary);
  line-height: 1.6;
}

.guide code {
  background: #EFEEE8;
  padding: 1px 6px;
  border-radius: 5px;
  font-size: 13px;
  color: var(--text-primary);
}

.guide-foot {
  margin: 36px 0 0;
  text-align: center;
  font-size: 14px;
  color: var(--text-secondary);
}

@media (max-width: 600px) {
  .container {
    padding: 24px 18px 60px;
  }

  .share-gallery {
    flex-wrap: nowrap;
    justify-content: flex-start;
    gap: 14px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-padding: 0 18px;
    padding: 8px 18px 16px;
    margin-top: 24px;
    -webkit-overflow-scrolling: touch;
  }

  .share-gallery .sharecard {
    flex: 0 0 auto;
    scroll-snap-align: start;
  }

  .share-gallery .sharecard:nth-child(odd),
  .share-gallery .sharecard:nth-child(even) {
    transform: none;
    margin-top: 0;
  }

  .step-art {
    width: 40px;
    height: 40px;
  }

  .step-art svg {
    width: 34px;
    height: 34px;
  }

  .step-art svg.tf {
    width: 38px;
    height: 38px;
  }

  h1 {
    font-size: 26px;
  }

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

  .hero .lead {
    font-size: 16px;
  }

  .site-header {
    padding: 10px 18px;
  }

  .site-header .brand-wordmark {
    height: 38px;
  }

  .hero .device {
    max-width: 366px;
  }

  .hero .device .peek {
    width: 108px;
    right: -18px;
  }

  

  h2 {
    font-size: 18px;
  }

  table {
    font-size: 13px;
  }

  th,
  td {
    padding: 10px 12px;
  }
}
