/* Attenda public homepage only. Never imported by the application/dashboard. */
:root {
    --background: #ffffff;
    --background-alt: #f2f5f1;
    --surface: #ffffff;
    --surface-elevated: #e9efe6;
    --foreground: #061f15;
    --foreground-muted: #536158;
    --border: #d9e0d7;
    --border-strong: #8b9d8e;
    --accent: #bce955;
    --accent-hover: #a8d643;
    --accent-foreground: #061f15;
    --dark-surface: #061f15;
    --dark-surface-alt: #133527;
    --dark-foreground: #f8fbf5;
    --blue: var(--foreground);
    --slate: var(--foreground-muted);
    --container: 1344px;
    --gutter: clamp(20px, 3.4vw, 48px);
    --section-space: clamp(64px, 8vw, 120px);
    --radius: 12px;
    color-scheme: light;
}
html.dark-mode {
    --background: #0c2118;
    --background-alt: #132c20;
    --surface: #173325;
    --surface-elevated: #213e2e;
    --foreground: #f4f8ef;
    --foreground-muted: #b9c9bc;
    --border: #375441;
    --border-strong: #819f89;
    color-scheme: dark;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 108px; }
body { margin: 0; background: var(--background); color: var(--foreground); font: 400 17px/1.65 'Urbanist', sans-serif; -webkit-font-smoothing: antialiased; }
h1,h2,h3,h4,p,figure { margin: 0; }
h1,h2,h3,h4 { font-weight: 600; line-height: 1.12; letter-spacing: -.035em; }
h2 { font-size: clamp(34px, 4.3vw, 62px); text-wrap: balance; }
h3,h4 { font-size: clamp(23px, 2.2vw, 30px); }
p { color: var(--foreground-muted); }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }
button,a { -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 3px solid var(--border-strong); outline-offset: 5px; }
::selection { color: #061f15; background: #bce955; }
.shell { width: min(calc(100% - var(--gutter) * 2), var(--container)); margin-inline: auto; }
.shell > *, .hero-grid > *, .section-head > * { min-width: 0; }
.section,.screenshots-section { padding-block: var(--section-space); }
.mini { color: var(--foreground); font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.section-head { display: grid; grid-template-columns: 1.25fr 1fr; column-gap: 10%; row-gap: 20px; align-items: end; margin-bottom: 56px; }
.section-head .mini { grid-column: 1/-1; }
.section-head h2 { max-width: 680px; }
.section-head p { max-width: 470px; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 12px; min-height: 48px; padding: 12px 24px; border: 1px solid transparent; border-radius: 999px; font-size: 16px; font-weight: 600; line-height: 1.4; text-align: center; white-space: nowrap; transition: background .2s, color .2s, border-color .2s; }
.btn-primary { background: var(--accent); color: var(--accent-foreground); }
.btn-primary:hover { background: var(--accent-hover); }
.btn-light { background: transparent; border-color: var(--border-strong); color: var(--foreground); }
.btn-light:hover { background: var(--surface-elevated); }
.skip-link { position: fixed; top: -100px; left: 20px; z-index: 200; background: var(--accent); color: #061f15; padding: 12px 24px; }
.skip-link:focus { top: 12px; }
.site-nav { position: sticky; top: 0; z-index: 100; background: var(--background); border-bottom: 1px solid var(--border); }
.site-nav-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 88px; }
.brand { display: inline-flex; gap: 13px; align-items: center; font-size: 25px; font-weight: 700; letter-spacing: -.04em; }
.brand-mark { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 10px; background: #205be9; color: #ffffff; font-size: 24px; }
.nav-links,.nav-actions { display: flex; align-items: center; gap: 24px; }
.nav-links a { font-size: 16px; font-weight: 500; }
.nav-links a:hover,.footer-links a:hover { text-decoration: underline; text-underline-offset: 6px; }
.nav-actions { gap: 10px; }
.theme-toggle { width: 46px; padding: 10px; color: var(--foreground); border-color: var(--border); background: transparent; }
.theme-toggle .fa-sun,.dark-mode .theme-toggle .fa-moon { display: none; }
.dark-mode .theme-toggle .fa-sun { display: inline; }
.mobile-menu-toggle { display: none; background: transparent; color: var(--foreground); border: 1px solid var(--border); border-radius: 8px; width: 44px; height: 44px; }
.mobile-nav-account { display: none; }
/* A solid forest field, real product photography, no decorative patterns. */
.hero { background: var(--dark-surface); color: var(--dark-foreground); padding: clamp(56px, 6vw, 88px) 0 0; }
.hero-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 40px 10%; align-items: end; }
.hero h1 { font-size: clamp(42px, 4.6vw, 68px); line-height: 1.1; max-width: 740px; }
.hero h1 span { display: block; color: var(--accent); }
.hero .mini { color: #cfddc9; margin-bottom: 20px; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: 32px; }
.hero-actions .btn { flex: 0 0 auto; }
.hero .btn-light { color: #ffffff; border-color: #708774; }
.hero .btn-light:hover { background: #244633; }
.hero-story { padding-bottom: 4px; }
.hero-story strong { display: block; font-size: 22px; font-weight: 600; line-height: 1.35; margin-bottom: 16px; }
.hero-story p { color: #cfddc9; }
.hero-product { grid-column: 1/-1; margin-top: 8px; padding: 12px 12px 0; background: #284334; border: 1px solid #4b6252; border-bottom: 0; border-radius: 14px 14px 0 0; overflow: hidden; }
.hero-product img { width: 100%; border-radius: 5px 5px 0 0; }
.hero-product figcaption { padding: 12px 8px; color: #e0e9dc; font-size: 13px; }
/* Editorial product features: uncut UI on one side, concise explanation on the other. */
.screenshots-section { background: var(--background-alt); }
.product-stories { display: grid; gap: 72px; }
.product-story { display: grid; grid-template-columns: 1.7fr 1fr; gap: 7%; align-items: center; }
.product-story:nth-child(even) { grid-template-columns: 1fr 1.7fr; }
.product-story:nth-child(even) .product-frame { order: 2; }
.product-frame { padding: 10px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); }
.product-frame img { width: 100%; height: auto; object-fit: contain; border-radius: 5px; }
.product-number { display: block; color: var(--foreground-muted); font-size: 14px; letter-spacing: .08em; margin-bottom: 22px; }
.product-description h3 { font-size: clamp(25px, 2.7vw, 38px); margin-bottom: 18px; }
.product-description p { margin-bottom: 20px; }
.text-link { display: inline-flex; align-items: center; gap: 16px; font-weight: 600; padding-bottom: 5px; border-bottom: 1px solid var(--border-strong); }
.text-link:hover { border-color: var(--foreground); }
.client-strip { padding-top: var(--section-space); }
.client-top { display: flex; justify-content: space-between; align-items: end; gap: 40px; }
.client-top .section-head { display: block; margin: 0; max-width: 750px; }
.client-top .mini { margin-bottom: 20px; }
.proof-label { max-width: 240px; font-size: 14px; color: var(--foreground-muted); }
.proof-label i { margin-right: 8px; }
.logos { display: flex; flex-wrap: wrap; gap: 18px 32px; margin-top: 32px; }
.logo-tile { color: var(--foreground-muted); font-size: 14px; }
.logo-tile i { margin-right: 7px; }
.metrics-section { padding: 52px 0 var(--section-space); }
.metrics-grid { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); }
.metric-card { padding: 12px 28px; border-left: 1px solid var(--border); }
.metric-card:first-child { padding-left: 0; border-left: 0; }
.metric-card h3 { font-size: clamp(32px,4.4vw,62px); letter-spacing: -.045em; white-space: nowrap; }
.metric-card p { margin-top: 12px; font-size: 15px; }
.metric-icon { display: none; }
#features { background: var(--dark-surface); color: var(--dark-foreground); }
#features .mini { color: var(--accent); }
#features p { color: #c5d5c7; }
.story-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: 10%; }
.story-card h3 { max-width: 600px; font-size: clamp(30px,3vw,44px); margin-bottom: 24px; }
.feature-checks { list-style: none; padding: 0; margin: 28px 0 0; }
.feature-checks li { padding: 12px 0; border-top: 1px solid #365140; font-size: 15px; color: #dce5d7; }
.feature-checks i { color: var(--accent); margin-right: 10px; }
.mini-stack { counter-reset: benefits 1; }
.mini-card { padding: 28px 0; border-top: 1px solid #365140; counter-increment: benefits; }
.mini-card::before { content: '00' counter(benefits) '//'; display: block; color: var(--accent); font-size: 14px; margin-bottom: 20px; }
.mini-card h4 { margin-bottom: 16px; }
.mini-card h4 i { display: none; }
.editorial-visual { background: var(--background-alt); border-radius: var(--radius); overflow: hidden; }
.editorial-visual img { width: 100%; object-fit: contain; height: auto; }
.editorial-visual figcaption { padding: 28px; }
.editorial-visual figcaption span { display: block; font-weight: 600; margin-bottom: 10px; }
.workflow-visual { display: grid; grid-template-columns: 1fr 1fr; align-items: center; margin-bottom: 48px; }
.workflow-visual figcaption { padding: clamp(24px,4vw,64px); }
.workflow-visual figcaption span { font-size: 30px; letter-spacing: -.03em; line-height: 1.2; }
.module-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 0 40px; counter-reset: modules; }
.module-card { counter-increment: modules; padding: 32px 0; border-top: 1px solid var(--border); }
.module-card::before { content: '00' counter(modules) '//'; font-size: 14px; display: block; color: var(--foreground-muted); margin-bottom: 22px; }
.module-icon { display: none; }
.module-card h3 { margin-bottom: 16px; }
.module-card ul { padding-left: 18px; margin: 18px 0 0; color: var(--foreground-muted); font-size: 14px; }
.module-card li { margin-top: 6px; }
#roles { background: var(--background-alt); }
#roles > .shell { display: grid; grid-template-columns: 1fr 1fr; gap: 0 8%; align-items: start; }
#roles .section-head { grid-column: 1/-1; }
.role-visual { background: var(--surface); }
.roles-grid { counter-reset: roles; }
.role-card { position: relative; padding: 26px 0 26px 54px; border-top: 1px solid var(--border); }
.role-card:first-child { padding-top: 0; border-top: 0; }
.role-card::before { content: attr(data-role); position: absolute; left: 0; top: 28px; font-size: 14px; color: var(--foreground-muted); }
.role-card:first-child::before { top: 4px; }
.role-card h3 { margin-bottom: 12px; }
.pricing-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 24px; }
.price-card { position: relative; display: flex; flex-direction: column; padding: 36px 28px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); }
.price-card.featured { background: var(--dark-surface); color: var(--dark-foreground); border-color: #335541; }
.price-card.featured p,.price-card.featured li,.price-card.featured .amount span { color: #c5d5c7; }
.price-card h3 { font-size: 26px; margin-bottom: 28px; }
.amount { font-size: clamp(28px,2.9vw,42px); font-weight: 600; line-height: 1.3; letter-spacing: -.04em; margin-bottom: 20px; }
.amount span { display: block; font-size: 15px; color: var(--foreground-muted); letter-spacing: 0; }
.price-card ul { padding: 24px 0 24px 20px; margin: 24px 0; border-top: 1px solid var(--border); color: var(--foreground-muted); font-size: 15px; flex: 1; }
.price-card li { padding-block: 5px; }
.price-card .btn { width: 100%; }
.badge-top { position: absolute; top: -14px; right: 24px; border-radius: 30px; padding: 5px 14px; font-size: 12px; font-weight: 700; color: #061f15; background: var(--accent); }
.cta-band { display: flex; align-items: center; justify-content: space-between; gap: 32px; margin-top: 40px; padding-top: 32px; border-top: 1px solid var(--border); }
.cta-band h3 { font-size: 24px; margin-bottom: 10px; }
.cta-band p { max-width: 800px; }
#deployment { background: var(--background-alt); }
.case-study { border-top: 1px solid var(--border-strong); padding-top: 32px; }
.case-study-identity { display: flex; align-items: center; gap: 20px; margin-bottom: 44px; }
.case-study-mark { display: grid; place-items: center; width: 66px; height: 66px; background: var(--dark-surface); color: var(--accent); border-radius: 50%; font-size: 24px; font-weight: 600; }
.case-study-identity strong { display: block; font-size: 24px; }
.case-study-identity small { color: var(--foreground-muted); }
.case-study-workflows { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 40px; }
.case-study-workflows span { display: block; color: var(--foreground-muted); margin-bottom: 16px; font-size: 14px; }
.case-study-workflows strong { display: block; font-size: 24px; margin-bottom: 12px; font-weight: 600; }
.faq-layout { display: grid; grid-template-columns: .85fr 1.15fr; gap: 10%; }
.faq-intro .mini { margin-bottom: 20px; }
.faq-intro h2 { margin-bottom: 24px; }
.faq-intro > a { display: inline-flex; align-items: center; gap: 16px; border-bottom: 1px solid var(--border-strong); margin-top: 24px; padding-bottom: 5px; font-weight: 600; }
.faq-item { border-top: 1px solid var(--border); }
.faq-item:last-child { border-bottom: 1px solid var(--border); }
.faq-item summary { display: grid; grid-template-columns: 26px 1fr 20px; gap: 18px; align-items: start; padding: 23px 0; list-style: none; font-size: 20px; font-weight: 600; line-height: 1.45; cursor: pointer; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: '+'; text-align: center; font-weight: 400; font-size: 24px; }
.faq-item[open] summary::after { content: '−'; }
.faq-number { font-size: 12px; padding-top: 7px; color: var(--foreground-muted); }
.faq-answer { padding: 0 30px 26px 44px; }
.faq-item[open] .faq-answer { animation: answer-in .2s ease-out; }
.closing-section { background: var(--accent); color: #061f15; }
.final-cta { display: grid; grid-template-columns: 1.1fr 1fr; gap: 10%; align-items: center; }
.final-cta h2 { font-size: clamp(38px,4.5vw,66px); }
.final-cta p { color: #29452e; margin-top: 24px; }
.final-panel ul { padding: 0; margin: 0 0 32px; list-style: none; }
.final-panel li { padding: 13px 0; border-bottom: 1px solid #8caf4a; }
.final-panel li i { margin-right: 8px; }
.final-panel .btn-primary { background: #061f15; color: #ffffff; }
.final-panel .btn-primary:hover { background: #23452f; }
.final-panel .btn-light { border-color: #4c692c; color: #061f15; }
.final-panel .btn-light:hover { background: #d0ef95; }
.final-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.footer { background: var(--dark-surface); color: #ffffff; padding: 80px 0 28px; }
.footer-inner { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 7%; }
.footer-brand p { color: #bdcebf; margin-top: 24px; max-width: 360px; font-size: 15px; }
.footer-links { display: flex; flex-direction: column; align-items: start; gap: 10px; font-size: 15px; color: #bdcebf; }
.footer-title { color: #ffffff; font-size: 17px; margin-bottom: 12px; }
.footer-bottom { display: flex; justify-content: space-between; gap: 20px; border-top: 1px solid #365140; margin-top: 64px; padding-top: 24px; font-size: 13px; color: #bdcebf; }
/* PWA control is injected separately; this palette override is homepage-scoped. */
body.marketing-home .attenda-install-app { background: #bce955; color: #061f15; box-shadow: none; }
body.marketing-home .attenda-install-dialog { background: var(--surface); color: var(--foreground); }
body.marketing-home .attenda-install-dialog button { background: var(--accent); color: var(--accent-foreground); }
@keyframes answer-in { from { opacity: .2; transform: translateY(4px); } to { opacity: 1; transform: none; } }
@keyframes hero-in { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
.hero-copy,.hero-story,.hero-product { animation: hero-in .65s cubic-bezier(.22,1,.36,1) both; }
.hero-story { animation-delay: .1s; }
.hero-product { animation-delay: .15s; }
@media (max-width: 1100px) {
    .nav-links { gap: 16px; }
    .site-nav-inner { gap: 16px; }
    .nav-actions .btn { padding-inline: 17px; }
    .section-head,.hero-grid { column-gap: 6%; }
    .module-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
    .price-card { padding: 32px 20px; }
}
@media (max-width: 980px) {
    .section-head { display: block; }
    .section-head .mini { margin-bottom: 18px; }
    .section-head p { margin-top: 24px; max-width: 640px; }
    .product-story,.product-story:nth-child(even) { grid-template-columns: 1fr; gap: 24px; }
    .product-story:nth-child(even) .product-frame { order: 0; }
    .product-description { max-width: 640px; }
    .site-nav-inner { min-height: 76px; }
    .nav-actions { margin-left: auto; }
    .mobile-menu-toggle { display: block; flex-shrink: 0; }
    .nav-links { display: none; position: absolute; top: 100%; left: 0; right: 0; background: var(--background); padding: 20px var(--gutter) 28px; border-bottom: 1px solid var(--border); max-height: calc(100dvh - 76px); overflow-y: auto; }
    .nav-links.is-open { display: flex; align-items: stretch; flex-direction: column; gap: 0; }
    .nav-links a { padding: 12px 0; }
    .mobile-nav-account { display: block; }
    .hero-grid { grid-template-columns: 1.3fr 1fr; }
    .hero-story strong { font-size: 19px; }
    .hero-story p { font-size: 15px; }
    .metrics-grid { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 28px 0; }
    .metric-card:nth-child(3) { border-left: 0; padding-left: 0; }
    .pricing-grid { gap: 14px; }
    .amount { font-size: 30px; }
    .price-card h3 { font-size: 23px; }
    .price-card .btn { padding-inline: 12px; }
    .faq-layout { gap: 6%; }
}
@media (max-width: 700px) {
    body { font-size: 16px; }
    .site-nav-inner { gap: 10px; min-height: 72px; }
    .brand { font-size: 23px; gap: 9px; }
    .brand-mark { width: 38px; height: 38px; font-size: 21px; }
    .nav-actions > a { display: none; }
    .theme-toggle { width: 42px; min-height: 42px; }
    .section-head { display: block; margin-bottom: 36px; }
    .section-head .mini { margin-bottom: 18px; }
    .section-head p { margin-top: 24px; }
    .hero-grid { grid-template-columns: 1fr; gap: 32px; }
    .hero h1 { max-width: 570px; }
    .hero-story { max-width: 520px; }
    .hero-product { padding: 6px 6px 0; margin-top: 0; border-radius: 8px 8px 0 0; }
    .hero-product figcaption { font-size: 12px; padding: 10px 4px; }
    .hero-actions { gap: 10px; }
    .hero-actions .btn { padding-inline: 17px; font-size: 15px; }
    .product-stories { gap: 40px; }
    .product-story,.product-story:nth-child(even) { grid-template-columns: 1fr; gap: 24px; }
    .product-story:nth-child(even) .product-frame { order: 0; }
    .product-number { margin-bottom: 12px; }
    .product-description p { margin-bottom: 14px; }
    .client-top { display: block; }
    .proof-label { margin-top: 24px; max-width: none; }
    .logos { gap: 12px 24px; }
    .metric-card { padding-right: 8px; padding-left: 20px; }
    .metric-card h3 { font-size: clamp(30px,8vw,46px); }
    .story-grid,.workflow-visual,.faq-layout,.final-cta { grid-template-columns: 1fr; gap: 36px; }
    .workflow-visual figcaption { padding: 24px; }
    .module-grid { grid-template-columns: 1fr; }
    #roles > .shell { grid-template-columns: 1fr; }
    .roles-grid { margin-top: 36px; }
    .role-card { padding-left: 44px; }
    .pricing-grid { grid-template-columns: 1fr; gap: 28px; }
    .price-card { padding: 32px 24px; }
    .amount { font-size: 38px; }
    .cta-band { flex-direction: column; align-items: start; gap: 24px; }
    .case-study-workflows { grid-template-columns: 1fr; gap: 28px; }
    .case-study-workflows > div { border-top: 1px solid var(--border); padding-top: 24px; }
    .case-study-identity strong { font-size: 20px; }
    .case-study-mark { flex-shrink: 0; width: 54px; height: 54px; }
    .faq-item summary { font-size: 18px; gap: 12px; grid-template-columns: 22px 1fr 18px; }
    .faq-answer { padding-left: 34px; padding-right: 20px; }
    .footer { padding-top: 56px; }
    .footer-inner { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 36px; }
    .footer-brand { grid-column: 1/-1; }
    .footer-bottom { flex-direction: column; gap: 8px; margin-top: 40px; }
}
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *,*::before,*::after { animation: none !important; transition: none !important; }
}

.section-note { margin: -4px 0 26px; color: var(--muted); font-size: 0.95rem; }
.section-note a { color: var(--blue); font-weight: 700; }
