/* 小麥Jimmy 落地頁 — 對齊 app 暖色調 */
:root {
  --bg-top: #f7dccf;
  --bg-bottom: #f5ede6;
  --bg: #f5ede6;
  --surface: #ffffff;
  --ink: #241e1b;
  --ink-muted: #5c534e;
  --accent: #e0663f;
  --accent-hover: #c95530;
  --accent-soft: rgba(224, 102, 63, 0.12);
  --border: rgba(36, 30, 27, 0.08);
  --shadow: 0 12px 36px rgba(36, 30, 27, 0.08);
  --radius: 20px;
  --radius-sm: 14px;
  --max-width: 720px;
  --font: -apple-system, BlinkMacSystemFont, "PingFang TC", "Hiragino Sans CNS",
    "Noto Sans TC", "Helvetica Neue", sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: linear-gradient(180deg, var(--bg-top) 0%, var(--bg-bottom) 42%, var(--bg) 100%);
  background-attachment: fixed;
  line-height: 1.65;
  font-size: 1.0625rem;
  -webkit-font-smoothing: antialiased;
}

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

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

a:hover {
  text-decoration: underline;
}

.container {
  width: min(100% - 2rem, var(--max-width));
  margin-inline: auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  background: rgba(247, 220, 207, 0.82);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 56px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--ink);
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: -0.02em;
  text-decoration: none;
}

.brand:hover {
  text-decoration: none;
}

.brand-icon {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  object-fit: cover;
}

.nav {
  display: flex;
  gap: 1.1rem;
}

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

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

/* —— Hero —— */
.hero {
  padding: 1.75rem 0 2.5rem;
}

.hero-inner {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.hero-copy h1 {
  margin: 0 0 0.85rem;
  font-size: clamp(1.85rem, 6.2vw, 2.55rem);
  line-height: 1.22;
  letter-spacing: -0.03em;
  font-weight: 750;
}

.hero-title-single-line {
  white-space: nowrap;
  letter-spacing: -0.04em;
  font-size: clamp(1.45rem, 5.6vw, 2.55rem);
}

.hero-sub {
  margin: 0 0 1.35rem;
  font-size: clamp(1.05rem, 3.4vw, 1.2rem);
  color: var(--ink-muted);
  line-height: 1.55;
  max-width: 36ch;
}

.download-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.btn-store {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  min-height: 52px;
  padding: 0.65rem 1.15rem;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  background: #2d2825;
  color: #fff;
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  box-shadow: 0 8px 22px rgba(36, 30, 27, 0.15);
  transition: transform 0.15s ease, background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.btn-store:hover {
  text-decoration: none;
  transform: translateY(-1px);
  background: #3a322e;
}

.btn-store[data-store="ios"] {
  background: #2d2825;
  color: #fff;
}

.btn-store[data-store="ios"]:hover {
  background: #3a322e;
}

.btn-store[data-store="android"] {
  background: #ffffff;
  color: #241e1b;
  border-color: rgba(52, 168, 83, 0.35);
}

.btn-store[data-store="android"]:hover {
  background: #f7fff9;
  border-color: rgba(52, 168, 83, 0.6);
}

.btn-store[data-store="android"] svg {
  color: #34a853;
}

.btn-store .store-label {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
  text-align: left;
}

.btn-store .store-label small {
  font-size: 0.7rem;
  font-weight: 500;
  opacity: 0.85;
}

.btn-store .store-label strong {
  font-size: 1.02rem;
  font-weight: 700;
}

.btn-store svg {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
}

.btn-store.is-hidden {
  display: none;
}

.hero-shot {
  margin: 0.25rem auto 0;
  width: min(100%, 260px);
}

.phone-frame {
  border-radius: 28px;
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  will-change: transform;
}

.phone-frame img {
  width: 100%;
  aspect-ratio: 9 / 19.5;
  object-fit: cover;
  background: linear-gradient(160deg, #fce8df, #f5ede6 60%);
}

.shot-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 420px;
  padding: 1.5rem;
  text-align: center;
  color: var(--ink-muted);
  font-size: 0.95rem;
  background: linear-gradient(165deg, #fce8df, #f5ede6);
}

.shot-placeholder strong {
  color: var(--accent);
  font-size: 0.85rem;
  letter-spacing: 0.02em;
}

/* —— Sections —— */
.section {
  padding: 2.75rem 0;
}

.section-title {
  margin: 0 0 0.4rem;
  font-size: clamp(1.4rem, 4vw, 1.75rem);
  letter-spacing: -0.02em;
}

.section-lead {
  margin: 0 0 1.5rem;
  color: var(--ink-muted);
  font-size: 1.05rem;
}

.feature-list {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.feature-card {
  display: grid;
  gap: 1rem;
  padding: 1.25rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.feature-icon {
  width: 48px;
  height: 48px;
  color: var(--accent);
}

.feature-card h3 {
  margin: 0 0 0.35rem;
  font-size: 1.2rem;
  letter-spacing: -0.02em;
}

.feature-card p {
  margin: 0;
  color: var(--ink-muted);
  font-size: 1.02rem;
}

.analysis-highlights {
  margin: 0.65rem 0 0;
  padding-left: 1.15rem;
  color: var(--ink-muted);
  font-size: 0.98rem;
  line-height: 1.5;
}

.analysis-highlights li {
  margin: 0.2rem 0;
}

.feature-shot {
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--border);
  background: #f8efe9;
}

.feature-shot img,
.feature-shot .shot-placeholder {
  min-height: 200px;
  aspect-ratio: 9 / 16;
  max-height: 320px;
  object-fit: cover;
}

.feature-shot .shot-placeholder {
  min-height: 200px;
}

/* —— Trust —— */
.trust-band {
  margin: 0.5rem 0 0;
  padding: 1.35rem 1.4rem;
  background: var(--accent-soft);
  border-radius: var(--radius);
  border: 1px solid rgba(224, 102, 63, 0.15);
}

.trust-band p {
  margin: 0;
  font-size: 1.05rem;
  color: var(--ink);
  line-height: 1.55;
}

/* —— CTA —— */
.cta-panel {
  text-align: center;
  padding: 2rem 1.35rem;
  background: var(--surface);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}

.cta-panel h2 {
  margin: 0 0 0.5rem;
  font-size: clamp(1.35rem, 4vw, 1.65rem);
}

.cta-panel p {
  margin: 0 0 1.35rem;
  color: var(--ink-muted);
}

.cta-panel .download-row {
  justify-content: center;
}

/* —— Footer —— */
.site-footer {
  padding: 2rem 0 2.75rem;
  border-top: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.35);
}

.footer-disclaimer {
  margin: 0 0 1.25rem;
  font-size: 0.92rem;
  color: var(--ink-muted);
  line-height: 1.55;
}

.footer-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  font-size: 0.9rem;
  color: var(--ink-muted);
}

.footer-meta p {
  margin: 0;
}

.footer-links {
  display: flex;
  gap: 1rem;
}

.footer-links a {
  color: var(--ink-muted);
  font-weight: 500;
}

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

/* —— Privacy page —— */
.policy {
  max-width: 680px;
  padding: 2.5rem 0 1rem;
}

.policy h1 {
  margin: 0 0 0.75rem;
  font-size: clamp(1.75rem, 5vw, 2.2rem);
}

.policy-intro {
  color: var(--ink-muted);
  font-size: 1.05rem;
}

.policy section {
  margin-top: 1.85rem;
}

.policy section h2 {
  margin: 0 0 0.45rem;
  font-size: 1.15rem;
}

.policy section p {
  margin: 0;
  color: var(--ink-muted);
}

.policy-updated {
  margin-top: 2.25rem;
  font-size: 0.9rem;
  color: var(--ink-muted);
}

.back-link {
  margin-top: 1.5rem;
}

/* —— Motion —— */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

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

  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .phone-frame {
    transform: none !important;
  }

  .btn-store {
    transition: none;
  }
}

/* —— Desktop —— */
@media (min-width: 768px) {
  .header-inner {
    min-height: 64px;
  }

  .hero {
    padding: 2.75rem 0 3rem;
  }

  .hero-inner {
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    align-items: center;
    gap: 2.5rem;
  }

  .hero-shot {
    margin: 0;
    width: 100%;
    max-width: 280px;
    justify-self: end;
  }

  .feature-card {
    grid-template-columns: 1fr 0.85fr;
    align-items: center;
    padding: 1.5rem;
  }

  .feature-card:nth-child(even) .feature-shot {
    order: -1;
  }

  .feature-copy {
    padding: 0.5rem 0.75rem;
  }
}

@media (max-width: 480px) {
  .download-row {
    flex-direction: column;
  }

  .btn-store {
    width: 100%;
    justify-content: center;
  }

  /* 手機：先文案+按鈕，截圖放後，確保首屏有兩個下載掣 */
  .hero-shot {
    order: 2;
  }

  .hero-title-single-line {
    font-size: 1.6rem;
  }
}
