:root {
  --ink: #111a18;
  --muted: #5f6f6a;
  --line: #dbe4df;
  --paper: #f6f5ef;
  --white: #ffffff;
  --green: #0f5d42;
  --green-2: #1f8a62;
  --mint: #d9f6e6;
  --coral: #ff7f67;
  --yellow: #f4c95d;
  --blue: #3267d6;
  --dark: #101816;
  --shadow: 0 18px 55px rgba(17, 26, 24, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background:
    linear-gradient(180deg, #f9f8f3 0%, var(--paper) 42%, #eef4f0 100%);
  font-family: "Noto Sans TC", "Microsoft JhengHei", system-ui, sans-serif;
  line-height: 1.6;
}

a {
  color: inherit;
  text-decoration: none;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 14px clamp(18px, 4vw, 56px);
  background: rgba(249, 248, 243, 0.9);
  border-bottom: 1px solid rgba(219, 228, 223, 0.86);
  backdrop-filter: blur(16px);
}

.brand,
.nav,
.top-actions,
.hero-actions,
.panel-head,
.stats-grid,
.auth-actions,
.console-head,
.preview-row {
  display: flex;
  align-items: center;
}

.brand {
  gap: 10px;
  font-weight: 950;
}

.brand-mark {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  color: var(--white);
  background: var(--green);
  border-radius: 8px;
  font-size: 0.88rem;
}

.nav {
  gap: clamp(12px, 2vw, 30px);
  color: var(--muted);
  font-weight: 800;
}

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

.account-chip,
.cost-pill {
  padding: 8px 12px;
  color: var(--green);
  background: var(--mint);
  border: 1px solid rgba(15, 93, 66, 0.12);
  border-radius: 999px;
  font-size: 0.9rem;
  font-weight: 950;
}

.top-actions {
  gap: 10px;
}

.nav-login {
  min-height: 40px;
  padding: 8px 13px;
  color: var(--white);
  background: var(--green);
}

.hero {
  display: grid;
  grid-template-columns: minmax(320px, 1.08fr) minmax(320px, 0.92fr);
  gap: clamp(28px, 5vw, 78px);
  align-items: center;
  min-height: calc(100vh - 71px);
  padding: clamp(54px, 7vw, 104px) clamp(18px, 5vw, 72px) clamp(42px, 6vw, 80px);
  background:
    linear-gradient(115deg, rgba(12, 33, 27, 0.55), rgba(15, 93, 66, 0.30) 42%, rgba(246, 245, 239, 0.78) 100%),
    url("https://images.unsplash.com/photo-1556741533-6e6a62bd8b49?auto=format&fit=crop&w=1800&q=80") center/cover;
}

.hero-content {
  color: var(--white);
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--green);
  font-size: 0.84rem;
  font-weight: 950;
  letter-spacing: 0;
}

.hero .eyebrow {
  color: var(--mint);
}

h1,
h2,
h3,
p {
  overflow-wrap: anywhere;
}

h1 {
  max-width: 920px;
  margin: 0;
  font-size: clamp(2.9rem, 7vw, 6.1rem);
  line-height: 0.98;
  letter-spacing: 0;
}

h2 {
  margin: 0;
  font-size: clamp(1.65rem, 3vw, 2.55rem);
  line-height: 1.12;
  letter-spacing: 0;
}

h3 {
  margin: 0 0 8px;
}

.hero-text {
  max-width: 760px;
  margin: 22px 0 0;
  color: rgba(255, 255, 255, 0.88);
  font-size: clamp(1.04rem, 2vw, 1.22rem);
}

.hero-actions {
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.button,
.icon-button,
.brand-item,
.history-item {
  cursor: pointer;
  font: inherit;
}

.button {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  padding: 11px 17px;
  border: 1px solid transparent;
  border-radius: 8px;
  font-weight: 950;
}

.button.primary {
  color: var(--white);
  background: var(--green);
}

.hero .button.primary {
  background: var(--white);
  color: var(--green);
}

.button.secondary {
  color: var(--green);
  background: var(--white);
  border-color: var(--line);
}

.hero .button.secondary {
  color: var(--white);
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.35);
}

.button:disabled {
  cursor: wait;
  opacity: 0.7;
}

.hidden {
  display: none !important;
}

.hero-console {
  overflow: hidden;
  color: var(--white);
  background: rgba(16, 24, 22, 0.82);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 8px;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.26);
  backdrop-filter: blur(18px);
}

.console-head {
  gap: 8px;
  padding: 14px 16px;
  background: rgba(255, 255, 255, 0.08);
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.console-head span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.console-head span:nth-child(1) {
  background: var(--coral);
}

.console-head span:nth-child(2) {
  background: var(--yellow);
}

.console-head span:nth-child(3) {
  background: var(--green-2);
}

.console-head strong {
  margin-left: auto;
  font-size: 0.9rem;
}

.console-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  background: rgba(255, 255, 255, 0.1);
}

.console-grid div,
.console-preview {
  padding: 18px;
  background: rgba(16, 24, 22, 0.68);
}

.console-grid span,
.console-preview p,
.preview-row span {
  color: rgba(255, 255, 255, 0.64);
}

.console-grid strong {
  display: block;
  margin-top: 4px;
  font-size: 1.1rem;
}

.console-preview {
  display: grid;
  gap: 9px;
}

.console-preview p {
  margin: 0 0 4px;
}

.preview-row {
  justify-content: space-between;
  gap: 12px;
  padding: 12px 13px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 8px;
}

.panel,
.stats-grid,
.workspace,
.section-grid,
.value-showcase {
  margin: 18px clamp(18px, 5vw, 72px);
}

.value-showcase {
  display: grid;
  grid-template-columns: minmax(300px, 0.8fr) minmax(360px, 1.2fr);
  gap: clamp(24px, 5vw, 70px);
  align-items: center;
  margin-top: 28px;
  padding: clamp(28px, 5vw, 48px);
  overflow: hidden;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.value-copy p:not(.eyebrow) {
  max-width: 620px;
  color: var(--muted);
  font-size: 1.04rem;
}

.value-points {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}

.value-points span {
  padding: 8px 11px;
  color: var(--green);
  background: var(--mint);
  border-radius: 999px;
  font-weight: 900;
  font-size: 0.92rem;
}

.flow-demo {
  position: relative;
  min-height: 460px;
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(15, 93, 66, 0.08), rgba(50, 103, 214, 0.08)),
    #f8fbf8;
  border: 1px solid var(--line);
  overflow: hidden;
}

.flow-demo::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(15, 93, 66, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(15, 93, 66, 0.08) 1px, transparent 1px);
  background-size: 34px 34px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.74), transparent 92%);
}

.flow-stage,
.flow-result {
  position: absolute;
  z-index: 1;
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid rgba(219, 228, 223, 0.95);
  border-radius: 8px;
  box-shadow: 0 16px 38px rgba(17, 26, 24, 0.1);
}

.flow-stage {
  width: 210px;
  padding: 17px;
  animation: stagePulse 5.4s ease-in-out infinite;
}

.flow-stage span {
  color: var(--green-2);
  font-size: 0.76rem;
  font-weight: 950;
}

.flow-stage strong {
  display: block;
  margin-top: 4px;
  font-size: 1.16rem;
}

.flow-stage p {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.stage-brand {
  top: 34px;
  left: 32px;
}

.stage-ai {
  top: 118px;
  left: 42%;
  animation-delay: 0.45s;
}

.stage-output {
  right: 34px;
  bottom: 34px;
  animation-delay: 0.9s;
}

.flow-line {
  position: absolute;
  z-index: 0;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--green-2), transparent);
  border-radius: 99px;
  transform-origin: left center;
  animation: flowLine 2.4s linear infinite;
}

.line-a {
  top: 122px;
  left: 230px;
  width: 25%;
  transform: rotate(13deg);
}

.line-b {
  top: 215px;
  left: 54%;
  width: 25%;
  transform: rotate(26deg);
  animation-delay: 0.55s;
}

.output-stack {
  display: grid;
  gap: 7px;
  margin-top: 10px;
}

.output-stack em {
  padding: 7px 9px;
  color: var(--green);
  background: #edf8f1;
  border-radius: 8px;
  font-style: normal;
  font-size: 0.88rem;
  font-weight: 850;
  animation: outputFlip 4.8s ease-in-out infinite;
}

.output-stack em:nth-child(2) {
  animation-delay: 0.4s;
}

.output-stack em:nth-child(3) {
  animation-delay: 0.8s;
}

.output-stack em:nth-child(4) {
  animation-delay: 1.2s;
}

.flow-result {
  left: 30px;
  bottom: 32px;
  width: 250px;
  overflow: hidden;
  animation: resultGlow 4.4s ease-in-out infinite;
}

.result-head {
  display: flex;
  gap: 6px;
  padding: 11px 13px;
  background: var(--dark);
}

.result-head span {
  width: 9px;
  height: 9px;
  border-radius: 50%;
}

.result-head span:nth-child(1) {
  background: var(--coral);
}

.result-head span:nth-child(2) {
  background: var(--yellow);
}

.result-head span:nth-child(3) {
  background: var(--green-2);
}

.result-body {
  padding: 18px;
}

.result-body p,
.result-body span {
  margin: 0;
  color: var(--muted);
}

.result-body strong {
  display: block;
  font-size: 3rem;
  line-height: 1;
  color: var(--green);
}

.mini-bars {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  align-items: end;
  height: 54px;
  margin-top: 14px;
}

.mini-bars i {
  display: block;
  border-radius: 8px 8px 0 0;
  background: var(--green);
  animation: barRise 1.8s ease-in-out infinite;
}

.mini-bars i:nth-child(1) {
  height: 32%;
}

.mini-bars i:nth-child(2) {
  height: 78%;
  animation-delay: 0.2s;
}

.mini-bars i:nth-child(3) {
  height: 55%;
  background: var(--blue);
  animation-delay: 0.4s;
}

.mini-bars i:nth-child(4) {
  height: 92%;
  background: var(--coral);
  animation-delay: 0.6s;
}

@keyframes stagePulse {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-8px);
  }
}

@keyframes flowLine {
  0% {
    opacity: 0;
    background-position: -120px 0;
  }
  30%,
  70% {
    opacity: 1;
  }
  100% {
    opacity: 0;
    background-position: 120px 0;
  }
}

@keyframes outputFlip {
  0%,
  100% {
    transform: translateX(0);
    opacity: 0.82;
  }
  50% {
    transform: translateX(-8px);
    opacity: 1;
  }
}

@keyframes resultGlow {
  0%,
  100% {
    box-shadow: 0 16px 38px rgba(17, 26, 24, 0.1);
  }
  50% {
    box-shadow: 0 24px 58px rgba(31, 138, 98, 0.22);
  }
}

@keyframes barRise {
  0%,
  100% {
    transform: scaleY(0.72);
    transform-origin: bottom;
  }
  50% {
    transform: scaleY(1);
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
  }
}

.panel,
.stat,
.plan-card {
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.panel {
  padding: 24px;
}

.note,
.empty,
.plan-card p,
.brand-item span,
.history-item span {
  color: var(--muted);
}

.panel-head {
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 20px;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.stat {
  padding: 20px;
  position: relative;
  overflow: hidden;
}

.stat::after {
  content: "";
  position: absolute;
  right: -18px;
  top: -18px;
  width: 76px;
  height: 76px;
  background: var(--mint);
  border-radius: 999px;
  opacity: 0.72;
}

.stat span {
  color: var(--muted);
}

.stat strong {
  display: block;
  margin-top: 4px;
  font-size: 1.55rem;
  position: relative;
  z-index: 1;
}

.workspace {
  display: grid;
  grid-template-columns: minmax(300px, 410px) minmax(340px, 1fr);
  gap: 18px;
}

.section-grid {
  display: grid;
  grid-template-columns: minmax(340px, 1fr) minmax(320px, 0.82fr);
  gap: 18px;
  margin-bottom: 64px;
}

.inline-form,
.auth-form,
.stack-form,
.generate-grid {
  display: grid;
  gap: 14px;
}

.inline-form {
  grid-template-columns: repeat(3, minmax(0, 1fr)) auto;
  align-items: end;
}

.auth-actions {
  gap: 10px;
  align-items: end;
  flex-wrap: wrap;
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 22px;
  background: rgba(7, 18, 14, 0.58);
  backdrop-filter: blur(10px);
}

.modal-backdrop.open {
  display: flex;
}

.auth-modal {
  position: relative;
  width: min(520px, 100%);
  max-height: min(92vh, 760px);
  overflow: auto;
  padding: 28px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.28);
}

.auth-modal h2 {
  margin-bottom: 10px;
}

.login-tabs {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
  padding: 5px;
  margin: 0 44px 18px 0;
  background: #eef3ef;
  border-radius: 8px;
}

.login-tabs button {
  min-height: 40px;
  color: var(--muted);
  background: transparent;
  border: 0;
  border-radius: 8px;
  cursor: pointer;
  font: inherit;
  font-weight: 950;
}

.login-tabs button.active {
  color: var(--white);
  background: var(--green);
}


.auth-consent { display: flex; flex-direction: column; gap: 8px; margin: 6px 0 10px; }
.auth-consent-row { display: flex !important; flex-direction: row; align-items: center; gap: 10px; font-size: 0.9rem; color: var(--muted); font-weight: 400; cursor: pointer; }
.auth-consent-row input[type=checkbox] { width: 18px; height: 18px; min-height: 0; margin: 0; padding: 0; flex: 0 0 18px; cursor: pointer; }
.auth-consent-row span { flex: 1; line-height: 1.5; }
.auth-consent-row a { color: var(--green); text-decoration: underline; }

.auth-copy {
  margin: 0 0 20px;
  color: var(--muted);
}

.auth-divider {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 14px;
  align-items: center;
  color: var(--muted);
}

.auth-divider::before,
.auth-divider::after {
  content: "";
  height: 1px;
  background: var(--line);
}

.field-hint {
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 700;
}

.auth-form {
  gap: 13px;
}

.modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  color: var(--muted);
  background: #f2f5f3;
  border: 1px solid var(--line);
  border-radius: 8px;
  cursor: pointer;
  font: inherit;
  font-size: 1.35rem;
  line-height: 1;
}

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

.wide {
  grid-column: 1 / -1;
}

label {
  display: grid;
  gap: 7px;
  color: #31403b;
  font-weight: 900;
}

input,
select,
textarea {
  width: 100%;
  min-height: 45px;
  padding: 10px 12px;
  color: var(--ink);
  background: #fbfbf8;
  border: 1px solid var(--line);
  border-radius: 8px;
  font: inherit;
}

input:focus,
select:focus,
textarea:focus {
  outline: 3px solid rgba(31, 138, 98, 0.18);
  border-color: var(--green-2);
}

textarea {
  resize: vertical;
}

.icon-button {
  width: 42px;
  height: 42px;
  color: var(--white);
  background: var(--green);
  border: 0;
  border-radius: 8px;
  font-size: 1.3rem;
}

.brand-list,
.history-list,
.plan-list,
.feature-list {
  display: grid;
  gap: 10px;
  margin-top: 16px;
}

.feature-list article {
  display: grid;
  gap: 5px;
  padding: 15px;
  background: #fbfbf8;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.feature-list span {
  color: var(--muted);
}

.brand-item,
.history-item {
  display: grid;
  gap: 4px;
  width: 100%;
  padding: 13px;
  text-align: left;
  background: #fbfbf8;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.brand-item:hover,
.history-item:hover {
  border-color: var(--green-2);
  box-shadow: 0 10px 24px rgba(17, 26, 24, 0.08);
}

.output-wrap {
  display: grid;
  gap: 12px;
  margin-top: 18px;
}

pre {
  min-height: 440px;
  max-height: 680px;
  margin: 0;
  padding: 18px;
  overflow: auto;
  white-space: pre-wrap;
  color: #26302d;
  background: #fbfbf8;
  border: 1px solid var(--line);
  border-radius: 8px;
  font-family: "Microsoft JhengHei", system-ui, sans-serif;
}

.plan-card {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 16px;
  align-items: center;
  padding: 18px;
}

.price {
  margin: 0;
  font-size: 1.7rem;
  font-weight: 950;
}

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

.plan-recommended {
  border-color: var(--green-2) !important;
  box-shadow: 0 0 0 2px rgba(31, 138, 98, 0.14), var(--shadow) !important;
}

.badge-recommended {
  display: inline-block;
  margin-bottom: 8px;
  padding: 3px 10px;
  color: var(--white);
  background: var(--green);
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 950;
}

.site-footer {
  padding: 48px clamp(18px, 5vw, 72px) 24px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.9rem;
  background: rgba(0,0,0,0.15);
}
.site-footer a {
  color: var(--muted);
  text-decoration: none;
}
.site-footer a:hover { color: var(--green); }

.footer-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  max-width: 1200px;
  margin: 0 auto 28px;
  padding-bottom: 28px;
  border-bottom: 1px solid var(--line);
}
@media (max-width: 980px) {
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
}
.footer-col h4 {
  margin: 0 0 12px;
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--white);
  letter-spacing: 0.02em;
}
.footer-col p { margin: 6px 0; line-height: 1.6; }
.footer-col ul { list-style: none; padding: 0; margin: 0; }
.footer-col ul li { margin: 6px 0; }
.footer-brand-name {
  display: block;
  margin-bottom: 10px;
  font-size: 1.05rem;
  font-weight: 950;
  color: var(--white);
}
.footer-hours, .footer-meta { font-size: 0.82rem; opacity: 0.78; }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  max-width: 1200px;
  margin: 0 auto;
  font-size: 0.82rem;
  opacity: 0.78;
}
@media (max-width: 600px) {
  .footer-grid { grid-template-columns: 1fr; gap: 24px; padding-bottom: 24px; margin-bottom: 24px; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
}

.auth-error {
  margin: 0 0 12px;
  padding: 10px 14px;
  border-radius: 8px;
  background: rgba(225,29,72,0.10);
  border: 1px solid rgba(225,29,72,0.45);
  color: #b91c1c;
  font-size: 0.88rem;
  font-weight: 600;
  line-height: 1.5;
  display: flex;
  align-items: flex-start;
  gap: 8px;
}
.auth-error::before {
  content: "⚠";
  flex-shrink: 0;
  font-size: 1.05rem;
  line-height: 1;
  margin-top: 1px;
}
.auth-error.hidden { display: none; }
.auth-error.is-success {
  background: rgba(22,199,132,0.10);
  border-color: rgba(22,199,132,0.45);
  color: #047857;
}
.auth-error.is-success::before { content: "✓"; }

.toast {
  position: fixed;
  top: 24px;
  left: 50%;
  z-index: 99999;             /* 高於任何 modal / overlay */
  min-width: 280px;
  max-width: 560px;
  padding: 16px 26px;
  color: var(--white);
  background: var(--green);
  border-radius: 10px;
  box-shadow: 0 12px 32px rgba(0,0,0,0.35), 0 4px 8px rgba(0,0,0,0.2);
  opacity: 0;
  transform: translate(-50%, -16px);
  transition: opacity 0.2s, transform 0.2s;
  pointer-events: none;
  font-weight: 900;
  font-size: 1rem;
  text-align: center;
  white-space: pre-wrap;
}

.toast.show {
  opacity: 1;
  transform: translate(-50%, 0);
}

@media (max-width: 980px) {
  .hero,
  .value-showcase,
  .workspace,
  .section-grid,
  .inline-form {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
  }

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

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

  .flow-demo {
    min-height: 560px;
  }

  .stage-brand {
    top: 28px;
    left: 24px;
  }

  .stage-ai {
    top: 164px;
    left: auto;
    right: 24px;
  }

  .stage-output {
    right: 24px;
    bottom: 24px;
  }

  .flow-result {
    left: 24px;
    bottom: 190px;
  }

  .line-a,
  .line-b {
    display: none;
  }
}

@media (max-width: 640px) {
  .topbar {
    position: static;
    align-items: flex-start;
    flex-direction: column;
  }

  .top-actions {
    width: 100%;
    justify-content: space-between;
  }

  .nav {
    width: 100%;
    justify-content: space-between;
  }

  .hero {
    padding-top: 42px;
  }

  .console-grid,
  .stats-grid {
    grid-template-columns: 1fr;
  }

  .flow-demo {
    min-height: 640px;
  }

  .flow-stage,
  .flow-result {
    width: calc(100% - 40px);
    left: 20px;
    right: 20px;
  }

  .stage-ai {
    top: 158px;
  }

  .flow-result {
    bottom: 204px;
  }

  .stage-output {
    bottom: 20px;
  }

  .plan-card {
    grid-template-columns: 1fr;
  }
}


/* ====== Hero 範例輸出卡 ====== */
.sample-output-block {
  padding: 18px;
  display: grid;
  gap: 14px;
}

.sample-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-size: 0.88rem;
}

.sample-tag {
  padding: 2px 8px;
  color: rgba(255,255,255,0.6);
  background: rgba(255,255,255,0.1);
  border-radius: 4px;
  font-size: 0.78rem;
}

.sample-meta strong {
  color: var(--mint);
  font-size: 0.92rem;
}

.sample-time {
  margin-left: auto;
  color: rgba(255,255,255,0.45);
  font-size: 0.8rem;
}

.sample-body {
  padding: 16px;
  background: rgba(255,255,255,0.07);
  border-radius: 8px;
  font-size: 0.95rem;
  line-height: 1.7;
  color: rgba(255,255,255,0.9);
}

.sample-body p {
  margin: 0 0 8px;
}

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

.sample-tags {
  color: var(--mint) !important;
  font-size: 0.88rem;
}

.sample-footer {
  display: flex;
  align-items: center;
  gap: 12px;
}

.sample-copy-hint {
  color: var(--mint);
  font-size: 0.85rem;
  font-weight: 800;
}

/* ====== 範例成果 Section ====== */
.samples-section {
  margin: 18px clamp(18px, 5vw, 72px);
}

.samples-header {
  text-align: center;
  margin-bottom: 32px;
}

.samples-sub {
  max-width: 560px;
  margin: 10px auto 0;
  color: var(--muted);
  font-size: 1.04rem;
}

.samples-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 32px;
}

.sample-card {
  display: flex;
  flex-direction: column;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
  overflow: hidden;
}

.sample-card-head {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 13px 16px;
  background: #f6faf7;
  border-bottom: 1px solid var(--line);
}

.sample-type-badge {
  padding: 3px 10px;
  color: var(--white);
  background: var(--green);
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 950;
  white-space: nowrap;
}

.badge-ad   { background: var(--blue); }
.badge-email { background: var(--coral); }

.sample-brand-label {
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 800;
}

.sample-card-body {
  flex: 1;
  padding: 18px;
  font-size: 0.93rem;
  line-height: 1.7;
  color: var(--ink);
}

.sample-card-body p {
  margin: 0 0 9px;
}

.sample-card-body p:last-child { margin: 0; }

.sample-card-body .sample-tags {
  color: var(--green) !important;
  font-size: 0.85rem;
}

.sample-card-foot {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 11px 16px;
  background: #f9faf8;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.85rem;
  font-weight: 800;
}

.dot { opacity: 0.4; }

.samples-cta {
  text-align: center;
}

.samples-cta .button {
  padding: 14px 32px;
  font-size: 1.04rem;
}

@media (max-width: 980px) {
  .samples-grid {
    grid-template-columns: 1fr;
  }
}


/* ────────── Landing 方案區重新設計 v3（淺色系）────────── */
.value-section {
  margin: 80px clamp(18px, 5vw, 72px) 60px;
}
.value-head {
  text-align: center;
  margin-bottom: 32px;
}
.value-head .eyebrow {
  color: var(--green);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 1.6px;
  margin: 0;
  text-transform: uppercase;
}
.value-head h2 {
  font-size: 32px;
  margin: 8px 0 0;
  font-weight: 950;
  color: var(--ink);
  letter-spacing: -0.5px;
}
.value-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}
.value-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 26px 22px;
  transition: transform 0.18s, border-color 0.18s, box-shadow 0.18s;
}
.value-card:hover {
  transform: translateY(-3px);
  border-color: var(--green-2);
  box-shadow: 0 12px 30px rgba(15, 93, 66, 0.10);
}
.value-icon {
  font-size: 32px;
  margin-bottom: 10px;
}
.value-card strong {
  display: block;
  font-size: 16px;
  color: var(--ink);
  margin-bottom: 6px;
  font-weight: 900;
}
.value-card p {
  font-size: 13.5px;
  color: var(--muted);
  line-height: 1.6;
  margin: 0;
}

.pricing-section {
  margin: 60px clamp(18px, 5vw, 72px) 80px;
}
.pricing-section .note {
  text-align: center;
  margin-top: 14px;
}
.pricing-head {
  text-align: center;
  margin-bottom: 36px;
}
.pricing-head .eyebrow {
  color: var(--green);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 1.6px;
  margin: 0;
  text-transform: uppercase;
}
.pricing-head h2 {
  font-size: 36px;
  margin: 8px 0 6px;
  font-weight: 950;
  color: var(--ink);
  letter-spacing: -0.6px;
}
.pricing-subtitle {
  color: var(--muted);
  font-size: 15px;
  margin: 0;
}

.pricing-section .plan-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
  margin-bottom: 18px;
}

.plan-card-v2 {
  background: var(--white);
  border: 1.5px solid var(--line);
  border-radius: 18px;
  padding: 28px 26px;
  display: flex;
  flex-direction: column;
  position: relative;
  transition: transform 0.2s, border-color 0.2s, box-shadow 0.2s;
}
.plan-card-v2:hover {
  transform: translateY(-4px);
  border-color: var(--green-2);
  box-shadow: 0 18px 40px rgba(15, 93, 66, 0.12);
}
.plan-card-v2.plan-recommended {
  border-color: var(--green);
  border-width: 2px;
  background: linear-gradient(180deg, var(--mint) 0%, var(--white) 30%);
  transform: scale(1.03);
  box-shadow: 0 14px 40px rgba(15, 93, 66, 0.15);
}
.plan-card-v2.plan-vip {
  border-color: #d97706;
  border-width: 2px;
  background: linear-gradient(180deg, #fffbeb 0%, var(--white) 30%);
}
.plan-card-v2.plan-vip::before {
  content: "";
  position: absolute;
  top: -1px; right: -1px;
  width: 70px; height: 70px;
  background: linear-gradient(135deg, transparent 50%, rgba(245,158,11,0.55) 50%);
  border-radius: 0 18px 0 0;
  pointer-events: none;
}

.plan-card-top {
  text-align: center;
  border-bottom: 1px dashed var(--line);
  padding-bottom: 18px;
  margin-bottom: 18px;
}
.plan-card-top .badge-recommended {
  display: inline-block;
  background: var(--green);
  color: var(--white);
  padding: 4px 14px;
  border-radius: 12px;
  font-size: 11px;
  font-weight: 900;
  margin-bottom: 8px;
  letter-spacing: 0.5px;
}
.plan-card-top .badge-vip {
  display: inline-block;
  background: linear-gradient(135deg, #fbbf24, #d97706);
  color: #422006;
  padding: 4px 14px;
  border-radius: 12px;
  font-size: 11px;
  font-weight: 950;
  letter-spacing: 1px;
  margin-bottom: 8px;
  box-shadow: 0 2px 8px rgba(217,119,6,0.35);
}
.plan-card-top h3 {
  font-size: 22px;
  margin: 0 0 4px;
  font-weight: 950;
  color: var(--ink);
}
.plan-card-v2.plan-recommended .plan-card-top h3 { color: var(--green); }
.plan-card-v2.plan-vip .plan-card-top h3 { color: #c2410c; }
.plan-card-desc {
  color: var(--muted);
  font-size: 13px;
  margin: 0 0 18px;
}
.plan-card-price-block {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 4px;
}
.plan-card-price-num {
  font-size: 38px;
  font-weight: 950;
  color: var(--green);
  letter-spacing: -1px;
}
.plan-card-v2.plan-vip .plan-card-price-num { color: #c2410c; }
.plan-card-price-unit {
  color: var(--muted);
  font-size: 14px;
  font-weight: 600;
}

.plan-perks-list {
  list-style: none;
  padding: 0;
  margin: 0 0 20px;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.plan-perks-list li {
  font-size: 13.5px;
  color: var(--ink);
  padding-left: 26px;
  position: relative;
  line-height: 1.5;
}
.plan-perks-list li::before {
  content: "✓";
  position: absolute;
  left: 0; top: 0;
  width: 18px; height: 18px;
  background: var(--mint);
  color: var(--green);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 900;
}
.plan-card-v2.plan-vip .plan-perks-list li::before {
  background: #fed7aa;
  color: #c2410c;
}

.plan-card-bottom {
  margin-top: auto;
}
.plan-card-annual-note {
  text-align: center;
  font-size: 12px;
  color: var(--muted);
  margin: 0 0 14px;
  padding: 8px 12px;
  background: rgba(0, 0, 0, 0.025);
  border-radius: 8px;
  border: 1px solid var(--line);
}
.plan-saved {
  display: inline-block;
  background: linear-gradient(135deg, #fbbf24, #d97706);
  color: #422006;
  font-weight: 800;
  padding: 1px 8px;
  border-radius: 8px;
  margin-left: 4px;
  font-size: 11px;
}
.button.wide { width: 100%; padding: 12px 20px; font-size: 15px; font-weight: 900; }

@media (max-width: 980px) {
  .value-grid { grid-template-columns: repeat(2, 1fr); }
  .pricing-section .plan-list { grid-template-columns: 1fr; }
  .plan-card-v2.plan-recommended { transform: none; }
  .pricing-head h2 { font-size: 28px; }
}
@media (max-width: 600px) {
  .value-grid { grid-template-columns: 1fr; }
}

/* Hero AI 圖片輪播 */
.hero-showcase {
  position: relative;
  width: 100%;
  display: flex;
  justify-content: center;
}
.hero-showcase-frame {
  position: relative;
  width: 100%;
  max-width: 540px;
  aspect-ratio: 4 / 5;
  border-radius: 16px;
  overflow: hidden;
  background: #14211d;
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.32);
  border: 1px solid rgba(255, 255, 255, 0.28);
}
.hero-showcase-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.08), transparent 32%),
    linear-gradient(90deg, rgba(0, 0, 0, 0.10), transparent 42%);
}
.hero-showcase-stack {
  position: absolute;
  inset: 0;
}
.hero-showcase-stack img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  filter: saturate(1.04) contrast(1.02);
  transform: scale(1.015);
  transition: opacity 0.9s ease-in-out, transform 4.5s ease;
}
.hero-showcase-stack img.is-active {
  opacity: 1;
  transform: scale(1.045);
}
.hero-showcase-top {
  position: absolute;
  top: 18px;
  left: 18px;
  right: 18px;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 12px;
  color: #fff;
  background: rgba(15, 24, 22, 0.42);
  border: 1px solid rgba(255, 255, 255, 0.20);
  border-radius: 12px;
  backdrop-filter: blur(14px);
  font-size: 0.82rem;
  font-weight: 900;
}
.hero-showcase-top span {
  color: rgba(255, 255, 255, 0.78);
}
.hero-showcase-top strong {
  color: #d9f6e6;
  white-space: nowrap;
}
.hero-showcase-overlay {
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 18px;
  z-index: 2;
  padding: 16px 16px 42px;
  background: rgba(10, 18, 16, 0.66);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 14px;
  backdrop-filter: blur(16px);
  color: #fff;
}
.hero-showcase-badge {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(16, 185, 129, 0.85);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 950;
  letter-spacing: 0.5px;
  margin-bottom: 8px;
}
.hero-showcase-overlay h3 {
  margin: 0 0 8px;
  color: #fff;
  font-size: 1.12rem;
  line-height: 1.25;
}
.hero-showcase-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 9px;
}
.hero-showcase-tags span {
  padding: 3px 8px;
  color: rgba(255, 255, 255, 0.92);
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  font-size: 0.73rem;
  font-weight: 850;
}
.hero-showcase-prompt {
  margin: 0;
  font-size: 0.84rem;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.76);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.hero-showcase-dots {
  position: absolute;
  left: 34px;
  right: 34px;
  bottom: 31px;
  z-index: 3;
  display: flex;
  justify-content: center;
  gap: 6px;
}
.hero-showcase-dots button {
  width: 24px;
  height: 4px;
  padding: 0;
  border: 0;
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.45);
  cursor: pointer;
  transition: background 0.2s, width 0.2s;
}
.hero-showcase-dots button.is-active {
  width: 36px;
  background: #fff;
}

/* AI 圖片素材區塊（samples 段內） */
.image-samples-block {
  margin-top: 40px;
}
.image-samples-block .samples-header {
  margin-bottom: 22px;
}
.image-samples-block h3 {
  font-size: clamp(1.4rem, 2.4vw, 1.9rem);
  margin: 8px 0 6px;
  color: var(--ink);
  font-weight: 950;
}
.image-samples-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 14px;
}
.image-sample-tile {
  position: relative;
  aspect-ratio: 1 / 1;
  border-radius: 14px;
  overflow: hidden;
  background: #f1efe7;
  border: 1px solid var(--line);
  cursor: zoom-in;
  transition: transform 0.18s, box-shadow 0.18s;
}
.image-sample-tile:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 30px rgba(15, 93, 66, 0.18);
}
.image-sample-tile img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.image-sample-tile-prompt {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 26px 12px 10px;
  font-size: 0.78rem;
  color: #fff;
  background: linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.76));
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  opacity: 0;
  transition: opacity 0.2s;
}
.image-sample-tile:hover .image-sample-tile-prompt {
  opacity: 1;
}

@media (max-width: 720px) {
  .hero-showcase-frame { max-width: 100%; aspect-ratio: 1 / 1; }
  .hero-showcase-top { top: 12px; left: 12px; right: 12px; }
  .hero-showcase-overlay { left: 12px; right: 12px; bottom: 12px; padding: 13px 13px 38px; }
  .hero-showcase-overlay h3 { font-size: 1rem; }
  .hero-showcase-prompt { -webkit-line-clamp: 1; }
  .hero-showcase-dots { bottom: 23px; }
  .image-samples-grid { grid-template-columns: repeat(2, 1fr); }
}

/* Hero 次要 CTA 改文字 link 樣式 */
.hero-link {
  display: inline-block;
  margin-top: 14px;
  margin-left: 8px;
  color: rgba(255, 255, 255, 0.92);
  font-weight: 800;
  font-size: 0.95rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.5);
  padding-bottom: 2px;
  transition: opacity 0.15s, border-color 0.15s;
}
.hero-link:hover {
  opacity: 0.85;
  border-color: rgba(255, 255, 255, 0.9);
}
.hero-link.hidden { display: none; }


/* ===== Samples v2 — 你輸入 / AI 產出 split layout ===== */
.samples-grid-v2 {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
  margin-bottom: 28px;
}

.sample-card-v2 {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: var(--shadow);
  overflow: hidden;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.sample-card-v2:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 32px rgba(0,0,0,0.08);
}

.sample-v2-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 12px 18px;
  background: linear-gradient(135deg, #f6faf7, #eef7f2);
  border-bottom: 1px solid var(--line);
}

.sample-v2-time {
  color: var(--green);
  font-size: 0.85rem;
  font-weight: 800;
}

.sample-v2-split {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) 36px minmax(0, 1.4fr);
  align-items: stretch;
  gap: 0;
}

.sample-v2-input,
.sample-v2-output {
  padding: 18px 20px;
  font-size: 0.93rem;
  line-height: 1.65;
  color: var(--ink);
}

.sample-v2-input {
  background: #f9faf8;
  border-right: 1px dashed var(--line);
}
.sample-v2-input ul {
  margin: 0;
  padding: 0;
  list-style: none;
}
.sample-v2-input li {
  padding: 4px 0;
  font-size: 0.9rem;
  color: var(--ink);
}
.sample-v2-input li strong {
  color: var(--muted);
  font-weight: 800;
  margin-right: 4px;
}

.sample-v2-arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f9faf8;
  color: var(--green);
  font-size: 1.4rem;
  font-weight: 950;
  border-right: 1px dashed var(--line);
}

.sample-v2-output p {
  margin: 0 0 8px;
}
.sample-v2-output p:last-child { margin: 0; }

.sample-v2-label {
  display: inline-block;
  margin: 0 0 10px !important;
  padding: 3px 10px;
  background: var(--green);
  color: var(--white);
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 950;
  letter-spacing: 0.02em;
}
.sample-v2-input .sample-v2-label {
  background: var(--muted);
}

.samples-cta {
  text-align: center;
  margin-top: 24px;
}
.samples-cta-sub {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 0.92rem;
}

@media (max-width: 880px) {
  .sample-v2-split {
    grid-template-columns: 1fr;
  }
  .sample-v2-input {
    border-right: 0;
    border-bottom: 1px dashed var(--line);
  }
  .sample-v2-arrow {
    display: none;
  }
}
