/* Attenta brand colors. The marketing site and signed-in web app consume these tokens. */
:root {
  color-scheme: light;
  --page: #f7f8f3;
  --surface: #fffefa;
  --surface-alt: #eef3f1;
  --ink: #172b40;
  --muted: #536674;
  --line: #d9e2e1;
  --brand: #315dcf;
  --brand-solid: #315dcf;
  --brand-hover: #244caf;
  --gold: #f5cb68;
  --mint: #bde9da;
  --mark-cutout: #fffefa;
  --art-card: #fffefa;
  --art-border: #d7e2e1;
  --art-sun: #ffdf8d;
  --art-mint: #bde9da;
  --art-star: #dfac3c;
  --art-trail: #a7bfbc;
  --art-green: #278c68;
  --art-green-soft: #e2f5e9;
  --art-blue: #315dcf;
  --art-blue-soft: #dfe9ff;
  --art-soft: #f2f5f4;
  --art-text: #1a3045;
  --art-muted: #617483;
}

:root[data-theme="dark"] {
  color-scheme: dark;
  --page: #101c2a;
  --surface: #18293c;
  --surface-alt: #152638;
  --ink: #f4f6f1;
  --muted: #b7c5cf;
  --line: #334a5d;
  --brand: #9cb5ff;
  --brand-solid: #5f83eb;
  --brand-hover: #7294f0;
  --gold: #f0c775;
  --mint: #83cdb5;
  --mark-cutout: #18293c;
  --art-card: #1d3044;
  --art-border: #3a5368;
  --art-sun: #5a4c36;
  --art-mint: #285a56;
  --art-star: #e3b85b;
  --art-trail: #55716f;
  --art-green: #80d9ad;
  --art-green-soft: #295444;
  --art-blue: #91aeff;
  --art-blue-soft: #344f84;
  --art-soft: #263c50;
  --art-text: #f4f6f1;
  --art-muted: #b7c5cf;
}

:root {
  font-family: ui-rounded, "SF Pro Rounded", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-synthesis: none;
  scroll-behavior: smooth;
}

* { box-sizing: border-box; }
body { margin: 0; background: var(--page); color: var(--ink); -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
button { font: inherit; }
svg { display: block; }
::selection { background: var(--gold); color: #172b40; }
:focus-visible { outline: 3px solid var(--brand); outline-offset: 4px; }
.container { width: min(100% - 48px, 1160px); margin-inline: auto; }
.icon { width: 20px; height: 20px; flex: none; }
.skip-link { position: absolute; top: -100px; left: 16px; z-index: 100; padding: 10px 14px; border-radius: 10px; background: var(--ink); color: var(--page); }
.skip-link:focus { top: 12px; }

.site-header { position: relative; z-index: 10; border-bottom: 1px solid var(--line); background: var(--page); }
.header-inner { min-height: 86px; display: flex; align-items: center; gap: 32px; }
.brand { display: inline-flex; align-items: center; gap: 11px; white-space: nowrap; font-size: 26px; font-weight: 800; letter-spacing: -.06em; line-height: 1; }
.brand-mark { display: block; width: 42px; height: 42px; color: var(--brand-solid); }
.brand-mark svg { width: 100%; height: 100%; }
.brand-dot { color: var(--brand); }
.desktop-nav { display: flex; align-items: center; gap: 32px; margin-inline: auto; }
.desktop-nav a, .login-link { font-size: 14px; font-weight: 700; color: var(--muted); white-space: nowrap; }
.desktop-nav a:hover, .login-link:hover { color: var(--brand); }
.header-actions { display: flex; align-items: center; gap: 18px; }
.language-switcher { position: relative; }
.language-switcher summary { display: flex; align-items: center; gap: 7px; padding: 9px 3px; color: var(--muted); font-size: 13px; font-weight: 800; cursor: pointer; list-style: none; }
.language-switcher summary::-webkit-details-marker { display: none; }
.language-switcher summary:hover { color: var(--brand); }
.language-switcher summary .icon { width: 14px; height: 14px; }
.language-switcher nav { position: absolute; right: 0; top: calc(100% + 10px); display: flex; flex-direction: column; min-width: 130px; padding: 8px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); box-shadow: 0 16px 28px rgb(16 30 45 / 13%); }
.language-switcher nav a { padding: 9px 11px; border-radius: 8px; color: var(--muted); font-size: 13px; font-weight: 700; }
.language-switcher nav a:hover { background: var(--surface-alt); }
.language-switcher nav a[aria-current="page"] { color: var(--brand); }
.theme-toggle { display: inline-flex; align-items: center; gap: 8px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); color: var(--ink); padding: 10px 13px; font-size: 12px; font-weight: 750; white-space: nowrap; cursor: pointer; }
.theme-toggle:hover { border-color: var(--brand); }
.theme-toggle .icon { width: 16px; height: 16px; }
.theme-sun { display: none; }
[data-theme="dark"] .theme-sun { display: block; }
[data-theme="dark"] .theme-moon { display: none; }
.mobile-menu { display: none; }

.button, .button-secondary { display: inline-flex; align-items: center; justify-content: center; gap: 11px; min-height: 53px; border-radius: 16px; font-size: 15px; font-weight: 800; transition: transform .18s ease, background-color .18s ease, box-shadow .18s ease; }
.button { padding: 0 23px; color: white; background: var(--brand-solid); box-shadow: 0 8px 18px rgb(35 73 145 / 15%); }
.button:hover { background: var(--brand-hover); transform: translateY(-2px); box-shadow: 0 12px 22px rgb(35 73 145 / 20%); }
.button .icon { width: 18px; height: 18px; }
.button-small { min-height: 42px; padding: 0 16px; border-radius: 13px; font-size: 13px; }
.button-small .icon { width: 15px; height: 15px; }
.button-secondary { padding: 0 7px; color: var(--ink); }
.button-secondary:hover { color: var(--brand); }
.button-secondary .icon { width: 19px; height: 19px; }

.hero { display: grid; grid-template-columns: minmax(0, .94fr) minmax(0, 1.06fr); align-items: center; gap: 20px; min-height: 620px; padding-block: 76px 68px; }
.hero-copy { position: relative; z-index: 1; padding-bottom: 10px; }
.eyebrow { display: flex; align-items: center; gap: 10px; margin: 0 0 22px; color: var(--brand); font-size: 12px; font-weight: 850; letter-spacing: .14em; text-transform: uppercase; }
h1, h2, h3, p { margin-top: 0; }
h1, h2, h3 { letter-spacing: -.055em; }
h1 { max-width: 650px; margin-bottom: 24px; font-size: clamp(56px, 5.7vw, 84px); line-height: .99; font-weight: 850; }
h1 em { position: relative; color: var(--brand); font-style: normal; }
h1 em::after { content: ""; position: absolute; left: 3%; right: 2%; bottom: -9px; height: 8px; border-radius: 50%; border-bottom: 6px solid var(--gold); transform: rotate(-2deg); }
.hero-body { max-width: 540px; margin-bottom: 31px; color: var(--muted); font-size: clamp(18px, 1.65vw, 21px); line-height: 1.55; }
.hero-actions { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; }
.hero-fine { margin: 16px 0 0; color: var(--muted); font-size: 13px; font-weight: 600; }
.hero-art-wrap { min-width: 0; }
.hero-art { width: 100%; height: auto; overflow: visible; }
.art-card { filter: drop-shadow(0 15px 18px rgb(23 43 64 / 12%)); }
.art-kicker, .art-small, .art-timer, .art-project, .art-tag, .art-total, .art-day { font-family: ui-rounded, "SF Pro Rounded", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; fill: var(--art-text); }
.art-kicker { font-size: 12px; font-weight: 850; letter-spacing: 2px; fill: var(--art-muted); }
.art-small { font-size: 14px; font-weight: 750; }
.art-timer { font-size: 45px; font-weight: 850; letter-spacing: -2px; }
.art-project { font-size: 12px; font-weight: 750; }
.art-tag { font-size: 9px; font-weight: 800; fill: var(--art-green); }
.art-total { font-size: 31px; font-weight: 850; letter-spacing: -1px; }
.art-day { font-size: 10px; font-weight: 750; fill: var(--art-muted); text-anchor: middle; }

.proof-strip { background: #1d354c; color: #f6f9f6; }
.proof-grid { display: grid; grid-template-columns: repeat(3, 1fr); padding-block: 25px; }
.proof-grid p { display: flex; align-items: baseline; justify-content: center; gap: 9px; margin: 0; padding: 0 14px; font-size: 14px; }
.proof-grid p + p { border-left: 1px solid rgb(255 255 255 / 20%); }
.proof-grid strong { color: #ffdb83; font-size: 17px; white-space: nowrap; }
.proof-grid span { color: #e2ebeb; }

.section { padding-block: 105px; scroll-margin-top: 32px; }
.section-intro { max-width: 690px; margin-bottom: 48px; }
.section-intro .eyebrow { margin-bottom: 16px; }
.section-intro h2, .details-heading h2 { margin-bottom: 16px; font-size: clamp(38px, 4vw, 54px); line-height: 1.08; font-weight: 850; }
.section-intro > p:last-child, .details-heading > p:last-child { max-width: 620px; margin: 0; color: var(--muted); font-size: 18px; line-height: 1.55; }
.flow-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; margin: 0; padding: 0; list-style: none; }
.flow-step { position: relative; min-height: 292px; padding: 26px; border: 1px solid var(--line); border-radius: 24px; background: var(--surface); }
.step-connector { position: absolute; z-index: 2; top: 53px; right: -23px; width: 28px; height: 28px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 50%; background: var(--page); color: var(--brand); }
.step-connector .icon { width: 16px; height: 16px; }
.flow-step-top { display: flex; align-items: flex-start; justify-content: space-between; margin-bottom: 36px; }
.step-number { color: var(--brand); font-size: 14px; font-weight: 850; letter-spacing: .06em; }
.step-icon, .benefit-icon { display: grid; place-items: center; width: 60px; height: 60px; border-radius: 18px; background: var(--mint); color: #174d4b; }
.flow-step:nth-child(2) .step-icon { background: var(--gold); color: #5d4518; }
.flow-step:nth-child(3) .step-icon { background: #dfe8ff; color: #315dcf; }
[data-theme="dark"] .flow-step:nth-child(3) .step-icon { background: #3a5288; color: #dbe5ff; }
.step-icon .icon, .benefit-icon .icon { width: 30px; height: 30px; }
.flow-step h3, .benefit-card h3 { margin-bottom: 11px; font-size: 22px; line-height: 1.16; font-weight: 800; }
.flow-step p, .benefit-card p { margin-bottom: 0; color: var(--muted); font-size: 16px; line-height: 1.55; }

.benefits-section { background: var(--surface-alt); }
.benefits-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 25px; }
.benefit-card { padding: 28px 0 10px; border-top: 2px solid var(--line); }
.benefit-icon { margin-bottom: 30px; width: 56px; height: 56px; border-radius: 17px; background: var(--surface); color: var(--brand); }
.benefit-card:nth-child(2) .benefit-icon { color: #906824; }
[data-theme="dark"] .benefit-card:nth-child(2) .benefit-icon { color: var(--gold); }
.benefit-card:nth-child(3) .benefit-icon { color: #238263; }
[data-theme="dark"] .benefit-card:nth-child(3) .benefit-icon { color: var(--mint); }

.auth-section { display: flex; align-items: center; gap: 26px; margin-top: 82px; padding: 31px 35px; border: 1px solid var(--line); border-radius: 26px; background: var(--surface); }
.auth-symbol { display: grid; place-items: center; flex: none; width: 70px; height: 70px; border-radius: 20px; background: var(--mint); color: #174d4b; }
.auth-symbol .icon { width: 36px; height: 36px; }
.auth-section .eyebrow { margin-bottom: 9px; }
.auth-section h2 { margin-bottom: 7px; font-size: clamp(29px, 3vw, 38px); line-height: 1.12; }
.auth-section p:last-child { max-width: 690px; margin-bottom: 0; color: var(--muted); font-size: 16px; line-height: 1.5; }

.cta-section { position: relative; display: flex; align-items: center; min-height: 340px; margin-block: 102px; padding: 54px 64px; border-radius: 30px; background: #315dcf; color: #fff; overflow: hidden; }
.cta-content { position: relative; z-index: 1; max-width: 580px; }
.cta-content .eyebrow { color: #ffde8f; margin-bottom: 14px; }
.cta-content h2 { margin-bottom: 12px; font-size: clamp(36px, 4vw, 53px); line-height: 1.08; font-weight: 850; }
.cta-content > p:not(.eyebrow) { max-width: 500px; margin-bottom: 24px; color: #eaf0ff; font-size: 17px; line-height: 1.5; }
.button-light { min-height: 47px; background: #fff; color: #1f4aaf; box-shadow: none; }
.button-light:hover { background: #f2f5ff; box-shadow: none; }
.cta-doodle { position: absolute; width: 266px; right: 52px; top: 50%; transform: translateY(-50%) rotate(-12deg); color: #ffdc82; opacity: .94; }
.cta-doodle svg { width: 100%; }
.newsletter-form { max-width: 550px; }
.newsletter-form > label { display: block; margin-bottom: 9px; font-size: 13px; font-weight: 800; }
.newsletter-input-row { display: flex; align-items: stretch; gap: 8px; }
.newsletter-input-row input { flex: 1; min-width: 0; height: 52px; padding: 0 16px; border: 2px solid transparent; border-radius: 14px; background: #fff; color: #172b40; font: inherit; font-size: 16px; }
.newsletter-input-row input::placeholder { color: #6c7c89; }
.newsletter-input-row input:focus { outline: 3px solid #ffde8f; outline-offset: 2px; }
.newsletter-input-row .button { flex: none; min-height: 52px; border: 0; cursor: pointer; }
.newsletter-input-row .button:disabled, .confirm-card .button:disabled { opacity: .65; cursor: wait; transform: none; }
.form-message { min-height: 21px; margin: 10px 0 0; font-size: 14px; font-weight: 700; }
.cta-privacy { margin: 4px 0 0 !important; color: #eaf0ff; font-size: 13px !important; }
.cta-privacy a { color: inherit; text-underline-offset: 3px; }
.honeypot { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

.confirm-page { min-height: 100vh; padding-block: 28px 80px; }
.confirm-card { max-width: 630px; margin: 12vh auto 0; padding: 45px; border: 1px solid var(--line); border-radius: 28px; background: var(--surface); }
.confirm-card h1 { margin-bottom: 18px; font-size: clamp(40px, 5vw, 62px); }
.confirm-card > p:not(.eyebrow):not(.form-message) { color: var(--muted); font-size: 18px; line-height: 1.5; }
.confirm-card .button { border: 0; cursor: pointer; }
.confirm-card .form-message { margin-block: 17px; color: var(--brand); }
.confirm-card .newsletter-form { margin-top: 22px; }
.confirm-card .newsletter-form label { color: var(--ink); }
.confirm-card .newsletter-input-row input { border-color: var(--line); }
.confirm-card [hidden] { display: none !important; }
.back-link { color: var(--brand); font-size: 14px; font-weight: 750; }
.confirm-card .back-link + .back-link { margin-left: 20px; }
.privacy-card { max-width: 760px; margin: 70px auto 0; padding: 48px; border: 1px solid var(--line); border-radius: 28px; background: var(--surface); }
.privacy-card h1 { font-size: clamp(38px, 5vw, 58px); }
.privacy-intro { color: var(--muted); font-size: 20px; line-height: 1.5; }
.privacy-card section { padding-block: 20px; border-top: 1px solid var(--line); }
.privacy-card section h2 { margin-bottom: 9px; font-size: 23px; }
.privacy-card section p { margin-bottom: 0; color: var(--muted); line-height: 1.65; }
.privacy-links { display: flex; flex-wrap: wrap; gap: 10px 20px; margin-top: 20px; }
.privacy-links a { color: var(--brand); font-weight: 750; text-decoration: underline; text-underline-offset: 3px; }
.privacy-updated { margin-top: 24px; color: var(--muted); font-size: 13px; }

.details-section { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: 62px; padding-bottom: 110px; scroll-margin-top: 40px; }
.details-heading .eyebrow { margin-bottom: 17px; }
.details-heading h2 { margin-bottom: 17px; }
.details-heading > p:last-child { font-size: 16px; }
.details-section ul { margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--line); }
.details-section li { display: grid; grid-template-columns: 146px 1fr; gap: 15px; padding-block: 18px; border-bottom: 1px solid var(--line); font-size: 14px; line-height: 1.5; }
.details-section strong { color: var(--ink); font-weight: 800; }
.details-section li span { color: var(--muted); }

.site-footer { border-top: 1px solid var(--line); background: var(--surface); }
.footer-inner { display: flex; justify-content: space-between; gap: 32px; padding-block: 44px 34px; }
.footer-inner .brand { font-size: 23px; }
.footer-inner .brand-mark { width: 36px; height: 36px; }
.footer-inner p { margin: 14px 0 0; color: var(--muted); font-size: 14px; }
.footer-right { display: flex; flex-direction: column; align-items: flex-end; gap: 12px; color: var(--muted); font-size: 13px; }
.footer-right a:hover { color: var(--brand); }
.back-to-top { display: inline-flex; align-items: center; gap: 4px; }
.back-to-top .icon { width: 16px; height: 16px; }
.language-links { display: flex; gap: 12px; }
.language-links a[aria-current="page"] { color: var(--brand); font-weight: 800; }
.footer-bottom { padding-block: 15px 23px; border-top: 1px solid var(--line); color: var(--muted); font-size: 12px; }

@media (max-width: 1060px) {
  .header-inner { gap: 21px; }
  .desktop-nav { gap: 17px; }
  .header-actions { gap: 11px; }
  .login-link { display: none; }
  .proof-grid p { flex-direction: column; gap: 1px; align-items: center; }
}

@media (max-width: 790px) {
  .container { width: min(100% - 36px, 700px); }
  .header-inner { min-height: 70px; gap: 16px; }
  .brand { margin-right: auto; font-size: 23px; }
  .brand-mark { width: 38px; height: 38px; }
  .desktop-nav, .header-actions .button-small { display: none; }
  .mobile-menu { display: block; position: relative; }
  .mobile-menu summary { list-style: none; padding: 10px 12px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); font-size: 13px; font-weight: 800; cursor: pointer; }
  .mobile-menu summary::-webkit-details-marker { display: none; }
  .mobile-menu nav { position: absolute; right: 0; top: calc(100% + 8px); display: flex; flex-direction: column; min-width: 190px; padding: 8px; border: 1px solid var(--line); border-radius: 16px; background: var(--surface); box-shadow: 0 16px 28px rgb(16 30 45 / 13%); }
  .mobile-menu nav a { padding: 11px 13px; border-radius: 9px; font-size: 14px; font-weight: 700; }
  .mobile-menu nav a:hover { background: var(--surface-alt); }
  .hero { grid-template-columns: 1fr; gap: 10px; padding-block: 64px 46px; }
  .hero-copy { max-width: 690px; }
  .hero-art-wrap { width: min(100%, 600px); margin-inline: auto; }
  .proof-grid { gap: 5px; }
  .proof-grid p { padding: 0 7px; text-align: center; }
  .proof-grid strong { font-size: 15px; }
  .proof-grid span { font-size: 12px; line-height: 1.4; }
  .section { padding-block: 75px; }
  .flow-grid, .benefits-grid { grid-template-columns: 1fr; }
  .flow-step { min-height: auto; padding: 24px; }
  .flow-step-top { margin-bottom: 25px; }
  .step-connector { top: auto; bottom: -23px; left: calc(50% - 14px); right: auto; }
  .step-connector .icon { transform: rotate(90deg); }
  .benefits-grid { gap: 20px; }
  .benefit-card { padding-top: 20px; }
  .benefit-icon { margin-bottom: 17px; }
  .auth-section { margin-top: 65px; }
  .cta-section { margin-block: 70px; padding: 48px 36px; }
  .cta-doodle { right: -80px; opacity: .27; }
  .details-section { grid-template-columns: 1fr; gap: 30px; padding-bottom: 75px; }
}

@media (max-width: 480px) {
  .container { width: min(100% - 32px, 420px); }
  .header-inner { gap: 9px; }
  .header-actions { gap: 0; }
  .language-switcher { margin-right: 9px; }
  .language-switcher summary { max-width: 75px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 12px; }
  .theme-toggle { padding: 9px; min-width: 40px; min-height: 40px; justify-content: center; }
  .theme-toggle span { display: none; }
  .hero { padding-top: 49px; }
  .eyebrow { font-size: 10px; letter-spacing: .12em; }
  h1 { font-size: clamp(48px, 12vw, 66px); }
  .hero-body { font-size: 17px; }
  .hero-actions { gap: 9px 16px; }
  .hero-actions .button { width: 100%; }
  .hero-art-wrap { margin-top: 8px; }
  .proof-grid { padding-block: 21px; }
  .proof-grid p { gap: 4px; }
  .proof-grid strong { white-space: normal; font-size: 14px; line-height: 1.1; }
  .proof-grid span { font-size: 11px; }
  .section-intro h2, .details-heading h2 { font-size: 38px; }
  .section-intro > p:last-child { font-size: 16px; }
  .cta-section { border-radius: 23px; padding: 41px 25px; }
  .cta-content h2 { font-size: 38px; }
  .cta-doodle { right: -110px; }
  .auth-section { align-items: flex-start; gap: 15px; padding: 23px; }
  .auth-symbol { width: 46px; height: 46px; border-radius: 13px; }
  .auth-symbol .icon { width: 25px; height: 25px; }
  .auth-section h2 { font-size: 28px; }
  .auth-section p:last-child { font-size: 14px; }
  .newsletter-input-row { flex-direction: column; }
  .newsletter-input-row input { flex: 0 0 52px; width: 100%; }
  .newsletter-input-row .button { width: 100%; }
  .confirm-card { margin-top: 9vh; padding: 28px; }
  .details-section li { grid-template-columns: 1fr; gap: 3px; }
  .footer-inner { flex-direction: column; }
  .footer-right { align-items: flex-start; }
}

@media (prefers-reduced-motion: reduce) {
  :root { scroll-behavior: auto; }
  .button { transition: none; }
}
