/* Homepage (2026-11 redesign). Loaded only by index.html, after style.css, and scoped to body.home so
   nothing here can leak into the app or the other marketing pages. Colours come from the tokens in
   style.css; light is the default look and dark follows the device. */

body.home::before { display: none; }
body.home section { padding: 88px 0; }
@media (max-width: 720px) { body.home section { padding: 56px 0; } }

/* ---------- nav ---------- */
body.home .nav { background: var(--bg); background: color-mix(in srgb, var(--bg) 82%, transparent); backdrop-filter: saturate(1.4) blur(14px); }
body.home .nav-links a { padding: 6px 0; }
body.home .nav-links a:hover { color: var(--accent-strong); }
.brand-mark { border-radius: 0; }

/* ---------- hero ---------- */
.hero {
  padding: 56px 0 72px;
  background:
    radial-gradient(900px 480px at 88% -8%, color-mix(in srgb, var(--accent) 13%, transparent), transparent 70%),
    radial-gradient(640px 360px at -4% 2%, color-mix(in srgb, var(--highlight) 13%, transparent), transparent 70%);
}
.hero .wrap { grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr); gap: 56px; align-items: start; }
.hero-copy { padding-top: 22px; }
.hero-pill {
  display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px 6px 8px; border-radius: 999px;
  background: var(--bg-elevated); border: 1px solid var(--border); font-size: 13px; font-weight: 600; color: var(--text-muted);
  box-shadow: 0 1px 2px rgba(14,31,24,0.05);
}
.hero-pill b { background: var(--accent); color: var(--on-accent); border-radius: 999px; padding: 2px 9px; font-size: 11.5px; letter-spacing: .04em; text-transform: uppercase; }
.hero h1 { font-size: clamp(2.5rem, 5.1vw, 4.05rem); line-height: 1.03; letter-spacing: -0.042em; font-weight: 800; margin: 20px 0 22px; }
.hero h1 em {
  font-style: normal; color: var(--accent);
  background: linear-gradient(transparent 64%, color-mix(in srgb, var(--highlight) 55%, transparent) 64% 93%, transparent 93%);
  -webkit-box-decoration-break: clone; box-decoration-break: clone; padding: 0 .06em; margin: 0 -.06em;
}
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .hero h1 em { background: none; } }
:root[data-theme="dark"] .hero h1 em { background: none; }
.hero-sub { font-size: 18.5px; line-height: 1.55; color: var(--text-muted); max-width: 33em; margin-bottom: 28px; }
.hero-cta-row { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 22px; }
.hero-cta-row .btn { padding: 16px 28px; font-size: 16px; }
.hero-proof { display: flex; flex-wrap: wrap; gap: 8px 22px; padding: 0; margin: 0 0 26px; list-style: none; font-size: 14px; font-weight: 600; color: var(--text-muted); font-family: var(--font-body); }
.hero-proof li { display: flex; align-items: center; gap: 8px; }
.hero-proof svg { color: var(--green); flex: none; }
.hero-trades { font-size: 14px; margin: 0 0 16px; }
.google-badge { background: var(--bg-elevated); border-color: var(--border); font-weight: 600; }

/* the live demo: one card, form on top, the document it makes underneath */
.hero-demo {
  position: relative; background: var(--bg-elevated); border: 1px solid var(--border); border-radius: 22px;
  box-shadow: var(--shadow-lg); padding: 20px; min-width: 0;
}
.hero-demo-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 0 0 14px; font-size: 13px; font-weight: 700; color: var(--text); }
.hero-demo-head span { display: inline-flex; align-items: center; gap: 9px; }
.hero-demo-head small { font-size: 12.5px; font-weight: 600; color: var(--text-muted); }
.live-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 4px var(--green-soft); }
.hero-demo .demo-tabs { margin-bottom: 14px; background: var(--bg-sunken); }
.hero-demo .hero-try-wrap { max-width: none; margin-bottom: 18px; }
.hero-demo .try-hint { font-size: 13.5px; }
.hero-demo .try-chip { font-size: 13.5px; padding: 7px 14px; border-color: var(--border-strong); background: var(--bg); }
.hero-demo .try-chip:hover { background: var(--accent-soft); border-color: var(--accent); }
.hero-demo .try-form textarea { background: var(--bg); min-height: 88px; font-size: 15.5px; border-color: var(--border-strong); }
.hero-demo .try-actions .btn { padding: 13px 22px; }
.hero-demo .hero-result { margin: 0; }
.hero-demo .hero-sample { position: relative; }
.hero-demo .hero-sample-tag {
  position: static; display: inline-flex; margin: 0 0 10px; padding: 3px 10px; border-radius: 999px; font-size: 11.5px; font-weight: 700;
  letter-spacing: .05em; text-transform: uppercase; background: var(--accent-soft); color: var(--accent-strong); border: 0; transform: none;
}
/* the sample quote reads as a sheet of paper, in both themes */
.hero-demo .invoice-mock {
  background: #FFFFFF; color: #0E1F18; border: 1px solid #E5E2D8; border-radius: 14px; padding: 20px; margin: 0;
  box-shadow: 0 1px 2px rgba(14,31,24,0.05), 0 18px 30px -22px rgba(14,31,24,0.35);
  --text: #0E1F18; --text-muted: #4A5B54; --border: #E5E2D8;
}
.hero-demo .invoice-mock .inv-biz, .hero-demo .invoice-mock .inv-billto strong, .hero-demo .invoice-mock td { color: #0E1F18; }
.hero-demo .invoice-mock .inv-label { color: #0B7A55; letter-spacing: .12em; font-weight: 800; }
.hero-demo .invoice-mock .inv-total-due { border-top: 3px solid var(--highlight); padding-top: 9px; }
.hero-demo .invoice-mock table { min-width: 0; }
.hero-demo .q-card { background: #FFFFFF; color: #0E1F18; --text: #0E1F18; --text-muted: #4A5B54; --border: #E5E2D8; --bg-sunken: #F2F0E9; --accent-strong: #085C41; border-radius: 14px; }
.hero-demo .q-grand { border-top: 3px solid var(--highlight); }
.hero-demo .try-result .try-cta, .hero-demo .reply-result .try-cta { background: var(--accent-soft); border: 1px solid color-mix(in srgb, var(--accent) 22%, transparent); border-radius: 16px; padding: 18px; margin-top: 14px; }
.hero-demo .try-cta-title { font-size: 15.5px; }
.hero-demo .hero-signup input { background: var(--bg-elevated); }

@media (max-width: 940px) {
  .hero { padding: 36px 0 48px; }
  .hero .wrap { grid-template-columns: minmax(0, 1fr); gap: 34px; }
  .hero-copy { padding-top: 0; }
  .hero-cta-row .btn { flex: 1 1 100%; justify-content: center; }
}
@media (max-width: 520px) {
  .hero h1 { font-size: 2.35rem; }
  .hero-sub { font-size: 17px; }
  .hero-demo { padding: 14px; border-radius: 18px; }
  .hero-demo-head small { display: none; }
}

/* ---------- proof strip ---------- */
.proof { padding: 0 !important; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); background: var(--bg-elevated); }
.proof ul { list-style: none; margin: 0; padding: 18px 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 12px 34px; }
.proof li { display: inline-flex; align-items: center; gap: 9px; font-size: 14px; font-weight: 600; color: var(--text-muted); }
.proof svg { flex: none; color: var(--accent); }
@media (max-width: 720px) { .proof ul { justify-content: flex-start; padding: 16px 0; gap: 10px 22px; } }

/* ---------- section heads ---------- */
body.home .section-head { max-width: 680px; margin-bottom: 44px; }
body.home .section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
body.home .section-head h2 { font-size: clamp(1.9rem, 3.6vw, 2.8rem); line-height: 1.1; letter-spacing: -0.035em; font-weight: 800; margin-top: 14px; }
body.home .section-head p { font-size: 17.5px; margin-top: 16px; }

/* ---------- how it works ---------- */
.steps { list-style: none; margin: 0 0 76px; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; counter-reset: step; }
.steps li { position: relative; background: var(--bg-elevated); border: 1px solid var(--border); border-radius: 18px; padding: 22px 20px 22px; counter-increment: step; }
.steps li::before {
  content: counter(step); display: grid; place-items: center; width: 32px; height: 32px; border-radius: 10px; margin-bottom: 14px;
  background: var(--accent); color: var(--on-accent); font-weight: 800; font-size: 15px;
}
.steps strong { display: block; font-size: 16.5px; letter-spacing: -0.01em; margin-bottom: 6px; }
.steps span { display: block; font-size: 14.5px; line-height: 1.55; color: var(--text-muted); }
@media (max-width: 960px) { .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); margin-bottom: 56px; } }
@media (max-width: 520px) { .steps { grid-template-columns: minmax(0, 1fr); } }

.showcase { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 64px; align-items: center; margin-top: 76px; }
.showcase:first-of-type { margin-top: 0; }
.showcase.flip .show-visual { order: -1; }
.show-copy h3 { font-size: clamp(1.55rem, 2.7vw, 2.1rem); line-height: 1.12; letter-spacing: -0.03em; font-weight: 800; margin: 12px 0 14px; }
.show-copy > p { font-size: 17px; color: var(--text-muted); margin-bottom: 18px; max-width: 34em; }
.ticks { list-style: none; margin: 0 0 22px; padding: 0; display: grid; gap: 11px; }
.ticks li { display: flex; gap: 11px; align-items: flex-start; font-size: 15.5px; line-height: 1.5; }
.ticks svg { flex: none; margin-top: 3px; color: var(--green); }
.text-link { font-weight: 700; color: var(--accent-strong); text-decoration: none; border-bottom: 2px solid color-mix(in srgb, var(--accent) 35%, transparent); padding-bottom: 1px; }
.text-link:hover { border-bottom-color: var(--accent); }
.show-visual { display: flex; justify-content: center; min-width: 0; }
.frame { background: var(--bg-elevated); border: 1px solid var(--border); border-radius: 18px; box-shadow: var(--shadow-lg); overflow: hidden; width: 100%; max-width: 560px; }
.frame-bar { display: flex; gap: 6px; padding: 11px 14px; border-bottom: 1px solid var(--border); background: var(--bg-sunken); }
.frame-bar i { width: 9px; height: 9px; border-radius: 50%; background: var(--border-strong); opacity: .5; }
.frame img { width: 100%; height: auto; }
.frame.crop img { max-height: 540px; object-fit: cover; object-position: top; }
.frame-phone { max-width: 300px; border-radius: 34px; padding: 10px; background: var(--text); border: 0; }
.frame-phone img { border-radius: 25px; background: #fff; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .frame-phone { background: #2a3d35; } }
:root[data-theme="dark"] .frame-phone { background: #2a3d35; }
.stack { display: grid; gap: 16px; width: 100%; max-width: 560px; }
.stack .frame { max-width: none; }
@media (max-width: 860px) {
  .showcase { grid-template-columns: minmax(0, 1fr); gap: 30px; margin-top: 56px; }
  .showcase.flip .show-visual { order: 0; }
}

/* ---------- features ---------- */
#features .feat-grid { gap: 18px; }
#features .feat-card { border-radius: 18px; padding: 24px; transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease; }
#features .feat-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: color-mix(in srgb, var(--accent) 40%, var(--border)); }
#features .feat-icon { width: 42px; height: 42px; border-radius: 12px; background: var(--accent-soft); color: var(--accent-strong); margin-bottom: 14px; }
#features .feat-card h3 { font-size: 17px; letter-spacing: -0.015em; margin-bottom: 6px; }
#features .feat-card p { font-size: 15px; line-height: 1.55; }
#features a.feat-link { display: inline-block; align-self: flex-start; margin-top: 4px; font-weight: 700; color: var(--accent-strong); text-decoration: none; font-size: 14px; }
#features a.feat-link::after { content: " \2192"; }
#features a.feat-link:hover { text-decoration: underline; }
@media (max-width: 900px) { #features .feat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { #features .feat-grid { grid-template-columns: minmax(0, 1fr); } }

/* ---------- trades ---------- */
.trade-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.trade-card {
  display: flex; flex-direction: column; gap: 8px; padding: 20px 18px; border-radius: 18px; text-decoration: none; color: var(--text);
  background: var(--bg-elevated); border: 1px solid var(--border); transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.trade-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: var(--accent); }
.trade-card .t-ic { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent-strong); }
.trade-card strong { font-size: 17px; letter-spacing: -0.015em; }
.trade-card span { font-size: 14px; line-height: 1.5; color: var(--text-muted); flex: 1; }
.trade-card em { font-style: normal; font-weight: 700; font-size: 13.5px; color: var(--accent-strong); }
.trade-more { text-align: center; margin-top: 26px; color: var(--text-muted); font-size: 15px; }
.trade-more a { color: var(--accent-strong); font-weight: 700; }
@media (max-width: 1000px) { .trade-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 620px) { .trade-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 340px) { .trade-grid { grid-template-columns: minmax(0, 1fr); } }

/* ---------- pricing ---------- */
body.home #pricing { background: var(--bg-sunken) !important; }
body.home .plan { border-radius: 22px; padding: 30px 26px; background: var(--bg-elevated); box-shadow: 0 1px 2px rgba(14,31,24,0.04); }
body.home .plan.featured { border-color: var(--accent); box-shadow: 0 0 0 2px var(--accent), var(--shadow-lg); }
body.home .plan-name { font-family: var(--font-body); letter-spacing: .08em; color: var(--text-muted); }
body.home .plan-price .amt { font-family: var(--font-display); font-weight: 800; font-size: 46px; letter-spacing: -0.04em; }
body.home .plan-billed { font-family: var(--font-body); }
body.home .plan-ribbon { background: var(--highlight); color: #0E1F18; font-family: var(--font-body); font-weight: 800; }
body.home .price-toggle { background: var(--bg-elevated); }
body.home .price-save-note { font-family: var(--font-body); }

/* ---------- compare ---------- */
.compare-table-wrap { overflow-x: auto; border: 1px solid var(--border); border-radius: 18px; background: var(--bg-elevated); box-shadow: var(--shadow); }
.compare-table { width: 100%; min-width: 640px; border-collapse: collapse; font-size: 15px; }
.compare-table caption { text-align: left; padding: 16px 20px 0; font-size: 13.5px; color: var(--text-muted); caption-side: bottom; padding-bottom: 14px; }
.compare-table th, .compare-table td { padding: 14px 18px; text-align: left; border-bottom: 1px solid var(--border); vertical-align: top; }
.compare-table thead th { font-size: 13px; letter-spacing: .06em; text-transform: uppercase; color: var(--text-muted); background: var(--bg-sunken); }
.compare-table tbody th { font-weight: 700; color: var(--text); width: 26%; }
.compare-table td { color: var(--text-muted); }
.compare-table th:nth-child(2), .compare-table td:nth-child(2) { background: var(--accent-soft); color: var(--text); font-weight: 600; }
.compare-table thead th:nth-child(2) { background: var(--accent); color: var(--on-accent); }
.compare-table tr:last-child th, .compare-table tr:last-child td { border-bottom: 0; }

/* ---------- trust ---------- */
body.home .trust-split { gap: 48px; align-items: start; }
body.home .security-item { background: var(--bg-elevated); border: 1px solid var(--border); border-radius: 16px; padding: 16px 18px; }
body.home .security-item .ic { background: var(--accent-soft); color: var(--accent-strong); }
body.home .founder-card { background: var(--accent); color: var(--on-accent); border: 0; border-radius: 22px; padding: 34px; box-shadow: var(--shadow-lg); }
body.home .founder-card p, body.home .founder-card .sign, body.home .founder-card .role, body.home .founder-card span { color: var(--on-accent) !important; }
body.home .founder-card p { font-size: 18px; line-height: 1.55; }
body.home .founder-card .role { opacity: .85; }
.contact-line { display: flex; flex-wrap: wrap; gap: 8px 18px; margin-top: 18px; padding-top: 16px; border-top: 1px solid color-mix(in srgb, var(--on-accent) 28%, transparent); font-size: 14.5px; font-weight: 600; }
.contact-line a { color: var(--on-accent); text-underline-offset: 3px; }

/* ---------- faq ---------- */
body.home .faq { border-radius: 16px; background: var(--bg-elevated); }
body.home .faq summary { font-weight: 700; }

/* ---------- final call to action ---------- */
body.home .final-cta {
  background: radial-gradient(700px 300px at 85% 0%, color-mix(in srgb, var(--highlight) 22%, transparent), transparent 70%), #075C42;
  color: #FFFFFF; border-radius: 28px; padding: 72px 32px; --text: #FFFFFF; --text-muted: rgba(255,255,255,0.82);
}
body.home .final-cta h2 { color: #FFFFFF; font-size: clamp(2rem, 4.6vw, 3.2rem); line-height: 1.07; letter-spacing: -0.04em; font-weight: 800; }
body.home .final-cta p { color: rgba(255,255,255,0.85); }
body.home .final-cta .eyebrow { color: #FFFFFF; }
body.home .final-cta .eyebrow::before { background: var(--highlight); }
body.home .final-cta .btn-primary { background: #FFFFFF; color: #085C41; box-shadow: 0 10px 24px -12px rgba(0,0,0,0.5); }
body.home .final-cta .btn-primary:hover { background: #F2F0E9; }
body.home .final-cta .btn-ghost { color: #FFFFFF; border-color: rgba(255,255,255,0.55); }
body.home .final-cta .btn-ghost:hover { background: rgba(255,255,255,0.12); border-color: #FFFFFF; }

/* ---------- footer ---------- */
body.home footer { background: var(--bg-sunken); border-top: 1px solid var(--border); }
.foot-col h3 { font-family: var(--font-body); font-weight: 800; letter-spacing: .08em; }

/* ---------- sticky mobile call to action (markup + show/hide logic: style.css, main.js, home-ux.js) ---------- */
@media (max-width: 720px) {
  body.home .sticky-cta { background: var(--bg-elevated); background: color-mix(in srgb, var(--bg-elevated) 94%, transparent); backdrop-filter: blur(12px); padding-bottom: calc(12px + env(safe-area-inset-bottom, 0px)); }
  body.home .sticky-cta span { font-size: 13.5px; font-weight: 600; color: var(--text); line-height: 1.3; }
}

/* ---------- phones: shorter homepage (same content, tighter layout) ---------- */
@media (max-width: 620px) {
  .trade-card { padding: 14px 14px 12px; gap: 6px; border-radius: 14px; }
  .trade-card .t-ic { width: 34px; height: 34px; border-radius: 10px; }
  .trade-card strong { font-size: 15.5px; }
  .trade-card span { font-size: 13px; line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; flex: 0 0 auto; }
  .trade-card em { font-size: 12.5px; }
  .showcase { gap: 20px; margin-top: 40px; }
  .frame img { max-height: 340px; object-fit: cover; object-position: top; }
  .frame-phone { max-width: 210px; margin-inline: auto; padding: 8px; border-radius: 28px; }
  .frame-phone img { max-height: none; border-radius: 20px; }
}

/* Features dropdown in the homepage nav (hover, or keyboard focus, opens it; no script needed) */
.nav-dd { position: relative; display: inline-flex; }
.nav-dd-panel { display: none; position: absolute; top: 100%; left: -24px; padding-top: 14px; z-index: 60; }
.nav-dd:hover .nav-dd-panel, .nav-dd:focus-within .nav-dd-panel { display: block; }
.nav-dd-card { display: grid; grid-template-columns: repeat(3, 200px); gap: 8px 28px; padding: 22px 28px 20px; border: 1px solid var(--border); border-radius: 16px; background: var(--bg-elevated); box-shadow: var(--shadow-lg); }
.nav-dd-h { margin: 0 0 6px; font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--text-muted); }
body.home .nav-dd-card a { display: block; min-height: 0; padding: 7px 0; font-size: 14.5px; font-weight: 500; white-space: normal; color: var(--text); }
body.home .nav-dd-card a:hover { color: var(--accent-strong); }
.nav-dd-trigger::after { content: ""; display: inline-block; width: 6px; height: 6px; margin-left: 7px; border-right: 1.6px solid currentColor; border-bottom: 1.6px solid currentColor; transform: translateY(-2px) rotate(45deg); }
/* The newer features, under the main feature grid */
.feat-more-head { margin-top: 64px; }
.feat-more-head h3 { font-size: clamp(22px, 3vw, 28px); letter-spacing: -.02em; margin: 6px 0 8px; }
#features .feat-grid-more { gap: 18px; }
#features .feat-grid-more .feat-card { border-radius: 18px; padding: 24px; }
#features .feat-grid-more .feat-card h3 { font-size: 17px; letter-spacing: -.015em; margin-bottom: 6px; }

/* The one-line promise that opens the hero sub-heading. */
.hero-sub .hero-lead { color: var(--text); font-weight: 700; }
