/* Front page (index.html) styles. Loaded after base.css; single source, do not re-inline. */

.logo {
  font-size: 20px;
  font-weight: 600;
  color: var(--primary);
  letter-spacing: -0.02em;
}

.btn-appstore {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--text);
  color: #fff;
  border-radius: 8px;
  padding: 8px 16px;
  font-size: 13px;
  font-weight: 500;
  transition: background 0.15s;
  white-space: nowrap;
}

.btn-appstore:hover {
  background: #2c333b;
}

.btn-appstore svg {
  flex-shrink: 0;
}

/* ── Sections ── */
section {
  padding: 64px 24px;
}

.container {
  max-width: 1080px;
  margin: 0 auto;
}

/* ── Hero: light ground, green only as accent ── */
#hero {
  background: var(--bg);
  padding-top: 64px;
  padding-bottom: 80px;
}

.hero-inner {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 72px;
  align-items: center;
}

.hero-content h1 {
  font-size: clamp(34px, 4.2vw, 46px);
  font-weight: 500;
  line-height: 1.15;
  letter-spacing: -0.01em;
  color: var(--text);
  margin-bottom: 20px;
  text-wrap: balance;
}

.hero-content h1 em {
  font-style: italic;
  font-weight: 400;
  color: var(--primary);
}

.hero-content p {
  font-size: 17px;
  color: var(--text-secondary);
  max-width: 470px;
  margin-bottom: 32px;
  line-height: 1.65;
}

#hero .btn-appstore {
  padding: 12px 20px;
  font-size: 14px;
  font-weight: 600;
  border-radius: 10px;
}

/* ── The sync demo: two phones, Emma's and Lucas's, joined by the Lina
   line. The same thread stands in both; on load the new message travels
   the line once and lands at Lucas's. Lucas carries parent B's amber, as
   in the planner. The second phone repeats the first one's text, so it
   is hidden from screen readers. ── */
/* min-width: 0 so the phone titles' nowrap cannot widen the hero's
   grid column past the screen on narrow phones. */
.sync { min-width: 0; }

/* stretch: both phones take the taller one's height. */
.duo {
  display: flex;
  align-items: stretch;
  justify-content: center;
  max-width: 460px;
  margin: 0 auto;
}

/* min-height, not height: a long translation in a narrow column
   grows the phone instead of cropping the thread. */
.duo-phone {
  flex: none;
  width: min(184px, calc(50% - 22px));
  min-height: 352px;
  display: flex;
  flex-direction: column;
  background: var(--surface-card);
  border: 3px solid #1C2027;
  border-radius: 28px;
  overflow: hidden;
  box-shadow:
    0 2px 6px rgba(26, 30, 35, 0.05),
    0 18px 40px rgba(26, 30, 35, 0.10);
}

.duo-phone.b {
  box-shadow:
    0 2px 6px rgba(26, 30, 35, 0.05),
    0 18px 40px rgba(183, 121, 31, 0.14);
}

/* Status bar: the time, a Dynamic Island, signal bars. */
.duo-status {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 7px 14px 0;
  font-size: 9.5px;
  font-weight: 600;
  flex: none;
}

.duo-island {
  width: 46px;
  height: 13px;
  border-radius: 999px;
  background: #1C2027;
}

.duo-sig { display: flex; align-items: flex-end; gap: 1.5px; width: 24px; justify-content: flex-end; }
.duo-sig i { width: 3px; background: var(--text); border-radius: 1px; }
.duo-sig i:nth-child(1) { height: 4px; }
.duo-sig i:nth-child(2) { height: 6px; }
.duo-sig i:nth-child(3) { height: 8px; }

.duo-head {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 10px 10px 0;
  color: var(--text-secondary);
  flex: none;
}

.duo-tag {
  flex: 1;
  margin-right: 16px;   /* centres the title past the back chevron */
  font-size: 11px;
  font-weight: 600;
  color: var(--text);
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.duo-home {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  padding: 3px 0 8px;
  border-bottom: 1px solid var(--border-subtle);
  font-size: 10px;
  color: var(--text-secondary);
  flex: none;
}

.duo-home::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--primary);
}

.duo-phone.b .duo-home::before { background: var(--parent-b); }

/* The thread itself, bottom-aligned like a chat. */
.duo-msgs {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 6px;
  padding: 8px;
  background: var(--bg);
}

.duo-day {
  align-self: center;
  padding: 1px 7px;
  border-radius: 999px;
  background: var(--surface-subtle);
  font-size: 8.5px;
  color: var(--text-secondary);
}

.duo-day::first-letter { text-transform: uppercase; }

.duo-bub {
  max-width: 90%;
  padding: 7px 9px;
  border-radius: 11px;
  font-size: 10.5px;
  line-height: 1.4;
}

.duo-bub small {
  display: block;
  margin-top: 3px;
  font-size: 8.5px;
  line-height: 1.3;
}

/* Each parent keeps one colour on both phones: Emma teal, Lucas amber.
   Their own messages sit right, the other parent's left. */
.duo-bub.from-a { background: var(--primary); color: #fff; }
.duo-bub.from-a small { color: rgba(255, 255, 255, 0.8); }
.duo-bub.from-b { background: var(--parent-b-fill); border: 1px solid #EBCF9E; }
.duo-bub.from-b small { color: var(--text-secondary); }
.duo-phone.a .duo-bub.from-a,
.duo-phone.b .duo-bub.from-b { align-self: flex-end; }
.duo-phone.a .duo-bub.from-b,
.duo-phone.b .duo-bub.from-a { align-self: flex-start; }

.duo-input {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  height: 24px;
  margin: 0 8px 10px;
  padding: 0 3px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface-card);
  flex: none;
}

.duo-input i { width: 16px; height: 16px; border-radius: 50%; background: var(--green-200); }

/* The line: teal at Emma's end, amber at Lucas's, a dot at each end. */
.duo-line {
  position: relative;
  align-self: center;
  flex: 1 1 auto;
  min-width: 24px;
  height: 2px;
  margin: 0 -2px;
  background: linear-gradient(90deg, var(--green-200), #EBCF9E);
}

.duo-line::before,
.duo-line::after {
  content: "";
  position: absolute;
  top: -4px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.duo-line::before { left: -3px; background: var(--primary); }
.duo-line::after { right: -3px; background: var(--parent-b); }

.duo-packet {
  position: absolute;
  top: -8px;
  left: 0;
  width: 18px;
  height: 18px;
  border-radius: 6px;
  background: var(--primary);
  box-shadow: 0 0 0 4px var(--green-100);
  opacity: 0;
}

/* Plays once, never loops, when the phones come into view (on a phone
   the hero stacks and they start below the fold). The script after
   .duo adds .armed, which holds Lucas's copy back, then .play once the
   phones are on screen. Without JavaScript, without animation support
   or with reduced motion, the end state shows: both messages, no
   packet. */
@media (prefers-reduced-motion: no-preference) {
  .duo.armed .duo-phone.b .duo-bub.from-a { opacity: 0; }
  .duo.play .duo-packet { animation: duo-travel 1.5s ease-in-out 0.3s 1 both; }
  .duo.play .duo-phone.b .duo-bub.from-a { animation: duo-arrive 0.45s ease-out 1.7s 1 both; }
}

@keyframes duo-travel {
  0%   { left: 0; opacity: 0; }
  12%  { opacity: 1; }
  88%  { opacity: 1; }
  100% { left: calc(100% - 18px); opacity: 0; }
}

@keyframes duo-arrive {
  from { opacity: 0; transform: translateY(6px); }
  to   { opacity: 1; transform: none; }
}

/* Narrow phones wrap the messages onto more lines, so they start
   taller. The signal bars hide but keep their space, so the island
   stays centred between them and the time. */
@media (max-width: 400px) {
  .duo-phone { min-height: 384px; }
  .duo-status { padding: 6px 10px 0; }
  .duo-island { width: 34px; }
  .duo-sig { visibility: hidden; }
  .duo-bub { font-size: 10px; }
}

/* Forced colours drop backgrounds: keep the line, its two ends and
   Emma's bubble outline visible. */
@media (forced-colors: active) {
  .duo-line,
  .duo-line::before,
  .duo-line::after { forced-color-adjust: none; background: CanvasText; }
  .duo-bub.from-a { border: 1px solid; }
}

.sync-caption {
  margin-top: 16px;
  font-size: 13.5px;
  color: var(--text-secondary);
  text-align: center;
}

@media (max-width: 880px) {
  .hero-inner {
    grid-template-columns: 1fr;
    gap: 56px;
  }
  .hero-content p {
    max-width: 100%;
  }
}

/* ── Problem → promise ── */
#problem {
  background: #fff;
  padding-top: 72px;
  padding-bottom: 72px;
}

.problem-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 64px;
  align-items: center;
}

#problem h2 {
  font-size: clamp(28px, 3.2vw, 38px);
  font-weight: 500;
  line-height: 1.15;
  letter-spacing: -0.01em;
}

#problem h2 .hl { color: var(--primary); }

.problem-text {
  font-size: 16.5px;
  line-height: 1.7;
  color: var(--text-secondary);
}

.problem-text strong {
  color: var(--text);
  font-weight: 600;
}

@media (max-width: 880px) {
  .problem-grid {
    grid-template-columns: 1fr;
    gap: 36px;
  }
}

/* ── How it works: a block under the problem, not its own section ── */
.how {
  margin-top: 64px;
  padding-top: 56px;
  border-top: 1px solid var(--border-subtle);
}

/* #problem h2 would otherwise win: this h2 sits inside #problem */
#problem .how h2 {
  font-size: clamp(22px, 2.4vw, 28px);
  font-weight: 500;
  letter-spacing: -0.01em;
}

/* ── What Lina does: one row per area, detail folded ── */
#features {
  background: var(--bg);
  padding-top: 72px;
  padding-bottom: 72px;
}

.feature-row {
  display: grid;
  grid-template-columns: minmax(0, 0.75fr) minmax(0, 1.25fr);
  gap: 20px 64px;
  padding: 44px 0;
  border-top: 1px solid var(--border);
}

.feature-row:first-child {
  border-top: 0;
  padding-top: 0;
}

.feature-row:last-child { padding-bottom: 0; }

.feature-row h2 {
  font-size: clamp(24px, 2.6vw, 30px);
  font-weight: 500;
  letter-spacing: -0.01em;
  line-height: 1.2;
}

/* Rows with an app screen: the text (heading, lead, details) in one
   column and a cropped phone in the other, the phone side alternating
   row by row (.flip puts it left). The calendar row takes parent B's
   fill, since that is the screen where the two parents' days sit side
   by side. Keep sizes="" on the <source> tags at the frame's inner
   width (210px minus the 2 x 6px border). */
.feature-row.with-shot {
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  align-items: start;   /* opening the details must not move the phone */
}

.row-text {
  display: grid;
  gap: 16px;
}

/* The text column is too narrow for the detail's points and mock side
   by side, so they stack at every width. */
.with-shot .row-detail { grid-template-columns: 1fr; }
.with-shot .row-detail .app-mock,
.with-shot .row-detail .cal-mock { justify-self: start; }

.feature-row.flip .row-shot { order: -1; }

.row-shot {
  height: 300px;
  padding-top: 32px;
  display: flex;
  justify-content: center;
  overflow: hidden;
  border-radius: 18px;
  background: var(--green-100);
}

.row-shot.b { background: var(--parent-b-fill); }

.row-shot picture { display: block; width: 210px; }

.row-shot img {
  display: block;
  width: 100%;
  height: auto;
  border: 6px solid #1C2027;
  border-bottom: 0;
  border-radius: 28px 28px 0 0;
  box-shadow: 0 12px 30px rgba(26, 30, 35, 0.12);
}

@media (max-width: 880px) {
  .feature-row.with-shot { grid-template-columns: 1fr; }
  .feature-row.flip .row-shot { order: 0; }
  .row-shot { height: 240px; }
}

.row-lead h3 {
  font-size: 16px;
  font-weight: 600;
  letter-spacing: -0.01em;
  margin-bottom: 6px;
}

.row-lead p {
  font-size: 16px;
  color: var(--text-secondary);
  line-height: 1.65;
  max-width: 60ch;
}

.row-more { margin-top: 16px; }

.row-toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  list-style: none;
  font-size: 14px;
  font-weight: 500;
  color: var(--primary);
  border-radius: 4px;
}

.row-toggle::-webkit-details-marker { display: none; }

.row-toggle::after {
  content: "";
  width: 7px;
  height: 7px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: translateY(-2px) rotate(45deg);
  transition: transform 0.2s ease;
}

.row-more[open] > .row-toggle::after { transform: translateY(2px) rotate(-135deg); }
.row-toggle:hover { color: var(--primary-dark); }

/* The label follows the state; display:none also drops the hidden half
   from the accessible name. aria-describedby adds the row's h2. */
.row-more[open] .when-closed,
.row-more:not([open]) .when-open { display: none; }

.row-toggle:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 3px;
}

.row-detail {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 340px);
  gap: 40px;
  align-items: start;
  margin-top: 28px;
}

.row-detail--list { display: block; }

.row-detail .app-mock,
.row-detail .cal-mock {
  box-shadow: none;
  justify-self: end;
}

.row-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 24px;
  font-size: 14px;
  font-weight: 500;
  color: var(--primary);
}

.row-link:hover { color: var(--primary-dark); }

/* Below the full container width the mock column would squeeze the
   points to a sliver, so the detail stacks before the row does. */
@media (max-width: 1080px) {
  .row-detail { grid-template-columns: 1fr; }
  .row-detail .app-mock,
  .row-detail .cal-mock { justify-self: start; }
}

@media (max-width: 880px) {
  .feature-row { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  .row-toggle::after { transition: none; }
}

/* ── The steps along the line ── */
.steps {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  margin-top: 36px;
  padding-top: 34px;
}

.steps::before {
  content: "";
  position: absolute;
  top: 5px;
  left: 6px;
  right: 6px;
  height: 1.5px;
  background: var(--green-300);
  opacity: 0.5;
}

.step {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.step::before {
  content: "";
  position: absolute;
  top: -34px;
  left: 0;
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: var(--primary);
}

.step h3 {
  font-size: 16px;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.step p {
  font-size: 14.5px;
  color: var(--text-secondary);
  line-height: 1.6;
}

@media (max-width: 680px) {
  .steps {
    grid-template-columns: 1fr;
    gap: 32px;
    padding-top: 0;
    padding-left: 26px;
  }
  .steps::before {
    top: 6px;
    bottom: 6px;
    left: 5px;
    right: auto;
    width: 1.5px;
    height: auto;
  }
  .step::before {
    top: 5px;
    left: -26px;
  }
}

/* ── Threads: app mock-up + points ── */
.app-mock {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 20px;
  box-shadow: 0 18px 44px rgba(8, 61, 57, 0.09);
  max-width: 400px;
  width: 100%;
  justify-self: center;
}

.mock-thread {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 12px 14px;
  margin-bottom: 9px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 2px 10px;
}

.mock-thread:last-child { margin-bottom: 0; }

.mock-thread b {
  font-size: 13.5px;
  font-weight: 600;
}

.mock-thread span {
  grid-column: 1 / -1;
  font-size: 12.5px;
  color: var(--text-secondary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.mock-thread time {
  font-size: 11px;
  color: #A1A7AF;
}

.mock-thread.unread { border-color: var(--green-300); }

.mock-thread.unread b::after {
  content: "";
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--primary);
  margin-left: 7px;
  vertical-align: 1px;
}

/* The detail points: one look for the threads and calendar rows */
.comms-points,
.cal-points {
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.comms-point,
.cal-point {
  border-left: 2px solid var(--primary);
  padding-left: 18px;
}

.comms-point h3,
.cal-point h3 {
  font-size: 15.5px;
  font-weight: 600;
  letter-spacing: -0.01em;
  margin-bottom: 5px;
}

.comms-point p,
.cal-point p {
  font-size: 14.5px;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* ── Calendar ── */
.cal-mock {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 18px 16px 16px;
  box-shadow: 0 18px 44px rgba(8, 61, 57, 0.09);
  max-width: 370px;
  width: 100%;
  justify-self: center;
}

.cal-mock-head {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-bottom: 14px;
}

.cal-mock-head b {
  font-size: 14.5px;
  font-weight: 600;
}

.cal-mock-head i {
  color: var(--text-muted);
  font-style: normal;
  font-size: 13px;
}

/* Week-number gutter, then the seven days. */
.cal-month {
  display: grid;
  grid-template-columns: 27px repeat(7, 1fr);
  gap: 3px;
  align-items: start;
}

.cal-dow,
.cal-wk {
  font-size: 10px;
  color: var(--text-secondary);
  text-align: center;
  align-self: center;
}

.cal-dow { padding-bottom: 5px; }

/* width is pinned, not left to grid stretch: a grid item with an auto
   inline size and an aspect-ratio is read differently by the engines —
   Chrome stretches it to the column, Safari honours the ratio and shrinks
   it to its content, which collapsed the whole grid on iOS. With the
   inline size explicit, the ratio only ever decides the height. */
.cal-cell {
  width: 100%;
  background: #fff;
  border: 1px solid var(--border-subtle);
  border-radius: 5px;
  aspect-ratio: 0.88;
  position: relative;
  padding: 3px 0 0 4px;
}

.cal-num {
  font-size: 10px;
  line-height: 1;
  color: var(--text);
  font-style: normal;
  display: block;
}

/* The parent bar: who has the children that day. */
.cal-bar {
  position: absolute;
  left: 4px;
  right: 4px;
  bottom: 3px;
  height: 3px;
  border-radius: 2px;
}

.cal-bar.a { background: var(--primary); }
.cal-bar.b { background: var(--parent-b); }

/* Days belonging to the neighbouring month. */
.cal-cell.out {
  background: transparent;
  border-color: transparent;
}

.cal-cell.out .cal-num { color: var(--text-muted); }
.cal-cell.out .cal-bar.a { background: rgba(13, 107, 100, 0.34); }
.cal-cell.out .cal-bar.b { background: rgba(183, 121, 31, 0.55); }

.cal-cell.sel {
  border: 1.5px solid var(--primary);
  border-radius: 6px;
}

.cal-cell.sel .cal-num { color: var(--primary); font-weight: 600; }

/* A note on the day, and an event from a thread. */
.cal-note,
.cal-ev {
  position: absolute;
  left: 5px;
  top: 15px;
}

.cal-note {
  width: 6px;
  height: 1.5px;
  border-radius: 1px;
  background: var(--text-muted);
}

/* A day can carry both; the note sits beside the dot rather than on it. */
.cal-note.shift { left: 12px; }

.cal-ev {
  width: 3.5px;
  height: 3.5px;
  border-radius: 50%;
  background: var(--text-secondary);
  top: 14px;
}

.cal-day-panel {
  margin-top: 14px;
  border: 1px solid var(--border-subtle);
  border-radius: 10px;
  padding: 11px 12px;
}

.cal-day-panel > b {
  display: block;
  font-size: 12.5px;
  font-weight: 600;
  margin-bottom: 9px;
}

/* One row per thing happening that day. The marker repeats the grid's own
   language: the parent's colour, a note dash, an event dot. */
.cal-item {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  padding: 8px 0;
  border-top: 1px solid var(--border-subtle);
}

.cal-item:first-of-type {
  border-top: 0;
  padding-top: 0;
}

.cal-item:last-of-type { padding-bottom: 0; }

.cal-mk {
  flex: none;
  margin-top: 3px;
}

.cal-mk.sq {
  width: 9px;
  height: 9px;
  border-radius: 2.5px;
}

.cal-mk.sq.a { background: var(--primary); }
.cal-mk.sq.b { background: var(--parent-b); }

.cal-mk.dash {
  width: 9px;
  height: 1.5px;
  border-radius: 1px;
  background: var(--text-secondary);
  margin-top: 7px;
}

.cal-mk.dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--text-secondary);
  margin-top: 5px;
  margin-left: 1.5px;
}

.cal-item strong {
  display: block;
  font-size: 12.5px;
  font-weight: 500;
  line-height: 1.3;
}

.cal-item span {
  display: block;
  font-size: 11px;
  color: var(--text-secondary);
  margin-top: 2px;
  line-height: 1.35;
}

.cal-action {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 12px;
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 6px 13px;
  font-size: 12px;
  color: var(--primary);
  font-weight: 500;
}

/* The tools as a split list — name left, description right */
.tools-list {
  border-top: 1px solid var(--border);
}

.tool-row {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 28px;
  align-items: center;
  padding: 18px 0;
  border-bottom: 1px solid var(--border);
}

.tool-name {
  display: flex;
  align-items: center;
  gap: 14px;
}

.tool-name svg {
  width: 36px;
  height: 36px;
  padding: 9px;
  background: var(--green-100);
  border-radius: 9px;
  color: var(--primary);
  flex-shrink: 0;
}

.tool-name h3 {
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.tool-row > p {
  font-size: 14.5px;
  color: var(--text-secondary);
  line-height: 1.65;
  max-width: 60ch;
}

@media (max-width: 700px) {
  .tool-row {
    grid-template-columns: 1fr;
    gap: 10px;
    padding: 18px 0;
  }
  .tool-row > p {
    padding-left: 50px;
  }
}

/* The privacy row is the one coloured surface among the feature rows:
   a Green 100 panel, so the page gets a pause and the safety message
   its own ground. */
.feature-row#privacy {
  margin-top: 8px;
  padding: 44px 48px;
  border-top: 0;
  border-radius: 20px;
  background: var(--green-100);
}

@media (max-width: 880px) {
  .feature-row#privacy { padding: 32px 24px; }
}

/* ── Privacy: the last feature row; its four points stay visible ── */
.privacy-points {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px 40px;
  margin-top: 28px;
}

.privacy-point {
  border-top: 1.5px solid var(--green-300);
  padding-top: 14px;
}

.privacy-point h3 {
  font-size: 15.5px;
  font-weight: 600;
  letter-spacing: -0.01em;
  margin-bottom: 5px;
}

.privacy-point p {
  font-size: 14.5px;
  color: var(--text-secondary);
  line-height: 1.6;
}

@media (max-width: 600px) {
  .privacy-points { grid-template-columns: 1fr; }
}

/* ── Hero CTAs ── */
.hero-ctas {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

/* Secondary CTA: no underline — the arrow slides right on hover */
.hero-secondary {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-top: 18px;
  font-size: 14px;
  font-weight: 500;
  color: var(--primary);
  transition: color 0.15s;
}

.hero-secondary:hover { color: var(--primary-dark); }

.hero-secondary svg {
  flex-shrink: 0;
  transition: transform 0.2s ease;
}

.hero-secondary:hover svg { transform: translateX(4px); }

@media (max-width: 599px) {
  /* responsive.css sets the "body > main" padding for the care-schedule
     page, but the selector hits every page on mobile — on the front page
     that draws a white frame around the full-width sections. Reset it here. */
  #main-content {
    padding: 0;
  }
  #hero {
    padding-top: 40px;
    padding-bottom: 56px;
  }
  #problem, #features, #story, #cs-promo, #blog-teaser {
    padding-top: 56px;
    padding-bottom: 56px;
  }
}

/* ── Care Schedule Promo ── */
#cs-promo {
  background: var(--bg);
  padding-top: 72px;
  padding-bottom: 72px;
}

#ca-promo {
  background: #fff;
}

.cs-promo-inner {
  display: flex;
  align-items: center;
  gap: 64px;
}

.cs-promo-text {
  flex: 1;
  min-width: 0;
}

.cs-promo-text h2 {
  font-size: clamp(24px, 2.6vw, 30px);
  font-weight: 500;
  letter-spacing: -0.01em;
  margin-bottom: 16px;
}

.cs-promo-text > p {
  font-size: 16px;
  color: var(--text-secondary);
  max-width: 460px;
  line-height: 1.65;
  margin-bottom: 28px;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--primary);
  color: #fff;
  border-radius: 8px;
  padding: 12px 22px;
  font-size: 15px;
  font-weight: 500;
  transition: background 0.15s;
}

.btn-primary:hover {
  background: var(--primary-dark);
}

.btn-primary svg { flex-shrink: 0; }

/*
 * DO NOT CHANGE — cs-promo section image layout.
 * This is the standalone CareSchedule.webp landscape image in the "Plan your care schedule"
 * promo section at the bottom of index.html. It is NOT a carousel slide, NOT a phone-frame
 * screenshot, and NOT related to the feature-block images (Threads/Messages/Album).
 * flex:1 on the visual column lets the image fill the right half of the section naturally.
 */
.cs-promo-visual { flex: 1; min-width: 0; }

/* DO NOT CHANGE — width:100%/height:auto preserves CareSchedule.webp's natural aspect ratio */
.cs-promo-img {
  width: 100%;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.07);
}

@media (min-width: 1200px) {
  .cs-promo-img {
    width: 100%;
  }
}

@media (max-width: 800px) {
  .cs-promo-inner {
    flex-direction: column;
    gap: 40px;
  }
  .cs-promo-img {
    max-width: 375px;
    width: 100%;
  }
}

/* ── Everyday life: the quote on its own, full width, after the
   feature rows. A short amber rule (parent B) opens it. ── */
#story {
  background: #fff;
  padding-top: 88px;
  padding-bottom: 88px;
}

.story-inner::before {
  content: "";
  display: block;
  width: 56px;
  height: 2px;
  margin-bottom: 24px;
  background: var(--parent-b);
}

.story-quote {
  font-family: 'Lora', Georgia, serif;
  font-size: clamp(26px, 3.6vw, 40px);
  font-style: italic;
  font-weight: 400;
  line-height: 1.3;
  max-width: 30ch;
  margin-bottom: 20px;
  text-wrap: balance;
}

.story-note {
  font-size: 16px;
  color: var(--text-secondary);
  max-width: 52ch;
  margin-bottom: 22px;
  line-height: 1.6;
}

/* ── Blog: heading and link left, three posts right ── */
#blog-teaser {
  background: #fff;
  padding-top: 72px;
  padding-bottom: 72px;
}

.reading-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.75fr) minmax(0, 1.25fr);
  gap: 24px 64px;
  align-items: start;
}

.stories-footer a,
.blog-teaser-footer a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  font-weight: 500;
  color: var(--primary);
  transition: color 0.15s;
}

.stories-footer a:hover,
.blog-teaser-footer a:hover {
  color: var(--primary-dark);
}

.reading-head h2 {
  font-size: clamp(22px, 2.4vw, 28px);
  font-weight: 500;
  letter-spacing: -0.01em;
  margin-bottom: 16px;
}

.blog-list { border-top: 1px solid var(--border); }

.blog-teaser-card {
  display: block;
  padding: 18px 0;
  border-bottom: 1px solid var(--border);
  text-decoration: none;
  color: inherit;
}

/* Scoped so .blog-teaser-card p below does not override it */
.blog-teaser-card .blog-teaser-label {
  font-size: 12px;
  color: var(--text-secondary);
  margin-bottom: 4px;
}

.blog-teaser-card h3 {
  font-size: 16px;
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.4;
  margin-bottom: 4px;
  transition: color 0.15s;
}

.blog-teaser-card:hover h3 { color: var(--primary); }

.blog-teaser-card p {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* Stacked, the link to the blog closes the list instead of sitting
   between the heading and the posts. */
@media (max-width: 880px) {
  .reading-grid { grid-template-columns: 1fr; }
  .reading-head { display: contents; }
  .reading-head h2 { margin-bottom: 0; }
  .blog-teaser-footer { order: 1; }
}

/* ── Sticky mobile CTA ── */
.sticky-cta {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 99;
  background: rgba(248, 248, 246, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-top: 1px solid var(--border);
  padding: 10px 16px;
  transform: translateY(100%);
  transition: transform 0.3s ease;
}

.sticky-cta.visible {
  transform: translateY(0);
}

.sticky-cta-inner {
  display: flex;
  gap: 8px;
  justify-content: center;
  max-width: 400px;
  margin: 0 auto;
}

.sticky-cta .btn-appstore {
  flex: 1;
  justify-content: center;
  font-size: 11px;
  padding: 8px 10px;
  background: var(--primary);
}

.sticky-cta .btn-appstore:hover {
  background: var(--primary-dark);
}

@media (max-width: 800px) {
  .sticky-cta {
    display: block;
  }

  footer {
    padding-bottom: 80px;
  }
}
