:root {
  --phonerestore-green: #4ade80;
  --phonerestore-green-soft: #dcfce7;
}

/* Shared brand system: adapted from the approved Senior Scam Check shield. */
.brand {
  gap: .8rem;
  min-width: 12.8rem;
  line-height: 1;
}

.brand-mark {
  display: block;
  width: 3.15rem;
  height: 3.15rem;
  flex: 0 0 auto;
  object-fit: contain;
  border-radius: 0;
  background: transparent;
  filter: drop-shadow(0 1px 1px rgba(0, 0, 0, .2));
}

/* Square logo used as the site/app thumbnail in the top-left header. */
.brand-thumbnail {
  width: 4rem;
  height: 4rem;
  border-radius: .72rem;
}

/* Keep the same thumbnail treatment on the public legal/support pages. */
.site-header .brand-name { display: none; }
.site-header .brand-mark:not(.brand-thumbnail) {
  content: url("/logo-preview.svg");
  width: 4rem;
  height: 4rem;
  border-radius: .72rem;
}

.brand-name {
  display: grid;
  gap: .08rem;
  align-content: center;
  font-size: 1.25rem;
  font-weight: 850;
  letter-spacing: -.025em;
  line-height: .94;
  text-align: left;
}

.brand-name span:first-child { color: #fff; }
.brand-name span:last-child { color: var(--phonerestore-green); }
.footer-brand .brand-mark { width: 2.45rem; height: 2.45rem; }
.footer-brand .brand-name { font-size: 1rem; }
.footer-brand .brand-name span:last-child { color: var(--phonerestore-green); }

/* The familiar PhoneRestore light-green base carries through the Scam Check site. */
.section-light { background: var(--phonerestore-green-soft); }
.section-sand { background: #f1fff5; }
.trust-strip { background: var(--phonerestore-green); color: var(--navy); }
.trust-strip span { color: #153c29; }
.early-access { background: var(--phonerestore-green); color: var(--navy); }
.early-access .eyebrow, .early-access p:not(.eyebrow) { color: #153c29; }
.early-access .button-primary { background: var(--navy); color: #fff; }
.early-access .button-primary:hover { background: var(--navy-2); }

@media (max-width: 520px) {
  .brand { min-width: 10.8rem; gap: .55rem; }
  .brand-mark { width: 2.55rem; height: 2.55rem; }
  .brand-thumbnail { width: 3rem; height: 3rem; }
  .brand-name { font-size: 1.02rem; }
}

/* Launch-site hero: two real, distinct handsets rather than floating cards. */
.site-header { justify-content: flex-start; }
.site-header nav { margin-right: auto; }
.site-header .brand-square {
  order: 3;
  min-width: 0;
  width: 4.1rem;
  height: 4.1rem;
  padding: .35rem .2rem .25rem;
  display: grid;
  grid-template-columns: 1.05rem 1fr;
  align-items: center;
  gap: .15rem;
  border-radius: .72rem;
  background: #102f50;
  border: 1px solid rgba(255,255,255,.22);
  box-shadow: 0 4px 12px rgba(0,0,0,.2);
}
.brand-square .brand-shield {
  display: grid;
  place-items: center;
  width: 1rem;
  height: 1.22rem;
  border-radius: .3rem .3rem .58rem .58rem;
  background: #e25540;
  clip-path: polygon(50% 0, 96% 17%, 86% 72%, 50% 100%, 14% 72%, 4% 17%);
}
.brand-square .brand-shield i { width: .5rem; height: .27rem; border-left: 2px solid #4ade80; border-bottom: 2px solid #4ade80; transform: rotate(-45deg) translateY(-.08rem); }
.brand-square .brand-words { display: grid; gap: .02rem; line-height: .92; text-align: center; }
.brand-square .brand-words b { color: #fff; font-size: .53rem; font-weight: 850; letter-spacing: -.03em; }
.brand-square .brand-words b:nth-child(2),.brand-square .brand-words b:nth-child(3){color:#4ade80}

.hero-visual { display: grid; place-items: center; min-height: 530px; }
.hero-photo { display: none; }
.hero-visual .phone-stack { position: static; width: 100%; min-height: 0; }
.device-row { display: flex; align-items: flex-end; justify-content: center; gap: .95rem; width: 100%; padding: 1.25rem 0; }
.hero-visual .phone,
.hero-visual .senior-phone,
.hero-visual .caregiver-phone {
  position: relative;
  inset: auto;
  transform: none;
  width: min(220px, 48%);
  min-height: 405px;
  margin: 0;
  padding: 2rem .82rem 1.35rem;
  border: 7px solid #111827;
  border-radius: 2.25rem;
  background: #fff;
  color: var(--ink);
  box-shadow: 0 20px 42px rgba(0,0,0,.38), inset 0 0 0 1px rgba(255,255,255,.35);
}
.hero-visual .moto-device { border-radius: 1.5rem; border-color: #27323d; background: linear-gradient(130deg,#65717c,#1c2530 11%,#0d141d 88%,#596571); }
.hero-visual .iphone-device { border-radius: 2.45rem; border-color: #171a20; background: linear-gradient(125deg,#9da5ad,#1a1e24 11%,#080b0e 87%,#868f98); }
.hero-visual .phone::before,.hero-visual .phone::after { content: none; }
.screen-panel { position:absolute; z-index:1; inset:.42rem; overflow:hidden; border-radius:1.78rem; background:#f3f6f2; }
.moto-device .screen-panel { border-radius:1.08rem; }
.screen-copy { padding:1.35rem .7rem .75rem; }
.screen-copy .phone-top { margin-top:0; }
.live-app-screen { background:#f1f4ef; }
.live-app-screen img { display:block; width:100%; height:100%; object-fit:cover; object-position:center top; }
.moto-device .screen-copy { display:none; }
.device-head { position:absolute; z-index:2; top:.42rem; left:50%; transform:translateX(-50%); width:4.2rem; height:.48rem; display:flex; align-items:center; justify-content:center; gap:.35rem; }
.moto-speaker { width:2.55rem; height:.18rem; border-radius:99px; background:#82909c; box-shadow:inset 0 1px 1px rgba(255,255,255,.22); }
.moto-camera { width:.36rem; height:.36rem; border-radius:50%; background:#090e14; border:1px solid #5c7185; }
.iphone-island { position:absolute; z-index:2; top:.37rem; left:50%; transform:translateX(-50%); width:4.55rem; height:.86rem; border-radius:99px; background:#050608; }
.hero-visual .phone-top { margin-top:.08rem; }
.hero-visual .caregiver-phone { min-height: 360px; margin-bottom: 1.6rem; }
.hero-visual .senior-phone { min-height: 435px; }

.photo-story { position: relative; min-height: 420px; overflow: hidden; display: grid; place-items: center; margin: 0; background:#102f50; color:#fff; }
.photo-story img { position:absolute; inset:0; width:100%; height:100%; object-fit:cover; object-position:center 38%; opacity:.68; }
.photo-story::after { content:""; position:absolute; inset:0; background:linear-gradient(90deg,rgba(9,27,44,.85),rgba(9,27,44,.28)); }
.photo-story div { position:relative; z-index:1; width:min(850px,82vw); text-align:center; padding:4rem 1.2rem; }
.photo-story h2 { margin:.25rem 0 .8rem; font-size:clamp(2.15rem,4.6vw,4rem); line-height:1.03; letter-spacing:-.045em; }
.photo-story p:last-child { margin:0; font-size:1.15rem; color:#f2f8f5; }

@media (max-width:850px){
  .hero-visual{min-height:500px}
  .hero-visual .phone,.hero-visual .senior-phone,.hero-visual .caregiver-phone{width:min(230px,47%);}
}
@media (max-width:520px){
  .site-header .brand-square{width:3.55rem;height:3.55rem;grid-template-columns:.88rem 1fr}
  .brand-square .brand-words b{font-size:.47rem}
  .site-header nav{display:none}
  .hero-visual{min-height:430px}
  .device-row{gap:.42rem;padding:0}
  .hero-visual .phone,.hero-visual .senior-phone,.hero-visual .caregiver-phone{width:49%;min-height:350px;border-width:5px;border-radius:1.5rem;padding:1.55rem .52rem .8rem}
  .hero-visual .caregiver-phone{min-height:308px;margin-bottom:1.1rem}
  .hero-visual .senior-phone{min-height:365px}
  .hero-visual .phone h2{font-size:.86rem}.hero-visual .result-copy,.hero-visual .phone>p:not(.phone-label):not(.result-kicker){font-size:.68rem}.hero-visual .scan-card{min-height:92px;padding:.65rem}
  .photo-story{min-height:340px}
}

/* PhoneRestore-style physical handset treatment for product screens. */
.phone {
  overflow: visible;
  border: 10px solid #111827;
  border-radius: 2.65rem;
  padding: 1.35rem 1rem 1.55rem;
  background: linear-gradient(145deg, #a9b7c7 0%, #64748b 11%, #27354a 38%, #0b1321 100%);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.42),
    inset 0 -3px 12px rgba(0,0,0,.5),
    0 28px 58px rgba(0,0,0,.38);
}

.phone::before {
  content: "";
  position: absolute;
  z-index: 2;
  top: .48rem;
  left: 50%;
  width: 4.15rem;
  height: .36rem;
  transform: translateX(-50%);
  border-radius: 999px;
  background: linear-gradient(180deg, #050914, #334155);
  box-shadow: inset 0 1px 1px rgba(255,255,255,.1);
}

.phone::after {
  content: "";
  position: absolute;
  z-index: 2;
  bottom: .48rem;
  left: 50%;
  width: 4.5rem;
  height: .34rem;
  transform: translateX(-50%);
  border-radius: 999px;
  background: rgba(255,255,255,.72);
}

.phone .phone-top,
.phone .phone-label,
.phone .scan-card,
.phone .result-kicker,
.phone h2,
.phone .result-copy,
.phone .phone-button,
.phone .alert-dot,
.phone .mini-actions {
  position: relative;
  z-index: 1;
}

.phone .phone-top { margin-top: .22rem; }
.phone .scan-card,
.phone .mini-actions,
.phone .phone-button { border-radius: .72rem; }
.hero-visual .senior-phone { transform: rotate(-2.5deg) scale(.82); transform-origin: top left; }
.hero-visual .caregiver-phone { transform: rotate(3deg) scale(.78); transform-origin: bottom right; }

@media (max-width: 850px) {
  .hero-visual .senior-phone { transform: rotate(-2.5deg) scale(.76); }
  .hero-visual .caregiver-phone { transform: rotate(3deg) scale(.71); }
}

@media (max-width: 520px) {
  .phone { border-width: 8px; border-radius: 2.2rem; padding: 1.18rem .82rem 1.35rem; }
  .phone::before { top: .38rem; width: 3.4rem; height: .3rem; }
  .phone::after { bottom: .38rem; width: 3.6rem; height: .27rem; }
  .hero-visual .senior-phone { transform: rotate(-2.5deg) scale(.61); }
  .hero-visual .caregiver-phone { transform: rotate(3deg) scale(.57); }
}

/* Professional editorial typography and licensed lifestyle photography. */
:root {
  --display: "Avenir Next", Avenir, "Helvetica Neue", Arial, sans-serif;
  --body: "Avenir Next", Avenir, "Helvetica Neue", Arial, sans-serif;
  --muted: #526171;
}

body { font-family: var(--body); font-size: 17px; font-weight: 450; letter-spacing: .002em; line-height: 1.62; }
h1, h2, h3, .brand, summary { font-family: var(--display); }
h1 { font-weight: 800; line-height: 1.04; letter-spacing: -.052em; }
.lede { font-size: clamp(1.1rem, 1.7vw, 1.38rem); line-height: 1.58; }
.site-header nav a, .footer-links a { font-weight: 650; }
.eyebrow { font-size: .76rem; font-weight: 850; letter-spacing: .14em; }
.section-heading h2, .caregiver-copy h2, .early-access h2 { font-weight: 780; letter-spacing: -.042em; }
.steps h3, .examples h3, .consent-card h3 { font-weight: 760; letter-spacing: -.02em; }
.steps article { padding: 1.7rem; }

.hero-visual { position: relative; min-height: 540px; }
.hero-photo { position: absolute; inset: 0; margin: 0; overflow: hidden; border-radius: 1.45rem; box-shadow: 0 28px 65px rgba(0, 0, 0, .28); }
.hero-photo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(135deg, rgba(8, 24, 42, .1), rgba(8, 24, 42, .42)); }
.hero-photo img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: 44% center; }
.hero-photo figcaption { position: absolute; z-index: 1; right: 1.2rem; bottom: 1rem; left: 1.2rem; color: #fff; font-size: .82rem; font-weight: 700; text-shadow: 0 1px 8px rgba(0, 0, 0, .45); }
.hero-visual .phone-stack { position: absolute; inset: 0; min-height: 0; pointer-events: none; }
.hero-visual .phone { pointer-events: auto; transform: scale(.82); transform-origin: top left; }
.hero-visual .caregiver-phone { transform: scale(.78); transform-origin: bottom right; }

.caregiver-visual { position: relative; min-height: 430px; margin: 0; overflow: hidden; border-radius: 1.25rem; box-shadow: 0 18px 42px rgba(15, 39, 66, .16); }
.caregiver-visual > img { display: block; width: 100%; height: 100%; min-height: 430px; object-fit: cover; object-position: 46% center; }
.caregiver-visual .consent-card { position: absolute; right: 1.2rem; bottom: 1.2rem; left: 1.2rem; padding: 1.5rem; background: rgba(15, 39, 66, .96); backdrop-filter: blur(8px); }
.caregiver-visual .consent-card h3 { font-size: 1.35rem; }

@media (max-width: 850px) {
  .hero-visual { width: 100%; max-width: 600px; min-height: 500px; margin: auto; }
  .hero-photo { border-radius: 1.15rem; }
  .hero-visual .phone { transform: scale(.75); }
  .hero-visual .caregiver-phone { transform: scale(.7); }
  .caregiver-visual { max-width: 600px; min-height: 410px; }
  .caregiver-visual > img { min-height: 410px; }
}

@media (max-width: 520px) {
  .hero-visual { min-height: 430px; }
  .hero-photo figcaption { font-size: .75rem; }
  .hero-visual .phone { transform: scale(.6); }
  .hero-visual .caregiver-phone { transform: scale(.56); }
  .caregiver-visual { min-height: 360px; }
  .caregiver-visual > img { min-height: 360px; }
  .caregiver-visual .consent-card { right: .75rem; bottom: .75rem; left: .75rem; padding: 1.2rem; }
}

/* Restore the earlier site's friendlier typography and clean screen-card phones. */
body {
  font-family: ui-rounded, "Avenir Next", Avenir, Inter, system-ui, sans-serif;
  font-size: 16px;
  font-weight: 400;
  letter-spacing: normal;
  line-height: 1.55;
}
h1, h2, h3, .brand, summary { font-family: inherit; }
h1 { font-weight: 700; line-height: 1.03; letter-spacing: -.045em; }
.lede { font-size: clamp(1.08rem, 1.7vw, 1.35rem); line-height: 1.55; }
.site-header nav a, .footer-links a { font-weight: 400; }
.eyebrow { font-size: .78rem; font-weight: 900; letter-spacing: .12em; }
.section-heading h2, .caregiver-copy h2, .early-access h2 { font-weight: 700; letter-spacing: -.035em; }
.steps h3, .examples h3, .consent-card h3 { font-weight: 700; letter-spacing: normal; }
.steps article { padding: 1.6rem; }

/* Original simple phone rendering: bright screens inside a clean navy handset. */
.phone {
  overflow: visible;
  border: 8px solid #0b1725;
  border-radius: 2rem;
  padding: 1rem;
  background: #fff;
  box-shadow: 0 30px 55px rgba(0,0,0,.28);
  color: var(--ink);
}
.phone::before, .phone::after { content: none; }
.hero-visual .phone,
.hero-visual .senior-phone,
.hero-visual .caregiver-phone { transform: none; }

@media (max-width: 520px) {
  .phone { border-width: 8px; border-radius: 2rem; padding: .8rem; }
  .hero-visual .phone,
  .hero-visual .senior-phone,
  .hero-visual .caregiver-phone { transform: none; }
}

/* Product devices: two readable, side-by-side handsets. */
@media (min-width: 851px) {
  .hero { grid-template-columns: minmax(0, 1.02fr) minmax(470px, .98fr); gap: 3rem; }
}
.hero-visual { min-height: 535px; }
.device-row { gap: 1.35rem; padding: 1rem 0; }
.hero-visual .phone,
.hero-visual .senior-phone,
.hero-visual .caregiver-phone {
  width: 242px;
  min-height: 478px;
  padding: 0;
  border: 8px solid #202a35;
  border-radius: 2.15rem;
  background: linear-gradient(135deg, #64717c, #151d26 14%, #05090d 86%, #55606a);
  box-shadow: 0 24px 42px rgba(0,0,0,.36), inset 0 0 0 1px rgba(255,255,255,.18);
}
.hero-visual .moto-device { border-radius: 1.6rem; }
.hero-visual .caregiver-phone { width: 230px; min-height: 444px; margin-bottom: 1.35rem; }
.screen-panel { inset: .42rem; border-radius: 1.65rem; background: #f6f7f3; }
.moto-device .screen-panel { border-radius: 1.08rem; }
.screen-copy { padding: 1.35rem .85rem .9rem; }
.screen-copy .phone-label { margin: .85rem 0 .65rem; font-size: .64rem; }
.screen-copy h2 { font-size: 1rem; line-height: 1.18; }
.screen-copy p { font-size: .72rem; line-height: 1.35; }
.screen-copy .mini-actions { gap: .35rem; margin-top: .85rem; }
.screen-copy .mini-actions span { padding: .46rem .22rem; font-size: .56rem; }
.live-app-screen img { object-fit: cover; object-position: center top; }

@media (max-width: 850px) {
  .device-row { gap: .9rem; }
  .hero-visual .phone,
  .hero-visual .senior-phone,
  .hero-visual .caregiver-phone { width: min(242px, 46vw); }
  .hero-visual .caregiver-phone { width: min(230px, 44vw); }
}
@media (max-width: 520px) {
  .hero-visual { min-height: 430px; }
  .device-row { gap: .45rem; }
  .hero-visual .phone,
  .hero-visual .senior-phone,
  .hero-visual .caregiver-phone { width: 48%; min-height: 370px; border-width: 6px; }
  .hero-visual .caregiver-phone { min-height: 345px; margin-bottom: 1rem; }
  .screen-copy { padding: 1.15rem .58rem .7rem; }
  .screen-copy h2 { font-size: .82rem; }
  .screen-copy p { font-size: .62rem; }
}
