/* Haven public-site design layer — "Presence" (Signal rings). Shared by haven.app and desktop.haven.app/vault.
   Neutral ink/white system, Haven yellow as accent and for the presence mark only. */
:root { --hv-ink: #0c1a2b; --hv-gold: #f5cb1d; --hv-gold-deep: #e2b40f; --hv-line: #e6e8ec; --hv-soft: #fafbfc; --hv-mute: #5b6472; --hv-faint: #8a93a1; }

/* nav: pill CTA */
header.site nav.site a.nav-cta { background: var(--hv-ink); color: #fff; padding: 10px 18px; border-radius: 999px; font-weight: 500; }
header.site nav.site a.nav-cta:hover { color: #fff; opacity: .9; text-decoration: none; }
@media (max-width: 760px) { header.site nav.site:has(.nav-cta) a:not(.nav-cta) { display: none; } header.site nav.site a.nav-cta { display: inline-flex; } }

/* hero */
.p1-hero { text-align: center; padding: 34px 0 20px; }
.kicker.center { text-align: center; letter-spacing: .24em; margin: 6px 0 0; }
.p1-hero h1 { margin: 14px auto 0; font-weight: 800; font-size: clamp(2.6rem, 7.4vw, 6rem); line-height: .95; letter-spacing: -0.045em; max-width: 16ch; text-wrap: balance; }
.p1-sub { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 44px; margin-top: 28px; font-size: clamp(1rem, 1.6vw, 1.25rem); color: var(--hv-mute); }
.p1-sub p { margin: 0; } .p1-sub b { color: var(--hv-ink); font-weight: 650; }
.btn-appstore { display: inline-flex; align-items: center; gap: 12px; margin-top: 36px; background: var(--hv-ink); color: #fff; padding: 18px 30px; border-radius: 999px; font-weight: 650; font-size: 1.05rem; text-decoration: none; transition: transform .15s ease, box-shadow .15s ease; }
.btn-appstore:hover { color: #fff; text-decoration: none; transform: translateY(-1px); box-shadow: 0 10px 26px rgba(12,26,43,.22); }
.btn-appstore:focus-visible, .nav-cta:focus-visible { outline: 3px solid var(--hv-gold); outline-offset: 3px; }
.trial { margin: 14px 0 0; font-size: .82rem; color: var(--hv-faint); }

/* presence mark: Haven shield with signal rings */
.sig { position: relative; width: min(420px, 82vw); aspect-ratio: 1; margin: 0 auto; }
.sig .rip { position: absolute; inset: 0; border-radius: 50%; border: 1.5px solid rgba(245,203,29,.8); animation: hv-ripple 4s ease-out infinite; }
.sig .r2 { animation-delay: 1.33s; } .sig .r3 { animation-delay: 2.66s; }
.sig .ring-inner { position: absolute; inset: 17%; border-radius: 50%; border: 1px solid rgba(245,203,29,.45); }
.sig .glow { position: absolute; inset: 28%; border-radius: 50%; background: radial-gradient(circle at 50% 55%, rgba(245,203,29,.6), rgba(245,203,29,0) 72%); }
.sig .core { position: absolute; inset: 30.5%; border-radius: 50%; background: radial-gradient(circle at 50% 35%, #1b2a40, var(--hv-ink) 70%);
             box-shadow: 0 34px 70px -22px rgba(168,121,28,.55), 0 0 0 8px rgba(245,203,29,.9), 0 0 0 20px rgba(245,203,29,.25), 0 0 60px rgba(245,203,29,.45); }
.sig .mark { position: absolute; left: 50%; top: 50%; width: 19%; height: auto; transform: translate(-50%, -50%); filter: drop-shadow(0 0 14px rgba(245,203,29,.55)); }
@keyframes hv-ripple { 0% { transform: scale(.6); opacity: .65; } 100% { transform: scale(1.25); opacity: 0; } }

/* USP cards */
.p1-section { padding: 70px 0 30px; }
.p1-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.p1-card { border: 1px solid var(--hv-line); border-radius: 24px; padding: 28px; background: var(--hv-soft); transition: transform .2s ease, box-shadow .2s ease; }
.p1-card:hover { transform: translateY(-3px); box-shadow: 0 16px 40px rgba(12,26,43,.08); }
.p1-card .num { font-family: var(--mono); font-size: .8rem; color: var(--hv-faint); }
.p1-card .num i { display: inline-block; width: 18px; height: 2px; background: var(--hv-gold); vertical-align: middle; margin-left: 6px; }
.p1-card h2 { margin: 14px 0 8px; font-size: 1.4rem; }
.p1-card p { margin: 0; color: var(--hv-mute); line-height: 1.55; }

/* history */
.p1-history { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 20px; margin-top: 22px; align-items: stretch; }
.p1-shot { margin: 0; border-radius: 24px; overflow: hidden; background: var(--hv-ink); border: 1px solid var(--hv-line); }
.p1-shot img { display: block; width: 100%; height: 100%; object-fit: cover; }
.p1-log { display: flex; flex-direction: column; gap: 12px; }
.p1-log .row { display: flex; justify-content: space-between; align-items: center; gap: 12px; border: 1px solid var(--hv-line); border-radius: 18px; padding: 16px 18px; background: #fff; }
.p1-log .row b { display: block; font-weight: 500; margin-top: 4px; }
.p1-log .row time { font-size: .8rem; color: var(--hv-faint); flex: none; }
.p1-log .tag { font-family: var(--mono); font-size: .68rem; letter-spacing: .04em; color: var(--hv-mute); }
.p1-log .tag.ok { color: #15803d; }
.p1-log .alert.red { border-left: 3px solid #b42318; } .p1-log .alert.red .tag { color: #b42318; }
.p1-log .alert.orange { border-left: 3px solid #c4661a; } .p1-log .alert.orange .tag { color: #b45309; }
.p1-log .soft { background: #f4f5f7; border-color: transparent; }
.p1-log .soft b { margin: 0; }
.sw { width: 44px; height: 26px; border-radius: 999px; background: var(--hv-ink); position: relative; flex: none; }
.sw::after { content: ""; position: absolute; right: 3px; top: 3px; width: 20px; height: 20px; border-radius: 50%; background: var(--hv-gold); }

/* closing band */
.p1-close { border-top: 1px solid var(--hv-line); padding: 48px 0 60px; }
.p1-close .wrap { display: flex; flex-wrap: wrap; gap: 24px; justify-content: space-between; align-items: center; }
.p1-close h2 { margin: 0; font-size: clamp(1.6rem, 3vw, 2.4rem); font-weight: 800; letter-spacing: -0.03em; }
.p1-close p { margin: 8px 0 0; color: var(--hv-mute); }
.p1-close .btn-appstore { margin-top: 0; }

@media (max-width: 860px) {
  .p1-cards, .p1-history { grid-template-columns: 1fr; }
  .p1-section { padding-top: 48px; }
}
@media (prefers-reduced-motion: reduce) { .sig .rip { animation: none; opacity: .35; } .btn-appstore, .p1-card { transition: none; } }

/* hero: live alert feed beside the shield (haven.app) */
.p1-hero { position: relative; overflow-x: clip; }
.p1-hero > .wrap { position: relative; }
.p1-hero.has-feed::before { content: ""; position: absolute; left: -10%; right: -10%; top: -20%; height: 640px; background: radial-gradient(60% 50% at 50% 30%, rgba(245,203,29,.10), rgba(245,203,29,0) 70%); pointer-events: none; }
.hv-feed { position: absolute; top: 0; left: calc(50% + 200px); width: 330px; height: 420px; z-index: 1; pointer-events: none;
  -webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 30%, #000 82%, transparent 100%); mask-image: linear-gradient(to bottom, transparent 0, #000 30%, #000 82%, transparent 100%); }
.hv-feed .lbl { position: absolute; right: 6px; top: 8px; font: 500 10.5px var(--mono); letter-spacing: .2em; color: var(--hv-faint); display: flex; gap: 7px; align-items: center; }
.hv-feed .lbl i { width: 6px; height: 6px; border-radius: 50%; background: var(--hv-gold); box-shadow: 0 0 0 4px rgba(245,203,29,.25); animation: hv-blink 2s ease-in-out infinite; }
@keyframes hv-blink { 50% { opacity: .35; } }
.hv-card { position: absolute; left: 0; right: 0; bottom: 56px; display: flex; gap: 12px; align-items: center; text-align: left; padding: 12px 14px; border-radius: 16px;
  background: rgba(255,255,255,.62); border: 1px solid rgba(12,26,43,.08); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  box-shadow: 0 14px 34px -18px rgba(12,26,43,.28); transition: transform 1.1s cubic-bezier(.2,.7,.2,1), opacity 1.1s ease; }
.hv-card.new { opacity: 0 !important; transform: translateY(18px) scale(.96) !important; }
.hv-card .ic { flex: 0 0 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; }
.hv-card .ic svg { width: 15px; height: 15px; }
.hv-card.ok .ic { background: rgba(21,128,61,.12); color: #15803d; }
.hv-card.warn .ic { background: rgba(180,83,9,.12); color: #b45309; }
.hv-card.bad .ic { background: rgba(185,28,28,.12); color: #b91c1c; }
.hv-card.bad { border-color: rgba(185,28,28,.22); }
.hv-card .t { font-size: 14px; font-weight: 650; line-height: 1.25; color: var(--hv-ink); }
.hv-card .s { font-size: 12px; color: var(--hv-mute); margin-top: 2px; }
.hv-card .tm { margin-left: auto; font: 400 11px var(--mono); color: var(--hv-faint); align-self: flex-start; padding-top: 2px; }
@media (max-width: 1060px) {
  .hv-feed { position: relative; left: auto; top: auto; width: min(340px, 92%); height: 74px; margin: -18px auto 0; -webkit-mask-image: none; mask-image: none; }
  .hv-feed .lbl { display: none; }
  .hv-card { bottom: 0; }
}
@media (prefers-reduced-motion: reduce) { .hv-feed .lbl i { animation: none; } .hv-card { transition: none; } }
