/* The public landing page (templates/core/landing.html). "Paper and ink": warm paper,
   black ink, Vosquil blue, and a sample quote drawn like the printed document. Always
   light; it re-tints the app's tokens from app.css so shared parts (buttons, badges) follow. */

body.landing {
  --bg: #f5f1e8;            /* paper */
  --surface: #fffdf8;       /* a sheet on the paper */
  --surface-2: #efe9dc;
  --border: #e2dac8;
  --border-strong: #cfc4ab;
  --text: #17150f;          /* ink */
  --text-2: #47433a;
  --muted: #6b665a;
  --accent: #2f4ec4;
  --accent-btn: #2f4ec4;
  --accent-btn-hover: #2440a8;
  --accent-soft: rgba(47, 78, 196, .08);
  --accent-line: rgba(47, 78, 196, .28);
  --ring: 0 0 0 3px rgba(47, 78, 196, .3);
  --warn: #8a4b00;          /* 5.4:1 on its tint, for the sample-prices note */
  --serif: "Fraunces", Georgia, serif;
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  background: var(--bg); color: var(--text); overflow-x: hidden;
}
body.landing ::selection { background: #17150f; color: #f5f1e8; }
body.landing a:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 3px; }
/* The app gives <main> a page width and padding; here every section runs edge to edge. */
body.landing main.lp-main { max-width: none; margin: 0; padding: 0; display: block; }
.lp-wrap { width: 100%; max-width: 1160px; margin: 0 auto; padding: 0 1.5rem; }
.skip-link { position: absolute; left: -999px; top: 0; z-index: 100; padding: .5rem 1rem; background: var(--text); color: var(--bg); border-radius: 0 0 8px 0; }
.skip-link:focus { left: 0; }

.landing h1, .landing h2 { font-family: var(--serif); font-weight: 560; font-optical-sizing: auto; text-wrap: balance; color: var(--text); }
.landing .button.secondary { background: transparent; color: var(--text); border-color: var(--border-strong); }
.landing .button.secondary:hover { background: var(--surface); border-color: var(--text); }

/* Menu */
.lp-nav { position: sticky; top: 0; z-index: 50; background: color-mix(in srgb, var(--bg) 92%, transparent); border-bottom: 1px solid transparent; transition: border-color .2s; }
.lp-nav.is-scrolled { border-bottom-color: var(--border-strong); }
.lp-nav-inner { display: flex; align-items: center; gap: 1.5rem; height: 64px; }
.lp-links { display: flex; gap: 1.75rem; margin-left: 1.5rem; }
.lp-links a, .lp-login, .lp-lang { color: var(--text-2); font-size: .9rem; font-weight: 500; text-underline-offset: 5px; }
.lp-links a:hover, .lp-login:hover, .lp-lang:hover { color: var(--text); text-decoration: underline; text-decoration-color: var(--border-strong); }
.lp-actions { display: flex; align-items: center; gap: 1.25rem; margin-left: auto; }

/* Hero */
.lp-hero { padding: 5.5rem 0 5rem; }
.lp-hero-grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: 4rem; align-items: center; }
.lp-hero h1 { margin: 0; font-size: clamp(2.6rem, 5.6vw, 4.6rem); line-height: 1.02; letter-spacing: -.03em; }
.lp-lead { margin: 1.75rem 0 0; font-size: 1.2rem; line-height: 1.6; color: var(--text-2); max-width: 34rem; }
.lp-cta { display: flex; gap: .75rem; flex-wrap: wrap; margin-top: 2.25rem; }
.button.lp-big { height: 50px; padding: 0 1.5rem; font-size: 1rem; border-radius: 8px; }
.lp-fine { display: flex; align-items: center; gap: .45rem; margin: 1.1rem 0 0; font-size: .875rem; color: var(--muted); }
.lp-fine .icon { width: 15px; height: 15px; color: var(--ok); flex: none; }

/* The sample quote: a sheet of paper with a letterhead rule, set like the printed quote. */
.lp-visual { position: relative; }
.lp-quote { position: relative; background: var(--surface); border: 1px solid var(--border); border-top: 4px solid var(--text); border-radius: 0; padding: 1.5rem 1.6rem 1.25rem;
  box-shadow: 0 1px 1px rgba(40, 30, 10, .05), 0 18px 40px -12px rgba(40, 30, 10, .22); animation: lp-sheet .9s var(--ease-out) both; }
.lp-quote-head { display: flex; align-items: center; gap: .8rem; padding-bottom: 1.1rem; margin-bottom: .4rem; border-bottom: 1px solid var(--text); }
.lp-quote-head strong { display: block; font-family: var(--serif); font-size: 1.15rem; font-weight: 600; letter-spacing: -.01em; }
.lp-quote-head div span { font-size: .82rem; color: var(--muted); }
.lp-quote-head .badge { margin-left: auto; }
.lp-logo-dot { width: 34px; height: 34px; border-radius: 6px; flex: none; background: var(--accent-btn); }
.lp-quote-line, .lp-quote-sum div { display: flex; justify-content: space-between; gap: 1rem; font-size: .9rem; padding: .6rem 0; font-variant-numeric: tabular-nums; }
.lp-quote-line { border-bottom: 1px dotted var(--border-strong); color: var(--text); }
.lp-quote-sum { margin-top: .6rem; }
.lp-quote-sum div { padding: .25rem 0; color: var(--text-2); font-size: .85rem; }
.lp-quote-sum .lp-total { margin-top: .5rem; padding-top: .75rem; border-top: 2px solid var(--text); color: var(--text); font-weight: 700; font-size: 1.15rem; }
.lp-notes { display: flex; gap: .75rem; margin-top: 1rem; flex-wrap: wrap; }
.lp-chip { display: flex; align-items: center; gap: .65rem; padding: .65rem .85rem; border-radius: 8px; background: var(--surface); border: 1px solid var(--border); font-size: .8rem; color: var(--muted);
  font-variant-numeric: tabular-nums; animation: lp-sheet .9s var(--ease-out) both; }
.lp-chip-punch { animation-delay: .25s; }
.lp-chip-paid { animation-delay: .4s; }
.lp-chip strong { display: block; color: var(--text); font-size: .85rem; }
.lp-chip .icon { width: 30px; height: 30px; padding: 7px; border-radius: 7px; flex: none; }
.lp-chip-paid .icon { background: var(--ok-soft); color: var(--ok); }
.lp-chip-punch .icon { background: var(--accent-soft); color: var(--accent); }
/* The page's one moment: the quote is set down on the paper. Visible from the first frame. */
@keyframes lp-sheet { from { transform: translateY(14px); opacity: .001; } to { transform: none; opacity: 1; } }

/* Trades */
.lp-strip { border-block: 1px solid var(--border-strong); }
.lp-strip .lp-wrap { display: flex; align-items: center; gap: .75rem 2rem; flex-wrap: wrap; padding-block: 1.1rem; }
.lp-strip p { margin: 0; font-size: .875rem; color: var(--muted); }
.lp-strip ul { display: flex; flex-wrap: wrap; gap: .4rem 1.5rem; list-style: none; margin: 0; padding: 0; }
.lp-strip li { color: var(--text); font-size: .95rem; font-weight: 500; }

/* Sections */
.lp-section { padding: 6.5rem 0; scroll-margin-top: 64px; }
.lp-alt { background: var(--surface-2); }
.lp-head { max-width: 40rem; margin: 0 0 3.5rem; }
.lp-head h2 { margin: 0; font-size: clamp(2rem, 3.8vw, 3rem); letter-spacing: -.025em; line-height: 1.08; }
.lp-head p { margin: 1.1rem 0 0; color: var(--text-2); font-size: 1.08rem; line-height: 1.6; }
/* Heading on the left, content on the right. */
.lp-split { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 4rem; align-items: start; }
.lp-split .lp-head { position: sticky; top: 100px; margin: 0; }

.lp-features { border-top: 1px solid var(--text); }
.lp-feature { display: grid; grid-template-columns: 40px minmax(0, 1fr); gap: 1.1rem; padding: 1.5rem 0; border-bottom: 1px solid var(--border-strong); }
.lp-feature h3 { margin: .35rem 0 .35rem; font-size: 1.1rem; font-weight: 650; }
.lp-feature p { margin: 0; color: var(--text-2); font-size: .97rem; line-height: 1.6; max-width: 60ch; }
.lp-feature-icon { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 8px; border: 1px solid var(--border-strong); color: var(--accent); }
.lp-feature-icon .icon { width: 20px; height: 20px; }
.lp-band { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; margin-top: 4.5rem; }
.lp-band > div { padding: 1.75rem; border-radius: 6px; background: var(--text); color: #e9e3d4; }
.lp-band h3 { display: flex; align-items: center; gap: .55rem; margin: 0 0 .6rem; font-size: 1.15rem; color: #fffdf8; }
.lp-band h3 .icon { width: 19px; height: 19px; color: #9db0ff; }
.lp-band p { margin: 0; font-size: .97rem; line-height: 1.65; }

.lp-steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2.5rem; list-style: none; margin: 0; padding: 0; }
.lp-steps li { border-top: 1px solid var(--text); padding-top: 1.25rem; }
.lp-step-n { display: block; font-family: var(--serif); font-size: 3.5rem; line-height: 1; font-weight: 500; color: var(--accent); }
.lp-steps h3 { margin: 1.25rem 0 .5rem; font-size: 1.2rem; font-weight: 650; }
.lp-steps p { margin: 0; color: var(--text-2); font-size: .97rem; line-height: 1.6; }

/* Pricing */
.lp-sample { display: inline-flex; align-items: center; gap: .4rem; padding: .35rem .8rem; border-radius: 6px; background: var(--warn-soft); color: var(--warn); font-size: .875rem; font-weight: 550; }
.lp-head .lp-sample { margin-top: 1.1rem; color: var(--warn); font-size: .875rem; }
.lp-sample .icon { width: 15px; height: 15px; }
.lp-plans { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.25rem; align-items: stretch; }
.lp-plan { position: relative; display: flex; flex-direction: column; padding: 2rem 1.75rem 1.75rem; border: 1px solid var(--border-strong); border-radius: 6px; background: var(--surface); }
.lp-plan.is-popular { background: var(--text); border-color: var(--text); color: #e9e3d4; }
.lp-plan.is-popular h3, .lp-plan.is-popular .lp-price strong { color: #fffdf8; }
.lp-plan.is-popular .lp-users, .lp-plan.is-popular .lp-price span, .lp-plan.is-popular li { color: #cfc8b8; }
.lp-plan.is-popular li .icon { color: #7fd6a8; }
.lp-popular { position: absolute; top: 1.25rem; right: 1.25rem; padding: .2rem .65rem; border-radius: 4px; background: var(--accent-btn); color: #fff; font-size: .75rem; font-weight: 650; }
.lp-plan h3 { margin: 0; font-family: var(--serif); font-size: 1.5rem; font-weight: 560; }
.lp-users { margin: .3rem 0 0; color: var(--muted); font-size: .9rem; }
.lp-price { display: flex; align-items: baseline; gap: .35rem; margin: 1.5rem 0; }
.lp-price strong { font-family: var(--serif); font-size: 3rem; letter-spacing: -.03em; font-weight: 560; font-variant-numeric: tabular-nums; }
.lp-price span { color: var(--muted); font-size: .9rem; }
.lp-plan ul { list-style: none; margin: 0 0 1.75rem; padding: 0; display: flex; flex-direction: column; gap: .7rem; flex: 1; }
.lp-plan li { display: flex; gap: .55rem; align-items: flex-start; font-size: .93rem; color: var(--text-2); }
.lp-plan li .icon { width: 16px; height: 16px; flex: none; margin-top: 3px; color: var(--ok); }
.lp-plan .button { width: 100%; height: 46px; }
.lp-plan.is-popular .button { background: #fffdf8; color: var(--text); border-color: #fffdf8; }
.lp-plan.is-popular .button:hover { background: #fff; }

/* Questions */
.lp-faq { border-top: 1px solid var(--text); }
.lp-faq details { border-bottom: 1px solid var(--border-strong); }
.lp-faq summary { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: 1.2rem 0; cursor: pointer; font-weight: 600; font-size: 1.05rem; list-style: none; }
.lp-faq summary::-webkit-details-marker { display: none; }
.lp-faq summary:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
.lp-faq summary .icon { width: 18px; height: 18px; color: var(--muted); transition: transform .25s var(--ease-out); flex: none; }
.lp-faq details[open] summary .icon { transform: rotate(180deg); }
.lp-faq details p { margin: 0; padding: 0 0 1.3rem; color: var(--text-2); line-height: 1.65; font-size: .97rem; max-width: 62ch; }

/* Last call: the one dark ground on the page. */
.lp-final { padding: 6.5rem 0; background: var(--text); color: #cfc8b8; }
.lp-final h2 { margin: 0; max-width: 18ch; font-size: clamp(2.2rem, 4.8vw, 3.8rem); letter-spacing: -.03em; line-height: 1.05; color: #fffdf8; }
.lp-final p { margin: 1.25rem 0 2rem; font-size: 1.1rem; }
.lp-final .button { background: #fffdf8; color: var(--text); border-color: #fffdf8; }
.lp-final .button:hover { background: #fff; }
.lp-final .button:focus-visible, .lp-plan.is-popular .button:focus-visible { box-shadow: 0 0 0 3px rgba(255, 253, 248, .45); }

.lp-footer { padding: 2rem 0; }
.lp-footer-inner { display: flex; align-items: center; gap: 1.5rem; flex-wrap: wrap; }
.lp-footer nav { display: flex; gap: 1.25rem; flex-wrap: wrap; }
.lp-footer nav a { color: var(--text-2); font-size: .875rem; }
.lp-footer p { margin: 0 0 0 auto; color: var(--muted); }

@media (max-width: 960px) {
  .lp-links { display: none; }
  .lp-hero { padding: 3.5rem 0 4rem; }
  .lp-hero-grid, .lp-split { grid-template-columns: minmax(0, 1fr); gap: 3rem; }
  .lp-split .lp-head { position: static; }
  .lp-visual { max-width: 520px; width: 100%; }
  .lp-plans, .lp-steps { grid-template-columns: minmax(0, 1fr); max-width: 520px; }
}
@media (max-width: 640px) {
  .lp-wrap { padding: 0 1rem; }
  .lp-login { display: none; }
  .lp-actions { gap: .9rem; }
  .lp-section, .lp-final { padding: 4.5rem 0; }
  .lp-band { grid-template-columns: minmax(0, 1fr); margin-top: 3rem; }
  .lp-quote { padding: 1.25rem 1.1rem 1rem; }
  .lp-quote-head .badge { display: none; }
  .lp-cta .button { width: 100%; justify-content: center; }
  .lp-footer p { margin-left: 0; }
}
@media (prefers-reduced-motion: reduce) { .lp-quote, .lp-chip { animation: none; } }

/* Legal pages (templates/core/legal/): one readable column. */
.lp-legal-doc { max-width: 760px; padding-block: 4rem 5rem; }
.lp-legal-doc h1 { margin: 0; font-size: clamp(2.2rem, 5vw, 3.2rem); letter-spacing: -.025em; line-height: 1.08; }
.lp-legal-doc h2 { margin: 2.75rem 0 .75rem; font-size: 1.5rem; letter-spacing: -.01em; line-height: 1.2; }
.lp-legal-doc p, .lp-legal-doc li { color: var(--text-2); font-size: 1.02rem; line-height: 1.7; max-width: 68ch; }
.lp-legal-doc ul { padding-left: 1.25rem; }
.lp-legal-doc li + li { margin-top: .35rem; }
.lp-legal-doc a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
.lp-updated { margin: .75rem 0 2rem; color: var(--muted) !important; font-size: .9rem !important; }
.lp-note { padding: .85rem 1rem; border: 1px solid var(--border-strong); border-radius: 6px; background: var(--surface); }
.lp-table { width: 100%; border-collapse: collapse; margin: 1.5rem 0; font-size: .95rem; }
.lp-table th, .lp-table td { text-align: left; vertical-align: top; padding: .75rem .75rem .75rem 0; border-bottom: 1px solid var(--border-strong); color: var(--text-2); }
.lp-table th { color: var(--text); font-weight: 650; border-bottom-color: var(--text); }
.lp-table code { font-size: .875rem; color: var(--text); }
.lp-footer .lp-legal { flex-basis: 100%; order: 3; }
.lp-footer .lp-legal a { color: var(--muted); }
.lp-footer p { order: 4; }
.lp-footer p a { color: inherit; }

/* Inner public pages (templates/core/public/page.html): same paper and ink, one column of
   reading per section, facts set like the summary box on a printed quote. */
.lp-page-hero { padding: 4.5rem 0 3.5rem; border-bottom: 1px solid var(--border-strong); }
.lp-page-hero h1 { margin: 0; max-width: 22ch; font-size: clamp(2.3rem, 5vw, 3.8rem); line-height: 1.04; letter-spacing: -.03em; }
.lp-page-hero .lp-lead { max-width: 44rem; }
.lp-crumbs { display: flex; gap: .5rem; margin-bottom: 1.5rem; font-size: .85rem; color: var(--muted); }
.lp-crumbs a { color: var(--text-2); }
.lp-crumbs a:hover { color: var(--text); text-decoration: underline; }
.lp-tight { padding: 4.5rem 0; }
.lp-kicker { margin: 0 0 1.5rem; font-family: inherit !important; font-size: .8rem !important; font-weight: 650 !important; letter-spacing: .08em; text-transform: uppercase; color: var(--muted) !important; }
.lp-facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 12.5rem), 1fr)); margin: 0; border-top: 1px solid var(--text); }
.lp-facts div { padding: 1.1rem 1.25rem 1.2rem 0; border-bottom: 1px solid var(--border-strong); }
.lp-facts dt { font-size: .8rem; font-weight: 650; color: var(--muted); }
.lp-facts dd { margin: .35rem 0 0; color: var(--text); font-size: 1rem; line-height: 1.5; }
.lp-prose { border-top: 1px solid var(--text); padding-top: 1.25rem; }
.lp-prose p, .lp-prose li { margin: 0 0 1rem; color: var(--text-2); font-size: 1.03rem; line-height: 1.7; max-width: 64ch; }
.lp-prose ul { margin: 0; padding-left: 1.2rem; }
.lp-prose li::marker { color: var(--accent); }
.lp-tight .lp-split .lp-head h2 { font-size: clamp(1.6rem, 2.8vw, 2.2rem); }
.lp-more { display: inline-flex; align-items: center; gap: .4rem; color: var(--accent); font-weight: 600; text-underline-offset: 4px; }
.lp-more:hover { text-decoration: underline; }
.lp-more .icon { width: 16px; height: 16px; }
.lp-related { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 18rem), 1fr)); gap: 1.25rem; list-style: none; margin: 0; padding: 0; }
.lp-related a { display: flex; flex-direction: column; gap: .5rem; height: 100%; padding: 1.4rem 1.5rem; border: 1px solid var(--border-strong); border-radius: 6px; background: var(--surface); color: var(--text); transition: border-color .15s; }
.lp-related a:hover { border-color: var(--text); }
.lp-related strong { font-size: 1.02rem; line-height: 1.35; }
.lp-related span { color: var(--text-2); font-size: .9rem; line-height: 1.55; }
.lp-table-wrap { margin-top: 3rem; overflow-x: auto; }
.lp-compare { width: 100%; min-width: 34rem; border-collapse: collapse; border: 0; border-radius: 0; box-shadow: none; background: transparent; overflow: visible; font-size: .95rem; }
.lp-compare caption { text-align: left; margin-bottom: 1rem; font-family: var(--serif); font-size: 1.5rem; font-weight: 560; color: var(--text); }
.lp-compare th, .lp-compare td { background: transparent; font-size: .95rem; letter-spacing: 0; white-space: normal; padding: .8rem .75rem; border-bottom: 1px solid var(--border-strong); text-align: center; color: var(--text-2); }
.lp-compare thead th { border-bottom: 1px solid var(--text); color: var(--text); font-weight: 650; }
.lp-compare th[scope="row"], .lp-compare thead th:first-child { text-align: left; font-weight: 500; color: var(--text); padding-left: 0; }
.lp-compare td .icon { width: 17px; height: 17px; color: var(--ok); }

/* Footer: brand, then link columns, then the legal line. */
.lp-footer-inner { align-items: flex-start; gap: 1.5rem 3rem; }
.lp-footer nav:not(.lp-legal) { flex-direction: column; gap: .6rem; }
@media (max-width: 640px) {
  .lp-page-hero { padding: 3rem 0 2.5rem; }
  .lp-tight { padding: 3.25rem 0; }
  .lp-footer-inner { gap: 1.5rem 2rem; }
  .lp-footer-inner > .brand { flex-basis: 100%; }
}
.lp-compare tbody tr:last-child > * { border-bottom: 1px solid var(--border-strong); }
