/* websites.lifeos.life · the voice site builder landing in the v6 Krea design.
   Sits on top of krea.css (same tokens, type, header, hero, FAQ, close, footer). Only tokens, no raw colours.
   Rhythm 12/16/24/32. Motion: transform and opacity only. */

/* shadows without the 1px ring of --elev-1 / --elev-3 (D-424: no strokes) */
:root { --elev-soft: 0 1px 2px 0 var(--shadow-v6-key), 0 3px 8px -2px var(--shadow-v6-ambient); --elev-soft-3: 0 2px 4px 0 var(--shadow-v6-key), 0 12px 28px -6px var(--shadow-v6-ambient), 0 32px 64px -16px var(--shadow-v6-deep); }

/* ---------- flow strip under the hero: voice -> published -> lead ---------- */
.flow-sec { padding-top: var(--s3); }
.flow { margin: 0; padding: 0; list-style: none; display: grid; grid-template-columns: 1.25fr 1fr .9fr; gap: var(--s2); align-items: stretch; }
.flow-card { position: relative; background: var(--card); border-radius: var(--r-l); padding: var(--s3); display: flex; flex-direction: column; justify-content: space-between; gap: var(--s3); min-height: 196px; }
.flow-card + .flow-card::before { content: ""; position: absolute; left: calc(var(--s2) / -2 - 6px); top: 50%; width: 12px; height: 12px; margin-top: -6px; border-radius: 50%; background: var(--paper); z-index: 1; }
.voice { display: flex; align-items: center; gap: var(--s1); }
.voice-play { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: var(--accent-primary); color: var(--text-on-accent); flex: none; }
.voice-play svg { width: 18px; height: 18px; margin-left: 2px; }
.voice-wave { display: flex; align-items: center; gap: 3px; height: 32px; flex: 1; min-width: 0; overflow: hidden; }
.voice-wave i { display: block; width: 3px; flex: none; height: 100%; border-radius: 2px; background: var(--text-faint); transform: scaleY(var(--h, .4)); transform-origin: 50% 50%; }
.flow-card--voice.in .voice-wave i { animation: wave 1.4s var(--ease) both; animation-delay: calc(var(--i) * 18ms + .3s); }
@keyframes wave { from { transform: scaleY(.08); } }
.voice-t { font-size: 13px; color: var(--text-muted); }
.flow-q { font-size: clamp(18px, 1.5vw, 22px); line-height: 1.35; letter-spacing: -.02em; font-weight: 500; max-width: 22em; }
.flow-thumb { border-radius: var(--r-s); overflow: hidden; background: var(--paper); aspect-ratio: 16 / 10; box-shadow: var(--elev-soft); }
.flow-thumb img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 0; }
.flow-row { display: flex; align-items: center; gap: var(--s1); }
.flow-row b { display: block; font-weight: 500; font-size: 17px; letter-spacing: -.015em; }
.flow-row span:not([class]), .flow-row .mono { display: block; font-size: 14px; color: var(--text-muted); margin-top: 2px; }
.flow-ok, .flow-tg { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; flex: none; }
.flow-ok { background: var(--status-success-soft); color: var(--status-success); }
.flow-tg { background: var(--tone-sky-surface); color: var(--tone-sky-ink); }
.flow-tg .ico { fill: currentColor; stroke: none; }
.flow-card--lead { justify-content: flex-end; background: var(--bg-inverse); color: var(--text-inverse); }
.flow-card--lead .flow-row span:not([class]) { color: var(--text-inverse-muted); }
.flow-card--lead::after { content: ""; position: absolute; top: var(--s3); right: var(--s3); width: 10px; height: 10px; border-radius: 50%; background: var(--status-success); animation: ping 2.4s var(--ease) infinite; }
@keyframes ping { 0%, 100% { transform: scale(1); opacity: 1; } 50% { transform: scale(1.5); opacity: .45; } }
@media (max-width: 959px) {
  .flow { grid-template-columns: minmax(0, 1fr); gap: var(--s1); }
  .flow-card, .flow-row > div { min-width: 0; }
  .flow-row .mono { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-size: 13px; }
  .flow-card { min-height: 0; }
  .flow-card + .flow-card::before { left: 50%; top: calc(var(--s1) / -2 - 6px); margin: 0 0 0 -6px; }
  .flow-card--site { flex-direction: row; align-items: center; }
  .flow-card--site .flow-thumb { width: 112px; flex: none; }
  .flow-card--site .flow-row { flex: 1; min-width: 0; }
  .flow-card--site .flow-row b { font-size: 16px; }
}
@media (max-width: 759px) { .flow-sec { padding-top: var(--s4); } .flow-card { padding: var(--s2); border-radius: 20px; } }

/* ---------- examples: real sites built from one voice message, each scrolls itself while on screen ---------- */
.xg { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s4) var(--s2); margin-top: clamp(40px, 5vw, 72px); }
.xc { display: flex; flex-direction: column; gap: var(--s2); }
.xc-link { display: block; position: relative; border-radius: var(--r-l); overflow: hidden; background: var(--card); box-shadow: var(--elev-soft); transition: transform .6s var(--ease), box-shadow .6s var(--ease); }
.xc-bar { display: flex; align-items: center; gap: 10px; height: 40px; padding: 0 var(--s2); background: var(--surface-muted); }
.xc-bar i { width: 8px; height: 8px; border-radius: 50%; background: var(--border-subtle); flex: none; }
.xc-url { flex: 1; min-width: 0; height: 24px; display: flex; align-items: center; justify-content: center; border-radius: 999px; background: var(--paper); font-size: 12px; color: var(--text-muted); white-space: nowrap; overflow: hidden; }
.xc-vp { position: relative; aspect-ratio: 4 / 5; overflow: hidden; background: var(--paper); container-type: inline-size; }
.xc-vp img { position: absolute; left: 0; top: 0; width: 100%; height: auto; max-width: none; transform: translate3d(0, 0, 0); will-change: transform; }
.xc.play .xc-vp img { animation: xscroll var(--dur, 22s) ease-in-out .6s infinite alternate; }
@keyframes xscroll { 0%, 6% { transform: translate3d(0, 0, 0); } 94%, 100% { transform: translate3d(0, calc(-100% + 125cqw), 0); } }
.xc-go { position: absolute; left: var(--s2); right: var(--s2); bottom: var(--s2); display: flex; align-items: center; justify-content: space-between; gap: var(--s1); height: 52px; padding: 0 6px 0 var(--s3); border-radius: 999px; background: var(--accent-primary); color: var(--text-on-accent); font-weight: 500; font-size: 15px; white-space: nowrap; opacity: 0; transform: translate3d(0, 12px, 0); transition: opacity .35s var(--ease), transform .45s var(--ease); }
.xc-go { --dot: 40px; }
.xc-go .cta-dot { overflow: hidden; }
@media (hover: hover) {
  .xc-link:hover { transform: translate3d(0, -4px, 0); box-shadow: var(--elev-soft-3); }
  .xc-link:hover .xc-go, .xc-link:focus-visible .xc-go { opacity: 1; transform: none; }
}
.xc-cap { display: flex; justify-content: space-between; align-items: baseline; gap: var(--s1); padding: 0 4px; }
.xc-cap b { font-weight: 500; font-size: clamp(18px, 1.5vw, 22px); letter-spacing: -.02em; }
.xc-cap b small { font-size: 15px; font-weight: 400; color: var(--text-muted); letter-spacing: -.01em; margin-left: 6px; }
.xc-cap .mono { font-size: 12px; color: var(--text-faint); white-space: nowrap; }
.xg-foot { margin-top: clamp(40px, 5vw, 64px); display: flex; flex-direction: column; align-items: center; gap: var(--s1); text-align: center; }
.xg-foot p { font-size: 14px; color: var(--text-muted); }
@media (max-width: 1099px) { .xg { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 759px) {
  .xg { display: flex; gap: var(--s1); overflow-x: auto; scroll-snap-type: x mandatory; margin-left: calc(var(--pad) * -1); margin-right: calc(var(--pad) * -1); padding: 4px var(--pad) var(--s2); scrollbar-width: none; overscroll-behavior-x: contain; }
  .xg::-webkit-scrollbar { display: none; }
  .xc { flex: 0 0 82%; scroll-snap-align: center; }
  .xc-link { border-radius: 20px; }
  .xc-go { opacity: 1; transform: none; height: 44px; font-size: 13px; padding-left: 14px; }
  .xc-go { --dot: 32px; }
}

/* ---------- how: four steps ---------- */
.steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--s2); margin-top: clamp(40px, 5vw, 72px); }
.step { background: var(--card); border-radius: var(--r-l); padding: var(--s3); min-height: clamp(220px, 20vw, 300px); display: flex; flex-direction: column; justify-content: flex-start; gap: clamp(32px, 5vw, 96px); }
.step-ico { width: 56px; height: 56px; border-radius: 16px; background: var(--paper); display: grid; place-items: center; box-shadow: var(--elev-soft); }
.step-ico svg { width: 26px; height: 26px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.step h3 { font-weight: 500; font-size: clamp(22px, 1.9vw, 28px); line-height: 1.1; letter-spacing: -.03em; }
.step p { margin-top: var(--s1); font-size: clamp(15px, 1.2vw, 17px); line-height: 1.45; color: var(--text-muted); max-width: 20em; }
.step:first-child { background: var(--bg-inverse); color: var(--text-inverse); }
.step:first-child p { color: var(--text-inverse-muted); }
.step:first-child .step-ico { background: var(--surface-inverse); box-shadow: none; }
.how-cta { margin-top: clamp(32px, 4vw, 56px); display: flex; justify-content: center; }
@media (max-width: 1099px) { .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 759px) { .steps { grid-template-columns: 1fr; gap: var(--s1); } .step { padding: var(--s2); min-height: 0; border-radius: 20px; flex-direction: row; align-items: flex-start; gap: var(--s2); } .step-ico { width: 48px; height: 48px; border-radius: 14px; flex: none; } }

/* ---------- demo film ---------- */
.demo-head .lead { margin-top: var(--s3); }
.demo { position: relative; margin: clamp(40px, 5vw, 72px) 0 0; border-radius: var(--r-xl); overflow: hidden; background: var(--surface-media); aspect-ratio: 16 / 9; }
.demo-poster, .demo-v { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.demo-v { object-fit: contain; background: var(--surface-media); }
.demo-play { position: absolute; left: 50%; top: 50%; transform: translate3d(-50%, -50%, 0); display: inline-flex; align-items: center; gap: var(--s1); height: 64px; padding: 0 var(--s3) 0 8px; border-radius: 999px; background: var(--glass-fill); color: var(--glass-on); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); font-size: 15px; white-space: nowrap; transition: background .25s, transform .45s var(--ease); }
.demo-play:hover { background: var(--glass-fill-hover); transform: translate3d(-50%, -50%, 0) scale(1.04); }
.demo-play:active { background: var(--glass-fill-pressed); }
.demo-dot { width: 48px; height: 48px; border-radius: 50%; background: var(--glass-on); color: var(--accent-primary); display: grid; place-items: center; }
.demo-dot svg { width: 20px; height: 20px; margin-left: 3px; }
.demo.on .demo-play, .demo.on .demo-poster { opacity: 0; pointer-events: none; transition: opacity .4s; }
@media (max-width: 759px) { .demo { border-radius: var(--r-l); } .demo-play { height: 56px; } .demo-dot { width: 40px; height: 40px; } }

/* ---------- compare ---------- */
.vs { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s2); margin-top: clamp(40px, 5vw, 72px); }
.vs-col { border-radius: var(--r-xl); padding: clamp(24px, 3vw, 48px); display: flex; flex-direction: column; gap: var(--s4); }
.vs-col--them { background: var(--card); }
.vs-col--us { background: var(--bg-inverse); color: var(--text-inverse); }
.vs-top .mono { font-size: 13px; color: var(--text-muted); }
.vs-col--us .vs-top .mono { color: var(--text-inverse-muted); }
.vs-top h3 { margin-top: var(--s1); font-weight: 500; font-size: clamp(32px, 3.4vw, 52px); line-height: 1; letter-spacing: -.035em; }
.vs-col ul { display: grid; gap: 0; }
.vs-col li { display: flex; align-items: flex-start; gap: var(--s1); padding: 14px 0; font-size: clamp(16px, 1.3vw, 19px); line-height: 1.35; letter-spacing: -.01em; border-top: 1px solid var(--line); }
.vs-col--us li { border-top-color: var(--surface-inverse); }
.vs-col li { position: relative; }
.vs-col li::before { content: ""; width: 22px; height: 22px; flex: none; margin-top: 0; border-radius: 50%; }
.vs-col--them li { color: var(--text-muted); }
.vs-col--them li::before { background: var(--surface-pressed); }
.vs-col--them li::after { content: ""; position: absolute; left: 6px; top: 24px; width: 10px; height: 2px; border-radius: 1px; background: var(--text-muted); }
.vs-col--us li::before { background: var(--status-success); }
.vs-col--us li::after { content: ""; position: absolute; left: 7px; top: 20px; width: 8px; height: 4px; border-left: 2px solid var(--text-on-accent); border-bottom: 2px solid var(--text-on-accent); transform: rotate(-45deg); }
.vs-sum { margin-top: auto; display: flex; align-items: baseline; gap: var(--s1); flex-wrap: wrap; }
.vs-sum b { font-weight: 500; font-size: clamp(48px, 6vw, 96px); line-height: .9; letter-spacing: -.05em; }
.vs-sum span { font-size: clamp(15px, 1.2vw, 18px); color: var(--text-muted); }
.vs-col--us .vs-sum span { color: var(--text-inverse-muted); }
@media (max-width: 899px) { .vs { grid-template-columns: 1fr; gap: var(--s1); } .vs-col { border-radius: var(--r-l); padding: var(--s3) var(--s2); gap: var(--s3); } }

/* ---------- pricing ---------- */
.plans { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s2); margin-top: clamp(40px, 5vw, 72px); align-items: stretch; }
.plan { background: var(--card); border-radius: var(--r-xl); padding: clamp(24px, 2.6vw, 40px); display: flex; flex-direction: column; gap: var(--s4); }
.plan-top h3 { display: flex; align-items: center; gap: var(--s1); font-weight: 500; font-size: clamp(28px, 2.4vw, 36px); letter-spacing: -.03em; line-height: 1; }
.plan-top p { margin-top: var(--s1); font-size: 16px; color: var(--text-muted); }
.plan-tag { font-size: 15px; font-weight: 400; letter-spacing: 0; color: var(--text-muted); }
.plan--pro .plan-tag { color: var(--text-inverse-muted); }
.plan-price b { display: block; font-weight: 500; font-size: clamp(40px, 4vw, 60px); line-height: .95; letter-spacing: -.045em; font-variant-numeric: tabular-nums; white-space: nowrap; }
.plan-price span { display: block; margin-top: var(--s1); font-size: 15px; color: var(--text-muted); }
.plan-list { display: grid; gap: 10px; }
.plan-list li { position: relative; padding-left: 30px; font-size: 16px; line-height: 1.4; }
.plan-list li::before { content: ""; position: absolute; left: 0; top: 1px; width: 20px; height: 20px; border-radius: 50%; background: var(--paper); }
.plan-list li::after { content: ""; position: absolute; left: 6px; top: 7px; width: 7px; height: 4px; border-left: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(-45deg); }
.plan-go { margin-top: auto; display: flex; flex-direction: column; gap: var(--s1); }
.plan-go .btn { width: 100%; }
.plan-go span { font-size: 13px; color: var(--text-muted); text-align: center; }
.plan--pro { background: var(--bg-inverse); color: var(--text-inverse); }
.plan--pro .plan-top p, .plan--pro .plan-price span { color: var(--text-inverse-muted); }
.plan--pro .plan-list li::before { background: var(--surface-inverse); }
.plans-fine { margin-top: var(--s3); font-size: 15px; color: var(--text-muted); max-width: 46em; }
.more { margin-top: var(--s4); display: grid; grid-template-columns: 1.1fr 1fr; gap: var(--s4); align-items: end; padding: clamp(24px, 3vw, 48px); border-radius: var(--r-xl); background: var(--card); }
.more-copy .mono { font-size: 13px; color: var(--text-muted); }
.more-copy p { margin-top: var(--s1); font-size: clamp(18px, 1.6vw, 24px); line-height: 1.35; letter-spacing: -.02em; max-width: 30em; }
.more-t { font-size: 16px; font-weight: 500; margin-bottom: var(--s1); }
@media (max-width: 1099px) { .plans { grid-template-columns: 1fr; gap: var(--s1); } .plan { border-radius: var(--r-l); } }
@media (max-width: 899px) { .more { grid-template-columns: 1fr; border-radius: var(--r-l); padding: var(--s3) var(--s2); gap: var(--s3); } }
@media (max-width: 759px) { .plan { padding: var(--s3) var(--s2); gap: var(--s3); } }

/* ---------- inline form: one field + a button (D-424: no strokes, fill only) ---------- */
.field[hidden], .ok[hidden] { display: none; }
.field { display: flex; gap: var(--s1); align-items: center; position: relative; }
.field input:not(.hp) { flex: 1; min-width: 0; height: 52px; padding: 0 var(--s3); border: 0; border-radius: 999px; background: var(--paper); color: var(--text-primary); font: inherit; font-size: 16px; outline: none; transition: background-color .2s; }
.field input:not(.hp)::placeholder { color: var(--text-faint); }
.field input:not(.hp):focus { background: var(--surface-pressed); }
.field .hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.field.bad input:not(.hp) { background: var(--status-danger-soft); }
.field.bad input:not(.hp)::placeholder { color: var(--status-danger); }
.field--inv input:not(.hp) { background: var(--surface-inverse); color: var(--text-inverse); }
.field--inv input:not(.hp)::placeholder { color: var(--text-inverse-muted); }
.field--inv input:not(.hp):focus { background: var(--surface-media); }
.ok { font-size: 16px; line-height: 1.45; padding: var(--s2) var(--s3); border-radius: var(--r-m); background: var(--status-success-soft); color: var(--status-success); }

@media (max-width: 759px) { .field { flex-direction: column; align-items: stretch; } .field input:not(.hp) { flex: none; width: 100%; } .field .btn, .field .cta { width: 100%; } }

/* ---------- reviews ---------- */
.revs { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--s2); margin-top: clamp(40px, 5vw, 72px); }
.rev { background: var(--card); border-radius: var(--r-l); padding: var(--s3); display: flex; flex-direction: column; justify-content: space-between; gap: var(--s4); min-height: 300px; }
.rev p { font-size: clamp(17px, 1.35vw, 20px); line-height: 1.4; letter-spacing: -.015em; }
.rev-who { display: flex; align-items: center; gap: var(--s1); }
.rev-av { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: var(--paper); font-size: 14px; font-weight: 500; color: var(--text-secondary); flex: none; }
.rev-who b { display: block; font-weight: 500; font-size: 15px; }
.rev-who span:not(.rev-av) { display: block; font-size: 14px; color: var(--text-muted); }
@media (max-width: 1099px) { .revs { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 759px) {
  .revs { display: flex; gap: var(--s1); overflow-x: auto; scroll-snap-type: x mandatory; margin-left: calc(var(--pad) * -1); margin-right: calc(var(--pad) * -1); padding: 0 var(--pad) 4px; scrollbar-width: none; }
  .revs::-webkit-scrollbar { display: none; }
  .rev { flex: 0 0 84%; scroll-snap-align: center; min-height: 260px; padding: var(--s2); border-radius: 20px; }
}

/* ---------- close: form + tags ---------- */
.close-copy form, .close-copy .ok { margin-bottom: var(--s2); }
.close-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.close-tags span { display: inline-flex; align-items: center; height: 32px; padding: 0 12px; border-radius: 999px; background: var(--surface-inverse); color: var(--text-inverse-muted); font-size: 13px; }
.close-media img { object-position: 50% 35%; }

/* ---------- plan popup ---------- */
.pop { width: min(480px, calc(100vw - 32px)); border: 0; border-radius: var(--r-xl); padding: clamp(24px, 4vw, 40px); background: var(--paper); color: var(--text-primary); box-shadow: var(--elev-soft-3); }
.pop::backdrop { background: var(--bg-scrim); }
.pop[open] { animation: popIn .45s var(--ease) both; }
@keyframes popIn { from { opacity: 0; transform: translate3d(0, 16px, 0) scale(.98); } }
.pop-x { position: absolute; top: var(--s2); right: var(--s2); width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: var(--card); }
.pop-x:hover { background: var(--card-2); }
.pop-k { font-size: 13px; color: var(--text-muted); }
.pop-t { margin-top: var(--s1); font-weight: 500; font-size: clamp(32px, 4vw, 44px); letter-spacing: -.035em; line-height: 1; }
.pop-p { margin: var(--s1) 0 var(--s3); font-size: 16px; color: var(--text-muted); }
.pop-p b { color: var(--text-primary); font-weight: 500; }
.pop .field input:not(.hp) { background: var(--card); }
.pop .field input:not(.hp):focus { background: var(--card-2); }

/* footer link to top */
.ft-legal a { color: var(--text-muted); }
.ft-legal a:hover { color: var(--text-primary); }

@media (min-width: 760px) { .hero .h1 .dim { color: var(--text-inverse); opacity: .62; } }
.more-wl .ok, .pop .ok { margin-top: 12px; }
.vs-top .mono, .more-copy .mono, .pop-k, .xc-cap .mono { font-family: var(--sans); letter-spacing: -.005em; }
@media (max-width: 759px) { .ft-mark { overflow-x: clip; } }
/* mobile menu: no 1px ring (D-424), a small gap under the header instead of a glued edge */
.hd-sheet { box-shadow: var(--elev-soft-3); top: calc(var(--hd-h) + 8px); }
@media (min-width: 760px) { .nw-d { white-space: nowrap; } }
@media (max-width: 400px) { .flow-card--site .flow-thumb { width: 88px; } .flow-card--site .flow-ok { display: none; } }
