/* ElderGuardian — the app's own room, carried onto the web.
   Structure and rhythm follow the Habitline reference (tall hero, bento
   features, alternating dark bands, FAQ, closing CTA). The palette does not:
   it is the app's, so a screenshot dropped on this page belongs to it. */
:root {
  --ink:    #1A1416;   /* ground: warm near-black, plum undertone */
  --ember:  #241C1F;   /* raised surface */
  --bone:   #F2EBE3;   /* primary text */
  --slate:  #8A8086;   /* secondary text */
  --lamp:   #E8B77A;   /* lamplight accent */
  --sage:   #7E9384;   /* well */
  --clay:   #D6553F;   /* alarm */
  --radius: 28px;
  --max:    1180px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0; background: var(--ink); color: var(--bone);
  font: 17px/1.65 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: var(--lamp); }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 24px; }

/* Serif for names and headlines — the app sets people in New York, and the
   site should sound like the same voice. */
h1, h2, h3 { font-family: "New York", Georgia, "Times New Roman", serif; font-weight: 600; margin: 0; }
h1 { font-size: clamp(2.6rem, 8vw, 5.4rem); line-height: 1.02; letter-spacing: -0.02em; }
h2 { font-size: clamp(1.9rem, 4.4vw, 3rem); line-height: 1.1; letter-spacing: -0.01em; }
h3 { font-size: 1.35rem; }
p  { color: rgba(242,235,227,.72); }
.lede { font-size: clamp(1.05rem, 2vw, 1.3rem); max-width: 34ch; }

.eyebrow {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: .72rem; letter-spacing: .24em; text-transform: uppercase;
  color: var(--slate); margin: 0 0 1rem;
}

/* ---- header ---------------------------------------------------------- */
header {
  position: fixed; inset: 16px 0 auto; z-index: 50;
  display: flex; justify-content: center; pointer-events: none;
}
.nav {
  pointer-events: auto; display: flex; align-items: center; gap: 28px;
  padding: 10px 10px 10px 22px; border-radius: 999px;
  background: rgba(36,28,31,.72); border: 1px solid rgba(242,235,227,.12);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
}
.nav .brand { font-family: ui-monospace, Menlo, monospace; font-size: .74rem;
  letter-spacing: .2em; text-transform: uppercase; color: var(--bone); text-decoration: none; }
.nav a.link { color: rgba(242,235,227,.72); text-decoration: none; font-size: .92rem; }
.nav a.link:hover { color: var(--bone); }
@media (max-width: 720px) { .nav a.link { display: none; } }

/* ---- buttons --------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; gap: 9px;
  font-family: ui-monospace, Menlo, monospace; font-size: .78rem;
  letter-spacing: .14em; text-transform: uppercase; text-decoration: none;
  padding: 15px 26px; border-radius: 999px; transition: transform .2s ease, background .2s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--lamp); color: var(--ink); font-weight: 600; }
.btn-ghost {
  color: var(--bone); border: 1px solid rgba(242,235,227,.22);
  background: rgba(242,235,227,.05); backdrop-filter: blur(10px);
}
.badge {
  display: inline-flex; align-items: center; gap: 10px; padding: 6px 14px 6px 6px;
  border-radius: 999px; border: 1px solid rgba(242,235,227,.14);
  background: rgba(242,235,227,.06); backdrop-filter: blur(10px);
  font-size: .86rem; color: rgba(242,235,227,.8); margin-bottom: 26px;
}
.badge b {
  background: var(--lamp); color: var(--ink); border-radius: 999px;
  padding: 2px 10px; font-size: .74rem; font-weight: 700;
  font-family: ui-monospace, Menlo, monospace; letter-spacing: .1em;
}

/* ---- hero ------------------------------------------------------------ */
.hero { position: relative; min-height: 100svh; max-height: 1000px;
  display: flex; align-items: center; padding: 150px 0 90px; overflow: hidden; }
/* max-height matters: on a very tall viewport an uncapped 100svh hero makes
   object-fit: cover scale the photograph until only a shoulder is visible. */
.hero-bg { position: absolute; inset: 0; }
.hero-bg img { width: 100%; height: 100%; object-fit: cover; object-position: 60% center; }
/* The photograph is warm and bright; the copy needs a dark field to sit on. */
.hero-bg::after {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(90deg, var(--ink) 8%, rgba(26,20,22,.86) 44%, rgba(26,20,22,.28) 78%),
    linear-gradient(0deg, var(--ink) 2%, transparent 34%);
}
.hero .wrap { position: relative; z-index: 2; }
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 34px; }

/* ---- sections -------------------------------------------------------- */
section { padding: clamp(70px, 11vw, 140px) 0; }
.band { background: var(--ember); }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(30px, 6vw, 80px); align-items: center; }
@media (max-width: 900px) { .split { grid-template-columns: 1fr; } }

.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; margin-top: 52px; }
@media (max-width: 900px) { .grid2 { grid-template-columns: 1fr; } }
.card {
  border-radius: var(--radius); padding: 34px;
  background: rgba(242,235,227,.045); border: 1px solid rgba(242,235,227,.09);
}
.card h3 { margin-bottom: 10px; }
.card p { margin: 0; font-size: .98rem; }
.card .tint { color: var(--lamp); }

/* Device treatment: real screenshots, gently tilted, never a fake UI. */
.shots { display: flex; gap: 26px; justify-content: center; align-items: flex-end;
  flex-wrap: wrap; margin-top: 56px; }
.phone {
  width: 250px; border-radius: 38px; padding: 9px;
  background: #0b0809; border: 1px solid rgba(242,235,227,.14);
  box-shadow: 0 40px 80px -30px rgba(0,0,0,.9);
  transform: rotate(-3deg); transition: transform .35s ease;
}
.phone:nth-child(2) { transform: rotate(2deg) translateY(-18px); }
.phone img { border-radius: 30px; }
.phone:hover { transform: rotate(0) translateY(-6px); }
.tv {
  flex: 1 1 460px; max-width: 620px; border-radius: 16px; padding: 8px;
  background: #0b0809; border: 1px solid rgba(242,235,227,.14);
  box-shadow: 0 40px 80px -30px rgba(0,0,0,.9);
}
.tv img { border-radius: 10px; }

.figure { border-radius: var(--radius); overflow: hidden; border: 1px solid rgba(242,235,227,.09); }

/* ---- faq ------------------------------------------------------------- */
details {
  border-top: 1px solid rgba(242,235,227,.12); padding: 22px 0;
}
details summary {
  cursor: pointer; list-style: none; font-size: 1.1rem; font-weight: 500;
  display: flex; justify-content: space-between; gap: 20px; align-items: center;
}
details summary::-webkit-details-marker { display: none; }
details summary::after { content: "+"; color: var(--lamp); font-size: 1.4rem; line-height: 1; }
details[open] summary::after { content: "–"; }
details p { margin: 14px 0 0; max-width: 66ch; }

/* ---- footer ---------------------------------------------------------- */
footer { padding: 60px 0; border-top: 1px solid rgba(242,235,227,.1); color: var(--slate); font-size: .9rem; }
footer a { color: var(--slate); text-decoration: none; margin-right: 18px; }
footer a:hover { color: var(--bone); }
.disclaimer { font-size: .86rem; color: var(--slate); max-width: 62ch; }

:focus-visible { outline: 2px solid var(--lamp); outline-offset: 3px; border-radius: 6px; }
