/* vaylapp.com. Plain CSS, no build step. Colours follow the app (VaylPalette): cool light page, white cards,
   ink for what you press, soft blue only on fills without words, coral and sun as small signal dots. */
:root {
  --page: #F5F5F9;
  --card: #FFFFFF;
  --card2: #EEEEF3;
  --line: #E7E9EC;
  --ink: #161616;
  --text: #161616;
  --sub: #5B5E66;
  --mute: #8A8D95;
  --press: #1E1E21;
  --on-press: #FFFFFF;
  --band: #161616;
  --on-band: #FFFFFF;
  --band-sub: #A6A8AF;
  --accent: #6090F8;
  --accent-on-ink: #8DB0FF;
  --coral: #FF5B2E;
  --sun: #FFC83D;
  --bubble: #EFEFF4;
  --shadow: 0 1px 2px rgba(20, 22, 30, .04), 0 12px 32px rgba(20, 22, 30, .07);
  --glass: rgba(255, 255, 255, .72);
  --glass-line: rgba(255, 255, 255, .9);
  --sky-a: rgba(255, 196, 150, .55);
  --sky-b: rgba(120, 160, 255, .45);
  --sky-c: rgba(170, 160, 255, .30);
  --round: ui-rounded, "SF Pro Rounded", "SF Pro Display", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --body: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root {
    --page: #000000;
    --card: #1C1C1E;
    --card2: #2A2A2D;
    --line: #2C2C2F;
    --text: #F5F5F7;
    --sub: #A6A8AF;
    --mute: #7C7F87;
    --press: #F2F2F7;
    --on-press: #161616;
    --band: #232325;
    --bubble: #2C2C30;
    --shadow: 0 1px 2px rgba(0, 0, 0, .4), 0 12px 32px rgba(0, 0, 0, .35);
    --glass: rgba(40, 40, 44, .72);
    --glass-line: rgba(255, 255, 255, .08);
    --sky-a: rgba(255, 150, 110, .16);
    --sky-b: rgba(80, 120, 255, .22);
    --sky-c: rgba(120, 100, 255, .14);
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 88px; }
body {
  margin: 0; background: var(--page); color: var(--text);
  font: 17px/1.55 var(--body); -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--round); font-weight: 700; letter-spacing: -.025em; line-height: 1.08; margin: 0; }
h1 { font-size: clamp(40px, 7vw, 76px); }
h2 { font-size: clamp(32px, 4.6vw, 52px); }
h3 { font-size: 22px; letter-spacing: -.015em; line-height: 1.2; }
p { margin: 0; }
.wrap { max-width: 1160px; margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 760px; }
.center { text-align: center; }
.lede { font-size: clamp(18px, 2vw, 21px); color: var(--sub); line-height: 1.5; }
.sub { color: var(--sub); }
.small { font-size: 14px; color: var(--mute); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--press); color: var(--on-press); padding: 8px 14px; border-radius: 99px; z-index: 99; }
.skip:focus { left: 12px; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 8px; }

/* Header */
.top { position: sticky; top: 0; z-index: 50; padding: 12px 0; }
.top .bar {
  display: flex; align-items: center; gap: 20px; padding: 10px 10px 10px 20px; border-radius: 99px;
  background: var(--glass); border: 1px solid var(--glass-line); box-shadow: var(--shadow);
  -webkit-backdrop-filter: saturate(1.6) blur(18px); backdrop-filter: saturate(1.6) blur(18px);
}
.logo { display: block; height: 26px; width: auto; }
.logo-dark { display: none; }
@media (prefers-color-scheme: dark) { .logo-light { display: none; } .logo-dark { display: block; } }
.nav { display: flex; gap: 22px; margin: 0 auto; font-size: 15px; }
.nav a { text-decoration: none; color: var(--sub); }
.nav a:hover { color: var(--text); }
@media (max-width: 760px) { .nav { display: none; } .top .bar > .btn { margin-left: auto; } }

/* Buttons and pills */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 0; cursor: pointer;
  font: 600 16px/1 var(--body); text-decoration: none; border-radius: 99px; padding: 14px 22px;
  background: var(--press); color: var(--on-press); white-space: nowrap;
}
.btn:hover { opacity: .9; }
.btn.small-btn { padding: 11px 18px; font-size: 15px; }
.btn.glass { background: var(--glass); color: var(--text); border: 1px solid var(--line); }
.pill {
  display: inline-flex; align-items: center; gap: 8px; padding: 7px 14px; border-radius: 99px; font-size: 14px; font-weight: 600;
  background: var(--glass); border: 1px solid var(--glass-line); box-shadow: var(--shadow);
}
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); flex: none; }
.dot.coral { background: var(--coral); }
.dot.sun { background: var(--sun); }
.tag { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 8px; font-size: 13px; font-weight: 600; background: var(--card2); color: var(--text); }

/* Hero with the app's sky: three soft lights drifting slowly */
.hero { position: relative; padding: 56px 0 0; isolation: isolate; }
.sky { position: absolute; inset: -120px 0 0; z-index: -1; overflow: hidden; pointer-events: none; }
.sky i { position: absolute; border-radius: 50%; filter: blur(60px); }
.sky i:nth-child(1) { width: 60vw; height: 60vw; left: -18vw; top: -10vw; background: var(--sky-a); animation: drift1 22s ease-in-out infinite alternate; }
.sky i:nth-child(2) { width: 55vw; height: 55vw; right: -16vw; top: 0; background: var(--sky-b); animation: drift2 26s ease-in-out infinite alternate; }
.sky i:nth-child(3) { width: 70vw; height: 40vw; left: 15vw; top: 45%; background: var(--sky-c); animation: drift1 20s ease-in-out infinite alternate-reverse; }
@keyframes drift1 { to { transform: translate(6vw, 4vw) scale(1.08); } }
@keyframes drift2 { to { transform: translate(-5vw, 6vw) scale(.94); } }
@media (prefers-reduced-motion: reduce) { .sky i { animation: none; } html { scroll-behavior: auto; } }
.hero h1 { max-width: 900px; margin: 22px auto 0; }
.hero .lede { max-width: 640px; margin: 22px auto 0; }

/* Waitlist form */
.join { display: flex; gap: 8px; max-width: 470px; margin: 30px auto 0; padding: 6px; border-radius: 99px; background: var(--card); box-shadow: var(--shadow); border: 1px solid var(--line); }
.join input[type=email] { flex: 1; min-width: 0; border: 0; background: transparent; color: var(--text); font: 16px var(--body); padding: 0 16px; outline: none; }
.join input::placeholder { color: var(--mute); }
.join .hp { position: absolute; left: -9999px; }
.join { flex-wrap: wrap; }
.join .ts { flex-basis: 100%; display: flex; justify-content: center; }
.join .ts:empty { display: none; }
.join-note { margin-top: 12px; font-size: 14px; color: var(--mute); min-height: 1.5em; }
.join-note.ok { color: var(--text); }
.join-note.ok::before { content: ""; display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); margin-right: 8px; vertical-align: middle; }
@media (max-width: 460px) { .join { flex-direction: column; border-radius: 26px; } .join input[type=email] { padding: 12px 14px; } }

/* Phones */
.phones { position: relative; display: flex; justify-content: center; align-items: flex-end; gap: 0; margin: 56px auto 0; max-width: 980px; height: 560px; overflow: hidden; }
.phone {
  position: relative; width: 290px; aspect-ratio: 607 / 1320; border-radius: 46px; padding: 9px; flex: none;
  background: #0B0B0C; box-shadow: 0 30px 60px rgba(20, 22, 40, .22), inset 0 0 0 1.5px #3A3A3E;
}
.phone > img, .phone > .screen { width: 100%; height: 100%; border-radius: 38px; overflow: hidden; object-fit: cover; object-position: top; background: var(--card); }
.phones .phone { position: absolute; bottom: -140px; }
.phones .p-mid { left: 50%; transform: translateX(-50%); z-index: 3; width: 310px; }
.phones .p-left { left: 50%; transform: translateX(-118%) rotate(-6deg); z-index: 2; bottom: -170px; }
.phones .p-right { left: 50%; transform: translateX(18%) rotate(6deg); z-index: 2; bottom: -170px; }
.hero-fade { position: relative; z-index: 4; height: 120px; margin-top: -120px; background: linear-gradient(to bottom, transparent, var(--page)); }
.float {
  position: absolute; z-index: 5; display: flex; align-items: center; gap: 12px; padding: 12px 16px; border-radius: 18px;
  background: var(--glass); border: 1px solid var(--glass-line); box-shadow: var(--shadow);
  -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); font-size: 14px; color: var(--sub); line-height: 1.25;
}
.float b { display: block; font: 700 22px/1.1 var(--round); color: var(--text); letter-spacing: -.02em; }
.float .art { width: 52px; height: 52px; object-fit: contain; flex: none; }
.f1 { left: 0; top: 60px; } .f2 { right: 0; top: 30px; } .f3 { left: 30px; top: 330px; } .f4 { right: 20px; top: 300px; }
@media (max-width: 900px) {
  .phones { height: 520px; }
  .phones .p-left, .phones .p-right { display: none; }
  .phones .p-mid { width: 270px; bottom: -120px; }
  .f1 { left: 4px; top: 20px; } .f2 { right: 4px; top: 150px; } .f3 { left: 4px; top: 300px; } .f4 { display: none; }
  .float { padding: 10px 12px; } .float b { font-size: 18px; } .float .art { display: none; }
}

/* Sources strip */
.sources { padding: 24px 0 10px; }
.sources .row { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 10px; margin-top: 16px; }
.sources .row span { padding: 10px 18px; border-radius: 99px; border: 1px solid var(--line); background: var(--card); font-weight: 600; font-size: 15px; color: var(--sub); }

/* Sections */
section.block { padding: 96px 0 0; }
.head { max-width: 720px; margin: 0 auto 44px; text-align: center; }
.head .lede { margin-top: 16px; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; font-size: 15px; font-weight: 600; color: var(--sub); margin-bottom: 14px; }

/* Bento */
.bento { display: grid; grid-template-columns: repeat(6, 1fr); gap: 16px; }
.card { background: var(--card); border-radius: 22px; box-shadow: var(--shadow); padding: 26px; position: relative; overflow: hidden; }
.card h3 { margin-bottom: 8px; }
.card p { color: var(--sub); font-size: 16px; }
.card.ink { background: var(--band); color: var(--on-band); }
.card.ink p { color: var(--band-sub); }
.c-cases { grid-column: span 4; display: grid; grid-template-columns: 1fr 240px; gap: 24px; min-height: 420px; }
.c-drugs { grid-column: span 2; }
.c-sounds { grid-column: span 3; }
.c-book { grid-column: span 3; }
.c-dis { grid-column: span 2; }
.c-calc { grid-column: span 2; }
.c-plan { grid-column: span 2; }
.card .crop { margin: 22px -26px -26px; height: 250px; overflow: hidden; }
.card .crop img { width: 100%; }
.c-cases .shot { align-self: end; margin-bottom: -26px; border-radius: 30px 30px 0 0; overflow: hidden; box-shadow: 0 0 0 8px #0B0B0C; margin-top: 10px; height: 380px; }
.c-cases .shot img { width: 100%; }
.c-drugs .crop { height: 300px; margin-left: 0; margin-right: 0; border-radius: 22px 22px 0 0; box-shadow: 0 0 0 8px #0B0B0C; }
.big-num { font: 700 44px/1 var(--round); letter-spacing: -.03em; margin: 18px 0 6px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.chips span { padding: 7px 12px; border-radius: 99px; background: var(--card2); font-size: 14px; font-weight: 600; }
.card.ink .chips span { background: rgba(255, 255, 255, .1); color: var(--on-band); }
.list { list-style: none; padding: 0; margin: 16px 0 0; }
.list li { display: flex; gap: 10px; align-items: baseline; padding: 6px 0; color: var(--sub); font-size: 16px; }
.list li::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); flex: none; transform: translateY(-2px); }
.wave { margin-top: 22px; height: 90px; display: flex; align-items: center; gap: 3px; }
.wave i { flex: 1; background: var(--accent-on-ink); border-radius: 2px; opacity: .9; }
.task { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-top: 1px solid var(--line); font-size: 15px; }
.task:first-of-type { border-top: 0; }
.tick { width: 22px; height: 22px; border-radius: 50%; border: 2px solid var(--line); flex: none; }
.tick.done { background: var(--accent); border-color: var(--accent); position: relative; }
.tick.done::after { content: ""; position: absolute; left: 6px; top: 3px; width: 5px; height: 9px; border: solid #fff; border-width: 0 2px 2px 0; transform: rotate(45deg); }
.task small { display: block; color: var(--mute); font-size: 13px; }
@media (max-width: 900px) {
  .bento { grid-template-columns: 1fr; }
  .bento > * { grid-column: auto !important; }
  .c-cases { grid-template-columns: 1fr; }
  .c-cases .shot { height: 300px; }
}

/* Chat mockups (Bevel style), a preview of the AI being built */
.chat-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; align-items: start; }
.chat-col { display: flex; flex-direction: column; align-items: center; gap: 22px; }
.chat-col .phone { width: 380px; aspect-ratio: auto; height: 860px; }
.chat-col .caption { max-width: 420px; text-align: center; }
.chat-col .caption p { color: var(--sub); margin-top: 8px; }
@media (max-width: 860px) { .chat-grid { grid-template-columns: 1fr; gap: 64px; } .chat-col .phone { width: 100%; max-width: 360px; height: 820px; } }
.screen.chat { display: flex; flex-direction: column; background: var(--card); color: var(--text); font-size: 14px; line-height: 1.45; }
.chat-top { display: flex; align-items: center; justify-content: space-between; padding: 44px 14px 10px; }
.chat-top .round { width: 34px; height: 34px; border-radius: 50%; background: var(--card2); display: grid; place-items: center; }
.chat-top .round svg { width: 14px; height: 14px; stroke: var(--text); stroke-width: 2.4; fill: none; stroke-linecap: round; }
.chat-title { font: 700 16px var(--round); display: flex; align-items: center; gap: 6px; }
.spark { width: 16px; height: 16px; fill: var(--accent); flex: none; }
.chat-body { flex: 1; overflow: hidden; padding: 4px 14px 0; display: flex; flex-direction: column; gap: 12px; mask-image: linear-gradient(to bottom, transparent 0, #000 18px); -webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 18px); }
.ctx { border-radius: 16px; background: var(--band); color: var(--on-band); padding: 12px 14px; font-size: 13px; line-height: 1.5; }
.ctx .k { display: flex; align-items: center; gap: 6px; font-size: 11.5px; font-weight: 700; color: var(--band-sub); margin-bottom: 6px; }
.ctx .note { font-family: ui-monospace, "SF Mono", Menlo, monospace; font-size: 11.5px; white-space: pre-line; color: #E6E6EA; }
.ctx .more { color: var(--band-sub); font-size: 11.5px; margin-top: 4px; }
.msg-me { align-self: flex-end; max-width: 82%; background: var(--bubble); padding: 9px 13px; border-radius: 18px 18px 6px 18px; }
.msg-ai { display: flex; gap: 8px; }
.msg-ai .spark { margin-top: 3px; }
.msg-ai p + p { margin-top: 6px; }
.msg-ai b { font-weight: 650; }
.src { display: inline-flex; gap: 6px; margin-top: 8px; flex-wrap: wrap; }
.src span { font-size: 11.5px; font-weight: 600; padding: 3px 8px; border-radius: 99px; background: var(--card2); color: var(--sub); }
.composer { margin: 8px 12px 14px; display: flex; align-items: center; gap: 8px; padding: 6px 6px 6px 14px; border-radius: 99px; border: 1px solid var(--line); background: var(--card); box-shadow: var(--shadow); }
.composer .typed { flex: 1; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.composer .typed::after { content: ""; display: inline-block; width: 1.5px; height: 1.1em; background: var(--accent); vertical-align: -3px; margin-left: 1px; animation: caret 1s steps(1) infinite; }
@keyframes caret { 50% { opacity: 0; } }
.composer .mic, .composer .send { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; flex: none; }
.composer .mic svg { width: 16px; height: 16px; stroke: var(--sub); fill: none; stroke-width: 2; stroke-linecap: round; }
.composer .send { background: var(--accent); }
.composer .send svg { width: 15px; height: 15px; stroke: #fff; fill: none; stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }
.preview-tag { position: absolute; top: -12px; right: -10px; z-index: 6; }

/* Stats */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.stat { background: var(--card); border-radius: 22px; box-shadow: var(--shadow); padding: 24px; }
.stat b { display: block; font: 700 clamp(34px, 4vw, 46px)/1 var(--round); letter-spacing: -.03em; }
.stat span { display: block; margin-top: 10px; color: var(--sub); font-size: 15px; }
.stat .meter { height: 6px; border-radius: 3px; background: var(--card2); margin-top: 18px; overflow: hidden; }
.stat .meter i { display: block; height: 100%; background: var(--accent); border-radius: 3px; }
@media (max-width: 860px) { .stats { grid-template-columns: 1fr 1fr; } }

/* Coming soon */
.soon { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.soon .card { display: flex; flex-direction: column; }
.soon .card p { flex: 1; }
.progress { margin: 22px 0 0; }
.progress .lbl { display: flex; justify-content: space-between; font-size: 14px; font-weight: 600; margin-bottom: 8px; }
.progress .lbl span:last-child { color: var(--mute); font-weight: 500; }
.progress .track { height: 8px; border-radius: 4px; background: var(--card2); overflow: hidden; }
.progress .track i { display: block; width: 10%; height: 100%; border-radius: 4px; background: var(--accent); }
@media (max-width: 900px) { .soon { grid-template-columns: 1fr; } }

/* Privacy band */
.privacy-band { background: var(--band); color: var(--on-band); border-radius: 32px; padding: 56px 40px; display: grid; grid-template-columns: 1.1fr 1fr; gap: 40px; align-items: center; }
.privacy-band .lede { color: var(--band-sub); margin-top: 16px; }
.privacy-band ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.privacy-band li { display: flex; gap: 12px; align-items: flex-start; background: rgba(255, 255, 255, .06); padding: 16px; border-radius: 16px; }
.privacy-band li .tick { border: 0; background: var(--accent); position: relative; margin-top: 2px; }
.privacy-band li .tick::after { content: ""; position: absolute; left: 7px; top: 4px; width: 5px; height: 9px; border: solid #fff; border-width: 0 2px 2px 0; transform: rotate(45deg); }
.privacy-band a { color: var(--on-band); }
@media (max-width: 860px) { .privacy-band { grid-template-columns: 1fr; padding: 36px 22px; } }

/* FAQ */
.faq { max-width: 820px; margin: 0 auto; display: grid; gap: 10px; }
.faq details { background: var(--card); border-radius: 18px; box-shadow: var(--shadow); padding: 0 22px; }
.faq summary { list-style: none; cursor: pointer; padding: 20px 0; font: 700 18px/1.3 var(--round); display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-weight: 400; color: var(--mute); font-size: 22px; line-height: 1; }
.faq details[open] summary::after { content: "−"; }
.faq details > div { padding: 0 0 20px; color: var(--sub); }
.faq details > div p + p { margin-top: 10px; }

/* Final call */
.final { margin-top: 96px; text-align: center; position: relative; isolation: isolate; padding: 80px 0 90px; overflow: hidden; }
.final .sky { inset: 0; }

/* Footer */
footer { border-top: 1px solid var(--line); padding: 36px 0 48px; font-size: 14px; color: var(--mute); }
footer .wrap { display: flex; flex-wrap: wrap; gap: 18px 28px; align-items: center; justify-content: space-between; }
footer nav { display: flex; flex-wrap: wrap; gap: 18px; }
footer a { text-decoration: none; color: var(--sub); }
footer a:hover { color: var(--text); }
footer .safety { flex-basis: 100%; }

/* Long pages: privacy, terms, feature pages */
.doc { padding: 40px 0 40px; }
.doc .head { text-align: left; margin: 0 0 32px; max-width: none; }
.doc h1 { font-size: clamp(36px, 5.5vw, 56px); }
.doc h2 { font-size: 26px; margin: 44px 0 12px; letter-spacing: -.02em; }
.doc h3 { font-size: 19px; margin: 24px 0 8px; }
.doc p, .doc li { color: var(--sub); }
.doc p + p { margin-top: 12px; }
.doc ul { padding-left: 22px; margin: 10px 0; }
.doc li { margin: 6px 0; }
.doc strong { color: var(--text); }
.doc a { color: var(--text); }
.summary { background: var(--card); border-radius: 22px; box-shadow: var(--shadow); padding: 24px 26px; margin: 8px 0 12px; }
.summary p { color: var(--text); }
table.t { width: 100%; border-collapse: collapse; margin: 14px 0; font-size: 15px; background: var(--card); border-radius: 16px; overflow: hidden; box-shadow: var(--shadow); }
table.t th, table.t td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
table.t th { font-weight: 650; color: var(--text); background: var(--card2); }
table.t td { color: var(--sub); }
table.t tr:last-child td { border-bottom: 0; }
.tablewrap { overflow-x: auto; }
.feature-hero { display: grid; grid-template-columns: 1.2fr .8fr; gap: 40px; align-items: center; padding: 40px 0 0; }
.feature-hero .phone { width: 300px; justify-self: center; }
.feature-hero .join { margin-left: 0; }
@media (max-width: 860px) { .feature-hero { grid-template-columns: 1fr; } .feature-hero .phone { width: 260px; } }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 16px; }
@media (max-width: 760px) { .grid2 { grid-template-columns: 1fr; } }
.mt14 { margin-top: 14px; } .mt18 { margin-top: 18px; } .mt22 { margin-top: 22px; } .mt28 { margin-top: 28px; }
.privacy-band .small a { color: var(--on-band); }
.c-cases .big-num { font-size: 36px; }
@media (max-width: 900px) {
  .f1 { left: 0; top: 8px; } .f2 { right: 0; top: 8px; left: auto; } .f3, .f4 { display: none; }
  .big-num { font-size: 36px; } .c-cases .big-num { font-size: 30px; }
}
