/* Personal OS landing page (personal-os.html). Builds on site.css: same tokens, buttons, nav,
   route cards, FAQ, team video panel and video loader. Everything here is prefixed pos-. */

/* ---------- Hero: road video, headline, example morning brief ---------- */
.pos-hero { position: relative; overflow: hidden; display: flex; align-items: center; min-height: calc(100vh - var(--nav-h)); min-height: calc(100svh - var(--nav-h)); background: #14131a; color: #fff; }
.pos-hero__media { position: absolute; inset: 0; }
.pos-hero__poster, .pos-hero__video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 55%; }
.pos-hero__scrim { position: absolute; inset: 0; background:
  linear-gradient(to right, rgba(20, 19, 26, 0.86) 0%, rgba(20, 19, 26, 0.62) 46%, rgba(20, 19, 26, 0.38) 100%),
  linear-gradient(to top, rgba(20, 19, 26, 0.55), rgba(20, 19, 26, 0) 40%); }
.pos-hero__inner { position: relative; z-index: 1; display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 40px clamp(32px, 5vw, 80px); align-items: center; padding-top: clamp(56px, 8vw, 112px); padding-bottom: clamp(56px, 8vw, 112px); }
.pos-hero__kicker { color: var(--brand-light); text-shadow: 0 1px 12px rgba(20, 19, 26, 0.5); }
.pos-hero h1 { max-width: 12ch; font-size: clamp(44px, 6vw, 88px); line-height: 0.98; letter-spacing: -0.04em; text-shadow: 0 2px 30px rgba(20, 19, 26, 0.35); }
.pos-hero__lede { max-width: 46ch; margin-top: clamp(20px, 2vw, 28px); font-size: clamp(17px, 1.35vw, 20px); line-height: 1.55; color: rgba(255, 255, 255, 0.86); }
.pos-hero__note { display: flex; align-items: center; gap: 10px; margin-top: 22px; font-size: 14px; color: rgba(255, 255, 255, 0.7); }
.pos-hero__note::before { content: ''; flex: none; width: 8px; height: 8px; border-radius: 50%; background: #3ddc97; box-shadow: 0 0 0 4px rgba(61, 220, 151, 0.18); }
.pos-hero :focus-visible { outline-color: #fff; }

/* The brief: a WhatsApp-like message card on glass */
.pos-brief { width: 100%; max-width: 460px; justify-self: end; padding: clamp(18px, 1.8vw, 24px); }
.pos-brief__head { display: flex; align-items: center; gap: 12px; padding-bottom: 14px; border-bottom: 1px solid rgba(255, 255, 255, 0.12); }
.pos-brief__avatar { display: grid; place-items: center; flex: none; width: 36px; height: 36px; border-radius: 50%; background: #fff; }
.pos-brief__who { display: flex; flex-direction: column; line-height: 1.25; }
.pos-brief__who b { font-size: 15px; font-weight: 600; }
.pos-brief__who span { font-family: var(--mono); font-size: 11px; letter-spacing: 0.08em; color: rgba(255, 255, 255, 0.6); }
.pos-brief__title { margin-top: 16px; font-size: 17px; font-weight: 600; letter-spacing: -0.01em; }
.pos-brief__list { display: grid; gap: 10px; margin-top: 14px; }
.pos-brief__item { padding: 14px 14px 12px; border-radius: 16px; background: rgba(255, 255, 255, 0.07); border: 1px solid rgba(255, 255, 255, 0.1); }
.pos-brief__tag { display: block; font-family: var(--mono); font-size: 10.5px; font-weight: 500; letter-spacing: 0.14em; text-transform: uppercase; color: var(--brand-light); }
.pos-brief__item p { margin-top: 6px; font-size: 14.5px; line-height: 1.45; color: rgba(255, 255, 255, 0.9); }
.pos-brief__actions { display: flex; gap: 8px; margin-top: 10px; }
.pos-chip { padding: 5px 12px; border-radius: 999px; border: 1px solid rgba(255, 255, 255, 0.22); font-size: 12.5px; font-weight: 500; color: rgba(255, 255, 255, 0.85); }
.pos-chip--on { border-color: transparent; background: var(--brand); color: #fff; }
.pos-brief__foot { display: flex; align-items: center; gap: 10px; margin-top: 14px; font-size: 14px; color: rgba(255, 255, 255, 0.75); }
.pos-brief__ok { width: 18px; height: 18px; flex: none; border-radius: 50%; background: #3ddc97; position: relative; }
.pos-brief__ok::after { content: ''; position: absolute; left: 6px; top: 3.5px; width: 4px; height: 8px; border-right: 2px solid #14131a; border-bottom: 2px solid #14131a; transform: rotate(45deg); }
.pos-brief__caption { margin-top: 14px; font-size: 12px; color: rgba(255, 255, 255, 0.5); }

/* The brief arrives one message at a time. */
@media (prefers-reduced-motion: no-preference) {
  .pos-brief { animation: pos-rise 0.8s cubic-bezier(0.2, 0.7, 0.2, 1) 0.15s both; }
  .pos-brief__item, .pos-brief__foot { animation: pos-rise 0.6s cubic-bezier(0.2, 0.7, 0.2, 1) both; animation-delay: calc(0.9s + var(--i) * 0.55s); }
  .pos-brief__actions .pos-chip--on { animation: pos-pulse 2.4s ease-out 3.4s 1 both; }
}
@keyframes pos-rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes pos-pulse { 0% { box-shadow: 0 0 0 0 rgba(155, 156, 247, 0.6); } 100% { box-shadow: 0 0 0 10px rgba(155, 156, 247, 0); } }

/* ---------- Why it exists ---------- */
.pos-why__grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); gap: 40px clamp(40px, 6vw, 96px); align-items: end; }
.pos-why__statement { font-size: clamp(28px, 3vw, 42px); line-height: 1.15; letter-spacing: -0.025em; }
.pos-why__statement span { color: var(--ink-soft); }
.pos-why__copy { max-width: 58ch; margin-top: clamp(20px, 2.4vw, 32px); font-size: clamp(17px, 1.3vw, 19px); color: var(--ink); }
.pos-proof { position: relative; padding: clamp(24px, 2.4vw, 32px); border-radius: var(--radius); background: var(--ground); border: 1px solid var(--line); }
.pos-proof::before { content: ''; position: absolute; left: clamp(24px, 2.4vw, 32px); top: -1px; width: 48px; height: 3px; border-radius: 0 0 3px 3px; background: var(--brand); }
.pos-proof .label { color: var(--brand); }
.pos-proof__lede { font-size: 19px; line-height: 1.45; font-weight: 500; letter-spacing: -0.01em; }
.pos-proof__copy { margin-top: 12px; font-size: 16px; color: var(--ink-soft); }
.pos-proof__link { display: inline-block; margin-top: 18px; font-size: 15px; font-weight: 600; color: var(--brand); text-decoration: none; }
.pos-proof__link::after { content: ' →'; }
.pos-proof__link:hover { text-decoration: underline; text-underline-offset: 3px; }

/* ---------- The core and the modules ---------- */
.pos-core { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: 28px clamp(32px, 5vw, 72px); padding: clamp(28px, 3.4vw, 48px); border-radius: 28px; background: linear-gradient(150deg, #6264f3, var(--brand) 50%, #3f41cf); color: #fff; box-shadow: 0 30px 70px rgba(84, 86, 237, 0.3); }
.pos-core__tag { font-family: var(--mono); font-size: 12px; font-weight: 500; letter-spacing: 0.14em; text-transform: uppercase; color: rgba(255, 255, 255, 0.72); }
.pos-core h3 { margin-top: 12px; font-size: clamp(30px, 3vw, 42px); letter-spacing: -0.03em; }
.pos-core__intro p:last-child { margin-top: 12px; max-width: 34ch; font-size: 17px; color: rgba(255, 255, 255, 0.86); }
.pos-core__list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; align-content: center; }
.pos-core__list li { padding: 18px; border-radius: 18px; background: rgba(255, 255, 255, 0.12); border: 1px solid rgba(255, 255, 255, 0.16); font-size: 15.5px; line-height: 1.5; }

.pos-modules__sub { display: flex; align-items: center; gap: 16px; margin: clamp(40px, 5vw, 64px) 0 20px; }
.pos-modules__sub .label { margin: 0; }
.pos-modules__sub::after { content: ''; flex: 1; height: 1px; background: var(--line); }

/* Three themed columns (Family / Household / Money and property), each a stack of module cards. */
.pos-groups { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(14px, 1.6vw, 20px); align-items: start; }
.pos-group__title { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; padding-left: 4px; font-size: 15px; font-weight: 600; letter-spacing: 0; }
.pos-group__title::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.pos-grid { display: grid; gap: clamp(14px, 1.6vw, 20px); }
.pos-mod { display: flex; flex-direction: column; padding: clamp(22px, 2vw, 28px); border-radius: 22px; background: var(--paper); border: 1px solid var(--line); transition: border-color 0.25s ease, box-shadow 0.25s ease, transform 0.25s ease; }
.pos-mod:hover { box-shadow: 0 22px 50px rgba(20, 19, 26, 0.08); }
.pos-mod__head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px 12px; }
.pos-mod__name { flex-basis: 100%; margin: 0; font-family: var(--mono); font-size: 12px; font-weight: 500; letter-spacing: 0.14em; text-transform: uppercase; color: var(--brand); }
.pos-mod h4 { margin: 0; font-weight: 600; line-height: 1.1; text-wrap: balance; font-size: clamp(21px, 1.7vw, 24px); letter-spacing: -0.02em; }
.pos-mod ul { display: grid; gap: 10px; margin-top: 16px; margin-bottom: 20px; }
.pos-mod ul li { position: relative; padding-left: 18px; font-size: 15.5px; line-height: 1.5; color: var(--ink-soft); }
.pos-mod ul li::before { content: ''; position: absolute; left: 0; top: 0.62em; width: 6px; height: 6px; border-radius: 50%; background: var(--brand); opacity: 0.55; }

/* "Add to my OS": a pill that flips to a filled check when on */
.pos-add { display: inline-flex; align-items: center; gap: 10px; align-self: flex-start; margin-top: auto; padding: 9px 16px 9px 10px; border: 1.5px solid var(--line); border-radius: 999px; background: transparent; font-size: 14.5px; font-weight: 600; cursor: pointer; transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease; }
.pos-add:hover { border-color: var(--brand); color: var(--brand); }
.pos-add__icon { position: relative; width: 22px; height: 22px; border-radius: 50%; background: var(--brand-tint); }
.pos-add__icon::before, .pos-add__icon::after { content: ''; position: absolute; left: 50%; top: 50%; background: var(--brand); border-radius: 1px; transition: transform 0.25s ease, width 0.25s ease, height 0.25s ease; }
.pos-add__icon::before { width: 10px; height: 2px; transform: translate(-50%, -50%); }
.pos-add__icon::after { width: 2px; height: 10px; transform: translate(-50%, -50%); }
.pos-add[aria-pressed="true"] { border-color: var(--brand); background: var(--brand); color: #fff; }
.pos-add[aria-pressed="true"] .pos-add__icon { background: #fff; }
.pos-add[aria-pressed="true"] .pos-add__icon::before { width: 5px; height: 2px; transform: translate(-90%, 1px) rotate(45deg); }
.pos-add[aria-pressed="true"] .pos-add__icon::after { width: 2px; height: 10px; transform: translate(40%, -55%) rotate(45deg); }
.pos-mod.is-added { border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-tint), 0 22px 50px rgba(84, 86, 237, 0.12); }

/* The tray sticks to the bottom of the screen while the modules are in view. */
.pos-tray { position: sticky; bottom: 16px; z-index: 15; display: flex; background: rgba(20, 19, 26, 0.86); align-items: center; justify-content: space-between; gap: 12px 24px; margin-top: clamp(24px, 3vw, 36px); padding: 14px 14px 14px 24px; border-radius: 999px; color: #fff; }
.pos-tray__text { display: flex; flex-direction: column; min-width: 0; line-height: 1.35; }
.pos-tray__text b { font-size: 16px; font-weight: 600; }
.pos-tray__text span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 14px; color: rgba(255, 255, 255, 0.72); }
.pos-tray__actions { display: flex; flex: none; gap: 10px; }
.pos-tray :focus-visible { outline-color: #fff; }

/* ---------- Private by design ---------- */
.pos-private__grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 7vw, 112px); align-items: center; }
.pos-private__media { box-shadow: 0 40px 90px rgba(0, 0, 0, 0.4); }
.pos-private h2 { max-width: 18ch; }
.pos-private__list { margin-top: clamp(28px, 3vw, 40px); border-top: 1px solid var(--line-light); }
.pos-private__list > div { display: grid; grid-template-columns: minmax(0, 190px) minmax(0, 1fr); gap: 6px 24px; padding: 18px 0; border-bottom: 1px solid var(--line-light); }
.pos-private__list dt { font-size: 17px; font-weight: 600; color: #fff; }
.pos-private__list dd { margin: 0; font-size: 16px; line-height: 1.55; color: var(--on-dark-soft); }
.pos-lock { position: relative; width: 12px; height: 9px; margin-top: 4px; border-radius: 2px; background: #3ddc97; }
.pos-lock::before { content: ''; position: absolute; left: 2px; bottom: 7px; width: 4px; height: 5px; border: 2px solid #3ddc97; border-bottom: 0; border-radius: 4px 4px 0 0; }

/* ---------- How we work together: three route cards ---------- */
/* Three stops instead of four; below 1101px site.css already stacks them. */
@media (min-width: 1101px) { .route--h.pos-steps { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.pos-how .head { max-width: none; }

/* ---------- Closing call ---------- */
.pos-final { padding: clamp(80px, 10vw, 140px) 0; background: radial-gradient(120% 140% at 85% 0%, #6a6cf5 0%, var(--brand) 45%, #3a3cc4 100%); color: #fff; text-align: center; }
.pos-final__inner { display: flex; flex-direction: column; align-items: center; }
.pos-final h2 { max-width: 18ch; font-size: clamp(34px, 4.4vw, 62px); line-height: 1.04; letter-spacing: -0.035em; }
.pos-final p { max-width: 48ch; margin-top: 20px; font-size: clamp(17px, 1.35vw, 20px); color: rgba(255, 255, 255, 0.86); }
.pos-final .cta-row { justify-content: center; }
.pos-final__btn { background: #fff; color: var(--brand); }
.pos-final__btn:hover { background: #fff; color: var(--brand-deep); }
.pos-final :focus-visible { outline-color: #fff; }

/* ---------- Narrower screens ---------- */
@media (max-width: 1100px) {
  .pos-groups { grid-template-columns: 1fr; gap: 36px; }
  .pos-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; }
  .pos-core { grid-template-columns: 1fr; }
}
@media (max-width: 1024px) {
  .pos-hero__inner { grid-template-columns: 1fr; }
  .pos-brief { justify-self: start; }
  .pos-why__grid { grid-template-columns: 1fr; align-items: start; }
  .pos-private__grid { grid-template-columns: 1fr; }
  .pos-private__media { max-width: 440px; aspect-ratio: 4 / 4.4; }
}
@media (max-width: 860px) {
  .pos-hero { min-height: 0; }
  .pos-hero__scrim { background: linear-gradient(to bottom, rgba(20, 19, 26, 0.78) 0%, rgba(20, 19, 26, 0.6) 50%, rgba(20, 19, 26, 0.82) 100%); }
  .pos-hero__inner { padding-top: 48px; padding-bottom: 48px; }
  .pos-hero h1 { font-size: clamp(42px, 12vw, 60px); }
  .pos-core__list { grid-template-columns: 1fr; }
  .pos-tray { flex-direction: column; align-items: stretch; border-radius: 22px; padding: 14px; }
  .pos-tray__text { padding: 0 6px; }
  .pos-tray__actions .btn { flex: 1; }
}
@media (max-width: 640px) {
  .pos-grid { grid-template-columns: 1fr; }
  .pos-private__list > div { grid-template-columns: 1fr; }
  .pos-tray { gap: 10px; }
  .pos-tray.is-empty { display: none; }
  .pos-tray__actions { flex-direction: row; }
  .pos-tray__long { display: none; }
}

/* Menu: the offer's name beside the Deploy Joy logo, split by a thin line. */
.pos-nav__name { flex: none; padding-left: 18px; border-left: 1px solid var(--line); font-size: 16px; font-weight: 600; letter-spacing: -0.01em; color: var(--ink); text-decoration: none; white-space: nowrap; }
@media (max-width: 860px) { .pos-nav__name { padding-left: 12px; font-size: 15px; } }
