/* Static landing palette and layout. Widget and shared public pages stay isolated. */
.home {
  --ink: #233a2e;
  --muted: #5b665e;
  --accent: #315944;
  --accent-hover: #244632;
  --canvas: #faf8f2;
  --surface: #ffffff;
  --soft: #f0f2e9;
  --product-surface: #e8ede1;
  --line: #d9ded3;
  --ring: #315944;
  --on-accent: #ffffff;
  --display-font: Georgia, 'Times New Roman', serif;
  color: var(--ink);
  background: var(--canvas);
  font-family: system-ui, -apple-system, 'Segoe UI', sans-serif;
  font-size: 16px;
  line-height: 1.65;
  overflow-wrap: break-word;
}
.home [hidden] { display: none !important; }
.home .sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.home .wrap.wide { max-width: 1248px; padding-inline: 24px; }
.home p, .home li { max-width: none; }
.home h1, .home h2 { font-family: var(--display-font); font-weight: 400; }
.home h1 { font-size: clamp(42px, 5.5vw, 76px); line-height: 1.06; letter-spacing: -.055em; }
.home h2 { font-size: clamp(34px, 3.5vw, 48px); line-height: 1.12; letter-spacing: -.035em; margin: 0 0 36px; }
.home h3 { font-size: 23px; line-height: 1.35; letter-spacing: -.025em; }
.home section { padding-block: 96px; scroll-margin-top: 28px; }
.home .band { background: var(--soft); }
.home a { color: var(--accent); text-underline-offset: 4px; }
.home a:focus-visible, .home button:focus-visible, .home .table-scroll:focus-visible { outline: 3px solid var(--ring); outline-offset: 5px; }

/* The familiar navigation wraps instead of adding a custom mobile menu. */
.home .site-header { background: var(--canvas); border-bottom: 1px solid var(--line); }
.home .site-header .wrap { min-height: 88px; padding-block: 16px; gap: 12px 24px; }
.home .brand { font-size: 23px; letter-spacing: -.04em; display: inline-flex; align-items: center; min-height: 44px; }
.home .site-header nav { gap: 4px 20px; }
.home .site-header nav a { display: inline-flex; align-items: center; justify-content: center; min-width: 44px; min-height: 44px; padding-block: 10px; font-size: 14px; font-weight: 500; }
.home .site-header nav a:hover { text-decoration: underline; text-underline-offset: 5px; }
.home .button {
  display: inline-flex; justify-content: center; align-items: center;
  min-height: 48px; padding: 12px 24px;
  border: 1px solid var(--accent); border-radius: 6px;
  background: var(--accent); color: var(--on-accent);
  font: inherit; font-size: 15px; font-weight: 600; line-height: 1.4;
  text-align: center; text-decoration: none; cursor: pointer;
}
.home .button:hover { background: var(--accent-hover); border-color: var(--accent-hover); }
.home .button.secondary { background: transparent; color: var(--accent); }
.home .button.secondary:hover { background: var(--soft); }
.home .header-cta { min-height: 44px; padding: 10px 18px; font-size: 14px; }

/* Zip sits behind the headline at three times the previous artwork size. */
.home .hero { padding-block: 72px 56px; overflow: clip; }
.home .hero-grid { display: block; }
.home .hero-copy { max-width: 1000px; margin-inline: auto; text-align: center; }
.home .hero-title-wrap { position: relative; isolation: isolate; }
.home .hero-copy > :not(.hero-title-wrap) { position: relative; z-index: 1; }
.home .hero-title-wrap h1 { position: relative; z-index: 1; }
.home .eyebrow { margin: 0 0 22px; color: var(--ink); font-size: 12px; font-weight: 650; text-transform: uppercase; letter-spacing: .13em; }
.home .hero h1 { margin: 0 auto 26px; max-width: 1000px; }
.home .hero h1 span { display: block; margin-bottom: 8px; color: var(--accent); font-size: 1.22em; font-style: italic; line-height: 1.02; }
/* Marker-style highlight for "get you sales": square corners, pale green fill, dark type (about 10:1), hard offset shadow. Wraps cleanly across lines. */
.home .hero h1 mark.sales-mark { --mark-fill: #d3ebbf; --mark-shadow: var(--accent); padding: .02em .16em; border-radius: 0; background: var(--mark-fill); color: var(--ink); box-shadow: .06em .06em 0 var(--mark-shadow); -webkit-box-decoration-break: clone; box-decoration-break: clone; }
/* Hero shuffle (landing.js builds it): the "get you sales." mark stays the one real, readable phrase; decorative cards stack behind it, each in its own pale fill, and the front card flies off every 800ms. Motion lives here, never in the mark rule above. */
.home .hero h1 .hero-shuffle { display: inline-grid; max-width: 100%; vertical-align: baseline; margin: 0; font-size: 1em; font-style: normal; line-height: inherit; }
.home .hero h1 .hero-shuffle > .card { grid-area: 1 / 1; display: flex; align-items: center; justify-content: center; margin: 0; font-size: 1em; font-style: normal; line-height: inherit; padding: .02em .16em; border-radius: 0; background: var(--mark-fill, #d3ebbf); color: var(--ink); box-shadow: .06em .06em 0 var(--accent); white-space: normal; text-align: center; transition: transform 400ms cubic-bezier(.4, .1, .2, 1), opacity 400ms ease, color 400ms ease; will-change: transform, opacity; }
.home .hero h1 .hero-shuffle > .card[data-i="1"] { background: #cfe4ee; }
.home .hero h1 .hero-shuffle > .card[data-i="2"] { background: #f4e3a8; }
.home .hero h1 .hero-shuffle > .card[data-i="3"] { background: #f2d0d6; }
.home .hero h1 .hero-shuffle > .card[data-i="4"] { background: #dcd3ee; }
.home .hero h1 .hero-shuffle > .card[data-i]:not(.sales-mark) { user-select: none; }
.home .hero h1 .hero-shuffle > .card[data-text]::before { content: attr(data-text); }
.home .hero h1 .hero-shuffle > .card[data-pos="0"] { z-index: 3; transform: none; opacity: 1; }
.home .hero h1 .hero-shuffle > .card[data-pos="1"] { z-index: 2; transform: translate(.09em, .09em); opacity: 1; color: transparent; }
.home .hero h1 .hero-shuffle > .card[data-pos="hidden"] { z-index: 1; transform: translate(.14em, .14em); opacity: 0; color: transparent; }
.home .hero h1 .hero-shuffle > .card.leaving { z-index: 4; transform: translate(.5em, -.3em); opacity: 0; color: var(--ink); }
.home .hero h1 .hero-shuffle > .card.snap { transition: none; }
/* Keyboard-only pause control (WCAG 2.2.2): invisible until focused, so the hero looks exactly as designed. */
.home .shuffle-toggle:focus { position: static; width: auto; height: auto; margin: 8px auto 0; padding: 6px 14px; overflow: visible; clip: auto; white-space: normal; font: inherit; font-size: 14px; color: var(--accent); background: transparent; border: 1px solid var(--accent); border-radius: 6px; cursor: pointer; display: block; }
.home .hero-copy .lead { background: var(--canvas); max-width: 750px; margin: 0 auto; color: var(--muted); font-size: 18px; line-height: 1.7; }
.home .hero-copy .offer { max-width: 750px; margin: 18px auto 0; color: var(--ink); font-size: 15px; font-weight: 600; line-height: 1.6; }
.home .actions { display: flex; justify-content: center; flex-wrap: wrap; gap: 12px; margin: 26px 0 18px; }
.home .friction { margin: 0; color: var(--muted); font-size: 13px; }

/* Context for the floating bubble, never an empty inline chat surface. */
.home .demo-card { display: block; max-width: 760px; margin: 48px auto 0; padding: 24px 28px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); text-align: center; }
.home .zip-mascot { position: absolute; z-index: -1; display: block; width: 720px; max-width: none; height: auto; inset-inline-start: -240px; top: -260px; pointer-events: none; }
.home .demo-copy { min-width: 0; }
.home .demo-head { margin: 0 0 8px; color: var(--ink); font-family: var(--display-font); font-size: 26px; line-height: 1.25; letter-spacing: -.02em; }
.home .demo-caption { margin: 0; color: var(--muted); font-size: 15px; line-height: 1.65; }
.home #demo-chat { min-width: 0; }
.home #demo-chat p, .home #demo-fallback p { margin: 12px 0 0; color: var(--muted); font-size: 14px; }

/* Three benefits sit directly under the hero. */
.home #benefits { padding-block: 24px 96px; }
.home .benefits { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px; }
.home .benefit { padding-top: 24px; border-top: 2px solid var(--accent); }
.home .benefit h3 { margin: 0 0 12px; }
.home .benefit p { margin: 0; color: var(--muted); font-size: 16px; }

/* Two-column statements: workspace and languages. */
.home .split { display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: 64px; }
.home .split h2 { margin: 0; max-width: 460px; }
.home .split p { margin: 0; max-width: 48ch; color: var(--muted); font-size: 17px; }

/* Compact three-step setup, numbered, no imagery. */
.home #how-it-works h2 { max-width: 680px; margin-bottom: 48px; }
.home .steps { counter-reset: setup; list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px; }
.home .steps li { counter-increment: setup; padding-top: 20px; border-top: 1px solid var(--line); }
.home .steps li::before { content: counter(setup, decimal-leading-zero); display: block; margin-bottom: 16px; font-size: 13px; font-weight: 650; letter-spacing: .08em; color: var(--accent); }
.home .steps h3 { margin: 0 0 12px; font-size: 24px; line-height: 1.25; }
.home .steps p { margin: 0; color: var(--muted); font-size: 16px; }

.home .note { color: var(--muted); font-size: 13px; line-height: 1.7; }
.home .table-scroll { overflow-x: auto; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); }
.home .table-scroll table { border-collapse: collapse; width: 100%; min-width: 820px; font-size: 14px; line-height: 1.6; }
.home .table-scroll th, .home .table-scroll td { padding: 24px 20px; text-align: start; vertical-align: top; border-bottom: 1px solid var(--line); }
.home .table-scroll thead th { font-size: 15px; font-weight: 650; }
.home .table-scroll tbody th { font-weight: 550; width: 17%; }
.home .table-scroll th:nth-child(2), .home .table-scroll td:nth-child(2) { background: var(--product-surface); font-weight: 600; width: 23%; }
.home .table-scroll tr:last-child > * { border-bottom: 0; }
.home #compare .note { margin-top: 20px; }
.home #compare > .wrap > p:last-child { max-width: 750px; margin-bottom: 0; }

/* Quiet language interlude, confident prices, no extra plan machinery. */
.home #pricing h2 { margin-bottom: 40px; }
.home .grid.three { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.home .grid.three .card { display: flex; flex-direction: column; padding: 32px; gap: 4px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); }
.home .grid.three .card h3 { margin: 0 0 18px; font-size: 19px; }
.home .grid.three .card .price { margin: 0; color: var(--ink); font-size: 46px; line-height: 1.2; font-weight: 550; letter-spacing: -.06em; }
.home .grid.three .card p { margin: 0; color: var(--muted); font-size: 15px; }
.home .grid.three .card p:nth-of-type(2) { margin-bottom: 22px; font-size: 13px; }
.home .grid.three .card .button { margin-top: 24px; width: 100%; }
.home #pricing > .wrap > p { margin: 24px 0 0; max-width: 94ch; font-size: 13px; color: var(--muted); }
.home #pricing > .wrap > p + p { margin-top: 12px; }
.home #pricing > .wrap > p a { display: inline-flex; align-items: center; min-width: 44px; min-height: 44px; }

/* All FAQ answers stay visible; quiet dividers replace accordion/card UI. */
.home #faq > .wrap { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 64px; align-items: start; }
.home #faq h2 { max-width: 10ch; }
.home .faq-list h3 { margin: 0 0 10px; padding-top: 24px; border-top: 1px solid var(--line); font-size: 17px; letter-spacing: -.015em; }
.home .faq-list h3:first-child { padding-top: 0; border-top: 0; }
.home .faq-list p { margin: 0 0 28px; color: var(--muted); font-size: 15px; }
.home .faq-list p:last-child { margin-bottom: 0; }
.home .cta { background: var(--accent); color: var(--on-accent); text-align: center; padding-block: 88px; }
.home .cta h2 { max-width: 750px; margin: 0 auto 32px; font-size: clamp(38px, 4vw, 56px); }
.home .button.light { background: var(--canvas); color: var(--accent); border-color: var(--canvas); }
.home .button.light:hover { background: var(--soft); border-color: var(--soft); }
.home .cta p { margin: 18px auto 0; font-size: 13px; }
.home .cta a:focus-visible { outline-color: var(--on-accent); }
.home .site-footer { margin-top: 0; padding-block: 36px; background: var(--canvas); border-top: 0; font-size: 13px; }
.home .site-footer p { margin: 0; }
.home .site-footer p:last-child { margin-top: 18px; color: var(--muted); }
.home .site-footer a { display: inline-flex; align-items: center; min-width: 44px; min-height: 44px; margin-inline-end: 5px; }

@media (max-width: 959px) {
  .home .site-header .wrap { gap: 8px 16px; }
  .home .site-header nav { order: 3; width: 100%; justify-content: center; gap: 0 22px; }
  .home .hero { padding-top: 56px; }
  .home #benefits { padding-block: 16px 72px; }
  .home .benefits { grid-template-columns: 1fr; gap: 32px; }
  .home .split { grid-template-columns: 1fr; gap: 24px; }
  .home .steps { grid-template-columns: 1fr; gap: 32px; }
  .home section { padding-block: 72px; }
  .home .grid.three { gap: 16px; }
  .home .grid.three .card { padding: 24px; }
  .home .grid.three .card .price { font-size: 37px; }
  .home #faq > .wrap { gap: 32px; }
}
@media (max-width: 639px) {
  .home .wrap.wide { padding-inline: 20px; }
  .home .site-header .wrap { padding-block: 12px; }
  .home .brand { font-size: 20px; }
  .home .header-cta { padding-inline: 12px; font-size: 12px; }
  .home .site-header nav { justify-content: flex-start; column-gap: 16px; }
  .home .site-header nav a { font-size: 12px; }
  .home .hero { padding-block: 40px 48px; }
  .home .hero h1 { font-size: clamp(40px, 10.6vw, 62px); letter-spacing: -.045em; margin-bottom: 22px; }
  .home .eyebrow { font-size: 11px; margin-bottom: 20px; letter-spacing: .1em; }
  .home .hero-copy .lead { font-size: 16px; line-height: 1.65; }
  .home .hero-copy .offer { font-size: 14px; }
  .home .hero h1 span { font-size: 1.12em; }
  .home .demo-card { margin-top: 36px; padding: 20px 18px; text-align: center; }
  .home .zip-mascot { width: 600px; inset-inline-start: -220px; top: -240px; }
  .home .demo-head { font-size: 22px; }
  .home .demo-caption { font-size: 14px; }
  .home #benefits { padding-block: 8px 56px; }
  .home .split p { font-size: 16px; }
  .home .steps p { font-size: 16px; }
  .home .actions { gap: 10px; margin-block: 24px 16px; }
  .home .actions .button { flex: 1 1 150px; padding-inline: 14px; font-size: 14px; }
  .home .friction { font-size: 12px; max-width: 29ch; margin-inline: auto; }
  .home section { padding-block: 56px; }
  .home h2 { margin-bottom: 28px; font-size: 35px; }
  .home #how-it-works h2 { margin-bottom: 40px; }
  .home .table-scroll th, .home .table-scroll td { padding: 20px 16px; }
  .home .grid.three { grid-template-columns: 1fr; gap: 20px; }
  .home .grid.three .card { padding: 28px; }
  .home .grid.three .card .price { font-size: 48px; }
  .home #faq > .wrap { grid-template-columns: 1fr; gap: 16px; }
  .home #faq h2 { max-width: none; }
  .home .faq-list h3 { font-size: 18px; }
  .home .faq-list p { font-size: 16px; }
  .home .cta { padding-block: 64px; }
  .home .site-footer { padding-block: 28px; }
}
/* Keep both hero actions above the existing fixed launcher on a 320px phone. */
@media (max-width: 359px) {
  .home .site-header nav { column-gap: 8px; }
  .home .hero { padding-top: 4px; }
  .home .eyebrow { margin-bottom: 14px; }
  .home .hero h1 { font-size: 30px; line-height: 1.08; margin-bottom: 14px; }
  .home .hero-copy .lead { font-size: 15px; line-height: 1.6; }
  .home .hero-copy .offer { margin-top: 12px; }
  .home .actions { margin-block: 16px 14px; }
  .home .actions .button { flex-basis: 110px; padding-inline: 10px; font-size: 12px; }
}
@media (prefers-reduced-motion: reduce) {
  .home { scroll-behavior: auto; }
  .home * { scroll-behavior: auto !important; }
}

/* Decorative dotted-glow hero background: adapted from Aceternity's Dotted Glow Background (see docs/ACETERNITY_BACKGROUND.md). */
.home #demo { position: relative; isolation: isolate; }
.home #demo > .wrap { position: relative; z-index: 1; }
.home .hero-glow {
  position: absolute; inset: 0; z-index: 0; overflow: hidden; pointer-events: none;
  -webkit-mask-image: radial-gradient(ellipse at 50% 42%, transparent 34%, rgba(0, 0, 0, .35) 58%, #000 100%);
  mask-image: radial-gradient(ellipse at 50% 42%, transparent 34%, rgba(0, 0, 0, .35) 58%, #000 100%);
  /* Static dotted fallback until the canvas initializes (or when scripts are blocked). */
  background-image: radial-gradient(circle at center, rgba(52, 98, 76, .64) 1.1px, transparent 1.6px);
  background-size: 26px 26px;
}
.home .hero-glow[data-ready] { background-image: none; }
.home .hero-glow canvas { display: block; width: 100%; height: 100%; pointer-events: none; }

/* Pricing intro, annual note and the Enterprise contact-sales card below the three self-serve plans. */
.home #pricing > .wrap > p.pricing-intro { margin: 0 0 28px; max-width: 70ch; color: var(--muted); font-size: 17px; }
.home #pricing > .wrap > p.annual-note { margin: 20px 0 0; color: var(--ink); font-size: 14px; font-weight: 600; }
.home .enterprise { display: flex; align-items: center; justify-content: space-between; gap: 24px; margin-top: 24px; padding: 28px 32px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); }
.home .enterprise h3 { margin: 0 0 8px; font-size: 19px; }
.home .enterprise p { margin: 0; max-width: 60ch; color: var(--muted); font-size: 15px; }
.home .enterprise .button { flex: none; }
.home .table-scroll td a { display: inline-flex; align-items: center; min-height: 44px; }
@media (max-width: 639px) {
  .home #pricing > .wrap > p.pricing-intro { font-size: 16px; }
  .home .enterprise { flex-direction: column; align-items: stretch; padding: 24px; }
  .home .enterprise .button { width: 100%; }
}

/* Published decision tree section: the interactive tree is mounted by /home/tree.js. */
.home .decision-tree-section { max-width: 1248px; display: grid; grid-template-columns: 320px minmax(0, 1fr); gap: 48px; align-items: center; }
.home #decision-tree h2 { margin: 0 0 16px; font-size: 32px; line-height: 1.15; }
.home .decision-tree-intro { margin: 0; color: var(--muted); font-size: 16px; line-height: 1.65; }
.home #decision-tree-root { min-width: 0; }
@media (max-width: 899px) {
  .home .decision-tree-section { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .home .decision-tree-copy { max-width: 640px; }
}

/* Examples explain the real workflow without imitating a live conversation. */
.home .buyer-example { margin: 20px 0 12px; text-align: start; }
.home .buyer-example dt, .home .example-label { color: var(--muted); font-size: 13px; font-weight: 600; }
.home .buyer-example dd { margin: 4px 0 16px; }
.home .buyer-example blockquote, .home .steps blockquote { margin: 0; padding-inline-start: 16px; border-inline-start: 2px solid var(--accent); color: var(--ink); font-size: 15px; line-height: 1.65; }
.home .demo-card .example-label { margin: 16px 0; }
.home .demo-card .button { margin-bottom: 16px; }
.home .workflow-intro { margin: -24px 0 32px; color: var(--muted); }
.home .steps .example-label { margin: 20px 0 6px; }
.home #pricing > .wrap > p.authoring-note { max-width: 85ch; font-size: 15px; }

/* Zip hovers: slow vertical bob with a slight sway and tilt, like drifting in air. */
@keyframes zip-float {
  0%   { transform: translate3d(0, 0, 0) rotate(-1deg); }
  25%  { transform: translate3d(6px, -14px, 0) rotate(0.6deg); }
  50%  { transform: translate3d(0, -24px, 0) rotate(1.2deg); }
  75%  { transform: translate3d(-6px, -12px, 0) rotate(0deg); }
  100% { transform: translate3d(0, 0, 0) rotate(-1deg); }
}
.home .zip-mascot { animation: zip-float 7s ease-in-out infinite; will-change: transform; }
@media (prefers-reduced-motion: reduce) {
  .home .zip-mascot { animation: none; }
}
