/* Layout based on the approved step-sync concept. Shared site chrome stays in its own stylesheets. */
:root { --page-max: 1280px; --page-gutter: 48px; }
html { scroll-padding-top: 106px; }
.step-breadcrumb { width: min(var(--page-max), calc(100% - var(--page-gutter))); margin: 18px auto 0; display: flex; gap: 9px; color: var(--body); font-size: 14px; }
.step-breadcrumb a { color: var(--blue); }
.step-breadcrumb a:hover { text-decoration: underline; }

.hero { padding: 30px 0 30px; grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr); gap: 24px; }
.hero-copy { align-self: center; }
.hero h1 { max-width: none; margin-bottom: 12px; font-size: clamp(34px, 3.4vw, 48px); white-space: nowrap; }
.hero-lead { margin-bottom: 20px; font-size: 16px; line-height: 1.65; }
.hero .mobile-notice { width: auto; min-height: 0; margin: 0 0 20px; padding: 14px 18px; grid-template-columns: 34px minmax(0, 1fr); gap: 12px; border-radius: 10px; background: #edf6ff; box-shadow: none; }
.hero .mobile-notice h2 { margin: 0 0 2px; font-size: 16px; }
.hero .mobile-notice p { font-size: 14px; line-height: 1.6; }
.notice-mark { width: 32px; height: 32px; display: grid; place-items: center; border-radius: 50%; color: #fff; background: var(--blue); font-size: 20px; font-weight: 700; font-family: Georgia, serif; }
.platform-links { gap: 14px; }
.platform-links a { min-height: 54px; padding: 0 18px; border-radius: 8px; box-shadow: 0 4px 10px rgb(6 27 73 / 4%); }
.platform-links a[href="#android"] img { width: 30px; }
.hero-visual { position: relative; width: 100%; height: 370px; min-height: 0; margin: 0; padding: 0; display: grid; place-items: end center; border: 0; border-radius: 50%; background: #eaf5fd; box-shadow: none; overflow: hidden; }
.hero-visual img { width: 70%; height: 115%; object-fit: contain; object-position: center bottom; filter: drop-shadow(0 10px 14px rgb(6 27 73 / 10%)); }
.hero-visual figcaption { position: absolute; right: 14px; bottom: 10px; color: var(--muted); font-size: 10px; }

.section-panel.common-flow { width: min(var(--page-max), calc(100% - var(--page-gutter))); margin-top: 0; padding: 24px 30px 30px; border: 0; border-radius: 18px; background: #eef7ff; box-shadow: none; }
.common-flow .section-heading { margin-bottom: 18px; }
.common-flow .section-heading h2 { margin-bottom: 6px; font-size: 28px; }
.common-flow .section-heading p { color: var(--body); }
.flow-list { gap: 14px; border: 0; border-radius: 0; background: transparent; overflow: visible; }
.flow-list li { min-height: 208px; padding: 16px; display: flex; flex-direction: column; align-items: center; gap: 8px; position: relative; border: 0; border-radius: 12px; background: #fff; text-align: center; }
.flow-list li:not(:last-child)::after { content: "›"; position: absolute; top: 49%; right: -13px; z-index: 1; color: var(--blue); font-size: 28px; line-height: 1; }
.flow-number { position: absolute; left: 12px; top: 12px; width: 32px; height: 32px; border-radius: 50%; }
.flow-icon { width: 38px; height: 38px; margin: 8px auto 0; object-fit: contain; }
.flow-copy h3 { margin: 2px 0 7px; font-size: 18px; }
.flow-copy > p:not(.tap-target) { margin: 0; color: var(--body); font-size: 14px; line-height: 1.65; }

.platform-stack { width: min(var(--page-max), calc(100% - var(--page-gutter))); margin-top: 16px; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.platform-section { min-width: 0; padding: 20px 20px 16px; display: grid; grid-template-columns: minmax(0, .42fr) minmax(0, .58fr); grid-template-rows: auto auto 1fr auto auto; column-gap: 8px; border: 0; border-radius: 18px; box-shadow: none; background: #edf7ff; }
.platform-section-android { background: #effaf6; }
.platform-section-ios, .platform-section-android { border-top: 0; }
.platform-heading { grid-column: 1 / -1; margin-bottom: 8px; grid-template-columns: 40px minmax(0, 1fr); gap: 8px; }
.platform-identity { min-width: 0; width: 40px; padding: 0; border: 0; background: transparent !important; }
.platform-mark { width: 40px; height: 40px; background: transparent; }
.platform-mark-android { background: transparent; }
.platform-name { display: none; }
.platform-heading h2 { margin: 0 0 3px; font-size: 24px; }
.platform-heading p { color: var(--body); font-size: 14px; }
.platform-phone { grid-column: 1; grid-row: 2 / 4; min-width: 0; height: 240px; margin: 0; align-self: end; overflow: hidden; text-align: center; }
.platform-phone img { width: 140%; max-width: none; height: 145%; margin-left: -20%; object-fit: contain; object-position: center top; }
.platform-phone figcaption { font-size: 10px; color: var(--muted); }
.steps-intro { grid-column: 2; grid-row: 2; margin: 0; font-size: 0; }
.steps-intro span { display: none; }
.platform-steps { grid-column: 2; grid-row: 3; grid-template-columns: 1fr; gap: 3px; align-content: start; }
.platform-steps li { min-height: 0; padding: 6px 3px; display: grid; grid-template-columns: 28px minmax(0, 1fr); column-gap: 8px; border: 0; border-radius: 0; background: transparent; }
.platform-steps .item-number { grid-column: 1; grid-row: 1 / 3; width: 25px; height: 25px; margin: 0; border-radius: 50%; font-size: 11px; }
.platform-steps h3 { grid-column: 2; margin: 2px 0 3px; font-size: 17px; }
.platform-steps li > p:not(.tap-target) { grid-column: 2; margin: 0; font-size: 14px; line-height: 1.6; }
.platform-steps .tap-target { display: none; }
.platform-prep { grid-column: 1 / -1; grid-row: 4; }
.platform-recovery { grid-column: 1 / -1; grid-row: 5; }
.platform-prep, .platform-recovery { margin-top: 8px; border: 1px solid #d9e7f5; border-radius: 9px; background: rgb(255 255 255 / 75%); }
.platform-prep summary, .platform-recovery summary { padding: 9px 12px; color: var(--blue-deep); font-size: 14px; font-weight: 700; cursor: pointer; }
.platform-prep .install-guide { margin: 0 8px 8px; padding: 12px; grid-template-columns: 1fr; gap: 10px; }
.platform-prep .install-guide-heading { padding: 0; }
.platform-prep .install-options li { padding: 10px; grid-template-columns: minmax(90px, 108px) minmax(0, 1fr); }
.platform-recovery .recovery-box { margin: 0 8px 8px; padding: 12px; grid-template-columns: 1fr; }
.platform-recovery .recovery-note { grid-column: auto; margin: 0; }

.section-panel.troubleshooting { width: min(var(--page-max), calc(100% - var(--page-gutter))); margin-top: 18px; padding: 24px 28px; border: 0; border-radius: 18px; background: #eef7ff; box-shadow: none; }
.troubleshooting .section-heading { margin-bottom: 16px; }
.troubleshooting .section-heading h2 { margin-bottom: 5px; font-size: 25px; }
.troubleshooting .check-list { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; border: 0; border-radius: 12px; background: #fff; }
.troubleshooting .check-list li { min-width: 0; padding: 16px; align-items: start; gap: 9px; grid-template-columns: 30px minmax(0, 1fr); border: 0; }
.troubleshooting .check-list li + li { border-left: 1px solid var(--line); }
.troubleshooting .check-list .item-number { width: 26px; height: 26px; border-radius: 50%; }
.troubleshooting .check-list h3 { font-size: 17px; }
.troubleshooting .check-list p { font-size: 14px; }
.sync-note { margin-top: 14px; padding: 0; border: 0; background: transparent; font-size: 14px; }

.bottom-cta { width: min(var(--page-max), calc(100% - var(--page-gutter))); margin: 0 auto 36px; padding: 16px 8px; gap: 16px; border-radius: 0; color: var(--body); background: transparent; box-shadow: none; }
.bottom-cta h2 { margin-bottom: 4px; color: var(--navy); font-size: 18px; }
.bottom-cta p { font-size: 14px; }
.bottom-cta .btn { min-height: 42px; padding: 0 10px; border: 0; border-radius: 0; color: var(--blue-deep); font-size: 14px; }
.bottom-cta .btn.primary { color: var(--blue-deep); background: transparent; }
.bottom-cta .btn:hover, .bottom-cta .btn.primary:hover { background: #eef7ff; }

@media (max-width: 1000px) {
  .hero h1 { white-space: normal; }
  .platform-stack { grid-template-columns: 1fr; }
  .platform-section { grid-template-columns: minmax(0, .35fr) minmax(0, .65fr); }
  .platform-phone { height: 265px; }
}
@media (max-width: 760px) {
  :root { --page-gutter: 32px; }
  .hero { grid-template-columns: 1fr; gap: 12px; padding-top: 20px; }
  .hero-visual { width: min(100%, 430px); height: 285px; margin: auto; }
  .hero-visual img { height: 120%; }
  .flow-list { grid-template-columns: 1fr 1fr; }
  .flow-list li { min-height: 180px; }
  .flow-list li::after { display: none; }
  .troubleshooting .check-list { grid-template-columns: 1fr; }
  .troubleshooting .check-list li + li { border-left: 0; border-top: 1px solid var(--line); }
}
@media (max-width: 560px) {
  .hero h1 { font-size: 32px; }
  .platform-links { grid-template-columns: 1fr 1fr; }
  .platform-links a { min-height: 50px; padding: 8px; font-size: 12px; }
  .hero-visual { height: 240px; }
  .common-flow .section-heading h2 { font-size: 25px; }
  .flow-list li { min-height: 210px; padding: 15px 10px; }
  .flow-copy h3 { font-size: 16px; }
  .flow-copy > p:not(.tap-target) { font-size: 14px; }
  .platform-section { grid-template-columns: 1fr; }
  .platform-phone { grid-column: 1; grid-row: 2; height: 205px; }
  .steps-intro { grid-column: 1; grid-row: 3; }
  .platform-steps { grid-column: 1; grid-row: 4; }
  .platform-prep { grid-row: 5; }
  .platform-recovery { grid-row: 6; }
  .bottom-cta { flex-direction: column; align-items: stretch; }
  .bottom-cta .cta-row { display: flex; }
}
