:root {
  color-scheme: light;
  --primary: #2854c5;
  --primary-hover: #2045a6;
  --primary-soft: #eaf0ff;
  --ink: #172b4d;
  --muted: #627089;
  --background: #f3f6fb;
  --surface: #fff;
  --line: #e0e6ef;
  --radius: 20px;
  --radius-sm: 12px;
  --shadow: 0 4px 24px #172b4d06;
  --font: 'Avenir Next', 'Segoe UI', system-ui, sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 96px; }
body { margin: 0; color: var(--ink); background: #fbfcff; font: 16px/1.65 var(--font); overflow-wrap: anywhere; }
a { color: inherit; text-underline-offset: 4px; }
button, input { font: inherit; }
button, a, summary { -webkit-tap-highlight-color: transparent; touch-action: manipulation; }
a:focus-visible, button:focus-visible, summary:focus-visible, input:focus-visible { outline: 3px solid var(--primary); outline-offset: 5px; }
img { max-width: 100%; }
h1, h2, h3, p { margin: 0; }
h1, h2, h3 { line-height: 1.12; letter-spacing: -.04em; text-wrap: balance; }
h1 { font-size: clamp(2.5rem, 5.5vw, 4.6rem); max-width: 850px; font-weight: 700; }
h2 { font-size: clamp(1.8rem, 3.3vw, 2.8rem); font-weight: 650; }
h3 { font-size: 1.4rem; font-weight: 650; }
p { color: var(--muted); }
.skip-link { position: absolute; left: 12px; top: -100px; z-index: 20; padding: 12px 20px; border-radius: var(--radius-sm); background: white; color: var(--primary); }
.skip-link:focus { top: 10px; }
.site-header { border-bottom: 1px solid var(--line); background: #fbfcfff5; position: sticky; top: 0; z-index: 5; }
.header-inner, main, .site-footer { width: min(1160px, calc(100% - 80px)); margin: auto; }
.header-inner { min-height: 88px; display: flex; align-items: center; justify-content: space-between; gap: 32px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); font-size: 29px; font-weight: 750; letter-spacing: -.06em; flex: 0 0 auto; }
.brand img { border-radius: 8px; }
.brand-dot { color: var(--primary); }
.desktop-nav { display: flex; align-items: center; gap: 30px; }
.desktop-nav a, .site-footer a { text-decoration: none; }
.desktop-nav a { font-size: 14px; font-weight: 600; padding: 14px 0; }
.desktop-nav a:hover, a[aria-current], .site-footer a:hover { color: var(--primary); }
.button { min-height: 50px; padding: 13px 23px; display: inline-flex; align-items: center; justify-content: center; gap: 22px; border-radius: var(--radius-sm); border: 1px solid transparent; font-weight: 650; font-size: 14px; line-height: 1.5; text-decoration: none; cursor: pointer; transition: background .15s, transform .15s; }
.button.primary { background: var(--primary); color: white; box-shadow: 0 5px 12px #2854c519; }
.button.primary:hover { background: var(--primary-hover); }
.button.secondary { color: var(--ink); border-color: var(--line); background: white; }
.button.secondary:hover { background: var(--primary-soft); border-color: #c7d5f7; }
.button:active { transform: translateY(1px); }
.button:disabled { background: #e7ebf2; color: #53647c; box-shadow: none; cursor: default; }
.button.small { min-height: 44px; padding: 10px 18px; }
.mobile-menu { display: none; position: relative; }
.mobile-menu summary { padding: 12px; min-height: 44px; cursor: pointer; border-radius: var(--radius-sm); border: 1px solid var(--line); font-weight: 600; font-size: 14px; }
.mobile-menu nav { position: absolute; right: 0; top: calc(100% + 12px); min-width: 225px; display: grid; background: white; padding: 10px; border: 1px solid var(--line); border-radius: var(--radius-sm); box-shadow: 0 12px 40px #172b4d1a; }
.mobile-menu nav a { padding: 13px; text-decoration: none; border-radius: 8px; }
.mobile-menu nav a:hover { background: var(--primary-soft); }
.eyebrow { font-size: 12px; text-transform: uppercase; letter-spacing: .13em; color: var(--primary); font-weight: 700; margin-bottom: 22px; display: flex; align-items: center; gap: 9px; }
.eyebrow > span, .status-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--primary); display: inline-block; flex: 0 0 auto; }
.hero { display: grid; grid-template-columns: 1.15fr 1fr; gap: 65px; padding: 88px 0 90px; align-items: center; }
.lead { font-size: 18px; line-height: 1.7; max-width: 620px; margin: 28px 0; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 24px; margin: 30px 0 17px; }
.text-link { display: inline-flex; align-items: center; gap: 14px; font-size: 14px; font-weight: 650; text-decoration: none; color: var(--primary); min-height: 44px; }
.text-link:hover { text-decoration: underline; }
.caption { font-size: 12px; line-height: 1.65; }
.document-scene { position: relative; border-radius: 30px; background: #eaf0fc; min-height: 450px; padding: 30px; }
.scene-label { font-size: 12px; color: #465c80; display: flex; gap: 8px; align-items: center; margin-bottom: 23px; }
.paper { transform: rotate(-3deg); background: white; box-shadow: 0 20px 50px #2854c51a; padding: 30px; border-radius: 14px; width: 90%; }
.paper-head { display: flex; gap: 14px; align-items: center; color: var(--muted); font-size: 8px; letter-spacing: .06em; line-height: 1.5; }
.mini-logo { color: var(--primary); font-size: 37px; font-weight: 750; letter-spacing: -.07em; }
.paper-title { font-size: 31px; line-height: 1.16; letter-spacing: -.04em; font-weight: 650; margin: 38px 0 27px; }
.paper-line { height: 7px; border-radius: 8px; background: #eaf0f9; margin: 12px 0; }
.paper-line.short { width: 65%; }
.scene-steps { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 32px; }
.scene-steps span { background: var(--primary-soft); color: var(--primary); border-radius: 6px; padding: 7px 10px; font-size: 10px; font-weight: 600; }
.floating-label { position: absolute; right: 18px; bottom: 23px; background: #132b57; color: #d3e0fb; padding: 19px 26px; border-radius: 13px; font-size: 13px; line-height: 1.7; box-shadow: 0 8px 20px #132b5720; }
.floating-label strong { color: white; }
.section { padding: 68px 0; border-top: 1px solid var(--line); }
.section-heading { margin-bottom: 35px; }
.section-heading p:not(.eyebrow) { margin-top: 18px; }
.feature-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.feature-card { background: white; border: 1px solid var(--line); border-radius: var(--radius); padding: 29px; box-shadow: var(--shadow); text-decoration: none; min-width: 0; }
a.feature-card:hover { border-color: #b8c9ef; box-shadow: 0 6px 30px #2854c50b; }
.card-number { display: inline-flex; align-items: center; justify-content: center; background: var(--primary-soft); color: var(--primary); height: 36px; min-width: 36px; border-radius: 10px; font-size: 11px; font-weight: 700; margin-bottom: 29px; }
.feature-card h2, .feature-card h3 { font-size: 22px; line-height: 1.2; }
.feature-card p { font-size: 14px; margin-top: 16px; }
.feature-card .text-link { margin-top: 24px; }
.split-section, .faq { display: grid; grid-template-columns: 1fr 1fr; gap: 90px; }
.benefit-list { display: grid; gap: 29px; }
.benefit-list h3 { font-size: 19px; letter-spacing: -.02em; }
.benefit-list p { font-size: 14px; margin-top: 9px; }
.feature-example .text-link { margin-top: 12px; }
details { border-bottom: 1px solid var(--line); }
summary { cursor: pointer; padding: 19px 3px; font-weight: 600; font-size: 15px; line-height: 1.6; }
details > p { padding: 0 3px 22px; font-size: 14px; }
.site-footer { padding: 45px 0 26px; border-top: 1px solid var(--line); margin-top: 30px; }
.footer-top { display: flex; align-items: center; gap: 50px; padding-bottom: 38px; }
.footer-top > p { font-size: 13px; }
.footer-top > a:last-child { margin-left: auto; }
.footer-bottom { display: flex; justify-content: space-between; gap: 24px; border-top: 1px solid var(--line); padding-top: 24px; }
.footer-bottom p, .footer-bottom nav { font-size: 11px; }
.footer-bottom nav { display: flex; flex-wrap: wrap; gap: 20px; }
.footer-bottom a { min-height: 44px; display: inline-flex; align-items: center; }
.page-hero { padding: 70px 0 65px; }
.page-hero h1 { max-width: 860px; }
.page-hero .caption { margin-top: 20px; }
.breadcrumb { display: inline-flex; min-height: 44px; font-size: 13px; margin-bottom: 20px; color: var(--muted); }
.narrow { max-width: 850px; }
.prose { max-width: 780px; }
.prose p { margin: 18px 0 26px; }
.prose h2 { font-size: 24px; line-height: 1.3; }
.prose a { color: var(--primary); }
.related-links { display: flex; gap: 28px; flex-wrap: wrap; margin-top: 28px; }
.legal-layout { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 65px; padding: 0 0 70px; }
.legal-nav { align-self: start; display: grid; gap: 4px; border-top: 1px solid var(--line); padding-top: 15px; }
.legal-nav a { font-size: 13px; padding: 10px 0; text-decoration: none; color: var(--muted); }
.legal-nav a:hover { color: var(--primary); text-decoration: underline; }
.prose-section { margin: 35px 0; }
.draft-box, .info-box, .success-box { border-radius: var(--radius-sm); padding: 20px; font-size: 13px; line-height: 1.8; }
.draft-box { background: #fbf1dc; color: #754b0d; border: 1px solid #eddbb7; }
.draft-box p { color: inherit; margin: 10px 0 0; font-size: 13px; }
.info-box { background: var(--primary-soft); color: #254ca9; }
.success-box { background: #e8f4ed; color: #216b50; }
.error-text { color: #b33441; font-size: 13px; }
.preview-banner { background: #132b57; color: white; text-align: center; font-size: 11px; padding: 9px 18px; }
.component-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.sample-actions { display: flex; flex-wrap: wrap; gap: 15px; margin-top: 22px; }
.demo-field { display: grid; gap: 7px; font-size: 14px; margin-top: 20px; }
.demo-field input { min-width: 0; width: 100%; min-height: 48px; border-radius: 10px; border: 1px solid var(--line); padding: 12px; }
.demo-field input[aria-invalid=true] { border-color: #b33441; }
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
.pricing-hero { padding-top: 48px; padding-bottom: 28px; }
.pricing-hero h1 { font-size: clamp(2.2rem,4.5vw,3.4rem); }
.pricing-hero .lead { max-width: 780px; margin: 20px 0; }
.pricing-proposal { border: 1px solid #d5dff5; border-radius: var(--radius-sm); background: var(--primary-soft); padding: 18px 22px; max-width: 860px; margin-top: 30px; font-size: 13px; line-height: 1.7; }
.pricing-proposal strong { color: var(--primary); }
.pricing-proposal p { margin-top: 5px; color: #465c80; }
.pricing-section { padding: 28px 0 68px; }
.pricing-toolbar { display: flex; justify-content: space-between; gap: 24px; align-items: center; margin-bottom: 30px; }
.pricing-toolbar h2 { font-size: 24px; }
.pricing-toolbar p { font-size: 13px; margin-top: 10px; }
.pricing-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 20px; align-items: stretch; }
.price-card { display: flex; flex-direction: column; min-width: 0; background: white; border: 1px solid var(--line); border-radius: var(--radius); padding: 27px; box-shadow: var(--shadow); }
.price-card h3 { font-size: 27px; }
.plan-description { margin-top: 12px; font-size: 13px; min-height: 45px; }
.plan-price { display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px; margin-top: 24px; color: var(--ink); }
.plan-price strong { font-size: clamp(2.4rem,4vw,3.25rem); font-weight: 700; letter-spacing: -.06em; line-height: 1.2; }
.plan-price span { font-size: 12px; }
.plan-includes { list-style: none; padding: 22px 0 0; margin: 16px 0 24px; display: grid; gap: 14px; border-top: 1px solid var(--line); font-size: 13px; line-height: 1.65; }
.plan-includes li { padding-left: 20px; position: relative; }
.plan-includes li::before { content: '✓'; position: absolute; left: 0; color: var(--primary); font-weight: 700; }
.plan-includes strong { font-weight: 650; }
.price-card .button { width: 100%; margin-top: auto; }
.team-estimator { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr); gap: 70px; align-items: start; }
.team-estimator > div > p:not(.eyebrow) { margin-top: 22px; font-size: 14px; }
.estimator-form { margin-top: 25px; }
.estimator-form > label { display: block; font-size: 13px; font-weight: 650; margin-bottom: 9px; }
.member-input { display: flex; align-items: center; gap: 15px; }
.member-input input { width: 110px; min-width: 0; min-height: 50px; font: 650 19px var(--font); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 12px 15px; background: white; color: var(--ink); }
.member-input input[aria-invalid=true] { border-color: #b33441; }
.member-input span { color: var(--muted); font-size: 13px; }
.estimator-form .caption { margin-top: 12px; }
.estimator-form .error-text { margin-top: 8px; }
.estimate-card { border: 1px solid var(--line); border-radius: var(--radius); background: white; padding: 30px; }
.estimate-card h3 { font-size: 27px; }
.estimate-card #estimate-detail { margin-top: 12px; }
.estimate-card .text-link { margin-top: 12px; }
.pricing-rules { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr); gap: 70px; }
@media (max-width: 1000px) {
  .hero { gap: 35px; }
  .document-scene { padding: 23px; min-height: 420px; }
  .paper { padding: 25px; }
  .feature-card { padding: 22px; }
  .split-section, .faq { gap: 45px; }
  .legal-layout { grid-template-columns: 200px minmax(0,1fr); gap: 35px; }
  .pricing-toolbar { align-items: flex-start; flex-direction: column; }
  .price-card { padding: 20px; }
  .team-estimator, .pricing-rules { gap: 35px; }
}
@media (max-width: 760px) {
  .header-inner, main, .site-footer { width: calc(100% - 40px); }
  .header-inner { min-height: 72px; }
  .desktop-nav, .desktop-login { display: none; }
  .mobile-menu { display: block; }
  .hero { grid-template-columns: 1fr; padding: 49px 0 55px; gap: 40px; }
  .hero h1 { max-width: 620px; }
  .lead { font-size: 17px; margin: 23px 0; }
  .hero-actions { gap: 15px; }
  .document-scene { width: min(100%,460px); min-height: 370px; justify-self: center; }
  .paper { width: 87%; max-width: 330px; }
  .paper-title { font-size: 28px; margin: 25px 0; }
  .paper-head { font-size: 7px; }
  .section { padding: 43px 0; }
  .feature-grid, .split-section, .faq, .component-grid { grid-template-columns: 1fr; gap: 20px; }
  .split-section, .faq { gap: 30px; }
  .card-number { margin-bottom: 20px; }
  .feature-card { padding: 26px; }
  .feature-card .text-link { margin-top: 15px; }
  .footer-top { align-items: flex-start; flex-wrap: wrap; gap: 20px; padding-bottom: 24px; }
  .footer-top > p { margin-left: auto; }
  .footer-top > a:last-child { margin-left: 0; }
  .footer-bottom { display: grid; gap: 14px; }
  .footer-bottom nav { gap: 3px 20px; }
  .page-hero { padding: 45px 0; }
  .legal-layout { grid-template-columns: 1fr; gap: 20px; }
  .legal-nav { display: flex; flex-wrap: wrap; gap: 8px 18px; padding-bottom: 15px; border-bottom: 1px solid var(--line); }
  .legal-nav a { min-height: 44px; padding: 7px 0; }
  .pricing-grid, .team-estimator, .pricing-rules { grid-template-columns: 1fr; gap: 22px; }
  .pricing-section { padding-bottom: 44px; }
  .price-card { padding: 26px; }
  .plan-description { min-height: 0; }
  .plan-price strong { font-size: 48px; }
  .estimate-card { padding: 24px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}

/* Device-aware download page; manual destinations remain available without JS. */
.download-page { max-width:720px; margin:auto; padding:64px 0 72px; text-align:center; }
.download-app-icon { display:grid; place-items:center; width:96px; height:96px; margin:0 auto 28px; border:1px solid #dce5fa; border-radius:26px; background:var(--primary-soft); box-shadow:0 8px 30px #2854c50a; }
.download-page .eyebrow { justify-content:center; margin-bottom:14px; }
.download-page h1 { font-size:clamp(2rem,5vw,3.4rem); }
.download-page .lead { margin:20px auto; max-width:570px; font-size:17px; }
.download-status { padding:12px 16px; background:var(--primary-soft); border-radius:12px; color:var(--primary); font-size:14px; margin:26px 0 20px; }
.download-links { display:grid; gap:12px; text-align:left; }
.download-choice { display:flex; align-items:center; gap:16px; min-height:84px; padding:16px 20px; border:1px solid var(--line); border-radius:16px; text-decoration:none; background:white; }
.download-choice>span:nth-child(2) { flex:1; min-width:0; }
.download-choice strong,.download-choice>span:nth-child(2)>span { display:block; }
.download-choice strong { font-size:16px; font-weight:650; }
.download-choice>span:nth-child(2)>span { font-size:13px; color:var(--muted); margin-top:2px; }
.download-choice-icon { display:grid; place-items:center; width:42px; height:42px; border-radius:12px; color:var(--primary); background:var(--primary-soft); flex-shrink:0; }
.download-choice-icon svg { width:24px; height:24px; }
.download-choice:hover,.download-choice.recommended { border-color:var(--primary); background:#f6f8ff; }
.hero-stores { max-width: 420px; }
.hero-stores > p { color: var(--ink); font-size: 14px; font-weight: 650; margin-bottom: 10px; }
.hero-store-links { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.hero-store-links .download-choice { min-height: 64px; padding: 9px; gap: 8px; border-color: #c7d5f7; }
.hero-store-links .download-choice:hover { border-color: var(--primary); }
.hero-store-links .download-choice-icon { width: 30px; height: 30px; border-radius: 8px; }
.hero-store-links .download-choice-icon svg { width: 20px; height: 20px; }
.hero-store-links .download-choice > span:last-child { display: none; }
.hero-store-links .download-choice strong { font-size: 14px; line-height: 1.35; }
.hero-store-links .download-choice > span:nth-child(2) > span { margin-top: 0; font-size: 12px; }
.hero .hero-actions { margin-top: 13px; margin-bottom: 0; }
.download-help { margin:22px auto 8px; }
.download-scenario { display:flex; flex-wrap:wrap; gap:10px; align-items:center; justify-content:center; font-size:13px; margin-bottom:18px; }
.download-scenario select { min-height:44px; border:1px solid var(--line); border-radius:10px; background:white; padding:8px 12px; font:inherit; color:var(--ink); }
@media(max-width:600px) { .download-page { padding:36px 0 48px; } .download-app-icon { width:80px; height:80px; border-radius:22px; margin-bottom:22px; } .download-app-icon img { width:54px; height:54px; } .download-choice { padding:14px; gap:12px; } }
