:root {
  --ink: #071a3b;
  --blue: #2458c7;
  --paper: #f4f0e7;
  --cream: #fffdf8;
  --line: rgba(7, 26, 59, 0.14);
  --muted: #667087;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: var(--paper); font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif; }
a { color: inherit; text-decoration: none; }
.wrap { width: min(100% - 40px, 1080px); margin-inline: auto; }

.hero { min-height: 720px; color: var(--cream); background: var(--ink); display: flex; flex-direction: column; overflow: hidden; position: relative; }
.hero::after { content: ""; width: 460px; height: 460px; position: absolute; right: -230px; top: 140px; border: 1px solid rgba(255,255,255,.15); border-radius: 50%; box-shadow: 0 0 0 70px rgba(255,255,255,.03), 0 0 0 140px rgba(255,255,255,.02); }
.nav { height: 82px; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid rgba(255,255,255,.14); position: relative; z-index: 1; }
.brand { font-size: 13px; letter-spacing: .18em; font-weight: 800; }
.status { font-size: 13px; color: #cfd8ec; display: flex; align-items: center; gap: 8px; }
.status i { width: 8px; height: 8px; background: #65d890; border-radius: 50%; box-shadow: 0 0 0 5px rgba(101,216,144,.12); }
.heroContent { flex: 1; display: flex; flex-direction: column; justify-content: center; position: relative; z-index: 1; padding-block: 70px; }
.eyebrow, .sectionNo { margin: 0 0 22px; color: var(--blue); font-size: 12px; letter-spacing: .18em; font-weight: 800; }
.hero .eyebrow { color: #8eaff8; }
h1 { margin: 0; font-size: clamp(48px, 11vw, 94px); line-height: .98; letter-spacing: -.055em; max-width: 800px; }
.lead { max-width: 600px; color: #b9c5dc; font-size: clamp(17px, 3vw, 21px); line-height: 1.8; margin: 30px 0 34px; }
.primary { width: fit-content; min-height: 54px; padding: 0 22px; border-radius: 6px; background: var(--cream); color: var(--ink); display: inline-flex; align-items: center; gap: 36px; font-weight: 750; }
.primary span { font-size: 19px; }
.heroNote { min-height: 74px; border-top: 1px solid rgba(255,255,255,.14); display: flex; align-items: center; gap: 32px; color: #91a0bb; font-size: 12px; position: relative; z-index: 1; }

.section { padding-block: 100px; }
.sectionHead { margin-bottom: 48px; }
.sectionHead h2 { font-size: clamp(35px, 7vw, 60px); line-height: 1.12; letter-spacing: -.045em; margin: 0; }
.plans { display: grid; gap: 14px; }
.plan { background: var(--cream); border: 1px solid var(--line); border-radius: 16px; padding: 28px; }
.plan.featured { color: var(--cream); background: var(--blue); border-color: var(--blue); }
.planTop { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; }
.planName { margin: 0 0 10px; font-size: 26px; letter-spacing: -.03em; font-weight: 850; }
.tag { display: inline-block; font-size: 11px; border: 1px solid currentColor; border-radius: 999px; padding: 4px 8px; opacity: .7; }
.price { margin: 0; font-size: clamp(42px, 8vw, 60px); line-height: 1; letter-spacing: -.06em; font-weight: 820; white-space: nowrap; }
.price small { font-size: .34em; letter-spacing: 0; }
.planDescription { margin: 28px 0 0; padding-top: 22px; border-top: 1px solid var(--line); font-size: 15px; line-height: 1.75; color: var(--muted); }
.featured .planDescription { color: #dbe5ff; border-color: rgba(255,255,255,.24); }
.quietAdvice { margin: 18px 0 0; padding: 18px 20px; background: #e8e2d5; border-radius: 10px; line-height: 1.65; font-size: 14px; }

.processSection { background: var(--ink); color: var(--cream); }
.sectionHead.light .sectionNo { color: #8eaff8; }
.steps { list-style: none; margin: 0; padding: 0; }
.steps li { display: grid; grid-template-columns: 48px 1fr; gap: 18px; padding: 28px 0; border-top: 1px solid rgba(255,255,255,.16); }
.steps li > span { width: 36px; height: 36px; border: 1px solid #6b8eda; border-radius: 50%; display: grid; place-items: center; color: #9db8f2; font-size: 13px; }
.steps b { display: block; font-size: 21px; margin-bottom: 9px; }
.steps p { margin: 0; color: #aab7cf; font-size: 15px; line-height: 1.7; }

.boundaryGrid { display: grid; gap: 14px; }
.boundaryGrid article { border-radius: 16px; padding: 28px; }
.boundaryGrid article > span { font-size: 13px; font-weight: 800; letter-spacing: .1em; }
.boundaryGrid ul { list-style: none; padding: 0; margin: 28px 0 0; display: grid; gap: 15px; }
.boundaryGrid li { padding-left: 25px; position: relative; line-height: 1.55; }
.boundaryGrid li::before { position: absolute; left: 0; }
.yes { background: #e4eee6; }
.yes li::before { content: "✓"; color: #317045; }
.no { background: #e9e3db; }
.no li::before { content: "—"; color: #8d6752; }

.contactSection { background: #d9e5ff; }
.contactCard { display: grid; gap: 40px; align-items: center; }
.contactCopy h2 { font-size: clamp(35px, 7vw, 56px); line-height: 1.12; letter-spacing: -.045em; margin: 0; }
.contactCopy > p:not(.sectionNo) { color: #43516c; line-height: 1.8; margin: 24px 0; }
.privacy { font-size: 13px; line-height: 1.65; padding: 14px 16px; border-left: 3px solid var(--blue); background: rgba(255,255,255,.44); }
.qrBox { width: min(100%, 360px); justify-self: center; background: white; padding: 20px 20px 22px; border-radius: 18px; text-align: center; box-shadow: 0 20px 60px rgba(7,26,59,.12); }
.qrBox img { display: block; width: 100%; aspect-ratio: 1; object-fit: contain; }
.qrBox b { display: block; font-size: 18px; margin-top: 8px; }
.qrBox span { display: block; margin-top: 8px; color: var(--muted); font-size: 12px; }

.faqList { border-top: 1px solid var(--line); }
.faqList details { border-bottom: 1px solid var(--line); }
.faqList summary { list-style: none; cursor: pointer; min-height: 72px; display: flex; align-items: center; justify-content: space-between; gap: 18px; font-size: 17px; font-weight: 720; }
.faqList summary::-webkit-details-marker { display: none; }
.faqList summary span { font-size: 25px; font-weight: 300; transition: transform .2s ease; }
.faqList details[open] summary span { transform: rotate(45deg); }
.faqList details p { margin: -4px 0 24px; color: var(--muted); line-height: 1.75; font-size: 15px; padding-right: 35px; }

footer { background: var(--ink); color: var(--cream); padding: 64px 0 112px; }
footer b { letter-spacing: .15em; font-size: 13px; }
footer p { margin: 22px 0 10px; font-size: 18px; }
footer span { color: #8290aa; font-size: 12px; }
.mobileBar { position: fixed; z-index: 20; bottom: max(10px, env(safe-area-inset-bottom)); left: 12px; right: 12px; height: 62px; display: grid; grid-template-columns: .8fr 1.2fr; padding: 6px; gap: 6px; background: rgba(255,255,255,.9); border: 1px solid rgba(7,26,59,.12); box-shadow: 0 14px 40px rgba(7,26,59,.22); backdrop-filter: blur(16px); border-radius: 14px; }
.mobileBar a { display: grid; place-items: center; border-radius: 9px; font-size: 14px; font-weight: 780; }
.secondary { background: #ece8df; }
.barPrimary { background: var(--blue); color: white; }
#contact { position: relative; top: -80px; }

@media (min-width: 760px) {
  .wrap { width: min(100% - 80px, 1080px); }
  .plans { grid-template-columns: repeat(3, 1fr); }
  .planTop { display: block; }
  .price { margin-top: 34px; }
  .boundaryGrid { grid-template-columns: 1fr 1fr; }
  .contactCard { grid-template-columns: 1.2fr .8fr; }
  .mobileBar { display: none; }
  footer { padding-bottom: 64px; }
}

@media (max-width: 480px) {
  .hero { min-height: 680px; }
  .heroNote { gap: 12px; justify-content: space-between; }
  .heroNote span { max-width: 30%; line-height: 1.4; }
  .section { padding-block: 76px; }
  .plan { padding: 22px; }
  .planName { font-size: 22px; }
  .price { font-size: 42px; }
}

@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

/* Entry portal */
.portalBody { background: var(--ink); color: var(--cream); min-height: 100vh; }
.portal { min-height: 100vh; display: flex; flex-direction: column; background: radial-gradient(circle at 92% 18%, rgba(49,97,205,.22), transparent 34%), var(--ink); }
.portalHero { flex: 1; display: flex; flex-direction: column; justify-content: center; padding-block: 64px 72px; }
.portalHero h1 { font-size: clamp(46px, 12vw, 88px); }
.portalHero .lead { margin-bottom: 36px; }
.routeCards { display: grid; gap: 14px; }
.routeCard { min-height: 242px; padding: 24px; border-radius: 18px; display: flex; flex-direction: column; justify-content: space-between; transition: transform .2s ease; }
.routeCard:active { transform: scale(.985); }
.routeConsult { background: var(--cream); color: var(--ink); }
.routePaid { background: var(--blue); color: white; }
.routeIndex { font-size: 12px; font-weight: 800; letter-spacing: .16em; opacity: .55; }
.routeCard small { font-size: 12px; opacity: .65; }
.routeCard h2 { margin: 7px 0 10px; font-size: 34px; letter-spacing: -.04em; }
.routeCard p { margin: 0; max-width: 390px; font-size: 14px; line-height: 1.65; opacity: .7; }
.routeCard > b { font-size: 14px; }
.portalFooter { min-height: 74px; padding-block: 20px; border-top: 1px solid rgba(255,255,255,.14); display: flex; flex-wrap: wrap; gap: 8px 30px; justify-content: space-between; color: #93a1bc; font-size: 12px; }
.backLink { font-size: 13px; color: #cbd5e8; font-weight: 700; }

/* Paid guide */
.guideBody { background: var(--cream); }
.guideHeader { color: var(--cream); background: var(--ink); }
.guideBadge { border: 1px solid rgba(255,255,255,.32); border-radius: 999px; padding: 6px 10px; font-size: 11px; }
.guideIntro { padding-block: 72px 88px; }
.guideIntro h1 { max-width: 850px; }
.guideIntro .lead { margin-bottom: 0; }
.guideProgress { position: sticky; top: 0; z-index: 10; background: rgba(255,253,248,.94); border-bottom: 1px solid var(--line); backdrop-filter: blur(16px); }
.progressInner { height: 56px; display: flex; align-items: center; justify-content: space-between; gap: 8px; color: var(--muted); font-size: 12px; font-weight: 760; }
.guideStep { padding-block: 86px; scroll-margin-top: 56px; }
.stepHeading { display: grid; grid-template-columns: 46px 1fr; gap: 16px; align-items: start; margin-bottom: 28px; }
.stepHeading > span { width: 38px; height: 38px; display: grid; place-items: center; border: 1px solid var(--blue); border-radius: 50%; color: var(--blue); font-size: 12px; font-weight: 800; }
.stepHeading p { margin: 0 0 7px; color: var(--blue); font-size: 11px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; }
.stepHeading h2 { margin: 0; font-size: clamp(29px, 7vw, 48px); line-height: 1.15; letter-spacing: -.04em; }
.stepLead { color: var(--muted); line-height: 1.75; margin: 0 0 24px 62px; max-width: 620px; }
.sourcePicker { margin-left: 62px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.source { min-height: 52px; border: 1px solid var(--line); background: white; color: var(--ink); border-radius: 10px; font: inherit; font-size: 13px; font-weight: 750; cursor: pointer; }
.source.active { background: var(--blue); color: white; border-color: var(--blue); }
.infoCard { margin: 18px 0 0 62px; padding: 22px; border-radius: 14px; background: var(--paper); }
.infoCard b { font-size: 14px; }
.infoCard ul { margin: 16px 0 0; padding-left: 20px; color: var(--muted); line-height: 1.9; font-size: 14px; }
.minorNote { color: var(--muted); font-size: 13px; line-height: 1.7; margin: 18px 0 0 62px; }
.guideAlt { background: var(--paper); }
.actionList { border-top: 1px solid var(--line); }
.actionRow { min-height: 96px; display: grid; grid-template-columns: 38px 1fr auto; align-items: center; gap: 16px; border-bottom: 1px solid var(--line); }
.actionRow > span { width: 32px; height: 32px; display: grid; place-items: center; border-radius: 8px; background: white; font-size: 12px; font-weight: 800; }
.actionRow b { font-size: 16px; }
.actionRow p { margin: 6px 0 0; color: var(--muted); font-size: 13px; line-height: 1.55; }
.actionRow i { font-style: normal; color: var(--blue); }
.pathGrid { display: grid; gap: 12px; margin-left: 62px; }
.pathCard { padding: 24px; border: 1px solid var(--line); border-radius: 15px; background: white; }
.pathCard > span { font-size: 11px; font-weight: 800; color: var(--blue); letter-spacing: .1em; }
.pathCard h3 { margin: 12px 0 10px; font-size: 22px; }
.pathCard p { margin: 0 0 22px; color: var(--muted); line-height: 1.65; font-size: 14px; }
.pathCard a { font-size: 14px; font-weight: 800; color: var(--blue); }
.primaryPath { background: var(--ink); color: white; }
.primaryPath p { color: #aebbd2; }
.primaryPath a, .primaryPath > span { color: #9bb8ff; }
.pathActions { display: flex; flex-wrap: wrap; gap: 10px 16px; align-items: center; }
.pathActions .jsonButton { display: inline-flex; min-height: 42px; align-items: center; padding: 0 14px; border-radius: 8px; color: var(--ink); background: white; }
.securityNotice { margin: 18px 0 0 62px; padding: 18px 20px; border-left: 3px solid #d49b54; background: #f5eadb; }
.securityNotice b { font-size: 13px; }
.securityNotice p { margin: 7px 0 0; color: #745b40; font-size: 13px; line-height: 1.7; }
.submitSection { background: var(--blue); color: white; }
.submitGrid { display: grid; gap: 38px; align-items: center; }
.lightStep > span { color: white; border-color: rgba(255,255,255,.5); }
.lightStep p { color: #c7d6ff; }
.submitCopy > p { margin: 0 0 24px 62px; color: #d9e3ff; line-height: 1.75; }
.submitQr { margin-left: 62px; display: flex; gap: 16px; align-items: center; }
.submitQr img { width: 116px; height: 116px; object-fit: contain; border-radius: 10px; background: white; }
.submitQr b, .submitQr span { display: block; }
.submitQr span { margin-top: 7px; font-size: 12px; color: #d1ddff; }
.templateCard { color: var(--ink); background: white; padding: 20px; border-radius: 16px; box-shadow: 0 20px 50px rgba(7,26,59,.18); }
.templateHead { display: flex; justify-content: space-between; align-items: center; border-bottom: 1px solid var(--line); padding-bottom: 14px; }
.templateHead span { font-size: 13px; font-weight: 800; }
.templateHead button { border: 0; border-radius: 8px; padding: 9px 13px; background: var(--ink); color: white; font: inherit; font-size: 12px; font-weight: 750; }
.templateCard pre { white-space: pre-wrap; margin: 18px 0 0; font: 14px/1.9 -apple-system, BlinkMacSystemFont, "PingFang SC", sans-serif; color: #45516a; }
#copyStatus { min-height: 20px; margin: 10px 0 0; color: #32724b; font-size: 12px; }
.finishFlow { margin-left: 62px; display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.finishFlow span { padding: 10px 12px; border-radius: 8px; background: var(--paper); font-size: 13px; font-weight: 740; }
.finishFlow i { font-style: normal; color: #9aa3b4; }

@media (min-width: 760px) {
  .routeCards { grid-template-columns: 1fr 1fr; }
  .routeCard { min-height: 300px; padding: 32px; }
  .pathGrid { grid-template-columns: 1fr 1fr; }
  .submitGrid { grid-template-columns: 1.05fr .95fr; }
}

@media (max-width: 520px) {
  .portalHero { padding-block: 50px 64px; }
  .portalHero .lead { font-size: 16px; }
  .routeCard { min-height: 220px; }
  .guideIntro { padding-block: 58px 72px; }
  .guideIntro h1 { font-size: 46px; }
  .progressInner { font-size: 11px; }
  .guideStep { padding-block: 70px; }
  .stepLead, .sourcePicker, .infoCard, .minorNote, .pathGrid, .securityNotice, .submitCopy > p, .submitQr, .finishFlow { margin-left: 0; }
  .sourcePicker { grid-template-columns: 1fr; }
  .submitQr { align-items: flex-start; }
}
