/* Homepage layout. Scoped to the pattern so other page templates keep their layout. */
.rk-home { margin-block-start: 0; background: var(--surface-0); }
.rk-home :where(.wp-block-group, p, h1, h2, h3, .wp-block-buttons) { margin-block: 0; }
.rk-home :where(.wp-block-group, .wp-block-button) { min-width: 0; }
.rk-home :where(p) { color: var(--ink-700); line-height: 1.65; }
.rk-home :where(h1, h2, h3) { color: var(--ink-900); font-weight: 600; text-wrap: balance; }
.rk-home h1 { font-size: clamp(38px, 4.2vw, 58px); line-height: 1.08; letter-spacing: -.045em; }
.rk-home h2 { font-size: clamp(30px, 3.1vw, 42px); line-height: 1.16; letter-spacing: -.035em; }
.rk-home h3 { font-size: 23px; line-height: 1.3; letter-spacing: -.025em; }
.rk-home .eyebrow { margin-bottom: 18px; font-size: 11px; letter-spacing: .12em; color: var(--brand-primary-700); }
.rk-home .eyebrow::before { flex: 0 0 24px; }
.rk-home .lead { font-size: 18px; line-height: 1.65; margin-top: 22px; }
.rk-home a { text-underline-offset: 4px; }
.rk-home a:focus-visible { outline: 3px solid var(--brand-primary); outline-offset: 5px; }
.rk-home [id] { scroll-margin-top: 100px; }
.home-hero { padding: 84px 0 76px; background: linear-gradient(135deg, #edf3f9, #f7f8fa 65%, #edf3f9); border-bottom: 1px solid #e2e6eb; }
.home-hero-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.08fr); gap: 48px; align-items: center; }
.home-intro .lead { max-width: 490px; }
.rk-home .home-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.home-actions .wp-block-button__link { gap: 12px; min-height: 48px; padding: 13px 18px; font-size: 14px; line-height: 1.35; font-weight: 600; }
.rk-home .home-meta { margin-top: 22px; font-size: 12px; line-height: 1.8; }
.home-meta span { margin-inline: 4px; }
.home-preview { border: 1px solid #ced7e2; border-radius: 10px; background: white; box-shadow: 0 20px 45px -24px #263f5c66; overflow: hidden; }
.rk-home .home-preview-label { display: flex; align-items: center; gap: 8px; padding: 15px 18px; font-size: 11px; font-weight: 600; color: var(--ink-900); }
.home-preview-label > span:last-child { margin-left: auto; color: var(--ink-700); font-weight: 400; }
.home-preview-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--brand-primary); flex: 0 0 7px; }
.rk-home .home-preview-image { position: relative; display: block; margin-block: 0; background: var(--dark-900); }
.home-preview-image img { width: 100%; height: auto; aspect-ratio: 16/9; }
.home-play { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); display: grid; place-items: center; width: 58px; height: 58px; padding-left: 3px; background: white; color: var(--brand-primary); border-radius: 50%; box-shadow: 0 3px 18px #0005; transition: background .2s, color .2s; }
.home-preview-image:hover .home-play { background: var(--brand-primary); color: white; }
.rk-home .home-preview-caption { padding: 18px; font-size: 13px; }
.home-preview-caption a { font-weight: 600; text-decoration: none; }
.home-preview-caption > span { display: block; margin-top: 4px; font-size: 12px; }
.home-section { padding: 76px 0; }
.home-section-head { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, .7fr); gap: 72px; align-items: end; }
.home-section-head h2 { max-width: 570px; }
.home-section-head > p { font-size: 15px; padding-bottom: 3px; }
.rk-home .home-tool-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; margin-top: 36px; }
.home-tool { display: flex; flex-direction: column; align-items: flex-start; padding: 28px; border: 1px solid #dfe4eb; border-radius: 8px; background: var(--surface-0); }
.home-tool-icon { margin-bottom: 18px; }
.rk-home .home-tool-name { margin-bottom: 9px; font-size: 12px; font-weight: 600; }
.home-tool-data .home-tool-name { color: #594398; }
.home-tool-sync .home-tool-name { color: #227746; }
.home-tool-weld .home-tool-name { color: var(--c-weld); }
.home-tool h3 { margin-bottom: 16px; }
.home-tool > p:not([class]) { font-size: 14px; }
.rk-home .home-tool-link { margin-top: auto; padding-top: 22px; }
.home-tool-link a { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; font-size: 13px; font-weight: 600; text-decoration: none; }
.home-tool-link a:hover, .home-preview-caption a:hover { text-decoration: underline; }
.rk-home .home-more-tools { display: flex; justify-content: space-between; align-items: center; gap: 32px; margin-top: 24px; padding: 22px 0 0; }
.home-more-tools p { font-size: 13px; }
.home-more-tools p:first-child { max-width: 740px; }
.home-more-tools a { display: inline-flex; align-items: center; min-height: 44px; font-weight: 600; white-space: nowrap; }
.home-workflow { background: var(--dark-900); }
.home-workflow-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 100px; }
.home-workflow :where(h2, h3) { color: white; }
.home-workflow p { color: var(--ink-on-dark); }
.home-workflow .eyebrow, .home-workflow a { color: #9cc5e8; }
.home-workflow-intro > p:not(.eyebrow) { margin-top: 22px; max-width: 380px; font-size: 14px; }
.home-workflow-intro a { display: inline-flex; align-items: center; min-height: 44px; }
.home-step { display: grid; grid-template-columns: 40px minmax(0, 1fr); gap: 20px; padding: 26px 0; border-top: 1px solid #38414d; }
.home-step:first-child { padding-top: 0; border-top: 0; }
.home-step:last-child { padding-bottom: 0; }
.rk-home .home-step-number { font: 400 14px/1.7 'JetBrains Mono', monospace; color: #9cc5e8; padding-top: 2px; }
.home-step h3 { font-size: 19px; }
.home-step p:not(.home-step-number) { margin-top: 10px; font-size: 14px; }
.home-licensing { background: var(--surface-50); }
.home-contact-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 100px; align-items: start; }
.home-license-copy { padding-top: 18px; }
.home-license-copy .lead { font-size: 16px; }
.rk-home .home-license-facts { display: grid; gap: 20px; margin: 30px 0 24px; padding-bottom: 24px; border-bottom: 1px solid #dfe4eb; }
.home-license-facts p { font-size: 14px; }
.home-license-facts strong { display: inline-block; margin-bottom: 5px; color: var(--ink-900); }
.home-license-copy > p:not(.lead):not(.eyebrow) { font-size: 14px; }
.home-license-copy > p a { display: inline-block; padding-block: 10px; }
.rk-home .home-email { margin-top: 12px; overflow-wrap: anywhere; }
.rk-home .home-contact-panel { position: static; padding: 30px; border-color: #dfe4eb; box-shadow: 0 8px 28px #1a1f2a06; }
.home-contact-panel h2 { font-size: 24px; line-height: 1.25; }
.home-contact-panel > p { font-size: 14px; margin: 10px 0 24px; }
.home-contact-panel .rk-request-form { gap: 16px; }
.home-contact-panel .rk-request-form input, .home-contact-panel .rk-request-form select, .home-contact-panel .rk-request-form textarea { min-width: 0; min-height: 46px; font-size: 16px; }
.home-contact-panel .rk-request-form textarea { min-height: 110px; }
.home-contact-panel .rk-request-form button { width: 100%; min-height: 48px; line-height: 1.4; }
.home-contact-panel .rk-request-form label { gap: 7px; }
@media (max-width: 1100px) {
  .home-hero-grid { gap: 32px; }
  .home-workflow-grid, .home-contact-grid { gap: 48px; }
  .home-tool { padding: 22px; }
}
@media (max-width: 900px) {
  .home-hero { padding: 56px 0; }
  .home-hero-grid { grid-template-columns: 1fr; gap: 36px; }
  .home-intro .lead { max-width: 600px; }
  .rk-home h1 { font-size: clamp(38px, 6.3vw, 56px); }
  .home-preview { width: 100%; max-width: 720px; }
  .home-section { padding: 56px 0; }
  .home-section-head { grid-template-columns: 1fr; gap: 18px; }
  .rk-home .home-tool-grid { gap: 14px; }
  .home-tool { padding: 20px; }
  .home-tool h3 { font-size: 20px; }
  .home-workflow-grid, .home-contact-grid { gap: 36px; }
  .home-contact-grid { grid-template-columns: 1fr; }
  .home-workflow h2 { font-size: 30px; }
}
@media (max-width: 700px) {
  .rk-home .home-tool-grid, .home-workflow-grid, .home-contact-grid { grid-template-columns: 1fr; }
  .home-tool { padding: 24px; }
  .home-tool h3 { font-size: 23px; }
  .rk-home .home-more-tools { flex-direction: column; align-items: flex-start; gap: 8px; }
  .home-workflow-intro > p:not(.eyebrow) { max-width: none; }
  .home-license-copy { padding-top: 0; }
  .home-contact-panel .form-row { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
  .rk-home .shell { width: calc(100% - 36px); }
  .home-hero { padding: 40px 0; }
  .rk-home .lead { font-size: 16px; }
  .rk-home .home-actions { gap: 10px; }
  .home-actions .wp-block-button { width: 100%; }
  .home-actions .wp-block-button__link { width: 100%; }
  .home-preview-label > span:last-child { display: none; }
  .rk-home .home-preview-label, .rk-home .home-preview-caption { padding: 14px; }
  .home-play { width: 48px; height: 48px; }
  .rk-home .home-contact-panel { padding: 22px 18px; }
  .home-contact-panel h2 { font-size: 23px; }
  .home-step { gap: 14px; grid-template-columns: 28px minmax(0, 1fr); }
}
