/* PAI FORM uses the FLOW type scale; shared header/footer and 330px hero are inherited. */
.form-page { --form-ink: #112440; --form-muted: #627187; --form-blue: #2878ff; }
.form-page main { color: var(--form-ink); }
.form-opening { position: relative; isolation: isolate; background: #f5f7f9; }
.form-opening::before { content: ''; position: absolute; z-index: -1; inset-block: 0; right: max(0px, calc((100% - 1440px) / 2)); width: min(100%, 1260px); background-image: linear-gradient(90deg, #f5f7f9ee, #f5f7f9cc 30%, #f5f7f955 48%, transparent 65%), url('/assets/images/product/form/pai-form-hero-bg-hq-v4.png'); background-size: 100% 100%, auto 100%; background-position: center, right bottom; background-repeat: no-repeat; mask-image: linear-gradient(90deg, transparent, #000 18%, #000 97%, transparent); pointer-events: none; }
.form-hero { color: var(--form-ink); }
.form-tagline { max-width: 560px; margin-top: 12px; font-size: clamp(21px, 1.85vw, 26px); line-height: 1.4; font-weight: 600; letter-spacing: -.04em; }
.form-hero-description { max-width: 530px; margin-top: 16px; color: #526278; font-size: 14px; line-height: 1.7; letter-spacing: -.035em; }
.form-action { display: inline-flex; align-items: center; justify-content: center; gap: 20px; min-height: 40px; padding: 8px 20px; border: 1px solid #aabbd0; border-radius: 4px; background: white; color: var(--form-ink); font: inherit; font-size: 14px; font-weight: 500; line-height: 1.5; }
.form-action:focus-visible, .form-detail-image:focus-visible, .form-step-visual:focus-visible { outline: 2px solid var(--form-blue); outline-offset: 5px; }
.form-action:hover { background: #f0f6ff; border-color: var(--form-blue); }
.form-page .product-label { margin-bottom: 14px; color: #65758e; font-size: 12px; font-weight: 600; letter-spacing: .1em; }
.form-page main h2 { font-size: clamp(26px, 2.4vw, 34px); font-weight: 600; line-height: 1.4; letter-spacing: -.05em; }
.form-page .product-copy { margin-top: 20px; color: var(--form-muted); font-size: 16px; line-height: 1.8; letter-spacing: -.04em; }
.form-features { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 32px; padding-block: 32px 40px; }
.form-feature-icon { display: block; width: 64px; height: 64px; object-fit: contain; margin: 0 0 12px -8px; }
.form-page .form-features h2 { font-size: 18px; line-height: 1.5; letter-spacing: -.045em; }
.form-features p { margin-top: 9px; color: var(--form-muted); font-size: 15px; line-height: 1.85; letter-spacing: -.035em; }
.form-features p br { display: none; }
.form-value { padding-block: 48px; background: #f6f8fc; }
.form-value-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 56px; align-items: center; }
.form-value-copy { min-width: 0; }
.form-value .product-copy { max-width: 510px; font-size: 15px; }
.form-value .form-action { margin-top: 20px; }
.form-value-image { display: block; width: 100%; height: auto; aspect-ratio: 2.15; object-fit: cover; object-position: right center; border-radius: 12px; }
.form-how { padding-block: 56px; background: white; }
.form-how .product-copy { margin-top: 14px; }
.form-steps { list-style: none; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 28px; margin: 28px 0 0; padding: 0; }
.form-steps li { position: relative; min-width: 0; }
.form-steps h3 { display: flex; align-items: baseline; gap: 10px; margin-bottom: 14px; font-size: 16px; font-weight: 600; line-height: 1.5; letter-spacing: -.045em; }
.form-step-number { flex: none; color: var(--form-blue); font-size: 12px; font-weight: 600; letter-spacing: .04em; }
.form-step-visual { display: block; position: relative; cursor: zoom-in; border-radius: 10px; }
.form-step-visual img { display: block; width: 100%; height: auto; border: 1px solid #e5ebf3; border-radius: 10px; }
.form-steps li:not(:last-child) .form-step-visual::after { content: '›'; position: absolute; top: 50%; right: -20px; transform: translateY(-50%); font-size: 26px; font-weight: 400; color: #7c9bc5; }
.form-steps p { margin-top: 12px; color: var(--form-muted); font-size: 14px; line-height: 1.8; letter-spacing: -.035em; }
.form-steps p br { display: none; }
.form-example { padding-block: 44px; background: #f6f8fc; }
.form-detail-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); align-items: center; gap: 56px; }
.form-page .form-detail-layout h2 { font-size: clamp(25px, 2.2vw, 32px); }
.form-detail-layout .product-copy { max-width: 480px; font-size: 15px; margin-top: 16px; }
.form-detail-image { display: block; min-width: 0; cursor: zoom-in; border-radius: 10px; }
.form-detail-image img { display: block; width: 100%; height: auto; border-radius: 10px; }
.form-bom { padding-block: 44px; background: white; }
.form-benefits { padding-block: 40px 48px; border-top: 1px solid #dce5f0; }
.form-page .form-benefits h2 { font-size: 30px; }
.form-benefit-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; margin-top: 24px; }
.form-benefit-grid article { display: flex; align-items: flex-start; gap: 8px; min-width: 0; }
.form-benefit-grid img { flex: 0 0 54px; width: 54px; height: 54px; }
.form-benefit-grid h3 { margin-top: 6px; font-size: 16px; font-weight: 600; line-height: 1.5; letter-spacing: -.045em; }
.form-benefit-grid p { margin-top: 8px; color: var(--form-muted); font-size: 13px; line-height: 1.8; letter-spacing: -.035em; }
.form-benefit-grid p br { display: none; }
#form-how-title { scroll-margin-top: 28px; }
@media (min-width: 768px) and (max-width: 1100px) {
  .form-opening::before { background-image: linear-gradient(90deg, #f5f7f9, #f5f7f9eb 45%, #f5f7f966 65%, transparent 90%), url('/assets/images/product/form/pai-form-hero-bg-hq-v4.png'); background-size: 100% 100%, auto 100%; }
  .form-tagline { font-size: 22px; }
  .form-hero-description { font-size: 13px; max-width: 440px; }
  .form-features { gap: 24px; }
  .form-page .form-features h2 { font-size: 16px; }
  .form-features p { font-size: 14px; }
  .form-value-layout, .form-detail-layout { gap: 32px; }
  .form-value .product-copy { font-size: 14px; }
  .form-value .product-copy br { display: none; }
  .form-value-image { aspect-ratio: 1.8; }
  .form-steps { gap: 24px; }
  .form-steps h3 { gap: 7px; font-size: 14px; }
  .form-steps p { font-size: 13px; }
  .form-steps li:not(:last-child) .form-step-visual::after { right: -18px; }
  .form-benefit-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
}
@media (max-width: 767px) {
  .form-opening::before { background-image: linear-gradient(90deg, #f5f7f9f7, #f5f7f9eb 55%, #f5f7f999), url('/assets/images/product/form/pai-form-hero-bg-hq-v4.png'); background-size: 100% 100%, auto 80%; background-position: center, 80% bottom; mask-image: linear-gradient(180deg, transparent 15%, #000 35%); }
  .form-tagline { font-size: 21px; margin-top: 12px; }
  .form-hero-description { max-width: 390px; font-size: 13px; margin-top: 14px; line-height: 1.8; }
  .form-desktop-break { display: none; }
  .form-page .product-label { font-size: 10px; margin-bottom: 12px; }
  .form-page main h2 { font-size: 26px; }
  .form-page .product-copy { font-size: 14px; margin-top: 16px; }
  .form-features { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 26px 22px; padding-block: 28px 36px; }
  .form-feature-icon { width: 56px; height: 56px; margin-bottom: 10px; }
  .form-page .form-features h2 { font-size: 14px; }
  .form-features p { font-size: 13px; line-height: 1.8; }
  .form-value { padding-block: 36px; }
  .form-value-layout { grid-template-columns: 1fr; gap: 26px; }
  .form-value .product-copy br { display: none; }
  .form-value .form-action { margin-top: 18px; font-size: 13px; }
  .form-value-image { aspect-ratio: 2.15; border-radius: 8px; }
  .form-how { padding-block: 36px; }
  .form-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 20px; margin-top: 24px; }
  .form-steps h3 { font-size: 13px; gap: 6px; margin-bottom: 10px; }
  .form-step-number { font-size: 11px; }
  .form-steps p { font-size: 12px; margin-top: 10px; }
  .form-steps li .form-step-visual::after { display: none; }
  .form-example, .form-bom { padding-block: 36px; }
  .form-detail-layout { grid-template-columns: 1fr; gap: 24px; }
  .form-page .form-detail-layout h2 { font-size: 26px; }
  .form-detail-layout .product-copy { font-size: 14px; }
  .form-benefits { padding-block: 36px; }
  .form-page .form-benefits h2 { font-size: 26px; }
  .form-benefit-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 20px; margin-top: 24px; }
  .form-benefit-grid article { display: block; }
  .form-benefit-grid img { width: 46px; height: 46px; margin-left: -6px; }
  .form-benefit-grid h3 { font-size: 14px; }
  .form-benefit-grid p { font-size: 13px; }
}
