/* ============================================================
   Public marketing landing page — flosolo.com apex/www host.
   Everything scoped under .landing (the <body> class set by
   layouts/landing.html.erb) because Propshaft's `:app` bundle
   (used by layouts/application.html.erb via stylesheet_link_tag :app)
   pulls in every file under app/assets/stylesheets/ automatically —
   without this scoping these rules would leak onto the dashboard/
   customers/job_orders/billing pages.
   Redesign (2026-07-28): tailor/sewing motif — thread-red accents,
   stitched dividers, swing-tag pricing cards — replacing the earlier
   Ocean-blue port of wealth.dule's saas_landing. Class names kept
   stable (nav-*, hero-*, section-*, problem-card, feature-card,
   price-*, faq-*, final-cta, footer-*, legal-page) so pages/home and
   legal/* don't need markup changes beyond dropping the old
   scroll-reveal Stimulus hooks (this design has no JS dependency).
   ============================================================ */

html:has(body.landing) { scroll-behavior: smooth; }

.landing, .landing * { margin: 0; padding: 0; box-sizing: border-box; }

.landing {
  --linen: #F3F5FA;
  --linen-deep: #DDE4F0;
  --card: #FFFFFF;
  --ink: #0E1B33;
  --ink-soft: #4A5878;
  --indigo: #16294F;
  --indigo-deep: #0C1A38;
  --thread: #C13A2B;
  --thread-soft: #E06A57;
  --electric: #2E5BFF;
  --electric-glow: rgba(46, 91, 255, .30);
  --chalk: #5B82E8;
  --chalk-line: #C7D4F2;
  --grid: rgba(22, 41, 79, .055);
  --radius: 14px;

  font-family: 'IBM Plex Sans Thai', sans-serif;
  background: var(--linen);
  color: var(--ink);
  overflow-x: hidden;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
.landing img { max-width: 100%; display: block; }
.landing a { text-decoration: none; color: inherit; }
.landing .wrap { max-width: 1140px; margin: 0 auto; padding: 0 24px; }
.landing .eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: 'IBM Plex Mono', 'IBM Plex Sans Thai', monospace;
  font-size: 12px; font-weight: 500; letter-spacing: .18em; text-transform: uppercase;
  color: var(--chalk);
}
.landing .eyebrow::before {
  content: ""; width: 34px; height: 2px;
  background-image: linear-gradient(90deg, var(--chalk) 0 7px, transparent 7px 12px);
  background-size: 12px 2px;
}

/* stitch line (signature) */
.landing .stitch {
  height: 2px; border: 0;
  background-image: linear-gradient(90deg, var(--thread) 0 9px, transparent 9px 16px);
  background-size: 16px 2px; background-repeat: repeat-x;
}

/* NAV */
.landing nav {
  position: sticky; top: 0; z-index: 100;
  background: rgba(243, 245, 250, .92); backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--linen-deep);
}
.landing .nav-inner { max-width: 1140px; margin: 0 auto; padding: 0 24px; height: 68px; display: flex; justify-content: space-between; align-items: center; }
.landing .nav-logo { display: flex; align-items: center; }
.landing .nav-logo img { height: 36px; width: auto; border-radius: 8px; }
.landing .nav-links { display: flex; gap: 28px; align-items: center; font-size: .95rem; font-weight: 500; color: var(--ink-soft); }
.landing .nav-links a:hover { color: var(--electric); }
.landing .nav-cta {
  background: var(--electric); color: var(--card) !important;
  padding: 10px 22px; border-radius: 999px;
  font-weight: 600 !important;
  box-shadow: 0 4px 14px var(--electric-glow);
  transition: transform .15s ease, box-shadow .15s ease;
}
.landing .nav-cta:hover { transform: translateY(-1px); box-shadow: 0 8px 20px var(--electric-glow); }

/* BUTTONS */
.landing .btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 13px 28px; border-radius: 999px;
  font-family: 'IBM Plex Sans Thai', sans-serif;
  font-size: .95rem; font-weight: 600;
  border: 1.5px solid transparent;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease, color .15s ease;
  cursor: pointer;
}
.landing .btn-primary { background: var(--electric); color: var(--card); }
.landing .btn-primary:hover { transform: translateY(-2px); box-shadow: 0 10px 26px var(--electric-glow); }
.landing .btn-outline { border-color: var(--ink); color: var(--ink); background: transparent; }
.landing .btn-outline:hover { background: var(--ink); color: var(--linen); }
.landing .btn-on-dark { background: var(--card); color: var(--indigo-deep); }
.landing .btn-on-dark:hover { transform: translateY(-2px); box-shadow: 0 10px 24px rgba(0, 0, 0, .25); }
.landing .btn-outline-on-dark { border-color: rgba(240, 242, 248, .5); color: #E9EDF7; }
.landing .btn-outline-on-dark:hover { background: rgba(233, 237, 247, .12); border-color: #E9EDF7; }

/* HERO */
.landing .hero {
  padding: 88px 24px 0; text-align: center; position: relative; overflow: hidden;
  background-image:
    linear-gradient(var(--grid) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid) 1px, transparent 1px);
  background-size: 36px 36px;
}
.landing .hero::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(60% 50% at 50% 0%, rgba(46, 91, 255, .07), transparent 70%);
}
.landing .hero .wrap { position: relative; z-index: 1; }
.landing .hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--card); border: 1px solid var(--linen-deep);
  border-radius: 999px; padding: 8px 18px;
  font-size: .86rem; font-weight: 500; color: var(--ink-soft);
}
.landing .hero-title {
  font-family: 'Bai Jamjuree', sans-serif; font-weight: 700; letter-spacing: -.01em;
  font-size: clamp(1.5rem, 2.6vw, 1.95rem); line-height: 1.28;
  max-width: 920px; margin: 28px auto 0;
}
.landing .hero-title em { font-style: normal; color: var(--thread); position: relative; white-space: nowrap; }
.landing .hero-title em::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -4px; height: 2px;
  background-image: linear-gradient(90deg, var(--thread) 0 8px, transparent 8px 14px);
  background-size: 14px 2px;
}
.landing .hero-sub { max-width: 620px; margin: 22px auto 0; font-size: 1.12rem; color: var(--ink-soft); }
.landing .hero-cta { margin-top: 36px; display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.landing .hero-note { margin-top: 16px; font-size: .88rem; color: var(--ink-soft); }
.landing .mono { font-family: 'IBM Plex Mono', monospace; }

/* HERO ILLUSTRATION — 2-column layout: text left, animated pattern SVG right */
.landing .hero-inner { display: flex; align-items: center; gap: 48px; max-width: 1140px; margin: 0 auto; }
.landing .hero-text { flex: 0 0 46%; max-width: 46%; text-align: left; }
.landing .hero-text .hero-cta { justify-content: flex-start; }
.landing .hero-text .hero-note { text-align: left; }
.landing .hero-illustration-wrap { flex: 1; position: relative; min-width: 0; }
@media (max-width: 900px) {
  .landing .hero-inner { flex-direction: column; align-items: stretch; }
  .landing .hero-text { flex: none; max-width: 100%; text-align: center; }
  .landing .hero-text .hero-cta { justify-content: center; }
  .landing .hero-text .hero-note { text-align: center; }
  .landing .hero-illustration-wrap { flex: none; width: 100%; }
}
.landing .hero-stitch { width: 100%; height: auto; display: block; position: relative; }
.landing .draw { stroke-dasharray: 9 7; stroke-dashoffset: 1024; animation: draw 2.6s ease-out forwards .3s; }
@keyframes draw { to { stroke-dashoffset: 0; } }
.landing .vf { position: absolute; width: 24px; height: 24px; border: 2px solid var(--electric); opacity: .75; z-index: 2; }
.landing .vf-tl { top: -8px; left: -8px; border-right: 0; border-bottom: 0; }
.landing .vf-tr { top: -8px; right: -8px; border-left: 0; border-bottom: 0; }
.landing .vf-bl { bottom: -8px; left: -8px; border-right: 0; border-top: 0; }
.landing .vf-br { bottom: -8px; right: -8px; border-left: 0; border-top: 0; }
.landing .scan { position: absolute; inset: 0; overflow: hidden; pointer-events: none; z-index: 2; }
.landing .scan::after {
  content: ""; position: absolute; left: 0; right: 0; top: 0; height: 2px; opacity: 0;
  background: linear-gradient(90deg, transparent, var(--electric) 30%, var(--electric) 70%, transparent);
  box-shadow: 0 0 14px 2px rgba(46, 91, 255, .30);
  animation: scan 4.5s ease-in-out infinite 1.2s;
}
@keyframes scan { 0% { top: 2%; opacity: 0; } 8% { opacity: .9; } 88% { opacity: .9; } 100% { top: 98%; opacity: 0; } }
.landing .chip {
  position: absolute; z-index: 3; background: rgba(255, 255, 255, .88); backdrop-filter: blur(8px);
  border: 1px solid #C7D4F2; border-radius: 12px; padding: 10px 16px;
  font-size: .82rem; font-weight: 500; color: #0E1B33;
  box-shadow: 0 12px 32px rgba(14, 27, 51, .14); display: flex; align-items: center; gap: 9px;
  animation: float 5.5s ease-in-out infinite;
}
.landing .chip-a { top: 2%; left: 1%; }
.landing .chip-b { bottom: 12%; right: 0; animation-delay: -2.7s; }
.landing .pill { background: rgba(46, 91, 255, .12); color: #2E5BFF; border-radius: 999px; padding: 3px 11px; font-size: .74rem; font-weight: 600; }
.landing .up { color: #1E9E6A; font-weight: 600; font-size: .78rem; }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
@media (max-width: 700px) {
  .landing .chip { display: none; }
  .landing .vf { width: 16px; height: 16px; }
}
@media (prefers-reduced-motion: reduce) {
  .landing .draw, .landing .scan::after { animation: none; }
  .landing .draw { stroke-dashoffset: 0; }
}

/* VALUE STRIP — measuring-tape divider */
.landing .value-strip {
  background: var(--indigo-deep); color: #E9EDF7;
  border-top: 3px solid var(--thread);
  padding: 20px 24px 24px; margin-top: 48px;
}
.landing .value-strip-grid {
  max-width: 1140px; margin: 0 auto;
  display: flex; justify-content: center; gap: 56px; flex-wrap: wrap;
}
.landing .value-strip-grid > div {
  font-family: 'IBM Plex Sans Thai', sans-serif; font-size: .95rem; font-weight: 500;
}

/* SUBDOMAIN SHOWCASE — "ที่อยู่ออนไลน์ของร้านคุณ" */
.landing .subdomain-section { background: var(--card); border-bottom: 1px solid var(--linen-deep); }
.landing .subdomain-content { max-width: 1140px; margin: 0 auto; padding: 64px 24px 96px; }

.landing .subdomain-ticker-wrap {
  overflow: hidden; background: var(--indigo-deep);
  border-bottom: 1px solid rgba(255, 255, 255, .08);
  padding: 14px 0;
}
.landing .subdomain-ticker-track {
  display: flex; width: max-content; gap: 40px;
  animation: subdomain-tick 34s linear infinite;
}
.landing .subdomain-ticker-wrap:hover .subdomain-ticker-track { animation-play-state: paused; }
@keyframes subdomain-tick { 0% { transform: translateX(0); } 100% { transform: translateX(-50%); } }
.landing .subdomain-ticker-item {
  display: inline-flex; align-items: center; gap: 8px; white-space: nowrap;
  font-family: 'IBM Plex Mono', 'IBM Plex Sans Thai', monospace; font-size: .86rem; font-weight: 500; color: #E9EDF7;
}
.landing .subdomain-ticker-item::before { content: "●"; color: #1E9E6A; font-size: .5rem; }
.landing .subdomain-ticker-city { color: #8FA0C4; font-weight: 400; }

.landing .subdomain-compare {
  max-width: 900px; margin: 0 auto 56px;
  display: grid; grid-template-columns: 1fr auto 1fr; gap: 24px; align-items: center;
}
.landing .subdomain-before, .landing .subdomain-after {
  background: var(--linen); border: 1.5px solid var(--linen-deep); border-radius: var(--radius);
  padding: 28px 26px;
}
.landing .subdomain-after { border-color: var(--electric); box-shadow: 0 14px 34px rgba(46, 91, 255, .14); }
.landing .subdomain-compare-label {
  font-family: 'IBM Plex Mono', 'IBM Plex Sans Thai', monospace; font-size: .78rem; font-weight: 600; letter-spacing: .16em;
  text-transform: uppercase; margin-bottom: 14px;
}
.landing .subdomain-before .subdomain-compare-label { color: var(--thread); }
.landing .subdomain-after .subdomain-compare-label { color: var(--electric); }
.landing .subdomain-before ul, .landing .subdomain-after ul { list-style: none; }
.landing .subdomain-before li, .landing .subdomain-after li {
  padding: 8px 0 8px 26px; position: relative; font-size: .94rem; color: var(--ink-soft);
}
.landing .subdomain-before li::before { content: "✕"; position: absolute; left: 0; color: var(--thread); font-weight: 700; }
.landing .subdomain-after li::before { content: "✓"; position: absolute; left: 0; color: var(--electric); font-weight: 700; }
.landing .subdomain-after li { color: var(--ink); font-weight: 500; }
.landing .subdomain-arrow { font-size: 1.6rem; color: var(--ink-soft); text-align: center; }

.landing .subdomain-builder {
  max-width: 620px; margin: 0 auto; text-align: center;
  background: var(--linen); border: 1.5px solid var(--linen-deep); border-radius: var(--radius);
  padding: 40px 36px;
}
.landing .subdomain-builder-label { display: block; font-weight: 600; margin-bottom: 16px; }
.landing .subdomain-input-row {
  display: flex; align-items: center; background: var(--card); border: 1.5px solid var(--ink);
  border-radius: 999px; padding: 4px 4px 4px 22px; max-width: 460px; margin: 0 auto;
}
.landing .subdomain-input {
  border: 0; background: transparent; font-family: 'IBM Plex Sans Thai', sans-serif;
  font-size: 1rem; font-weight: 600; color: var(--ink); flex: 1; min-width: 0; padding: 10px 0;
}
.landing .subdomain-input:focus { outline: none; }
.landing .subdomain-suffix {
  font-family: 'IBM Plex Mono', monospace; font-size: .88rem; color: var(--ink-soft);
  background: var(--linen); border-radius: 999px; padding: 8px 16px; white-space: nowrap;
}
.landing .subdomain-preview { margin-top: 18px; font-family: 'IBM Plex Mono', monospace; font-size: 1.05rem; font-weight: 600; color: var(--electric); }
.landing .subdomain-cta { margin-top: 24px; }
.landing .subdomain-pills { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; margin-top: 20px; }
.landing .subdomain-pill {
  font-family: 'IBM Plex Mono', monospace; font-size: .8rem; font-weight: 500; color: var(--ink-soft);
  background: var(--card); border: 1px solid var(--linen-deep); border-radius: 999px;
  padding: 6px 14px; cursor: pointer; transition: border-color .15s ease, color .15s ease;
}
.landing .subdomain-pill:hover { border-color: var(--electric); color: var(--electric); }
.landing .subdomain-note { margin-top: 18px; font-size: .85rem; color: var(--ink-soft); }

@media (max-width: 700px) {
  .landing .subdomain-compare { grid-template-columns: 1fr; }
  .landing .subdomain-arrow { transform: rotate(90deg); }
  .landing .subdomain-builder { padding: 32px 22px; }
  .landing .subdomain-input-row { max-width: 100%; }
}

/* SECTION HEADER */
.landing .section { padding: 96px 24px; }
.landing .section-alt { background: var(--card); border-top: 1px solid var(--linen-deep); border-bottom: 1px solid var(--linen-deep); }
.landing .section-header { text-align: center; max-width: 640px; margin: 0 auto 56px; }
.landing .section-title {
  font-family: 'Bai Jamjuree', sans-serif; font-weight: 700; letter-spacing: -.01em;
  font-size: clamp(1.7rem, 3.6vw, 2.5rem); margin-top: 16px;
}
.landing .section-title em { font-style: normal; color: var(--electric); }
.landing .section-sub { color: var(--ink-soft); margin-top: 14px; font-size: .97rem; }

/* PROBLEM CARDS — chalk cross-mark, like a flaw noted on fabric */
.landing .grid-4 { max-width: 1140px; margin: 0 auto; display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.landing .problem-card {
  background: var(--card); border: 1px solid var(--linen-deep); border-radius: var(--radius);
  padding: 28px 24px; position: relative;
}
.landing .problem-card::before {
  content: "✕"; position: absolute; top: 18px; right: 20px;
  color: var(--chalk-line); font-size: 1rem; font-weight: 700;
}
.landing .problem-icon { font-size: 1.9rem; margin-bottom: 14px; }
.landing .problem-card h3 { font-size: 1.08rem; font-weight: 700; margin-bottom: 8px; }
.landing .problem-card p { font-size: .92rem; color: var(--ink-soft); }

/* FEATURE CARDS */
.landing .grid-3 { max-width: 1140px; margin: 0 auto; display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; align-items: stretch; }
.landing .feature-card {
  background: var(--linen); border: 1px solid var(--linen-deep); border-radius: var(--radius);
  padding: 30px 26px; position: relative; overflow: hidden;
  transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease;
}
.landing .feature-card:hover { transform: translateY(-4px); border-color: var(--electric); box-shadow: 0 14px 34px rgba(46, 91, 255, .12); }
.landing .feature-card::after {
  content: ""; position: absolute; top: 0; right: 0; width: 34px; height: 34px;
  background: var(--indigo); clip-path: polygon(100% 0, 0 0, 100% 100%); opacity: .9;
}
.landing .feature-card:nth-child(2n)::after { background: var(--thread); }
.landing .feature-card:nth-child(3n)::after { background: var(--chalk); }
.landing .feature-icon {
  width: 42px; height: 42px; border-radius: 10px;
  background: var(--card); border: 1px solid var(--linen-deep); color: var(--indigo);
  display: flex; align-items: center; justify-content: center; margin-bottom: 18px;
}
.landing .feature-icon svg { width: 21px; height: 21px; }
.landing .feature-card h3 { font-size: 1.1rem; font-weight: 700; margin-bottom: 8px; }
.landing .feature-card p { font-size: .93rem; color: var(--ink-soft); }

/* PRICING — swing tags */
.landing .pricing-grid { max-width: 420px; margin: 0 auto; display: grid; grid-template-columns: 1fr; gap: 30px; align-items: start; padding-top: 26px; }
.landing .price-card {
  position: relative; text-align: center;
  background: var(--card); border: 1.5px solid var(--ink); border-radius: 16px;
  padding: 56px 30px 34px;
  box-shadow: 4px 6px 0 rgba(30, 42, 68, .12);
  transition: transform .2s ease;
}
.landing .price-card::before {
  content: ""; position: absolute; top: 20px; left: 50%; transform: translateX(-50%);
  width: 16px; height: 16px; border-radius: 50%;
  background: var(--linen); border: 2px solid var(--ink);
}
.landing .price-card::after {
  content: ""; position: absolute; top: -26px; left: 50%; transform: translateX(-50%) rotate(6deg);
  width: 2px; height: 44px; background: var(--thread); border-radius: 2px;
}
.landing .price-card:hover { transform: rotate(0) translateY(-6px); }
.landing .price-card.featured { border-color: var(--electric); border-width: 2px; box-shadow: 0 18px 44px rgba(46, 91, 255, .2); }
.landing .price-card.featured::before { border-color: var(--electric); }
.landing .price-badge {
  position: absolute; top: -14px; left: 50%; transform: translateX(-50%);
  background: var(--electric); color: var(--card);
  font-size: .78rem; font-weight: 600; letter-spacing: .05em;
  box-shadow: 0 4px 14px var(--electric-glow);
  padding: 4px 16px; border-radius: 999px;
}
.landing .price-tier { font-family: 'IBM Plex Mono', monospace; font-size: .82rem; letter-spacing: .22em; color: var(--ink-soft); text-transform: uppercase; }
.landing .price-amount { font-family: 'Bai Jamjuree', sans-serif; font-weight: 700; font-size: 2.7rem; margin: 10px 0 2px; color: var(--ink); }
.landing .price-amount span { font-family: 'IBM Plex Sans Thai', sans-serif; font-size: .95rem; font-weight: 400; color: var(--ink-soft); }
.landing .price-list { list-style: none; margin: 22px 0 26px; text-align: left; }
.landing .price-list li {
  padding: 11px 0 11px 30px; font-size: .94rem; position: relative;
  border-bottom: 1px dashed var(--linen-deep);
}
.landing .price-list li:last-child { border-bottom: 0; }
.landing .price-list li::before {
  content: ""; position: absolute; left: 4px; top: 16px; width: 14px; height: 8px;
  border-left: 2.5px solid var(--thread); border-bottom: 2.5px solid var(--thread);
  transform: rotate(-48deg);
}
.landing .price-card .btn { width: 100%; justify-content: center; }

/* FAQ — native <details>/<summary>, no JS needed */
.landing .faq-list { max-width: 720px; margin: 0 auto; }
.landing .faq-item {
  background: var(--linen); border: 1px solid var(--linen-deep); border-radius: 12px;
  margin-bottom: 14px; overflow: hidden;
}
.landing .faq-item summary {
  cursor: pointer; padding: 20px 24px; font-weight: 600; font-size: 1rem;
  list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 16px;
}
.landing .faq-item summary::-webkit-details-marker { display: none; }
.landing .faq-item summary::after {
  content: "+"; flex: none; width: 26px; height: 26px; border-radius: 50%;
  border: 1.5px solid var(--ink); display: flex; align-items: center; justify-content: center;
  font-weight: 600; font-size: 1rem; transition: transform .2s ease; color: var(--ink);
}
.landing .faq-item[open] summary::after { transform: rotate(45deg); border-color: var(--electric); color: var(--electric); }
.landing .faq-item p { padding: 0 24px 22px; color: var(--ink-soft); font-size: .95rem; line-height: 1.7; }
.landing .faq-item p a { color: var(--electric); font-weight: 600; }

/* FINAL CTA */
.landing .final-cta {
  background: var(--indigo-deep); color: #F0F2F8; text-align: center; position: relative; overflow: hidden;
  background-image:
    linear-gradient(rgba(255, 255, 255, .035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .035) 1px, transparent 1px);
  background-size: 36px 36px;
  padding: 96px 24px;
}
.landing .final-cta::before {
  content: ""; position: absolute; inset: -40% 20%; pointer-events: none;
  background: radial-gradient(50% 50% at 50% 50%, rgba(46, 91, 255, .22), transparent 70%);
}
.landing .final-cta h2 {
  position: relative; font-family: 'Bai Jamjuree', sans-serif; font-weight: 700;
  font-size: clamp(1.8rem, 4vw, 2.7rem); max-width: 640px; margin: 0 auto;
}
.landing .final-cta p { position: relative; margin: 18px auto 34px; color: #B9C2D8; max-width: 520px; font-size: .97rem; }
.landing .final-cta-btns { position: relative; display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

/* FOOTER */
.landing footer { background: var(--indigo-deep); color: #8FA0C4; padding: 28px 0; font-size: .85rem; border-top: 1px solid rgba(255, 255, 255, .08); }
.landing footer .wrap { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px; }
.landing footer a:hover { color: #fff; }
.landing .footer-logo { display: flex; align-items: center; gap: 8px; }
.landing .footer-logo img { height: 22px; width: auto; border-radius: 5px; }
.landing .footer-links { display: flex; gap: 16px; flex-wrap: wrap; }

@media (max-width: 960px) {
  .landing .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .landing .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .landing .nav-links a:not(.nav-cta) { display: none; }
  .landing .value-strip-grid { gap: 20px; }
}
@media (max-width: 600px) {
  .landing .grid-4, .landing .grid-3 { grid-template-columns: 1fr; }
  .landing .section { padding: 72px 24px; }
  .landing .hero { padding-top: 64px; }
  .landing footer .wrap { flex-direction: column; text-align: center; }
}
@media (prefers-reduced-motion: reduce) {
  .landing * { animation: none !important; transition: none !important; }
}
.landing :focus-visible { outline: 2.5px solid var(--electric); outline-offset: 3px; border-radius: 4px; }

/* LEGAL PAGE (privacy policy) — plain readable prose, not the marketing
   section rhythm */
.landing .legal-page {
  max-width: 720px; margin: 0 auto;
  padding: 64px 24px 96px;
}
.landing .legal-page h1 {
  font-family: 'Bai Jamjuree', sans-serif; font-weight: 700;
  font-size: clamp(28px, 4vw, 40px);
  color: var(--ink);
  margin-bottom: 8px;
}
.landing .legal-updated { color: var(--ink-soft); font-size: 13.5px; margin-bottom: 32px; }
.landing .legal-page h2 {
  font-family: 'IBM Plex Sans Thai', sans-serif;
  font-size: 18px; font-weight: 700; color: var(--ink);
  margin: 36px 0 12px;
}
.landing .legal-page p { color: var(--ink-soft); font-size: 15px; line-height: 1.8; margin-bottom: 14px; }
.landing .legal-page ul { margin: 0 0 14px; padding-left: 22px; }
.landing .legal-page li { color: var(--ink-soft); font-size: 15px; line-height: 1.8; margin-bottom: 6px; }
.landing .legal-page a { color: var(--electric); font-weight: 600; }

@media (max-width: 480px) {
  .landing .legal-page { padding: 48px 20px 64px; }
}

/* SIGNUP PAGE — centered card, reuses the landing palette/type system */
.landing .signup-page {
  min-height: 100vh; display: flex; align-items: center; justify-content: center;
  padding: 48px 24px;
  background-image:
    linear-gradient(var(--grid) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid) 1px, transparent 1px);
  background-size: 36px 36px;
}
.landing .signup-card {
  width: 100%; max-width: 480px;
  background: var(--card); border: 1.5px solid var(--linen-deep); border-radius: var(--radius);
  padding: 44px 40px;
  box-shadow: 0 24px 60px rgba(14, 27, 51, .10);
}
.landing .signup-logo { display: flex; justify-content: center; margin-bottom: 28px; }
.landing .signup-logo img { height: 40px; width: auto; border-radius: 8px; }
.landing .signup-title {
  font-family: 'Bai Jamjuree', sans-serif; font-weight: 700; letter-spacing: -.01em;
  font-size: 1.6rem; text-align: center; margin-bottom: 8px;
}
.landing .signup-sub { text-align: center; color: var(--ink-soft); font-size: .92rem; margin-bottom: 32px; }

.landing .signup-errors {
  list-style: none;
  background: rgba(193, 58, 43, .08); border: 1px solid rgba(193, 58, 43, .3);
  border-radius: 10px; padding: 14px 18px; margin-bottom: 24px;
}
.landing .signup-errors li { color: var(--thread); font-size: .86rem; padding: 3px 0; }

.landing .signup-field { margin-bottom: 20px; }
.landing .signup-label { display: block; font-size: .84rem; font-weight: 600; margin-bottom: 8px; color: var(--ink); }
.landing .signup-input {
  width: 100%; font-family: 'IBM Plex Sans Thai', sans-serif; font-size: .95rem;
  padding: 12px 16px; border: 1.5px solid var(--linen-deep); border-radius: 10px;
  background: var(--linen); color: var(--ink);
  transition: border-color .15s ease, background .15s ease;
}
.landing .signup-input:focus { outline: none; border-color: var(--electric); background: var(--card); }
.landing .signup-select { cursor: pointer; }
.landing .signup-subdomain-preview {
  margin-top: 8px; font-family: 'IBM Plex Mono', 'IBM Plex Sans Thai', monospace;
  font-size: .86rem; font-weight: 600; color: var(--electric);
}
.landing .signup-submit { width: 100%; justify-content: center; margin-top: 8px; }
.landing .signup-note { text-align: center; font-size: .84rem; color: var(--ink-soft); margin-top: 16px; }
.landing .signup-login-link {
  text-align: center; font-size: .9rem; color: var(--ink-soft);
  margin-top: 28px; padding-top: 24px; border-top: 1px solid var(--linen-deep);
}
.landing .signup-login-link a { color: var(--electric); font-weight: 600; }

@media (max-width: 480px) {
  .landing .signup-card { padding: 32px 24px; }
}

/* DASHBOARD — sidebar + content, reuses the landing palette/type system.
   .stat-card/.stat-value/.stat-label class names are kept (not renamed to
   fd-*) so they stay consistent with the same names used elsewhere in the
   app (e.g. billing) — scoping is via the .flosolo-dashboard ancestor, not
   the class names themselves, so nothing here leaks onto other pages. */
.landing .flosolo-dashboard { display: flex; min-height: 100vh; align-items: flex-start; }

.landing .fd-sidebar {
  flex: 0 0 260px; min-height: 100vh; position: sticky; top: 0;
  background: var(--indigo-deep); color: #C7D0E4;
  display: flex; flex-direction: column; padding: 28px 22px;
}
.landing .fd-sidebar-top { margin-bottom: 32px; }
.landing .fd-sidebar-logo { display: inline-block; }
.landing .fd-sidebar-logo img { height: 32px; width: auto; border-radius: 7px; background: var(--card); padding: 2px 5px; }
.landing .fd-shop-name { margin-top: 14px; font-family: 'Bai Jamjuree', sans-serif; font-weight: 700; font-size: 1.15rem; color: #fff; }

.landing .fd-nav { display: flex; flex-direction: column; gap: 4px; }
.landing .fd-nav-link {
  display: flex; align-items: center; gap: 12px;
  padding: 11px 14px; border-radius: 10px;
  font-size: .92rem; font-weight: 600; color: #E4E9F5;
  transition: background .15s ease, color .15s ease;
}
.landing .fd-nav-link svg { width: 19px; height: 19px; flex-shrink: 0; }
.landing .fd-nav-link:hover { background: rgba(255, 255, 255, .08); color: #fff; }
.landing .fd-nav-link--disabled { color: #6B7794; cursor: default; justify-content: space-between; }
.landing .fd-nav-link--disabled:hover { background: none; color: #6B7794; }
.landing .fd-soon {
  font-family: 'IBM Plex Mono', 'IBM Plex Sans Thai', monospace; font-size: .66rem; font-weight: 600;
  background: rgba(255, 255, 255, .1); color: #9AA6C4; border-radius: 999px; padding: 2px 8px;
}

.landing .fd-trial-badge {
  margin-top: 24px; background: rgba(46, 91, 255, .16); border: 1px solid rgba(46, 91, 255, .35);
  border-radius: 12px; padding: 14px 16px; text-align: center;
}
.landing .fd-trial-badge-days { font-family: 'Bai Jamjuree', sans-serif; font-weight: 700; font-size: 1.3rem; color: #fff; }
.landing .fd-trial-badge-label { font-size: .76rem; color: #9AA6C4; margin-top: 2px; }

.landing .fd-sidebar-bottom { margin-top: auto; padding-top: 24px; border-top: 1px solid rgba(255, 255, 255, .1); }
.landing .fd-user-email { font-size: .8rem; color: #9AA6C4; margin-bottom: 10px; word-break: break-all; }
.landing .fd-logout-btn {
  width: 100%; background: transparent; border: 1px solid rgba(255, 255, 255, .18); color: #C7D0E4;
  border-radius: 8px; padding: 9px; font-family: 'IBM Plex Sans Thai', sans-serif; font-size: .84rem;
  cursor: pointer; transition: background .15s ease, color .15s ease;
}
.landing .fd-logout-btn:hover { background: rgba(255, 255, 255, .08); color: #fff; }

.landing .fd-main { flex: 1; min-width: 0; padding: 36px 40px 64px; }

.landing .fd-header { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 24px; }
.landing .fd-header-title { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.landing .fd-header-title h1 { font-family: 'Bai Jamjuree', sans-serif; font-weight: 700; font-size: 1.6rem; }
.landing .fd-shop-badge {
  font-family: 'IBM Plex Mono', monospace; font-size: .78rem; color: var(--electric);
  background: rgba(46, 91, 255, .1); border: 1px solid rgba(46, 91, 255, .25);
  border-radius: 999px; padding: 5px 12px;
}
.landing .fd-header-cta svg { flex-shrink: 0; }

.landing .fd-trial-banner {
  display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  background: rgba(46, 91, 255, .08); border: 1px solid rgba(46, 91, 255, .3); border-left: 4px solid var(--electric);
  border-radius: 12px; padding: 16px 22px; margin-bottom: 28px;
}
.landing .fd-trial-banner p { font-size: .92rem; color: var(--ink); }
.landing .fd-trial-banner--alert { background: rgba(193, 58, 43, .07); border-color: rgba(193, 58, 43, .3); border-left-color: var(--thread); }

.landing .flosolo-dashboard .stat-grid { max-width: none; margin: 0 0 28px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.landing .flosolo-dashboard .stat-card {
  background: var(--card); border: 1px solid var(--linen-deep); border-radius: var(--radius); padding: 22px 24px;
}
.landing .fd-stat-icon {
  width: 40px; height: 40px; border-radius: 10px; background: var(--linen); color: var(--indigo);
  display: flex; align-items: center; justify-content: center; margin-bottom: 14px;
}
.landing .fd-stat-icon svg { width: 20px; height: 20px; }
.landing .flosolo-dashboard .stat-value { font-family: 'Bai Jamjuree', sans-serif; font-weight: 700; font-size: 1.9rem; color: var(--ink); }
.landing .flosolo-dashboard .stat-label { font-size: .84rem; color: var(--ink-soft); margin-top: 4px; }
.landing .fd-stat-trend { margin-top: 12px; font-size: .78rem; font-weight: 600; color: #1E9E6A; }
.landing .fd-stat-trend--down { color: var(--thread); }

.landing .fd-quick-actions { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-bottom: 32px; }
.landing .fd-action-card {
  display: block; background: var(--linen); border: 1px solid var(--linen-deep); border-radius: var(--radius);
  padding: 22px 24px; transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease;
}
.landing a.fd-action-card:hover { transform: translateY(-3px); border-color: var(--electric); box-shadow: 0 14px 30px rgba(46, 91, 255, .12); }
.landing .fd-action-card--disabled { opacity: .6; cursor: default; }
.landing .fd-action-icon {
  width: 40px; height: 40px; border-radius: 10px; background: var(--card); border: 1px solid var(--linen-deep); color: var(--indigo);
  display: flex; align-items: center; justify-content: center; margin-bottom: 14px;
}
.landing .fd-action-icon svg { width: 20px; height: 20px; }
.landing .fd-action-title { font-weight: 700; font-size: .98rem; margin-bottom: 6px; display: flex; align-items: center; gap: 8px; }
.landing .fd-action-desc { font-size: .84rem; color: var(--ink-soft); }

.landing .fd-empty-state {
  text-align: center; background: var(--card); border: 1px dashed var(--linen-deep); border-radius: var(--radius);
  padding: 56px 24px;
}
.landing .fd-empty-illustration { width: 120px; height: 100px; margin: 0 auto 20px; }
.landing .fd-empty-state h2 { font-family: 'Bai Jamjuree', sans-serif; font-weight: 700; font-size: 1.2rem; margin-bottom: 8px; }
.landing .fd-empty-state p { color: var(--ink-soft); font-size: .92rem; margin-bottom: 22px; }

.landing .fd-status-breakdown {
  background: var(--card); border: 1px solid var(--linen-deep); border-radius: var(--radius); padding: 24px 26px;
}
.landing .fd-status-breakdown h2 { font-family: 'Bai Jamjuree', sans-serif; font-weight: 700; font-size: 1.05rem; margin-bottom: 16px; }
.landing .fd-status-breakdown ul { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.landing .fd-status-breakdown li { display: flex; align-items: center; gap: 10px; font-size: .9rem; color: var(--ink-soft); }
.landing .fd-status-breakdown li strong { margin-left: auto; color: var(--ink); }
.landing .fd-status-dot { width: 9px; height: 9px; border-radius: 50%; flex-shrink: 0; }
.landing .fd-status-dot--pending { background: #9AA6C4; }
.landing .fd-status-dot--in_progress { background: var(--electric); }
.landing .fd-status-dot--delivered { background: #1E9E6A; }
.landing .fd-status-dot--received { background: var(--chalk); }
.landing .fd-status-dot--cancelled { background: var(--thread); }

@media (max-width: 900px) {
  .landing .flosolo-dashboard { flex-direction: column; }
  .landing .fd-sidebar { flex: none; min-height: 0; position: static; width: 100%; padding: 20px; }
  .landing .fd-sidebar-top { margin-bottom: 18px; display: flex; align-items: center; gap: 12px; }
  .landing .fd-nav { flex-direction: row; flex-wrap: wrap; }
  .landing .fd-nav-link { padding: 8px 12px; }
  .landing .fd-trial-badge { margin-top: 16px; }
  .landing .fd-sidebar-bottom { margin-top: 18px; padding-top: 16px; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
  .landing .fd-user-email { margin-bottom: 0; }
  .landing .fd-logout-btn { width: auto; padding: 8px 16px; }
  .landing .fd-main { padding: 28px 20px 48px; }
  .landing .flosolo-dashboard .stat-grid,
  .landing .fd-quick-actions { grid-template-columns: 1fr; }
}
