/* ScoreMySpeech feature detail pages: editorial study-sheet layout, paper and pastels. */
@font-face {
  font-family: "SMS Editorial";
  src: url("/public/fonts/DMSerifDisplay-Regular.woff") format("woff");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "SMS Sans";
  src: url("/public/fonts/DMSans-Variable.woff") format("woff");
  font-style: normal;
  font-weight: 100 1000;
  font-display: swap;
}
:root {
  color-scheme: light;
  --sfp-ink: #081a3d;
  --sfp-copy: #263b5e;
  --sfp-muted: #526580;
  --sfp-blue: #075be2;
  --sfp-paper: #fffdfa;
  --sfp-rule: #e4e8ec;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--sfp-paper);
  color: var(--sfp-copy);
  font-family: "SMS Sans", "Aptos", "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.48;
  text-rendering: optimizeLegibility;
}
a { color: inherit; }
a:focus-visible { outline: 3px solid #77aaff; outline-offset: 4px; border-radius: 5px; }
.sfp-page { min-height: 100dvh; padding: 24px 0 0; }
.sfp-shell { width: min(1180px, calc(100% - 72px)); margin: 0 auto; }
.sfp-back-top {
  display: inline-flex; align-items: center; gap: 8px; min-height: 30px;
  color: #0759d8; font-size: 13px; font-weight: 700; text-decoration: none;
}
.sfp-back-top span { font-size: 19px; line-height: 1; }
.sfp-hero { display: grid; grid-template-columns: 1fr 1.06fr; align-items: center; gap: 40px; padding: 5px 0 28px; }
.sfp-hero-copy { padding: 5px 0 0 4px; }
.sfp-eyebrow { margin: 0 0 9px; color: #1858b0; font-size: 11px; line-height: 1.3; font-weight: 800; letter-spacing: .105em; text-transform: uppercase; }
.sfp-hero h1, .sfp-page h2 {
  color: var(--sfp-ink); font-family: "SMS Editorial", Georgia, "Times New Roman", serif;
  font-weight: 400; letter-spacing: -.045em;
}
.sfp-hero h1 { margin: 0 0 5px; font-size: clamp(42px, 5.3vw, 62px); line-height: .99; }
.sfp-hero h2 { max-width: 580px; margin: 8px 0 8px; font-family: "SMS Sans", "Aptos", "Segoe UI", sans-serif; font-size: clamp(21px, 2.15vw, 27px); font-weight: 730; line-height: 1.18; letter-spacing: -.034em; }
.sfp-intro { max-width: 470px; margin: 0; color: #425775; font-size: 16px; line-height: 1.48; }
.sfp-how-link {
  display: inline-flex; align-items: center; justify-content: center; gap: 17px; min-height: 44px;
  margin-top: 16px; padding: 0 22px; border-radius: 10px; background: var(--sfp-blue); color: #fff;
  box-shadow: 0 6px 14px rgba(7, 65, 151, .17); font-size: 14px; font-weight: 750; text-decoration: none;
  transition: transform .18s ease, opacity .18s ease;
}
.sfp-how-link:hover, .sfp-download:hover { transform: translateY(-2px); opacity: .94; }
.sfp-how-link span { font-size: 21px; font-weight: 400; line-height: 1; }
.sfp-hero-art { min-width: 0; margin: 0; }
.sfp-hero-art figcaption { margin: 0 0 5px 4px; color: #627087; font-size: 10px; }
.sfp-hero-art img {
  display: block; width: 100%; height: auto; aspect-ratio: 1.78; object-fit: cover;
  border: 1px solid #e6e8eb; border-radius: 18px; background: #f4f5f8;
  box-shadow: 0 9px 25px rgba(23, 47, 81, .1);
}
.sfp-page section > h2, .sfp-example h2 {
  margin: 0 0 12px; font-size: clamp(26px, 3vw, 34px); line-height: 1.07;
}
.sfp-details { padding: 0 0 20px; }
.sfp-panel-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.sfp-panel {
  display: grid; grid-template-columns: minmax(155px, 1fr) minmax(125px, .85fr);
  min-height: 146px; gap: 16px; align-items: center; padding: 12px 16px;
  border: 1px solid rgba(10, 38, 78, .035); border-radius: 14px;
}
.sfp-tone-blue { background: #e7f3fc; }
.sfp-tone-yellow { background: #fff4d7; }
.sfp-tone-mint { background: #e0f6ed; }
.sfp-tone-coral { background: #ffebe5; }
.sfp-tone-lilac { background: #f0e9fb; }
.sfp-panel-copy h3, .sfp-step h3 { margin: 0 0 5px; color: var(--sfp-ink); font-size: 16px; line-height: 1.24; letter-spacing: -.025em; }
.sfp-panel-copy p { margin: 0; color: var(--sfp-muted); font-size: 13px; line-height: 1.42; }
.sfp-panel-art {
  min-height: 102px; display: flex; flex-direction: column; justify-content: center; gap: 6px;
  padding: 13px 14px; border: 1px solid rgba(19, 43, 79, .08); border-radius: 12px;
  background: rgba(255,255,255,.83); box-shadow: 0 4px 12px rgba(26, 49, 80, .055);
  color: #10244a; font-size: 13px; font-weight: 680; line-height: 1.28;
}
.sfp-panel-art img {
  display: block; width: 100%; height: 76px; flex: 0 0 auto; object-fit: cover;
  border-radius: 8px; background: #e7edf3;
}
.sfp-panel-art span + span { padding-top: 5px; border-top: 1px solid #e7edf2; color: #52627a; font-size: 11px; font-weight: 550; }
.sfp-process { padding: 2px 0 20px; }
.sfp-steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.sfp-step {
  position: relative; min-width: 0; min-height: 190px; padding: 15px 15px 13px 49px;
  border: 1px solid #e9ecef; border-radius: 13px; background: #fff;
  box-shadow: 0 5px 16px rgba(20, 42, 75, .045);
}
.sfp-step-number {
  position: absolute; top: 13px; left: 13px; display: grid; width: 28px; height: 28px;
  place-items: center; border-radius: 50%; background: #075be2; color: white; font-size: 14px; font-weight: 800;
}
.sfp-step h3 { min-height: 32px; margin-top: 3px; font-size: 14px; }
.sfp-step-art {
  display: flex; min-height: 72px; flex-direction: column; justify-content: center; gap: 4px;
  margin: 3px 0 8px; padding: 10px 11px; border: 1px solid #edf0f3; border-radius: 10px;
  background: linear-gradient(135deg, #f6f9fc, #fff); color: #14284c; font-size: 12px; font-weight: 650;
}
.sfp-step-art span + span { color: #38619c; }
.sfp-step p { margin: 0; color: var(--sfp-muted); font-size: 12px; line-height: 1.42; }
.sfp-example {
  display: grid; grid-template-columns: .8fr 1.2fr; align-items: center; gap: 24px;
  margin: 0 0 17px; padding: 17px 20px; border-radius: 14px;
  background: #e9f5fc;
}
.sfp-example h2 { margin-bottom: 7px; font-size: clamp(24px, 2.8vw, 32px); }
.sfp-example-copy p { margin: 0; color: #475b79; font-size: 13px; }
.sfp-example-art {
  display: flex; min-height: 72px; align-items: center; justify-content: center; gap: 10px;
  padding: 15px 18px; border: 1px solid rgba(20, 47, 82, .07); border-radius: 12px;
  background: rgba(255,255,255,.88); color: #14294d; text-align: center; font-size: 15px; font-weight: 750;
}
.sfp-example-art img {
  display: block; width: 100%; max-height: 115px; flex: 0 0 auto; object-fit: cover;
  border-radius: 9px; background: #e7edf3;
}
.sfp-example-art span:nth-child(2) { color: #075be2; font-size: 24px; }
.sfp-final {
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  padding: 1px 0 25px;
}
.sfp-final h2 { margin: 0 0 3px; font-size: clamp(25px, 2.7vw, 32px); line-height: 1.05; }
.sfp-final p { margin: 0; color: var(--sfp-muted); font-size: 14px; }
.sfp-actions { display: flex; align-items: center; justify-content: flex-end; flex-wrap: wrap; gap: 9px; }
.sfp-download, .sfp-play, .sfp-back-bottom {
  display: inline-flex; min-height: 42px; align-items: center; justify-content: center; gap: 11px;
  padding: 0 15px; border: 1px solid #0b58cf; border-radius: 9px; font-size: 12px; font-weight: 750; text-decoration: none;
  transition: transform .18s ease, background-color .18s ease;
}
.sfp-download { background: #075be2; color: #fff; box-shadow: 0 5px 13px rgba(7, 65, 151, .14); }
.sfp-download span { font-size: 18px; font-weight: 400; }
.sfp-play, .sfp-back-bottom { background: #fff; color: #0755c5; }
.sfp-play:hover, .sfp-back-bottom:hover { background: #eef5ff; }

@media (max-width: 760px) {
  .sfp-page { padding-top: 16px; }
  .sfp-shell { width: min(100% - 36px, 580px); }
  .sfp-hero { grid-template-columns: 1fr; gap: 19px; padding: 8px 0 25px; }
  .sfp-hero-copy { padding-left: 0; }
  .sfp-hero h1 { font-size: clamp(43px, 12vw, 59px); }
  .sfp-hero h2 { max-width: 540px; font-size: 22px; }
  .sfp-intro { font-size: 15px; }
  .sfp-hero-art img { aspect-ratio: 1.75; }
  .sfp-panel-grid { grid-template-columns: 1fr; gap: 10px; }
  .sfp-panel { min-height: 132px; grid-template-columns: minmax(125px, .9fr) minmax(130px, 1fr); gap: 13px; }
  .sfp-panel-art { min-height: 96px; }
  .sfp-steps { grid-template-columns: 1fr; gap: 9px; }
  .sfp-step { min-height: 0; padding-bottom: 14px; }
  .sfp-step-art { min-height: 58px; }
  .sfp-example { grid-template-columns: 1fr; gap: 12px; padding: 17px 15px; }
  .sfp-example-art { min-height: 65px; flex-wrap: wrap; font-size: 14px; }
  .sfp-final { align-items: flex-start; flex-direction: column; gap: 13px; padding-bottom: 22px; }
  .sfp-actions { justify-content: flex-start; }
}
@media (max-width: 420px) {
  .sfp-shell { width: calc(100% - 28px); }
  .sfp-panel { grid-template-columns: 1fr; gap: 8px; padding: 12px; }
  .sfp-panel-art { min-height: 72px; }
  .sfp-actions { display: grid; width: 100%; grid-template-columns: 1fr 1fr; }
  .sfp-download { grid-column: 1 / -1; }
  .sfp-play { grid-column: 1 / -1; }
  .sfp-back-bottom { grid-column: 1 / -1; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; }
}
