/* HelpKnock promotion page only. The support and privacy pages use the shared ../style.css.
   Navy is the app icon's; orange is the "needs help" color in the app. The hero stays dark in
   both modes: it reads as night, no network, a beacon in the middle. */
:root {
  --navy: #1B3A6B;
  --navy-deep: #0D1F3C;
  --orange: #F28A1E;
  --bg: #ffffff;
  --fg: #172033;
  --muted: #5A6476;
  --soft: #F2F5FA;
  --line: #DFE4EC;
  --link: #1B3A6B;
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0A1222;
    --fg: #EEF2F8;
    --muted: #A3AEC2;
    --soft: #111C33;
    --line: #23304A;
    --link: #9DB8E6;
  }
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font: 17px/1.65 -apple-system, BlinkMacSystemFont, "Helvetica Neue", "PingFang TC", "Noto Sans TC", "Microsoft JhengHei", sans-serif;
  -webkit-text-size-adjust: 100%;
}

a {
  color: var(--link);
}

h1,
h2,
h3 {
  line-height: 1.25;
  margin: 0;
  /* Short headlines wrap evenly instead of leaving one character (often "到。") alone. */
  text-wrap: balance;
}

p {
  margin: 0;
}

.wrap {
  max-width: 68rem;
  margin: 0 auto;
  padding: 0 20px;
}

/* Hero: dark navy with beacon rings radiating from behind the phone. */
.hero {
  color: #fff;
  background:
    repeating-radial-gradient(circle at 72% 58%, rgba(255, 255, 255, 0.07) 0 1px, transparent 1px 64px),
    radial-gradient(circle at 72% 58%, rgba(242, 138, 30, 0.22), transparent 42%),
    linear-gradient(160deg, var(--navy) 0%, var(--navy-deep) 70%);
  overflow: hidden;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 1.1rem;
}

.brand img {
  width: 36px;
  height: 36px;
  border-radius: 22.37%;
}

.langs {
  font-size: 0.95rem;
}

.langs a,
.langs strong {
  margin-left: 14px;
  color: rgba(255, 255, 255, 0.85);
  white-space: nowrap;
}

.langs strong {
  color: #fff;
}

.hero-grid {
  display: grid;
  gap: 40px;
  align-items: center;
  padding: 32px 0 64px;
}

.hero h1 {
  font-size: clamp(2.2rem, 6vw, 3.4rem);
  letter-spacing: -0.01em;
}

.hero .pitch {
  margin-top: 16px;
  font-size: 1.15rem;
  color: rgba(255, 255, 255, 0.86);
  max-width: 34rem;
}

/* Apple's badge artwork as provided: the black one, with the gray border that is part of it.
   48px tall is above Apple's 40px onscreen minimum, and the fine print's 12px margin is the
   quarter-height clear space Apple asks for. */
.store {
  margin-top: 28px;
  line-height: 0;
}

.store a {
  display: inline-block;
}

.store img {
  display: block;
}

.fineprint {
  margin-top: 12px;
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.7);
}

.emergency {
  margin-top: 20px;
  padding: 10px 14px;
  border-radius: 10px;
  background: rgba(255, 99, 99, 0.16);
  color: #FFD0D0;
  font-size: 0.95rem;
  max-width: 34rem;
}

.phone {
  display: block;
  width: min(300px, 72vw);
  height: auto;
  margin: 0 auto;
  border-radius: 11% / 5%;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
}

/* Sections below the hero. */
section {
  padding: 72px 0;
}

.soft {
  background: var(--soft);
}

.kicker {
  color: var(--orange);
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

section h2 {
  margin-top: 8px;
  font-size: clamp(1.6rem, 4vw, 2.2rem);
}

.intro {
  margin-top: 12px;
  color: var(--muted);
  max-width: 40rem;
}

.steps {
  display: grid;
  gap: 20px;
  margin-top: 36px;
  padding: 0;
  list-style: none;
}

.steps li {
  padding: 24px;
  border-radius: 16px;
  background: var(--bg);
  border: 1px solid var(--line);
}

.steps .num {
  display: inline-grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--orange);
  color: #fff;
  font-weight: 800;
  font-size: 1.2rem;
}

.steps h3 {
  margin-top: 14px;
  font-size: 1.15rem;
}

.steps p {
  margin-top: 6px;
  color: var(--muted);
}

.feature {
  display: grid;
  gap: 40px;
  align-items: center;
}

.feature ul {
  margin: 20px 0 0;
  padding: 0;
  list-style: none;
}

.feature li {
  position: relative;
  padding-left: 28px;
  margin-top: 12px;
}

.feature li::before {
  content: "";
  position: absolute;
  left: 4px;
  top: 0.6em;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--orange);
}

.feature .phone {
  width: min(280px, 70vw);
  box-shadow: 0 18px 44px rgba(13, 31, 60, 0.22);
}

.privacy {
  text-align: center;
}

.privacy .intro {
  margin-left: auto;
  margin-right: auto;
}

.privacy p + p {
  margin-top: 12px;
}

.cta {
  text-align: center;
  color: #fff;
  background: linear-gradient(160deg, var(--navy) 0%, var(--navy-deep) 80%);
}

.cta h2 {
  color: #fff;
}

footer {
  padding: 28px 0 40px;
  color: var(--muted);
  font-size: 0.9rem;
}

footer nav a {
  margin-right: 16px;
  white-space: nowrap;
}

footer p {
  margin-top: 10px;
}

@media (min-width: 820px) {
  .hero-grid {
    grid-template-columns: 1.15fr 0.85fr;
    padding: 40px 0 88px;
  }

  .steps {
    grid-template-columns: repeat(3, 1fr);
  }

  .feature {
    grid-template-columns: 1fr 1fr;
  }

  .feature.reverse .text {
    order: 2;
  }
}
