/* Albert landing page · albert.rel-8.ai
   Layout: full-width bands; hero splits copy | demo call card; sign-up splits pitch | form.
   One light "morning" look by design. */
:root {
  --bg: #f2f6f9;      /* cool morning sky */
  --ink: #10283d;     /* deep night-blue text */
  --soft: #44586a;    /* secondary text, AA on bg and card */
  --sun: #f4b63f;     /* marigold accent */
  --sun-ink: #3b2a00;
  --card: #ffffff;
  --line: #d4dee7;
  --green: #2f6b55;
  --al: #fff2d3;      /* Albert speech bubble: sunny, like the owl */
  --me: #e6eff6;      /* caller speech bubble */
  --display: "Bricolage Grotesque", "Avenir Next", system-ui, sans-serif;
  --body: "Atkinson Hyperlegible", "Verdana", system-ui, sans-serif;
  --pad: clamp(16px, 5vw, 64px);
  color-scheme: light;
}
* { box-sizing: border-box }
[hidden] { display: none !important } /* keep `hidden` working on elements that set their own display (form, success message) */
html { scroll-behavior: smooth }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto } }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--body); font-size: 19px; line-height: 1.6 }
h1, h2, h3, p, ol, ul { margin: 0 }
a { color: inherit }
:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; border-radius: 4px }
.in { max-width: 1080px; margin: 0 auto; padding-inline: var(--pad) }
.in > * { min-width: 0 }
section { padding-block: clamp(56px, 8vw, 96px) }
.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 8px; z-index: 10 }
.skip:focus { left: 8px }

/* nav */
nav.top { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding-block: 22px }
.logo { font-family: var(--display); font-weight: 800; font-size: 30px; display: flex; align-items: center; gap: 12px; text-decoration: none; letter-spacing: -.01em }
.logo img { flex: none; display: block }
.logo small { font-family: var(--body); font-weight: 400; font-size: 15px; color: var(--soft); letter-spacing: 0 }
.head-right { display: flex; align-items: center; gap: 12px }
.head-cta { display: none; background: var(--sun); color: var(--sun-ink); font-weight: 700; font-size: 17px; padding: 10px 18px; border-radius: 12px; text-decoration: none; white-space: nowrap }
/* header stays fixed at the top; slims down and shows the sign-up button once the page scrolls */
.site-head { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 15; background: var(--bg); transition: box-shadow .2s }
.site-head nav.top { transition: padding .2s }
.site-head.scrolled { box-shadow: 0 1px 0 var(--line), 0 10px 24px -18px rgba(16,40,61,.4) }
.site-head.scrolled nav.top { padding-block: 12px }
.site-head.scrolled .head-cta { display: inline-block }
html { scroll-padding-top: 96px }
@media (max-width: 560px) { .logo small { display: none } .site-head.scrolled .head-cta { display: none } }
.lang { display: flex; gap: 4px; padding: 4px; background: var(--card); border: 1px solid var(--line); border-radius: 12px }
.lang button { font: inherit; font-size: 17px; font-weight: 700; border: 0; background: none; color: var(--ink); padding: 8px 14px; border-radius: 9px; cursor: pointer; min-width: 52px }
.lang button[aria-pressed="true"] { background: var(--ink); color: #fff }

/* hero */
.hero { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: clamp(32px, 5vw, 56px); align-items: start; padding-block: 32px 88px }
.eyebrow { font-weight: 700; color: var(--green); font-size: 17px; line-height: 1.4; margin-bottom: 20px; display: inline-grid; grid-template-columns: auto minmax(0, 1fr); column-gap: 10px; align-items: start; background: #e3f0e9; padding: 8px 16px 8px 14px; border-radius: 16px }
.eyebrow .dot { width: 10px; height: 10px; margin-top: .4em; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 3px rgba(47,107,85,.22) }
h1 { font-family: var(--display); font-weight: 700; font-size: clamp(40px, 5.8vw, 68px); line-height: 1.03; letter-spacing: -.025em; text-wrap: balance }
.lede { font-size: clamp(20px, 2vw, 23px); color: var(--soft); margin-top: 22px; max-width: 34ch }
.ctas { display: flex; flex-wrap: wrap; gap: 14px 20px; margin-top: 34px; align-items: center }
.btn { background: var(--sun); color: var(--sun-ink); font-weight: 700; font-size: 20px; padding: 17px 30px; border-radius: 14px; text-decoration: none; display: inline-flex; align-items: center; gap: 10px; box-shadow: 0 2px 0 #d39a24; transition: transform .15s }
.btn:hover { transform: translateY(-2px) }
.ctas .free { font-size: 17px; color: var(--soft) }

.call { margin: 0; background: var(--card); border-radius: 24px; padding: clamp(20px, 3vw, 28px); box-shadow: 0 34px 70px -38px rgba(16,40,61,.5); display: grid; gap: 14px }
.call .who { display: flex; align-items: center; gap: 14px; font-weight: 700; font-size: 20px; padding-bottom: 6px; border-bottom: 1px solid var(--line) }
.call .who .av { width: 76px; height: 76px; border-radius: 50%; display: block; flex: none }
.call[data-state="live"] .who .av { box-shadow: 0 0 0 4px var(--card), 0 0 0 7px var(--green) }
@media (prefers-reduced-motion: no-preference) { .call[data-state="live"] .who .av { animation: talk 1.6s ease-in-out infinite } }
@keyframes talk { 50% { box-shadow: 0 0 0 4px var(--card), 0 0 0 11px rgba(47,107,85,.35) } }
.call .who small { display: block; font-weight: 400; color: var(--green); font-size: 15px }
.say { padding: 12px 16px; border-radius: 18px; font-size: 18px; line-height: 1.45; max-width: 90% }
.say.al { background: var(--al); border-bottom-left-radius: 4px }
.say.me { background: var(--me); justify-self: end; border-bottom-right-radius: 4px }
.call .cap { font-size: 14px; color: var(--soft); text-align: center }
@media (prefers-reduced-motion: no-preference) {
  .say { animation: rise .5s both } .say:nth-of-type(2) { animation-delay: .35s } .say:nth-of-type(3) { animation-delay: .7s }
}
@keyframes rise { from { transform: translateY(8px) } to { transform: none } }

/* facts strip */
.strip { background: var(--ink); color: #e6eef5; padding-block: 24px }
.strip ul { list-style: none; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; text-align: center; gap: 14px clamp(40px, 7vw, 88px); font-size: 18px }
.strip b { color: var(--sun) }

/* section headings */
h2 { font-family: var(--display); font-weight: 700; font-size: clamp(32px, 3.8vw, 44px); line-height: 1.1; letter-spacing: -.015em; text-wrap: balance; max-width: 22ch }
.sec-lede { color: var(--soft); margin-top: 14px; max-width: 52ch }
h3 { font-size: 22px; line-height: 1.3 }

/* steps */
.steps { counter-reset: s; list-style: none; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 32px; margin-top: 44px }
.steps li { counter-increment: s; display: grid; gap: 8px; align-content: start }
.steps li::before { content: counter(s); font-family: var(--display); font-weight: 800; font-size: 26px; width: 54px; height: 54px; border-radius: 50%; background: var(--ink); color: #fff; display: grid; place-items: center; margin-bottom: 6px }

/* FAQ */
.faq { background: var(--card); border-block: 1px solid var(--line) }
.faq .in { display: grid; grid-template-columns: .8fr 1.2fr; gap: 48px }
.faq details { border-bottom: 1px solid var(--line) }
.faq details:first-child { border-top: 1px solid var(--line) }
.faq summary { cursor: pointer; list-style: none; font-weight: 700; font-size: 20px; padding: 20px 44px 20px 0; position: relative }
.faq summary::-webkit-details-marker { display: none }
.faq summary::after { content: "+"; position: absolute; right: 6px; top: 50%; transform: translateY(-50%); font-family: var(--display); font-size: 30px; font-weight: 600; color: var(--green) }
.faq details[open] summary::after { content: "–" }
.faq details p { padding: 0 0 22px; color: var(--soft); max-width: 60ch }

/* sign-up */
.sign .in { display: grid; grid-template-columns: minmax(0, .7fr) minmax(0, 1.3fr); gap: clamp(32px, 4vw, 56px); align-items: start; max-width: 1200px }
.sign .pitch ul { margin-top: 22px; padding: 0; list-style: none; display: grid; gap: 12px; color: var(--soft) }
.sign .pitch li { display: grid; grid-template-columns: 26px 1fr; gap: 10px }
.panel { background: var(--card); border-radius: 22px; padding: clamp(22px, 4vw, 48px); box-shadow: 0 30px 60px -40px rgba(16,40,61,.45) }
form { display: grid; gap: 20px }
.f { display: grid; gap: 6px; font-weight: 700 }
.f .opt { font-weight: 400; color: var(--soft) }
.f .hint { font-weight: 400; font-size: 16px; color: var(--soft) }
input[type=text], input[type=tel], textarea { font: inherit; font-size: 20px; padding: 14px 16px; border-radius: 12px; border: 2px solid var(--line); background: var(--bg); color: var(--ink); width: 100%; min-width: 0 }
input:focus, textarea:focus { outline: 3px solid var(--sun); outline-offset: 1px; border-color: var(--ink) }
input[aria-invalid="true"] { border-color: #b3261e }
.err { color: #b3261e; font-size: 16px; font-weight: 700 }
textarea { min-height: 104px; resize: vertical }
fieldset.f { border: 0; margin: 0; padding: 0; min-width: 0 }
fieldset.f legend { padding: 0; margin-bottom: 6px }
.choices { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px }
.choice { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border: 2px solid var(--line); border-radius: 12px; background: var(--bg); cursor: pointer; font-weight: 700; font-size: 20px }
.choice input { width: 24px; height: 24px; margin: 0; accent-color: var(--ink); flex: none }
.choice:has(input:checked) { border-color: var(--ink); background: var(--card); box-shadow: inset 0 0 0 1px var(--ink) }
.choice:has(input:focus-visible) { outline: 3px solid var(--sun); outline-offset: 1px }
.tel-row { display: grid; grid-template-columns: minmax(0, 13em) minmax(0, 1fr); gap: 10px }
select { font: inherit; font-size: 19px; padding: 14px 12px; border-radius: 12px; border: 2px solid var(--line); background: var(--bg); color: var(--ink); width: 100%; min-width: 0; cursor: pointer }
select:focus { outline: 3px solid var(--sun); outline-offset: 1px; border-color: var(--ink) }
@media (max-width: 480px) { .tel-row { grid-template-columns: 1fr } }
.consent { display: grid; grid-template-columns: 32px 1fr; gap: 12px; align-items: start; font-size: 17px; line-height: 1.5; cursor: pointer; padding: 16px; background: var(--bg); border-radius: 12px }
.consent input { width: 28px; height: 28px; margin: 0; accent-color: var(--ink); cursor: pointer }
.consent a { font-weight: 700 }
.go { font: inherit; font-weight: 700; font-size: 21px; padding: 17px 32px; border-radius: 14px; border: 0; cursor: pointer; background: var(--ink); color: #fff; justify-self: start }
.go:disabled { cursor: not-allowed; background: #9fb0bf }
.go[aria-busy="true"] { cursor: progress; opacity: .8 }
.go-note { font-size: 16px; color: var(--soft); margin-top: -8px }
.hp { position: absolute; left: -5000px; width: 1px; height: 1px; overflow: hidden }
.done { display: grid; gap: 12px; justify-items: start }
.done-owl { position: relative; display: block; width: 112px; height: 112px }
.done-owl img { display: block }
.done .tick { position: absolute; right: -4px; bottom: 2px; width: 40px; height: 40px; border-radius: 50%; background: var(--green); border: 3px solid var(--card); display: grid; place-items: center }
.done h3 { font-family: var(--display); font-size: 30px; line-height: 1.15 }
.done p { color: var(--soft) }

/* voice demo card: idle shows the example chat, live shows the waveform, ended invites to sign up */
.call .who > div { flex: 1; min-width: 0 }
.timer { font-family: var(--display); font-weight: 700; font-size: 20px; font-variant-numeric: tabular-nums; color: var(--soft); visibility: hidden }
.call .preview { display: grid; gap: 14px }
.call .live, .call .ended, .demo-signup { display: none }
.call[data-state="connecting"] .preview, .call[data-state="live"] .preview, .call[data-state="ended"] .preview { display: none }
.call[data-state="connecting"] .live, .call[data-state="live"] .live { display: grid; gap: 10px; justify-items: center }
.call[data-state="ended"] .ended { display: grid; gap: 6px }
.call[data-state="ended"] .demo-signup { display: inline-flex }
.call[data-state="live"] .timer { visibility: visible; color: var(--ink) }
.call canvas { width: 100%; height: 140px; max-width: 100% }
.live-hint { color: var(--green); font-weight: 700; font-size: 18px; text-align: center }
.call[data-state="connecting"] .live-hint { color: var(--soft) }
.ended-h { font-family: var(--display); font-weight: 700; font-size: 26px; line-height: 1.2 }
.ended p:last-child { color: var(--soft) }
.demo-actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center }
.demo-btn { font: inherit; font-weight: 700; font-size: 19px; display: inline-flex; align-items: center; gap: 10px; padding: 14px 22px; border-radius: 999px; border: 2px solid var(--ink); background: var(--card); color: var(--ink); cursor: pointer }
.demo-btn:hover { background: var(--al) }
.call[data-state="live"] .demo-btn, .call[data-state="connecting"] .demo-btn { background: #b3261e; border-color: #b3261e; color: #fff }
.demo-signup { font-weight: 700; font-size: 19px; padding: 14px 22px; border-radius: 999px; background: var(--sun); color: var(--sun-ink); text-decoration: none }
.call .cap { text-align: left }

/* a week with Albert */
.week { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(32px, 5vw, 64px); align-items: start }
.week-intro { position: sticky; top: calc(env(safe-area-inset-top, 0px) + 104px) } /* clears the fixed header (~77px when slim) */
.tl { list-style: none; padding: 0; display: grid; gap: 14px }
.tl li { display: grid; grid-template-columns: 76px 1fr; gap: 20px; align-items: start; background: var(--card); border: 1px solid var(--line); border-radius: 18px; padding: 20px 22px }
.tl li > div { min-width: 0 }
.tl .day { font-family: var(--display); font-weight: 800; font-size: 20px; text-align: center; background: var(--ink); color: #fff; border-radius: 12px; padding: 10px 0 }
.tl h3 { margin-bottom: 4px }
.tl p { color: var(--soft) }
.tl li.next { background: transparent; border: 2px dashed var(--line) }
.tl li.next .day { background: var(--sun); color: var(--sun-ink); font-size: 16px; padding: 12px 0 }
@media (max-width: 860px) { .week { grid-template-columns: 1fr } .week-intro { position: static } }
@media (max-width: 480px) { .tl li { grid-template-columns: 1fr; gap: 10px } .tl .day { justify-self: start; padding: 6px 16px } }

footer { padding-block: 36px 48px; font-size: 16px; color: var(--soft); border-top: 1px solid var(--line) }
footer .in { display: flex; flex-wrap: wrap; gap: 12px 28px; justify-content: space-between }
footer nav { display: flex; flex-wrap: wrap; gap: 8px 24px }

@media (max-width: 860px) { .hero, .sign .in, .faq .in { grid-template-columns: 1fr } .hero { padding-bottom: 64px } }

.how { padding-top: 0 }

/* privacy page */
.legal { padding-block: 24px 80px }
.prose { max-width: 820px; display: grid; gap: 16px }
.prose h1 { font-size: clamp(36px, 5vw, 52px) }
.prose h2 { font-size: clamp(24px, 2.6vw, 30px); margin-top: 28px; max-width: none }
.prose ul { padding-left: 1.3em; display: grid; gap: 6px }
.prose address { font-style: normal; background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 16px 20px }
.prose a { font-weight: 700 }
.prose .meta { color: var(--soft); font-size: 17px }
.prose .summary { background: var(--card); border-radius: 18px; padding: clamp(20px, 3vw, 28px); box-shadow: 0 24px 50px -36px rgba(16,40,61,.45); display: grid; gap: 10px }
.prose .summary h2 { margin-top: 0 }
mark.todo { background: #ffe08a; color: var(--sun-ink); padding: 0 4px; border-radius: 4px }
.draft-note { max-width: 820px; margin: 0 auto 28px; padding: 14px 18px; border-radius: 14px; background: #fff2d3; border: 2px dashed var(--sun); font-size: 17px }
