/* Health Diary public site — mirrors the app design system
   (navy #1D3557, teal #2A9D8F, gold #C9962E, Fraunces + Inter) */
* { box-sizing: border-box; margin: 0; }
:root {
  --navy: #1D3557; --navy-deep: #16283F; --teal: #2A9D8F;
  --teal-dark: #1F7A6E; --gold: #C9962E; --bg: #F3F6F8; --ink: #22303E;
  --sub: #66788A; --line: #E2E9EE;
}
body {
  background: var(--bg); color: var(--ink);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 16.5px; line-height: 1.65;
}
h1, h2, h3, .wordmark { font-family: 'Fraunces', Georgia, serif; color: var(--navy); }
a { color: var(--teal-dark); }
img { max-width: 100%; }

.nav {
  background: var(--navy); padding: 0 22px; height: 60px;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
}
.nav .wordmark { font-size: 23px; font-weight: 700; letter-spacing: -0.02em; color: #fff; text-decoration: none; }
.nav .wordmark span { color: var(--teal); }
.nav .links { display: flex; gap: 18px; align-items: center; flex-wrap: wrap; }
.nav .links a { color: rgba(255,255,255,0.85); text-decoration: none; font-size: 14.5px; font-weight: 600; }
.nav .links a.cta {
  background: var(--teal); color: #fff; padding: 9px 16px; border-radius: 10px;
}
.wrap { max-width: 980px; margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 720px; }

.hero { text-align: center; padding: 60px 20px 44px; }
.hero h1 { font-size: clamp(30px, 5vw, 44px); font-weight: 600; line-height: 1.15; }
.hero p.lead { color: var(--sub); font-size: 18px; max-width: 620px; margin: 16px auto 0; }
.hero .support { color: var(--teal-dark); font-weight: 600; font-size: 15px; margin-top: 14px; }
.cta-row { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-top: 26px; }
.btn {
  display: inline-block; text-decoration: none; border-radius: 12px;
  padding: 14px 26px; font-weight: 600; font-size: 16.5px;
}
.btn.primary { background: var(--teal); color: #fff; }
.btn.primary:hover { background: var(--teal-dark); }
.btn.ghost { background: #fff; color: var(--navy); border: 1.5px solid var(--line); }

section { padding: 34px 0; }
section h2 { font-size: 27px; font-weight: 600; margin-bottom: 8px; }
.section-sub { color: var(--sub); margin-bottom: 22px; }

.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 18px; }
.card {
  background: #fff; border: 1px solid var(--line); border-radius: 16px;
  padding: 24px; box-shadow: 0 1px 3px rgba(29,53,87,0.06);
}
.card.accent-teal { border-top: 4px solid var(--teal); }
.card.accent-gold { border-top: 4px solid var(--gold); }
.card h3 { font-size: 20px; font-weight: 600; }
.card p { color: var(--sub); font-size: 15px; margin-top: 8px; }
.card .go { display: inline-block; margin-top: 14px; font-weight: 600; text-decoration: none; color: var(--teal-dark); }
.badge {
  display: inline-block; font-size: 12px; font-weight: 700; letter-spacing: .04em;
  text-transform: uppercase; color: var(--teal-dark); background: #E5F2F0;
  border-radius: 999px; padding: 3px 10px; margin-bottom: 10px;
}

.steps { counter-reset: step; display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 18px; }
.step { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 22px; }
.step::before {
  counter-increment: step; content: counter(step);
  display: inline-flex; align-items: center; justify-content: center;
  width: 34px; height: 34px; border-radius: 999px; background: var(--navy);
  color: #fff; font-weight: 700; margin-bottom: 12px; font-family: 'Inter', sans-serif;
}
.step h3 { font-size: 18px; }
.step p { color: var(--sub); font-size: 15px; margin-top: 6px; }

ul.ticks { list-style: none; padding: 0; display: grid; gap: 10px; }
ul.ticks li { padding-left: 30px; position: relative; }
ul.ticks li::before { content: "✓"; position: absolute; left: 0; color: var(--teal-dark); font-weight: 700; }

.notice {
  background: #FFFDF5; border: 1px solid var(--line); border-left: 4px solid var(--gold);
  border-radius: 12px; padding: 14px 18px; font-size: 15px; color: #3E4C59;
}

details.faq {
  background: #fff; border: 1px solid var(--line); border-radius: 12px;
  padding: 14px 18px; margin-bottom: 10px;
}
details.faq summary { font-weight: 600; cursor: pointer; color: var(--navy); font-size: 16px; }
details.faq p { color: var(--sub); font-size: 15px; margin-top: 10px; }

ol.howto { padding-left: 22px; display: grid; gap: 12px; font-size: 16.5px; }
ol.howto li b { color: var(--navy); }

.footer {
  border-top: 1px solid var(--line); margin-top: 40px; padding: 28px 20px 44px;
  text-align: center; color: var(--sub); font-size: 13.5px; line-height: 1.8;
}
.footer a { color: var(--sub); }

@media (max-width: 720px) {
  .nav { height: auto; padding: 12px 16px; flex-wrap: wrap; }
  .hero { padding: 40px 16px 30px; }
}

/* Keyboard focus visibility (accessibility) */
a:focus-visible, button:focus-visible, summary:focus-visible, input:focus-visible {
  outline: 3px solid var(--teal); outline-offset: 2px;
}
