/* Home page: the Pulse demo is the hero. */
.hd-hero { padding-top: 34px; text-align: center; }
.hd-hero h1 { font-size: clamp(2.1rem, 5.4vw, 3.6rem); max-width: 18ch; margin: 0 auto; }
.hd-hero .lead { color: var(--muted); font-size: 1.15rem; margin: 18px auto 0; max-width: 56ch; }
.hd-hero .lead strong { color: var(--ink); }
.hd-cta { justify-content: center; margin-top: 22px; }
.hd-demo { padding: 22px 0 56px; }
.home-draft .pd { padding-top: 0; padding-bottom: 0; }
.home-draft .pd-phone { width: clamp(210px, 27vw, 300px); max-width: 30vw; }
@media (max-width: 760px) { .home-draft .pd-phone { max-width: none; } }
nav .nav-cta { background: var(--lilac); color: var(--onaccent); padding: 8px 16px; border-radius: 999px; font-weight:600; text-decoration: none; }
.hd-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 14px; margin-top: 24px; }
.hd-card { display: flex; flex-direction: column; gap: 6px; padding: 18px; border-radius: 18px; background: var(--panel); border: 1px solid var(--line); border-top: 4px solid var(--c); text-decoration: none; color: var(--ink); cursor: pointer; transition: transform .2s, border-color .2s; }
.hd-card:hover { transform: translateY(-3px); border-color: var(--c); }
.hd-card b { font-family: "Rubik", sans-serif; font-size: 1.15rem; }
.hd-card span { color: var(--muted); font-size: 0.95rem; line-height: 1.45; }
.hd-sos { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; }
@media (max-width: 760px) { .hd-sos { grid-template-columns: 1fr; } }

/* tighter hero so the demo starts on the first screen */
.hd-hero { padding: 16px 0 6px; }
.hd-hero h1 { font-size: clamp(1.8rem, 4.2vw, 2.8rem); max-width: 26ch; text-wrap: balance; }
.hd-hero .lead { font-size: 1.02rem; margin-top: 10px; max-width: 64ch; line-height: 1.45; }
.hd-cta { margin-top: 12px; }
.hd-demo { border-top: 0; padding: 14px 0 56px; }
.hd-cta .note { font-size: 0.9rem; }

/* phone width: one tidy header row, and everything in the demo column centred the same way */
@media (max-width: 520px) {
  header.top { padding: 14px 0; }
  header.top .wrap { flex-wrap: nowrap; gap: 10px; }
  header.top nav { display: flex; align-items: center; flex: none; }
  header.top nav a { margin-left: 0; }
  header.top nav a:not(.nav-cta) { display: none; }
  nav .nav-cta { padding: 9px 16px; font-size: 0.92rem; }
}
@media (max-width: 760px) {
  .home-draft .pd-mid { text-align: center; }
  .home-draft .pd-mid .pd-steps { justify-content: center; }
}

/* phone width: the demo phone is the first thing you see; the step pills and "who you are" line step aside */
@media (max-width: 760px) {
  .hd-hero { padding: 10px 0 0; }
  .hd-hero h1 { font-size: 1.55rem; }
  .hd-hero .lead { font-size: 0.9rem; margin-top: 8px; line-height: 1.4; }
  .hd-cta .note { font-size: 0.8rem; margin: 6px 0 0; }
  .hd-demo { padding-top: 8px; }
  .home-draft .pd-stage { margin-top: 8px; gap: 8px; }
  .home-draft .pd-tabs { margin-bottom: 6px; }
  .home-draft .pd-tabs button { padding: 7px 10px; font-size: 0.88rem; }
  .home-draft .pd-who, .home-draft .pd-steps { display: none; }
  .home-draft .pd-mid .pd-say { min-height: 2.6em; font-size: 1.02rem; }
  .home-draft .pd-mid .pd-say small { font-size: 0.82rem; }
  .home-draft .pd-stage .pd-phone { width: min(300px, 74vw); }
}

/* phone width: headline, then the phone, then the intro text (same words, new order) */
@media (max-width: 760px) {
  main { display: flex; flex-direction: column; }
  main > .hd-hero { display: contents; }
  main > .hd-hero h1 { order: 0; margin: 10px 16px 0; text-align: center; font-size: 1.4rem; max-width: none; }
  main > section.hd-demo { order: 1; }
  main > .hd-hero .lead { order: 2; margin: 18px 16px 0; }
  main > .hd-hero .hd-cta { order: 3; margin: 6px 16px 0; }
  main > section { order: 4; }
  .home-draft .pd-stage .pd-phone { width: min(250px, 62vw); }
  .home-draft .pd-mid .pd-say { min-height: 2.4em; }
}

/* phone width: instructions on the left, the demo phone on the right (smaller, so it never gets cut) */
@media (max-width: 760px) {
  .home-draft .pd { display: grid; grid-template-columns: minmax(0, 1fr) auto; column-gap: 12px; row-gap: 10px; align-items: start; }
  .home-draft .pd-stage { display: contents; }
  .home-draft .pd-tabs { grid-column: 1; grid-row: 1; flex-direction: column; gap: 6px; margin: 0; }
  .home-draft .pd-tabs button { padding: 7px 8px; font-size: 0.82rem; }
  .home-draft .pd-mid { grid-column: 1; grid-row: 2; order: 0; width: auto; text-align: left; align-self: start; }
  .home-draft .pd-mid .pd-say { font-size: 0.95rem; min-height: 0; text-align: left; }
  .home-draft .pd-mid .pd-say small { font-size: 0.8rem; }
  .home-draft .pd-stage .pd-phone { grid-column: 2; grid-row: 1 / span 3; width: min(215px, 54vw); margin: 0; }
  .home-draft .pd-foot { grid-column: 1 / -1; margin-top: 4px; }
  .home-draft .pd-ctl { justify-content: flex-start; }
  .home-draft .pd-frame { border-radius: 26px; padding: 6px; }
}
@media (max-width: 760px) {
  .home-draft .pd-stage .pd-phone { width: min(190px, 48vw); }
  .home-draft .pd-frame { box-sizing: border-box; border-width: 2px; }
  .home-draft .pd { padding-top: 12px; }
  .home-draft .pd-mid .pd-say { font-size: 0.92rem; line-height: 1.3; }
  .home-draft .pd-foot .note { font-size: 0.8rem; }
  .hd-demo { padding-bottom: 20px; }
  .hd-demo + section, main > .hd-hero .lead { margin-top: 12px; }
}
@media (max-width: 760px) {
  .home-draft .pd { column-gap: 18px; }
  .home-draft .pd-stage .pd-phone { width: min(180px, 45vw); }
}
@media (max-width: 760px) {
  .home-draft .pd { column-gap: 12px; }
  .home-draft .pd-stage .pd-phone { width: min(215px, 55vw); }
  .home-draft .pd-tabs { gap: 5px; }
  .home-draft .pd-tabs button { padding: 5px 6px; font-size: 0.72rem; }
  .home-draft .pd-mid { gap: 6px; }
  .home-draft .pd-mid .pd-say { font-size: 0.8rem; line-height: 1.25; }
  .home-draft .pd-mid .pd-say small { font-size: 0.7rem; margin-top: 2px; }
  .home-draft .pd-ctl button, .home-draft .pd-mid .btn { font-size: 0.72rem; padding: 5px 10px; }
}
@media (max-width: 760px) {
  .home-draft .pd-ctl { flex-direction: column; align-items: flex-start; gap: 6px; }
  .home-draft .pd-foot { margin-top: 18px; }
}

/* phone width, v3: pills side by side on top, big phone, instructions under the phone */
@media (max-width: 760px) {
  main > .hd-hero h1 { font-size: 1.15rem; margin: 6px 16px 0; }
  .home-draft .pd { display: grid; grid-template-columns: 1fr; row-gap: 8px; padding-top: 8px; justify-items: center; }
  .home-draft .pd-tabs { grid-column: 1; grid-row: 1; flex-direction: row; width: 100%; }
  .home-draft .pd-tabs button { flex: 1; padding: 6px 8px; font-size: 0.82rem; }
  .home-draft .pd-stage .pd-phone { grid-column: 1; grid-row: 2; width: min(250px, 64vw); }
  .home-draft .pd-mid { grid-column: 1; grid-row: 3; width: 100%; text-align: center; }
  .home-draft .pd-mid .pd-say { text-align: center; font-size: 0.9rem; }
  .home-draft .pd-mid .pd-say small { font-size: 0.78rem; }
  .home-draft .pd-ctl { flex-direction: row; justify-content: center; align-items: center; gap: 8px; }
  .home-draft .pd-foot { grid-row: 4; margin-top: 6px; }
}
@media (max-width: 760px) {
  .home-draft .pd { row-gap: 12px; }
  .home-draft .pd-stage .pd-phone { width: min(236px, 61vw); }
  .home-draft .pd-mid { margin-top: 4px; }
}
@media (max-width: 760px) {
  .home-draft .pd-tabs { width: auto; gap: 6px; margin-bottom: 4px; }
  .home-draft .pd-tabs button { flex: none; padding: 4px 12px; font-size: 0.7rem; }
  .home-draft .pd { row-gap: 14px; }
}
@media (max-width: 760px) {
  header.top { padding: 6px 0; }
  header.top .logo img { width: 32px; height: 32px; }
  nav .nav-cta { padding: 5px 14px; font-size: 0.8rem; }
  main > .hd-hero h1 { margin-top: 2px; font-size: 1.05rem; }
  .home-draft .pd { padding-top: 4px; row-gap: 8px; }
  .home-draft .pd-foot { display: none; }
  .home-draft .pd-mid { margin-top: 0; }
}
@media (max-width: 760px) { .home-draft .pd-mid { margin-top: 8px; } }
@media (max-width: 760px) { main > .hd-hero h1 { white-space: nowrap; font-size: min(1.05rem, 4.6vw); } }
@media (max-width: 760px) { main > .hd-hero h1 { font-size: min(1.05rem, 4.2vw); margin-left: 12px; margin-right: 12px; } }

/* Desktop: a tighter top so the phones sit higher on the first screen (layout only) */
@media (min-width: 761px) {
  main > .hd-hero { padding: 8px 0 0; }
  main > .hd-hero h1 { font-size: clamp(1.7rem, 2.9vw, 2.35rem); max-width: none; line-height: 1.1; }
  main > .hd-hero .lead { font-size: 0.95rem; line-height: 1.4; margin-top: 6px; max-width: 92ch; }
  main > .hd-hero .lead strong { display: block; margin-top: 2px; }   /* the bold sentence stays whole on its own line */
  main > .hd-hero .hd-cta { margin-top: 4px; }
  main > .hd-hero .hd-cta .note { font-size: 0.8rem; }
  .hd-demo { padding-top: 6px; }
  .home-draft .pd-stage { margin-top: 6px; }
}

.hd-android { display: grid; grid-template-columns: 1fr auto; gap: 40px; align-items: center; }
.and-kicker { margin: 0 0 8px; color: var(--green); font-weight:600; letter-spacing: .14em; text-transform: uppercase; font-size: .85rem; }
.and-qr { display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 16px; border-radius: 22px; background: #fff; border: 1px solid var(--line); text-decoration: none; color: var(--ink); font-weight:600; box-shadow: 0 14px 36px rgba(47,46,43,.08); }
.and-qr img { display: block; width: 180px; height: 180px; }
@media (max-width: 720px) { .hd-android { grid-template-columns: 1fr; } .and-qr { justify-self: start; } }
