/* Homepage only (pages/templates/pages/home/): rules shared by every version; each version adds its own
   static/home/v/<slug>.css. Formal stationery look: white paper, ink, hairline rules, a serif for display type
   (the platform's own unless a version loads a vendored face). Colours follow --lv-accent, so the lab palettes
   recolour everything live. */

.home {
  --lv-serif: ui-serif, "New York", "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif;
  --wa-shadow-s: none;
  position: relative;
  isolation: isolate;
  overflow: clip;
}

/* ---------- type */
.home .display {
  font-family: var(--lv-serif);
  font-weight: 600;
  font-size: clamp(2.6rem, 6.2vw, 4.6rem);
  line-height: 1.04;
  letter-spacing: -0.015em;
  margin: 0;
  color: var(--lv-ink);
  text-wrap: balance;
}
.home .section-title, .home h3 { font-family: var(--lv-serif); font-weight: 600; color: var(--lv-ink); }
.home .section-title { font-size: clamp(1.7rem, 3vw, 2.3rem); margin: 0 0 var(--wa-space-xl); letter-spacing: -0.01em; }
.home h3 { font-size: var(--wa-font-size-l); margin: 0 0 var(--wa-space-xs); }
.home p { color: var(--lv-graphite); }
.home .lead { font-size: var(--wa-font-size-l); line-height: 1.6; color: var(--lv-graphite); max-width: 38rem; }
.home .muted { color: var(--lv-graphite); }

/* ---------- hero (default: letterhead, centred) */
.hero-formal { position: relative; border-bottom: 1px solid var(--lv-rule); }
.hero-inner { display: flex; flex-direction: column; align-items: center; text-align: center; gap: var(--wa-space-l);
  padding-block: clamp(4rem, 11vw, 8rem) clamp(3rem, 8vw, 6rem); }
.hero-inner .lead { margin-inline: auto; }
.hero-note { font-size: var(--wa-font-size-s); margin: 0; }

.hero-art { position: absolute; inset: 0; z-index: 0; overflow: hidden; pointer-events: none; }
.hero-art svg { width: 100%; height: 100%; display: block; }
/* left-aligned hero: add hero-start next to the hero's own class */
.hero-start .hero-inner, .hero-inner.hero-start { align-items: flex-start; text-align: left; }
.hero-start .hero-actions { justify-content: flex-start; }
.hero-start .lead { margin-inline: 0; }

/* ---------- sections */
.home-section { padding-block: clamp(3rem, 7vw, 5.5rem); }
.home-section + .home-section { border-top: 1px solid var(--lv-rule); }
.section-head { text-align: center; }
.section-head .section-title { margin-bottom: var(--wa-space-2xs); }
.home-section .section-title { text-align: center; }
.home-cta .section-title { margin: 0; }

/* ruled columns: a hairline in ink above each item instead of boxes */
.ruled { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--wa-space-2xl);
  grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr)); }
.ruled > li { border-top: 2px solid var(--lv-ink); padding-top: var(--wa-space-m); }
.ruled > li > wa-icon { font-size: var(--wa-font-size-xl); color: var(--lv-accent); margin-bottom: var(--wa-space-s); }
.ruled p { margin: 0; }
.ruled-links a { display: block; color: inherit; text-decoration: none; }
.ruled-links a:hover h3 { text-decoration: underline; text-underline-offset: 0.2em; }

/* steps: a real sequence, so numerals */
.steps { list-style: none; counter-reset: step; margin: 0; padding: 0; display: grid; gap: var(--wa-space-2xl);
  grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr)); }
.steps > li { counter-increment: step; }
.steps > li::before { content: counter(step); display: block; font-family: var(--lv-serif); font-size: 3rem; line-height: 1;
  color: var(--lv-accent); margin-bottom: var(--wa-space-s); }
.steps p { margin: 0; }

/* plans: comparable items keep their frames; formal, flat */
.home .plans wa-card { --border-color: var(--lv-rule); background: var(--lv-paper); }
.home .plans .price { font-family: var(--lv-serif); }

/* faq */
.home details { background: var(--lv-paper); }

/* ---------- split hero with media; .mock = an illustrative app window */
.hero-grid { display: grid; gap: var(--wa-space-3xl); align-items: center; grid-template-columns: 1.05fr 1fr;
  padding-block: clamp(3.5rem, 9vw, 6.5rem); }
@media (max-width: 56rem) { .hero-grid { grid-template-columns: 1fr; } }
.hero-split .display { font-size: clamp(2.4rem, 5vw, 3.8rem); }
.mock { margin: 0; background: var(--lv-paper); border: 1px solid var(--lv-rule); border-radius: 10px;
  box-shadow: 0 1px 0 var(--lv-rule), 0 24px 48px -28px color-mix(in srgb, var(--lv-ink) 40%, transparent); }
.mock figcaption { padding: var(--wa-space-xs) var(--wa-space-m); font-size: var(--wa-font-size-xs); color: var(--lv-graphite);
  border-top: 1px solid var(--lv-rule); }
.mock-bar { display: flex; gap: 6px; align-items: center; padding: var(--wa-space-s) var(--wa-space-m); border-bottom: 1px solid var(--lv-rule); }
.mock-bar span { width: 9px; height: 9px; border-radius: 50%; background: var(--lv-rule); }
.mock-bar b { margin-left: var(--wa-space-s); font-size: var(--wa-font-size-s); }
.mock-head { padding: var(--wa-space-m); border-bottom: 1px solid var(--lv-rule); font-size: var(--wa-font-size-s); line-height: 1.6; }
.mock .bar { display: block; height: 0.55rem; margin: var(--wa-space-s) var(--wa-space-m); border-radius: 4px; background: #eceae5; }
.mock .bar.short { width: 55%; }

/* ---------- Lab pane (staff / ?lab=1 only) */
.lab { position: fixed; left: var(--wa-space-m); bottom: var(--wa-space-m); z-index: 50; font-size: var(--wa-font-size-s); }
.lab details[open] { width: min(22rem, calc(100vw - 2rem)); }
.lab a[aria-current="true"] { font-weight: 700; }
.lab details { background: var(--lv-paper); border: 1px solid var(--lv-rule); border-radius: 10px; margin: 0;
  box-shadow: 0 18px 40px -20px color-mix(in srgb, var(--lv-ink) 50%, transparent); }
.lab summary { font-weight: 600; gap: var(--wa-space-s); }
.lab-body { max-height: min(70vh, 34rem); overflow: auto; padding: 0 var(--wa-space-m) var(--wa-space-m); }
.lab-versions { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.lab-versions a { display: block; padding: var(--wa-space-xs) var(--wa-space-s); border-radius: 6px; color: var(--lv-ink); text-decoration: none; }
.lab-versions a:hover { background: #f4f3f0; }
.lab-versions a[aria-current] { background: color-mix(in oklab, var(--lv-accent) 10%, white); box-shadow: inset 3px 0 0 var(--lv-accent); }
.lab-round { font-size: var(--wa-font-size-xs); color: var(--lv-graphite); margin-top: var(--wa-space-xs); }
.lab-versions small { display: block; color: var(--lv-graphite); line-height: 1.35; }
.lab-swatches { display: flex; flex-wrap: wrap; gap: 4px; }
.swatch { gap: 6px; }
.swatch[aria-pressed="true"] { outline: 2px solid var(--lv-ink); outline-offset: 1px; }
.swatch .dot { width: 0.9rem; height: 0.9rem; border-radius: 50%; display: inline-block; }
.swatch-ink .dot { background: #1b2430; }
.swatch-navy .dot { background: #22385c; }
.swatch-lapis .dot { background: #24439a; }
.swatch-bordeaux .dot { background: #6e1f2c; }
.swatch-rose .dot { background: #8e3a55; }
.swatch-forest .dot { background: #1f4a3a; }
.swatch-bronze .dot { background: #6f5326; }
.swatch-cognac .dot { background: #6b4329; }
.swatch-plum .dot { background: #4a2d5c; }
.swatch-noir .dot { background: #000000; }
.swatch-signal .dot { background: #c4161c; }
.lab input[type="range"] { width: 100%; accent-color: var(--lv-accent); }


/* =================================================================== Arts and classics (second round)
   EB Garamond (vendored, OFL) for the words; buttons keep the interface face. Fixed pigments next to the palette:
   gold leaf, vermilion, jewel glass. */
.home-arts {
  --lv-serif: "EB Garamond", ui-serif, "Iowan Old Style", Palatino, Georgia, serif;
  --lv-vermilion: #b23a1e;
  --lv-leaf: #b8902f;
  --lv-stone: #bdb5a6;
  font-family: var(--lv-serif);
}
.home-arts :is(p, li, summary, td, th) { font-size: 1.125rem; line-height: 1.6; }
.home-arts .display { font-weight: 500; letter-spacing: -0.005em; font-size: clamp(2.8rem, 6.6vw, 5rem); }
.home-arts :is(.section-title, h3) { font-weight: 500; }
.home-arts h3 { font-size: 1.45rem; }
.home-arts .lead { font-size: 1.3rem; line-height: 1.55; }
.home-arts .hero-note { font-size: 1rem; }
.home-arts .wa-button { font-family: var(--wa-font-family-body); }
.home .title-credit { margin: calc(-1 * var(--wa-space-s)) 0 0; font-style: italic; color: var(--lv-graphite); }
.home .title-art { line-height: 0; width: 100%; }
.home .title-art svg { display: block; width: 100%; height: auto; }

/* ---------- claim an address (an input with the domain attached) */
.claim label { font-size: var(--wa-font-size-s); color: var(--lv-graphite); }
.claim-row { display: flex; align-items: stretch; max-width: 30rem; }
.claim-row input { flex: 1; min-width: 0; border-top-right-radius: 0; border-bottom-right-radius: 0; font-size: var(--wa-font-size-l); }
.claim-domain { display: flex; align-items: center; padding-inline: var(--wa-space-m); border: 1px solid var(--wa-form-control-border-color, var(--lv-rule));
  border-left: 0; border-radius: 0 var(--wa-border-radius-m) var(--wa-border-radius-m) 0; background: #f7f7f5; color: var(--lv-graphite); }

/* ---------- plans as one table (datasheet, swiss) */
.table-scroll { overflow-x: auto; }
.plans-table { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.plans-table :is(th, td) { text-align: left; vertical-align: top; padding: 0.6rem 0.75rem 0.6rem 0; border-bottom: 1px solid var(--lv-rule); }
.plans-table thead th { color: var(--lv-ink); border-bottom: 2px solid var(--lv-ink); }
.plans-table tbody th { font-weight: 600; color: var(--lv-ink); }
.plans-table td { color: var(--lv-graphite); }
.plans-table-cta { display: flex; flex-wrap: wrap; gap: var(--wa-space-m); align-items: center; margin: var(--wa-space-l) 0 0; }

/* ---------- luxury versions: square, spaced capitals on buttons (Jost, vendored) */
.home-lux :is(.wa-button, button.wa-brand) { border-radius: 0; font-family: "Jost", var(--wa-font-family-body); text-transform: uppercase;
  letter-spacing: 0.16em; font-weight: 500; font-size: 0.85rem; }
