/* FRIDAI AI 銷售頁 landing page — light theme, explicit text colours everywhere. */
html { scroll-behavior: smooth; }
body { margin: 0; background: #f7f5ef; color: #17181b; }

.sp-landing {
  --sp-ink: #17181b;
  --sp-muted: #55565c;
  --sp-paper: #f7f5ef;
  --sp-white: #ffffff;
  --sp-brand: #605dba;
  --sp-brand-dark: #4a47a0;
  --sp-brand-soft: #eeedf9;
  --sp-green: #1f7a55;
  --sp-green-soft: #e6f4ec;
  --sp-amber-soft: #fff4dc;
  --sp-line: rgba(23, 24, 27, 0.12);
  --sp-font: "SF Pro Text", "PingFang TC", "Noto Sans TC", "Microsoft JhengHei", Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
  min-height: 100vh;
  overflow-x: clip;
  background: var(--sp-paper);
  color: var(--sp-ink);
  font-family: var(--sp-font);
  line-height: 1.65;
}

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

.sp-landing a { color: inherit; }
.sp-landing img { max-width: 100%; height: auto; }
:where(.sp-landing) :is(h1, h2, h3) { color: var(--sp-ink); line-height: 1.25; margin: 0; letter-spacing: -0.01em; }
:where(.sp-landing) p { margin: 0; }

.sp-wrap { width: min(1160px, calc(100% - 40px)); margin: 0 auto; }

.sp-skip {
  position: fixed;
  z-index: 100;
  left: 16px;
  top: 12px;
  padding: 12px 16px;
  border-radius: 10px;
  background: var(--sp-ink);
  color: var(--sp-white) !important;
  transform: translateY(-180%);
}
.sp-skip:focus { transform: translateY(0); }

/* Navigation */
.sp-nav {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(247, 245, 239, 0.94);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--sp-line);
}
.sp-nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 68px;
}
.sp-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--sp-ink);
  font-weight: 800;
  text-decoration: none;
  white-space: nowrap;
}
.sp-brand-mark {
  display: grid;
  width: 32px;
  height: 32px;
  place-items: center;
  border-radius: 9px;
  background: var(--sp-brand);
  color: var(--sp-white);
  font-size: 15px;
}
.sp-brand b { color: var(--sp-brand); font-weight: 800; }
.sp-nav-links { display: flex; gap: clamp(14px, 2.4vw, 30px); }
.sp-nav-links a { color: var(--sp-muted); text-decoration: none; font-size: 15px; }
.sp-nav-links a:hover { color: var(--sp-ink); }
.sp-nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 16px;
  border-radius: 999px;
  background: var(--sp-ink);
  color: var(--sp-white) !important;
  font-weight: 700;
  font-size: 15px;
  text-decoration: none;
  white-space: nowrap;
}
.sp-nav-cta:hover { background: #2c2d33; }

/* Buttons */
.sp-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.sp-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 50px;
  padding: 12px 22px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 16px;
  text-decoration: none;
  text-align: center;
}
.sp-button-primary { background: var(--sp-ink); color: var(--sp-white) !important; }
.sp-button-primary:hover { background: #2c2d33; }
.sp-button-secondary { background: var(--sp-white); color: var(--sp-ink) !important; border: 1px solid rgba(23, 24, 27, 0.22); }
.sp-button-secondary:hover { border-color: var(--sp-ink); }
.sp-button-line { background: #06c755; color: var(--sp-white) !important; }
.sp-button-line:hover { background: #05a647; }

/* Typography helpers */
.sp-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--sp-brand-dark);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.04em;
}
.sp-eyebrow::before { content: ""; width: 18px; height: 2px; background: var(--sp-brand); }
.sp-section { padding: clamp(64px, 9vw, 112px) 0; }
.sp-section-alt { background: var(--sp-white); border-top: 1px solid var(--sp-line); border-bottom: 1px solid var(--sp-line); }
.sp-intro { max-width: 760px; margin-bottom: clamp(32px, 5vw, 52px); }
.sp-intro h2 { margin-top: 12px; font-size: clamp(28px, 4vw, 42px); }
.sp-intro p { margin-top: 14px; color: var(--sp-muted); font-size: 17px; }

/* Hero */
.sp-hero { padding: clamp(48px, 8vw, 96px) 0 clamp(56px, 8vw, 96px); }
.sp-hero-grid { display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr); gap: clamp(32px, 5vw, 64px); align-items: center; }
.sp-hero h1 { margin-top: 16px; font-size: clamp(34px, 5.4vw, 60px); font-weight: 800; }
.sp-hero h1 em { font-style: normal; color: var(--sp-brand); }
.sp-hero-description { margin-top: 20px; color: var(--sp-muted); font-size: clamp(17px, 1.6vw, 19px); max-width: 620px; }
.sp-hero-facts { display: flex; flex-wrap: wrap; gap: 8px 10px; margin: 26px 0 0; padding: 0; list-style: none; }
.sp-hero-facts li {
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--sp-white);
  border: 1px solid var(--sp-line);
  color: var(--sp-ink);
  font-size: 14px;
}

.sp-test-card {
  padding: clamp(20px, 3vw, 28px);
  border-radius: 22px;
  background: var(--sp-white);
  border: 1px solid var(--sp-line);
  box-shadow: 0 24px 60px rgba(23, 24, 27, 0.08);
  color: var(--sp-ink);
}
.sp-test-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.sp-test-head strong { font-size: 16px; color: var(--sp-ink); }
.sp-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--sp-green-soft);
  color: var(--sp-green);
  font-size: 13px;
  font-weight: 700;
}
.sp-badge::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--sp-green); }
.sp-variants { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 12px; margin-top: 18px; }
.sp-variant { padding: 14px; border-radius: 14px; border: 1px solid var(--sp-line); background: #fbfaf7; min-width: 0; }
.sp-variant span { display: block; color: var(--sp-muted); font-size: 12px; font-weight: 700; letter-spacing: 0.06em; }
.sp-variant p { margin-top: 6px; color: var(--sp-ink); font-weight: 700; font-size: 15px; overflow-wrap: anywhere; }
.sp-variant small { display: block; margin-top: 8px; color: var(--sp-muted); font-size: 13px; }
.sp-variant-b { border-color: rgba(96, 93, 186, 0.45); background: var(--sp-brand-soft); }
.sp-rules { margin: 18px 0 0; padding: 0; list-style: none; display: grid; gap: 8px; }
.sp-rules li { display: flex; gap: 10px; color: var(--sp-ink); font-size: 14px; }
.sp-rules li::before { content: "✓"; color: var(--sp-green); font-weight: 800; }
.sp-test-foot { margin-top: 16px; padding-top: 14px; border-top: 1px dashed var(--sp-line); color: var(--sp-muted); font-size: 13px; }

/* Steps */
.sp-steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; margin: 0; padding: 0; list-style: none; }
.sp-step { padding: 26px; border-radius: 20px; background: var(--sp-white); border: 1px solid var(--sp-line); color: var(--sp-ink); }
.sp-section-alt .sp-step { background: var(--sp-paper); }
.sp-step-number {
  display: grid;
  width: 40px;
  height: 40px;
  place-items: center;
  border-radius: 50%;
  background: var(--sp-brand);
  color: var(--sp-white);
  font-weight: 800;
}
.sp-step h3 { margin-top: 16px; font-size: 21px; }
.sp-step p { margin-top: 8px; color: var(--sp-muted); }
.sp-chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 28px 0 0; padding: 0; list-style: none; }
.sp-chips li { padding: 6px 12px; border-radius: 999px; background: var(--sp-brand-soft); color: var(--sp-brand-dark); font-size: 14px; font-weight: 600; }
.sp-note { margin-top: 18px; color: var(--sp-muted); font-size: 15px; }

/* Optimisation mechanisms */
.sp-loop { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 28px; padding: 0; list-style: none; counter-reset: loop; }
.sp-loop li {
  counter-increment: loop;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: 999px;
  background: var(--sp-white);
  border: 1px solid var(--sp-line);
  color: var(--sp-ink);
  font-size: 14px;
  font-weight: 600;
}
.sp-loop li::before { content: counter(loop); display: grid; width: 22px; height: 22px; place-items: center; border-radius: 50%; background: var(--sp-ink); color: var(--sp-white); font-size: 12px; }
.sp-mechanisms { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.sp-mechanism { display: flex; flex-direction: column; padding: 26px; border-radius: 20px; background: var(--sp-white); border: 1px solid var(--sp-line); color: var(--sp-ink); min-width: 0; }
.sp-mechanism-tag { color: var(--sp-brand-dark); font-size: 13px; font-weight: 800; letter-spacing: 0.06em; }
.sp-mechanism h3 { margin-top: 10px; font-size: 21px; }
.sp-mechanism > p { margin-top: 10px; color: var(--sp-muted); }
.sp-mechanism ul { margin: 16px 0 0; padding: 0 0 0 18px; color: var(--sp-ink); }
.sp-mechanism li { margin-top: 6px; font-size: 15px; }
.sp-caveat {
  margin-top: 24px;
  padding: 20px 22px;
  border-radius: 16px;
  background: var(--sp-amber-soft);
  border: 1px solid #f0d89a;
  color: #4a3b12;
}
.sp-caveat strong { color: #4a3b12; }

/* Editor */
.sp-split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 56px); align-items: start; }
.sp-chat { padding: 22px; border-radius: 22px; background: var(--sp-paper); border: 1px solid var(--sp-line); color: var(--sp-ink); }
.sp-chat-label { color: var(--sp-muted); font-size: 12px; font-weight: 700; letter-spacing: 0.06em; }
.sp-bubble { margin-top: 12px; padding: 12px 14px; border-radius: 16px; font-size: 15px; max-width: 92%; overflow-wrap: anywhere; }
.sp-bubble-user { margin-left: auto; background: var(--sp-ink); color: var(--sp-white); border-bottom-right-radius: 4px; }
.sp-bubble-ai { background: var(--sp-white); color: var(--sp-ink); border: 1px solid var(--sp-line); border-bottom-left-radius: 4px; }
.sp-flow { display: flex; flex-wrap: wrap; gap: 8px; margin: 16px 0 0; padding: 0; list-style: none; }
.sp-flow li { padding: 6px 12px; border-radius: 10px; background: var(--sp-white); border: 1px solid var(--sp-line); color: var(--sp-ink); font-size: 14px; font-weight: 600; }
.sp-list { margin: 0; padding: 0; list-style: none; display: grid; gap: 14px; }
.sp-list li { padding: 16px 18px; border-radius: 16px; background: var(--sp-white); border: 1px solid var(--sp-line); color: var(--sp-ink); }
.sp-section-alt .sp-list li { background: var(--sp-paper); }
.sp-list strong { display: block; color: var(--sp-ink); }
.sp-list span { display: block; margin-top: 4px; color: var(--sp-muted); font-size: 15px; }
.sp-out-of-scope { margin-top: 18px; color: var(--sp-muted); font-size: 15px; }

/* Insights */
.sp-insights { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.sp-insight { padding: 26px; border-radius: 20px; background: var(--sp-white); border: 1px solid var(--sp-line); color: var(--sp-ink); min-width: 0; }
.sp-insight h3 { font-size: 20px; }
.sp-insight p { margin-top: 10px; color: var(--sp-muted); }
.sp-insight blockquote { margin: 14px 0 0; padding: 12px 14px; border-left: 3px solid var(--sp-brand); border-radius: 0 12px 12px 0; background: var(--sp-brand-soft); color: var(--sp-ink); font-size: 15px; }
.sp-insight blockquote small { display: block; margin-top: 4px; color: var(--sp-muted); font-size: 12px; }

/* Pricing */
.sp-price-card {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(24px, 4vw, 48px);
  padding: clamp(24px, 4vw, 44px);
  border-radius: 26px;
  background: var(--sp-white);
  border: 2px solid var(--sp-ink);
  color: var(--sp-ink);
}
.sp-price-label { color: var(--sp-brand-dark); font-weight: 800; font-size: 14px; letter-spacing: 0.06em; }
.sp-price-card h3 { margin-top: 8px; font-size: 26px; }
.sp-price { margin-top: 18px; color: var(--sp-ink); }
.sp-price strong { display: block; font-size: clamp(38px, 6vw, 52px); line-height: 1.1; font-weight: 800; color: var(--sp-ink); }
.sp-price span { display: block; margin-top: 6px; color: var(--sp-muted); }
.sp-renewal { margin-top: 16px; padding: 12px 14px; border-radius: 12px; background: var(--sp-brand-soft); color: var(--sp-ink); font-weight: 600; }
.sp-price-card .sp-actions { margin-top: 22px; }
.sp-price-card .sp-button { flex: 1 1 200px; }
.sp-includes h4,
.sp-addons h4 { margin: 0 0 10px; color: var(--sp-ink); font-size: 16px; }
.sp-includes ul,
.sp-addons ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 8px; }
.sp-includes li { display: flex; gap: 10px; color: var(--sp-ink); font-size: 15px; }
.sp-includes li::before { content: "✓"; flex: none; color: var(--sp-green); font-weight: 800; }
.sp-addons { margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--sp-line); }
.sp-addons li { color: var(--sp-ink); font-size: 15px; }
.sp-addons li b { color: var(--sp-ink); }
.sp-price-footnote { margin-top: 18px; color: var(--sp-muted); font-size: 14px; }

/* FAQ */
.sp-faq { display: grid; gap: 12px; max-width: 860px; }
.sp-faq details { border-radius: 16px; background: var(--sp-white); border: 1px solid var(--sp-line); color: var(--sp-ink); }
.sp-section-alt .sp-faq details { background: var(--sp-paper); }
.sp-faq summary { cursor: pointer; padding: 18px 20px; color: var(--sp-ink); font-weight: 700; font-size: 17px; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
.sp-faq summary::-webkit-details-marker { display: none; }
.sp-faq summary::after { content: "+"; flex: none; color: var(--sp-brand); font-size: 22px; line-height: 1; }
.sp-faq details[open] summary::after { content: "−"; }
.sp-faq details p { padding: 0 20px 18px; color: var(--sp-muted); }

/* Final CTA */
.sp-final { padding: clamp(64px, 9vw, 104px) 0; background: var(--sp-brand-soft); text-align: center; }
.sp-final h2 { font-size: clamp(28px, 4vw, 42px); margin-top: 12px; }
.sp-final p { margin: 14px auto 0; max-width: 640px; color: var(--sp-muted); font-size: 17px; }
.sp-final .sp-actions { justify-content: center; }

.sp-footer { padding: 32px 0 48px; background: var(--sp-paper); color: var(--sp-muted); font-size: 14px; }
.sp-footer .sp-wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 24px; }
.sp-footer nav { display: flex; flex-wrap: wrap; gap: 8px 18px; }
.sp-footer a { color: var(--sp-ink); text-decoration: none; }
.sp-footer a:hover { text-decoration: underline; }

@media (max-width: 960px) {
  .sp-hero-grid,
  .sp-split,
  .sp-price-card { grid-template-columns: minmax(0, 1fr); }
  .sp-steps,
  .sp-mechanisms,
  .sp-insights { grid-template-columns: minmax(0, 1fr); }
  .sp-nav-links { display: none; }
}

@media (max-width: 520px) {
  .sp-wrap { width: calc(100% - 32px); }
  .sp-nav-inner { min-height: 60px; }
  .sp-brand { font-size: 15px; }
  .sp-nav-cta { padding: 9px 14px; font-size: 14px; }
  .sp-actions .sp-button { flex: 1 1 100%; }
  .sp-variants { grid-template-columns: minmax(0, 1fr); }
  .sp-step,
  .sp-mechanism,
  .sp-insight { padding: 22px; }
}

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