/* One type scale for every section below the hero, loaded last so it wins over each block's own sizes.
   Section heading (h2): 48px on a wide screen, 32px on a phone. Subheading: 25px, black, semibold.
   Text: 18px, grey. Everything left-aligned on the content's left edge; only the hero is centred. */
:root {
  --t-h2: clamp(32px, 3.6vw, 48px);
  --t-h3: clamp(21px, 1.8vw, 25px);
  --t-body: 18px;
}

/* section headings */
#widget > .sync-heading,
.story-copy .st-heading,
.lw-block .st-heading,
.ai-strip h2,
.qi-name {
  font-size: var(--t-h2); font-weight: 620; letter-spacing: -0.035em; line-height: 1.12; white-space: normal;
}
.qi-name span { white-space: nowrap; }

/* subheadings */
#widget .sync-sub,
.ai-strip .ai-sub,
.sh-what .sh-lead,
.story-copy .st-step h3,
.lw-block h3,
.qi-sub {
  font-size: var(--t-h3); font-weight: 600; letter-spacing: -0.02em; line-height: 1.3; color: #17212e;
}

/* text under a heading */
#widget .sync-text,
.ai-strip .ai-text,
.ft .lead,
.sh-what .sh-also,
.qi-moves,
.sv5-intro,
#pricing .intro,
.trial-block h2 + p,
.story-copy .st-step > p,
.lw-block .st-step p {
  font-size: var(--t-body);
}

/* left, not centred */
#widget > .sync-heading { text-align: left; }
.ed-head { margin: 0; text-align: left; }
.ed-head .lead { margin-left: 0; }

/* One rhythm between sections: 120px, 75px on a phone — the same step the Quick Edit and keyboard blocks use.
   Each section keeps only the space above it; nothing adds space below. */
:root { --sec: 120px; }
@media (max-width: 760px) { :root { --sec: 75px; } }
.feature-stories { margin-top: 0; }
#widget.st-cards { padding-top: var(--sec); }
#quick-sync.feature-story { min-height: 0; padding: calc(var(--sec) - 24px) 0 0; } /* the cards above end with 24px */
#quick-edit.qi { margin-top: var(--sec); }
#series.lw-block { padding: var(--sec) 0 0; }
#savings.sv5 { margin-top: var(--sec); }
#workflow.workflow-comparison { padding: var(--sec) 0 0; }
#with-ai.ai-strip { margin-top: calc(var(--sec) + 10px); } /* the lit comparison card sticks out 10px below */
section.block { padding-top: var(--sec); }
@media (max-width: 760px) { #with-ai.ai-strip { margin-top: var(--sec); } } /* the cards stack on a phone, nothing sticks out */
