/* 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;
  --on-brand: #ffffff;
  --gold: #f5cb68;
  --mint: #bde9da;
  --warning-bg: #fff7e6;
  --warning-ink: #684817;
  --warning-line: #e9ca81;
  --danger-ink: #b42336;
  --danger-solid: #b42336;
  --on-danger: #ffffff;
  --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;
  --on-brand: #101c2a;
  --gold: #f0c775;
  --mint: #83cdb5;
  --warning-bg: #3b321f;
  --warning-ink: #f5d99a;
  --warning-line: #816b3e;
  --danger-ink: #ffabb5;
  --danger-solid: #ae3346;
  --on-danger: #ffffff;
  --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;
}

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

.site-header { border-bottom: 1px solid var(--line); }
.header-inner { min-height: 86px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 11px; color: var(--ink); text-decoration: none; white-space: nowrap; font-size: 26px; font-weight: 850; letter-spacing: -.06em; line-height: 1; }
.brand-mark { width: 42px; height: 42px; color: var(--brand-solid); }
.brand-mark svg { width: 100%; height: 100%; }
.brand-dot { color: var(--brand); }
.theme-toggle { display: inline-flex; align-items: center; gap: 8px; padding: 10px 13px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); color: var(--ink); font-size: 12px; font-weight: 750; cursor: pointer; }
.theme-toggle:hover { border-color: var(--brand); }
.theme-icon { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.theme-sun { display: none; }
[data-theme="dark"] .theme-sun { display: block; }
[data-theme="dark"] .theme-moon { display: none; }

.hero { flex: 1; display: grid; grid-template-columns: minmax(0, .95fr) minmax(420px, 1.05fr); align-items: center; gap: 72px; padding-block: 86px 96px; }
.hero-copy { position: relative; z-index: 2; }
.eyebrow { display: flex; align-items: center; gap: 10px; margin: 0 0 21px; color: var(--brand); font-size: 12px; font-weight: 850; letter-spacing: .14em; text-transform: uppercase; }
.eyebrow span { width: 9px; height: 9px; border-radius: 50%; background: var(--mint); box-shadow: inset 0 0 0 2px #278c68; }
h1 { margin: 0 0 25px; font-size: clamp(53px, 5.7vw, 78px); line-height: .99; letter-spacing: -.06em; font-weight: 850; }
h1 em { position: relative; color: var(--brand); font-style: normal; white-space: nowrap; }
h1 em::after { content: ""; position: absolute; left: 2%; right: 1%; bottom: -10px; height: 8px; border-radius: 50%; border-bottom: 6px solid var(--gold); transform: rotate(-2deg); }
.intro { max-width: 570px; margin: 0 0 32px; color: var(--muted); font-size: clamp(18px, 1.7vw, 21px); line-height: 1.58; }
.primary-action { display: inline-flex; align-items: center; justify-content: center; gap: 11px; min-height: 53px; padding: 0 23px; border-radius: 16px; background: var(--brand-solid); color: #fff; text-decoration: none; font-size: 15px; font-weight: 800; box-shadow: 0 8px 18px rgb(35 73 145 / 15%); transition: transform .18s ease, background-color .18s ease, box-shadow .18s ease; }
.primary-action:hover { background: var(--brand-hover); transform: translateY(-2px); box-shadow: 0 12px 22px rgb(35 73 145 / 20%); }
.primary-action svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.launch-note { margin: 16px 0 0; color: var(--muted); font-size: 13px; font-weight: 650; }

.preview { position: relative; min-width: 0; padding: 32px 22px 28px 42px; }
.preview-card { position: relative; z-index: 2; padding: 29px; border: 1px solid var(--art-border); border-radius: 28px; background: var(--art-card); box-shadow: 0 24px 60px rgb(23 43 64 / 13%); transform: rotate(1.2deg); }
.preview-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; margin-bottom: 26px; }
.preview-head > div { display: grid; gap: 5px; }
.preview-kicker { color: var(--art-muted); font-size: 10px; font-weight: 850; letter-spacing: .13em; }
.preview-head strong { color: var(--art-text); font-size: 29px; letter-spacing: -.04em; }
.status { display: inline-flex; align-items: center; gap: 7px; padding: 8px 10px; border-radius: 999px; background: var(--art-green-soft); color: var(--art-green); font-size: 10px; font-weight: 800; }
.status i { width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.week { height: 139px; display: grid; grid-template-columns: repeat(5, 1fr); align-items: end; gap: 10px; padding: 15px 18px 13px; border-radius: 19px; background: var(--art-soft); }
.week div { height: 100%; display: grid; grid-template-rows: 18px 1fr 17px; align-items: end; justify-items: center; gap: 5px; }
.week span, .week small { color: var(--art-muted); font-size: 9px; font-weight: 750; }
.week b { width: min(28px, 68%); height: var(--hours); min-height: 18px; align-self: end; border-radius: 8px 8px 4px 4px; background: var(--art-blue); opacity: .9; }
.week div:nth-child(even) b { background: var(--art-green); }
.project-row { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 12px; margin-top: 13px; padding: 13px 15px; border: 1px solid var(--art-border); border-radius: 16px; color: var(--art-text); }
.project-icon { width: 35px; height: 35px; border-radius: 11px; background: var(--art-blue-soft); }
.project-row.mint .project-icon { background: var(--art-green-soft); }
.project-row > span:nth-child(2) { display: grid; gap: 2px; }
.project-row small { color: var(--art-muted); font-size: 9px; font-weight: 700; }
.project-row strong, .project-row > b { font-size: 12px; }
.sun { position: absolute; z-index: 0; top: 0; right: -18px; width: 140px; height: 140px; border-radius: 50%; background: var(--gold); opacity: .75; }
.doodle { position: absolute; z-index: 3; right: -23px; bottom: -12px; width: 150px; color: var(--brand); transform: rotate(-9deg); }
.doodle path { stroke: currentColor; stroke-width: 5; stroke-linecap: round; stroke-linejoin: round; }

.site-footer { border-top: 1px solid var(--line); background: var(--surface); }
.footer-inner { min-height: 112px; display: flex; align-items: center; justify-content: space-between; gap: 32px; color: var(--muted); font-size: 13px; }
.footer-company { display: grid; gap: 5px; }
.footer-inner strong { color: var(--ink); font-size: 14px; }
.footer-inner a { color: var(--brand); font-weight: 750; text-underline-offset: 3px; }
.footer-links { display: flex; align-items: center; gap: 22px; margin-left: auto; }

@media (max-width: 870px) {
  .hero { grid-template-columns: 1fr; gap: 52px; padding-block: 68px 74px; }
  .hero-copy { max-width: 680px; }
  .preview { width: min(100%, 590px); margin-inline: auto; }
}

@media (max-width: 560px) {
  .shell { width: min(100% - 32px, 1120px); }
  .header-inner { min-height: 72px; }
  .brand { font-size: 23px; }
  .brand-mark { width: 38px; height: 38px; }
  .theme-toggle span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .theme-toggle { padding: 10px; }
  .hero { padding-block: 53px 62px; }
  h1 { font-size: clamp(44px, 13.5vw, 63px); }
  .preview { padding: 22px 0 24px; }
  .preview-card { padding: 20px; border-radius: 23px; transform: none; }
  .preview-head strong { font-size: 25px; }
  .week { padding-inline: 10px; gap: 5px; }
  .sun { right: -24px; width: 105px; height: 105px; }
  .doodle { right: -12px; width: 118px; }
  .footer-inner { align-items: flex-start; flex-direction: column; padding-block: 28px; }
  .footer-links { align-items: flex-start; flex-direction: column; gap: 10px; margin-left: 0; }
}

@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; transition: none !important; }
}
