/* ------------------------------- landing ------------------------------- */
.landing main {
  position: relative;
  z-index: 1;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(0, 0.98fr);
  align-items: center;
  gap: clamp(28px, 5vw, 64px);
  max-width: var(--max);
  margin: 0 auto;
  padding: clamp(48px, 7vw, 92px) clamp(20px, 4vw, 40px) clamp(56px, 7vw, 96px);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 6px 14px;
  border: 2px solid var(--line);
  border-radius: 999px;
  background: var(--white);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  box-shadow: var(--shadow-sm);
}

.eyebrow i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--mint);
  box-shadow: 0 0 0 3px rgba(126, 209, 188, 0.3);
}

.hero h1 {
  margin: 22px 0 20px;
  font-size: clamp(42px, 6.1vw, 76px);
  line-height: 1.05;
  letter-spacing: -0.045em;
}

.marker {
  position: relative;
  display: inline-block;
  padding: 0 6px;
  z-index: 0;
}

.marker::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 6%;
  height: 38%;
  z-index: -1;
  background: var(--sun);
  border-radius: 6px;
  transform: skewX(-8deg) rotate(-1deg);
}

.lead {
  max-width: 520px;
  font-size: clamp(15px, 1.5vw, 17px);
  color: var(--ink-soft);
  line-height: 1.8;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin: 30px 0 36px;
}

.hero-stats {
  display: flex;
  gap: clamp(20px, 4vw, 44px);
  margin: 0;
  padding-top: 22px;
  border-top: 2px dashed rgba(27, 23, 20, 0.2);
  max-width: 460px;
}

.hero-stats div {
  display: flex;
  flex-direction: column;
}

.hero-stats dt {
  font-family: var(--font-display);
  font-size: 30px;
  font-weight: 900;
  line-height: 1;
}

.hero-stats dd {
  margin: 6px 0 0;
  font-size: 12.5px;
  color: var(--ink-faint);
  letter-spacing: 0.04em;
}

/* board */
.hero-board {
  min-width: 0;
}

.board-grid {
  position: relative;
  min-height: 500px;
  padding: 30px;
  border: 2px solid var(--line);
  border-radius: 30px;
  background: #fffdf7;
  box-shadow: 12px 14px 0 rgba(27, 23, 20, 0.12);
  overflow: hidden;
}

.board-grid::before {
  content: "";
  position: absolute;
  inset: 16px;
  border: 2px dashed rgba(27, 23, 20, 0.18);
  border-radius: 22px;
  pointer-events: none;
}

.board-grid::after {
  content: "";
  position: absolute;
  width: 240px;
  height: 240px;
  right: -80px;
  top: -70px;
  border-radius: 50%;
  background: var(--mint-soft);
  z-index: 0;
}

.mini-card {
  position: absolute;
  z-index: 3;
  width: 236px;
  padding: 16px;
  border: 2px solid var(--line);
  border-radius: 16px;
  background: var(--white);
  box-shadow: 5px 6px 0 rgba(27, 23, 20, 0.18);
}

.mini-card-a {
  top: 42px;
  left: 30px;
  transform: rotate(-4.5deg);
}

.mini-card-b {
  right: 26px;
  bottom: 34px;
  transform: rotate(3.5deg);
}

.mini-tag {
  display: inline-block;
  padding: 2px 8px;
  border: 1.5px solid var(--line);
  border-radius: 999px;
  background: var(--coral-soft);
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.mini-card h3 {
  margin: 10px 0 4px;
  font-size: 18px;
}

.mini-card p {
  font-size: 11.5px;
  color: var(--ink-faint);
  letter-spacing: 0.02em;
}

.mini-bars {
  display: flex;
  align-items: flex-end;
  gap: 5px;
  height: 46px;
  margin: 12px 0;
  padding: 6px 8px;
  border: 1.5px dashed rgba(27, 23, 20, 0.22);
  border-radius: 8px;
}

.mini-bars span {
  flex: 1;
  background: var(--coral);
  border-radius: 3px 3px 0 0;
  opacity: 0.85;
}

.mini-bars span:nth-child(1) { height: 34%; }
.mini-bars span:nth-child(2) { height: 56%; background: var(--sun); }
.mini-bars span:nth-child(3) { height: 72%; }
.mini-bars span:nth-child(4) { height: 100%; background: var(--mint); }

.mini-cover {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  height: 84px;
  margin: 12px 0;
  border-radius: 8px;
  border: 2px solid var(--line);
  background:
    radial-gradient(circle at 20% 30%, rgba(255, 255, 255, 0.9), transparent 40%),
    linear-gradient(120deg, var(--sky), var(--mint) 70%);
  text-align: center;
  overflow: hidden;
}

.mini-cover b {
  font-family: var(--font-display);
  font-size: 20px;
  letter-spacing: 0.02em;
  text-shadow: 0 2px 0 #fff, 0 0 2px #fff;
}

.mini-cover i {
  font-style: normal;
  font-size: 9.5px;
  font-weight: 700;
}

.mini-cover em {
  margin-top: 3px;
  font-style: normal;
  font-size: 8px;
  padding: 1px 6px;
  border-radius: 999px;
  background: rgba(27, 23, 20, 0.78);
  color: var(--paper);
}

.mini-chip {
  display: inline-block;
  padding: 3px 9px;
  border: 1.5px solid var(--line);
  border-radius: 7px;
  background: var(--sun);
  font-size: 10px;
  font-weight: 800;
  box-shadow: 2px 2px 0 var(--line);
}

.mini-chip.chip-alt {
  background: var(--mint);
}

.egg {
  position: absolute;
  z-index: 4;
  width: 78px;
  height: 90px;
  border: 2px solid var(--line);
  border-radius: 50% 50% 46% 46% / 46% 46% 54% 54%;
  background: var(--white);
  box-shadow: 4px 5px 0 rgba(27, 23, 20, 0.16);
}

.egg-yellow {
  left: 84px;
  bottom: 36px;
  background: #ffe37a;
  transform: rotate(-8deg);
}

.egg-mint {
  right: 108px;
  top: 92px;
  width: 66px;
  height: 78px;
  background: var(--mint-soft);
  transform: rotate(9deg);
}

.egg .eye {
  position: absolute;
  top: 34%;
  width: 7px;
  height: 9px;
  border-radius: 50%;
  background: var(--ink);
}

.egg .eye:nth-of-type(1) { left: 28%; }
.egg .eye:nth-of-type(2) { right: 28%; }

.egg .mouth {
  position: absolute;
  left: 50%;
  top: 54%;
  width: 18px;
  height: 8px;
  transform: translateX(-50%);
  border-bottom: 2.5px solid var(--ink);
  border-radius: 0 0 50% 50%;
}

.tape {
  position: absolute;
  z-index: 5;
  padding: 3px 12px;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.14em;
  background: rgba(255, 208, 86, 0.92);
  border: 1.5px solid rgba(27, 23, 20, 0.5);
  transform: rotate(-6deg);
}

.tape-one { top: 14px; right: 76px; }
.tape-two { bottom: 16px; left: 210px; transform: rotate(5deg); background: rgba(126, 209, 188, 0.9); }

/* sections */
.section {
  max-width: var(--max);
  margin: 0 auto;
  padding: clamp(46px, 6vw, 84px) clamp(20px, 4vw, 40px);
}

.section-head {
  max-width: 660px;
  margin-bottom: 38px;
}

.section-head h2 {
  margin: 12px 0 12px;
  font-size: clamp(28px, 4vw, 44px);
}

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

.service-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 26px;
}

.service-card {
  position: relative;
  padding: 28px;
  border: 2px solid var(--line);
  border-radius: 24px;
  background: var(--white);
  box-shadow: var(--shadow);
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.service-card:hover {
  transform: translateY(-4px);
  box-shadow: 10px 12px 0 rgba(27, 23, 20, 0.14);
}

.service-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 10px;
  background: var(--coral);
}

.service-card.accent-mint::before {
  background: var(--mint);
}

.service-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 18px;
}

.service-index {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.16em;
  color: var(--ink-faint);
}

.service-state {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 10px;
  border: 1.5px solid var(--line);
  border-radius: 999px;
  font-size: 11px;
  font-weight: 800;
  background: var(--paper-deep);
}

.service-state.ok {
  background: var(--mint-soft);
}

.service-state.warn {
  background: var(--coral-soft);
}

.service-card h3 {
  font-size: clamp(23px, 2.6vw, 30px);
  margin-bottom: 10px;
}

.service-desc {
  color: var(--ink-soft);
  font-size: 14.5px;
  max-width: 92%;
}

.service-list {
  list-style: none;
  margin: 20px 0 24px;
  display: grid;
  gap: 8px;
  font-size: 13.5px;
  color: var(--ink-soft);
}

.service-list li {
  position: relative;
  padding-left: 20px;
}

.service-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 8px;
  width: 9px;
  height: 9px;
  border-radius: 2px;
  background: var(--coral);
  transform: rotate(12deg);
}

.accent-mint .service-list li::before {
  background: var(--mint);
}

.service-card .btn {
  position: relative;
  z-index: 2;
}

.service-doodle {
  position: absolute;
  right: 18px;
  bottom: 12px;
  font-family: var(--font-display);
  font-size: 34px;
  font-weight: 900;
  line-height: 0.95;
  color: rgba(226, 96, 61, 0.12);
  text-align: right;
  transform: rotate(-6deg);
  pointer-events: none;
}

.service-doodle.doodle-alt {
  color: rgba(126, 209, 188, 0.3);
  font-size: 26px;
}

/* workflow */
.workflow {
  border-top: 2px dashed rgba(27, 23, 20, 0.16);
}

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  list-style: none;
  counter-reset: step;
}

.steps li {
  position: relative;
  padding: 24px;
  border: 2px solid var(--line);
  border-radius: 18px;
  background: var(--paper);
  box-shadow: var(--shadow-sm);
}

.steps li:nth-child(2) {
  background: #fffdf7;
  transform: translateY(10px);
}

.step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  margin-bottom: 14px;
  border: 2px solid var(--line);
  border-radius: 50%;
  background: var(--sun);
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 900;
  box-shadow: 2px 3px 0 var(--line);
}

.steps li:nth-child(2) .step-num { background: var(--mint); }
.steps li:nth-child(3) .step-num { background: var(--sky); }

.steps h3 {
  font-size: 18px;
  margin-bottom: 6px;
}

.steps p {
  font-size: 13.5px;
  color: var(--ink-soft);
}

/* about */
.about {
  padding-top: 0;
}

.about-card {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 40px;
  padding: clamp(26px, 4vw, 44px);
  border: 2px solid var(--line);
  border-radius: 26px;
  background: var(--ink);
  color: var(--paper);
  box-shadow: 10px 12px 0 rgba(27, 23, 20, 0.16);
}

.about-card h2 {
  margin: 10px 0 14px;
  font-size: clamp(26px, 3.4vw, 38px);
  color: #fff;
}

.about-card p {
  color: rgba(255, 249, 239, 0.74);
  font-size: 14.5px;
}

.about-points {
  list-style: none;
  display: grid;
  gap: 12px;
  align-content: center;
}

.about-points li {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 13px 16px;
  border: 1.5px solid rgba(255, 249, 239, 0.22);
  border-radius: 12px;
  background: rgba(255, 249, 239, 0.05);
}

.about-points strong {
  font-size: 14px;
  color: var(--sun);
}

.about-points span {
  font-size: 12.5px;
  color: rgba(255, 249, 239, 0.66);
}

/* auth */
.auth-section {
  padding-top: 0;
}

.auth-shell {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  border: 2px solid var(--line);
  border-radius: 28px;
  overflow: hidden;
  box-shadow: 10px 12px 0 rgba(27, 23, 20, 0.14);
  background: var(--white);
}

.auth-side {
  position: relative;
  padding: clamp(28px, 4vw, 46px);
  background:
    radial-gradient(circle at 80% 15%, rgba(126, 209, 188, 0.3), transparent 40%),
    var(--ink);
  color: var(--paper);
  overflow: hidden;
}

.auth-side h2 {
  margin: 14px 0 16px;
  font-size: clamp(30px, 3.6vw, 42px);
  color: #fff;
}

.auth-side p {
  color: rgba(255, 249, 239, 0.72);
  font-size: 14.5px;
  max-width: 300px;
}

.auth-bullets {
  list-style: none;
  display: grid;
  gap: 10px;
  margin-top: 24px;
  font-size: 13px;
  color: rgba(255, 249, 239, 0.82);
}

.auth-bullets li {
  display: flex;
  align-items: center;
  gap: 9px;
}

.auth-bullets li::before {
  content: "✓";
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--mint);
  color: var(--ink);
  font-size: 11px;
  font-weight: 900;
  flex-shrink: 0;
}

.auth-mark {
  position: absolute;
  right: -26px;
  bottom: -30px;
  width: 190px;
  opacity: 0.16;
  filter: grayscale(1) brightness(3);
  transform: rotate(-8deg);
  pointer-events: none;
}

.auth-panel {
  padding: clamp(26px, 4vw, 44px);
  background:
    radial-gradient(rgba(27, 23, 20, 0.06) 1px, transparent 1px) 0 0 / 16px 16px,
    var(--paper);
}

.auth-tabs {
  display: inline-flex;
  gap: 6px;
  padding: 5px;
  margin-bottom: 24px;
  border: 2px solid var(--line);
  border-radius: 999px;
  background: var(--white);
}

.auth-tab {
  padding: 8px 26px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  font-weight: 800;
  font-size: 14px;
  color: var(--ink-faint);
  transition: background 0.18s ease, color 0.18s ease;
}

.auth-tab.is-active {
  background: var(--ink);
  color: var(--paper);
}

.auth-form {
  display: grid;
  gap: 15px;
}

.auth-form .btn {
  margin-top: 6px;
}

.auth-success {
  display: grid;
  justify-items: center;
  gap: 8px;
  padding: 20px 0;
  text-align: center;
}

.auth-success h3 {
  font-size: 24px;
}

.success-mark {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 54px;
  height: 54px;
  border: 2px solid var(--line);
  border-radius: 50%;
  background: var(--mint);
  font-size: 26px;
  font-weight: 900;
  box-shadow: var(--shadow-sm);
}

.auth-success .btn {
  width: 100%;
  margin-top: 10px;
}

.auth-success .link-btn {
  margin-top: 4px;
  font-size: 13px;
}

/* footer */
.site-footer {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 12px;
  max-width: var(--max);
  margin: 0 auto;
  padding: 34px clamp(20px, 4vw, 40px) 46px;
  border-top: 2px solid var(--line);
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 17px;
}

.footer-brand img {
  width: 38px;
  height: 38px;
  border: 1.5px solid var(--line);
  border-radius: 9px;
  background: #fff;
}

.site-footer p {
  font-size: 13px;
  color: var(--ink-faint);
}

.footer-meta {
  display: flex;
  gap: 18px;
  font-size: 13px;
  font-weight: 700;
}

.footer-meta a {
  color: var(--ink-soft);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* ------------------------------- responsive ------------------------------- */
@media (max-width: 1000px) {
  .hero {
    grid-template-columns: 1fr;
    padding-top: 42px;
  }

  .hero-copy {
    max-width: 640px;
  }

  .hero-board {
    max-width: 560px;
  }

  .board-grid {
    min-height: 420px;
  }

  .mini-card {
    width: 210px;
  }

  .mini-card-a { left: 20px; top: 30px; }
  .mini-card-b { right: 20px; bottom: 24px; }
  .egg-yellow { left: 40px; bottom: 24px; width: 64px; height: 76px; }
  .egg-mint { right: 72px; top: 58px; width: 58px; height: 70px; }
  .tape-two { left: 120px; }

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

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

  .steps li:nth-child(2) {
    transform: none;
  }

  .about-card {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .auth-shell {
    grid-template-columns: 1fr;
  }

  .auth-side {
    padding-bottom: 74px;
  }

  .auth-mark {
    width: 150px;
    bottom: -34px;
  }
}

@media (max-width: 760px) {
  .site-header {
    gap: 12px;
    padding: 10px 16px;
  }

  .site-nav {
    display: none;
  }

  .brand-badge img {
    height: 28px;
  }

  .brand-text strong {
    font-size: 16px;
  }

  .brand-text small {
    font-size: 9px;
  }

  .header-actions {
    margin-left: auto;
  }

  .header-actions .btn {
    padding: 7px 12px;
    font-size: 12px;
  }

  .hero {
    padding-top: 34px;
  }

  .hero h1 {
    font-size: clamp(36px, 10vw, 48px);
  }

  .hero-cta .btn {
    flex: 1 1 100%;
  }

  .hero-stats {
    gap: 18px;
  }

  .hero-stats dt {
    font-size: 24px;
  }

  .board-grid {
    min-height: 390px;
    padding: 18px;
  }

  .mini-card {
    width: 176px;
    padding: 12px;
  }

  .mini-card h3 { font-size: 15px; }
  .mini-card-b { right: 12px; bottom: 18px; }
  .mini-card-a { left: 12px; top: 24px; }
  .mini-cover { height: 68px; }
  .mini-cover b { font-size: 16px; }
  .egg-yellow { left: 26px; bottom: 18px; width: 54px; height: 64px; }
  .egg-mint { right: 42px; top: 44px; width: 50px; height: 60px; }
  .tape { font-size: 8.5px; padding: 2px 8px; }
  .tape-one { right: 34px; top: 8px; }
  .tape-two { left: 100px; bottom: 10px; }

  .section {
    padding-left: 16px;
    padding-right: 16px;
  }

  .service-card {
    padding: 22px;
  }

  .service-desc {
    max-width: 100%;
  }

  .service-doodle {
    font-size: 26px;
    opacity: 0.7;
  }

  .auth-panel {
    padding: 22px 18px;
  }

  .auth-tabs {
    width: 100%;
  }

  .auth-tab {
    flex: 1;
    padding: 8px 0;
  }

  .auth-side h2 {
    font-size: 30px;
  }

  .footer-meta {
    flex-wrap: wrap;
  }
}

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