/* InventTasks landing page — light theme matched to the logo:
   ink (near-black) + brand red on white. One-page layout. */

:root {
  --bg: #ffffff;
  --bg-soft: #f8f8f8;
  --panel: #ffffff;
  --ink: #1c1c1c;
  --muted: #6b6b6b;
  --brand: #e12d2d;        /* logo red */
  --brand-dark: #c01f1f;
  --brand-soft: #fdeaea;   /* light red tint for accents */
  --line: #e8e8e8;
  --ok: #1f9d55;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(20, 20, 20, 0.05), 0 8px 24px rgba(20, 20, 20, 0.06);
}

* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}
body {
  margin: 0;
  font:
    16px/1.6 -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    Roboto,
    Helvetica,
    Arial,
    sans-serif;
  color: var(--ink);
  background: var(--bg);
}
a {
  color: var(--brand);
}
.wrap {
  max-width: 1020px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  padding-top: 12px;
  padding-bottom: 12px;
}
.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--ink);
}
.logo-mark {
  width: 34px;
  height: 34px;
  display: block;
}
.logo-word {
  font-weight: 800;
  letter-spacing: 0.2px;
  font-size: 21px;
  color: var(--ink);
}
.logo-word span {
  color: var(--brand);
}
.site-header nav {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
}
.site-header nav a:not(.btn) {
  color: var(--ink);
  text-decoration: none;
  font-weight: 600;
  font-size: 14.5px;
  opacity: 0.85;
}
.site-header nav a:not(.btn):hover {
  color: var(--brand);
  opacity: 1;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  background: var(--brand);
  color: #fff;
  text-decoration: none;
  padding: 11px 20px;
  border-radius: 999px;
  font-weight: 700;
  border: 0;
  cursor: pointer;
  transition: background 0.12s, transform 0.12s;
}
.btn:hover {
  background: var(--brand-dark);
}
.btn:active {
  transform: translateY(1px);
}
.btn.ghost {
  background: transparent;
  border: 1.5px solid var(--ink);
  color: var(--ink);
}
.btn.ghost:hover {
  border-color: var(--brand);
  color: var(--brand);
  background: var(--brand-soft);
}
.btn.big {
  padding: 14px 26px;
  font-size: 17px;
}

/* ---------- Hero ---------- */
.hero {
  padding: 64px 0 28px;
  text-align: center;
}
.hero-badge {
  display: inline-block;
  background: var(--brand-soft);
  color: var(--brand-dark);
  font-size: 13px;
  font-weight: 700;
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 18px;
}
.hero h1 {
  font-size: clamp(32px, 6vw, 56px);
  line-height: 1.08;
  margin: 0.2em 0;
  letter-spacing: -0.5px;
}
.hero p.lead {
  font-size: clamp(17px, 2.4vw, 21px);
  color: var(--muted);
  max-width: 680px;
  margin: 14px auto 28px;
}
.cta-row {
  display: flex;
  gap: 12px;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
}
.note {
  color: var(--muted);
  font-size: 14px;
  margin-top: 12px;
}
.note.center {
  text-align: center;
}

/* ---------- Section headings ---------- */
h2.section {
  font-size: clamp(24px, 3.4vw, 32px);
  margin: 72px 0 14px;
  text-align: center;
  letter-spacing: -0.3px;
}
h2.section::after {
  content: "";
  display: block;
  width: 44px;
  height: 4px;
  border-radius: 2px;
  background: var(--brand);
  margin: 10px auto 0;
}

/* ---------- Screenshots ---------- */
/* Slots show the image when assets/img/screen-*.png exists; a missing image
   flips the frame into a styled "coming soon" placeholder (see index.html). */
.shots {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 18px;
  margin: 26px 0 8px;
}
.shot {
  margin: 0;
}
.shot-frame {
  aspect-ratio: 16 / 10;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--bg-soft);
  box-shadow: var(--shadow);
  display: grid;
  place-items: center;
}
.shot-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.shot-frame.empty {
  background:
    repeating-linear-gradient(
      -45deg,
      var(--bg-soft),
      var(--bg-soft) 14px,
      #f1f1f1 14px,
      #f1f1f1 28px
    );
}
.shot-frame.empty::after {
  content: "Screenshot coming soon";
  color: var(--muted);
  font-size: 13.5px;
  font-weight: 600;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 7px 16px;
}
.shot figcaption {
  color: var(--muted);
  font-size: 13.5px;
  margin-top: 8px;
  text-align: center;
}

/* ---------- Feature cards ---------- */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 16px;
  margin: 28px 0;
}
.card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
  box-shadow: var(--shadow);
}
.card h3 {
  margin: 0.1em 0 0.4em;
  font-size: 17px;
}
.card h3::before {
  content: "✓ ";
  color: var(--brand);
}
.card p {
  color: var(--muted);
  margin: 0;
  font-size: 15px;
}

/* ---------- Pricing ---------- */
.pricing {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 16px;
  margin: 22px 0 6px;
  align-items: start;
}
.tier {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px 24px;
  text-align: center;
  box-shadow: var(--shadow);
  position: relative;
}
.tier.feat {
  border: 2px solid var(--brand);
}
.tier-flag {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--brand);
  color: #fff;
  font-size: 11.5px;
  font-weight: 800;
  letter-spacing: 0.4px;
  text-transform: uppercase;
  padding: 4px 12px;
  border-radius: 999px;
  white-space: nowrap;
}
.price {
  font-size: 40px;
  font-weight: 800;
  line-height: 1.1;
}
.price small {
  display: block;
  font-size: 14px;
  color: var(--muted);
  font-weight: 600;
  margin-top: 2px;
}
.tier ul {
  list-style: none;
  padding: 0;
  margin: 16px 0;
  color: var(--muted);
  font-size: 14px;
  text-align: left;
}
.tier li {
  padding: 4px 0 4px 22px;
  position: relative;
}
.tier li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--brand);
  font-weight: 800;
}

/* Coffee tips */
.tips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  margin: 10px 0 2px;
}
.tip {
  flex: 1 1 62px;
  min-width: 62px;
  padding: 9px 6px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: var(--panel);
  color: var(--ink);
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  transition:
    background 0.12s,
    border-color 0.12s,
    color 0.12s;
}
.tip:hover {
  border-color: var(--brand);
  color: var(--brand);
  background: var(--brand-soft);
}
.tip:active {
  background: var(--brand);
  border-color: var(--brand);
  color: #fff;
}
.tip-crazy {
  flex: 1 1 100%;
  border: 0;
  color: #fff;
  background: linear-gradient(90deg, #1c1c1c, var(--brand));
}
.tip-crazy:hover {
  filter: brightness(1.12);
  color: #fff;
  background: linear-gradient(90deg, #1c1c1c, var(--brand));
}
.tip-crazy:active {
  filter: brightness(0.95);
  color: #fff;
}
.tip-thanks {
  color: var(--muted);
  font-size: 12.5px;
  margin: 6px 0 0;
  text-align: center;
}

/* ---------- Steps ---------- */
ol.steps {
  counter-reset: s;
  list-style: none;
  padding: 0;
  max-width: 720px;
  margin: 18px auto;
}
ol.steps li {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 14px 16px 14px 54px;
  margin: 10px 0;
  position: relative;
  box-shadow: var(--shadow);
}
ol.steps li::before {
  counter-increment: s;
  content: counter(s);
  position: absolute;
  left: 14px;
  top: 14px;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--brand);
  color: #fff;
  display: grid;
  place-items: center;
  font-weight: 800;
}
code {
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 2px 6px;
  font-size: 13px;
}

/* ---------- FAQ ---------- */
details {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 12px 16px;
  margin: 10px auto;
  max-width: 720px;
  box-shadow: var(--shadow);
}
summary {
  cursor: pointer;
  font-weight: 600;
}
details[open] summary {
  color: var(--brand);
}
details p {
  color: var(--muted);
}

/* ---------- Footer ---------- */
footer {
  border-top: 1px solid var(--line);
  margin-top: 64px;
  padding: 26px 0 36px;
  color: var(--muted);
  font-size: 14px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.footer-brand .logo-mark {
  width: 22px;
  height: 22px;
}

/* ---------- Sandbox badge ---------- */
#env-badge {
  position: fixed;
  bottom: 10px;
  left: 12px;
  z-index: 9999;
  display: none;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.6px;
  padding: 4px 9px;
  border-radius: 6px;
  background: #fb8c00;
  color: #1a1205;
}

/* ---------- Mobile ---------- */
@media (max-width: 640px) {
  .site-header nav {
    gap: 12px;
    font-size: 13.5px;
  }
  .site-header nav a:not(.btn):nth-child(-n + 2) {
    display: none; /* keep the bar compact on phones */
  }
  .hero {
    padding-top: 40px;
  }
  h2.section {
    margin-top: 56px;
  }
}
