/* =====================================================================
   LANDING (signed out) — playful neo-brutalist
   Warm paper ground, chunky ink borders with hard offset shadows, cards
   pinned at slight angles like stickers on a noticeboard.
   Scoped entirely under .landing so the dashboard stays a quiet tool.
   Motion is transform-only and hover-only — nothing blinks or pulses.
   ===================================================================== */

.landing {
  --paper: #fffdf6;
  --ink-b: #14181f;
  --pop: #ff6a3d;      /* warm accent for emphasis and stickers */
  --pop-2: #ffd23f;    /* highlighter */
  --pop-3: #21c07a;    /* confirmation green */
  --shadow: 5px 5px 0 var(--ink-b);
  --shadow-sm: 3px 3px 0 var(--ink-b);

  display: block;
  min-height: 100vh;
  color: var(--ink-b);
  background-color: var(--paper);
  /* faint dot grid: texture without noise */
  background-image: radial-gradient(#e2e6eb 1.1px, transparent 1.1px);
  background-size: 22px 22px;
  /* The tilted demo cards and the sticker sit a few px outside their boxes;
     on a narrow screen that would show as a horizontal scrollbar. `clip`
     rather than `hidden` so no scroll container is created. */
  overflow-x: clip;
}

/* ---------- nav ---------- */

.lnav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px clamp(18px, 5vw, 56px);
  max-width: 1180px;
  margin: 0 auto;
}

.lnav-brand {
  font-weight: 800;
  letter-spacing: -0.03em;
  font-size: 17px;
  display: flex;
  align-items: center;
  gap: 9px;
}

.lmark {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  background: var(--pop);
  color: #fff;
  border: 2px solid var(--ink-b);
  border-radius: 9px;
  box-shadow: var(--shadow-sm);
  font-size: 14px;
}

.lnav-links { display: flex; align-items: center; gap: 20px; font-size: 13.5px; font-weight: 600; }
.lnav-links a { color: var(--ink-b); text-decoration: none; text-underline-offset: 4px; }
.lnav-links a:hover { text-decoration: underline wavy var(--pop) 2px; }

.landing #nav-signin {
  width: auto;
  border: 2px solid var(--ink-b);
  border-radius: 10px;
  background: #fff;
  color: var(--ink-b);
  padding: 8px 16px;
  font-weight: 700;
  font-size: 13.5px;
  cursor: pointer;
  box-shadow: var(--shadow-sm);
  transition: transform .12s ease, box-shadow .12s ease;
}
.landing #nav-signin:hover { transform: translate(-1px, -1px); box-shadow: 4px 4px 0 var(--ink-b); }
.landing #nav-signin:active { transform: translate(3px, 3px); box-shadow: 0 0 0 var(--ink-b); }

/* ---------- hero ---------- */

.hero {
  max-width: 1180px;
  margin: 0 auto;
  padding: clamp(20px, 4vw, 52px) clamp(18px, 5vw, 56px) clamp(40px, 6vw, 76px);
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, 1fr);
  gap: clamp(28px, 5vw, 60px);
  align-items: center;
}
@media (max-width: 900px) { .hero { grid-template-columns: 1fr; } }

.kicker {
  display: inline-block;
  margin: 0 0 16px;
  background: var(--ink-b);
  color: var(--paper);
  padding: 5px 11px;
  border-radius: 999px;
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.hero-h1 {
  margin: 0 0 18px;
  font-size: clamp(32px, 5.4vw, 58px);
  line-height: 1.02;
  letter-spacing: -0.04em;
  font-weight: 800;
}

/* Highlighter swipe over the word. It paints ON TOP and multiplies, because a
   negative z-index would put it behind the section's own painted background and
   disappear entirely. Multiply keeps the dark glyphs dark and the paper yellow. */
.hero-h1 em { font-style: normal; position: relative; white-space: nowrap; }
.hero-h1 em::after {
  content: '';
  position: absolute;
  left: -4px; right: -4px; bottom: 6%;
  height: 38%;
  background: var(--pop-2);
  border-radius: 3px;
  z-index: 1;
  mix-blend-mode: multiply;
  transform: rotate(-1.2deg);
  pointer-events: none;
}

.hero-sub {
  margin: 0 0 22px;
  font-size: clamp(14.5px, 1.5vw, 17px);
  line-height: 1.62;
  color: #3c4450;
  max-width: 46ch;
}

.hero-points { margin: 0 0 26px; padding: 0; list-style: none; display: grid; gap: 11px; }
.hero-points li { position: relative; padding-left: 30px; font-size: 14.5px; font-weight: 500; }
.hero-points li::before {
  content: '\2713';
  position: absolute;
  left: 0; top: -1px;
  width: 20px; height: 20px;
  border-radius: 6px;
  background: var(--pop-3);
  color: #fff;
  border: 2px solid var(--ink-b);
  display: grid;
  place-items: center;
  font-size: 11px;
  font-weight: 800;
}

.hero-foot { margin: 0; font-size: 12.5px; font-weight: 600; color: #5b6472; }

/* ---------- the demo, pinned like stickers ---------- */

.demo { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 12px; }
@media (max-width: 620px) {
  .demo { grid-template-columns: 1fr; }
  .demo-arrow { transform: rotate(90deg); justify-self: center; }
}

.demo-phone, .demo-dm {
  background: #fff;
  border: 2.5px solid var(--ink-b);
  border-radius: 16px;
  box-shadow: var(--shadow);
  overflow: hidden;
  transition: transform .16s ease;
}
.demo-phone { transform: rotate(-2deg); }
.demo-dm { transform: rotate(1.8deg); }
.demo-phone:hover, .demo-dm:hover { transform: rotate(0deg); }

.demo-bar {
  display: flex;
  gap: 5px;
  padding: 9px 11px;
  border-bottom: 2px solid var(--ink-b);
  background: #f6f2e8;
}
.demo-bar span { width: 8px; height: 8px; border-radius: 50%; border: 1.5px solid var(--ink-b); }
.demo-bar span:nth-child(1) { background: var(--pop); }
.demo-bar span:nth-child(2) { background: var(--pop-2); }
.demo-bar span:nth-child(3) { background: var(--pop-3); }

.demo-post { padding: 12px; }
.demo-row { display: flex; align-items: center; gap: 8px; font-size: 12.5px; font-weight: 700; margin-bottom: 9px; }

.av {
  width: 22px; height: 22px;
  border-radius: 50%;
  background: linear-gradient(135deg, #ff6a3d, #ffd23f);
  border: 2px solid var(--ink-b);
  display: inline-block;
}

.demo-img {
  height: 96px;
  border-radius: 10px;
  border: 2px solid var(--ink-b);
  background: repeating-linear-gradient(45deg, #eaf3f8, #eaf3f8 9px, #dcebf4 9px, #dcebf4 18px);
  margin-bottom: 10px;
}

.demo-cmt p { margin: 0 0 6px; font-size: 12.5px; }
.demo-cmt b {
  background: var(--pop-2);
  padding: 1px 5px;
  border-radius: 4px;
  border: 1.5px solid var(--ink-b);
  font-weight: 800;
}
.demo-them { font-weight: 700; }

.demo-arrow { font-size: 26px; font-weight: 800; color: var(--ink-b); }

.demo-dm { padding: 13px; }
.demo-dm-h {
  margin: 0 0 10px;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: #6b7480;
}
.demo-bubble {
  background: #0b7fb8;
  color: #fff;
  padding: 11px 14px;
  border: 2px solid var(--ink-b);
  border-radius: 16px 16px 16px 5px;
  font-size: 13px;
  line-height: 1.5;
  font-weight: 500;
}
.demo-link { text-decoration: underline; }
.demo-dm-f { margin: 10px 0 0; font-size: 11.5px; font-weight: 600; color: #16794c; }

/* ---------- three steps ---------- */

.strip {
  border-top: 2.5px solid var(--ink-b);
  border-bottom: 2.5px solid var(--ink-b);
  background: #fff;
}

.steps3 {
  max-width: 1180px;
  margin: 0 auto;
  padding: clamp(28px, 4vw, 46px) clamp(18px, 5vw, 56px);
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: clamp(22px, 3vw, 44px);
  list-style: none;
}
.steps3 li { display: grid; gap: 6px; align-content: start; }
.steps3 .n {
  width: 34px; height: 34px;
  border-radius: 10px;
  border: 2.5px solid var(--ink-b);
  display: grid;
  place-items: center;
  font-size: 15px;
  font-weight: 800;
  margin-bottom: 6px;
  box-shadow: var(--shadow-sm);
}
.steps3 li:nth-child(1) .n { background: var(--pop); color: #fff; }
.steps3 li:nth-child(2) .n { background: var(--pop-2); }
.steps3 li:nth-child(3) .n { background: var(--pop-3); color: #fff; }
.steps3 strong { font-size: 16px; font-weight: 800; letter-spacing: -0.015em; }
.steps3 p { margin: 0; font-size: 13.5px; color: #3c4450; }

/* ---------- pricing ---------- */

.pricing-band {
  max-width: 1180px;
  margin: 0 auto;
  padding: clamp(38px, 5vw, 68px) clamp(18px, 5vw, 56px) 0;
  text-align: center;
}
.band-h { margin: 0 0 8px; font-size: clamp(22px, 3vw, 32px); letter-spacing: -0.032em; font-weight: 800; }
.band-sub { margin: 0 0 30px; font-size: 14.5px; color: #3c4450; font-weight: 500; }

.plan-grid.public { text-align: left; max-width: 940px; margin: 0 auto; gap: 18px; }
.plan-grid.public .plan-card {
  background: #fff;
  border: 2.5px solid var(--ink-b);
  border-radius: 18px;
  box-shadow: var(--shadow);
  position: relative;
  transition: transform .14s ease, box-shadow .14s ease;
}
.plan-grid.public .plan-card:hover { transform: translate(-2px, -2px); box-shadow: 7px 7px 0 var(--ink-b); }
.plan-grid.public .plan-card h4 {
  font-size: 13px;
  font-weight: 800;
  letter-spacing: .04em;
  text-transform: uppercase;
}
.plan-grid.public .plan-price { font-size: 2rem; font-weight: 800; letter-spacing: -0.035em; }
.plan-grid.public .plan-blurb,
.plan-grid.public li { font-weight: 500; }

/* "Most popular" slapped on at an angle, like a sticker. */
.plan-card .pop-sticker {
  position: absolute;
  top: -13px; right: -10px;
  background: var(--pop);
  color: #fff;
  border: 2.5px solid var(--ink-b);
  border-radius: 8px;
  padding: 4px 10px;
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: .05em;
  text-transform: uppercase;
  transform: rotate(4deg);
  box-shadow: var(--shadow-sm);
}

.plan-grid.public .plan-cta {
  margin-top: auto;
  width: 100%;
  padding: 11px 14px;
  border: 2.5px solid var(--ink-b);
  border-radius: 11px;
  background: #0b7fb8;
  color: #fff;
  font-weight: 800;
  font-size: .92rem;
  cursor: pointer;
  box-shadow: var(--shadow-sm);
  transition: transform .12s ease, box-shadow .12s ease;
}
.plan-grid.public .plan-cta.ghost { background: #fff; color: var(--ink-b); }
.plan-grid.public .plan-cta:hover { transform: translate(-1px, -1px); box-shadow: 4px 4px 0 var(--ink-b); }
.plan-grid.public .plan-cta:active { transform: translate(3px, 3px); box-shadow: 0 0 0 var(--ink-b); }

/* ---------- auth ---------- */

.auth-band { display: grid; place-items: center; padding: clamp(38px, 5vw, 68px) clamp(18px, 5vw, 56px); }

.landing .gate-card {
  border: 2.5px solid var(--ink-b);
  border-radius: 20px;
  box-shadow: var(--shadow);
}
.landing .gate-card h1 { font-weight: 800; letter-spacing: -0.03em; }
.landing .gate-card input { border-radius: 10px; }
.landing .gate-card button[type="submit"] {
  border: 2.5px solid var(--ink-b);
  border-radius: 11px;
  font-weight: 800;
  box-shadow: var(--shadow-sm);
  transition: transform .12s ease, box-shadow .12s ease;
}
.landing .gate-card button[type="submit"]:hover { transform: translate(-1px, -1px); box-shadow: 4px 4px 0 var(--ink-b); }
.landing .gate-card button[type="submit"]:active { transform: translate(3px, 3px); box-shadow: 0 0 0 var(--ink-b); }

.lfoot {
  max-width: 1180px;
  margin: 0 auto;
  padding: 24px clamp(18px, 5vw, 56px) 44px;
  border-top: 2.5px dashed var(--ink-b);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 12.5px;
  font-weight: 500;
  color: #5b6472;
}

/* Reduce Motion is a medical setting, not a style preference. */
@media (prefers-reduced-motion: reduce) {
  .landing *,
  .landing *::before,
  .landing *::after { transition: none !important; }
  .demo-phone, .demo-dm { transform: none; }
}

/* ---------- pricing: cycle switch ---------- */

.band-eyebrow {
  margin: 0 0 10px;
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #6a7482;
}

/* A chunky physical switch rather than a thin pill — it has to read as
   pressable at a glance, since the whole price changes when it moves. */
.cycle-switch {
  display: inline-flex;
  gap: 4px;
  margin: 0 auto 30px;
  padding: 4px;
  background: #fff;
  border: 2.5px solid var(--ink-b);
  border-radius: 999px;
  box-shadow: var(--shadow-sm);
}
.cycle-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 18px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--ink-b);
  font: inherit;
  font-size: 13.5px;
  font-weight: 800;
  cursor: pointer;
  transition: background .14s ease, color .14s ease;
}
.cycle-btn:hover { background: #f1f3f6; }
.cycle-btn.is-on { background: var(--ink-b); color: var(--paper); }
.cycle-btn.is-on:hover { background: var(--ink-b); }
.cycle-save {
  padding: 2px 7px;
  border-radius: 999px;
  background: var(--pop-3);
  color: #fff;
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: 0.02em;
}
.cycle-btn.is-on .cycle-save { background: var(--pop-2); color: var(--ink-b); }

/* ---------- pricing: card extras ---------- */

.plan-grid.public .plan-card.featured { border-width: 3px; }
.plan-sub {
  margin: -4px 0 12px;
  font-size: 12.5px;
  font-weight: 600;
  color: #55606e;
  min-height: 1.2em;
}
.save-pill {
  display: inline-block;
  margin-left: 4px;
  padding: 1px 7px;
  border-radius: 999px;
  background: var(--pop-3);
  color: #fff;
  font-size: 10.5px;
  font-weight: 800;
}
.plan-grid.public li.inherit {
  list-style: none;
  margin-left: -1.15rem;
  font-weight: 800;
  color: var(--ink-b);
}

/* ---------- pricing: comparison table ---------- */

.cmp-h {
  margin: 54px 0 18px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #6a7482;
}
/* The table is the one place a phone genuinely needs to scroll sideways. */
.cmp-wrap {
  max-width: 940px;
  margin: 0 auto;
  overflow-x: auto;
  border: 2.5px solid var(--ink-b);
  border-radius: 16px;
  box-shadow: var(--shadow);
  background: #fff;
}
.cmp {
  width: 100%;
  min-width: 560px;
  border-collapse: collapse;
  text-align: left;
  font-size: 13.5px;
}
.cmp thead th {
  padding: 14px 16px;
  background: var(--ink-b);
  color: var(--paper);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.cmp thead th:not(:first-child),
.cmp td { text-align: center; }
.cmp tr.grp th {
  padding: 11px 16px;
  background: #fbfaf4;
  border-top: 2px solid var(--ink-b);
  border-bottom: 1.5px solid #e3e7ec;
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #6a7482;
}
/* app.css uppercases every `th`; that is right for a column header and
   unreadable for a full sentence of feature name. */
.cmp tbody th[scope='row'] {
  padding: 11px 16px;
  font-weight: 600;
  font-size: 13.5px;
  letter-spacing: 0;
  text-transform: none;
  color: #26303c;
}
.cmp td { padding: 11px 16px; font-weight: 700; }
.cmp tbody tr + tr th,
.cmp tbody tr + tr td { border-top: 1px solid #eceff3; }
.cmp .yes { color: var(--pop-3); font-size: 16px; }
.cmp .no { color: #b6bec8; }

.cmp-foot {
  max-width: 720px;
  margin: 16px auto 0;
  font-size: 12.5px;
  line-height: 1.6;
  color: #6a7482;
}
