/* Leo SEO — boutique SEO consultant theme
   Palette: deep teal, cool off-white, amber accent
*/

:root {
  /* Santorini: cream / sky / deep blue / sunset */
  --teal-950: #0f172a;
  --teal-900: #0f172a;
  --teal-800: #006bbd;
  --teal-700: #006bbd;
  --teal-100: #e7f3fb;
  --teal-50: #fff8e7;

  --ink: #0f172a;
  --ink-soft: #334155;
  --ink-muted: #64748b;

  --bg: #fff8e7;
  --bg-elevated: #ffffff;
  --bg-section: #fff4dc;
  --line: #d7e8f4;

  --amber: #de7941;
  --amber-dark: #c45f2c;
  --amber-soft: #fde8dc;

  --lime: #58a6d6;
  --lime-light: #7bbce0;
  --signal: #006bbd;
  --signal-2: #58a6d6;

  --radius: 10px;
  --radius-lg: 20px;
  --shadow: 0 18px 50px rgba(0, 107, 189, 0.12);

  --font-display: "Plus Jakarta Sans", "Noto Sans TC", "PingFang TC", "Microsoft JhengHei", sans-serif;
  --font-body: "Noto Sans TC", "Plus Jakarta Sans", "PingFang TC", "Microsoft JhengHei", sans-serif;
  --font-ui: "Plus Jakarta Sans", "Noto Sans TC", sans-serif;

  --container: 1440px;
  --narrow: 820px;
  --header-h: 78px;

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
  overflow-x: hidden;
}

body {
  margin: 0;
  width: 100%;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

a {
  color: var(--teal-800);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

a:hover {
  color: var(--teal-950);
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin: 0 0 0.75rem;
  color: var(--teal-950);
}

h1 { font-size: clamp(2.35rem, 5vw, 3.75rem); font-weight: 800; }
h2 { font-size: clamp(1.75rem, 3.2vw, 2.5rem); font-weight: 800; }
h3 { font-size: clamp(1.2rem, 2vw, 1.4rem); font-weight: 700; }

p { margin: 0 0 1rem; }

ul, ol {
  margin: 0 0 1rem;
  padding-left: 1.15rem;
}

/* Vertical rhythm for stacked prose lists only.
   Do NOT apply to flex-row menus (would push every item after the first down). */
.section ul:not([class]) > li + li,
.package ul > li + li,
.service ul > li + li,
.addon ul > li + li,
.addon__features > li + li,
.faq-item ul > li + li,
.problem-list > li + li,
.why-leo__bio ul > li + li {
  margin-top: 0.4rem;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -100px;
  z-index: 1000;
  background: var(--teal-900);
  color: #fff;
  padding: 0.6rem 1rem;
}

.skip-link:focus {
  top: 1rem;
}

.container {
  width: min(100% - clamp(2.5rem, 8vw, 5.5rem), var(--container));
  margin-inline: auto;
}

.container.narrow,
.narrow {
  width: min(100% - clamp(2.5rem, 8vw, 5.5rem), var(--narrow));
  margin-inline: auto;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 48px;
  padding: 0.75rem 1.35rem;
  border-radius: var(--radius);
  border: 1.5px solid transparent;
  font-family: var(--font-body);
  font-size: 0.98rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.25s var(--ease), background 0.25s var(--ease), border-color 0.25s var(--ease), color 0.25s var(--ease), box-shadow 0.25s var(--ease);
}

.btn:hover {
  transform: translateY(-1px);
  text-decoration: none;
}

.btn--primary {
  background: #0ea5e9;
  color: #fff;
  border-radius: 999px;
  box-shadow: none;
}

.btn--primary:hover {
  background: #0284c7;
  color: #fff;
}

.btn--ghost {
  background: transparent;
  color: var(--teal-900);
  border-color: rgba(11, 28, 51, 0.2);
  border-radius: 999px;
}

.btn--ghost:hover {
  border-color: var(--signal);
  background: var(--amber-soft);
  color: var(--teal-950);
}

.nav-cta {
  border-radius: 999px !important;
  background: #0ea5e9 !important;
  color: #fff !important;
  font-family: var(--font-ui);
  font-weight: 700;
}

.nav-cta:hover {
  background: #0284c7 !important;
  color: #fff !important;
}

.btn--block {
  width: 100%;
}

/* Header — floating pill navbar */
.site-header--float {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 5000;
  height: 0;
  pointer-events: none;
  background: transparent;
  border: 0;
}

.site-header__pill {
  pointer-events: auto;
  position: fixed;
  top: 1rem;
  left: 50%;
  z-index: 5000;
  display: flex;
  align-items: center;
  gap: 0.35rem 1rem;
  width: max-content;
  max-width: calc(100vw - 1.5rem);
  height: 3.5rem;
  padding: 0.35rem 0.35rem 0.35rem 0.95rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid rgba(11, 28, 51, 0.08);
  box-shadow:
    0 2px 3px -1px rgba(0, 0, 0, 0.08),
    0 14px 36px rgba(11, 28, 51, 0.1);
  backdrop-filter: blur(16px) saturate(1.2);
  -webkit-backdrop-filter: blur(16px) saturate(1.2);
  transform: translateX(-50%) translateY(0);
  opacity: 1;
  transition:
    transform 0.28s var(--ease),
    opacity 0.28s var(--ease),
    box-shadow 0.3s var(--ease);
}

.site-header--float.is-hidden .site-header__pill {
  transform: translateX(-50%) translateY(calc(-100% - 1.5rem));
  opacity: 0;
  pointer-events: none;
}

.site-header--float.is-scrolled .site-header__pill {
  box-shadow:
    0 2px 3px -1px rgba(0, 0, 0, 0.1),
    0 20px 44px rgba(11, 28, 51, 0.12);
}

#main {
  padding-top: 0;
}

.site-logo {
  display: inline-flex;
  align-items: center;
  height: 2.5rem;
  flex-shrink: 0;
  text-decoration: none;
  color: var(--teal-950);
  line-height: 1;
}

.site-logo__img {
  display: block;
  height: 2.15rem;
  width: auto;
  max-width: 9.5rem;
  object-fit: contain;
}

.site-logo__mark {
  display: none;
}

.site-logo__text {
  display: none;
}

.primary-nav {
  display: flex;
  align-items: center;
  height: 100%;
}

.primary-nav__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
  height: 100%;
  gap: 0.15rem;
}

.primary-nav__list > li {
  display: flex;
  align-items: center;
  height: 100%;
}

.primary-nav a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 2.35rem;
  padding: 0 0.7rem;
  color: var(--ink-soft);
  text-decoration: none;
  font-family: var(--font-ui);
  font-weight: 500;
  font-size: 0.875rem;
  letter-spacing: -0.015em;
  line-height: 1;
  border-radius: 999px;
  transition: color 0.2s var(--ease), background 0.2s var(--ease);
}

.primary-nav a:hover {
  color: var(--teal-950);
  background: rgba(47, 155, 255, 0.08);
}

.primary-nav a:not(.nav-cta)::after {
  display: none;
}

.nav-cta,
.nav-cta--desktop {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  height: 2.55rem;
  min-height: 2.55rem;
  padding: 0 1.05rem;
  border-radius: 999px;
  background: #0ea5e9;
  color: #fff !important;
  font-family: var(--font-ui);
  font-weight: 700;
  font-size: 0.875rem;
  letter-spacing: -0.02em;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
}

.nav-cta:hover,
.nav-cta--desktop:hover {
  background: #0284c7;
  color: #fff !important;
}

.primary-nav__cta-mobile {
  display: none;
}

.nav-toggle {
  display: none;
  width: 2.55rem;
  height: 2.55rem;
  border: 0;
  background: transparent;
  padding: 0;
  cursor: pointer;
  flex-shrink: 0;
}

.nav-toggle__bar {
  display: block;
  width: 18px;
  height: 2px;
  margin: 4px auto;
  background: var(--teal-900);
  border-radius: 2px;
  transition: transform 0.25s var(--ease);
}

/* Sections */
.section {
  padding: clamp(4.5rem, 8vw, 7rem) 0;
}

.section-head {
  max-width: 640px;
  margin-bottom: 2.75rem;
}

.section-head p,
.lead {
  color: var(--ink-soft);
  font-size: 1.08rem;
}

.section-note {
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
  color: var(--ink-soft);
}

/* Hero */
.hero {
  position: relative;
  min-height: calc(100vh - var(--header-h));
  display: flex;
  align-items: center;
  padding: clamp(3rem, 6vw, 5rem) 0 clamp(4rem, 8vw, 6rem);
  overflow: hidden;
}

.hero__bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 85% 20%, rgba(18, 99, 99, 0.12), transparent 55%),
    radial-gradient(ellipse 50% 40% at 10% 80%, rgba(201, 137, 26, 0.08), transparent 50%),
    linear-gradient(180deg, #eef3f2 0%, var(--bg) 70%);
  pointer-events: none;
}

.hero__grid {
  position: relative;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}

.brand-signal {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(1.5rem, 3vw, 2rem);
  letter-spacing: -0.03em;
  color: var(--teal-800);
  margin: 0 0 0.85rem;
}

.hero__sub {
  font-size: 1.08rem;
  color: var(--ink-soft);
  max-width: 36rem;
}

.hero__badges {
  list-style: none;
  padding: 0;
  margin: 1.5rem 0 2rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}

.hero__badges li {
  margin: 0;
  padding: 0.4rem 0.75rem;
  font-size: 0.86rem;
  font-weight: 500;
  color: var(--teal-900);
  background: rgba(255, 255, 255, 0.65);
  border: 1px solid var(--line);
  border-radius: 999px;
}

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

/* Hero portrait — dominant personal brand visual */
.hero__visual {
  position: relative;
  align-self: stretch;
  display: flex;
  flex-direction: column;
  min-height: min(72vh, 640px);
}

.hero__portrait {
  margin: 0;
  flex: 1;
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(160deg, #e8efee 0%, #d5e2e1 100%);
}

.hero__portrait img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
}

.hero__flow {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  margin: 0;
  padding: 0.85rem 0 0;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.92rem;
  color: var(--teal-800);
  letter-spacing: 0.02em;
}

.hero__flow-arrow {
  color: var(--amber);
}

/* Why Leo / 關於我們 — portrait + points */
.why-leo {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.15fr);
  gap: clamp(1.75rem, 4.5vw, 3.25rem);
  align-items: stretch;
}

.why-leo__photo {
  margin: 0;
  overflow: hidden;
  border-radius: 0.35rem;
  background: #eef5fb;
  box-shadow: 0 16px 40px rgba(15, 23, 42, 0.08);
  height: 100%;
}

.why-leo__photo img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: center top;
}

.why-leo__content {
  display: flex;
  flex-direction: column;
  gap: 0;
  min-height: 100%;
}

.why-leo__intro {
  margin-bottom: 1.25rem;
}

.why-leo__name {
  margin: 0 0 0.25rem;
  font-family: var(--font-ui, sans-serif);
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--rbl-ink, #0f172a);
  letter-spacing: -0.01em;
}

.why-leo__content > .section-eyebrow,
.why-leo__intro > .section-eyebrow {
  margin: 0 0 0.55rem;
}

.why-leo__content > h2,
.why-leo__intro > h2 {
  margin: 0;
  color: var(--rbl-ink, #0f172a);
  font-size: clamp(1.85rem, 3vw, 2.45rem);
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1.15;
}

.why-leo__bio {
  margin: 0 0 1.5rem;
  display: grid;
  gap: 0.9rem;
}

.why-leo__bio p {
  margin: 0;
  color: #475569;
  font-size: 1.02rem;
  line-height: 1.8;
  max-width: 40rem;
  letter-spacing: -0.01em;
}

.why-leo__diff {
  margin-top: auto;
  padding-top: 0.35rem;
}

.why-leo__diff-title {
  margin: 0 0 0.65rem;
  font-size: clamp(1.12rem, 2vw, 1.3rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--rbl-ink, #0f172a);
  line-height: 1.35;
}

.why-leo__points {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 1px solid #d7e8f4;
}

.why-leo__points li {
  margin: 0;
  padding: 1rem 0;
  border-bottom: 1px solid #d7e8f4;
}

.why-leo__points strong {
  display: block;
  margin-bottom: 0.3rem;
  color: var(--rbl-ink, #0f172a);
  font-size: 1.02rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.35;
}

.why-leo__points span {
  display: block;
  color: #64748b;
  font-size: 0.95rem;
  line-height: 1.65;
}

@media (max-width: 980px) {
  .why-leo {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .why-leo__photo {
    max-width: 22rem;
    margin-inline: auto;
    height: auto;
  }

  .why-leo__diff {
    margin-top: 0.5rem;
  }
}

.site-footer__founder {
  margin-top: 0.5rem !important;
  font-size: 0.9rem;
  color: rgba(232, 240, 239, 0.55);
}

/* Problem */
.section--problem {
  background: var(--bg-elevated);
  border-block: 1px solid var(--line);
}

.problem-list {
  list-style: none;
  padding: 0;
  margin: 1.75rem 0;
}

.problem-list li {
  position: relative;
  padding: 0.85rem 0 0.85rem 1.5rem;
  margin: 0;
  border-bottom: 1px solid var(--line);
  color: var(--ink-soft);
}

.problem-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 1.2rem;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--amber);
}

/* Why SEO + GEO layers */
.layer-grid,
.service-grid,
.package-grid,
.case-grid,
.diff-grid {
  display: grid;
  gap: 1.25rem;
}

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

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

.layer,
.service,
.diff,
.case {
  padding: 1.6rem 1.4rem;
  border-top: 2px solid var(--teal-800);
  background: transparent;
}

.layer__label {
  display: inline-block;
  margin-bottom: 0.85rem;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--amber-dark);
}

.layer p,
.service > p,
.diff p,
.case > p {
  color: var(--ink-soft);
  font-size: 0.98rem;
}

.service ul,
.package ul,
.case__points {
  padding-left: 1rem;
  color: var(--ink-soft);
  font-size: 0.95rem;
}

/* Packages — pricing cards */
.section--packages {
  background: var(--bg);
  color: var(--ink);
}

.section--packages h2,
.section--packages .section-head p,
.section--packages h3 {
  color: var(--ink);
}

.section--packages .section-head p {
  color: var(--ink-soft);
}

.section-head--center {
  text-align: center;
  margin-inline: auto;
  max-width: 40rem;
}

.pricing-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  margin: 0 auto 2.25rem;
}

.pricing-toggle__label {
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--ink-soft);
}

.pricing-toggle__label em {
  font-style: normal;
  color: var(--signal);
}

.pricing-toggle__switch {
  position: relative;
  width: 2.75rem;
  height: 1.5rem;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: #d5dee9;
  cursor: pointer;
  transition: background 0.25s var(--ease);
}

.pricing-toggle__switch[aria-checked="true"] {
  background: var(--signal);
}

.pricing-toggle__thumb {
  position: absolute;
  top: 2px;
  left: 2px;
  width: 1.25rem;
  height: 1.25rem;
  border-radius: 999px;
  background: #fff;
  box-shadow: 0 2px 6px rgba(11, 28, 51, 0.2);
  transition: transform 0.25s var(--ease);
}

.pricing-toggle__switch[aria-checked="true"] .pricing-toggle__thumb {
  transform: translateX(1.25rem);
}

.package-grid {
  grid-template-columns: repeat(3, 1fr);
  align-items: stretch;
  gap: 1rem;
}

.package-grid--pricing {
  perspective: 1200px;
}

.package {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 1.75rem 1.5rem;
  background: var(--bg-elevated);
  border: 1px solid var(--line);
  border-radius: 1.25rem;
  text-align: center;
  box-shadow: 0 12px 36px rgba(11, 28, 51, 0.05);
  transition: transform 0.45s var(--ease), box-shadow 0.45s var(--ease);
}

.package--card:not(.package--featured) {
  margin-top: 1.25rem;
}

.package--featured {
  background: #fff;
  border: 2px solid var(--signal);
  box-shadow: 0 24px 60px rgba(47, 155, 255, 0.16);
  transform: translateY(-0.75rem) scale(1.02);
  z-index: 2;
}

.package__badge {
  position: absolute;
  top: 0;
  right: 0;
  left: auto;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  margin: 0;
  padding: 0.3rem 0.7rem;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  background: var(--signal);
  color: #fff;
  border-radius: 0 1.1rem 0 0.85rem;
}

.package__name {
  margin: 0;
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--ink-muted);
}

.package__price {
  margin: 1.1rem 0 0.25rem;
  font-size: 1rem;
  color: var(--ink-muted);
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 0.4rem;
}

.package__price span {
  font-family: var(--font-display);
  font-size: clamp(2rem, 3vw, 2.6rem);
  font-weight: 800;
  color: var(--teal-950);
  letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
}

.package__price small {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--ink-muted);
}

.package__billing {
  margin: 0 0 1rem;
  font-size: 0.78rem;
  color: var(--ink-muted);
}

.package__fit {
  font-size: 0.92rem;
  color: var(--ink-soft);
  text-align: left;
}

.package ul {
  flex: 1;
  list-style: none;
  margin: 1.25rem 0;
  padding: 0;
  text-align: left;
  color: var(--ink-soft);
}

.package ul li {
  position: relative;
  padding: 0.35rem 0 0.35rem 1.55rem;
  margin: 0;
}

.package ul li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.45rem;
  width: 1rem;
  height: 1rem;
  background-color: var(--signal);
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E") center / contain no-repeat;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E") center / contain no-repeat;
}

.package__rule {
  width: 100%;
  border: 0;
  border-top: 1px solid var(--line);
  margin: 0 0 1rem;
}

.package__outcome {
  font-size: 0.9rem;
  color: var(--ink-soft);
  margin-bottom: 1.25rem;
  text-align: left;
}

.section--packages .btn--ghost {
  color: var(--teal-950);
  border-color: var(--line);
  background: #fff;
}

.section--packages .btn--ghost:hover {
  background: var(--amber-soft);
  border-color: rgba(47, 155, 255, 0.35);
  color: var(--teal-950);
}

/* Add-on */
.addon__price {
  color: var(--sky-deep, #006bbd);
  font-weight: 700;
}

.workflow {
  display: grid;
  gap: 0.65rem;
}

.workflow__step {
  padding: 0.9rem 1.1rem;
  background: var(--bg-elevated);
  border: 1px solid var(--line);
  border-left: 3px solid var(--teal-700);
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--teal-900);
  transform: translateX(0);
  animation: workflowPulse 4s var(--ease) infinite;
}

.workflow__step:nth-child(2) { animation-delay: 0.2s; }
.workflow__step:nth-child(3) { animation-delay: 0.4s; }
.workflow__step:nth-child(4) { animation-delay: 0.6s; }
.workflow__step:nth-child(5) { animation-delay: 0.8s; }

.workflow__step.is-accent {
  border-left-color: var(--amber);
  background: var(--amber-soft);
}

@keyframes workflowPulse {
  0%, 100% { opacity: 0.85; }
  50% { opacity: 1; }
}

/* Cases */
.section--cases {
  background: var(--bg-elevated);
  border-block: 1px solid var(--line);
}

.case__tag {
  display: inline-block;
  margin-bottom: 0.75rem;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--teal-700);
}

.case__points {
  list-style: none;
  padding: 0;
  margin-top: 1.1rem;
}

.case__points li {
  margin: 0;
  padding: 0.4rem 0;
  border-top: 1px solid var(--line);
  font-size: 0.9rem;
}

/* Process */
.process-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
  counter-reset: none;
}

.process-list li {
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.85rem;
}

.process-list__num {
  font-family: var(--font-display);
  font-size: 2.4rem;
  font-weight: 800;
  letter-spacing: -0.04em;
  color: var(--amber);
  line-height: 1;
}

.process-list p {
  color: var(--ink-soft);
  margin: 0;
  font-size: 0.95rem;
}

/* Why Leo */
.section--why-leo {
  background:
    linear-gradient(180deg, transparent, rgba(18, 99, 99, 0.05)),
    var(--bg);
}

.diff {
  border-top-color: var(--amber);
}

/* FAQ */
.faq-list {
  display: grid;
  gap: 0.65rem;
}

.faq-item {
  border-bottom: 1px solid var(--line);
  padding: 0.25rem 0 0.85rem;
}

.faq-item summary {
  cursor: pointer;
  list-style: none;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--teal-950);
  padding: 0.85rem 1.75rem 0.85rem 0;
  position: relative;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: "+";
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.35rem;
  color: var(--amber-dark);
}

.faq-item[open] summary::after {
  content: "–";
}

.faq-item p {
  margin: 0 0 0.5rem;
  color: var(--ink-soft);
  max-width: 38rem;
}

/* Insights / Blog */
.section--insights {
  text-align: left;
  padding-block: clamp(4.5rem, 8vw, 7rem);
  border-top: 1px solid var(--line);
}

.section-head--row {
  max-width: none;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.blog-kicker {
  margin: 0 0 0.65rem;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--amber-dark);
}

.blog-kicker a {
  color: inherit;
  text-decoration: none;
}

.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

.blog-card {
  margin: 0;
  border-top: 2px solid var(--teal-800);
  background: var(--bg-elevated);
  transition: transform 0.25s var(--ease), border-color 0.25s var(--ease);
}

.blog-card:hover {
  transform: translateY(-2px);
  border-top-color: var(--amber);
}

.blog-card__link {
  display: block;
  padding: 1.4rem 1.25rem 1.5rem;
  text-decoration: none;
  color: inherit;
  height: 100%;
}

.blog-card__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 0.85rem;
  margin-bottom: 0.75rem;
  font-size: 0.82rem;
  color: var(--ink-muted);
}

.blog-card__cat {
  color: var(--teal-700);
  font-weight: 600;
}

.blog-card__title {
  font-size: 1.2rem;
  margin-bottom: 0.65rem;
  color: var(--teal-950);
}

.blog-card__excerpt {
  color: var(--ink-soft);
  font-size: 0.95rem;
  margin-bottom: 1rem;
}

.blog-card__more {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--amber-dark);
}

.section--blog-hero {
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--line);
  background: linear-gradient(180deg, #eef3f2, var(--bg));
}

.section--blog-list {
  padding-top: 2.5rem;
}

.blog-pagination {
  margin-top: 2.5rem;
  display: flex;
  justify-content: center;
}

.blog-pagination .nav-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
}

.blog-pagination a,
.blog-pagination span {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0.35rem 0.85rem;
  border: 1px solid var(--line);
  text-decoration: none;
  color: var(--teal-900);
  font-weight: 600;
  font-size: 0.9rem;
}

.blog-pagination .current {
  background: var(--teal-900);
  color: #fff;
  border-color: var(--teal-900);
}

.single-post__hero {
  position: relative;
  padding: 0;
  overflow: visible;
  background: transparent;
  border-bottom: 0;
}

.single-post__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.45rem 0.55rem;
  margin: 0;
  color: var(--ink-muted);
  font-size: 0.95rem;
}

.single-post__body {
  padding: clamp(1.75rem, 3vw, 2.5rem) 0 1rem;
}

.single-post__body h2 {
  margin-top: 2rem;
  margin-bottom: 0.85rem;
  color: var(--ink);
  font-size: clamp(1.25rem, 2vw, 1.5rem);
  letter-spacing: -0.02em;
}

.single-post__body ul,
.single-post__body ol {
  color: var(--ink-soft);
  padding-left: 1.2rem;
}

.single-post__body li + li {
  margin-top: 0.45rem;
}

.single-post__body p {
  color: var(--ink-soft);
  font-size: 1.05rem;
  line-height: 1.8;
}

.single-post__footer {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  padding: 1.5rem 0 3.5rem;
  border-top: 1px solid var(--line);
  margin-top: 1.5rem;
}

.section--cta-compact {
  text-align: center;
}

.section--cta-compact h2 {
  color: #fff;
}

.section--cta-compact p {
  color: rgba(232, 240, 239, 0.8);
}

.section--related {
  padding-top: 2rem;
  border-top: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.35);
}

/* CTA / Contact */
.section--cta {
  background: var(--teal-900);
  color: #e8f0ef;
  padding-block: clamp(4.5rem, 9vw, 7.5rem);
}

.section--cta h2,
.section--cta h3 {
  color: #fff;
}

.cta-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 3.5rem);
  align-items: start;
}

.cta-copy > p {
  color: rgba(232, 240, 239, 0.82);
}

.cta-secondary {
  font-size: 0.95rem;
  color: rgba(232, 240, 239, 0.65) !important;
}

.cta-direct {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

.section--cta .btn--ghost {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.3);
}

.section--cta .btn--ghost:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
}

.contact-form {
  display: grid;
  gap: 0.85rem;
  padding: 1.75rem;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--radius-lg);
}

.contact-form--easy {
  gap: 0.95rem;
}

.contact-form__head {
  display: grid;
  gap: 0.4rem;
  margin-bottom: 0.15rem;
}

.contact-form__head h3 {
  margin: 0;
  font-size: clamp(1.2rem, 2.4vw, 1.4rem);
  letter-spacing: -0.02em;
}

.contact-form__lead {
  margin: 0;
  font-size: 0.92rem;
  color: rgba(232, 240, 239, 0.78);
}

.contact-form__perks {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  list-style: none;
  margin: 0.35rem 0 0;
  padding: 0;
}

.contact-form__perks li {
  margin: 0;
  padding: 0.28rem 0.65rem;
  border-radius: 0.45rem;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.14);
  font-size: 0.78rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.88);
}

.contact-form__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
}

.contact-form__opt {
  font-style: normal;
  font-weight: 500;
  opacity: 0.62;
  font-size: 0.82em;
}

.contact-form__goals {
  margin: 0;
  padding: 0;
  border: 0;
  min-inline-size: 0;
}

.contact-form__goals legend {
  padding: 0;
  margin: 0 0 0.45rem;
  font-size: 0.86rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.78);
}

.contact-form__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.contact-form__chip {
  appearance: none;
  margin: 0;
  padding: 0.55rem 0.85rem;
  border-radius: 0.55rem;
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  font: inherit;
  font-size: 0.86rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.18s ease, border-color 0.18s ease, color 0.18s ease, transform 0.18s ease;
}

.contact-form__chip:hover {
  background: rgba(255, 255, 255, 0.14);
  border-color: rgba(255, 255, 255, 0.35);
}

.contact-form__chip.is-active {
  background: #fff;
  border-color: #fff;
  color: #0369a1;
  transform: translateY(-1px);
}

.contact-form__chip:focus-visible {
  outline: 2px solid var(--amber, #f5b942);
  outline-offset: 2px;
}

.contact-form__note textarea {
  min-height: 4.2rem;
  resize: vertical;
}

.contact-form__foot {
  margin: 0;
  text-align: center;
  font-size: 0.8rem;
  color: rgba(232, 240, 239, 0.62);
}

.contact-form label {
  display: grid;
  gap: 0.35rem;
}

.contact-form label span {
  font-size: 0.86rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.78);
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 0.75rem 0.9rem;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.96);
  color: var(--ink);
  font: inherit;
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
  color: #94a3b8;
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: 2px solid var(--amber);
  outline-offset: 1px;
}

.form-status {
  margin: 0.25rem 0 0;
  font-size: 0.92rem;
}

.form-status.is-success { color: #b8e0c0; }
.form-status.is-error { color: #ffc9b8; }

@media (max-width: 560px) {
  .contact-form__row {
    grid-template-columns: 1fr;
  }
}

/* Footer — stacked circular */
.site-footer {
  background: var(--teal-950);
  color: rgba(220, 234, 248, 0.72);
  padding: 3.5rem 0 2.5rem;
}

.site-footer__stack {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  max-width: 40rem;
}

.site-footer__badge {
  display: none;
}

.site-footer__logo {
  display: grid;
  place-items: center;
  width: 7.5rem;
  height: 7.5rem;
  margin: 0 auto 1.1rem;
  padding: 0.85rem;
  border-radius: 999px;
  background: #fff;
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 0 0 8px rgba(47, 155, 255, 0.08);
  text-decoration: none;
}

.site-footer__logo img {
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.site-footer__brand-name {
  display: none;
}

.site-footer__tagline {
  margin: 0 0 1.75rem;
  font-size: 0.92rem;
  color: rgba(220, 234, 248, 0.62);
  max-width: 28rem;
}

.site-footer__nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.35rem 1.5rem;
  margin-bottom: 1.75rem;
}

.site-footer__nav a {
  color: rgba(232, 240, 248, 0.82);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
  transition: color 0.2s var(--ease);
}

.site-footer__nav a:hover {
  color: var(--lime-light);
}

.site-footer__contact {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 0.35rem 0.75rem;
  margin: 0 0 1.25rem;
  font-size: 0.95rem;
  font-weight: 600;
}

.site-footer__contact a {
  color: rgba(232, 240, 248, 0.9);
  text-decoration: none;
  transition: color 0.2s var(--ease);
}

.site-footer__contact a:hover {
  color: var(--lime-light);
}

.site-footer__contact span {
  opacity: 0.45;
}

.site-footer__social {
  display: flex;
  gap: 0.75rem;
  margin-bottom: 1.75rem;
}

.site-footer__social-btn {
  display: grid;
  place-items: center;
  width: 2.6rem;
  height: 2.6rem;
  border-radius: 999px;
  border: 1px solid rgba(220, 234, 248, 0.18);
  background: rgba(255, 255, 255, 0.04);
  color: rgba(232, 240, 248, 0.88);
  text-decoration: none;
  transition: border-color 0.2s var(--ease), background 0.2s var(--ease), color 0.2s var(--ease), transform 0.2s var(--ease);
}

.site-footer__social-btn:hover {
  border-color: rgba(47, 155, 255, 0.55);
  background: rgba(47, 155, 255, 0.14);
  color: #fff;
  transform: translateY(-2px);
}

.site-footer__subscribe {
  display: flex;
  width: 100%;
  max-width: 26rem;
  gap: 0.5rem;
  margin-bottom: 1.75rem;
}

.site-footer__input {
  flex: 1;
  min-width: 0;
  height: 2.75rem;
  padding: 0 1.15rem;
  border-radius: 999px;
  border: 1px solid rgba(220, 234, 248, 0.16);
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
  font: inherit;
  font-size: 0.92rem;
  outline: none;
}

.site-footer__input::placeholder {
  color: rgba(220, 234, 248, 0.45);
}

.site-footer__input:focus {
  border-color: rgba(47, 155, 255, 0.55);
  box-shadow: 0 0 0 3px rgba(47, 155, 255, 0.18);
}

.site-footer__submit {
  border-radius: 999px;
  white-space: nowrap;
  flex-shrink: 0;
}

.site-footer__copy {
  margin: 0;
  font-size: 0.88rem;
  color: rgba(220, 234, 248, 0.55);
}

.site-footer__seo-line {
  margin: 0.45rem 0 0;
  font-size: 0.8rem;
  color: rgba(94, 180, 255, 0.7);
}

@media (max-width: 560px) {
  .site-footer__subscribe {
    flex-direction: column;
  }

  .site-footer__submit {
    width: 100%;
  }
}

/* Reveal motion */
[data-reveal] {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}

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

/* Generic content pages */
.section .post h1 {
  margin-bottom: 1.25rem;
}

/* Responsive */
@media (max-width: 980px) {
  .hero__grid,
  .addon,
  .cta-grid,
  .why-leo {
    grid-template-columns: 1fr;
  }

  .hero__visual {
    min-height: 420px;
    order: -1;
  }

  .hero__portrait {
    max-height: 480px;
  }

  .layer-grid,
  .service-grid,
  .package-grid,
  .case-grid,
  .diff-grid,
  .process-list,
  .blog-grid {
    grid-template-columns: 1fr;
  }

  .package--card:not(.package--featured) {
    margin-top: 0;
  }

  .package--featured {
    transform: none;
  }

  .why-leo .diff-grid {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
  }

  .site-header__pill {
    width: calc(100vw - 1.25rem);
    max-width: calc(100vw - 1.25rem);
    height: 3.35rem;
    padding: 0.3rem 0.4rem 0.3rem 0.9rem;
    gap: 0.5rem;
  }

  .nav-cta--desktop {
    display: none;
  }

  .primary-nav__cta-mobile {
    display: list-item;
    width: 100%;
    height: auto;
  }

  .nav-toggle {
    display: grid;
    place-items: center;
    margin-left: auto;
  }

  .primary-nav {
    position: absolute;
    top: calc(100% + 0.65rem);
    left: 0;
    right: 0;
    height: auto;
    background: rgba(255, 255, 255, 0.98);
    border: 1px solid rgba(11, 28, 51, 0.08);
    border-radius: 1.25rem;
    padding: 0.75rem;
    box-shadow: 0 18px 40px rgba(11, 28, 51, 0.12);
    transform: translateY(-8px);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.3s var(--ease), opacity 0.3s var(--ease);
  }

  .primary-nav.is-open {
    transform: none;
    opacity: 1;
    pointer-events: auto;
  }

  .primary-nav__list {
    flex-direction: column;
    align-items: stretch;
    height: auto;
    gap: 0.2rem;
  }

  .primary-nav__list > li {
    height: auto;
    width: 100%;
  }

  .primary-nav a {
    display: flex;
    width: 100%;
    height: auto;
    min-height: 2.75rem;
    justify-content: flex-start;
    padding: 0.7rem 0.85rem;
    border-radius: 0.85rem;
  }

  .primary-nav .nav-cta {
    justify-content: center;
    margin-top: 0.35rem;
    background: #0ea5e9;
    color: #fff !important;
  }

  body.nav-open {
    overflow: hidden;
  }
}

@media (min-width: 981px) and (max-width: 1100px) {
  .package-grid {
    grid-template-columns: 1fr;
  }

  .layer-grid,
  .service-grid,
  .diff-grid,
  .blog-grid,
  .case-grid {
    grid-template-columns: 1fr 1fr;
  }

  .process-list {
    grid-template-columns: 1fr 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  [data-reveal] {
    opacity: 1;
    transform: none;
    transition: none;
  }
  .workflow__step { animation: none; }
  .btn { transition: none; }
  .rbl-wa-float { transition: none; animation: none; }
}

/* Floating WhatsApp CTA */
.rbl-wa-float {
  position: fixed;
  right: 1.25rem;
  bottom: 1.25rem;
  z-index: 6000;
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  min-height: 3.4rem;
  padding: 0.7rem 1.05rem 0.7rem 0.85rem;
  border-radius: 999px;
  background: #25d366;
  color: #fff;
  text-decoration: none;
  font-family: "Plus Jakarta Sans", "Noto Sans TC", sans-serif;
  font-size: 0.92rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  box-shadow:
    0 10px 28px rgba(18, 140, 70, 0.38),
    0 2px 8px rgba(15, 23, 42, 0.12);
  transition: transform 0.22s ease, box-shadow 0.22s ease, background 0.22s ease;
}

.rbl-wa-float:hover {
  background: #1ebe57;
  color: #fff;
  transform: translateY(-2px) scale(1.02);
  box-shadow:
    0 14px 32px rgba(18, 140, 70, 0.45),
    0 4px 12px rgba(15, 23, 42, 0.14);
}

.rbl-wa-float:focus-visible {
  outline: 3px solid rgba(37, 211, 102, 0.45);
  outline-offset: 3px;
}

.rbl-wa-float svg {
  flex-shrink: 0;
}

.rbl-wa-float__label {
  padding-right: 0.15rem;
}

@media (max-width: 560px) {
  .rbl-wa-float {
    right: auto;
    left: 50%;
    bottom: max(1rem, env(safe-area-inset-bottom, 0px));
    transform: translateX(-50%);
    min-height: 3.25rem;
    width: auto;
    padding: 0.7rem 1.1rem 0.7rem 0.9rem;
    justify-content: center;
    border-radius: 999px;
  }

  .rbl-wa-float:hover {
    transform: translateX(-50%) translateY(-2px) scale(1.02);
  }

  .rbl-wa-float__label {
    position: static;
    width: auto;
    height: auto;
    padding: 0 0.15rem 0 0;
    margin: 0;
    overflow: visible;
    clip: auto;
    white-space: nowrap;
    border: 0;
    font-size: 0.88rem;
  }
}
