/* Existing site typography and palette also apply to these feature previews. */
.feature-section { padding-bottom: 76px; }
.feature-grid { grid-template-rows: minmax(270px, auto) minmax(270px, auto); }
.feature-crop { grid-template-rows: minmax(340px, 1fr) auto; }
.feature-crop .visual-crop { min-height: 340px; padding: 19px 22px; display: grid; align-content: center; justify-items: center; gap: 11px; background: #edf3fc; }
.crop-demo-toolbar { width: min(100%, 340px); display: flex; justify-content: space-between; align-items: center; color: #61738f; font-size: 10px; }
.crop-demo-toolbar > span { display: inline-flex; align-items: center; gap: 7px; }
.crop-demo-toolbar svg { width: 18px; height: 18px; fill: none; stroke: var(--blue); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.crop-demo-toolbar output { padding: 3px 8px; border-radius: 5px; background: #fff; color: var(--blue); font-variant-numeric: tabular-nums; }
.crop-demo-stage { position: relative; width: min(100%, 340px); aspect-ratio: 3 / 2; overflow: hidden; border-radius: 9px; background: repeating-conic-gradient(#e5ebf4 0 25%, #fff 0 50%) 50% / 14px 14px; }
.crop-demo-stage img { display: block; width: 100%; height: 100%; object-fit: contain; pointer-events: none; user-select: none; }
.crop-demo-frame { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); width: 55%; aspect-ratio: 1; border: 2px solid var(--blue); box-shadow: 0 0 0 500px rgba(23, 43, 76, .31); pointer-events: none; }
.crop-demo-frame::before { content: ""; position: absolute; inset: 0; background: linear-gradient(to right, transparent 33%, rgba(255,255,255,.66) 33%, rgba(255,255,255,.66) 33.6%, transparent 33.6%, transparent 66%, rgba(255,255,255,.66) 66%, rgba(255,255,255,.66) 66.6%, transparent 66.6%), linear-gradient(to bottom, transparent 33%, rgba(255,255,255,.66) 33%, rgba(255,255,255,.66) 33.6%, transparent 33.6%, transparent 66%, rgba(255,255,255,.66) 66%, rgba(255,255,255,.66) 66.6%, transparent 66.6%); }
.crop-corner { position: absolute; width: 13px; height: 13px; border: 3px solid white; filter: drop-shadow(0 1px 2px rgba(25,46,88,.3)); }
.crop-corner-tl { top: -3px; left: -3px; border-right: 0; border-bottom: 0; }.crop-corner-tr { top: -3px; right: -3px; border-left: 0; border-bottom: 0; }.crop-corner-bl { bottom: -3px; left: -3px; border-right: 0; border-top: 0; }.crop-corner-br { bottom: -3px; right: -3px; border-left: 0; border-top: 0; }
.crop-demo-ratios { display: flex; gap: 6px; flex-wrap: wrap; justify-content: center; }
.crop-demo-ratios button { min-height: 29px; padding: 4px 11px; background: transparent; border: 1px solid #d4deed; border-radius: 6px; color: #6b7b94; cursor: pointer; font-size: 11px; }
.crop-demo-ratios button[aria-pressed="true"] { background: white; border-color: var(--blue); color: var(--blue); font-weight: 650; }
.feature .crop-demo-hint { max-width: 340px; margin: 0; text-align: center; font-size: 9px; line-height: 1.6; }
.crop-feature-label { display: inline-block; margin-bottom: 8px; font-size: 10px; color: var(--blue); font-weight: 650; }
.feature-crop .crop-quota-note { margin-top: 11px; color: #3e998b; }

.modes-section { padding-bottom: 112px; }
.modes-heading { margin-bottom: 29px; }
.mode-choices { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; }
.mode-choice { display: grid; justify-items: center; align-content: center; gap: 10px; min-height: 100px; padding: 15px 8px; border: 0; border-bottom: 2px solid #dce4ef; background: transparent; color: #71819b; cursor: pointer; font-size: 12px; line-height: 1.6; }
.mode-choice svg { width: 32px; height: 32px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.mode-choice[aria-pressed="true"] { color: var(--blue); border-bottom-color: var(--blue); background: #edf2ff; }
.mode-choice:hover { color: var(--blue); }
.mode-detail { margin-top: 18px; padding: 32px 38px; display: grid; grid-template-columns: 160px 1fr; gap: 35px; align-items: center; min-height: 245px; border: 1px solid var(--line); border-radius: 16px; background: white; }
.mode-detail-visual { display: grid; place-items: center; width: 150px; height: 150px; background: #eff3ff; border-radius: 50%; color: var(--blue); }
.mode-detail-visual svg { width: 90px; height: 90px; fill: none; stroke: currentColor; stroke-width: 1.3; stroke-linecap: round; stroke-linejoin: round; }
.mode-detail-visual[data-scene="portrait"], .mode-detail-visual[data-scene="clothing"] { background: #eaf7f3; color: #379f94; }
.mode-detail-visual[data-scene="anime"] { background: #f2edfb; color: #8b70bd; }
.mode-detail-visual[data-scene="fast"] { background: #fff4df; color: #bd8e34; }
.mode-detail-label { color: #8492a7; font-size: 10px; }
.mode-detail h3 { margin: 8px 0 9px; color: var(--ink-strong); font-size: 20px; line-height: 1.5; letter-spacing: -.025em; }
.mode-detail p { margin: 0; color: #71809a; font-size: 12px; line-height: 1.85; }
.mode-detail .mode-detail-best { margin-top: 13px; color: #4e6ea7; font-weight: 600; }
.mode-detail .mode-detail-tip { margin-top: 13px; padding-top: 12px; border-top: 1px solid #e9eef5; font-size: 11px; color: #8390a4; }

@media (max-width: 980px) {
  .mode-choice { font-size: 11px; }
  .mode-detail { padding: 27px; gap: 24px; grid-template-columns: 125px 1fr; }
  .mode-detail-visual { width: 120px; height: 120px; }.mode-detail-visual svg { width: 74px; height: 74px; }
}
@media (max-width: 680px) {
  .feature-section { padding-bottom: 54px; }
  .feature-crop { grid-template-rows: minmax(330px, auto) auto; }
  .feature-crop .visual-crop { min-height: 330px; padding: 17px 19px; }
  .crop-demo-stage, .crop-demo-toolbar { width: min(100%, 300px); }
  .crop-demo-ratios { gap: 5px; }.crop-demo-ratios button { padding-inline: 9px; }
  .modes-section { padding-bottom: 76px; }
  .mode-choices { grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 8px; }
  .mode-choice { grid-column: span 2; min-height: 100px; padding-inline: 6px; }
  .mode-choice:nth-child(n + 4) { grid-column: span 3; }
  .mode-detail { grid-template-columns: 1fr; padding: 23px; min-height: 285px; }
  .mode-detail-visual { display: none; }
  .mode-detail h3 { font-size: 19px; }.mode-detail p { font-size: 12px; }
}
