/* Holy Shield — holyshield.app. Tokens follow src/ui/theme.ts and the Claude Design project. */

@font-face {
  font-family: 'Space Grotesk';
  font-weight: 700;
  font-display: swap;
  src: url('/fonts/SpaceGrotesk_700Bold.ttf') format('truetype');
}
@font-face {
  font-family: 'Manrope';
  font-weight: 500;
  font-display: swap;
  src: url('/fonts/Manrope_500Medium.ttf') format('truetype');
}
@font-face {
  font-family: 'Manrope';
  font-weight: 600;
  font-display: swap;
  src: url('/fonts/Manrope_600SemiBold.ttf') format('truetype');
}
@font-face {
  font-family: 'Manrope';
  font-weight: 700;
  font-display: swap;
  src: url('/fonts/Manrope_700Bold.ttf') format('truetype');
}
@font-face {
  font-family: 'Manrope';
  font-weight: 800;
  font-display: swap;
  src: url('/fonts/Manrope_800ExtraBold.ttf') format('truetype');
}

:root {
  --void: #0a0b0c;
  --void-deep: #08090a;
  --signal: #2fe08a;
  --signal-pressed: #5bf0aa;
  --signal-deep: #0fa85f;
  --on-signal: #05140c;
  --chalk: #f2f5f3;
  --chalk-reading: rgba(242, 245, 243, 0.88);
  --chalk-muted: rgba(242, 245, 243, 0.7);
  --chalk-faint: rgba(242, 245, 243, 0.62);
  --card: rgba(255, 255, 255, 0.04);
  --card-border: rgba(255, 255, 255, 0.08);
  --signal-tint: rgba(47, 224, 138, 0.12);
  --signal-border: rgba(47, 224, 138, 0.25);
  --display: 'Space Grotesk', system-ui, sans-serif;
  --body: Manrope, system-ui, sans-serif;
  --wrap: 1120px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}

body {
  margin: 0;
  background: var(--void);
  color: var(--chalk);
  font-family: var(--body);
  font-weight: 500;
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img,
svg {
  display: block;
}

a {
  color: var(--signal);
  text-decoration: none;
}
a:hover {
  color: var(--signal-pressed);
}
a:focus-visible,
summary:focus-visible {
  outline: 2px solid var(--signal);
  outline-offset: 3px;
  border-radius: 6px;
}

h1,
h2,
h3 {
  font-family: var(--display);
  font-weight: 700;
  margin: 0;
  text-wrap: balance;
}
h1 {
  font-size: clamp(44px, 6.4vw, 76px);
  line-height: 1.02;
  letter-spacing: -0.035em;
}
h2 {
  font-size: clamp(32px, 4.2vw, 50px);
  line-height: 1.06;
  letter-spacing: -0.03em;
}
h3 {
  font-size: 20px;
  line-height: 1.25;
  letter-spacing: -0.015em;
}
p {
  margin: 0;
  text-wrap: pretty;
}

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 24px;
}
.narrow {
  max-width: 760px;
}
.center {
  text-align: center;
}
.muted {
  color: var(--chalk-muted);
}

.skip {
  position: absolute;
  left: -9999px;
  top: 12px;
  z-index: 100;
  padding: 10px 16px;
  border-radius: 12px;
  background: var(--signal);
  color: var(--on-signal);
  font-weight: 800;
}
.skip:focus {
  left: 12px;
}

/* ---------- Pieces ---------- */

.pill {
  display: inline-block;
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid var(--signal-border);
  background: var(--signal-tint);
  color: var(--signal);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  line-height: 1.3;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 16px;
  background: var(--signal);
  color: var(--on-signal);
  font-weight: 800;
  box-shadow: 0 14px 40px rgba(47, 224, 138, 0.28);
  transition: background 0.15s ease;
}
.btn:hover {
  background: var(--signal-pressed);
  color: var(--on-signal);
}
.btn-small {
  height: 42px;
  padding: 0 18px;
  font-size: 15px;
  border-radius: 13px;
  box-shadow: none;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--chalk);
  font-family: var(--display);
  font-weight: 700;
  font-size: 19px;
  letter-spacing: -0.02em;
}
.brand:hover {
  color: var(--chalk);
}
.brand-mark {
  width: 22px;
  height: 25px;
}

/* Phone: the raw screens already carry the screen's rounded corners, so the bezel just frames them. */
.phone {
  margin: 0;
  position: relative;
  padding: 9px;
  border-radius: 13.5% / 6.2%;
  background: linear-gradient(160deg, #2a2d2f, #141617 40%, #1d2022);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.07),
    0 40px 80px rgba(0, 0, 0, 0.55);
}
.phone img {
  width: 100%;
  height: auto;
  border-radius: 11.6% / 5.35%;
}
.phone figcaption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -40px;
  text-align: center;
  font-size: 14px;
  font-weight: 700;
  color: var(--chalk-faint);
}

.card {
  padding: 26px 24px;
  border-radius: 22px;
  background: var(--card);
  border: 1px solid var(--card-border);
}
.card h3 {
  margin-bottom: 8px;
}
.card p {
  color: var(--chalk-muted);
  font-size: 16px;
}

/* ---------- Nav ---------- */

.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(10, 11, 12, 0.72);
  backdrop-filter: saturate(140%) blur(16px);
  -webkit-backdrop-filter: saturate(140%) blur(16px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
  gap: 24px;
}
.nav nav {
  display: flex;
  gap: 28px;
}
.nav nav a {
  color: var(--chalk-muted);
  font-size: 15px;
  font-weight: 600;
}
.nav nav a:hover {
  color: var(--chalk);
}

/* ---------- Hero ---------- */

.hero {
  position: relative;
  overflow: hidden;
  padding: 72px 0 96px;
  background: radial-gradient(
    70% 60% at 72% 30%,
    rgba(47, 224, 138, 0.16),
    rgba(10, 11, 12, 0) 70%
  );
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  align-items: center;
  gap: 48px;
}
.hero-copy h1 {
  margin: 22px 0 22px;
}
.lede {
  font-size: 19px;
  color: var(--chalk-muted);
  max-width: 30em;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 34px;
}
.store {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  height: 58px;
  padding: 0 20px 0 16px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: var(--chalk);
  font-weight: 800;
  font-size: 17px;
  line-height: 1.1;
}
.store svg {
  width: 24px;
  height: 24px;
  fill: var(--chalk);
}
.store small {
  display: block;
  font-size: 11px;
  font-weight: 600;
  color: var(--chalk-faint);
  letter-spacing: 0.02em;
}

.hero-art {
  position: relative;
  height: 640px;
}
.halo {
  position: absolute;
  inset: 8% 0 0;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(47, 224, 138, 0.28), rgba(47, 224, 138, 0) 65%);
  animation: glow 4s ease-in-out infinite;
}
.hero-art .phone {
  position: absolute;
  width: 290px;
}
.phone-front {
  left: 8%;
  top: 0;
  z-index: 2;
}
.phone-back {
  right: 2%;
  top: 70px;
  transform: rotate(4deg);
  opacity: 0.9;
}

/* ---------- Sections ---------- */

section {
  padding: 112px 0;
}

.split {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 80px;
  align-items: center;
}
.split-rev {
  grid-template-columns: 1.15fr 1fr;
}
.split-art {
  display: flex;
  justify-content: center;
  position: relative;
}
.split-art::before {
  content: '';
  position: absolute;
  inset: 10% -10%;
  background: radial-gradient(circle, rgba(47, 224, 138, 0.16), rgba(47, 224, 138, 0) 62%);
}
.split-art .phone {
  width: 300px;
}
.split-copy h2 {
  margin: 18px 0 20px;
}
.split-copy > p {
  color: var(--chalk-muted);
  font-size: 18px;
}

.session {
  background: linear-gradient(180deg, var(--void) 0%, var(--void-deep) 100%);
}
.section-head {
  max-width: 720px;
  margin-bottom: 56px;
}
.section-head h2 {
  margin: 18px 0 16px;
}
.section-head .muted {
  font-size: 18px;
}

.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin: 0 0 88px;
  padding: 0;
  list-style: none;
}
.step {
  padding: 24px 22px 26px;
  border-radius: 22px;
  background: var(--card);
  border: 1px solid var(--card-border);
}
.step-n {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  margin-bottom: 18px;
  border-radius: 11px;
  background: var(--signal-tint);
  color: var(--signal);
  font-family: var(--display);
  font-weight: 700;
}
.step h3 {
  margin-bottom: 8px;
}
.step p {
  color: var(--chalk-muted);
  font-size: 15.5px;
}

.gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 48px;
  max-width: 940px;
  margin: 0 auto;
  padding-bottom: 40px;
}

.journeys {
  margin: 32px 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 12px;
}
.journeys li {
  padding: 18px 20px;
  border-radius: 18px;
  background: var(--card);
  border: 1px solid var(--card-border);
}
.j-goal {
  display: block;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--signal);
}
.j-title {
  display: block;
  margin-top: 4px;
  font-family: var(--display);
  font-weight: 700;
  font-size: 20px;
  letter-spacing: -0.015em;
}

.privacy {
  background: radial-gradient(60% 50% at 50% 0%, rgba(47, 224, 138, 0.12), rgba(10, 11, 12, 0) 70%);
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}
.privacy .narrow {
  margin-bottom: 8px;
}
.privacy-mark {
  width: 56px;
  height: 63px;
  margin: 0 auto 24px;
  filter: drop-shadow(0 12px 36px rgba(47, 224, 138, 0.35));
}
.privacy h2 {
  margin: 18px 0 16px;
}
.privacy .muted {
  font-size: 18px;
}
.fineprint {
  margin-top: 32px;
  font-weight: 700;
  font-size: 15px;
}

.faq h2 {
  margin-bottom: 32px;
}
details {
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
details:first-of-type {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}
summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 22px 0;
  cursor: pointer;
  list-style: none;
  font-weight: 700;
  font-size: 18px;
}
summary::-webkit-details-marker {
  display: none;
}
summary::after {
  content: '';
  flex: none;
  width: 12px;
  height: 12px;
  border-right: 2px solid var(--chalk-faint);
  border-bottom: 2px solid var(--chalk-faint);
  transform: translateY(-3px) rotate(45deg);
  transition: transform 0.2s ease;
}
details[open] summary::after {
  transform: translateY(3px) rotate(-135deg);
}
details p {
  padding: 0 0 24px;
  color: var(--chalk-muted);
  max-width: 62ch;
}

.closing {
  padding: 120px 0 128px;
  background: radial-gradient(
    50% 60% at 50% 40%,
    rgba(47, 224, 138, 0.16),
    rgba(10, 11, 12, 0) 70%
  );
}
.emblem {
  position: relative;
  width: 84px;
  height: 94px;
  margin: 0 auto 40px;
}
.emblem svg {
  position: relative;
  width: 84px;
  height: 94px;
  filter: drop-shadow(0 18px 50px rgba(47, 224, 138, 0.32));
}
.ring {
  position: absolute;
  inset: -34px;
  border-radius: 50%;
  border: 1.5px solid rgba(47, 224, 138, 0.4);
  animation: ring 2.6s ease-out infinite;
}
.ring-2 {
  animation-delay: 0.85s;
}
.closing h2 {
  margin-bottom: 12px;
}
.closing .muted {
  font-size: 18px;
}

.footer {
  padding: 36px 0 44px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  font-size: 14px;
  color: var(--chalk-faint);
}
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}
.footer .brand {
  font-size: 16px;
}
.footer nav a {
  color: var(--chalk-muted);
  font-weight: 700;
}
.footer nav a:hover {
  color: var(--chalk);
}

/* ---------- Motion (matches the app's hsGlow / hsRing) ---------- */

@keyframes glow {
  0%,
  100% {
    opacity: 0.6;
    transform: scale(1);
  }
  50% {
    opacity: 1;
    transform: scale(1.05);
  }
}
@keyframes ring {
  0% {
    transform: scale(0.82);
    opacity: 0.7;
  }
  100% {
    transform: scale(1.5);
    opacity: 0;
  }
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .halo {
    animation: none;
  }
  .ring {
    display: none;
  }
}

/* ---------- Responsive ---------- */

@media (max-width: 960px) {
  .nav nav {
    display: none;
  }
  .hero {
    padding: 48px 0 72px;
  }
  .hero-grid,
  .split,
  .split-rev {
    grid-template-columns: 1fr;
  }
  .hero-art {
    height: 560px;
    max-width: 480px;
    width: 100%;
    margin: 0 auto;
  }
  .hero-art .phone {
    width: 250px;
  }
  .split {
    gap: 48px;
  }
  .split-rev .split-art {
    order: -1;
  }
  .split-art .phone {
    width: 260px;
  }
  .steps {
    grid-template-columns: repeat(2, 1fr);
  }
  section {
    padding: 88px 0;
  }
}

@media (max-width: 640px) {
  body {
    font-size: 16px;
  }
  .lede {
    font-size: 17px;
  }
  .hero-art {
    height: 470px;
  }
  .hero-art .phone {
    width: 205px;
  }
  .phone-front {
    left: 2%;
  }
  .phone-back {
    right: 0;
    top: 50px;
  }
  .steps {
    grid-template-columns: 1fr;
    margin-bottom: 64px;
  }
  .gallery {
    display: flex;
    gap: 20px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    margin: 0 -24px;
    padding: 0 24px 52px;
    scrollbar-width: none;
  }
  .gallery::-webkit-scrollbar {
    display: none;
  }
  .gallery .phone {
    flex: 0 0 72%;
    scroll-snap-align: center;
  }
  .store {
    flex: 1 1 200px;
  }
}

/* ---------- Store link, buttons ---------- */

a.store:hover {
  color: var(--chalk);
  background: rgba(255, 255, 255, 0.1);
}
.store-live {
  background: var(--chalk);
  border-color: var(--chalk);
  color: var(--void);
}
.store-live svg {
  fill: var(--void);
}
.store-live small {
  color: rgba(10, 11, 12, 0.62);
}
a.store-live:hover {
  background: #fff;
  color: var(--void);
}
.btn-large {
  height: 56px;
  padding: 0 26px;
  font-size: 16.5px;
}
.btn-ghost {
  background: rgba(255, 255, 255, 0.06);
  color: var(--chalk);
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: none;
}
.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.12);
  color: var(--chalk);
}
.btn-block {
  width: 100%;
  height: 56px;
  border: 0;
  font: inherit;
  font-weight: 800;
  font-size: 16.5px;
  cursor: pointer;
}
.btn-block:disabled {
  opacity: 0.6;
  cursor: default;
}
.btn:focus-visible {
  outline: 2px solid var(--chalk);
  outline-offset: 3px;
}
.cta-center {
  justify-content: center;
  margin-top: 28px;
}

/* ---------- Android beta ---------- */

.beta {
  background: radial-gradient(60% 60% at 80% 40%, rgba(47, 224, 138, 0.1), rgba(10, 11, 12, 0) 70%);
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}
.beta-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}
.beta-copy h2 {
  margin: 18px 0 20px;
}
.beta-copy > .muted {
  font-size: 18px;
}
.beta-form {
  display: grid;
  gap: 20px;
  padding: 32px 28px;
}
.field label {
  display: block;
  margin-bottom: 8px;
  font-weight: 700;
  font-size: 15px;
}
.field input {
  width: 100%;
  height: 54px;
  padding: 0 16px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(0, 0, 0, 0.25);
  color: var(--chalk);
  font: inherit;
  font-size: 16px;
}
.field input::placeholder {
  color: rgba(242, 245, 243, 0.4);
}
.field input:focus {
  outline: none;
  border-color: var(--signal);
  box-shadow: 0 0 0 3px rgba(47, 224, 138, 0.2);
}
.hint {
  margin-top: 8px;
  font-size: 13.5px;
  color: var(--chalk-faint);
}
.beta-form > .hint {
  margin-top: -8px;
  text-align: center;
}
.form-status {
  font-weight: 700;
  font-size: 15px;
  text-align: center;
}
.form-status:empty {
  display: none;
}
.form-status[data-state='ok'] {
  color: var(--signal);
}
.form-status[data-state='error'] {
  color: #ffb4a8;
}
.beta-form.is-done .field,
.beta-form.is-done .btn-block,
.beta-form.is-done > .hint {
  display: none;
}

.footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}

@media (max-width: 960px) {
  .beta-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
}

/* ---------- Privacy policy ---------- */

.legal {
  padding: 72px 0 112px;
}
.legal h1 {
  margin: 20px 0 12px;
  font-size: clamp(38px, 5vw, 56px);
}
.legal-date {
  color: var(--chalk-faint);
  font-weight: 700;
  font-size: 15px;
}
.legal h2 {
  margin: 48px 0 14px;
  font-size: 24px;
  letter-spacing: -0.02em;
}
.legal p,
.legal li {
  color: var(--chalk-reading);
}
.legal p + p {
  margin-top: 14px;
}
.legal ul {
  margin: 14px 0;
  padding-left: 22px;
  display: grid;
  gap: 10px;
}
.legal li::marker {
  color: var(--signal);
}
.legal strong {
  color: var(--chalk);
  font-weight: 700;
}
.legal-summary {
  margin-top: 36px;
  padding: 26px 26px 28px;
  border-radius: 22px;
  background: var(--signal-tint);
  border: 1px solid var(--signal-border);
}
.legal-summary h2 {
  margin-top: 0;
}

/* Honeypot: hidden from people and screen readers, still filled in by naive bots. */
.trap {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
