/* Quarry public homepage. Preserve workspace, account and billing styles. */
body[data-page="home"] { --green-deep: var(--green-dark); }
:is(section[id], #solutions) { scroll-margin-top: 100px; }
.header-inner, .hero-inner, .section, .cta-section, .footer-inner { width: min(1200px, calc(100% - 48px)); }
@media (min-width: 1101px) {
  .header-inner, .hero-inner, .section, .cta-section, .footer-inner { width: min(1600px, calc(100% - 64px)); }
  body[data-page="home"] .hero h1 { max-width: 760px; }
  body[data-page="home"] .hero-copy > .hero-lead { max-width: 680px; }
  body[data-page="home"] .product-preview { width: 100%; max-width: 560px; justify-self: center; }
}
.header-inner { min-height: 82px; gap: 20px; }
.desktop-nav { gap: 22px; }
.desktop-nav a { font-size: 13px; }
.header-actions { gap: 9px; }
.header-actions .button { min-height: 42px; padding: 11px 15px; font-size: 13px; }
.play-link { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 48px; padding: 12px 16px; border: 1px solid #354038; border-radius: 12px; background: #121714; color: #fff; font-size: 13px; font-weight: 700; text-decoration: none; line-height: 1.25; }
.play-link svg { width: 22px; height: 25px; flex: 0 0 auto; }
.play-link:hover { background: #2d392f; }
.hero { overflow: hidden; }
.hero-inner { grid-template-columns: 1.12fr 1fr; gap: 48px; min-height: 0; padding: 44px 0; align-items: center; }
.hero h1 { margin: 18px 0; font-size: clamp(36px, 4.2vw, 55px); line-height: 1.08; letter-spacing: -.045em; text-wrap: balance; }
.hero-copy > .hero-lead { max-width: 570px; font-size: 16px; line-height: 1.65; }
.hero .eyebrow { font-size: 11px; letter-spacing: .07em; }
.hero-actions { flex-wrap: wrap; gap: 13px; margin-top: 24px; }
.hero-actions .button { min-height: 48px; font-size: 14px; }
.proof-row { margin-top: 24px; gap: 8px; }
.proof { font-size: 11px; }
.product-preview { min-width: 0; }
.preview-stage { display: flex; align-items: center; justify-content: center; gap: 14px; padding: 22px 16px; background: #e8eee9; border: 1px solid #d4ded5; border-radius: 28px; }
.screen-button { position: relative; display: block; flex-shrink: 0; padding: 0; border: 0; border-radius: 15px; overflow: hidden; background: #18201b; color: white; cursor: zoom-in; box-shadow: 0 14px 30px #13291c20; }
.screen-button img { display: block; width: 100%; height: auto; aspect-ratio: 9 / 16; }
.screen-button:focus-visible, .play-link:focus-visible, .dialog-close:focus-visible { outline: 3px solid var(--green-dark); outline-offset: 5px; }
.screen-zoom { position: absolute; inset-inline-end: 9px; bottom: 9px; display: grid; place-items: center; width: 29px; height: 29px; border-radius: 50%; border: 1px solid #c1d2c8; background: #fff; color: #245313; font-size: 21px; line-height: 1; box-shadow: 0 2px 10px #0002; }
.preview-home { width: 48%; margin-top: -14px; }
.preview-detail { width: 44%; margin-top: 32px; }
.screen-note { margin: 12px 0 0; text-align: center; font-size: 12px; line-height: 1.5; color: #58625b; }
.section { padding: 52px 0; }
.field-evidence { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); align-items: start; gap: 32px; border-top: 1px solid var(--line); }
.evidence-copy h2 { margin: 0 0 20px; font-size: clamp(26px, 3vw, 36px); line-height: 1.18; letter-spacing: -.025em; text-wrap: balance; }
.field-evidence p { font-size: 15px; line-height: 1.75; color: var(--muted); }
.evidence-copy p { margin: 0 0 16px; }
.evidence-copy .expert-detail { margin-bottom: 0; padding-top: 16px; border-top: 1px solid var(--line); font-size: 13px; }
.evidence-example { padding: 28px; border: 1px solid #cbd9ca; border-radius: 20px; background: #edf3e9; min-width: 0; }
.evidence-example .eyebrow { margin: 0 0 12px; font-size: 11px; color: #3d5c33; }
.evidence-example h3 { margin: 0 0 14px; font-size: 23px; line-height: 1.25; text-wrap: balance; }
.evidence-example > p:last-child { margin-bottom: 0; }
@media (max-width: 760px) { .field-evidence { grid-template-columns: minmax(0, 1fr); gap: 24px; } .evidence-example { padding: 24px; } }
.section-head { align-items: end; gap: 40px; margin: 0 0 26px; }
.section-head h2, .memory-copy h2, .cta-card h2 { font-size: clamp(28px, 3.15vw, 40px); line-height: 1.13; letter-spacing: -.035em; text-wrap: balance; }
.section-head p { max-width: 440px; font-size: 14px; line-height: 1.6; }
.example-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
/* Quarry currently has three examples; a fourth shares the desktop row. */
@media (min-width: 1024px) {
  .example-grid:has(> .example-card:nth-child(4)) { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (min-width: 561px) and (max-width: 1023px) {
  .example-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
.example-card { min-width: 0; border: 1px solid #d9dfdc; border-radius: 20px; overflow: hidden; background: #fff; }
.example-image { display: grid; place-items: center; padding: 20px; background: #e9eeeb; }
.example-card:nth-child(2) .example-image { background: #eaf2e3; }
.example-card:nth-child(3) .example-image { background: #e8edf1; }
.example-image .screen-button { width: min(100%, 195px); }
.example-caption { min-width: 0; padding: 18px 20px; overflow-wrap: anywhere; }
.example-caption h3 { margin: 0 0 9px; font-size: 19px; line-height: 1.3; }
.example-caption p { margin: 0; font-size: 13px; line-height: 1.6; color: var(--muted); }
#modules { border-top: 1px solid var(--line); padding-bottom: 25px; }
.module-grid { grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 12px; margin-top: 24px; }
.module-card { grid-column: span 3; min-height: 0; padding: 20px; border-radius: 17px; background: #edf0ee; }
.module-card:nth-child(-n+3) { grid-column: span 4; }
.module-icon { width: 38px; height: 38px; border-radius: 11px; }
.module-icon svg { width: 25px; height: 25px; }
.module-code, .module-tag { display: none; }
.module-card h3 { margin: 15px 0 7px; font-size: 19px; line-height: 1.25; }
.module-card p { font-size: 13px; line-height: 1.55; }
.solution-links { padding: 20px 0 45px; }
.solution-links h2 { margin: 0 0 15px; font-size: 14px; letter-spacing: .02em; }
.solution-link-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px 24px; }
.solution-links a { font-size: 13px; line-height: 1.5; text-decoration: underline; text-underline-offset: 4px; color: #3d5c33; }
.solution-links .solution-link-card { min-width: 0; padding: 16px 0; border-top: 1px solid var(--line); text-decoration: none; overflow-wrap: anywhere; }
.solution-link-card h3 { margin: 0 0 8px; font-size: 16px; line-height: 1.4; text-decoration: underline; text-underline-offset: 4px; }
.solution-link-card p { margin: 0; font-size: 14px; line-height: 1.6; color: #535e57; }
.solution-links a:focus-visible { outline: 3px solid #578f31; outline-offset: 4px; }
.solution-links .all-solutions { display: inline-block; margin-top: 12px; padding-block: 12px; font-weight: 800; }
.solution-language-notice { margin: 0 0 20px; font-size: 13px; line-height: 1.6; color: #535e57; }
@media (max-width: 900px) { .solution-link-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .solution-link-grid { grid-template-columns: minmax(0, 1fr); } }
.memory-eyebrow { color: #3d5c33; }
.footer-inner { color: #535e57; }
body[data-page="home"] .footer-inner { flex-wrap: wrap; gap: 12px 24px; }
body[data-page="home"] .footer-inner > * { min-width: 0; max-width: 100%; overflow-wrap: anywhere; }
body[data-page="home"] .footer-links { flex-wrap: wrap; gap: 12px 16px; }
body[data-page="home"] .footer-links a { min-width: 0; max-width: 100%; overflow-wrap: anywhere; }
.home-language-links { width: min(1200px, calc(100% - 48px)); margin: 0 auto; padding: 0 0 18px; color: #535e57; font-size: 13px; }
.home-language-links summary { width: fit-content; min-height: 44px; padding: 12px 0; cursor: pointer; font-weight: 700; }
.home-language-links nav { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 4px 16px; padding: 8px 0; }
.home-language-links a { display: block; padding: 10px 4px; line-height: 1.5; text-decoration: underline; text-underline-offset: 4px; }
.home-language-links a[aria-current="page"] { font-weight: 800; color: #3d5c33; }
.home-language-links :is(a, summary):focus-visible { outline: 3px solid #578f31; outline-offset: 3px; border-radius: 3px; }
@media (max-width: 560px) { .home-language-links { width: calc(100% - 32px); } }
.collective-memory { grid-template-columns: 1fr 1fr; gap: 45px; border-top: 1px solid var(--line); padding-block: 35px; }
.memory-copy { min-width: 0; }
.memory-copy h2 { margin: 12px 0 16px; font-size: 32px; }
.memory-lead { font-size: 14px; line-height: 1.7; }
.memory-privacy { margin-top: 18px; padding: 12px; }
.memory-board { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-rows: auto minmax(150px, auto) auto; gap: 12px; width: 100%; max-width: 560px; min-width: 0; min-height: 320px; padding: 18px; border-radius: 24px; box-shadow: 0 12px 32px #182b1e0d; }
.memory-board::before, .memory-board::after { width: 80%; }
.memory-core { position: relative; inset: auto; grid-column: 1 / -1; grid-row: 2; justify-self: center; width: 172px; max-width: 100%; min-height: 150px; padding: 12px; border-radius: 20px; transform: none; }
.memory-core img { width: 64px; height: 64px; }
.memory-core strong { font-size: 14px; line-height: 1.3; overflow-wrap: anywhere; }
.memory-core small { margin-top: 4px; line-height: 1.35; }
.memory-node { position: relative; inset: auto; min-width: 0; max-width: 100%; gap: 8px; padding: 10px; }
.memory-node span { width: 28px; height: 28px; }
.memory-node strong { font-size: 11px; line-height: 1.35; overflow-wrap: anywhere; }
.memory-node.one { inset: auto; grid-column: 1; grid-row: 1; justify-self: start; }
.memory-node.two { inset: auto; grid-column: 2; grid-row: 1; justify-self: end; }
.memory-node.three { inset: auto; grid-column: 1; grid-row: 3; justify-self: start; }
.memory-node.four { inset: auto; grid-column: 2; grid-row: 3; justify-self: end; }
.pricing-section { padding: 0; }
.pricing-section .section-head { display: block; }
.pricing-section .section-head > p { max-width: 900px; margin-top: 16px; }
.pricing-section .credit-explanation { font-size: 13px; }
.pricing-grid { margin-top: 26px; }
.price-card { padding: 25px; }
.price-card h3 { font-size: 25px; }
.price strong { font-size: 39px; }
.price-card .button { min-height: 44px; }
.cta-section { padding: 15px 0 50px; }
.cta-card { display: grid; grid-template-columns: 155px minmax(0, 1fr) auto; align-items: center; gap: 28px; padding: 30px; border-radius: 24px; }
.cta-card h2 { font-size: 28px; }
.cta-card p { font-size: 14px; line-height: 1.65; }
.case-preview { width: 155px; }
.cta-actions { display: flex; flex-direction: column; gap: 12px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.account-panel, .screenshot-dialog { border: 1px solid #cbd6cd; border-radius: 23px; padding: 0; color: var(--ink); background: #fff; box-shadow: 0 30px 120px #101d1750; }
dialog::backdrop { background: #0d1815b5; backdrop-filter: blur(4px); }
.account-panel { width: min(500px, calc(100vw - 28px)); max-height: calc(100dvh - 32px); overflow-y: auto; }
.account-panel .account-visual { width: 100%; min-height: 0; padding: 0; display: block; }
.account-panel .account-card { width: 100%; max-width: none; padding: 34px 26px 26px; border: 0; border-radius: 0; box-shadow: none; transform: none; }
.account-panel .account-badge { margin-inline-end: 32px; }
.account-panel h2 { font-size: 29px; line-height: 1.15; }
.dialog-close { position: absolute; inset-inline-end: 10px; top: 10px; z-index: 4; display: grid; place-items: center; border: 1px solid #d1d9d2; border-radius: 50%; width: 36px; height: 36px; background: #fff; color: #26372b; font-size: 24px; cursor: pointer; }
.screenshot-dialog { width: min(650px, calc(100vw - 24px)); max-height: calc(100dvh - 24px); overflow-y: auto; }
.preview-heading { position: sticky; z-index: 2; top: 0; background: #fff; padding: 18px 60px 18px 20px; }
.preview-heading h2 { font-size: 19px; line-height: 1.3; letter-spacing: -.02em; }
.screenshot-dialog > img { display: block; width: 100%; height: auto; }
.landing-dialog-open { overflow: hidden; }
@media (max-width: 1050px) {
  .desktop-nav { display: none; }
  .hero-inner { gap: 30px; }
  .hero h1 { font-size: 42px; }
  .cta-card { grid-template-columns: 140px minmax(0,1fr); }
  .case-preview { width: 140px; grid-row: span 2; }
  .cta-actions { flex-direction: row; flex-wrap: wrap; }
}
@media (max-width: 800px) {
  .header-inner, .hero-inner, .section, .cta-section, .footer-inner { width: calc(100% - 32px); }
  .hero-inner { grid-template-columns: 1fr; padding-block: 32px; }
  .hero h1 { font-size: clamp(33px, 7vw, 46px); max-width: 620px; }
  .product-preview { max-width: 520px; width: 100%; justify-self: center; }
  .section-head { align-items: start; flex-direction: column; gap: 15px; }
  .section { padding-block: 36px; }
  .module-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .module-card, .module-card:nth-child(-n+3) { grid-column: auto; }
  .collective-memory { grid-template-columns: 1fr; gap: 25px; }
  .memory-board { justify-self: center; }
  .example-image { padding: 14px; }
  .example-caption { padding: 16px; }
  .example-caption h3 { font-size: 16px; }
  .example-caption p { font-size: 12px; }
  .pricing-grid { grid-template-columns: 1fr; }
}
@media (max-width: 680px) {
  .header-actions #homeHeaderSignIn { display: inline-flex; max-width: 106px; font-size: 12px; padding: 9px; white-space: normal; text-align: center; }
  .header-actions #homeHeaderPrimary { display: none; }
  .header-actions #homeHeaderSignIn[hidden] + #homeHeaderPrimary { display: inline-flex; max-width: 110px; white-space: normal; }
}
@media (max-width: 560px) {
  .header-inner { min-height: 72px; gap: 8px; }
  .header-actions { gap: 6px; }
  body[data-page="home"] .header-inner { flex-wrap: wrap; padding-block: 10px; }
  body[data-page="home"] .header-inner > .brand { min-width: 0; max-width: 100%; }
  body[data-page="home"] .header-actions { min-width: 0; max-width: 100%; flex-wrap: wrap; margin-inline-start: auto; }
  .language { min-width: 54px; width: 54px; padding-inline: 5px; }
  .brand-mark { width: 36px; height: 36px; }
  .brand { gap: 7px; }
  .hero h1 { font-size: 36px; }
  .hero-copy > .hero-lead { font-size: 15px; }
  .hero-actions .button { flex: 1 1 auto; }
  .example-grid { grid-template-columns: 1fr; }
  .example-card { display: grid; grid-template-columns: minmax(130px, .9fr) 1fr; align-items: center; }
  .example-image .screen-button { width: 100%; max-width: 175px; }
  .module-card { padding: 16px; }
  .module-card h3 { font-size: 16px; overflow-wrap: anywhere; }
  .module-card p { font-size: 12px; }
  .memory-board { padding: 12px; gap: 10px; }
  .memory-node { padding: 8px; gap: 6px; }
  .memory-node strong { font-size: 10px; }
  .cta-card { grid-template-columns: 100px minmax(0,1fr); gap: 18px; padding: 20px; }
  .case-preview { width: 100px; grid-row: auto; }
  .cta-card h2 { font-size: 24px; }
  .cta-actions { grid-column: 1 / -1; }
  .cta-actions .button { flex: 1; }
  .account-panel .account-card { padding: 32px 18px 22px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .module-card { transition: none; }
}

.google-auth { margin-top:18px; }
.google-auth[hidden] { display:none!important; }
.google-signin { display:flex; align-items:center; justify-content:center; gap:12px; width:100%; min-height:48px; padding:11px 16px; border:1px solid #bdc6c1; border-radius:12px; background:#fff; color:#1f1f1f; font:500 14px/1.5 Arial,sans-serif; cursor:pointer; }
.google-signin svg { flex:0 0 20px; }
.google-signin span { min-width:0; overflow-wrap:anywhere; }
.google-signin:hover { background:#f5f7f8; }
.google-signin:focus-visible { outline:3px solid #4285f4; outline-offset:3px; }
.google-signin:disabled { cursor:wait; opacity:.65; }
.auth-separator { display:flex; align-items:center; gap:12px; margin:14px 0 0; color:#687277; font-size:12px; text-align:center; }
.auth-separator::before,.auth-separator::after { content:""; flex:1; height:1px; background:#dfe4e6; }
.account-panel .google-auth{margin-top:22px;margin-bottom:20px;}

/* First-screen access, with the product walkthrough below the introduction. */
body[data-page="home"] .hero-inner { grid-template-columns: minmax(0, 1fr) minmax(360px, 480px); align-items: center; }
.account-panel { width: 100%; min-width: 0; max-height: none; overflow: visible; justify-self: end; scroll-margin-top: 100px; border-radius: 24px; box-shadow: 0 16px 46px #13291c12; }
.account-panel .account-card { padding: 26px; border-radius: inherit; }
.account-panel .account-visual { border-radius: inherit; }
.account-panel .account-badge { margin-inline-end: 0; }
.account-panel:focus-visible { outline: 3px solid var(--green-dark); outline-offset: 5px; }
.product-tour { padding-block: 24px 44px; }
.product-tour > h2 { margin: 0 0 22px; font-size: 28px; line-height: 1.2; }
.tour-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; }
.tour-item { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: 26px; min-width: 0; padding: 24px; border: 1px solid var(--line); border-radius: 24px; background: #fff; }
.tour-image .screen-button { width: 180px; margin: 0; }
.tour-caption { min-width: 0; overflow-wrap: anywhere; }
.tour-caption h3 { margin: 0 0 12px; font-size: 22px; line-height: 1.25; }
.tour-caption p { margin: 0; color: #58625b; font-size: 15px; line-height: 1.65; }
@media (max-width: 1100px) {
  .tour-item { gap: 20px; padding: 20px; }
  .tour-image .screen-button { width: 140px; }
}
@media (max-width: 900px) {
  body[data-page="home"] .hero-inner { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .account-panel { max-width: 520px; justify-self: center; }
  .tour-grid { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 480px) {
  .account-panel .account-card { padding: 22px 18px; }
  .tour-item { grid-template-columns: minmax(0, 1fr); gap: 18px; }
  .tour-image { justify-self: center; }
  .tour-image .screen-button { width: 160px; }
}

/* Public feature navigation and detailed, readable module descriptions. */
.header-inner { position: relative; }
.desktop-nav { gap: 18px; }
.header-actions { margin-inline-start: auto; }
.desktop-nav > a, .feature-menu > summary { white-space: nowrap; }
.feature-menu { position: relative; }
.feature-menu > summary { cursor: pointer; padding-block: 14px; font-size: 13px; font-weight: 650; color: #505853; }
.feature-menu[open] > summary { color: var(--green-dark); }
.feature-menu-links { position: absolute; inset-inline-start: 0; top: 100%; width: min(320px, calc(100vw - 32px)); max-height: 65vh; overflow-y: auto; display: grid; padding: 10px; border: 1px solid var(--line); border-radius: 15px; background: #fff; box-shadow: 0 12px 32px #182b1e20; }
.feature-menu-links a { padding: 11px 12px; border-radius: 8px; white-space: normal; line-height: 1.4; }
.feature-menu-links a:hover, .mobile-home-menu a:hover { background: var(--green-soft); color: var(--green-dark); }
.feature-menu-links a:first-child { border-bottom: 1px solid var(--line); border-radius: 0; font-weight: 750; }
.mobile-home-menu { display: none; }
.desktop-nav :is(a, summary):focus-visible, .mobile-home-menu :is(a, summary):focus-visible { outline: 3px solid var(--green-dark); outline-offset: 3px; border-radius: 6px; }
.module-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.module-card, .module-card:nth-child(-n+3) { grid-column: auto; padding: 28px; background: #fff; border: 1px solid var(--line); }
.module-card:last-child { grid-column: 1 / -1; }
.module-card[id] { scroll-margin-top: 130px; }
.module-card h3 { font-size: 22px; }
.module-card p { font-size: 15px; line-height: 1.7; }
.module-card > p:not(.feature-detail) { color: #36512c; font-weight: 650; }
.module-card .feature-detail { max-width: 85ch; margin: 15px 0 0; padding-top: 16px; border-top: 1px solid var(--line); color: #535e57; }
.module-card:target { border-color: var(--green-dark); }
@media (max-width: 1200px) {
  .desktop-nav { display: none; }
  .mobile-home-menu { display: block; order: 3; }
  .mobile-home-menu > summary { display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 10px 14px; border: 1px solid var(--line); border-radius: 10px; background: #fff; font-size: 14px; font-weight: 650; cursor: pointer; }
  .mobile-home-menu > summary::-webkit-details-marker { display: none; }
  .mobile-home-menu > nav { position: absolute; inset-inline: 0; top: calc(100% - 1px); max-height: min(70dvh, 620px); overflow-y: auto; padding: 16px; border: 1px solid var(--line); border-radius: 16px; background: #fff; box-shadow: 0 15px 32px #182b1e22; }
  .home-menu-overview, .home-menu-features { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 4px 12px; }
  .home-menu-overview { border-bottom: 1px solid var(--line); padding-bottom: 12px; margin-bottom: 12px; font-weight: 750; }
  .mobile-home-menu a { display: block; min-height: 44px; padding: 12px; font-size: 14px; line-height: 1.4; overflow-wrap: anywhere; border-radius: 8px; }
}
@media (max-width: 700px) {
  .module-grid { grid-template-columns: minmax(0, 1fr); }
  .module-card, .module-card:nth-child(-n+3) { grid-column: auto; padding: 24px; }
  .module-card h3 { font-size: 21px; }
  .module-card p { font-size: 15px; }
}
@media (max-width: 560px) {
  .mobile-home-menu { flex-basis: 100%; }
  .mobile-home-menu > summary { min-height: 38px; padding-block: 7px; }
  .home-menu-features { grid-template-columns: minmax(0, 1fr); }
  :is(section[id], .module-card[id], #account) { scroll-margin-top: 175px; }
}
