.sm-chapter, .sm-app {
  --sm-ink: #182326;
  --sm-muted: #4d5a60;
  --sm-rule: #d9dedd;
  --sm-serif: Georgia, 'Times New Roman', serif;
  --sm-mono: ui-monospace, 'SFMono-Regular', Consolas, monospace;
  color: var(--sm-ink);
  scroll-margin-top: 78px;
}
.sm-chapter { padding: clamp(68px, 7.5vw, 112px) 0; }
.sm-wrap { width: min(var(--wrap, 1280px), calc(100% - clamp(36px, 9vw, 144px))); max-width: 100%; margin-inline: auto; }
.sm-heading { margin-bottom: clamp(30px, 4vw, 52px); }
.sm-heading h2, .sm-app h2 {
  margin: 0;
  font: 400 clamp(44px, 5.2vw, 76px)/1.04 var(--sm-serif);
  letter-spacing: -.055em;
  color: var(--sm-ink);
}
.sm-heading > p, .sm-app-intro {
  margin: 15px 0 0;
  color: var(--sm-muted);
  font-size: clamp(16px, 1.4vw, 19px);
  line-height: 1.55;
  max-width: 55ch;
}
.sm-browser { display: grid; grid-template-columns: minmax(174px, .29fr) minmax(0, 1fr); align-items: start; gap: clamp(20px, 4vw, 58px); }
.sm-tab-list { display: flex; flex-direction: column; align-items: stretch; width: 100%; }
.sm-tab {
  position: relative;
  display: grid; grid-template-columns: 22px 1fr 12px; gap: 10px; align-items: center;
  padding: 18px 7px; min-height: 52px;
  color: #536067; font: inherit; font-size: clamp(15px, 1.35vw, 19px); font-weight: 500;
  text-decoration: none; border-bottom: 1px solid var(--sm-rule);
  transition: color .15s ease, background .15s ease;
}
.sm-tab:first-child { border-top: 1px solid var(--sm-rule); }
.sm-tab-index, .sm-step-index, .sm-facts dt, .sm-pair-caption, .sm-mode-name, .sm-app-label { font-family: var(--sm-mono); font-size: 11px; line-height: 1.4; letter-spacing: .06em; }
.sm-tab-index { font-size: 12px; color: #6d7476; }
.sm-tab[aria-selected="true"] { color: var(--sm-ink); border-bottom-color: var(--sm-ink); }
.sm-tab[aria-selected="true"] .sm-tab-index { color: var(--sm-ink); }
.sm-tab-chevron { opacity: 0; width: 7px; height: 7px; transform: rotate(-45deg); border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; }
.sm-tab[aria-selected="true"] .sm-tab-chevron { opacity: 1; }
.sm-tab:hover { color: var(--sm-ink); background: #eef2f166; }
.sm-panels { min-width: 0; }
.sm-panel {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(200px, 1fr); gap: clamp(20px, 2.5vw, 40px); align-items: center;
  padding: clamp(26px, 3.4vw, 54px); overflow: hidden; border-radius: 22px;
  background: var(--sm-wash); color: var(--sm-ink); scroll-margin-top: 88px;
}
.sm-panel + .sm-panel { margin-top: 18px; }
.sm-browser.is-ready .sm-panel + .sm-panel { margin-top: 0; }
.sm-tone-1 { --sm-wash: #e8efeb; --sm-accent: #377857; }
.sm-tone-2 { --sm-wash: #e6eef4; --sm-accent: #34648a; }
.sm-tone-3 { --sm-wash: #f1ece0; --sm-accent: #916619; }
.sm-tone-4 { --sm-wash: #eeebf3; --sm-accent: #77579c; }
.sm-tone-5 { --sm-wash: #f3eae5; --sm-accent: #a45242; }
.sm-tone-6 { --sm-wash: #efe9ec; --sm-accent: #994e75; }
.sm-mode-name, .sm-app-label { text-transform: uppercase; font-weight: 500; color: #3d4c4c; margin: 0 0 17px; }
.sm-mode-name { display: flex; align-items: center; gap: 9px; }
.sm-indicator { display: inline-block; width: 11px; height: 3px; border-radius: 5px; background: var(--sm-accent); }
.sm-mode-copy h3 { margin: 0; color: var(--sm-ink); font: 400 clamp(30px, 3vw, 47px)/1.05 var(--sm-serif); letter-spacing: -.045em; }
.sm-promise { margin: 15px 0 0; font-size: clamp(15px, 1.25vw, 17px); line-height: 1.5; color: #3d4c50; }
.sm-facts { display: grid; gap: 12px; margin: 24px 0 0; padding-top: 17px; border-top: 1px solid #17282327; }
.sm-facts dt { margin: 0 0 2px; text-transform: uppercase; color: #4f5d60; font-size: 10px; }
.sm-facts dd { margin: 0; color: #243232; line-height: 1.4; font-size: 14px; }
.sm-watch {
  display: inline-flex; align-items: center; justify-content: center; gap: .65em; padding: 12px 17px; border: 1px solid #19272970; border-radius: 999px;
  color: #192729; margin-top: 21px; font: inherit; font-weight: 550; font-size: 13px; line-height: 1.25;
  background: transparent; cursor: pointer;
}
.sm-watch:hover { border-color: #192729; background: #ffffff68; }
.sm-watch-mark { width: 0; height: 0; border: 5px solid transparent; border-left: 8px solid currentColor; border-right: 0; }
.sm-watch[data-playing="true"] .sm-watch-mark { width: 8px; height: 10px; border: 0; border-inline: 3px solid currentColor; box-sizing: border-box; }
.sm-video-error { margin: 10px 0 0; font-size: 12px; }
.sm-phone-stage, .sm-pair-stage { display: grid; justify-items: center; align-items: center; }
.sm-handset {
  position: relative; width: min(100%, 310px); aspect-ratio: 390/844; box-sizing: content-box;
  border: 4px solid #1c2022; box-shadow: inset 0 0 0 1px #4e5151, 0 0 0 1px #68706e, 1px 3px 4px #15261d1c, 5px 18px 28px -13px #16292159;
  border-radius: 25px; background: #060606; overflow: hidden;
}
.sm-handset img, .sm-handset video { display: block; width: 100%; height: 100%; object-fit: cover; margin: 0; }
.sm-handset video { position: absolute; inset: 0; }
.sm-watch[hidden], .sm-panel[hidden], .sm-handset video[hidden], .sm-video-error[hidden] { display: none !important; }
.sm-app { padding: clamp(58px, 6.8vw, 100px) 0; }
.sm-app-inner { display: grid; grid-template-columns: 1.08fr .92fr; gap: clamp(32px, 6vw, 92px); align-items: center; }
.sm-app h2 { font-size: clamp(43px, 4.6vw, 68px); }
.sm-app-intro { max-width: 45ch; }
.sm-pair-list { margin: 24px 0 0; padding: 0; list-style: none; max-width: 470px; border-top: 1px solid var(--sm-rule); }
.sm-pair-step { display: grid; grid-template-columns: 28px 1fr; align-items: baseline; gap: 3px; padding: 12px 3px; margin: 0; width: 100%; text-align: start; color: var(--sm-muted); border: 0; border-bottom: 1px solid var(--sm-rule); background: transparent; font: inherit; cursor: pointer; }
.sm-pair-step:hover, .sm-pair-step[aria-current="step"] { color: var(--sm-ink); }
.sm-pair-step strong { display: block; font-size: 16px; font-weight: 550; }
.sm-step-index { color: #586777; }
.sm-step-description { display: block; margin-top: 3px; color: var(--sm-muted); line-height: 1.45; font-size: 14px; }
.sm-pair-step[aria-current="step"] { background: #eaf0f4; box-shadow: inset 3px 0 #375f7c; }
.sm-pair-step { padding-inline:12px; }
.sm-pair-play { justify-self:center; min-width:142px; min-height:40px; border:1px solid #99a8b2; border-radius:999px; color:#273a49; background:transparent; font:500 13px/1.3 var(--sans,sans-serif); padding:8px 17px; }
.sm-pair-play:hover { background:#fff; }
.sm-guide-app-tile { margin:12px 0 0; color:var(--muted); font-size:16px; }
.sm-pair-stage { min-width: 0; margin: 0; padding: clamp(24px, 3vw, 42px); gap: 15px; border-radius: 22px; background: #edf1f5; }
.sm-pair-stage .sm-handset { width: min(100%, 270px); }
.sm-pair-caption { color: #425060; text-align: center; }
.sm-chapter :focus-visible, .sm-app :focus-visible { outline: 2px solid #176ba7; outline-offset: 3px; }
@media (max-width: 960px) {
  .sm-browser { grid-template-columns: 1fr; gap: 18px; }
  .sm-tab-list { flex-direction: row; width: 100%; overflow-x: auto; scrollbar-width: thin; }
  .sm-tab { display: inline-flex; flex: 1 0 auto; justify-content: center; gap: 7px; padding: 13px 12px; font-size: 15px; white-space: nowrap; }
  .sm-tab:first-child { border-top: 0; } .sm-tab-chevron { display: none; }
  .sm-tab[aria-selected="true"] { box-shadow: inset 0 -1px var(--sm-ink); }
  .sm-tab:focus-visible { outline-offset: -3px; }
  .sm-panel { grid-template-columns: 1fr 1fr; padding: 30px clamp(25px, 5vw, 48px); }
  .sm-handset { width: min(100%, 270px); }
}
@media (max-width: 650px) {
  .sm-wrap { width: calc(100% - 36px); }
  .sm-browser { gap: 14px; }
  .sm-panel { grid-template-columns: 1fr; gap: 20px; padding: 25px; border-radius: 16px; }
  .sm-mode-copy h3 { font-size: 34px; }
  .sm-facts { grid-template-columns: minmax(0, 1.2fr) minmax(0,.8fr); gap: 16px; margin-top: 16px; padding-top: 14px; }
  .sm-mode-name { margin-bottom: 10px; }
  .sm-phone-stage { padding: 6px 0 0; }
  .sm-phone-stage .sm-handset { width: min(100%, 250px); border-radius: 19px; }
  .sm-app-inner { grid-template-columns: 1fr; gap: 22px; }
  .sm-pair-list { max-width: none; }
  .sm-pair-stage { padding: 24px; border-radius: 16px; }
  .sm-pair-stage .sm-handset { width: min(100%, 240px); border-radius: 19px; }
}
@media (prefers-reduced-motion: reduce) { .sm-tab { transition: none; } }
/* The current app captures contain the complete S25 frame and cast shadow. */
.sm-handset, .sm-phone-stage .sm-handset, .sm-pair-stage .sm-handset { aspect-ratio: 1266/2526; border: 0; border-radius: 0; box-shadow: none; background: transparent; overflow: visible; }
.sm-mode-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 14px; margin-top: 22px; }
.sm-mode-actions .sm-watch { margin: 0; }
.sm-guide-link { color: #263f47; font-size: 14px; font-weight: 550; text-decoration: underline; text-underline-offset: .25em; }
.sm-guide-link span { display: inline-block; margin-inline-start: .15em; }
.sm-demo-dialog { width: min(96vw, 1000px); max-width: 100vw; max-height: 92dvh; border: 0; border-radius: 18px; padding: 0; background: #fff; color: #182326; }
.sm-demo-dialog::backdrop { background: #111d29b8; }
.sm-demo-shell > header { display:flex; align-items:center; justify-content:space-between; gap:12px; padding: 14px 22px; }
.sm-demo-shell h3 { margin:0; font: 400 clamp(23px,3vw,32px)/1.2 Georgia,serif; letter-spacing: -.04em; }
.sm-demo-close { min-height: 40px; padding: 0 17px; border: 1px solid #b6c1c7; border-radius: 50px; color: #182326; background: #fff; }
.sm-demo-shell video { width:100%; height:auto; aspect-ratio:16/9; max-height:65vh; background:#121a1d; }
.sm-demo-caption, .sm-demo-shell .sm-video-error { margin:0; padding:12px 22px; font-size:14px; color:#536066; }
.sm-guide-nav, .sm-guide-end > div { display:flex; align-items:center; gap:22px; }
.sm-guide-nav > a:first-child { font-size:14px; }
.sm-guide-intro { max-width:800px; padding:clamp(44px,7vw,95px) 0 clamp(28px,4vw,52px); }
.sm-guide-intro .sm-mode-name { font: 500 12px/1.5 var(--mono); }
.sm-guide h1, .sm-guide h2 { font: 400 clamp(45px,6vw,88px)/1.02 var(--serif); letter-spacing: -.052em; margin:0; }
.sm-guide h2 { font-size:clamp(33px,4.1vw,56px); }
.sm-guide-intro > p:last-child, .sm-guide-support p { margin:17px 0 0; max-width:58ch; font-size:clamp(16px,1.4vw,20px); line-height:1.5; color:var(--muted); }
.sm-guide-film { margin:0; }
.sm-guide-film > video { display:block; width:100%; height:auto; border-radius:16px; background:#eef0f1; }
.sm-guide-film figcaption { display:flex; align-items:baseline; gap:.8em; padding:14px 0; border-bottom:1px solid var(--line); line-height:1.4; font-size:14px; color:var(--muted); }
.sm-guide-film figcaption strong { white-space:nowrap; color:var(--ink); font-weight:600; }
.sm-guide-film figcaption > span { margin-left:auto; white-space:nowrap; color:var(--blue); }
.sm-guide-strip, .sm-guide-support { margin-top:clamp(54px,7vw,102px); }
.sm-guide-grid { display:grid; grid-template-columns:repeat(var(--count),minmax(0,1fr)); gap:clamp(14px,2.4vw,35px); margin-top:28px; }
.sm-guide-grid figure { margin:0; min-width:0; }
.sm-guide-grid figure > a { display:flex; align-items:center; justify-content:center; width:100%; background:#edf1f2; border-radius:14px; padding:16px; }
.sm-guide-grid img { width:auto; height:auto; max-width:100%; max-height:clamp(190px,29vw,385px); }
.sm-guide-grid figcaption { padding:14px 2px 0; }
.sm-guide-grid figcaption strong { display:block; font-size:17px; color:var(--ink); font-weight:550; }
.sm-guide-grid figcaption span { display:block; margin-top:5px; color:var(--muted); font-size:15px; line-height:1.45; }
.sm-guide-support { display:grid; grid-template-columns:1fr 1fr; gap:clamp(25px,5vw,70px); }
.sm-guide-support p { font-size:16px; }
.sm-guide-support details { margin:0; border-top:1px solid var(--line); }
.sm-guide-support details:last-child { border-bottom:1px solid var(--line); }
.sm-guide-support summary { font-weight:550; line-height:1.45; cursor:pointer; padding:17px 0; }
.sm-guide-support details p { margin:0; padding-bottom:17px; }
.sm-guide-end { margin-top:clamp(60px,7vw,95px); padding:25px 0; border-top:1px solid var(--line); }
.sm-guide-end > div { justify-content:space-between; }
@media(max-width:650px) { .sm-guide-grid { grid-template-columns:repeat(2,minmax(0,1fr)); row-gap:24px; } .sm-guide-grid a { padding:8px; } .sm-guide-grid img { max-height:275px; } .sm-guide-film figcaption { display:block; } .sm-guide-film figcaption strong { margin-right:6px; } .sm-guide-film figcaption > span { display:block; margin:4px 0 0; font-size:12px; } .sm-guide-support { grid-template-columns:1fr; } .sm-guide-nav { gap:13px; } .sm-guide-nav .nav-build { padding:0 15px; } }
.sm-guide-hero { display:grid; grid-template-columns:minmax(0,.82fr) minmax(0,1.18fr); gap:clamp(35px,5vw,80px); align-items:center; padding:clamp(54px,6.8vw,100px) 0 clamp(26px,4.4vw,68px); border-bottom:1px solid var(--line); }
.sm-guide-hero .sm-guide-intro { padding:0; }
.sm-guide-hero h1 { font-size:clamp(45px,4.9vw,76px); }
.sm-guide-hero .sm-guide-intro > p:not(.sm-mode-name) { margin:20px 0 0; max-width:46ch; color:var(--muted); font-size:clamp(16px,1.36vw,20px); line-height:1.5; }
.sm-guide-chapters { display:flex; align-items:center; flex-wrap:wrap; margin-top:24px; gap:18px; }
.sm-guide-chapters a { display:inline-flex; align-items:center; min-height:36px; color:var(--blue); font-weight:550; font-size:14px; text-decoration:underline; text-underline-offset:4px; }
.sm-guide-hero .sm-guide-film figcaption { display:block; border:0; line-height:1.5; padding:12px 1px 0; }
.sm-guide-hero .sm-guide-film figcaption strong { margin-right:.25em; }
.sm-guide-hero .sm-guide-film figcaption > span { display:block; margin:4px 0 0; color:var(--muted); font-size:12px; }
.sm-guide .sm-guide-strip,.sm-guide .sm-guide-support { scroll-margin-top:22px; }
.sm-guide-results .sm-guide-grid figure > a { background:#e9eef6; }
.sm-guide-pager { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); margin-top:clamp(48px,6vw,80px); border-top:1px solid var(--line); border-bottom:1px solid var(--line); }
.sm-guide-pager a { display:grid; gap:7px; align-content:center; position:relative; padding:clamp(20px,3vw,38px) 0; }
.sm-guide-pager a:focus-visible { outline-offset:-3px; }
.sm-guide-pager a:hover strong { color:var(--blue); }
.sm-guide-pager a span { font-family:var(--mono); font-size:11px; letter-spacing:.055em; text-transform:uppercase; color:var(--muted); }
.sm-guide-pager strong { font:400 clamp(23px,2.3vw,36px)/1.12 var(--serif); letter-spacing:-.035em; }
.sm-guide-prev { padding-right:12px!important; }
.sm-guide-next { text-align:right; padding-left:12px!important; }
.sm-guide-prev span::before { content:'← '; } .sm-guide-next span::after { content:' →'; }
.sm-guide-end { margin-top:0; border-top:0; }
@media(max-width:860px) { .sm-guide-hero { grid-template-columns:minmax(0,1fr); gap:24px; } .sm-guide-hero .sm-guide-intro { max-width:660px; } .sm-guide-hero .sm-guide-intro > p:not(.sm-mode-name) { max-width:56ch; } }
@media(max-width:650px) { .sm-guide-hero { padding-top:36px; } .sm-guide-chapters { margin-top:14px; } .sm-guide-grid figure > a { padding:10px; } }
