/* Homepage-aligned presentation. Content and existing interaction hooks are retained. */
:root {
  --ink: #0a2540;
  --muted: #43516b;
  --purple: #635bff;
  --line: #e3eaf3;
  --soft: #f6f9fc;
  --font: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", sans-serif;
}
html { scroll-padding-top: 146px; }
body { font-family: var(--font); color: var(--ink); font-size: 16px; line-height: 1.8; }
.wrap { width: min(1232px, calc(100% - 80px)); }
body h2 { font-size: clamp(28px, 3.2vw, 40px); font-weight: 500; line-height: 1.4; letter-spacing: -.02em; }
body h3 { color: var(--ink); font-weight: 500; letter-spacing: -.015em; }
.section { padding-block: 88px; }
.eyebrow { font-size: 13px; font-weight: 600; letter-spacing: 0; color: #5145c8; margin-bottom: 18px; }
.section-intro { gap: 56px; margin-bottom: 38px; }
.section-intro > p { color: var(--muted); font-size: 16px; line-height: 1.9; max-width: 420px; }
.button, .hero .button { padding: 12px 20px; min-height: 48px; border-radius: 4px; font-size: 14px; font-weight: 600; gap: 12px; }
.button.primary { background: var(--purple); box-shadow: none; border-color: transparent; }
.button.primary:hover { background: #5146e8; box-shadow: none; transform: translateY(-1px); }
.text-link, .hero-text-link { color: #5145c8; font-size: 14px; gap: 12px; border-bottom-color: #c5bfff; }
.text-link:hover, .hero-text-link:hover { color: #35216e; }
button:focus-visible, a:focus-visible, summary:focus-visible { outline: 2px solid var(--purple); outline-offset: 4px; }

/* Global destinations and local sections have separate, persistent rows. */
.header, .header.is-scrolled { background: #ffffffed; border-color: var(--line); backdrop-filter: blur(12px) saturate(135%); box-shadow: 0 4px 18px #0a254009; }
.header .nav { height: 76px; gap: 20px; }
.header .brand { gap: 8px; }
.header .brand img { width: 30px; height: 30px; }
.header .brand span { font-size: 20px; font-weight: 650; letter-spacing: -.5px; }
.site-nav { display: flex; align-items: center; gap: 16px; margin-left: auto; white-space: nowrap; }
.site-nav a { color: var(--ink); font-size: 13px; font-weight: 500; }
.site-nav a:hover, .site-nav a[aria-current] { color: #35216e; }
.header .nav-cta { padding: 10px 14px; min-height: 42px; font-size: 12px !important; gap: 8px; flex-shrink: 0; }
.header .menu-button { display: flex; flex-direction: row; gap: 10px; width: 84px; height: 44px; padding: 0 12px; flex-shrink: 0; border: 1px solid var(--line); border-radius: 4px; background: #fff; color: var(--purple); font-size: 13px; font-weight: 600; white-space: nowrap; }
.header .menu-button span, .header .menu-button[aria-expanded] span { width: auto; height: auto; background: none; transform: none; font-size: 17px; }
.header .menu-button[aria-expanded=true] { background: #f1efff; border-color: #c5bfff; }
.page-nav-bar { border-top: 1px solid #e3eaf380; background: #f8f9fddd; }
.page-nav-inner { min-height: 50px; display: flex; align-items: center; gap: 20px; }
.header .site-home-link { min-height: 44px; padding: 0; border: 0; border-radius: 3px; color: #5145c8; font-size: 12px; margin: 0; }
.header .site-home-link:hover { background: transparent; text-decoration: underline; text-underline-offset: 4px; }
.header .nav-product { display: block; padding-left: 20px; color: #43516b; font-size: 12px; margin: 0; }
.header .desktop-nav { display: flex; gap: 24px; font-size: 12px; align-items: center; min-width: 0; overflow-x: auto; overflow-y: hidden; scrollbar-width: thin; }
.header .desktop-nav a { display: flex; align-items: center; min-height: 48px; border-bottom: 2px solid transparent; flex-shrink: 0; color: #43516b; }
.header .desktop-nav a::after { content: none; }
.header .desktop-nav a[aria-current] { color: #5145c8; border-color: var(--purple); }
.header #mobile-nav:not([hidden]) { position: absolute; right: max(24px, calc((100vw - 1232px)/2)); top: calc(100% + 8px); display: block; width: 320px; max-width: calc(100vw - 32px); max-height: calc(100dvh - 160px); overflow-y: auto; overscroll-behavior: contain; padding: 16px; background: #fff; border: 1px solid var(--line); border-radius: 8px; box-shadow: 0 14px 34px #0a254017; }
.mobile-nav a, .mobile-nav button { min-height: 44px; padding: 10px 12px; font-size: 14px; border-radius: 4px; }
.mobile-nav a:hover, .mobile-nav a[aria-current] { background: #f2efff; color: #35216e; }
.menu-section-title { border-top: 1px solid var(--line); margin-top: 12px; padding: 18px 12px 8px; color: #62748a; font-size: 12px; }

/* Use the existing homepage ribbon, with the original business assets in the media column. */
.brand-hero { padding-top: 64px; background: #fff; }
.brand-hero::before { content: ""; position: absolute; inset: -126px 0 0; z-index: -1; background: url('/stripe-integration/ribbon.svg') center top / 1440px 830px no-repeat; pointer-events: none; }
.home-hero-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; min-height: 530px; }
.hero-heading { display: flex; flex-direction: column; align-items: stretch; justify-content: center; gap: 28px; margin: 0; min-width: 0; }
.hero .eyebrow { color: var(--ink); font-size: 14px; margin-bottom: 28px; }
.hero .dot { display: none; }
.hero h1 { font-size: clamp(32px, 3.05vw, 44px); font-weight: 400; line-height: 1.38; letter-spacing: -.025em; white-space: normal; text-wrap: pretty; color: #080e3b; }
.hero h1 span { color: inherit; }
.hero-invitation { display: block; padding: 0; }
.hero-invitation > p { color: var(--muted); font-size: 16px; line-height: 1.9; max-width: 34em; }
.hero-invitation > p br { display: none; }
.hero-invitation .actions { margin-top: 30px; display: flex; flex-wrap: wrap; align-items: center; gap: 14px; }
.hero-text-link { min-height: 48px; padding: 10px 18px; border: 1px solid #b7b5ff; border-radius: 4px; background: #ffffffd1; font-size: 14px; }
.hero-gallery { width: 100%; height: auto; display: grid; grid-template-columns: 1fr; gap: 16px; margin: 0; }
.hero-gallery > div { border-radius: 16px; }
.hero-business { height: 214px; }
.hero-business > img { filter: none; object-position: center 52%; }
.gallery-caption { left: 24px; bottom: 22px; }
.gallery-caption span { font-size: 12px; }
.gallery-caption strong { font-size: 23px; }
.hero-product { display: grid; grid-template-columns: 1fr; padding: 20px; background: linear-gradient(120deg,#f7f5ff,#fff); border: 1px solid #e4dff6; }
.product-label { color: var(--ink); font-size: 13px; }
.product-label img { width: 26px; height: 26px; background: transparent; padding: 0; }
.hero-product .hero-screen { display: block; width: 100%; height: 188px; min-height: 0; margin: 14px 0 0; grid-column: auto; grid-row: auto; transform: none; border: 1px solid var(--line); border-radius: 8px; box-shadow: none; }
.hero-product .hero-screen img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.product-link { color: #5145c8; font-size: 12px; margin-top: 12px; grid-column: auto; }
.hero-bottom { display: flex; gap: 24px; justify-content: space-around; min-height: 78px; padding: 18px 24px; margin-top: 44px; border: 1px solid var(--line); border-radius: 16px; background: #ffffffd9; color: #43516b; font-size: 13px; flex-wrap: wrap; }
.hero-bottom span { gap: 10px; }

/* Matching the homepage's pale color fields and restrained surface treatment. */
.operations-section, .case-section, .knowledge-section, .system-section, .industry-section, .delivery-section, .faq-section { position: relative; isolation: isolate; background: #fff; color: var(--ink); }
.operations-section::before, .system-section::before, .delivery-section::before { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; background: radial-gradient(ellipse at 10% 45%,#8164ff13,transparent 48%),radial-gradient(ellipse at 64% 70%,#f492ff14,transparent 48%),radial-gradient(ellipse at 95% 40%,#ff990910,transparent 45%); }
.operations-story { gap: 64px; grid-template-columns: 1fr 1fr; }
.research-photo { min-height: 460px; border-radius: 16px; }
.research-photo img, .knowledge-image > img, .industry-tabs button img, .contact-photo img { filter: none; }
.research-photo figcaption { font-size: 23px; }
.research-accordions summary, .knowledge-folds summary, .delivery-list summary { color: var(--ink); font-size: 17px; font-weight: 500; padding: 22px 0; }
.research-accordions details, .knowledge-folds details, .delivery-list details { border-color: var(--line); }
.research-accordions details > p, .knowledge-folds details > p, .delivery-list details > p { color: var(--muted); font-size: 15px; line-height: 1.9; padding: 0 20px 22px 0; }
.research-accordions details[open] summary, .knowledge-folds details[open] summary, .delivery-list details[open] summary { color: #5145c8; }
.research-accordions summary span, .knowledge-folds summary span, .delivery-list summary span { color: #635bff; }
.case-console { background: #fff; border: 1px solid var(--line); border-radius: 16px; box-shadow: none; }
.case-top, .case-tabs { background: #f6f7fc; border-color: var(--line); }
.case-top p, .case-top small, .case-state, .case-tabs button, .case-foot { color: #52627b; }
.case-tabs { gap: 32px; }
.case-tabs button { min-height: 54px; font-size: 14px; }
.case-tabs button[aria-selected=true] { color: #5145c8; border-color: #635bff; }
.case-content { padding: 40px; }
.case-foot { background: #fafbff; border-color: var(--line); font-size: 12px; }
.strategy-display { gap: 56px; padding: 8px 20px; }
.strategy-display h3 { font-size: 30px; line-height: 1.5; }
.strategy-display p, .strategy-display ul { color: var(--muted); font-size: 15px; line-height: 1.9; }
.strategy-display .micro-label { color: #5145c8; font-size: 13px; }
.case-research-counts strong { color: #5145c8; font-size: 36px; }
.case-research-counts span { font-size: 12px; color: #52627b; }
.strategy-preview { transform: none; border-color: var(--line); box-shadow: none; border-radius: 6px; }
.strategy-preview:hover { transform: translateY(-2px); }
.strategy-preview > span { background: #fff; color: #5145c8; border-color: var(--line); font-size: 12px; }
.data-note { color: #52627b !important; font-size: 12px !important; }
.stage-track small, .stage-track i, .micro-label, .panel-heading > p { color: #52627b; font-size: 12px; }
.stage-track button { background: #fafbff; border-color: var(--line); }
.stage-track button.active { background: #f1eeff; border-color: #b7b5ff; }
.stage-detail p:not(.micro-label), #stage-tasks > div, .profile-grid p, .keyword-table { font-size: 14px; }
#stage-tasks b { font-size: 12px; }
.profile-grid article { border-color: var(--line); background: #fafbff; }
.profile-grid .pending-card { background: #f2efff; }
.keyword-table th, .keyword-table td:last-child { color: #52627b; }
.keyword-table th { background: #f6f7fc; font-size: 13px; }
.keyword-intents span { color: #5145c8; background: #f2efff; border-color: #e1dbf4; font-size: 12px; }
.knowledge-section { padding-top: 0; }
.knowledge-scene { background: #f6f7fc; border: 1px solid var(--line); border-radius: 16px; }
.knowledge-heading { padding: 48px; }
.knowledge-image { min-height: 560px; }
.image-corner { color: var(--ink); font-size: 16px; }
.system-section .eyebrow { color: #5145c8; }
.system-section .section-intro { grid-template-columns: 1fr auto; align-items: center; }
.time-card { border-left: 1px solid #d7dcef !important; padding-left: 32px !important; min-width: 245px; }
.time-card strong { color: #5145c8; font-size: 56px; font-weight: 400; }
.time-card span, .time-card p, .time-card small { color: #43516b; }
.time-card p { font-size: 14px; }
.time-card small { font-size: 12px; }
.workbench-showcase { border: 1px solid var(--line); border-radius: 12px; box-shadow: none; max-width: none; }
.demo-toolbar { background: #f6f7fc; color: var(--ink); border-color: var(--line); font-size: 13px; padding: 12px 20px; }
.demo-toolbar button { border-color: #c5bfff; color: #5145c8; border-radius: 4px; font-size: 13px; min-height: 44px; }
.process-grid { gap: 24px; }
.process-grid details { border-color: #d7dcef; }
.process-grid summary { color: var(--ink); }
.process-grid summary strong { font-size: 16px; line-height: 1.6; }
.process-grid .step, .process-grid .fold-plus { color: #635bff; }
.process-grid details > p { color: var(--muted); font-size: 14px; }
.system-section .fine-print { color: #52627b; font-size: 12px; line-height: 1.9; }
.system-section .responsibility { color: #43516b; font-size: 14px !important; background: #f0edfa; border-color: var(--line); border-radius: 8px; padding: 22px 24px; }
.industry-tabs { gap: 20px; }
.industry-tabs button { background: #fafbff; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.industry-tabs button[aria-selected=true] { background: #f2efff; border-color: #635bff; box-shadow: 0 0 0 1px #635bff; }
.industry-tabs button span { color: var(--ink); font-size: 14px; padding: 16px; }
.industry-tabs b { color: #635bff; }
.industry-copy > p:not(.eyebrow) { color: var(--muted); font-size: 15px; }
.industry-copy h3 { font-family: var(--font); font-size: 25px; line-height: 1.5; }
.delivery-layout { gap: 80px; }
.delivery-list { background: #ffffffb8; border: 1px solid #e3eaf3; border-radius: 12px; padding: 8px 32px 28px; }
.model-note { border-color: var(--line); }
.model-note strong { color: var(--ink); font-size: 14px; }
.model-note p { color: #52627b; font-size: 13px; line-height: 1.9; }
.faq-layout { grid-template-columns: .7fr 1.3fr; gap: 80px; }
.faq-list details { border-color: var(--line); }
.faq-list summary { padding: 24px 12px; color: var(--ink); font-size: 17px; }
.faq-list details > p { color: var(--muted); font-size: 15px; padding: 0 12px 24px; }
.faq-list details[open] { background: #f2eff9; border-radius: 6px; }
.contact-section { background: #fff; padding: 24px 0 88px; }
.contact-inner { background: linear-gradient(120deg,#ebe8f8,#fcf5fa); border-radius: 16px; border: 1px solid #e8e4f2; overflow: hidden; }
.contact-inner > div:first-child { padding: 56px; }
.contact-inner h2 { color: var(--ink); }
.contact-inner .eyebrow { color: #5145c8; }
.contact-inner > div > p { color: var(--muted); font-size: 16px; }
.contact-inner small { color: #52627b; font-size: 12px; }
.contact-inner .button { font-size: 14px; }
.contact-photo { min-height: 460px; }
footer { background: #f6f9fc; border-top: 1px solid var(--line); }
.footer-top { padding: 36px 0; font-size: 14px; border-color: var(--line); }
.footer-top .brand img { width: 30px; height: 30px; }
.footer-top .brand span { font-size: 20px; }
.footer-top > p, .footer-top > a:last-child { font-size: 13px; }
.footer-bottom { color: #52627b; font-size: 12px; padding-block: 24px; }
dialog { color: var(--ink); border-color: var(--line); border-radius: 12px; }
dialog h2 { font-size: 24px; }
dialog > p { color: var(--muted); }

@media(max-width:1320px) {
  .header .nav { gap: 14px; }
  .site-nav { gap: 12px; }
  .site-nav a { font-size: 12px; }
  .home-hero-layout { gap: 40px; }
}
@media(max-width:1180px) {
  .site-nav { display: none; }
  .header .nav-cta { margin-left: auto; display: flex !important; }
  .hero h1 { font-size: 38px; }
  .home-hero-layout { gap: 32px; }
  .header .nav-product { display: none; }
  .operations-story { gap: 40px; }
  .knowledge-heading { padding: 32px; }
}
@media(max-width:900px) {
  .wrap { width: calc(100% - 48px); }
  .header .nav { height: 66px; }
  .home-hero-layout { grid-template-columns: 1fr; gap: 36px; }
  .hero-heading { max-width: 680px; gap: 24px; }
  .hero h1 { font-size: 40px; }
  .hero-gallery { grid-template-columns: 1fr 1fr; align-items: stretch; }
  .hero-business { height: auto; min-height: 300px; }
  .hero-product .hero-screen { height: 180px; }
  .brand-hero { padding-top: 48px; }
  .brand-hero::before { opacity: .75; background-position: 56% top; }
  .section { padding-block: 64px; }
  .section-intro { gap: 30px; }
  .operations-story { grid-template-columns: 1fr; gap: 28px; }
  .research-photo { min-height: 330px; }
  .knowledge-scene { grid-template-columns: 1fr 1fr; }
  .knowledge-image { min-height: 500px; }
  .case-content { padding: 28px; }
  .strategy-display { padding: 0; gap: 30px; }
  .strategy-display h3 { font-size: 26px; }
  .strategy-display p, .strategy-display ul { font-size: 14px; }
  .industry-tabs button span { font-size: 13px; }
  .delivery-layout { gap: 40px; }
  .faq-layout { gap: 36px; }
  .contact-inner > div:first-child { padding: 36px; }
}
@media(max-width:639px) {
  html { scroll-padding-top: 130px; }
  .wrap { width: calc(100% - 40px); }
  .header .wrap { width: calc(100% - 32px); }
  .header .nav { height: 62px; gap: 12px; }
  .header .nav-cta { display: none !important; }
  .header .menu-button { margin-left: auto; }
  .header .brand img { width: 28px; height: 28px; }
  .header .brand span { font-size: 20px; }
  .page-nav-inner { gap: 16px; }
  .header .site-home-link { font-size: 12px; }
  .header .desktop-nav { gap: 20px; margin-left: auto; font-size: 12px; }
  .header .desktop-nav a { min-height: 48px; }
  .header #mobile-nav:not([hidden]) { right: 16px; max-height: calc(100dvh - 140px); }
  .brand-hero { padding-top: 40px; }
  .brand-hero::before { background-image: url('/stripe-integration/ribbon-mobile.svg'); background-size: 700px auto; background-position: 42% 0; opacity: .5; }
  .hero .eyebrow { font-size: 12px; margin-bottom: 22px; }
  .hero h1 { font-size: clamp(28px, 7.7vw, 34px); line-height: 1.45; font-weight: 400; letter-spacing: -.025em; white-space: normal; }
  .hero-heading { gap: 22px; }
  .hero-invitation > p { font-size: 15px; line-height: 1.9; max-width: none; }
  .hero-invitation .actions { margin-top: 24px; gap: 12px; flex-wrap: wrap; }
  .hero .button { font-size: 13px; padding: 12px 16px; }
  .hero-text-link { font-size: 13px; padding: 12px 16px; }
  .hero-gallery { grid-template-columns: 1fr; gap: 14px; }
  .hero-business { height: 220px; min-height: 0; }
  .gallery-caption { left: 20px; bottom: 20px; }
  .gallery-caption span { font-size: 11px; }
  .gallery-caption strong { font-size: 21px; }
  .hero-product { padding: 18px; display: block; }
  .product-label { display: flex; font-size: 13px; }
  .product-label img { margin: 0; }
  .hero-product .hero-screen { height: auto; aspect-ratio: 1.9; }
  .product-link { font-size: 12px; line-height: 1.8; }
  .hero-bottom { margin-top: 28px; padding: 18px 20px; gap: 12px; justify-content: flex-start; font-size: 12px; border-radius: 12px; }
  .hero-bottom i { display: none; }
  .hero-bottom span { gap: 8px; }
  .hero-bottom span::before { width: 5px; height: 5px; }
  .section { padding-block: 56px; }
  body h2 { font-size: 28px; line-height: 1.45; font-weight: 500; }
  .section-intro { display: block; margin-bottom: 28px; }
  .section-intro > p { font-size: 15px; margin-top: 18px; }
  .section-intro > .text-link { font-size: 14px; }
  .research-photo { min-height: 0; height: 260px; }
  .research-photo figcaption { font-size: 21px; }
  .research-accordions summary, .knowledge-folds summary, .delivery-list summary { font-size: 16px; padding-block: 20px; }
  .research-accordions details > p, .knowledge-folds details > p, .delivery-list details > p { font-size: 14px; padding-right: 0; }
  .case-top { padding: 20px 16px; gap: 10px; flex-wrap: wrap; }
  .case-top p, .case-top small, .case-state { font-size: 12px; }
  .case-tabs { padding-inline: 16px; gap: 24px; }
  .case-tabs button { font-size: 13px; min-height: 52px; }
  .case-content { padding: 26px 20px; }
  .strategy-display { grid-template-columns: 1fr; gap: 28px; }
  .strategy-display h3 { font-size: 25px; }
  .strategy-display p, .strategy-display ul { font-size: 14px; }
  .case-research-counts { gap: 28px; flex-wrap: wrap; }
  .case-research-counts strong { font-size: 32px; }
  .case-research-counts span { font-size: 11px; }
  .strategy-preview { max-width: 280px; }
  .case-foot { font-size: 11px; line-height: 1.8; display: block; }
  .case-foot span { display: block; }
  .keyword-table { font-size: 12px; }
  .keyword-table th, .keyword-table td { padding: 10px 8px; }
  .keyword-table th { font-size: 12px; }
  .knowledge-section { padding-top: 0; }
  .knowledge-scene { grid-template-columns: 1fr; }
  .knowledge-image { min-height: 0; height: 280px; }
  .knowledge-heading { padding: 28px 24px; }
  .system-section .section-intro { display: flex; flex-direction: column; align-items: stretch; gap: 26px; }
  .time-card { display: block; min-width: 0; width: 100%; padding: 0 !important; border: 0 !important; }
  .time-card > div { display: flex; align-items: baseline; gap: 10px; }
  .time-card strong { font-size: 42px; }
  .time-card span { font-size: 14px; }
  .time-card p { font-size: 14px; }
  .time-card small { max-width: none; font-size: 12px; }
  .demo-toolbar { padding: 10px 12px; gap: 10px; font-size: 12px; }
  .demo-toolbar button { font-size: 12px; padding: 6px 10px; flex-shrink: 0; }
  .process-grid { grid-template-columns: 1fr; gap: 0; }
  .process-grid summary { padding: 20px 0; gap: 12px; align-items: center; }
  .process-grid summary strong { font-size: 16px; max-width: none; }
  .process-grid .step { font-size: 20px; }
  .process-grid .fold-plus { margin-left: auto; }
  .process-grid details > p { font-size: 14px; }
  .system-section .fine-print { font-size: 12px; }
  .system-section .responsibility { font-size: 14px !important; padding: 20px; }
  .industry-tabs { gap: 14px; }
  .industry-tabs button img { height: 180px; }
  .industry-tabs button span { font-size: 13px; line-height: 1.7; padding: 12px; }
  .industry-copy { display: block; }
  .industry-copy > p:not(.eyebrow) { font-size: 14px; }
  .industry-copy h3 { font-size: 22px; }
  .delivery-layout { grid-template-columns: 1fr; gap: 30px; }
  .delivery-list { padding: 6px 22px 24px; }
  .delivery-layout .button { font-size: 14px; }
  .model-note p { font-size: 12px; }
  .faq-layout { display: block; }
  .faq-layout h2 { margin-bottom: 24px; }
  .faq-list summary { font-size: 16px; padding: 20px 8px; }
  .faq-list details > p { font-size: 14px; padding-inline: 8px; }
  .contact-section { padding: 16px 0 56px; }
  .contact-inner { display: grid; grid-template-columns: 1fr; }
  .contact-inner > div:first-child { padding: 32px 24px; }
  .contact-inner > div > p { font-size: 15px; }
  .contact-inner small { font-size: 12px; }
  .contact-photo { min-height: 0; height: 240px; }
  .footer-top { gap: 18px; }
  .footer-top > p, .footer-top > a:last-child { font-size: 12px; }
  .footer-bottom { font-size: 11px; line-height: 1.9; }
}
@media(prefers-reduced-motion:reduce) {
  html { scroll-behavior: auto; }
  .button:hover, .strategy-preview:hover, .hero-screen:hover { transform: none; }
}
