/* 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: 1fr 1fr;
  gap: 48px;
  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 app screenshots, the same thread seen by Emma
   and by Lucas, joined by the Lina line. Emma's reply fades in on her
   phone, travels the line and lands at Lucas's. Each .duo-phone stacks
   the thread without the reply and, on top (.duo-sent), with it. ── */
/* min-width: 0 so long content cannot widen the hero's grid column
   past the screen on narrow phones. */
.sync { min-width: 0; }

.duo {
  display: flex;
  align-items: center;
  justify-content: center;
  max-width: 520px;
  margin: 0 auto;
  /* The same green panel as the phones in the feature rows; its lower
     edge is where the two screens are cut off. */
  padding: 20px 20px 0;
  background: var(--green-100);
  border-radius: 18px;
  overflow: hidden;
}

.duo-col {
  flex: none;
  width: min(220px, calc(50% - 14px));
}

.duo-home {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin-bottom: 10px;
  font-size: 13px;
  color: var(--text-secondary);
}

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

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

/* Cut off flat at the bottom, like the phones in the feature rows.
   The padding colour matches the screenshot ground. */
.duo-phone {
  position: relative;
  padding-bottom: 6px;
  background: var(--bg);
  border: 3px solid #1C2027;
  border-bottom: 0;
  border-radius: 28px 28px 0 0;
  overflow: hidden;
  box-shadow:
    0 2px 6px rgba(26, 30, 35, 0.05),
    0 18px 40px rgba(26, 30, 35, 0.10);
}

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

.duo-phone picture { display: block; }
.duo-phone img { display: block; width: 100%; height: auto; }

.duo-phone .duo-sent {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
}

/* The captures carry the status bar but not the Dynamic Island. The
   percentage keeps it level with the clock as the screenshot scales. */
.duo-island {
  position: absolute;
  z-index: 1;
  top: 6.7%;
  transform: translateY(-50%);
  left: 36%;
  width: 28%;
  aspect-ratio: 60 / 13;
  border-radius: 999px;
  background: #1C2027;
}

/* The line: teal at Emma's end, amber at Lucas's, a dot at each end. */
.duo-line {
  position: relative;
  z-index: 1;
  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: -4px;
  left: 0;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--primary);
  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 both replies back, then .play once the
   phones are on screen. Without JavaScript, without animation support
   or with reduced motion, the end state shows: both replies, no
   packet. */
@media (prefers-reduced-motion: no-preference) {
  .duo.armed .duo-sent { opacity: 0; }
  .duo.play .duo-col.a .duo-sent { animation: duo-arrive 0.45s ease-out 0.4s 1 both; }
  .duo.play .duo-packet { animation: duo-travel 1.1s ease-in-out 1s 1 both; }
  .duo.play .duo-col.b .duo-sent { animation: duo-arrive 0.45s ease-out 2s 1 both; }
}

@keyframes duo-travel {
  0%   { left: 0; opacity: 0; background: var(--primary); }
  12%  { opacity: 1; }
  88%  { opacity: 1; }
  100% { left: calc(100% - 10px); opacity: 0; background: var(--parent-b); }
}

@keyframes duo-arrive {
  from { opacity: 0; }
  to   { opacity: 1; }
}

/* Forced colours drop backgrounds: keep the line and its two ends
   visible. */
@media (forced-colors: active) {
  .duo-line,
  .duo-line::before,
  .duo-line::after { forced-color-adjust: none; background: CanvasText; }
}

@media (max-width: 520px) {
  .duo { padding: 16px 10px 0; }
}

.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;
  }
}
