/* ============================================================================
   Facile marketing site — layout on top of the Grove brand system (brand.css).
   Uses the same --facile-* tokens, sprout mark, and Sora type. Served
   same-origin, so it loads under the app CSP (style-src 'self').
   ========================================================================== */

.mkt-body { margin: 0; font-family: var(--facile-font); color: var(--facile-navy); background: #fff; -webkit-font-smoothing: antialiased; line-height: 1.6; }
.mkt-container { max-width: 1160px; margin: 0 auto; padding: 0 24px; }
.mkt-body a:not(.btn) { color: var(--facile-primary); text-decoration: none; }
.mkt-body a.btn { text-decoration: none; }
.mkt-eyebrow { font-size: 12px; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; color: var(--facile-primary); margin: 0; }
.mkt-h2 { font-family: var(--facile-font); font-weight: 700; font-size: clamp(28px, 4vw, 40px); letter-spacing: -.03em; margin: 12px 0 0; line-height: 1.1; }
.mkt-lead { color: var(--facile-gray); font-size: 17px; line-height: 1.65; margin: 14px 0 0; }
.mkt-section { padding: 108px 0; }
.mkt-section.band { background: var(--facile-gray-light); }
.mkt-center { text-align: center; max-width: 660px; margin: 0 auto 48px; }

/* --- Nav ------------------------------------------------------------------ */
.mkt-nav { position: sticky; top: 0; z-index: 40; background: rgba(255,255,255,.85); backdrop-filter: saturate(160%) blur(12px); border-bottom: 1px solid var(--facile-border); }
.mkt-nav-inner { display: flex; align-items: center; justify-content: space-between; height: 70px; gap: 20px; }
.mkt-brand { display: inline-flex; align-items: center; gap: 3px; }
.mkt-brand .wordmark { font-size: 24px; }
.mkt-brand .sprout svg { display: block; }
.mkt-links { display: flex; align-items: center; gap: 30px; }
.mkt-links a { color: var(--facile-navy); font-size: 15px; font-weight: 500; }
.mkt-links a:hover { color: var(--facile-primary); }
.mkt-nav-actions { display: flex; align-items: center; gap: 16px; }
.mkt-login { color: var(--facile-navy); font-size: 15px; font-weight: 600; }
.mkt-login:hover { color: var(--facile-primary); }
.mkt-burger { display: none; width: 40px; height: 40px; border: 1px solid var(--facile-border); border-radius: 20px; background: #fff; cursor: pointer; padding: 0; flex-direction: column; align-items: center; justify-content: center; gap: 4px; }
.mkt-burger span { display: block; width: 18px; height: 2px; border-radius: 2px; background: var(--facile-navy); }
.mkt-mobile { display: none; flex-direction: column; gap: 4px; padding: 12px 24px 20px; border-bottom: 1px solid var(--facile-border); background: #fff; }
.mkt-mobile a { color: var(--facile-navy); font-weight: 600; font-size: 16px; padding: 10px 2px; }
.mkt-mobile a.btn { margin-top: 6px; color: #fff; }
.mkt-mobile.open { display: flex; }

/* --- Buttons (extends brand .btn) ----------------------------------------- */
.btn-lg { padding: 15px 26px; font-size: 15px; }
.btn-outline { color: var(--facile-primary); background: #fff; border: 1px solid var(--facile-border-strong); }
.btn-outline:hover { background: var(--facile-gray-light); }
.btn-white { color: var(--facile-primary); background: #fff; }
.btn-white:hover { background: rgba(255,255,255,.9); }

/* --- Hero ----------------------------------------------------------------- */
.hero { padding: 84px 0 68px; text-align: center; background: #FFFFFF; }
.hero h1 { font-family: var(--facile-font); font-weight: 800; font-size: clamp(38px, 6vw, 68px); line-height: 1.03; letter-spacing: -.045em; margin: 0 auto; max-width: 14ch; }
.hero p { font-size: clamp(17px, 2.2vw, 21px); color: var(--facile-gray); line-height: 1.6; max-width: 640px; margin: 22px auto 0; }
.hero .cta-row { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; margin-top: 34px; }
.hero.compact { padding: 70px 0 44px; }
.hero.compact h1 { max-width: 20ch; }
.hero.compact p { margin-top: 18px; }
.sec-tight { padding-top: 56px; }
.pricing-table-wrap { max-width: 1080px; margin: 0 auto; padding: 8px 24px 72px; }

/* --- Pricing transparency ("what's included") ----------------------------- */
.trans-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; align-items: start; }
.trans-card { background: #fff; border: 1px solid #F0F0F0; border-radius: 20px; padding: 36px; }
.trans-card .chip { width: 46px; height: 46px; color: var(--facile-primary); display: grid; place-items: center; margin-bottom: 16px; }
.trans-card h3 { font-weight: 700; font-size: 18px; letter-spacing: -.01em; margin: 0 0 16px; }
.check-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 11px; }
.check-list li { position: relative; padding-left: 28px; font-size: 14px; line-height: 1.5; color: var(--facile-navy); }
.check-list li::before {
  content: ""; position: absolute; left: 0; top: 2px; width: 17px; height: 17px;
  background: no-repeat center / contain url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='17' height='17' viewBox='0 0 24 24' fill='none' stroke='%23064FF9' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E");
}
.callout { margin-top: 18px; background: #EEF3FF; border-left: 3px solid var(--facile-primary); border-radius: 8px; padding: 12px 14px; font-size: 13px; line-height: 1.5; color: var(--facile-navy); }
.reassure { text-align: center; margin: 42px auto 0; max-width: 760px; font-size: 15px; font-weight: 500; color: var(--facile-navy); }
@media (max-width: 860px) { .trans-grid { grid-template-columns: 1fr; } }

/* --- Social proof --------------------------------------------------------- */
.proof { border-top: 1px solid var(--facile-border); border-bottom: 1px solid var(--facile-border); background: #fff; }
.proof-inner { display: flex; align-items: center; justify-content: center; gap: 40px; flex-wrap: wrap; padding: 22px 0; }
.proof .proof-stat { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; font-size: 14.5px; color: var(--facile-navy); }
.proof .proof-stat svg { color: var(--facile-success); flex: none; }

/* --- Feature grid --------------------------------------------------------- */
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.feature-card { background: #fff; border: 1px solid #F0F0F0; border-radius: 20px; padding: 36px; }
.feature-card .chip { width: 46px; height: 46px; color: var(--facile-primary); display: grid; place-items: center; margin-bottom: 16px; }
.feature-card h3 { font-weight: 700; font-size: 18px; letter-spacing: -.01em; margin: 0 0 8px; }
.feature-card p { color: var(--facile-gray); font-size: 14.5px; line-height: 1.55; margin: 0; }
.feature-card .benefit { margin-top: 14px; font-size: 13px; font-weight: 600; color: var(--facile-primary); display: inline-flex; align-items: center; gap: 6px; }

/* --- Care Engine (flagship) ----------------------------------------------- */
.care { background: var(--facile-navy); color: #fff; }
.care-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 48px; align-items: center; }
.care h2 { color: #fff; }
.care .mkt-eyebrow { color: var(--facile-sky-text); }
.care p { color: rgba(255,255,255,.72); font-size: 16.5px; line-height: 1.7; margin: 16px 0 0; }
.care .care-list { margin: 22px 0 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 12px; }
.care .care-list li { display: flex; gap: 11px; align-items: flex-start; color: rgba(255,255,255,.82); font-size: 15px; }
.care .care-list .tick { flex: none; width: 22px; height: 22px; border-radius: 50%; background: rgba(44,198,255,.18); color: var(--facile-sky); display: grid; place-items: center; margin-top: 1px; }
/* Illustration: a flagged member card */
.care-viz { background: linear-gradient(160deg, #101838, #0A0F29); border: 1px solid var(--facile-navy-line); border-radius: 22px; padding: 22px; box-shadow: var(--facile-sh-window); }
.care-viz .viz-head { font-size: 12px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--facile-sky-text); margin: 0 0 14px; }
.care-row { display: flex; align-items: center; gap: 12px; padding: 13px; border-radius: 13px; background: rgba(255,255,255,.04); margin-bottom: 10px; }
.care-row.flag { background: rgba(255,159,67,.12); border: 1px solid rgba(255,159,67,.32); }
.care-row .av { width: 38px; height: 38px; border-radius: 50%; flex: none; display: grid; place-items: center; font-weight: 700; font-size: 13px; color: #fff; background: var(--facile-primary-bright); }
.care-row .who { flex: 1; min-width: 0; }
.care-row .who .n { font-weight: 600; font-size: 14.5px; color: #fff; }
.care-row .who .s { font-size: 12.5px; color: rgba(255,255,255,.5); }
.care-row .pill { flex: none; font-size: 11px; font-weight: 700; padding: 5px 10px; border-radius: 999px; }
.care-row .pill.ok { background: rgba(10,158,91,.16); color: #34D399; }
.care-row .pill.quiet { background: rgba(255,159,67,.18); color: #FFB35C; }

/* --- Testimonials --------------------------------------------------------- */
.tgrid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.tcard { background: #fff; border: 1px solid var(--facile-border); border-radius: 20px; padding: 28px; display: flex; flex-direction: column; }
.tcard .quote { font-size: 16px; line-height: 1.6; color: var(--facile-navy); margin: 0 0 18px; }
.tcard .who { display: flex; align-items: center; gap: 12px; margin-top: auto; }
.tcard .who .av { width: 42px; height: 42px; border-radius: 50%; background: var(--facile-tint); color: var(--facile-primary); display: grid; place-items: center; font-weight: 700; font-size: 15px; flex: none; }
.tcard .who .nm { font-weight: 600; font-size: 14px; }
.tcard .who .rl { color: var(--facile-gray); font-size: 12.5px; }

/* --- Pricing preview ------------------------------------------------------ */
.pgrid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; align-items: stretch; }
.pcard { background: #fff; border: 1px solid var(--facile-border); border-radius: 22px; padding: 30px 28px; display: flex; flex-direction: column; }
.pcard.pop { border-color: var(--facile-primary); box-shadow: 0 18px 50px -24px rgba(6,79,249,.45); position: relative; }
.pcard .tag { position: absolute; top: -12px; left: 28px; background: var(--facile-primary); color: #fff; font-size: 11px; font-weight: 700; letter-spacing: .04em; padding: 5px 11px; border-radius: 999px; }
.pcard .plan { font-weight: 700; font-size: 15px; letter-spacing: .02em; text-transform: uppercase; color: var(--facile-gray); }
.pcard .price { font-weight: 800; font-size: 44px; letter-spacing: -.03em; margin: 10px 0 2px; }
.pcard .price span { font-size: 15px; font-weight: 500; color: var(--facile-gray); letter-spacing: 0; }
.pcard .pdesc { color: var(--facile-gray); font-size: 14px; line-height: 1.5; margin: 6px 0 20px; min-height: 42px; }
.pcard .btn { margin-top: auto; }
.pnote { text-align: center; color: var(--facile-gray); font-size: 14px; margin: 26px 0 0; }

/* --- Final CTA ------------------------------------------------------------ */
.finalcta { text-align: center; }
.finalcta .box { background-image: var(--facile-gradient-band); border-radius: 28px; padding: 64px 32px; color: #fff; }
.finalcta h2 { color: #fff; font-size: clamp(26px, 4vw, 40px); letter-spacing: -.03em; margin: 0 auto; max-width: 18ch; }
.finalcta .row { display: flex; gap: 16px; justify-content: center; align-items: center; flex-wrap: wrap; margin-top: 28px; }
.finalcta .row a.link { color: #fff; font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }

/* --- Feature page sections ------------------------------------------------ */
.fsec { margin-top: 8px; }
.fsec + .fsec { margin-top: 56px; }
.fsec .fsec-title { display: flex; align-items: baseline; gap: 12px; margin: 0 0 22px; }
.fsec .fsec-title h2 { font-weight: 700; font-size: 24px; letter-spacing: -.02em; margin: 0; }
.fsec .fsec-title .k { font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--facile-primary); }
.fgrid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.fitem { background: #fff; border: 1px solid var(--facile-border); border-radius: 18px; padding: 24px; }
.fitem .chip { width: 42px; height: 42px; color: var(--facile-primary); display: grid; place-items: center; margin-bottom: 14px; }
.fitem h3 { font-weight: 700; font-size: 17px; letter-spacing: -.01em; margin: 0 0 8px; }
.fitem p { color: var(--facile-gray); font-size: 14px; line-height: 1.55; margin: 0; }
.fitem .kb { margin-top: 12px; font-size: 12.5px; color: var(--facile-navy); background: var(--facile-gray-light); border-radius: 9px; padding: 8px 10px; }
.fitem .kb b { color: var(--facile-primary); }

/* --- Role Workflow Simulator ---------------------------------------------- */
.sim-intro { text-align: center; color: var(--facile-gray); font-size: 15px; max-width: 640px; margin: 0 auto; }
.role-tabs { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; margin: 22px 0 14px; }
.role-tab { font-family: var(--facile-font); font-weight: 600; font-size: 14px; padding: 10px 20px; border-radius: 999px; border: 1px solid var(--facile-border-strong); background: #fff; color: var(--facile-navy); cursor: pointer; white-space: nowrap; transition: background .15s ease, color .15s ease, border-color .15s ease; }
.role-tab:hover:not(.active) { border-color: var(--facile-primary); color: var(--facile-primary); }
.role-tab.active { background: var(--facile-primary); color: #fff; border-color: var(--facile-primary); }
.role-desc { text-align: center; color: var(--facile-gray); font-size: 16px; line-height: 1.6; max-width: 660px; margin: 0 auto 44px; min-height: 26px; }
.sim-card { position: relative; transition: opacity .3s ease, transform .3s ease, border-color .3s ease, box-shadow .3s ease; }
.sim-card:not(.dimmed) { border-color: var(--facile-primary); box-shadow: 0 12px 32px -18px rgba(6,79,249,.5); }
.sim-card.dimmed { opacity: .3; transform: scale(.97); }
.role-badge { position: absolute; top: 15px; right: 15px; font-size: 10.5px; font-weight: 700; letter-spacing: .03em; color: var(--facile-primary); background: var(--facile-tint); border-radius: 999px; padding: 4px 9px; opacity: 0; transition: opacity .3s ease; }
.sim-card:not(.dimmed) .role-badge { opacity: 1; }
@media (max-width: 560px) {
  .role-tabs { flex-wrap: nowrap; overflow-x: auto; justify-content: flex-start; -webkit-overflow-scrolling: touch; padding-bottom: 4px; }
  .role-tab { flex: none; }
}

/* --- About ---------------------------------------------------------------- */
.about-hero { text-align: center; padding: 76px 0 40px; }
.about-hero h1 { font-weight: 800; font-size: clamp(32px, 5vw, 52px); letter-spacing: -.04em; margin: 14px auto 0; max-width: 20ch; line-height: 1.06; }
.about-hero p { color: var(--facile-gray); font-size: 18px; line-height: 1.6; max-width: 640px; margin: 20px auto 0; }
.about-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
.about-card { background: #fff; border: 1px solid var(--facile-border); border-radius: 20px; padding: 30px; }
.about-card h3 { font-weight: 700; font-size: 19px; letter-spacing: -.01em; margin: 0 0 10px; }
.about-card p { color: var(--facile-gray); font-size: 15px; line-height: 1.6; margin: 0; }
.kingdom { text-align: center; }
.kingdom .box { background: var(--facile-navy); border-radius: 24px; padding: 60px 32px; color: #fff; }
.kingdom .box h2 { color: #fff; }
.kingdom .box p { color: rgba(255,255,255,.72); font-size: 17px; line-height: 1.65; max-width: 640px; margin: 14px auto 0; }
.app-icon-kingdom { width: 72px; height: 72px; margin-bottom: 20px; }
.kingdom-cta { margin: 28px 0 0; }

/* --- Contact -------------------------------------------------------------- */
.contact-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 40px; align-items: start; }
.contact-info h1 { font-weight: 800; font-size: clamp(30px, 4vw, 44px); letter-spacing: -.035em; margin: 12px 0 0; line-height: 1.08; }
.contact-info p { color: var(--facile-gray); font-size: 16px; line-height: 1.6; margin: 16px 0 0; }
.contact-info .support { margin-top: 24px; font-size: 15px; }
.contact-info .support a { font-weight: 600; }
.contact-card { background: #fff; border: 1px solid var(--facile-border); border-radius: 22px; padding: 30px 28px; box-shadow: var(--facile-sh-card); }
.contact-card textarea { width: 100%; padding: 11px 12px; font-size: 15px; font-family: inherit; border: 1px solid var(--facile-border); border-radius: 20px; background: var(--facile-gray-light); color: var(--facile-navy); min-height: 120px; resize: vertical; }
.contact-card textarea:focus { outline: none; border-color: var(--facile-primary); box-shadow: 0 0 0 3px rgba(6,79,249,.16); background: #fff; }
.thanks-block { text-align: center; padding: 22px 0; }
.thanks-block h3 { font-weight: 700; font-size: 20px; letter-spacing: -.01em; margin: 0 0 8px; }
.thanks-block p { color: var(--facile-gray); font-size: 15px; margin: 0; }

/* --- Footer --------------------------------------------------------------- */
.mkt-foot { background: var(--facile-navy); color: rgba(255,255,255,.6); padding: 56px 0 34px; }
.mkt-foot-inner { display: flex; justify-content: space-between; gap: 40px; flex-wrap: wrap; }
.mkt-foot-brand { max-width: 280px; }
.mkt-foot-brand .mkt-foot-tag { color: rgba(255,255,255,.5); font-size: 14px; margin: 14px 0 0; }
.mkt-foot-cols { display: flex; gap: 56px; flex-wrap: wrap; }
.mkt-foot-col { display: flex; flex-direction: column; gap: 10px; }
.mkt-foot-col h4 { color: #fff; font-size: 13px; font-weight: 700; letter-spacing: .04em; margin: 0 0 4px; }
.mkt-foot-col a { color: rgba(255,255,255,.62); font-size: 14px; }
.mkt-foot-col a:hover { color: var(--facile-sky); }
.mkt-foot-bottom { margin-top: 40px; padding-top: 22px; border-top: 1px solid var(--facile-navy-line); color: rgba(255,255,255,.5); font-size: 13px; }

/* --- Responsive ----------------------------------------------------------- */
@media (max-width: 860px) {
  .mkt-links, .mkt-nav-actions .mkt-login, .mkt-nav-actions .btn { display: none; }
  .mkt-burger { display: flex; }
  .feature-grid, .tgrid, .pgrid, .fgrid { grid-template-columns: 1fr; }
  .care-grid, .about-cols, .contact-grid { grid-template-columns: 1fr; gap: 32px; }
  .mkt-section { padding: 60px 0; }
  .proof-inner { gap: 18px; }
  .mkt-foot-inner { flex-direction: column; }
}
@media (max-width: 560px) {
  .finalcta .box, .kingdom .box { padding: 44px 22px; }
  .mkt-foot-cols { gap: 32px; }
}
