/* Maya landing. Three bands: cream (who she is), ink (what you can text her), amber (start).
   The pixel eyes are the one loud element; everything else is type and space. */
:root {
  --cream: #F4ECDC;
  --paper: #FAF5EA;
  --ink: #141B22;
  --ink-2: #1D2630;
  --amber: #F2A93B;
  --muted: #6B665C;
  --muted-on-ink: #9AA3AD;
  --tg-out: #3E6A99;
  --tg-in: #1F2B38;
  --font: "Onest", "Helvetica Neue", Arial, sans-serif;
  --gutter: clamp(20px, 5vw, 56px);
  --measure: 1120px;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--cream); color: var(--ink); font-family: var(--font); font-size: 18px; line-height: 1.5; -webkit-font-smoothing: antialiased; }
a { color: inherit; }
.wrap { max-width: var(--measure); margin: 0 auto; padding-inline: var(--gutter); }
:focus-visible { outline: 3px solid var(--amber); outline-offset: 3px; border-radius: 6px; }

/* Top bar */
.top { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-block: 18px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 600; font-size: 20px; text-decoration: none; letter-spacing: -0.01em; }
.brand svg { width: 40px; height: 40px; border-radius: 50%; }
.top-right { display: flex; align-items: center; gap: 14px; }
.lang { display: flex; border: 1.5px solid var(--ink); border-radius: 999px; padding: 2px; }
.lang a { font-size: 14px; font-weight: 500; text-decoration: none; color: var(--ink); padding: 5px 11px; border-radius: 999px; }
.lang a[aria-current="page"] { background: var(--ink); color: var(--cream); }

/* Buttons */
.btn { display: inline-flex; align-items: center; gap: 10px; font: inherit; font-weight: 600; text-decoration: none; border-radius: 999px; padding: 16px 28px; background: var(--ink); color: var(--cream); transition: transform .15s ease; }
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn svg { width: 22px; height: 22px; flex: none; }
.btn.small { padding: 10px 18px; font-size: 15px; }
.btn.on-amber { background: var(--ink); color: var(--cream); }
@media (max-width: 560px) { .top .btn.small { display: none; } }

/* Hero */
.hero { text-align: center; padding-block: clamp(24px, 4.5vw, 64px) clamp(72px, 10vw, 128px); }
.eyes { display: block; width: min(520px, 78vw); height: auto; aspect-ratio: 32 / 12; margin: 0 auto; }
h1 { font-size: clamp(40px, 6.6vw, 80px); line-height: 1.02; letter-spacing: -0.035em; font-weight: 600; margin: clamp(20px, 3vw, 36px) auto 0; max-width: 13ch; text-wrap: balance; }
.lede { font-size: clamp(18px, 2.1vw, 23px); line-height: 1.45; color: var(--muted); max-width: 34em; margin: 24px auto 0; text-wrap: pretty; }
.cta-row { margin-top: 32px; display: flex; flex-direction: column; align-items: center; gap: 14px; }
.fine { font-size: 15px; color: var(--muted); margin: 0; }

/* Ink band: what you can text her */
.band-ink { background: var(--ink); color: var(--cream); padding-block: clamp(64px, 9vw, 120px); }
h2 { font-size: clamp(30px, 4.6vw, 54px); line-height: 1.06; letter-spacing: -0.03em; font-weight: 600; margin: 0; text-wrap: balance; }
.band-ink .sub { color: var(--muted-on-ink); max-width: 36em; margin: 18px 0 0; font-size: clamp(17px, 1.8vw, 20px); }
.threads { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(16px, 2.4vw, 28px); margin-top: clamp(36px, 5vw, 64px); align-items: stretch; }
.thread, .thread figure { display: flex; flex-direction: column; height: 100%; }
.thread .chat { flex: 1; }
@media (max-width: 980px) { .threads { grid-template-columns: 1fr; max-width: 420px; margin-inline: auto; } }
.thread figure { margin: 0; }
.chat { position: relative; border-radius: 30px; padding: 14px 12px 16px; min-height: 560px; display: flex; flex-direction: column; overflow: hidden; font-size: 15.5px; line-height: 1.35; }
.chat.sea { background: linear-gradient(170deg, #0F4152 0%, #0A2733 55%, #08202B 100%); }
.chat.blue { background: linear-gradient(170deg, #183A63 0%, #10263F 55%, #0C1D31 100%); }
.chat.teal { background: linear-gradient(170deg, #12473F 0%, #0C2D2A 55%, #092322 100%); }
.note { background: rgba(38, 44, 52, .92); border-radius: 22px; padding: 12px 14px; display: grid; grid-template-columns: 40px 1fr; gap: 12px; align-items: start; box-shadow: 0 10px 30px rgba(0,0,0,.28); }
.note svg { width: 40px; height: 40px; border-radius: 50%; }
.note .who { display: flex; justify-content: space-between; gap: 10px; align-items: baseline; }
.note b { font-weight: 600; }
.note time { font-size: 13px; color: #B9C0C8; white-space: nowrap; }
.note p { margin: 2px 0 0; color: #EDF0F3; }
.msgs { margin-top: auto; padding-top: 28px; display: flex; flex-direction: column; gap: 7px; }
.m { max-width: 86%; padding: 9px 12px 8px; border-radius: 17px; white-space: pre-line; color: #F2F5F8; }
.m.out { align-self: flex-end; background: var(--tg-out); border-bottom-right-radius: 6px; }
.m.in { align-self: flex-start; background: var(--tg-in); border-bottom-left-radius: 6px; }
.m .fwd { display: block; font-size: 13px; color: #A9D0FF; font-weight: 500; margin-bottom: 6px; }
.voice { display: flex; align-items: center; gap: 10px; min-width: 210px; }
.voice .play { width: 38px; height: 38px; border-radius: 50%; background: #EAF2FB; flex: none; display: grid; place-items: center; }
.voice .play::after { content: ""; border-left: 12px solid var(--tg-out); border-block: 7px solid transparent; margin-left: 3px; }
.voice .bars { display: flex; align-items: center; gap: 2px; height: 22px; flex: 1; }
.voice .bars i { width: 3px; border-radius: 2px; background: #CFE3F8; }
.voice small { font-size: 12px; color: #CFE3F8; }
.sheet { width: 172px; height: 208px; background: #F3F0E8; border-radius: 10px; padding: 18px 16px; display: grid; gap: 9px; align-content: start; transform: rotate(-1.5deg); }
.sheet i { height: 5px; border-radius: 3px; background: #C9C3B5; }
.sheet i:first-child { width: 46%; height: 9px; background: #8E8777; margin-bottom: 6px; }
.m.photo { padding: 5px; background: var(--tg-out); }
.kb { align-self: flex-start; width: 86%; background: rgba(31, 43, 56, .78); color: #F2F5F8; border-radius: 12px; padding: 11px 12px; text-align: center; font-weight: 500; position: relative; }
.kb::after { content: ""; position: absolute; top: 8px; right: 9px; width: 7px; height: 7px; border-top: 1.5px solid #B9C0C8; border-right: 1.5px solid #B9C0C8; }
figcaption { margin-top: 16px; font-size: 18px; font-weight: 500; color: var(--cream); }
figcaption span { display: block; font-size: 15px; font-weight: 400; color: var(--muted-on-ink); margin-top: 3px; }

/* Motion without scripts. The eyes blink on a timer and smile when the button is hovered.
   A thread's messages arrive as it scrolls through the screen, where the browser supports it. */
.eyes .e-closed, .eyes .e-happy { opacity: 0; }
@keyframes eye-open { 0%, 95.5% { opacity: 1; } 95.6%, 98.4% { opacity: 0; } 98.5%, 100% { opacity: 1; } }
@keyframes eye-shut { 0%, 95.5% { opacity: 0; } 95.6%, 98.4% { opacity: 1; } 98.5%, 100% { opacity: 0; } }
@keyframes arrive { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: no-preference) {
  /* The negative delay puts the first blink about a second and a half after the page loads. */
  .eyes .e-open { animation: eye-open 5.2s step-end -3.5s infinite; }
  .eyes .e-closed { animation: eye-shut 5.2s step-end -3.5s infinite; }
  @supports (animation-timeline: view()) {
    .chat { view-timeline: --chat block; }
    .chat .m, .chat .kb, .chat .note { animation: arrive linear both; animation-timeline: --chat; animation-range: cover calc(10% + var(--i) * 3.5%) cover calc(18% + var(--i) * 3.5%); }
  }
}
:is(.hero, .band-amber):has(.btn:hover, .btn:focus-visible) .eyes :is(.e-open, .e-closed) { animation: none; opacity: 0; }
:is(.hero, .band-amber):has(.btn:hover, .btn:focus-visible) .eyes .e-happy { opacity: 1; }
@media (prefers-reduced-motion: reduce) { .btn { transition: none; } html { scroll-behavior: auto; } }

/* Cream band: what makes her different */
.band-cream { padding-block: clamp(64px, 9vw, 120px); }
.points { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(32px, 5vw, 64px) clamp(32px, 6vw, 96px); margin-top: clamp(36px, 5vw, 64px); }
@media (max-width: 760px) { .points { grid-template-columns: 1fr; } }
.points h3 { font-size: clamp(22px, 2.6vw, 30px); line-height: 1.15; letter-spacing: -0.02em; font-weight: 600; margin: 0 0 10px; }
.points p { margin: 0; color: var(--muted); max-width: 30em; }
.takes { margin-top: clamp(48px, 7vw, 96px); padding-top: clamp(28px, 4vw, 40px); border-top: 1.5px solid var(--ink); display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: 24px clamp(32px, 6vw, 96px); }
@media (max-width: 760px) { .takes { grid-template-columns: 1fr; } }
.takes h3 { font-size: clamp(22px, 2.6vw, 30px); letter-spacing: -0.02em; line-height: 1.15; font-weight: 600; margin: 0; }
.takes ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 32px; }
@media (max-width: 520px) { .takes ul { grid-template-columns: 1fr; } }
.takes li { padding-left: 22px; position: relative; }
.takes li::before { content: ""; position: absolute; left: 0; top: .5em; width: 10px; height: 10px; background: var(--amber); }

/* Amber band: start */
.band-amber { background: var(--amber); padding-block: clamp(56px, 8vw, 104px); text-align: center; }
.band-amber .eyes { width: min(300px, 60vw); }
.band-amber h2 { margin-top: 12px; }
.band-amber .cta-row { margin-top: 30px; }
.band-amber .fine { color: #5A3D0C; }

footer { background: var(--ink); color: var(--muted-on-ink); font-size: 15px; padding-block: 28px; }
footer .wrap { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
footer a { color: var(--cream); text-decoration: none; }
footer a:hover { text-decoration: underline; }

/* FAQ */
.faq { margin-top: clamp(56px, 8vw, 104px); display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: 24px clamp(32px, 6vw, 96px); }
@media (max-width: 760px) { .faq { grid-template-columns: 1fr; } }
.faq h2 { font-size: clamp(26px, 3.4vw, 40px); }
.faq-list { border-top: 1.5px solid var(--ink); }
.faq details { border-bottom: 1.5px solid var(--ink); }
.faq summary { cursor: pointer; list-style: none; padding: 18px 40px 18px 0; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 4px; top: 14px; font-size: 26px; font-weight: 400; line-height: 1; }
.faq details[open] summary::after { content: "\2212"; }
.faq summary h3 { display: inline; font-size: clamp(18px, 2vw, 21px); font-weight: 500; letter-spacing: -0.01em; margin: 0; }
.faq details p { margin: 0 0 20px; color: var(--muted); max-width: 38em; }

/* Footer links and the two legal pages */
footer nav { display: flex; gap: 20px; flex-wrap: wrap; }
.legal { max-width: 680px; padding-block: clamp(24px, 5vw, 56px) clamp(64px, 9vw, 112px); }
.legal h1 { font-size: clamp(36px, 5.4vw, 56px); margin: 0; max-width: none; text-align: left; }
.legal .updated { color: var(--muted); font-size: 15px; margin: 12px 0 0; }
.legal .intro { font-size: clamp(18px, 2vw, 21px); margin: 28px 0 0; }
.legal h2 { font-size: clamp(20px, 2.4vw, 24px); letter-spacing: -0.015em; line-height: 1.2; margin: 40px 0 10px; }
.legal p { margin: 0 0 12px; }
.legal ul { margin: 0 0 12px; padding-left: 1.2em; }
.legal li { margin-bottom: 8px; }
.legal mark { background: var(--amber); color: var(--ink); padding: 1px 4px; border-radius: 4px; }

/* 404: the eyes dart left and right, looking for the page */
.lost { min-height: 62vh; }
.lost .fine { display: flex; gap: 20px; justify-content: center; flex-wrap: wrap; }
@keyframes search { 0%, 22% { transform: translateX(0); } 28%, 50% { transform: translateX(-6.25%); } 56%, 78% { transform: translateX(6.25%); } 84%, 100% { transform: translateX(0); } }
@media (prefers-reduced-motion: no-preference) { .lost .eyes { animation: search 4.4s steps(1, end) infinite; } }
