/* The previews and expanded samples share the same HTML and design styles. */
.example-open { display: block; color: var(--ink); background: var(--paper-2); text-decoration: none; }
.example-cover { position: relative; width: 100%; aspect-ratio: 800 / 520; overflow: hidden; background: #f5f7f7; }
.example-cover-canvas { position: absolute; width: 800px; min-height: 520px; transform-origin: top left; pointer-events: none; }
.example-cover .sample { height: auto; min-height: 520px; overflow: visible; }
.example-cover > * { animation: example-appear .4s ease both; }
.example-media-bar { display: flex; align-items: center; justify-content: space-between; gap: .4rem; padding: .25rem .8rem; border-block: 1px solid var(--line); }
.example-gallery-link { font-size: .8rem; font-weight: 600; padding-block: .6rem; }
.example-gallery-link:hover { text-decoration: underline; text-underline-offset: .2em; }
.example-cycle-controls { display: flex; align-items: center; flex-shrink: 0; }
.example-cycle-controls button { width: 36px; height: 44px; padding: 0; border: 0; border-radius: 4px; background: transparent; color: var(--ink); font: inherit; font-size: 1.5rem; cursor: pointer; }
.example-cycle-controls button:hover { background: var(--paper-3); }
.example-counter { min-width: 30px; text-align: center; font-size: .7rem; color: var(--muted); font-variant-numeric: tabular-nums; }
.example-motion { flex-shrink: 0; border: 1px solid var(--line-2); border-radius: 5px; background: var(--paper-2); color: var(--ink-soft); font: inherit; font-size: .75rem; padding: .65rem .8rem; cursor: pointer; }
.example-motion[hidden] { display: none; }
.outcome-feed-heading { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.example-scene { position: relative; margin: 0; width: 100%; background: #e5e8e5; }
.example-scene img { display: block; width: 100%; height: auto; }
.example-cover .example-scene { height: 100%; }
.example-cover .example-scene img { width: 100%; height: 100%; object-fit: contain; }
.example-scene figcaption, .example-design-label { position: absolute; bottom: 8px; left: 8px; max-width: calc(100% - 16px); padding: 3px 7px; border: 1px solid #1c2c3526; border-radius: 4px; background: #fffffff2; color: #24343c; font-size: 9px; line-height: 1.4; }
.example-view-choices { display: flex; gap: .35rem; margin: -.35rem 0 1rem; }
.example-view-choices button { min-height: 36px; border: 0; border-bottom: 2px solid transparent; padding: .45rem .7rem; background: transparent; color: var(--muted); font: inherit; font-size: .85rem; cursor: pointer; }
.example-view-choices button[aria-pressed="true"] { border-bottom-color: var(--accent); color: var(--ink); }
.example-open:focus-visible { outline-offset: -4px !important; }
.examples-open { overflow: hidden; }
.example-dialog { width: min(1060px, calc(100vw - 40px)); max-width: none; max-height: min(940px, calc(100dvh - 40px)); margin: auto; padding: 0; border: 1px solid var(--line-2); border-radius: 12px; background: var(--paper); color: var(--ink); box-shadow: 0 20px 100px #0005; }
.example-dialog[open] { display: flex; flex-direction: column; }
.example-dialog::backdrop { background: #101b24ba; }
.example-dialog-head { display: flex; flex: 0 0 auto; align-items: center; justify-content: space-between; gap: 1rem; padding: 1.2rem 1.7rem; border-bottom: 1px solid var(--line); }
.example-dialog-head .kicker { font-size: .65rem; margin: 0 0 .35rem; }
.example-dialog-head h2 { font-family: var(--ff-display); font-size: clamp(1.25rem, 2.6vw, 1.8rem); margin: 0; line-height: 1.2; }
.example-close { display: flex; gap: .8rem; align-items: center; flex-shrink: 0; min-height: 44px; border: 1px solid var(--line-2); border-radius: 6px; background: var(--paper-2); color: var(--ink); font: inherit; font-size: .85rem; padding: .5rem .8rem; cursor: pointer; }
.example-close span { font-size: 1.4rem; line-height: 1; }
.example-dialog-scroll { min-height: 0; overflow: auto; overscroll-behavior: contain; padding: 1rem 1.7rem 1.8rem; }
.example-gallery-note { font-size: .85rem; line-height: 1.5; color: var(--muted); margin: 0 0 1rem; }
.example-choices { display: flex; flex-wrap: wrap; gap: .45rem; margin-bottom: 1.2rem; }
.example-choices button { min-height: 40px; max-width: 100%; padding: .55rem .85rem; border: 1px solid var(--line-2); border-radius: 5px; background: transparent; color: var(--ink-soft); font: inherit; font-size: .85rem; cursor: pointer; }
.example-choices button[aria-pressed="true"] { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.example-choices button:hover { text-decoration: underline; text-underline-offset: .2em; }
.example-stage { border: 1px solid #27363030; border-radius: 6px; overflow: hidden; }
.example-caption { padding-top: 1.3rem; }
.example-caption h3 { font-family: var(--ff-display); font-size: 1.4rem; line-height: 1.3; margin: 0 0 .5rem; }
.example-caption p { color: var(--ink-soft); font-size: .95rem; line-height: 1.6; margin: 0 0 1rem; max-width: 78ch; }
.example-contact { font-size: .95rem; }

/* Samples intentionally keep their own palettes in either site theme. */
.sample { --sample-ink: #243e37; --sample-accent: #285f50; --sample-soft: #e8eee8; color-scheme: light; background: #fffefa; color: var(--sample-ink); font-family: var(--ff-body, 'Spline Sans', sans-serif); font-size: 16px; line-height: 1.5; text-align: left; min-width: 0; }
.sample *, .sample *::before, .sample *::after { box-sizing: border-box; }
.sample h4 { color: inherit; font-family: var(--ff-display); font-weight: 500; font-size: 32px; line-height: 1.15; letter-spacing: -.025em; margin: 14px 0 18px; }
.sample p { font-size: 16px; line-height: 1.6; margin: 0 0 16px; color: inherit; }
.sample small { font-size: 12px; line-height: 1.5; }
.sample strong { font-weight: 600; }
.sample-head { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 20px 32px; border-bottom: 1px solid #223a3226; font-size: 13px; }
.sample-head > strong { letter-spacing: .06em; }
.sample-head > span { font-size: 12px; }
.sample-body { padding: 26px 32px 30px; }
.sample-tag { display: inline-block; color: var(--sample-accent); background: var(--sample-soft); padding: 4px 9px; border-radius: 4px; font-size: 11px; font-weight: 600; letter-spacing: .035em; }
.sample-rows { margin: 14px 0 18px; border-top: 1px solid #26393126; }
.sample-line { display: flex; align-items: baseline; justify-content: space-between; gap: 20px; padding: 11px 0; border-bottom: 1px solid #26393126; font-size: 14px; }
.sample-line > strong { text-align: right; }
.sample-note { padding: 14px 17px; background: var(--sample-soft); border-left: 3px solid var(--sample-accent); border-radius: 0 4px 4px 0; font-size: 14px; }
.sample-note p { font-size: 14px; margin: 5px 0 0; }
.sample-action { display: inline-flex; justify-content: space-between; align-items: center; gap: 24px; background: var(--sample-accent); color: #fff; padding: 12px 18px; font-size: 13px; font-weight: 600; margin-top: 14px; border-radius: 4px; }
.sample-two { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.sample-two p { margin-bottom: 6px; }
.sample-two .sample-action { align-self: start; }
.sample-blue { --sample-ink: #223c52; --sample-accent: #24556b; --sample-soft: #e6eff3; }
.sample-rose { --sample-ink: #5c3a34; --sample-accent: #7b4d45; --sample-soft: #f4e7e2; }
.sample-coffee { --sample-ink: #593c2d; --sample-accent: #804630; --sample-soft: #f6ecdf; }
.sample-lilac { --sample-ink: #363954; --sample-accent: #55517c; --sample-soft: #eeecf6; }
.sample-conversation { display: grid; gap: 9px; margin-top: 20px; }
.sample-message { max-width: 85%; padding: 10px 14px; background: #f2f3f4; border-radius: 10px 10px 10px 0; }
.sample-message small { font-weight: 600; font-size: 10px; }
.sample-message p { margin: 2px 0 0; font-size: 14px; line-height: 1.5; }
.sample-message.is-reply { background: var(--sample-soft); justify-self: end; border-radius: 10px 10px 0 10px; }
.sample-booking { border: 1px solid #8c544b35; padding: 20px; border-radius: 7px; }
.sample-booking > strong { font-size: 14px; }
.sample-times { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 16px 0; }
.sample-times span { border: 1px solid #8c544b60; text-align: center; padding: 10px 7px; font-size: 12px; border-radius: 4px; }
.sample-times .is-selected { background: var(--sample-accent); color: white; }
.sample-steps { list-style: none; counter-reset: sample-step; display: grid; gap: 17px; padding: 0; margin: 20px 0; }
.sample-steps li { counter-increment: sample-step; position: relative; padding-left: 40px; }
.sample-steps li::before { content: counter(sample-step, decimal-leading-zero); position: absolute; left: 0; top: 1px; color: var(--sample-accent); font-size: 12px; font-weight: 600; }
.sample-steps strong { font-size: 15px; }
.sample-steps p { font-size: 14px; margin: 3px 0 0; }
.sample-agenda { display: grid; gap: 8px; margin-top: 24px; }
.sample-agenda > div { display: grid; grid-template-columns: 55px 1fr; gap: 14px; align-items: center; }
.sample-agenda time { font-size: 12px; }
.sample-agenda > div > span { display: flex; justify-content: space-between; align-items: center; gap: 15px; border-left: 3px solid var(--sample-accent); background: var(--sample-soft); padding: 9px 14px; }
.sample-agenda strong { font-size: 13px; }
.sample-agenda small { font-size: 11px; }
.sample-lesson-box { padding: 22px; border: 1px solid #899c8e50; border-radius: 5px; margin-bottom: 20px; }
.sample-lesson-box p { font-family: var(--ff-display); font-size: 23px; line-height: 1.3; margin-top: 12px; }
.sample-lesson-box.is-good { background: var(--sample-soft); border-color: var(--sample-accent); }
.sample .sample-small { font-size: 12px; margin-top: 16px; }
.sample-quiz { display: grid; gap: 10px; margin-block: 22px; }
.sample-quiz :is(button, .sample-quiz-option) { border: 1px solid #899c8e80; border-radius: 5px; text-align: left; padding: 14px 18px; background: #fffefa; color: var(--sample-ink); font: inherit; font-size: 14px; }
.sample-quiz button { cursor: pointer; }
.sample-quiz button:hover, .sample-quiz button[aria-pressed="true"] { border-color: var(--sample-accent); background: var(--sample-soft); }
.sample .sample-feedback { padding: 14px; font-size: 14px; background: #f5eee0; border-radius: 5px; }
.sample .sample-feedback.is-correct { background: var(--sample-soft); }
.sample-social { display: grid; grid-template-columns: 1fr .75fr; min-height: 500px; background: #fffefa; color: #573927; }
.sample-social-art { padding: 28px; display: flex; flex-direction: column; background: #f6e5d1; }
.sample-social-art > p { font-size: 11px; letter-spacing: .16em; }
.sample-social-art h4 { font-size: 37px; margin: 10px 0 0; }
.sample-social-art > div { flex: 1; display: grid; place-items: center; }
.sample-social-art svg { width: 100%; max-width: 255px; height: 230px; }
.sample-social-art > span { font-size: 9px; letter-spacing: .11em; }
.sample-social-copy { padding: 30px; align-self: center; }
.sample-social-copy > strong { display: block; margin-block: 30px 15px; }
.sample-social-copy > p { font-size: 14px; }
.sample-social-copy > small { font-size: 11px; }

/* Seven distinct business-site / app directions. */
.sample-site { --sample-accent: #254a5c; --sample-ink: #1e3446; background: #f3f5f3; }
.sample-site .sample-head { padding: 20px 30px; }
.sample-site-hero { display: grid; grid-template-columns: 1.13fr 1fr; gap: 18px; align-items: center; padding: 25px 30px 22px; }
.sample-site-hero h4 { font-size: 44px; line-height: 1.02; margin: 15px 0 18px; }
.sample-site-hero p { font-size: 14px; max-width: 33ch; }
.sample-site-hero .sample-eyebrow { font-size: 9px; letter-spacing: .13em; font-weight: 600; }
.sample-site-hero .sample-action { margin-top: 3px; }
.sample-art svg { display: block; width: 100%; max-height: 300px; }
.sample-service-strip { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; padding: 20px 30px; border-top: 1px solid #27362d30; }
.sample-service-strip > div { display: grid; gap: 4px; }
.sample-service-strip strong { font-size: 13px; }
.sample-service-strip span { font-size: 11px; }
.site-trades .sample-head { background: #213d51; color: #fff; }
.site-trades .sample-action { background: #f1a56a; color: #213d51; }
.site-trades h4 { font-family: var(--ff-body); font-weight: 700; letter-spacing: -.05em; }
.site-garden { --sample-ink: #31462e; --sample-accent: #3f5839; background: #f0eddf; }
.site-garden .sample-head strong { font-family: var(--ff-display); font-size: 22px; letter-spacing: -.03em; }
.site-garden .sample-service-strip { background: #e1e3d2; }
.site-cafe { --sample-ink: #573927; --sample-accent: #78482f; background: #fbefd8; }
.site-cafe .sample-head strong { font-size: 26px; font-family: var(--ff-display); letter-spacing: -.05em; }
.site-cafe .sample-action { border-radius: 30px; }
.site-cafe .sample-art { order: -1; }
.site-cafe .sample-service-strip { border-top: 1px dashed #78482f80; }
.site-salon { --sample-ink: #633f38; --sample-accent: #784c44; background: #f7ece6; }
.site-salon .sample-head strong { letter-spacing: .2em; font-size: 13px; }
.site-salon h4 { font-style: italic; font-weight: 400; }
.site-salon .sample-action { background: transparent; border: 1px solid #784c44; color: #633f38; border-radius: 0; }
.site-accounting { --sample-ink: #284a3e; --sample-accent: #2a5447; background: #f1f3ea; }
.site-accounting .sample-head strong { letter-spacing: .12em; }
.site-accounting h4 { font-size: 40px; }
.site-accounting .sample-service-strip { background: #294e42; color: #fcfaf0; }
.site-pet { --sample-ink: #443a36; --sample-accent: #42637b; background: #fbf5e8; }
.site-pet .sample-head strong { font-weight: 800; letter-spacing: -.02em; font-size: 19px; }
.site-pet h4 { font-family: var(--ff-body); font-weight: 700; letter-spacing: -.05em; font-size: 39px; }
.site-pet .sample-action { border-radius: 28px; }
.site-pet .sample-service-strip { background: #e3eaf0; }

@media (max-width: 640px) {
  .example-dialog { width: calc(100vw - 16px); max-height: calc(100dvh - 16px); border-radius: 8px; }
  .example-dialog-head { padding: 1rem; align-items: start; gap: .7rem; }
  .example-dialog-head .kicker { font-size: .55rem; }
  .example-close { font-size: 0; padding: .5rem .7rem; gap: 0; }
  .example-dialog-scroll { padding: 1rem; }
  .example-gallery-note { font-size: .8rem; }
  .example-choices { gap: .4rem; }
  .example-choices button { font-size: .75rem; padding: .5rem .65rem; }
  .example-caption h3 { font-size: 1.25rem; }
  .example-stage .sample-head { padding: 15px 18px; flex-wrap: wrap; gap: 6px 16px; }
  .example-stage .sample-head > span { font-size: 11px; }
  .example-stage .sample-body { padding: 20px 18px; }
  .example-stage .sample h4 { font-size: 28px; }
  .example-stage .sample p { font-size: 14px; }
  .example-stage .sample-two { grid-template-columns: 1fr; gap: 12px; }
  .example-stage .sample-line { flex-direction: column; gap: 3px; font-size: 13px; }
  .example-stage .sample-line > strong { text-align: left; }
  .example-stage .sample-message { max-width: 94%; }
  .example-stage .sample-agenda > div { grid-template-columns: 37px 1fr; gap: 8px; }
  .example-stage .sample-agenda > div > span { flex-direction: column; align-items: start; gap: 2px; padding: 9px 10px; }
  .example-stage .sample-lesson-box { margin-bottom: 3px; padding: 16px; }
  .example-stage .sample-lesson-box p { font-size: 21px; }
  .example-stage .sample-note { margin-top: 12px; }
  .example-stage .sample-social { grid-template-columns: 1fr; }
  .example-stage .sample-social-art { padding: 24px; }
  .example-stage .sample-social-art h4 { font-size: 36px; }
  .example-stage .sample-social-copy { padding: 22px; }
  .example-stage .sample-site-hero { grid-template-columns: 1fr; gap: 14px; padding: 24px 20px; }
  .example-stage .sample-site-hero h4 { font-size: 38px; }
  .example-stage .sample-art svg { max-height: 225px; }
  .example-stage .site-cafe .sample-art { order: 0; }
  .example-stage .sample-service-strip { grid-template-columns: 1fr; padding: 20px; gap: 16px; }
}
@keyframes example-appear { from { opacity: 0; } to { opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .example-cover > * { animation: none; } }
