/*
  The residents page. Same family as the rest of the OB1 site, in daylight:
  pale lavender canvas, bright violet, and the Keeper everywhere.
  Loaded after styles.css. Everything here is scoped to body.res-page,
  except the "For residents" button, which sits in every page's header.
*/

/* ---- Daylight colours ---- */
body.res-page {
  color-scheme: light;
  --bg: #f5f2ff;
  --surface: #ffffff;
  --card: #ffffff;
  --card-2: #efeaff;
  --line: rgba(23, 19, 43, 0.10);
  --line-2: rgba(23, 19, 43, 0.18);
  --ink: #17132b;
  --ink-2: #4a4563;
  --ink-3: #67627f;
  --accent: #6b4eff;
  --accent-hi: #4b30d6;
  --accent-soft: #e6e0ff;
  --accent-ink: #3b25b8;
  --ready-bg: #d3f4e3; --ready-fg: #0b5a3a;
  --needs-bg: #ffecbf; --needs-fg: #6b4a00;
  --urgent-bg: #ffd9e0; --urgent-fg: #8a1230;
  --pink: #ff8fb1; --mint: #7de2d1; --sun: #ffd166;
}
.js body.res-page { padding-bottom: 0; }
.res-page .nav.stuck { background: rgba(245, 242, 255, .84); }
.res-page #nav.menu-open { background: #f5f2ff; }
.res-page .nav-links a:hover, .res-page .nav-btn:hover, .res-page .has-menu.open .nav-btn { background: rgba(23, 19, 43, .06); }
.res-page .mega::before { background: rgba(255, 255, 255, .98); box-shadow: 0 40px 80px -30px rgba(40, 20, 120, .45), 0 0 0 1px rgba(23, 19, 43, .04); }
.res-page .nav-toggle { background: #fff; }
.res-page .btn-light { background: #17132b; color: #fff; }
.res-page .btn-light:hover { background: #2a2350; }
.res-page .btn-ghost { background: #fff; border-color: var(--line-2); color: var(--ink); }
.res-page .btn-ghost:hover { background: #efeaff; }
.res-page .btn-accent { box-shadow: 0 10px 30px -10px rgba(107, 78, 255, .8); }
.res-page .btn-accent:hover { background: #5a3df0; }
.res-page .btn-res { background: #fff; border-color: var(--line-2); color: var(--ink); font-weight: 500; }
.res-page .btn-res:hover { background: #efeaff; }
.res-page .ticks li, .res-page .list li { color: var(--ink); }
.res-page .tile { box-shadow: 0 20px 50px -34px rgba(40, 20, 120, .4); }
.res-page .pill { background: #fff; }
.res-page h2 { text-wrap: balance; }
.res-page section { position: relative; }

/* ---- Opening ---- */
.r-hero { padding: 132px 0 64px; overflow: hidden; }
.r-sky { position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(42% 46% at 82% 18%, rgba(255, 143, 177, .42), transparent 70%),
    radial-gradient(40% 44% at 12% 8%, rgba(125, 226, 209, .40), transparent 70%),
    radial-gradient(46% 50% at 50% 96%, rgba(107, 78, 255, .26), transparent 70%),
    radial-gradient(30% 30% at 60% 40%, rgba(255, 209, 102, .26), transparent 70%); }
.r-hero-in { position: relative; display: grid; grid-template-columns: 1.05fr .95fr; gap: 48px; align-items: center; }
.r-hero h1 { margin-top: 22px; font-size: clamp(46px, 6.6vw, 92px); line-height: .98; letter-spacing: -0.04em;
  background: linear-gradient(120deg, #17132b 20%, #4b30d6 70%, #c2408c 110%); -webkit-background-clip: text; background-clip: text; color: transparent; padding-bottom: .1em; }
.r-hero .hero-sub { margin-top: 18px; max-width: 540px; text-wrap: pretty; }
.r-hero .cta-row { justify-content: flex-start; }
.r-fine { margin-top: 18px; font-size: 13.5px; color: var(--ink-3); max-width: 52ch; }

.r-show { position: relative; display: flex; justify-content: flex-end; padding-right: 3%; }
.r-show .rp { rotate: 3deg; }
.r-show .keeper { position: absolute; left: 0; bottom: 34px; width: clamp(120px, 15vw, 190px); margin: 0; z-index: 2; filter: drop-shadow(0 24px 24px rgba(59, 37, 184, .35)); }
.r-bubble { position: absolute; left: 0; bottom: clamp(190px, 20vw, 256px); z-index: 3; padding: 10px 16px; border-radius: 18px 18px 18px 4px; background: #17132b; color: #fff; font: 500 15px var(--display); box-shadow: 0 16px 30px -14px rgba(23, 19, 43, .6); }

/* A phone holding a real screen of the resident app */
.rp { position: relative; width: min(300px, 100%); aspect-ratio: 750 / 1624; padding: 9px; border-radius: 46px; background: #17132b; box-shadow: 0 0 0 1.5px #3a3360 inset, 0 50px 80px -34px rgba(40, 20, 120, .65), 0 14px 30px -18px rgba(23, 19, 43, .5); flex: none; }
.rp img { display: block; width: 100%; height: 100%; object-fit: cover; border-radius: 38px; background: #0d0b1d; }
.rp.sm { width: min(264px, 100%); }

/* ---- Shared section bits ---- */
.r-sec { padding: 96px 0; }
.r-sec .f-head p { color: var(--ink-2); }
.r-split { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.r-split.flip > :first-child { order: 2; }
.r-split .lede { margin-top: 18px; }
.r-art { position: relative; display: flex; justify-content: center; padding: 34px 0; }
.r-art::before { content: ""; position: absolute; inset: 0 6%; border-radius: 44px; background: linear-gradient(150deg, #dcd3ff, #ffd9e6 70%, #fff0c7); }
.r-art.mint::before { background: linear-gradient(150deg, #c9f3ea, #dcd3ff 70%, #ffd9e6); }
.r-art > * { position: relative; }
.r-points { margin-top: 26px; display: grid; gap: 18px; }
.r-points li { display: grid; grid-template-columns: 40px 1fr; gap: 14px; align-items: start; }
.r-points i { display: flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 13px; background: var(--accent-soft); color: var(--accent-ink); }
.r-points i svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.r-points b { display: block; font: 500 18px/1.25 var(--display); letter-spacing: -0.015em; }
.r-points span { display: block; margin-top: 3px; color: var(--ink-2); font-size: 15px; }
.r-note { margin-top: 22px; padding: 12px 16px; border-radius: 14px; background: var(--urgent-bg); color: var(--urgent-fg); font-weight: 500; font-size: 14.5px; }
.r-soft { margin-top: 22px; padding: 12px 16px; border-radius: 14px; background: var(--needs-bg); color: var(--needs-fg); font-size: 14.5px; }

/* ---- Ask the Keeper: tap a question ---- */
.r-ask { padding: 40px 0 96px; }
.r-askbox { margin-top: 40px; display: grid; grid-template-columns: 340px 1fr; gap: 20px; padding: 20px; border-radius: 34px; background: #6b4eff; box-shadow: 0 50px 90px -50px rgba(59, 37, 184, .9); }
.r-qs { display: flex; flex-direction: column; gap: 8px; padding: 10px; }
.r-qs-h { display: flex; align-items: center; gap: 12px; margin-bottom: 10px; color: #fff; }
.r-qs-h svg { width: 54px; height: 58px; flex: none; padding: 8px; border-radius: 16px; background: #17132b; overflow: visible; }
.r-qs-h b { display: block; font: 500 20px/1.15 var(--display); letter-spacing: -0.02em; }
.r-qs-h span { display: block; font-size: 13.5px; color: #e3ddff; margin-top: 2px; }
.r-q { text-align: left; padding: 12px 16px; border-radius: 16px; border: 1.5px solid transparent; background: rgba(23, 19, 43, .22); color: #fff; font: 500 15px var(--text); cursor: pointer; min-height: 48px; transition: background .15s, transform .15s; }
.r-q:hover { background: rgba(23, 19, 43, .36); }
.r-q[aria-pressed="true"] { background: #fff; color: #17132b; }
.r-q:focus-visible { outline: 2px solid #fff; outline-offset: 2px; border-radius: 16px; }
.r-chat { padding: 26px; border-radius: 24px; background: #120f24; color: #f5f4fa; min-height: 420px; display: flex; flex-direction: column; }
.r-a { display: none; flex-direction: column; gap: 14px; }
.r-a.on, html:not(.js) .r-a { display: flex; }
html:not(.js) .r-a + .r-a { margin-top: 28px; padding-top: 28px; border-top: 1px solid rgba(255, 255, 255, .12); }
.r-you { align-self: flex-end; max-width: 85%; padding: 11px 18px; border-radius: 20px 20px 4px 20px; background: #6b4eff; font-size: 16px; }
.r-kp { align-self: flex-start; max-width: 92%; padding: 18px 20px; border-radius: 4px 20px 20px 20px; background: #1d1a33; border: 1px solid rgba(255, 255, 255, .1); font-size: 16px; line-height: 1.5; }
.js .r-a.on .r-you { animation: rIn .35s both; }
.js .r-a.on .r-kp { animation: rIn .45s .25s both; }
@keyframes rIn { from { opacity: 0; transform: translateY(10px); } }
.r-kp ol { margin: 12px 0 0; padding: 0; list-style: none; counter-reset: s; display: grid; gap: 8px; }
.r-kp ol li { position: relative; padding-left: 34px; counter-increment: s; }
.r-kp ol li::before { content: counter(s); position: absolute; left: 0; top: 1px; width: 22px; height: 22px; border-radius: 50%; background: #2c2552; color: #cfc6ff; font: 600 12px/22px var(--text); text-align: center; }
.r-kp p + p { margin-top: 10px; }
.r-src { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.r-src span { padding: 5px 12px; border-radius: 999px; background: #2c2552; color: #cfc6ff; font-size: 13px; font-weight: 500; }
.r-draft { margin-top: 14px; padding: 14px 16px; border-radius: 16px; border: 1px solid rgba(255, 255, 255, .16); }
.r-draft small { display: flex; justify-content: space-between; align-items: center; font: 500 11.5px var(--text); letter-spacing: .08em; text-transform: uppercase; color: #a9a5c2; }
.r-draft small em { font-style: normal; letter-spacing: 0; text-transform: none; padding: 2px 10px; border-radius: 999px; background: #ffc2cf; color: #5c0b20; font-weight: 600; }
.r-draft b { display: block; margin-top: 8px; font-weight: 600; }
.r-draft u { display: inline-block; margin-top: 12px; padding: 8px 18px; border-radius: 999px; background: #6b4eff; color: #fff; text-decoration: none; font-weight: 600; font-size: 14px; }
.r-chat-foot { margin-top: auto; padding-top: 22px; font-size: 13px; color: #a9a5c2; }

/* ---- Moving in ---- */
.r-move { background: #fff; }
.r-steps { margin: 48px 0 0; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; counter-reset: m; }
.r-steps li { counter-increment: m; padding: 26px 24px 28px; border-radius: 24px; background: #f5f2ff; }
.r-steps li:nth-child(2) { background: #ffe9f0; } .r-steps li:nth-child(3) { background: #dff7f1; } .r-steps li:nth-child(4) { background: #fff3d1; }
.r-steps li::before { content: counter(m); display: flex; align-items: center; justify-content: center; width: 38px; height: 38px; border-radius: 50%; background: #17132b; color: #fff; font: 600 16px var(--display); }
.r-steps h3 { margin-top: 18px; font-size: 21px; line-height: 1.15; }
.r-steps p { margin-top: 8px; color: #3d3857; font-size: 15px; }

/* ---- Siri ---- */
.r-siri { width: min(340px, 100%); padding: 22px; border-radius: 34px; background: #17132b; color: #fff; box-shadow: 0 50px 80px -34px rgba(40, 20, 120, .65); display: grid; gap: 12px; }
.r-siri .orb { justify-self: center; width: 54px; height: 54px; border-radius: 50%; background: conic-gradient(from 40deg, #7de2d1, #6b4eff, #ff8fb1, #ffd166, #7de2d1); filter: blur(.4px); animation: spin 9s linear infinite; }
@keyframes spin { to { rotate: 360deg; } }
.r-siri p { padding: 11px 16px; border-radius: 18px; font-size: 15.5px; line-height: 1.4; }
.r-siri .me { justify-self: end; max-width: 88%; background: #6b4eff; border-bottom-right-radius: 4px; }
.r-siri .si { justify-self: start; max-width: 92%; background: #2a2449; border-bottom-left-radius: 4px; }
.r-siri small { display: block; font: 500 11px var(--text); letter-spacing: .08em; text-transform: uppercase; color: #a9a5c2; margin-bottom: 3px; }
.r-siri .done { background: #12382a; color: #b9f1d6; }

/* ---- Safe by design ---- */
.r-safe { background: #17132b; color: #f5f4fa; --ink: #f5f4fa; --ink-2: #b4b0cc; --line: rgba(255,255,255,.1); --accent-hi: #b9aeff; border-radius: 44px; margin: 0 max(12px, env(safe-area-inset-left)); }
.r-safe .f-head p { color: #b4b0cc; }
.r-six { margin-top: 48px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: rgba(255, 255, 255, .12); border-radius: 24px; overflow: hidden; }
.r-six > div { padding: 28px 26px 30px; background: #17132b; }
.r-six h3 { font-size: 20px; line-height: 1.2; }
.r-six p { margin-top: 8px; color: #b4b0cc; font-size: 15px; }

/* ---- Where it stands ---- */
.r-status .grid3 { margin-top: 44px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.r-status .tile { padding: 28px; }
.r-status .tile h3.sm { font-size: 20px; margin-top: 16px; }
.r-status .tile p { font-size: 15px; }
.r-status .list li { font-size: 15px; }

/* ---- Close ---- */
.r-cta { padding: 110px 0 120px; text-align: center; overflow: hidden; }
.r-cta .r-sky { background: radial-gradient(50% 70% at 50% 100%, rgba(107, 78, 255, .34), transparent 70%), radial-gradient(30% 40% at 16% 60%, rgba(255, 143, 177, .34), transparent 70%), radial-gradient(30% 40% at 84% 60%, rgba(125, 226, 209, .36), transparent 70%); }
.r-cta-in { position: relative; display: flex; flex-direction: column; align-items: center; }
.r-cta .keeper { width: 110px; }
.r-cta h2 { font-size: clamp(34px, 4.6vw, 56px); }
.r-cta .lede { margin-top: 18px; }
.r-said { min-height: 22px; margin-top: 14px; font-size: 14px; color: var(--accent-ink); font-weight: 500; }
.res-page .faq { padding-top: 40px; }

@media (prefers-reduced-motion: reduce) {
  .r-siri .orb, .js .r-a.on .r-you, .js .r-a.on .r-kp { animation: none; }
}

@media (max-width: 980px) {
  .r-askbox { grid-template-columns: 1fr; }
  .r-qs { padding: 6px; }
  .r-steps { grid-template-columns: 1fr 1fr; }
  .r-six, .r-status .grid3 { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 860px) {
  .r-hero { padding: 104px 0 40px; }
  .r-hero-in { grid-template-columns: 1fr; gap: 36px; text-align: center; }
  .r-hero .hero-sub, .r-fine { margin-inline: auto; }
  .r-hero .pill { margin-inline: auto; }
  .r-hero .cta-row { justify-content: center; }
  .r-show { justify-content: center; padding-right: 0; }
  .r-show .keeper { left: 0; width: 104px; bottom: -6px; }
  .r-bubble { display: none; }
  .r-sec { padding: 68px 0; }
  .r-split { grid-template-columns: 1fr; gap: 36px; }
  .r-split.flip > :first-child { order: 0; }
  .r-ask { padding: 24px 0 68px; }
  .r-safe { border-radius: 30px; }
  .r-art::before { inset: 0; border-radius: 34px; }
  .r-art { padding: 28px 14px; }
}
@media (max-width: 720px) {
  .r-askbox { padding: 12px; border-radius: 26px; margin-top: 28px; }
  .r-qs { flex-direction: row; flex-wrap: nowrap; overflow-x: auto; margin: 0 -12px; padding: 0 12px 6px; scrollbar-width: none; scroll-snap-type: x proximity; }
  .r-qs::-webkit-scrollbar { display: none; }
  .r-qs-h { display: none; }
  .r-q { flex: none; white-space: nowrap; scroll-snap-align: start; }
  .r-chat { padding: 18px; min-height: 0; border-radius: 20px; }
  .r-steps, .r-six, .r-status .grid3 { grid-template-columns: 1fr; }
  .r-steps li { display: grid; grid-template-columns: 38px 1fr; column-gap: 14px; padding: 20px; }
  .r-steps li::before { grid-row: span 2; }
  .r-steps h3 { margin-top: 0; font-size: 19px; }
  .r-steps p { grid-column: 2; }
  .r-six > div { padding: 22px 20px; }
  .rp { width: min(260px, 78vw); }
  .r-cta { padding: 76px 0 84px; }
  .r-cta .cta-row .btn { width: 100%; }
}

/* "One Building" under the wordmark in the header */
.logo-ob .lo-name { display: flex; flex-direction: column; line-height: 1; }
.logo-ob .lo-name small { margin-top: 4px; font: 600 9px var(--text); letter-spacing: .22em; text-transform: uppercase; color: var(--accent-hi); white-space: nowrap; }
.nav-toggle { flex-shrink: 0; }
@media (max-width: 480px) { .res-page .nav .wide-only { display: none; } }
