/* BRIEF-36: all layout changes apply only to phone widths. */
@media (max-width: 640px) {
  #main > section:not(#top) {
    padding-block: 28px;
    scroll-margin-top: 80px;
  }
  #main > section:not(#top) :is(.v31-heading, .section-heading, .b24-crawlers-heading) {
    margin-bottom: 24px;
  }
  #main > section:not(#top) h2,
  #main #products .fn-heading h2 {
    font-size: 28px;
    line-height: 1.3;
    text-wrap: pretty;
  }
  #main > section:not(#top) :is(.v31-heading, .section-heading, .b24-crawlers-heading) > p:not(.eyebrow):not(.b24-crawlers-eyebrow) {
    margin-top: 12px;
    font-size: 15px;
    line-height: 1.6;
  }
  #main :is(button, summary, .s14-text-link, .v31-results-link, .db-link),
  .v6-nav :is(button, .h6-nav-cta) {
    min-height: 44px;
  }
  .v6-nav :is(.h6-nav-brand, .h6-nav-cta, .h6-menu-toggle) { min-height: 44px; font-size: 15px; }
  #main :is(button, summary) { font-size: 15px; }
  #main :is(.v31-results-link, .db-link) { display: inline-flex; align-items: center; }

  /* Each row keeps the next card visible inside the page's content edges. */
  #difference.d2 .d2-grid,
  #products .fn-steps,
  #results.r32 .r32-board,
  #reviews .v6-review-rows,
  #services .platform-panel:not([hidden]),
  #sample .ps-board,
  #press #press-track.press-grid,
  #diagnosis-offers .dx-grid {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scroll-snap-type: x mandatory;
    scroll-padding-inline: 0;
    scrollbar-width: thin;
    scrollbar-color: #b8aaa0 transparent;
    padding-bottom: 12px;
    align-items: stretch;
    min-width: 0;
    max-width: 100%;
  }
  #difference.d2 .d2-card,
  #products .fn-step,
  #results.r32 .r32-item,
  #reviews .v6-review-card,
  #services .platform-card,
  #sample :is(.ps-cover, .ps-page),
  #press .press-card,
  #diagnosis-offers .dx-grid > a {
    flex: 0 0 88%;
    min-width: 0;
    scroll-snap-align: start;
    scroll-snap-stop: normal;
  }
  #main :is(.d2-card, .fn-step, .r32-dashboard, .r32-item, .platform-card, .ps-board, .ps-page, .dx-main, .dx-sub) {
    border-radius: 8px;
    box-shadow: none;
  }

  #top.v6-hero { min-height: 620px; height: min(760px, 100svh); }
  #top .h6-content { padding-top: 132px; }
  #top .h7-eyebrow { font-size: 15px; }
  #top .h6-title.h7-title { font-size: 27px; }
  #top .h6-scene-thumb { width: 84px; height: 56px; }
  #top .h6-thumb-label { font-size: 15px; padding-bottom: 5px; }
  #top .h6-film-control { width: 44px; min-height: 44px; }

  #main > .pf-strip { padding-block: 24px; }
  .pf-strip .pf-inner { gap: 20px 12px; }
  .pf-strip strong { font-size: 18px; line-height: 1.35; }
  .pf-strip span { font-size: 15px; line-height: 1.5; margin-top: 6px; }
  #main #way.way-section { width: 100%; max-width: none; padding-block: 28px; }
  #way .way-copy > p:not(.eyebrow) { display: none; }

  #crawlers .cw3-flow { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  #crawlers .cw3-row { grid-template-columns: 1fr; gap: 10px; padding: 16px 12px; border-radius: 8px; }
  #crawlers .cw3-logo { grid-row: auto; min-height: 28px; }
  #crawlers .cw3-row .cw3-badge { grid-column: auto; margin-top: auto; }
  #crawlers .cw3-text h3 { font-size: 17px; }
  #crawlers :is(.b24-crawler-detail, .cw3-text .b24-crawler-detail, .cw3-badge) { font-size: 15px; line-height: 1.5; }
  #crawlers .cw3-badge { padding: 0; background: none; }
  #crawlers .cw3-open { padding: 20px 16px; margin-top: 0; border-radius: 8px; box-shadow: none; }
  #crawlers .cw3-open h3 { font-size: 20px; margin-top: 12px; }
  #crawlers .cw3-bots { margin-top: 16px; padding-top: 16px; gap: 12px; }
  #crawlers .cw3-bots li { min-width: 0; }

  #difference.d2 .d2-card,
  #difference.d2 .d2-card.big,
  #difference.d2 .d2-card:first-child {
    display: flex; grid-row: auto; grid-column: auto; padding: 20px 16px; border-radius: 8px;
  }
  #difference.d2 .d2-card h3,
  #difference.d2 .d2-card:first-child h3 { font-size: 21px; line-height: 1.4; }
  #difference.d2 .d2-card > p:not([class]) { font-size: 15px; margin: 12px 0 16px; }
  #difference.d2 .d2-vis,
  #difference.d2 .d2-card.big .d2-vis,
  #difference.d2 .d2-card:first-child .d2-vis { height: 190px; min-height: 0; padding-top: 0; }
  #difference.d2 .v3-chat { gap: 10px; }
  #difference.d2 .v3-chat :is(.q, .a) { padding: 12px; font-size: 15px; line-height: 1.5; box-shadow: none; }
  #difference.d2 .v3-chat .chip { font-size: 15px; padding: 4px 0; background: none; }
  #difference.d2 :is(.v3-site, .v3-doc) { box-shadow: none; }
  #difference.d2 :is(.v3-talk p, .v3-steps span, .v3-doc p) { font-size: 15px; }

  #products .fn-layout { display: block; }
  #products .fn-heading { margin-bottom: 24px; }
  #products .fn-step, #products .fn-step[hidden] { padding: 16px; }
  #products .fn-shot,
  #products .fn-shot:has(.fm-search) { height: 180px; min-height: 0; aspect-ratio: auto; box-shadow: none; }
  #products .fm-search { min-height: 0; height: 180px; padding: 12px; gap: 6px; }
  #products :is(.fm-bar, .fm-row) { padding: 5px 8px; font-size: 15px; }
  #products .fm-logos { gap: 8px; }
  #products .fm-logos img { width: 18px; height: 18px; }
  #products .fm-flow { padding: 14px; gap: 10px; }
  #products .fm-cap, #products .fm-line, #products .fm-chip { font-size: 15px; }
  #products .fm-line { grid-template-columns: 120px 1fr; }
  #products .fn-num { font-size: 15px; margin-top: 16px; }
  #products .fn-step h3 { font-size: 22px; }
  #products .fn-desc { font-size: 15px; line-height: 1.6; margin-top: 10px; }

  #results .r32-dashboard { padding: 16px; }
  #results.r32 .r32-hero { gap: 10px; margin-bottom: 16px; padding-bottom: 16px; }
  #results.r32 .r32-hero-label { font-size: 16px; }
  #results.r32 .r32-hero-src { font-size: 15px; line-height: 1.5; }
  #results.r32 .r32-item, #results.r32 .r32-item:first-child { flex-basis: 92%; padding: 16px; grid-row: auto; border-radius: 8px; }
  #results.r32 .r32-item .r32-chart-wrap,
  #results.r32 .r32-item:first-child .r32-chart-wrap { margin-top: 20px; padding-top: 0; }
  #results.r32 .r32-item .r32-chart,
  #results.r32 .r32-item:first-child .r32-chart { height: 60px; }
  #results.r32 .r32-item .r32-value strong { font-size: 40px; }
  #results.r32 :is(.r32-clinic b, .r32-clinic span, .r32-before, .r32-chg, .r32-src, .r32-axis) { font-size: 15px; line-height: 1.5; }
  #results.r32 .r32-metric { font-size: 17px; }
  #results.r32 .r32-delta { font-size: 15px; }
  #results.r32 .r32-axis { gap: 12px; }
  #results .v31-results-footer { margin-top: 12px; }

  #main #reviews .v6-reviews-head { margin-bottom: 24px; }
  #reviews .v6-reviews-sub { font-size: 15px; margin-top: 6px; }
  #reviews .v6-review-card { width: auto !important; padding-bottom: 18px !important; border-radius: 8px !important; }
  #reviews .rv-shot { height: 140px; min-height: 140px; margin-bottom: 16px; }
  #reviews .rv-shot img { width: 100%; height: 100%; object-fit: contain; }
  #reviews .v6-review-card blockquote { margin-inline: 16px !important; font-size: 15px !important; line-height: 1.65 !important; }
  #reviews .v6-review-card .v6-review-context { margin: 14px 16px 0 !important; font-size: 15px; }
  #reviews .v6-reviews-foot { margin-top: 16px; font-size: 15px; }
  #reviews .v6-reviews-foot .v6-mono { font-size: 15px; }

  #services .platform-tabs { gap: 28px; margin-bottom: 20px; }
  #services .platform-tabs button { min-width: 44px; min-height: 44px; padding-bottom: 12px; font-size: 16px; }
  #services .platform-panel[hidden] { display: none; }
  #services .platform-card { grid-column: auto; border-radius: 8px; }
  #services .platform-card .platform-card-link,
  #services .platform-card:first-child .platform-card-link,
  #services #panel-build .platform-card-link {
    display: flex; flex-direction: column; padding: 20px 16px; gap: 16px; min-height: 0;
  }
  #services .platform-card-copy h3, #services .platform-card:first-child h3 { font-size: 23px; margin-top: 8px; }
  #services .platform-card-copy > p { font-size: 15px; line-height: 1.6; }
  #services .platform-card-copy > p br { display: none; }
  #services .product-name { font-size: 15px; }
  #services .platform-card-copy > .tool-delivery { padding-top: 10px; margin-top: 12px; font-size: 15px; }
  #services .tool-preview { min-height: 0; border-radius: 6px; box-shadow: none; }
  #services .tool-shot { display: flex; flex-direction: column; height: 200px; overflow: hidden; }
  #services .tool-shot .shot-bar { flex: 0 0 24px; }
  #services .tool-shot img, #services #card-location .tool-shot img { flex: 1; min-height: 0; width: 100%; height: 0; object-fit: contain; border-radius: 0; }
  #services .visit-preview { min-height: 0; }
  #services :is(.tool-radar, .tool-position, .tool-column, .tool-report, .visit-preview) { padding: 12px; }
  #services :is(.tool-bar, .tool-query, .tool-data-row, .tool-search, .tool-result-head) { font-size: 15px; }
  #services .tool-data-row { gap: 6px; }

  #sample.ps-section > .wrap { display: flex; flex-direction: column; gap: 16px; }
  #sample .ps-heading { margin-bottom: 0; }
  #sample .ps-heading p { margin-top: 12px; font-size: 15px; }
  #sample .ps-board { width: 100%; padding: 0 0 12px; border: 0; border-radius: 0; background: none; box-shadow: none; }
  #sample .ps-grid { display: contents; }
  #sample .ps-cover { align-self: stretch; border-radius: 6px; }
  #sample :is(.ps-cover img, .ps-page img) { width: 100%; height: 165px; aspect-ratio: auto; object-fit: contain; }
  #sample .ps-cover-tag { font-size: 15px; }
  #sample .ps-page figcaption { font-size: 15px; padding: 12px; }
  #sample .ps-tags { width: 100%; margin-top: 0; }
  #sample .ps-tags li { padding: 8px 0; font-size: 15px; }
  #sample .ps-note { font-size: 15px; }
  #sample .s14-actions { width: 100%; gap: 4px; }
  #sample .s14-button { width: 100%; font-size: 15px; padding: 12px; }
  #sample .s14-text-link { font-size: 15px; }

  #team .t2-founders { grid-template-columns: 1fr; gap: 20px; padding-bottom: 24px; }
  #team .t2-person { display: grid; grid-template-columns: 80px minmax(0, 1fr); gap: 0 16px; align-items: start; }
  #team .t2-photo { grid-column: 1; grid-row: 1 / 3; width: 80px; height: 80px; aspect-ratio: 1; border-radius: 6px; }
  #team .t2-photo img { object-fit: cover; object-position: center 20%; }
  #team .t2-body { display: contents; }
  #team .t2-person .t2-field, #team .t2-person h3 span { display: none; }
  #team .t2-person h3 { grid-column: 2; font-size: 22px; align-self: end; }
  #team .t2-person .t2-role { grid-column: 2; margin-top: 4px; font-size: 15px; }
  #team .t2-summary { grid-column: 1 / -1; margin-top: 12px; font-size: 15px; line-height: 1.5; }
  #team .t2-summary li { padding: 1px 0; word-break: keep-all; overflow-wrap: anywhere; }
  #team .t2-person .career-details { grid-column: 1 / -1; width: 100%; margin-top: 8px; }
  #team .t2-person .career-details summary { min-height: 44px; font-size: 15px; }
  #team .t2-person .career-details > ul li { font-size: 15px !important; }
  #team .t2-advisors { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; padding-top: 24px; }
  #team .t2-advisor { display: block; }
  #team .t2-icon, #team .t2-advisor .t2-field, #team .t2-note { display: none; }
  #team .t2-advisor h3 { font-size: 18px; }
  #team .t2-advisor .t2-role { font-size: 15px; line-height: 1.5; }

  #main > .db-trust.wrap { padding-block: 28px !important; gap: 24px !important; }
  .db-trust .db-intro h3 { font-size: 23px; }
  .db-trust .db-desc { display: none; }
  .db-trust .db-intro .db-link { font-size: 15px; margin-top: 8px; }
  .db-trust .db-logos > p { font-size: 15px; margin-bottom: 12px; }
  .db-trust .db-logo-grid img, .db-trust .db-logo-grid img.hmg-logo { box-sizing: border-box; width: 100%; max-width: 104px; height: 58px; max-height: 58px; padding: 12px 10px; object-fit: contain; }

  #press .press-card { grid-row: auto; }
  #press .press-image, #press .press-card:first-child .press-image { height: 180px; border-radius: 6px; }
  #press .press-copy { padding-top: 16px; }
  #press .press-meta { font-size: 15px; flex-wrap: wrap; }
  #press .press-copy h3, #press .press-card:first-child .press-copy h3 { font-size: 21px; line-height: 1.45; }
  #press .press-copy > p { display: none; }
  #press .press-link { font-size: 15px; }

  #diagnosis-offers .dx-grid > a { grid-row: auto; grid-column: auto; display: flex; flex-direction: column; padding: 20px 16px; gap: 20px; align-items: stretch; border-radius: 8px; }
  #diagnosis-offers .dx-main h3, #diagnosis-offers .dx-sub h3 { font-size: 23px; line-height: 1.4; }
  #diagnosis-offers .dx-copy p:not(.dx-tag) { font-size: 15px; line-height: 1.6; }
  #diagnosis-offers .dx-link { font-size: 15px; min-height: 44px; }
  #diagnosis-offers .dx-vis { margin-top: auto; }
  #diagnosis-offers .dx-chat { padding: 12px; box-shadow: none; border-radius: 6px; }
  #diagnosis-offers .dx-chat .q { font-size: 15px; padding: 8px; }
  #diagnosis-offers .dx-chat .r { padding: 7px 8px; }
  #diagnosis-offers .dx-sub .resource-visual { width: 100%; height: 190px; min-height: 0; margin-top: auto; }
  #diagnosis-offers .dx-sub .global-visual { height: 230px; min-height: 0; overflow: hidden; }

  #faq.faq-section { gap: 0; }
  #faq .faq-list summary { padding: 16px 0; min-height: 60px; gap: 16px; font-size: 16px; }
  #faq .faq-answer { padding-right: 0; }
  #faq .faq-answer p { font-size: 15px; }
  .mc-fold:not(.is-expanded) > :nth-child(n + 4) { display: none !important; }
  #main .mc-more { display: inline-flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 44px; width: 100%; padding: 8px 0; border: 0; border-bottom: 1px solid var(--pm-line); border-radius: 0; color: var(--pm-blue); background: none; font: inherit; font-size: 15px; text-align: left; cursor: pointer; }
  #main .mc-more::after { content: '+'; font-size: 20px; }
  #main .mc-more[aria-expanded='true']::after { content: '−'; }
  #sample .mc-more { margin-top: -12px; }

  #main > .excl-band { padding-block: 0; }
  .excl-band .excl-inner { padding-block: 24px; grid-template-columns: 1fr; gap: 12px; }
  .excl-band .excl-ico, .excl-band .excl-d { display: none; }
  .excl-band .excl-t { font-size: 18px; }
  .excl-band .excl-cta { margin: 0; min-height: 44px; font-size: 15px; padding: 12px; }

  #contact .contact-grid { gap: 16px; }
  #contact .contact-heading { margin-bottom: 0 !important; }
  #contact .contact-copy > p { display: none; }
  #contact .contact-copy > a { min-height: 44px; display: inline-flex; align-items: center; margin-top: 0; }
  #contact #contact-form { padding: 20px 16px; margin-top: 0; border-radius: 8px; box-shadow: none; }
  #contact .form-title { margin-bottom: 20px; }
  #contact .form-title h3 { font-size: 21px; }
  #contact .form-title > span { font-size: 15px; }
  #contact fieldset { margin-bottom: 18px; padding-bottom: 12px; }
  #contact legend { font-size: 15px; }
  #contact .service-options > label { font-size: 15px; min-height: 44px; }
  #contact .form-fields { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 12px; }
  #contact .form-fields > label { min-width: 0; font-size: 15px; }
  #contact .form-fields .full { grid-column: 1 / -1; }
  #contact .form-fields label:has([name='phone']) { grid-column: 1 / -1; }
  #contact .form-fields label:has([name='hospital']) { grid-column: 1 / -1; }
  #contact .form-fields input, #contact .form-fields textarea { font-size: 16px; min-width: 0; width: 100%; }
  #contact .form-fields input { height: 46px; }
  #contact .form-fields textarea { min-height: 80px; height: 80px; }
  #contact :is(.consent, .privacy-note, .v6-mail-note) { font-size: 15px; line-height: 1.5; }
  #contact .consent { min-height: 44px; margin-top: 16px; }
  #contact .submit-button { min-height: 48px; font-size: 16px; }

  .v6-footer { padding: 28px 20px 24px; }
  .v6-footer .footer-top { gap: 20px; }
  .v6-footer .email-form { width: 100%; border-radius: 6px; }
  .v6-footer .email-form input, .v6-footer .email-form button { font-size: 15px; }
  .v6-footer .email-form button { min-height: 44px; border-radius: 4px; }
  .v6-footer .footer-intake > p { display: none; }
  .v6-footer .footer-links { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 16px; }
  .v6-footer .footer-links > div { display: contents; }
  .v6-footer .footer-links a { display: flex; align-items: center; min-height: 44px; font-size: 15px; line-height: 1.5; }
  .v6-footer .footer-wordmark { margin: 28px 0; }
  .v6-footer .footer-bottom { gap: 16px; font-size: 15px; }
  .v6-footer .footer-bottom > a { min-height: 44px; display: flex; align-items: center; overflow-wrap: anywhere; }
  .v6-footer .footer-bottom > p:nth-of-type(2) { display: none; }
}

/* 2026-11-23 파란 판(brief35 이전)으로 되돌린 뒤: 후기는 원래 흐르는 줄 한 줄만, 카드 폭 고정 */
@media (max-width: 640px) {
  #reviews .v6-review-rows { display: block !important; overflow: visible !important; scroll-snap-type: none !important; }
  #reviews .v6-review-viewport ~ .v6-review-viewport { display: none !important; }
  #reviews .v6-review-card { width: 280px !important; flex: 0 0 280px !important; }
  #reviews .rv-shot { height: 150px !important; min-height: 150px !important; }
  #reviews .rv-shot img { width: 100% !important; height: 100% !important; object-fit: cover !important; object-position: top !important; }
}
