.case-study-fiti, .case-study-fiti * { font-family: var(--font-sans); letter-spacing: 0; }
.case-study-fiti { margin: 0; }
.case-study-fiti header .container, .case-study-fiti footer .container { width: min(1120px, calc(100% - 48px)); max-width: none; }
.fiti-home { text-decoration: none; }
.case-study-fiti header .logo { display: block; }
.fiti-page { width: min(1000px, calc(100% - 64px)); margin: 0 auto; }
.fiti-page p, .fiti-page li { font-size: 16px; line-height: 1.65; font-weight: 400; }
.fiti-page p + p { margin-top: 16px; }
.fiti-intro { padding: 64px 0 48px; }
.fiti-page .fiti-eyebrow { font-size: 14px; font-weight: 500; margin-bottom: 24px; }
.fiti-intro h1 { font-size: 56px; line-height: 1.1; font-weight: 600; max-width: 800px; margin: 0 0 24px; }
.fiti-lead { max-width: 680px; }
.fiti-row { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 48px; margin: 32px 0; }
.fiti-page h2 { font-size: 18px; line-height: 1.4; font-weight: 500; margin: 0; }
.fiti-media { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; gap: 64px; padding: 32px 64px; margin: 16px 0 48px; background: var(--portfolio-peach-dark); }
.fiti-media figure { margin: 0; min-width: 0; }
.fiti-page img { display: block; width: 100%; height: auto; max-width: 393px; margin: 0 auto; }
.fiti-page figcaption { font-size: 14px; font-weight: 400; line-height: 1.5; margin-top: 16px; }
.fiti-overview { gap: 32px; }
.fiti-screen-preview { max-height: 560px; overflow-y: auto; border-radius: 8px; scrollbar-width: thin; scrollbar-color: #819b8a #eaefe9; }
.fiti-media figure > img { border-radius: 8px; }
.fiti-screen-preview:focus-visible { outline: 2px solid var(--portfolio-blue); outline-offset: 4px; }
.fiti-overview .fiti-screen-preview img { width: 100%; max-width: none; margin: 0; }
.fiti-overview figcaption a { display: block; margin-top: 8px; width: fit-content; }
.fiti-before { align-items: start; gap: 32px; margin-top: 48px; }
.fiti-before figure { width: 100%; max-width: 361px; margin: 0 auto; }
.fiti-before-context { position: relative; overflow: hidden; border-radius: 8px; }
.fiti-before-context img { width: 100%; }
.fiti-card-highlight { position: absolute; top: 78.88%; left: 4.07%; width: 91.86%; height: 11.62%; border: 2px solid var(--portfolio-blue); border-radius: 8px; pointer-events: none; }
.fiti-notes h2 { margin-bottom: 16px; }
.fiti-notes ul { padding-left: 20px; margin-top: 0; }
.fiti-notes li + li { margin-top: 12px; }
.fiti-page .fiti-statement { margin: 64px 0 48px; max-width: 760px; }
.fiti-page .fiti-statement h2 { font-size: 36px; line-height: 1.2; font-weight: 500; margin-bottom: 24px; }
.fiti-detail { margin-top: 32px; }
.fiti-detail > figure:nth-child(2) { padding-top: 64px; }
.fiti-sequence { margin: 32px 0 48px; }
.fiti-sequence ol { list-style: none; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; padding: 24px 0; border-block: 1px solid currentColor; }
.fiti-sequence li span { display: block; font-size: 14px; margin-bottom: 8px; }
.fiti-end { margin: 48px 0 64px; }
.case-study-fiti footer { margin: 0; padding: 24px 0; }
.fiti-prototype-section { margin: 48px 0; padding: 32px 0; border-block: 1px solid rgba(34,80,231,.2); }
.fiti-prototype-heading { display: flex; align-items: center; justify-content: space-between; margin-bottom: 24px; }
#fiti-reset { border: 1px solid currentColor; background: transparent; color: inherit; width: 44px; height: 44px; font-size: 26px; cursor: pointer; border-radius: 50%; }
.fiti-state-label { display: flex; align-items: baseline; gap: 12px; margin-bottom: 16px; font-size: 24px; line-height: 32px; font-weight: 600; text-transform: uppercase; }
.fiti-state-label > span { font-size: 13px; line-height: 20px; font-weight: 400; text-transform: none; }
.fiti-state-label--before { color: #702f2c; }
.fiti-prototype-heading h2 { margin-top: 8px; }
.fiti-iphone { width: min(100%, 340px); margin: auto; padding: 8px; border: 2px solid #737373; border-radius: 48px; background: #161616; box-shadow: 0 0 0 2px #333, 0 20px 48px #0003; position: relative; }
.fiti-iphone::before { content: ''; position: absolute; width: 3px; height: 72px; top: 160px; left: -5px; border-radius: 3px; background: #555; }
.fiti-iphone::after { content: ''; position: absolute; width: 3px; height: 56px; top: 185px; right: -5px; border-radius: 3px; background: #555; }
.fiti-iphone-screen { position: relative; width: 100%; aspect-ratio: 393 / 852; overflow: hidden; border-radius: 38px; background: #f5fbf5; }
.fiti-app { --app-primary: #226a4c; --app-surface: #f5fbf5; --app-panel: #eaefe9; --app-inset: #dee4de; width: 393px; height: 852px; position: absolute; inset: 0; transform: scale(var(--device-scale, 1)); transform-origin: top left; display: flex; flex-direction: column; overflow: hidden; background: var(--app-surface); color: #171d19; text-align: left; }
.fiti-app *, .fiti-app button { font-family: 'Roboto', Arial, sans-serif; }
.fiti-app [hidden] { display: none !important; }
.fiti-app p, .fiti-app li { margin: 0; }
.fiti-app button { cursor: pointer; border: 0; color: inherit; }
.fiti-app button:disabled { cursor: default; }
.fiti-app button:focus-visible, .fiti-app summary:focus-visible { outline: 2px solid #2250e7; outline-offset: 2px; }
.fiti-app .app-icon { display: inline-block; width: 22px; height: 22px; margin: 0; object-fit: contain; flex-shrink: 0; }
.app-status { display: flex; justify-content: space-between; align-items: center; height: 48px; flex: 0 0 48px; padding: 0 28px 0 32px; font-size: 14px; font-weight: 500; }
.app-status-icons { font-size: 11px; }
.app-island { position: absolute; width: 108px; height: 29px; left: 50%; transform: translateX(-50%); top: 10px; background: #111; border-radius: 24px; z-index: 5; }
.app-home-indicator { position: absolute; width: 128px; height: 5px; bottom: 8px; left: 50%; transform: translateX(-50%); border-radius: 5px; background: #171d19; pointer-events: none; z-index: 5; }
.app-list-view { flex: 1; min-height: 0; display: flex; flex-direction: column; }
.app-topbar { display: flex; align-items: center; gap: 0; min-height: 64px; flex-shrink: 0; font-size: 24px; line-height: 36px; }
.app-topbar > .app-icon { margin: 0 19px 0 15px; }
.app-scroll { overflow-y: auto; min-height: 0; flex: 1; padding: 0 16px 16px; overscroll-behavior: contain; scrollbar-width: none; }
.app-scroll::-webkit-scrollbar, .app-detail-view::-webkit-scrollbar { display: none; }
.app-workout { height: 48px; display: flex; align-items: center; justify-content: space-between; padding: 0 16px; background: #cfe9d8; border-radius: 10px; font-size: 18px; line-height: 27px; font-weight: 600; margin-bottom: 10px; }
.app-workout > span { font-size: 28px; }
.app-combined, .app-regular { background: var(--app-panel); border-radius: 12px; margin-bottom: 10px; }
.fiti-app summary { display: flex; align-items: center; list-style: none; cursor: pointer; }
.fiti-app summary::-webkit-details-marker { display: none; }
.app-combined > summary { height: 74px; padding: 12px 0 8px 12px; gap: 6px; }
.app-toggle { display: grid; place-items: center; width: 44px; height: 44px; margin-left: auto; flex-shrink: 0; }
.app-toggle .app-icon { width: 18px; height: 12px; }
.app-combined[open] .app-toggle { transform: rotate(180deg); }
.app-stack { position: relative; width: 56px; height: 54px; margin-right: 4px; flex-shrink: 0; }
.fiti-app .app-thumb { display: block; width: 52px; height: 52px; object-fit: cover; border-radius: 8px; margin: 0; flex-shrink: 0; }
.app-stack .app-thumb { position: absolute; width: 46px; height: 46px; border: 2px solid var(--app-panel); }
.app-stack .app-thumb:first-child { left: 10px; top: 10px; opacity: .65; }
.app-chip { display: inline-flex; align-items: center; justify-content: center; border-radius: 20px; padding: 0 12px; height: 32px; background: #aaf2cc; color: #002114; font-size: 14px; line-height: 21px; font-weight: 600; white-space: nowrap; }
.app-count { display: flex; align-items: center; gap: 6px; border: 2px solid var(--app-primary); border-radius: 20px; height: 31px; padding: 0 10px; font-size: 14px; line-height: 21px; color: var(--app-primary); font-weight: 600; white-space: nowrap; }
.app-count .app-icon { width: 16px; height: 9px; }
.app-expanded { padding: 0 10px 10px; display: flex; flex-direction: column; gap: 10px; }
.fiti-app .app-method { background: var(--app-inset); padding: 6px 12px; border-radius: 8px; font-size: 12px; line-height: 16px; color: #4d6357; }
.app-method strong { color: #002114; font-weight: 500; }
.app-sets { display: flex; align-items: center; justify-content: space-between; height: 48px; padding: 4px 16px; gap: 8px; }
.app-sets button, .app-bottom button { background: var(--app-primary); color: white; padding: 10px 14px; height: 40px; border-radius: 100px; font-size: 14px; line-height: 20px; font-weight: 500; }
.app-sets button:disabled { opacity: .7; }
.app-set { display: grid; place-items: center; width: 40px; height: 40px; background: white; color: #171d19; opacity: .3; border-radius: 50%; font-size: 16px; }
.app-set.is-done { background: var(--app-primary); color: white; opacity: 1; }
.fiti-app .app-movements { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; }
.app-movements > li { display: grid; grid-template-columns: 28px minmax(0,1fr); gap: 10px; position: relative; }
.app-movements > li:not(:last-child)::before { content: ''; position: absolute; left: 13px; width: 2px; background: #c5d7c9; top: 28px; bottom: -14px; }
.app-link { width: 28px; height: 28px; display: grid; place-items: center; background: var(--app-primary); border-radius: 50%; margin-top: 4px; z-index: 1; }
.app-link .app-icon { width: 16px; height: 9px; filter: brightness(0) invert(1); }
.app-movement { padding: 12px 14px; border-radius: 10px; background: var(--app-inset); }
.app-media-trigger { display: flex; width: 100%; min-height: 52px; gap: 14px; align-items: center; background: none; text-align: left; padding: 0; font-size: 17px; line-height: 22.1px; font-weight: 600; }
.app-stats { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 8px; margin-top: 10px; }
.app-stats > div { display: flex; align-items: flex-start; gap: 8px; background: var(--app-panel); border-radius: 10px; padding: 8px 10px; min-height: 59px; }
.app-stat-icon { display: grid; place-items: center; background: var(--app-inset); border-radius: 50%; width: 28px; height: 28px; flex-shrink: 0; }
.app-stat-icon .app-icon { width: 18px; height: 18px; opacity: .65; }
.app-stats > div > div { flex: 1; min-width: 0; text-align: center; }
.app-stats dt { font-size: 12px; font-weight: 400; color: #4d6357; line-height: 16px; }
.app-stats dd { font-size: 18px; line-height: 27px; font-weight: 600; margin: 0; }
.fiti-app .app-rest { padding: 16px 12px; background: var(--app-inset); color: #4d6357; font-size: 14px; line-height: 20px; border-radius: 8px; }
.app-rest strong { font-size: 16px; color: #171d19; }
.app-observation { padding: 16px 8px; min-height: 80px; background: var(--app-inset); border-radius: 8px; font-size: 14px; line-height: 20px; }
.fiti-app .app-observation p { font-size: 14px; line-height: 20px; margin-top: 8px; }
.app-finish { background: #cfe9d8; height: 40px; border-radius: 100px; font-size: 14px; font-weight: 500; }
.app-actions { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 8px; }
.app-actions button { height: 78px; display: flex; flex-direction: column; align-items: center; justify-content: space-between; padding: 11px 4px 4px; border-radius: 8px; background: var(--app-inset); font-size: 12px; line-height: 16px; }
.app-actions button:disabled { opacity: .5; }
.app-actions span { min-height: 32px; }
.app-feedback:empty { display: none; }
.fiti-app .app-feedback { font-size: 12px; line-height: 18px; color: var(--app-primary); }
.app-regular { padding: 12px; display: flex; align-items: center; gap: 12px; font-size: 16px; line-height: 22px; font-weight: 600; min-height: 76px; }
.app-regular > div { flex: 1; }
.app-regular > div > span:last-child { display: block; }
.app-regular > .app-icon { width: 18px; height: 12px; }
.app-progressive { height: 24px; padding: 0 10px; font-size: 12px; margin-bottom: 4px; }
.app-bottom { padding: 14px 18px 28px; background: var(--app-inset); flex-shrink: 0; }
.app-bottom button { width: 100%; }
.app-detail-view { position: absolute; inset: 48px 0 24px; background: var(--app-surface); overflow-y: auto; scrollbar-width: none; overscroll-behavior: contain; }
.app-dialog-bar { display: flex; align-items: center; gap: 4px; height: 64px; font-size: 22px; position: sticky; top: 0; background: var(--app-surface); z-index: 1; }
.app-dialog-bar button { background: none; padding: 12px; min-width: 48px; min-height: 48px; }
.app-demo-content { padding: 11px 16px 24px; display: flex; flex-direction: column; gap: 16px; }
.fiti-app .app-demo-photo { width: 361px; height: 210px; object-fit: cover; border-radius: 8px; }
.app-demo-content h3 { font-size: 22px; font-weight: 400; line-height: 28px; min-height: 56px; display: flex; align-items: center; margin: 0; }
.app-instructions { background: var(--app-panel); border-radius: 8px; padding: 16px; min-height: 162px; font-size: 14px; line-height: 20px; }
.fiti-app .app-instructions p { font-size: 14px; line-height: 20px; margin-top: 8px; }
.app-muscles { padding: 16px 8px; border-radius: 8px; background: var(--app-panel); }
.app-muscles summary { display: flex; justify-content: space-between; font-size: 16px; line-height: 24px; font-weight: 500; }
.app-muscles[open] summary > span { transform: rotate(180deg); }
.app-muscle-illustration { padding: 40px 0; display: flex; justify-content: center; }
.fiti-app .app-muscle-illustration img { width: 236.044px; height: 269.795px; max-width: none; margin: 0; }
.app-muscle-chips { display: flex; gap: 8px; }
.app-muscle-chips span { display: grid; place-items: center; width: 81px; height: 32px; background: #cfe9d8; border-radius: 8px; font-size: 14px; font-weight: 500; }
.app-demo-nav { display: flex; align-items: center; justify-content: space-between; font-size: 14px; }
.app-demo-nav button { width: 44px; height: 44px; border-radius: 50%; background: #cfe9d8; color: var(--app-primary); font-size: 24px; }
.app-demo-nav button:disabled { opacity: .3; }
@media (max-width: 760px) {
  .fiti-row { grid-template-columns: 1fr; gap: 16px; }
  .fiti-media { padding: 24px; gap: 24px; }
  .fiti-intro h1 { font-size: 40px; }
  .fiti-page .fiti-statement h2 { font-size: 36px; }
  .fiti-before { grid-template-columns: 1fr; }
  .fiti-before figure { width: 100%; max-width: 361px; margin: auto; }
  .case-study-fiti header .container { flex-wrap: wrap; gap: 16px; }
}
@media (max-width: 520px) {
  .fiti-page { width: calc(100% - 40px); }
  .fiti-intro { padding-top: 40px; }
  .fiti-intro h1 { font-size: 36px; }
  .fiti-media { grid-template-columns: 1fr; gap: 32px; padding: 20px; }
  .fiti-screen-preview { max-height: 440px; }
  .fiti-detail > figure:nth-child(2) { padding-top: 0; }
  .fiti-sequence ol { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .fiti-page .fiti-statement { margin-top: 48px; }
  .case-study-fiti .nav-links { gap: 20px; flex-wrap: wrap; }
  .case-study-fiti header .logo { font-size: 28px; }
}
