/* ============================================================
   home.css — HOMEPAGE ONLY (linked from index.html, after styles.css)
   Homepage-specific components of the D2c "wet paint, white canvas"
   system: campaign hero with the paint-stroke answer band, paper
   demo, big how-to ledger, trigger tiles, feature-panel accents,
   pricing bands, and the "Your outbox, painted." footer CTA.
   Everything shared with inner pages lives in styles.css.
   ============================================================ */

/* ---------- hero ---------- */
.hero { padding: 4.5rem 0 5rem; overflow: hidden; background: var(--paper); }
h1.display { font-size: clamp(2.8rem, 6.4vw, 5.4rem); max-width: 14em; margin: 0; }
.answer { margin-top: 2.25rem; position: relative; max-width: 46em; }
/* The painted answer band: fluid font-size lives on .stroke so the paddings,
   band, and roller all scale in em with the text at every viewport width.
   The band SVG (viewBox 560×96, drawn edges y8–y88) stretches over the box;
   the roller glyph is sized so its 14-unit head bar equals the band's drawn
   height (1.5em) and sits centered on the crisp trailing end — half on the
   paint, half leading onto the white. The whole span carries the −1.2° tilt. */
.stroke {
  font-size: clamp(1.7rem, 3.1vw, 2.5rem);
  position: relative; display: inline-block;
  padding: 0.09em 0.72em 0.11em 0.19em; margin-left: -0.19em;
  transform: rotate(-1.2deg);
}
.stroke svg.band-stroke {
  position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0;
}
.stroke .stroke-text {
  position: relative; z-index: 1; color: var(--paper);
  font-size: 1em; font-weight: 800; letter-spacing: -0.01em;
}
.stroke .roller {
  position: absolute; z-index: 2;
  width: 2.571em; height: 2.571em;
  top: -0.493em; right: -1.87em;
}
.answer .rest {
  margin: 1.1rem 0 0; font-size: 1.28rem; font-weight: 500; line-height: 1.55;
  max-width: 42em; color: var(--ink);
}
.hero .cta-row { margin-top: 2.5rem; }
.btn-big {
  display: inline-block; background: var(--blue); color: var(--paper);
  font-weight: 900; font-size: 1.15rem; text-transform: uppercase; letter-spacing: 0.01em;
  text-decoration: none; padding: 1rem 2.2rem; border-radius: 999px;
  box-shadow: 7px 7px 0 var(--ink);
  transition: transform .15s ease, box-shadow .15s ease;
}
.btn-big:hover { transform: translate(-2px,-2px); box-shadow: 10px 10px 0 var(--ink); }
.free-line { font-size: 0.98rem; font-weight: 600; color: var(--muted); max-width: 24em; line-height: 1.5; margin: 0; }

/* the paper demo fragment */
.paper-demo {
  margin-top: 4rem; background: var(--paper); border: 3px solid var(--ink);
  border-radius: 10px; box-shadow: 12px 12px 0 var(--ink);
  padding: 1.6rem 2rem; transform: rotate(-1.2deg);
  display: flex; align-items: center; gap: 1.25rem 2rem; flex-wrap: wrap;
  font-size: 1.15rem; color: var(--ink);
}
.paper-demo .painted {
  background: var(--y); color: var(--paint-fg); font-weight: 800;
  text-decoration: underline; text-decoration-thickness: 2.5px; text-underline-offset: 2px;
  padding: 0.1em 0.4em; border-radius: 3px;
}
.paper-demo .plain { color: #6b6b66; }
.paper-demo svg { flex: none; }
.paper-demo .caption {
  flex-basis: 100%; font-size: 0.85rem; font-weight: 700; letter-spacing: 0.02em;
  color: var(--muted); text-transform: uppercase;
}

/* ---------- how-to rows (campaign-weight ledger) ---------- */
.steps { list-style: none; margin: 0; padding: 0; counter-reset: step; }
.steps li {
  display: grid; grid-template-columns: 7rem minmax(0,1fr); gap: 1.5rem 2rem;
  align-items: start; margin: 0; padding: 1.75rem 0; border-top: 4px solid var(--ink);
  counter-increment: step;
}
.steps li:last-child { border-bottom: 4px solid var(--ink); }
.steps .num::before {
  content: counter(step);
  font-size: 3.4rem; font-weight: 900; line-height: 1; letter-spacing: -0.02em;
}
.steps h3 { font-size: 1.5rem; font-weight: 800; letter-spacing: -0.01em; margin: 0; }
.steps p { margin: 0.4rem 0 0; color: var(--muted); font-weight: 500; max-width: 52em; }
.steps p a { color: var(--ink); font-weight: 600; }

/* ---------- trigger tiles, 2×2 ---------- */
.section-intro {
  margin: -1.5rem 0 2.5rem; color: var(--muted); font-weight: 500; max-width: 46em;
}
.triggers-grid {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.75rem;
  margin-top: 0;
}
/* product-true fragments inside the trigger tiles */
.frag {
  margin-top: 1.4rem; background: var(--code-bg); border-radius: 8px;
  padding: 1rem 1.15rem; min-height: 84px;
  display: flex; align-items: center; gap: 0.6rem; flex-wrap: wrap;
}
/* 1 · formatting-toolbar strip, product-true: the format_paint brush sits
   FIRST (armed = Gmail blue on a soft blue wash — the live button's armed
   visual), then its saved-styles chevron, a divider, then Gmail's own
   controls. The brush glyph is the canonical Material format_paint path,
   the same mark as the logo and the real injected button. */
.frag .tool {
  width: 30px; height: 30px; display: grid; place-items: center;
  border-radius: 6px; color: #5f6368;
}
.frag .tool.brush { background: var(--blue-soft); color: var(--blue-bright); }
.frag .tool.chev { width: 16px; margin-left: -0.5rem; }
.frag .vsep { width: 0; height: 24px; border-left: 1px solid #d5d9df; margin: 0 0.1rem; }
.frag .fontname { color: #5f6368; font-size: 0.85rem; font-weight: 600; padding: 0 0.15rem; }
.frag .tool.tl { width: 24px; font-size: 0.95rem; font-weight: 700; }
.frag .tb { font-weight: 900; }
.frag .ti { font-style: italic; }
.frag .tu { text-decoration: underline; text-underline-offset: 2px; }
/* 2 · context menu */
.menu {
  background: #fff; border: 2px solid #d5d9df; border-radius: 8px;
  box-shadow: 0 4px 14px rgba(26,28,31,.12); overflow: hidden;
  font-size: 0.88rem; font-weight: 600; min-width: 200px;
}
.menu .mi { display: flex; justify-content: space-between; gap: 1.5rem; padding: 0.45rem 0.9rem; }
.menu .mi + .mi { border-top: 1px solid #e8eaee; }
.menu .mi.hover { background: var(--blue-soft); color: var(--blue-ink); }
.menu .mi .k { color: #9aa2ad; font-weight: 500; font-size: 0.8rem; }
.cursor-arrow { flex: none; }
/* 3 · kbd chips */
kbd {
  font-family: ui-monospace, Consolas, "Cascadia Mono", monospace;
  background: #fff; border: 2px solid var(--ink); border-bottom-width: 4px;
  border-radius: 6px; padding: 0.1rem 0.55rem; font-size: 0.92rem; font-weight: 700;
  color: var(--ink);
}
.kbd-line { display: flex; align-items: center; gap: 0.45rem; font-size: 0.9rem; font-weight: 600; color: var(--muted); }
.kbd-line .does { margin-left: 0.35rem; }
.frag.keys { flex-direction: column; align-items: flex-start; justify-content: center; gap: 0.7rem; }
/* 4 · popup */
.popup {
  background: #fff; border: 2px solid #d5d9df; border-radius: 8px;
  box-shadow: 0 4px 14px rgba(26,28,31,.12); padding: 0.7rem 0.9rem; min-width: 220px;
}
.popup .head {
  display: flex; align-items: center; gap: 0.45rem;
  font-size: 0.74rem; font-weight: 800; letter-spacing: 0.01em; text-transform: uppercase;
  color: var(--ink); margin-bottom: 0.6rem;
}
.popup .head svg { flex: none; }
.popup .head .cog { margin-left: auto; color: #9aa2ad; }
.popup .row { display: flex; gap: 0.6rem; }
/* Popup-true buttons (D4): squared constant radius, ink border, hard ink
   shadow. Copy Format = the wet paint (blue); Apply Format = the canvas. */
.popup .b {
  flex: 1; text-align: center;
  font-size: 0.78rem; font-weight: 700; padding: 0.42rem 0.5rem;
  border: 2px solid var(--ink); border-radius: 8px;
  box-shadow: 2px 2px 0 var(--ink);
}
.popup .b.copy { background: var(--blue); color: #fff; }
.popup .b.apply { background: #fff; color: var(--ink); }

/* ---------- feature-panel accents (WHAT IT PAINTS) ---------- */
.panels { margin-top: 0; }
ul.ticks li { font-size: 0.98rem; }
.chiprow { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 1.2rem; }
/* Popup-true chips: ON = ink fill + ✓ tick (the product's "never color
   alone" grammar); opt-in OFF keeps the dashed not-yet-on outline. */
.chip {
  border: 2px solid var(--ink); border-radius: 999px; padding: 0.3rem 0.85rem;
  font-size: 0.85rem; font-weight: 700;
  background: var(--ink); color: var(--paper);
}
.chip .tick { font-weight: 900; font-size: 0.72em; margin-right: 0.4em; }
.chip.off {
  background: transparent; border-style: dashed; color: var(--muted);
  border-color: #9aa2ad; font-weight: 600;
}
.pro-tag {
  font-size: 0.72rem; font-weight: 900; letter-spacing: 0.08em;
  background: var(--y); color: var(--ink); border-radius: 999px; padding: 0.2rem 0.7rem;
}
/* Saved-style rows, popup-true: bordered self-rendering rows where the NAME
   chip is a white micro-canvas wearing its own saved format (paper stays
   paper, exactly like the product's dark theme), with the popup's ⧉ export
   and ✕ delete affordances at the right. */
.preset-rows { display: flex; flex-direction: column; gap: 0.6rem; margin-top: 1.1rem; }
.prow {
  display: flex; align-items: center; justify-content: space-between; gap: 0.75rem;
  border: 2px solid #3c4046; border-radius: 10px;
  padding: 0.45rem 0.7rem 0.45rem 0.5rem;
}
.prow .pname {
  background: #fff; color: var(--ink); border: 1px solid #c9cdd3; border-radius: 6px;
  padding: 0.06em 0.5em 0.1em; font-size: 0.98rem; line-height: 1.35;
  min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.prow .name-client { color: var(--blue-bright); font-weight: 700; font-family: Georgia, serif; }
.prow .name-internal { color: #5f6368; font-style: italic; }
.prow .name-flag { color: var(--paint-fg); font-weight: 800; background: #feefc3; }
.prow .picons { color: #9aa2ad; font-size: 0.82rem; white-space: nowrap; }

/* ---------- pricing bands ---------- */
.band-plan {
  border: 3px solid var(--ink); border-radius: 10px; margin-top: 1.4rem;
  display: grid; grid-template-columns: minmax(8rem, 0.7fr) minmax(0, 0.9fr) minmax(0, 1.6fr);
  gap: 1rem 2.5rem; align-items: center; padding: 1.7rem 2.2rem;
}
.band-plan.free { background: var(--paper); }
.band-plan.pro {
  background: var(--ink); color: var(--paper);
  box-shadow: 10px 10px 0 var(--blue);
}
.band-plan.teams { background: var(--blue-soft); }
.band-plan .name {
  font-size: 1.5rem; font-weight: 900; text-transform: uppercase; letter-spacing: 0; margin: 0;
}
.band-plan.pro .name { color: #8ab4f8; }
.band-plan .price { margin: 0; font-size: 2.1rem; font-weight: 900; letter-spacing: -0.02em; line-height: 1.1; }
.band-plan .price .per { font-size: 0.95rem; font-weight: 600; letter-spacing: 0; color: var(--muted); }
.band-plan.pro .price .per { color: #b9bfc9; }
.band-plan .price .alt { display: block; font-size: 0.92rem; font-weight: 600; letter-spacing: 0; margin-top: 0.15rem; color: var(--muted); }
.band-plan.pro .price .alt { color: #b9bfc9; }
.band-plan .feats { margin: 0; font-size: 0.98rem; font-weight: 600; line-height: 1.65; }
.band-plan.pro .feats { color: #d9dce2; }
.pricing-foot { margin-top: 2rem; display: flex; gap: 0.75rem 2rem; flex-wrap: wrap; align-items: baseline; }
.pricing-foot a { font-weight: 800; color: var(--ink); }
.pricing-foot .promo { font-size: 0.95rem; font-weight: 600; color: var(--muted); }

/* ---------- why-pro strip ---------- */
.why { padding: 1rem 0 4.5rem; background: var(--paper); }
.why p { margin: 0; max-width: 62ch; font-size: 1.1rem; font-weight: 500; color: var(--ink); }
.why h2 { font-size: 1.4rem; font-weight: 900; text-transform: uppercase; margin: 0 0 1rem; letter-spacing: 0; }

/* ---------- footer campaign CTA (homepage-only closer) ---------- */
/* The ink CTA band is a full section in its own right, so it closes the page
   flush against the last content block — the colour change is the divider, and
   the outer margin-top would only strand a white gap above it. */
.site-footer { margin-top: 0; }
/* Vertical padding only; horizontal inset stays with .wrap so the CTA aligns to
   the page grid and never runs flush to the viewport edge on phones. */
.footer-cta { padding-top: 4.5rem; padding-bottom: 3.5rem; text-align: left; }
.footer-cta h2 { color: var(--paper); font-size: clamp(2.2rem, 4.6vw, 3.6rem); max-width: 14em; margin: 0; }
.footer-cta .cta-row { margin-top: 2.25rem; }
.footer-inner { border-top: 1px solid rgba(217, 220, 226, 0.3); }
.btn-paper {
  display: inline-block; background: var(--paper); color: var(--ink);
  font-weight: 900; font-size: 1.15rem; text-transform: uppercase;
  text-decoration: none; padding: 1rem 2.2rem; border-radius: 999px;
  transition: transform .15s ease;
}
.btn-paper:hover { transform: translate(-2px,-2px); }
.footer-cta .free-line { color: #b9bfc9; }

/* ---------- responsive (homepage extras) ---------- */
@media (max-width: 720px) {
  .hero { padding: 3rem 0; }
  /* poster caps must never out-measure a 360px screen */
  h1.display { font-size: clamp(2.1rem, 9.5vw, 2.8rem); }
  .steps li { grid-template-columns: 3.5rem 1fr; gap: 1rem 1.25rem; }
  .steps .num::before { font-size: 2.2rem; }
  .triggers-grid { grid-template-columns: 1fr; }
  .band-plan { grid-template-columns: 1fr; padding: 1.4rem 1.5rem; }
  .paper-demo { transform: none; padding: 1.25rem 1.4rem; box-shadow: 8px 8px 0 var(--ink); }
  .footer-cta { padding-top: 3.5rem; padding-bottom: 2.75rem; }
}
@media (max-width: 900px) and (min-width: 721px) {
  .band-plan { grid-template-columns: 1fr 1fr; }
  .band-plan .feats { grid-column: 1 / -1; }
}
