/* ============================================================
   SEMAI v2 — Public pages (landing + auth)
   ============================================================ */

/* Top nav */
.pubnav {
  position: sticky; top: 0; z-index: 100;
  background: rgba(251,247,238,.85);
  backdrop-filter: blur(14px);
  border-bottom: 1.5px solid rgba(232,223,201,.6);
}
.pubnav-inner {
  max-width: 1240px; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 28px;
}
.brand-mark {
  width: 44px; height: 44px; border-radius: 14px;
  background: linear-gradient(135deg, #84B95C, #1F6F43);
  display: inline-flex; align-items: center; justify-content: center;
  color: #fff; box-shadow: 0 4px 0 #145234, 0 8px 18px rgba(31,111,67,.3);
}
.brand-row { display: flex; align-items: center; gap: 12px; }
.brand-name { font-weight: 800; font-size: 19px; letter-spacing: -.015em; }
.brand-sub { font-size: 11px; color: var(--muted); margin-top: -2px; font-weight: 600; }

.pubnav-links { display: flex; gap: 28px; align-items: center; }
.pubnav-links a {
  color: var(--ink); font-weight: 600; font-size: 14px;
  text-decoration: none;
}
.pubnav-links a:hover { color: var(--forest-deep); }

/* ============================================================
   HERO — illustrated farm scene
   ============================================================ */
.hero {
  position: relative; overflow: hidden;
  padding: 50px 0 0;
}
.hero-inner {
  max-width: 1240px; margin: 0 auto; padding: 0 28px;
  display: grid; grid-template-columns: 1.1fr 1fr; gap: 60px;
  align-items: center;
  position: relative; z-index: 2;
}

.hero-eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  background: var(--sun-soft); color: #6B4500;
  font-weight: 700; font-size: 13px;
  padding: 8px 16px; border-radius: 999px;
  border: 1.5px solid var(--sun);
  box-shadow: 0 2px 0 var(--sun-deep);
}

.hero h1 {
  font-size: 60px; font-weight: 800; letter-spacing: -.025em;
  line-height: 1; margin: 22px 0 18px;
}
.hero h1 .accent { color: var(--forest); position: relative; }
.hero h1 .accent::after {
  content: ''; position: absolute; left: -2%; right: -2%; bottom: -4px;
  height: 14px; background: var(--sun);
  z-index: -1; border-radius: 999px; opacity: .85;
  transform: skewX(-6deg);
}
.hero p.lead {
  font-size: 18px; color: var(--ink-soft);
  max-width: 540px; line-height: 1.65;
}
.hero-cta { display: flex; gap: 14px; margin-top: 32px; flex-wrap: wrap; align-items: center; }
.hero-note {
  font-family: var(--font-hand);
  font-size: 22px;
  color: var(--forest);
  display: flex; align-items: center; gap: 8px;
}

.hero-stats {
  display: flex; gap: 36px; margin-top: 40px;
  padding-top: 30px; border-top: 1.5px dashed var(--line);
}
.hero-stat .num-big { font-size: 28px; font-weight: 800; color: var(--forest-deep); }
.hero-stat .lbl { font-size: 13px; color: var(--muted); font-weight: 600; }

/* Hero visual — illustrated farm scene */
.hero-art {
  position: relative;
  min-height: 540px;
  display: flex; align-items: center; justify-content: center;
}
.hero-art-frame {
  width: 100%; aspect-ratio: 1 / 1;
  background: linear-gradient(180deg, #DCEFF8 0%, #B6E4F5 40%, #FBF7EE 100%);
  border-radius: var(--r-xl);
  border: 3px solid var(--line);
  box-shadow: 0 12px 0 var(--line), 0 24px 50px rgba(74,92,77,.18);
  overflow: hidden;
  position: relative;
}
/* Floating mock cards over hero */
.hero-tag {
  position: absolute; background: #fff;
  padding: 14px 18px; border-radius: 18px;
  box-shadow: var(--shadow-pop);
  border: 2px solid var(--line);
  display: flex; align-items: center; gap: 12px;
  z-index: 3;
}
.hero-tag-1 { top: 8%; left: -8%; animation: float 5s ease-in-out infinite; }
.hero-tag-2 { bottom: 18%; right: -6%; animation: float 6s ease-in-out infinite; animation-delay: -2s; }
.hero-tag-3 { bottom: -3%; left: 18%; animation: float 7s ease-in-out infinite; animation-delay: -1s; }

.tag-ico {
  width: 40px; height: 40px; border-radius: 12px;
  background: var(--mint); color: var(--forest-deep);
  display: inline-flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.tag-ico.sun { background: var(--sun-soft); color: var(--sun-deep); }
.tag-ico.tomato { background: var(--tomato-soft); color: var(--tomato); }

.tag-title { font-size: 12px; color: var(--muted); font-weight: 600; }
.tag-value { font-size: 16px; font-weight: 800; color: var(--ink); }

/* ============================================================
   Wavy divider — between sections
   ============================================================ */
.wave-divider {
  display: block; width: 100%; height: 80px;
  margin-top: -1px;
}

/* Sections */
.section {
  padding: 90px 0;
  position: relative;
}
.section-cream { background: var(--bg-deep); }
.section-mint  { background: var(--mint); }
.section-inner { max-width: 1240px; margin: 0 auto; padding: 0 28px; }
.section-head { text-align: center; max-width: 720px; margin: 0 auto 56px; }
.section-head h2 { font-size: 42px; letter-spacing: -.02em; }
.section-head p  { color: var(--ink-soft); font-size: 17px; margin-top: 14px; line-height: 1.65; }
.eyebrow {
  font-family: var(--font-hand);
  font-size: 26px; color: var(--sage);
  display: inline-block;
  transform: rotate(-2deg);
  margin-bottom: 6px;
}

/* Feature cards */
.features {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px;
}
.feature {
  background: var(--surface);
  border: 2px solid var(--line);
  border-radius: var(--r-lg);
  padding: 28px;
  box-shadow: 0 4px 0 var(--line);
  transition: all .25s cubic-bezier(.34,1.56,.64,1);
  position: relative; overflow: hidden;
}
.feature:hover { transform: translateY(-6px); box-shadow: 0 10px 0 var(--sage), 0 14px 30px rgba(31,111,67,.12); border-color: var(--sage); }
.feature-ico {
  width: 60px; height: 60px; border-radius: 18px;
  background: var(--mint); color: var(--forest-deep);
  display: inline-flex; align-items: center; justify-content: center;
  margin-bottom: 18px;
  box-shadow: 0 4px 0 var(--mint-deep);
}
.feature.alt .feature-ico { background: var(--sky);          color: var(--sky-deep);   box-shadow: 0 4px 0 #94CCE3; }
.feature.warm .feature-ico { background: var(--sun-soft);    color: var(--sun-deep);   box-shadow: 0 4px 0 #F0CB7A; }
.feature.tomato .feature-ico { background: var(--tomato-soft); color: var(--tomato);   box-shadow: 0 4px 0 #ECB5A5; }
.feature h3 { font-size: 20px; margin-bottom: 10px; }
.feature p  { color: var(--ink-soft); font-size: 15px; line-height: 1.65; }
.feature-tag {
  position: absolute; top: 18px; right: 18px;
  font-family: var(--font-hand); font-size: 18px;
  transform: rotate(8deg); color: var(--sun-deep);
}

/* Showcase / testimonial */
.showcase {
  background: var(--forest);
  color: #fff;
  border-radius: var(--r-xl);
  padding: 70px 60px;
  margin: 0 28px;
  display: grid; grid-template-columns: 1fr 1fr; gap: 60px;
  align-items: center;
  position: relative; overflow: hidden;
  box-shadow: 0 18px 0 var(--forest-deep), 0 30px 60px rgba(31,111,67,.3);
}
.showcase::before {
  content: ''; position: absolute; bottom: -120px; right: -120px;
  width: 380px; height: 380px; border-radius: 50%;
  background: rgba(247,181,56,.15);
}
.showcase::after {
  content: ''; position: absolute; top: -100px; left: -100px;
  width: 280px; height: 280px; border-radius: 50%;
  background: rgba(132,185,92,.18);
}
.showcase > * { position: relative; z-index: 1; }
.showcase .eyebrow { color: var(--sun); }
.showcase h2 { color: #fff; font-size: 38px; }
.showcase p  { color: rgba(255,255,255,.85); margin-top: 14px; font-size: 16px; line-height: 1.7; }
.showcase ul { list-style: none; padding: 0; margin: 24px 0 0; }
.showcase li { display: flex; align-items: center; gap: 12px; padding: 8px 0; font-size: 15px; color: #fff; }
.showcase li svg { color: var(--sun); flex-shrink: 0; }

.showcase-card {
  background: rgba(255,255,255,.1);
  border: 1.5px solid rgba(255,255,255,.2);
  border-radius: var(--r-lg);
  padding: 28px;
  backdrop-filter: blur(10px);
}
.showcase-card h4 { color: #fff; font-size: 14px; margin-bottom: 18px; opacity: .8; text-transform: uppercase; letter-spacing: .08em; }
.showcase-row {
  display: flex; justify-content: space-between; align-items: center;
  padding: 12px 0; border-top: 1.5px dashed rgba(255,255,255,.15);
  color: rgba(255,255,255,.95); font-size: 14px;
}
.showcase-row:first-of-type { border-top: none; }
.showcase-row .v { font-weight: 800; font-size: 16px; }

/* Step cards (how it works) */
.step {
  background: var(--surface);
  border: 2px solid var(--line);
  border-radius: var(--r-lg);
  padding: 32px;
  box-shadow: 0 4px 0 var(--line);
  position: relative;
}
.step .num-circle {
  width: 56px; height: 56px; border-radius: 50%;
  background: var(--mint); color: var(--forest-deep);
  display: inline-flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 22px;
  margin-bottom: 18px;
  box-shadow: 0 4px 0 var(--mint-deep);
  border: 2px solid var(--mint-deep);
}
.step.alt .num-circle  { background: var(--sky);      color: var(--sky-deep);   box-shadow: 0 4px 0 #94CCE3; border-color: #94CCE3; }
.step.warm .num-circle { background: var(--sun-soft); color: var(--sun-deep);   box-shadow: 0 4px 0 #F0CB7A; border-color: #F0CB7A; }
.step h3 { font-size: 21px; margin-bottom: 10px; }
.step p  { color: var(--ink-soft); font-size: 15px; line-height: 1.7; }

/* CTA */
.cta-band {
  text-align: center; padding: 90px 28px;
  position: relative;
}
.cta-band h2 { font-size: 44px; letter-spacing: -.02em; }
.cta-band p  { color: var(--ink-soft); font-size: 18px; margin: 16px auto 32px; max-width: 600px; }

/* Footer */
.footer {
  background: var(--forest-deep);
  color: rgba(255,255,255,.85);
  padding: 50px 28px 30px;
}
.footer-inner { max-width: 1240px; margin: 0 auto; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 24px; }
.footer .brand-name { color: #fff; }
.footer p { color: rgba(255,255,255,.6); font-size: 13px; }

@media (max-width: 900px) {
  .hero-inner, .showcase { grid-template-columns: 1fr; gap: 40px; }
  .hero h1 { font-size: 42px; }
  .features { grid-template-columns: 1fr; }
  .showcase { padding: 48px 32px; margin: 0 16px; }
  .section { padding: 60px 0; }
  .section-head h2 { font-size: 30px; }
  .pubnav-links { display: none; }
  .hero-art { min-height: 380px; }
  .hero-tag-1 { left: 0%; }
  .hero-tag-2 { right: 0%; }
}

/* ============================================================
   AUTH PAGES — warm farm-scene login
   ============================================================ */
.auth-wrap {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1.1fr 1fr;
}
.auth-art {
  position: relative; overflow: hidden;
  background: linear-gradient(180deg, #B6E4F5 0%, #DCEFF8 50%, #DCEFC8 100%);
  display: flex; flex-direction: column; justify-content: flex-start;
  gap: clamp(24px, 4.5vh, 46px);
  padding: 50px;
  color: var(--ink);
}
.auth-art .brand-mark { background: linear-gradient(135deg, #84B95C, #1F6F43); }
.auth-art > p:last-child {
  margin-top: auto;
}

.auth-greeting {
  position: relative; z-index: 2;
  max-width: 420px;
}
.auth-greeting .hand { font-size: 38px; margin-bottom: 8px; display: block; transform: rotate(-3deg); }
.auth-greeting h2 { font-size: 36px; line-height: 1.15; color: var(--forest-deep); }
.auth-greeting p { color: var(--ink-soft); margin-top: 14px; font-size: 16px; line-height: 1.6; }

.auth-farm-scene {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 540px;
  overflow: visible;
}
.auth-farm-frame {
  width: 100%;
  aspect-ratio: 1 / 1;
  background: linear-gradient(180deg, #DCEFF8 0%, #B6E4F5 40%, #FBF7EE 100%);
  border: 3px solid var(--line);
  border-radius: 32px;
  overflow: hidden;
  box-shadow: 0 12px 0 rgba(145,180,118,.28), 0 24px 44px rgba(74,92,77,.2);
}
.auth-farm-frame svg {
  display: block;
  width: 100%;
  height: 100%;
}
.auth-scene-card {
  position: absolute;
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 72px;
  padding: 12px 16px;
  border: 2px solid var(--line);
  border-radius: 18px;
  background: rgba(255,255,255,.94);
  box-shadow: var(--shadow-pop);
  pointer-events: none;
}
.auth-scene-card-1 {
  left: -7%;
  top: 9%;
  animation: float 5s ease-in-out infinite;
}
.auth-scene-card-2 {
  right: -6%;
  bottom: 19%;
  animation: float 6s ease-in-out infinite;
  animation-delay: -2s;
}
.auth-scene-card-3 {
  left: 22%;
  bottom: -4%;
  animation: float 7s ease-in-out infinite;
  animation-delay: -1s;
}

.auth-form-wrap {
  display: flex; align-items: center; justify-content: center;
  padding: 60px;
  background: var(--bg);
}
.auth-form { width: 100%; max-width: 420px; }
.auth-form h1 { font-size: 30px; margin-bottom: 6px; }
.auth-form .lead { color: var(--ink-soft); margin-bottom: 28px; font-size: 15px; }

.auth-tabs { display: flex; background: var(--bg-deep); padding: 5px; border-radius: 14px; margin-bottom: 26px; border: 1.5px solid var(--line); }
.auth-tabs button {
  flex: 1; padding: 11px; border: none; background: transparent;
  font-weight: 700; font-size: 14px; color: var(--muted);
  cursor: pointer; border-radius: 10px; font-family: inherit;
}
.auth-tabs button.active { background: #fff; color: var(--forest-deep); box-shadow: 0 2px 6px rgba(0,0,0,.08); }
.auth-form .field { margin-bottom: 16px; }
.demo-account-box {
  display: block;
}
.demo-account-list {
  margin-top: 12px;
  display: grid;
  border-top: 1px dashed var(--line);
}
.demo-account-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 12px 0;
  border-bottom: 1px dashed var(--line);
}
.demo-account-row code {
  background: transparent;
  padding: 0;
  color: var(--ink);
  font-size: 13px;
  white-space: nowrap;
}
.demo-role {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 16px;
  border-radius: 999px;
  font-weight: 800;
  box-shadow: 0 3px 0 rgba(42,58,44,.08);
}
.demo-role-owner {
  background: var(--mint);
  color: var(--forest-deep);
}
.demo-role-worker {
  background: var(--sky);
  color: var(--sky-deep);
}
.auth-meta { display: flex; justify-content: space-between; align-items: center; margin-bottom: 22px; font-size: 13px; }
.checkline { display: flex; align-items: center; gap: 8px; color: var(--ink-soft); }
.divider-text {
  text-align: center; margin: 22px 0; color: var(--muted); font-size: 12px; position: relative;
  font-weight: 600; text-transform: uppercase; letter-spacing: .08em;
}
.divider-text::before, .divider-text::after {
  content: ''; position: absolute; top: 50%; width: 38%; height: 1.5px;
  background: var(--line);
}
.divider-text::before { left: 0; }
.divider-text::after { right: 0; }
.terms { font-size: 12px; color: var(--muted); text-align: center; margin-top: 18px; }

@media (max-width: 900px) {
  .auth-wrap { grid-template-columns: 1fr; }
  .auth-art {
    padding: 32px;
    min-height: auto;
    gap: 22px;
  }
  .auth-greeting h2 { font-size: 24px; }
  .auth-farm-scene {
    max-width: 340px;
  }
  .auth-farm-frame {
    border-radius: 24px;
  }
  .auth-scene-card {
    display: none;
  }
  .auth-form-wrap { padding: 32px; }
  .demo-account-row {
    align-items: flex-start;
    flex-direction: column;
    gap: 6px;
  }
  .demo-account-row code { white-space: normal; }
}

@media (max-width: 760px) {
  body {
    background-attachment: scroll;
  }

  .pubnav {
    position: static;
  }

  .pubnav-inner {
    padding: 12px 14px;
    gap: 10px;
  }

  .pubnav-inner > .row {
    gap: 6px !important;
  }

  .pubnav-inner .btn {
    height: 36px;
    padding: 0 12px;
    font-size: 12px;
  }

  .hero {
    padding-top: 24px;
  }

  .hero-inner {
    gap: 20px;
    padding: 0 18px;
  }

  .hero h1 {
    font-size: 36px;
    line-height: 1.04;
    margin: 16px 0 12px;
  }

  .hero p.lead {
    font-size: 15px;
    line-height: 1.55;
  }

  .hero-cta {
    margin-top: 22px;
    gap: 10px;
  }

  .hero-cta .btn {
    width: 100%;
  }

  .hero-note,
  .hero-stats,
  .hero-art,
  .wave-divider {
    display: none;
  }

  .section {
    padding: 46px 0;
  }

  .section-inner {
    padding: 0 18px;
  }

  main[style*="max-width"] {
    padding: 18px 14px 108px !important;
  }

  main .grid[style*="grid-template-columns"],
  main div[style*="grid-template-columns"] {
    grid-template-columns: 1fr !important;
  }

  main .card {
    padding: 16px;
    border-radius: 19px;
  }

  main .card-header {
    margin-bottom: 12px;
    padding-bottom: 12px;
  }

  main .activity-item {
    padding: 10px 0;
    gap: 10px;
  }

  main .act-icon {
    width: 36px;
    height: 36px;
    border-radius: 12px;
  }

  .feature,
  .step {
    padding: 18px;
    border-radius: 20px;
  }

  .auth-wrap {
    min-height: 100vh;
    display: block;
  }

  .auth-art {
    min-height: auto;
    padding: 14px 18px 8px;
    gap: 8px;
    background: linear-gradient(135deg, #DCEFF8 0%, #DCEFC8 100%);
  }

  .auth-art .brand-mark {
    width: 40px;
    height: 40px;
    border-radius: 13px;
  }

  .auth-greeting,
  .auth-farm-scene,
  .auth-art > p:last-child {
    display: none;
  }

  .auth-form-wrap {
    min-height: auto;
    align-items: flex-start;
    padding: 16px 18px 36px;
  }

  .auth-form {
    max-width: none;
  }

  .auth-form > a {
    margin-bottom: 14px !important;
  }

  .auth-tabs {
    margin-bottom: 16px;
    border-radius: 13px;
  }

  .auth-form h1 {
    font-size: 25px;
  }

  .auth-form .lead {
    margin-bottom: 18px;
    font-size: 13px;
    line-height: 1.45;
  }

  .auth-form .hand {
    font-size: 21px !important;
  }

  .auth-form .field {
    margin-bottom: 12px;
  }

  .auth-meta {
    margin-bottom: 16px;
  }

  .demo-account-box {
    padding: 12px;
    border-radius: 18px;
  }

  .demo-account-list {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    margin-top: 10px;
    padding-bottom: 3px;
    border-top: 0;
    scrollbar-width: none;
  }

  .demo-account-list::-webkit-scrollbar {
    display: none;
  }

  .demo-account-row {
    min-width: 188px;
    padding: 9px;
    border: 1px dashed var(--line);
    border-radius: 14px;
    background: rgba(255,255,255,.45);
  }

  .demo-role {
    min-height: 28px;
    padding: 0 10px;
    font-size: 11px;
  }

  .demo-account-row code {
    font-size: 11px;
    overflow-wrap: anywhere;
  }
}
