:root {
  --ink: #101614;
  --muted: #64736b;
  --bg: #f6f4ee;
  --panel: rgba(255, 255, 255, .86);
  --line: rgba(255, 255, 255, .68);
  --deep: #14251d;
  --green: #1f7a52;
  --amber: #9b650f;
  --amber-light: #fff4d8;
  --red: #a93b2f;
  --red-light: #fdecea;
  --shadow: 0 22px 70px rgba(31, 43, 35, .14);
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--bg);
}

a { color: inherit; text-decoration: none; }
button, input, textarea { font: inherit; }
button { border: 0; cursor: pointer; }

.btn {
  min-height: 44px;
  padding: 0 16px;
  border-radius: 8px;
  background: var(--green);
  color: #fff;
  font-weight: 850;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  box-shadow: 0 12px 28px rgba(31, 122, 82, .22);
  position: relative;
  overflow: hidden;
  transition: transform .18s ease, box-shadow .18s ease;
}

.btn::after {
  content: "";
  position: absolute;
  inset: 0;
  transform: translateX(-120%) skewX(-18deg);
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.30), transparent);
  transition: transform .55s ease;
}

.btn:hover { transform: translateY(-2px); box-shadow: 0 18px 38px rgba(31, 122, 82, .28); }
.btn:hover::after { transform: translateX(120%) skewX(-18deg); }
.btn.ghost { background: rgba(255,255,255,.84); color: var(--ink); border: 1px solid rgba(255,255,255,.65); box-shadow: none; }
.btn.small { min-height: 34px; padding: 0 10px; font-size: 13px; }
.btn.full { width: 100%; margin-top: 12px; }

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 900;
  font-size: 20px;
}

.brand span {
  width: 38px;
  height: 38px;
  border-radius: 8px;
  background: #dcebdc;
  color: #183d29;
  display: grid;
  place-items: center;
  font-size: 13px;
}

.brand.center { justify-content: center; width: 100%; }

.site-nav {
  position: absolute;
  z-index: 5;
  left: 0;
  right: 0;
  top: 0;
  min-height: 78px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 22px;
  color: #fff;
}

.site-nav nav { display: flex; align-items: center; gap: 16px; font-weight: 750; }

.landing .hero {
  min-height: 78vh;
  display: grid;
  grid-template-columns: minmax(0, .95fr) minmax(420px, 1.05fr);
  gap: 48px;
  align-items: center;
  padding: 120px max(22px, calc((100vw - 1160px) / 2)) 72px;
  background:
    linear-gradient(90deg, rgba(15,22,18,.82), rgba(15,22,18,.50) 42%, rgba(15,22,18,.04) 100%),
    linear-gradient(180deg, rgba(15,22,18,.10), rgba(246,244,238,.80) 100%),
    url("/assets/linenloop-hero.png") center right / cover no-repeat;
}

.hero-copy { max-width: 680px; }
.eyebrow { margin: 0 0 10px; color: #7fd3a3; font-size: 12px; font-weight: 900; letter-spacing: .09em; text-transform: uppercase; }
.landing h1 { margin: 0; color: #fff; font-size: clamp(44px, 7vw, 78px); line-height: .93; letter-spacing: 0; text-shadow: 0 18px 60px rgba(0,0,0,.34); }
.lead { margin: 18px 0 0; color: #e4eee7; font-size: 19px; line-height: 1.55; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }
.micro { color: #d4e0d8; font-size: 13px; margin-top: 13px; }

.preview-card {
  background: rgba(255,255,255,.80);
  border: 1px solid rgba(255,255,255,.66);
  border-radius: 8px;
  box-shadow: 0 30px 90px rgba(20,31,25,.26);
  backdrop-filter: blur(18px);
  overflow: hidden;
  animation: floatPreview 6s ease-in-out infinite;
}

@keyframes floatPreview {
  0%, 100% { transform: perspective(1200px) rotateY(-4deg) rotateX(2deg) translateY(0); }
  50% { transform: perspective(1200px) rotateY(-3deg) rotateX(1deg) translateY(-10px); }
}

.preview-head {
  background: rgba(20,37,29,.94);
  color: #fff;
  padding: 18px;
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.preview-head strong, .preview-head span { display: block; }
.preview-head span { color: #cddbd3; font-size: 13px; margin-top: 3px; }
.preview-head em { font-style: normal; align-self: start; padding: 6px 9px; border-radius: 999px; background: rgba(255,255,255,.10); font-size: 12px; font-weight: 850; }

.alert-row {
  margin: 14px;
  padding: 13px;
  border: 1px solid rgba(223,228,220,.95);
  border-left: 4px solid var(--amber);
  border-radius: 8px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 48px;
  gap: 10px;
  align-items: center;
  background: rgba(255,255,255,.9);
  transition: transform .18s ease, box-shadow .18s ease;
}

.alert-row:hover { transform: translateX(3px); box-shadow: 0 10px 26px rgba(31,43,35,.08); }
.alert-row strong, .alert-row span { display: block; }
.alert-row span { color: var(--muted); font-size: 14px; margin-top: 4px; }
.alert-row b { height: 48px; border-radius: 8px; background: var(--amber-light); display: grid; place-items: center; color: #684005; }

.section {
  max-width: 1160px;
  margin: 0 auto;
  padding: 64px 22px;
}

.section h2 { margin: 0 0 10px; font-size: clamp(30px, 4vw, 48px); line-height: 1.04; }
.section > p { color: var(--muted); max-width: 760px; line-height: 1.55; }
.dark { color: var(--green); }
.cards, .pricing { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-top: 24px; }
.pricing { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.cards article, .pricing article {
  background: rgba(255,255,255,.86);
  border: 1px solid rgba(255,255,255,.70);
  border-radius: 8px;
  box-shadow: var(--shadow);
  padding: 18px;
  transition: transform .18s ease, box-shadow .18s ease;
}
.cards article:hover, .pricing article:hover { transform: translateY(-4px); box-shadow: 0 26px 70px rgba(31,43,35,.16); }
.cards h3, .pricing label { margin: 0 0 8px; display: block; }
.cards p, .pricing p { color: var(--muted); line-height: 1.5; }
.pricing strong { display: block; font-size: 36px; }
.pricing .featured { border-color: rgba(31,122,82,.42); background: linear-gradient(180deg, rgba(231,243,237,.9), rgba(255,255,255,.88)); }

.beta-section {
  display: grid;
  grid-template-columns: minmax(0, .82fr) minmax(380px, 1fr);
  gap: 28px;
  align-items: start;
}

.lead-form {
  background: rgba(255,255,255,.88);
  border: 1px solid rgba(255,255,255,.72);
  border-radius: 8px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(16px);
  padding: 18px;
}

.faq {
  padding-top: 28px;
}

.footer {
  max-width: 1160px;
  margin: 0 auto;
  padding: 32px 22px 48px;
  display: flex;
  gap: 18px;
  color: var(--muted);
  font-weight: 750;
}

.legal {
  max-width: 820px;
  min-height: 100vh;
  margin: 0 auto;
  padding: 48px 22px;
  line-height: 1.62;
}

.legal h1 {
  font-size: clamp(36px, 5vw, 56px);
  margin: 36px 0 8px;
  line-height: 1;
}

.legal h2 {
  margin: 28px 0 8px;
}

.legal p {
  color: var(--muted);
}

.auth {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
  background:
    linear-gradient(90deg, rgba(246,244,238,.86), rgba(246,244,238,.46)),
    url("/assets/linenloop-hero.png") center / cover no-repeat;
}
.auth-card, .cleaner-card {
  width: min(520px, 100%);
  background: rgba(255,255,255,.86);
  border: 1px solid rgba(255,255,255,.72);
  border-radius: 8px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
  padding: 24px;
}
.auth-card h1, .cleaner-card h1 { margin: 18px 0 8px; }
.auth-card p, .cleaner-card p { color: var(--muted); line-height: 1.5; }

label { display: grid; gap: 6px; color: var(--muted); font-size: 13px; font-weight: 800; margin: 12px 0; }
input, textarea {
  width: 100%;
  min-height: 42px;
  border: 1px solid rgba(210,218,210,.95);
  border-radius: 8px;
  padding: 10px 11px;
  background: rgba(255,255,255,.94);
  color: var(--ink);
  outline: none;
}
textarea { min-height: 90px; resize: vertical; }
input:focus, textarea:focus { border-color: var(--green); box-shadow: 0 0 0 3px rgba(31,122,82,.12); }
.result { margin-top: 12px; color: var(--muted); line-height: 1.5; }

.sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  width: 260px;
  background: var(--deep);
  color: #fff;
  padding: 24px 18px;
}
.sidebar .brand { color: #fff; margin-bottom: 26px; }
.sidebar button {
  width: 100%;
  min-height: 40px;
  border-radius: 8px;
  margin: 4px 0;
  text-align: left;
  padding: 0 12px;
  background: transparent;
  color: #d9e2dc;
}
.sidebar button.active, .sidebar button:hover { background: #31453a; color: #fff; }
.side-note { margin-top: 24px; padding: 14px; border: 1px solid #435448; border-radius: 8px; color: #c9d5ce; font-size: 13px; line-height: 1.5; }

.app-shell {
  min-height: 100vh;
  margin-left: 260px;
  padding: 28px;
  background:
    linear-gradient(90deg, rgba(246,244,238,.78), rgba(246,244,238,.34)),
    linear-gradient(180deg, rgba(255,255,255,.76), rgba(246,244,238,.08)),
    url("/assets/linenloop-hero.png") center / cover fixed no-repeat;
}
.topbar { display: flex; justify-content: space-between; gap: 18px; align-items: flex-start; }
.topbar h1 { margin: 0; font-size: clamp(30px, 4vw, 48px); line-height: 1.04; }
.topbar p { color: var(--muted); }
.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin: 20px 0; }
.stats article, .panel, .modal {
  background: rgba(255,255,255,.86);
  border: 1px solid rgba(255,255,255,.72);
  border-radius: 8px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(16px);
}
.stats article { padding: 16px; }
.stats span { color: var(--muted); display: block; font-size: 13px; }
.stats b { display: block; margin-top: 8px; font-size: 30px; }
.split { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(340px, .7fr); gap: 18px; }
.panel { overflow: hidden; }
.panel header { display: flex; justify-content: space-between; align-items: center; padding: 16px 18px; border-bottom: 1px solid rgba(223,228,220,.85); }
.panel h2 { margin: 0; font-size: 18px; }
#properties, #restock { padding: 18px; display: grid; gap: 12px; }
.row-card, .restock-card {
  border: 1px solid rgba(223,228,220,.95);
  border-radius: 8px;
  padding: 14px;
  background: rgba(255,255,255,.88);
}
.row-card { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 12px; }
.row-card strong, .restock-card strong { display: block; }
.meta { color: var(--muted); font-size: 13px; line-height: 1.45; margin-top: 4px; }
.chip { display: inline-flex; margin-top: 8px; margin-right: 6px; padding: 5px 8px; border-radius: 999px; background: #e7f2ea; color: var(--green); font-weight: 850; font-size: 12px; }
.chip.red { background: var(--red-light); color: var(--red); }
.card-actions { display: flex; flex-wrap: wrap; gap: 8px; justify-content: flex-end; }
.empty { padding: 18px; border: 1px dashed rgba(210,218,210,.95); border-radius: 8px; color: var(--muted); text-align: center; }

.modal-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 20;
  background: rgba(16,24,18,.45);
  padding: 22px;
  align-items: center;
  justify-content: center;
}
.modal-backdrop.show { display: flex; }
.modal { width: min(760px, 100%); max-height: 92vh; overflow: auto; padding: 18px; }
.modal header { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.modal header h2 { margin: 0; }
.modal header button { width: 38px; height: 38px; border-radius: 8px; background: #fff; border: 1px solid rgba(223,228,220,.95); }
.item-head { display: flex; justify-content: space-between; align-items: center; margin-top: 12px; }
.item-row { display: grid; grid-template-columns: minmax(150px, 1fr) 90px 90px 90px 42px; gap: 8px; align-items: end; }
.item-row button { height: 42px; border-radius: 8px; background: var(--red-light); color: var(--red); }
.compact { grid-template-columns: repeat(3, minmax(0, 1fr)); }

.cleaner-page {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
  background:
    linear-gradient(90deg, rgba(246,244,238,.88), rgba(246,244,238,.40)),
    url("/assets/linenloop-hero.png") center / cover no-repeat;
}
.cleaner-card { width: min(900px, 100%); }
.clean-row {
  display: grid;
  grid-template-columns: minmax(180px, 1fr) 100px 100px 100px;
  gap: 10px;
  align-items: center;
  padding: 12px 0;
  border-bottom: 1px solid rgba(223,228,220,.85);
}
.clean-row strong, .clean-row span { display: block; }
.clean-row span { color: var(--muted); font-size: 13px; margin-top: 3px; }

@media (max-width: 900px) {
  .site-nav nav { display: none; }
  .landing .hero, .cards, .pricing, .split, .stats { grid-template-columns: 1fr; }
  .beta-section { grid-template-columns: 1fr; }
  .preview-card { animation: none; }
  .sidebar { position: static; width: auto; }
  .app-shell { margin-left: 0; }
  .item-row, .clean-row { grid-template-columns: 1fr; }
}
