/* Public landing page — structural layer (issues #29, #51).
   Layout and token-driven scaffolding only: colors, fonts, and typographic
   voice come from the active theme-*.css tokens plus the matching
   landing-<theme>.css skin loaded right after this file.
   Skin tokens (set on body.landing by each skin):
   --paper (card stock), --accent (decorative rules), --font-hand (slip values). */

body.landing {
  max-width: none;
  margin: 0;
  padding: 0;
}

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

/* ---- shared bits ---- */

.landing .btn {
  display: inline-block;
  text-decoration: none;
  padding: .65rem 1.3rem;
}

.landing .wordmark {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  font-family: var(--font-display);
  font-size: 1.05rem;
  letter-spacing: var(--brand-tracking, 0);
  text-decoration: none;
}
.landing .logo-box {
  display: inline-grid;
  place-items: center;
  width: 1.15rem;
  height: 1.15rem;
  border: 1.5px solid currentColor;
  font-size: .8rem;
  letter-spacing: 0;
}

.landing .lbl { font-size: .66rem; }

.landing .section-title {
  font-family: var(--font-display);
  font-size: 1.6rem;
  text-align: center;
  margin: 0 0 2rem;
}
.landing .section-title::before,
.landing .section-title::after {
  content: "";
  display: inline-block;
  vertical-align: middle;
  width: 2.2rem;
  height: 2px;
  background: var(--accent, currentColor);
  margin: 0 .8rem;
}

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

.landing .site-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  padding: .9rem clamp(1rem, 4vw, 2.5rem);
  background: var(--bg);
}
.landing .site-links {
  display: flex;
  align-items: center;
  gap: clamp(.8rem, 2.5vw, 1.6rem);
  flex-wrap: wrap;
  border: 0;
  margin: 0;
  padding: 0;
}
.landing .site-links a:not(.btn) {
  font-size: .72rem;
  text-decoration: none;
}
.landing .site-links a:not(.btn):hover { text-decoration: underline; }

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

.landing .hero {
  background: var(--bg);
  text-align: center;
  padding: clamp(3rem, 8vw, 5.5rem) 1.25rem 1rem;
}
.landing .kicker {
  font-size: .72rem;
  margin: 0 0 1.4rem;
}
.landing .kicker::before,
.landing .kicker::after {
  content: "";
  display: inline-block;
  vertical-align: middle;
  width: 2rem;
  height: 2px;
  background: var(--accent, currentColor);
  margin: 0 .9rem;
}
.landing .hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5.5vw, 3.4rem);
  line-height: 1.2;
  margin: 0 auto 1.2rem;
  max-width: 46rem;
}
.landing .subcopy {
  font-family: var(--font-body);
  max-width: 34rem;
  margin: 0 auto 1.8rem;
}
.landing .cta-row {
  display: flex;
  justify-content: center;
  gap: .9rem;
  flex-wrap: wrap;
  margin: 0;
}

/* ---- the slip ---- */

.landing .slip-stage {
  background: var(--bg);
  padding: clamp(2.5rem, 6vw, 4.5rem) 1.25rem clamp(3.5rem, 8vw, 6rem);
  overflow: hidden;
}
.landing .slip-stack {
  position: relative;
  max-width: 34rem;
  margin: 0 auto;
}
.landing .slip-behind {
  position: absolute;
  inset: 6% 4%;
}

.landing .slip {
  position: relative;
  background: var(--paper, var(--bg));
  padding: 1.8rem clamp(1.1rem, 4vw, 2.2rem) 1.4rem;
}

/* Stationery props are opt-in decoration: hidden until a skin paints them. */
.landing .pushpin, .landing .paperclip { display: none; }

.landing .slip-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  border-bottom: 2px solid var(--ink);
  padding-bottom: .5rem;
  margin-bottom: 1.1rem;
}
.landing .slip-head h2 {
  font-family: var(--font-display);
  font-size: clamp(1.05rem, 3.5vw, 1.45rem);
  margin: 0;
}
.landing .slip-no { font-family: var(--font-label); font-size: .66rem; letter-spacing: .1em; }

.landing .slip-row.three {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 0 1.2rem;
}
.landing .field {
  display: flex;
  align-items: baseline;
  gap: .55rem;
  padding-bottom: .1rem;
  margin: 0 0 .85rem;
}
.landing .field .val {
  font-family: var(--font-hand, var(--font-body));
  line-height: 1.1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.landing .slip-checks {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: .5rem 1.3rem;
  padding: .35rem 0 .75rem;
  margin: 0 0 .8rem;
}
.landing .slip-checks li { font-size: .68rem; }
.landing .slip-checks li::before { content: "☐ "; font-size: .85rem; }
.landing .slip-checks li.checked::before { content: "☑ "; }
.landing .slip-checks li.urgent {
  color: var(--error);
  border: 1.5px solid var(--error);
  padding: .1rem .4rem;
  font-weight: 500;
}

.landing .slip-message { padding-top: .3rem; }
.landing .slip-message .val {
  font-family: var(--font-hand, var(--font-body));
  margin: .2rem 0 0;
}
.landing .slip-message .signoff { text-align: right; }
.landing .slip-foot {
  font-size: .6rem;
  margin-top: 1.1rem;
}

/* ---- content bands ---- */

.landing .band { padding: clamp(2.8rem, 7vw, 4.5rem) 1.25rem; }
.landing .band > * { max-width: 58rem; margin-left: auto; margin-right: auto; }

.landing .steps {
  list-style: none;
  counter-reset: step;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr));
  gap: 1.6rem;
  padding: 0;
  margin: 0 auto 2.5rem;
}
.landing .steps li { counter-increment: step; }
.landing .steps h3 { font-family: var(--font-display); font-size: 1.05rem; margin: 0 0 .4rem; }
.landing .steps h3::before {
  content: counter(step, decimal-leading-zero);
  font-family: var(--font-label);
  font-size: .7rem;
  letter-spacing: .1em;
  color: var(--accent, currentColor);
  display: block;
  margin-bottom: .3rem;
}
.landing .steps p { font-family: var(--font-body); font-size: .92rem; margin: 0; }

.landing .inbox-panel {
  padding: 1.3rem clamp(1rem, 3vw, 1.8rem) 1.6rem;
  max-width: 40rem;
}
.landing .inbox-title {
  font-size: .7rem;
  margin: 0 0 1rem;
}
.landing .inbox-slips { list-style: none; padding: 0; margin: 0; }
.landing .mini-slip {
  display: flex;
  align-items: baseline;
  gap: 1rem;
  background: var(--paper, var(--bg));
  padding: .7rem 1rem;
  max-width: 34rem;
}
.landing .mini-slip strong {
  font-size: .72rem;
  flex-shrink: 0;
}
.landing .mini-slip .stamp {
  font-family: var(--font-label);
  font-size: .62rem;
  letter-spacing: .08em;
  margin-left: auto;
  flex-shrink: 0;
}

.landing .plan-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr));
  gap: 1.4rem;
  max-width: 52rem;
}
.landing .plan-card {
  padding: 1.4rem 1.3rem 1.5rem;
  text-align: center;
}
.landing .plan-card h3 {
  font-size: .78rem;
  margin: 0 0 .8rem;
}
.landing .price { font-family: var(--font-display); font-size: 2.3rem; margin: 0 0 .8rem; }
.landing .price span { font-family: var(--font-label); font-size: .72rem; letter-spacing: .08em; }
.landing .plan-line { font-family: var(--font-body); font-size: .88rem; margin: .15rem 0; }
.landing .plan-note {
  font-family: var(--font-body);
  font-size: .9rem;
  text-align: center;
  margin: 1.6rem auto 0;
}

.landing .start-copy {
  font-family: var(--font-body);
  text-align: center;
  max-width: 32rem;
  margin: 0 auto 1.6rem;
}

/* ---- footer ---- */

.landing .site-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  padding: 1.1rem clamp(1rem, 4vw, 2.5rem);
}
.landing .site-foot a {
  font-family: var(--font-label);
  font-size: .74rem;
  letter-spacing: .1em;
}

@media (max-width: 640px) {
  .landing .slip-row.three { grid-template-columns: 1fr 1fr; }
  .landing .kicker::before, .landing .kicker::after,
  .landing .section-title::before, .landing .section-title::after { width: 1.1rem; margin: 0 .5rem; }
  .landing .mini-slip { flex-wrap: wrap; gap: .3rem .8rem; }
}
