:root {
  --front-navy: #14244d;
  --front-navy-soft: #223866;
  --front-coral: #ff6b5f;
  --front-mint: #79cdb2;
  --front-cream: #fff8ed;
  --front-ink: #111827;
  --front-muted: #6b7280;
  --front-border: #dbe3ef;
}

html {
  scroll-behavior: smooth;
}

body {
  background: linear-gradient(180deg, #fff 0%, #f7fbff 58%, var(--front-cream) 100%);
  color: var(--front-ink);
  font-family: "Noto Sans TC", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.front-shell {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.front-navbar {
  background: rgba(255, 255, 255, .94);
  border-bottom: 1px solid var(--front-border);
  backdrop-filter: blur(12px);
}

.front-logo {
  width: min(260px, 62vw);
  height: auto;
}

.nav-pills .nav-link {
  color: var(--front-navy);
  border-radius: 999px;
}

.nav-pills .nav-link.active,
.btn-front-primary {
  background: var(--front-navy);
  border-color: var(--front-navy);
  color: #fff;
}

.btn.btn-front-primary:hover,
.btn.btn-front-primary:focus,
.btn.btn-front-primary:active,
.btn.btn-front-primary.active,
.btn.btn-front-primary:focus-visible {
  background: var(--front-navy-soft);
  border-color: var(--front-navy-soft);
  color: #fff;
}

.btn-front-coral {
  background: var(--front-coral);
  border-color: var(--front-coral);
  color: #fff;
}

.btn.btn-front-coral:hover,
.btn.btn-front-coral:focus,
.btn.btn-front-coral:active,
.btn.btn-front-coral.active,
.btn.btn-front-coral:focus-visible {
  background: #ef5d52;
  border-color: #ef5d52;
  color: #fff;
}

.btn-front-mint {
  background: var(--front-mint);
  border-color: var(--front-mint);
  color: var(--front-navy);
  font-weight: 700;
}

.btn.btn-front-mint:hover,
.btn.btn-front-mint:focus,
.btn.btn-front-mint:active,
.btn.btn-front-mint.active,
.btn.btn-front-mint:focus-visible {
  background: #63b99f;
  border-color: #63b99f;
  color: var(--front-navy);
}

.btn.btn-front-primary:focus-visible,
.btn.btn-front-coral:focus-visible,
.btn.btn-front-mint:focus-visible {
  box-shadow: 0 0 0 .25rem rgba(121, 205, 178, .35);
}

.btn.btn-front-primary:disabled,
.btn.btn-front-primary.disabled,
.btn.btn-front-coral:disabled,
.btn.btn-front-coral.disabled,
.btn.btn-front-mint:disabled,
.btn.btn-front-mint.disabled {
  opacity: .65;
}

.front-panel,
.front-metric,
.front-draft {
  background: rgba(255, 255, 255, .96);
  border: 1px solid var(--front-border);
  border-radius: 8px;
  box-shadow: 0 16px 40px rgba(20, 36, 77, .08);
}

.front-hero {
  background: linear-gradient(135deg, rgba(121, 205, 178, .2), rgba(255, 107, 95, .12) 52%, rgba(20, 36, 77, .08));
  border-bottom: 1px solid var(--front-border);
}

.front-band {
  background: rgba(255, 255, 255, .55);
  border-top: 1px solid var(--front-border);
  border-bottom: 1px solid var(--front-border);
}

.front-flow {
  padding-left: 1.25rem;
}

.front-flow li {
  margin-bottom: .7rem;
}

.front-flow li:last-child {
  margin-bottom: 0;
}

.front-step {
  width: 2rem;
  height: 2rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: var(--front-navy);
  color: #fff;
  font-weight: 700;
}

.front-auth-modal {
  border: 1px solid var(--front-border);
  border-radius: 8px;
}

.front-captcha-row {
  display: grid;
  grid-template-columns: 120px 42px minmax(7rem, 1fr);
  gap: .5rem;
  align-items: center;
}

.front-captcha-row .invalid-feedback {
  grid-column: 1 / -1;
}

.front-captcha-img {
  width: 120px;
  height: 48px;
  border: 1px solid var(--front-border);
  border-radius: 8px;
  background: var(--front-cream);
  /*object-fit: cover;*/
}

.front-captcha-row .js-front-refresh-captcha {
  width: 42px;
  height: 48px;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 42px;
}

.front-dashboard-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
}

.front-dashboard-tabs .btn {
  min-width: 9rem;
}

.front-scroll-target {
  scroll-margin-top: 6rem;
}

.front-status-dot {
  width: .65rem;
  height: .65rem;
  border-radius: 999px;
  display: inline-block;
  background: var(--front-muted);
}

.front-status-dot.ok {
  background: var(--front-mint);
}

.front-status-dot.warn {
  background: var(--front-coral);
}

.front-auto-publish-control {
  padding: .65rem .75rem;
  border: 1px solid var(--front-border);
  border-radius: 8px;
  background: #fff;
}

.front-auto-publish-control .form-switch {
  padding-left: 2.75rem;
}

.front-auto-publish-control .form-check-input {
  width: 2.35rem;
  height: 1.25rem;
  margin-left: -2.75rem;
  background-color: var(--front-coral);
  border-color: var(--front-coral);
}

.front-auto-publish-control .form-check-input:checked {
  background-color: var(--front-mint);
  border-color: var(--front-mint);
}

.front-auto-publish-control .form-check-input:focus {
  border-color: var(--front-mint);
  box-shadow: 0 0 0 .2rem rgba(121, 205, 178, .25);
}

.front-footer {
  background: rgba(255, 255, 255, .9);
  border-top: 1px solid var(--front-border);
  color: var(--front-muted);
}

.front-footer a {
  color: var(--front-navy);
  font-weight: 700;
  text-decoration: none;
}

.front-footer a:hover,
.front-footer a:focus {
  color: var(--front-coral);
}

.form-control:focus,
.form-select:focus {
  border-color: var(--front-mint);
  box-shadow: 0 0 0 .2rem rgba(121, 205, 178, .25);
}

.badge-front {
  background: rgba(20, 36, 77, .1);
  color: var(--front-navy);
}

.badge-front-coral {
  background: rgba(255, 107, 95, .14);
  color: #b92f27;
}

.badge-front-mint {
  background: rgba(121, 205, 178, .22);
  color: #17644e;
}

.swal2-popup.front-alert {
  border-radius: 8px;
  border: 1px solid var(--front-border);
}

.swal2-popup.front-alert .swal2-title {
  color: var(--front-navy);
}

.swal2-popup.front-alert .swal2-confirm {
  background: var(--front-navy) !important;
  border-radius: 999px;
}

.swal2-popup.front-alert .swal2-cancel {
  background: var(--front-coral) !important;
  border-radius: 999px;
}

.swal2-popup.front-alert .swal2-deny {
    border-radius: 999px;
}

.front-wizard-chat {
  max-height: 260px;
  overflow: auto;
  padding: .75rem;
  border: 1px solid var(--front-border);
  border-radius: 8px;
  background: #f8fbff;
}

.front-wizard-message {
  padding: .65rem .75rem;
  margin-bottom: .5rem;
  border-radius: 8px;
  background: #fff;
  border: 1px solid rgba(20, 36, 77, .08);
}

.front-wizard-message:last-child {
  margin-bottom: 0;
}

.terms-popup {
  max-height: min(60vh, 520px);
  overflow: auto;
}

.terms-popup h3 {
  color: var(--front-navy);
  font-size: 1.05rem;
  margin: 1rem 0 .5rem;
}

.terms-popup h3:first-child {
  margin-top: 0;
}

.terms-popup p {
  color: var(--front-ink);
  line-height: 1.75;
  margin-bottom: .75rem;
}

.front-home {
  background: #fff;
}

.front-home-hero {
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--front-border);
  background: #f0f8f6;
}

.front-home-hero-copy {
  position: relative;
  z-index: 1;
  max-width: 650px;
}

.front-home-hero-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(360px, .88fr);
  gap: 2rem;
  align-items: center;
}

.front-home-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  align-items: center;
}

.front-home-hero-visual {
  min-width: 0;
  text-align: center;
}

.front-home-working-robot {
  display: block;
  width: 100%;
  max-width: 470px;
  height: auto;
  margin: 0 auto;
}

.front-home-feature-illustrations {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: .65rem;
  margin-top: -.35rem;
}

.front-home-feature-illustrations figure {
  min-width: 0;
  margin: 0;
  text-align: center;
}

.front-home-feature-illustrations img {
  display: block;
  width: min(100%, 112px);
  aspect-ratio: 1;
  margin: 0 auto .25rem;
  object-fit: contain;
  filter: drop-shadow(0 8px 9px rgba(20, 36, 77, .1));
}

.front-home-feature-illustrations strong,
.front-home-feature-illustrations span {
  display: block;
}

.front-home-feature-illustrations strong {
  color: var(--front-navy);
  font-size: .88rem;
}

.front-home-feature-illustrations span {
  margin-top: .1rem;
  color: var(--front-muted);
  font-size: .72rem;
}

.front-home-pain {
  color: #b92f27;
  font-size: 1.08rem;
  font-weight: 800;
}

.front-home-title {
  max-width: 800px;
  color: var(--front-navy);
  font-size: 3.1rem;
  line-height: 1.16;
}

.front-home-title span {
  display: block;
  margin-bottom: .75rem;
  color: var(--front-coral);
  font-size: 1.35rem;
  font-weight: 800;
}

.front-home-lead {
  max-width: 700px;
  color: #44516a;
  font-size: 1.2rem;
  line-height: 1.85;
}

.front-home-trial-note {
  display: flex;
  gap: .45rem;
  align-items: center;
  color: #17644e;
  font-size: .92rem;
  font-weight: 700;
}

.front-home-examples {
  scroll-margin-top: 5rem;
  background: #fff;
}

.front-home-section-heading {
  max-width: 720px;
}

.front-home-section-heading h2,
.front-home-routine h2,
.front-home-pricing h2 {
  margin: .45rem 0 .8rem;
  color: var(--front-navy);
  font-size: 2rem;
  line-height: 1.35;
}

.front-home-section-heading p {
  color: var(--front-muted);
  line-height: 1.75;
}

.front-home-eyebrow,
.front-example-label {
  color: var(--front-coral);
  font-size: .86rem;
  font-weight: 800;
}

.front-example-tabs {
  gap: .35rem;
}

.front-example-tabs .nav-link {
  min-width: 7rem;
  border: 1px solid var(--front-border);
  border-radius: 8px;
  background: #fff;
  font-weight: 700;
}

.front-example-tabs .nav-link.active {
  border-color: var(--front-navy);
  background: var(--front-navy);
}

.front-example-content {
  max-width: 920px;
  margin: 0 auto;
}

.front-example-workspace {
  display: grid;
  grid-template-columns: minmax(230px, .72fr) minmax(0, 1.28fr);
  min-height: 430px;
  overflow: hidden;
  border: 1px solid var(--front-border);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 18px 50px rgba(20, 36, 77, .1);
}

.front-example-brief {
  padding: 2rem;
  background: var(--front-navy);
  color: #fff;
}

.front-example-brief .front-example-label {
  color: #ff9d95;
}

.front-example-brief h3 {
  margin: .55rem 0 1.75rem;
  font-size: 1.35rem;
}

.front-example-brief dl,
.front-example-brief dd {
  margin: 0;
}

.front-example-brief dl > div {
  padding: .85rem 0;
  border-top: 1px solid rgba(255, 255, 255, .18);
}

.front-example-brief dt {
  color: rgba(255, 255, 255, .62);
  font-size: .78rem;
  font-weight: 500;
}

.front-example-brief dd {
  margin-top: .25rem;
  font-size: .95rem;
  font-weight: 700;
}

.front-example-post {
  padding: 2rem 2.25rem;
  color: #303b50;
  font-size: 1.02rem;
  line-height: 1.85;
}

.front-example-post header {
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr) auto;
  gap: .75rem;
  align-items: center;
  margin-bottom: 1.5rem;
}

.front-example-post header img {
  width: 46px;
  height: 46px;
  border: 1px solid var(--front-border);
  border-radius: 50%;
}

.front-example-post header strong,
.front-example-post header span {
  display: block;
}

.front-example-post header strong {
  color: var(--front-navy);
}

.front-example-post header div span {
  color: var(--front-muted);
  font-size: .78rem;
}

.front-example-post-media {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  margin-top: 1.25rem;
  border: 1px solid var(--front-border);
  border-radius: 8px;
  object-fit: cover;
  object-position: center;
}

.front-example-post footer {
  display: flex;
  gap: 1.5rem;
  margin-top: 1.6rem;
  padding-top: 1rem;
  border-top: 1px solid var(--front-border);
  color: var(--front-navy);
  font-size: 1.1rem;
}

.front-home-benefits {
  border-top: 1px solid var(--front-border);
  border-bottom: 1px solid var(--front-border);
  background: #f5f8fc;
}

.front-benefit-item {
  padding: 1.5rem;
  border: 1px solid var(--front-border);
  border-radius: 8px;
  background: #fff;
}

.front-benefit-item > i {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  margin-bottom: 1.2rem;
  border-radius: 50%;
  background: rgba(121, 205, 178, .2);
  color: #17644e;
  font-size: 1.35rem;
}

.front-benefit-item h3 {
  color: var(--front-navy);
  font-size: 1.08rem;
}

.front-benefit-item p {
  margin: 0;
  color: var(--front-muted);
  line-height: 1.75;
}

.front-home-routine {
  background: #fff;
}

.front-home-routine .col-lg-4 > p {
  line-height: 1.8;
}

.front-routine-list,
.front-start-steps {
  margin: 0;
  padding: 0;
  list-style: none;
}

.front-routine-list li {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  gap: 1rem;
  padding: 1.2rem 0;
  border-top: 1px solid var(--front-border);
}

.front-routine-list li:first-child {
  padding-top: 0;
  border-top: 0;
}

.front-routine-list li > span,
.front-start-steps li > span {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--front-coral);
  color: #fff;
  font-weight: 800;
}

.front-routine-list strong {
  color: var(--front-navy);
  font-size: 1.05rem;
}

.front-routine-list p {
  margin: .3rem 0 0;
  color: var(--front-muted);
  line-height: 1.65;
}

.front-home-pricing {
  background: var(--front-navy);
  color: #fff;
}

.front-home-pricing .front-home-eyebrow {
  color: #ff9d95;
}

.front-home-pricing h2 {
  color: #fff;
}

.front-home-pricing .col-lg-7 > p {
  max-width: 680px;
  color: rgba(255, 255, 255, .76);
  line-height: 1.75;
}

.front-pricing-trial {
  display: flex;
  gap: .5rem;
  align-items: center;
  color: #a8e3d1 !important;
  font-weight: 700;
}

.front-price strong {
  font-size: 3.1rem;
}

.front-price span {
  color: rgba(255, 255, 255, .68);
  font-size: 1.1rem;
}

.front-home-start {
  background: #fff;
}

.front-start-steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.5rem;
}

.front-start-steps li {
  position: relative;
  padding-top: .2rem;
}

.front-start-steps li::after {
  position: absolute;
  top: 21px;
  right: -1rem;
  width: .5rem;
  border-top: 2px solid var(--front-border);
  content: "";
}

.front-start-steps li:last-child::after {
  display: none;
}

.front-start-steps h3 {
  margin: 1rem 0 .45rem;
  color: var(--front-navy);
  font-size: 1.02rem;
}

.front-start-steps p {
  margin: 0;
  color: var(--front-muted);
  font-size: .9rem;
  line-height: 1.65;
}

.front-home-trust {
  border-top: 1px solid rgba(121, 205, 178, .42);
  background: #eaf7f2;
}

.front-home-trust strong,
.front-home-trust span {
  display: block;
}

.front-home-trust strong {
  color: var(--front-navy);
  font-size: 1.05rem;
}

.front-home-trust span {
  margin-top: .2rem;
  color: #476357;
  font-size: .88rem;
}

@media (max-width: 767.98px) {
  .front-logo {
    width: min(220px, 72vw);
  }

  .front-panel {
    box-shadow: none;
  }

  .front-home-title {
    font-size: 2.15rem;
  }

  .front-home-title span {
    font-size: 1.05rem;
  }

  .front-home-lead {
    font-size: 1.04rem;
  }

  .front-home-hero-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .front-home-hero-actions .btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: .55rem .45rem;
    font-size: .88rem;
  }

  .front-home-working-robot {
    max-width: 290px;
  }

  .front-home-feature-illustrations {
    gap: .25rem;
    margin-top: -.6rem;
  }

  .front-home-feature-illustrations img {
    width: min(100%, 82px);
  }

  .front-home-feature-illustrations strong {
    font-size: .78rem;
  }

  .front-home-feature-illustrations span {
    font-size: .66rem;
  }

  .front-home-section-heading h2,
  .front-home-routine h2,
  .front-home-pricing h2 {
    font-size: 1.65rem;
  }

  .front-example-workspace {
    grid-template-columns: 1fr;
  }

  .front-example-brief,
  .front-example-post {
    padding: 1.35rem;
  }

  .front-example-brief h3 {
    margin-bottom: .8rem;
  }

  .front-example-brief dl {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: .6rem;
  }

  .front-example-brief dl > div {
    padding: .6rem 0 0;
  }

  .front-example-brief dd {
    font-size: .82rem;
  }

  .front-example-post {
    font-size: .96rem;
  }

  .front-start-steps {
    grid-template-columns: 1fr;
    gap: 1.2rem;
  }

  .front-start-steps li {
    display: grid;
    grid-template-columns: 48px minmax(0, 1fr);
    gap: .8rem;
  }

  .front-start-steps li::after {
    display: none;
  }

  .front-start-steps h3 {
    margin: 0 0 .35rem;
  }

  .front-price strong {
    font-size: 2.5rem;
  }

}

@media (max-width: 991.98px) {
  .front-home-hero-layout {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .front-home-hero-copy {
    max-width: none;
  }

  .front-home-hero-visual {
    width: min(100%, 520px);
    margin: 0 auto;
  }
}

