:root {
  --white: #ffffff;
  --page: #ffffff;
  --muted-bg: #f6f6f4;
  --border: #deded9;
  --border-strong: #c9c9c2;
  --text: #20211f;
  --muted: #676a65;
  --orange: #ff6d00;
  --orange-dark: #d95800;
  --orange-soft: #fff2e8;
  --green: #0f8a4b;
  --green-dark: #086b39;
  --green-soft: #edf8f1;
  --dark: #252623;
  --container: 1180px;
  --radius: 6px;
  --shadow: 0 5px 18px rgba(25, 26, 23, .08);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 86px; }
body {
  margin: 0;
  color: var(--text);
  background: var(--page);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
img, svg { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }
button, a, summary, input, select, textarea { -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 3px solid rgba(15, 138, 75, .28); outline-offset: 2px; }

.container { width: min(calc(100% - 40px), var(--container)); margin-inline: auto; }
.section { padding: 76px 0; }
.section-muted { background: var(--muted-bg); border-block: 1px solid #efefeb; }
.skip-link { position: fixed; top: 8px; left: 8px; z-index: 9999; padding: 10px 14px; background: var(--dark); color: #fff; transform: translateY(-140%); }
.skip-link:focus { transform: none; }
.sr-only { position:absolute; width:1px; height:1px; padding:0; margin:-1px; overflow:hidden; clip:rect(0,0,0,0); white-space:nowrap; border:0; }

.utility-bar { background: var(--orange); color: #fff; font-size: 12px; }
.utility-inner { min-height: 34px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.utility-inner p { margin: 0; }
.utility-inner nav { display: flex; gap: 18px; }
.utility-inner a { text-decoration: underline; text-underline-offset: 2px; }

.site-header { position: sticky; top: 0; z-index: 100; background: rgba(255,255,255,.98); border-bottom: 1px solid var(--border); }
.header-inner { min-height: 70px; display: flex; align-items: center; justify-content: space-between; gap: 30px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; white-space: nowrap; }
.brand-mark { display: inline-grid; place-items: center; width: 35px; height: 35px; background: var(--orange); color: #fff; font-size: 13px; font-weight: 700; }
.brand-text strong { color: var(--green); }
.primary-nav { display: flex; align-items: center; gap: 26px; font-size: 14px; font-weight: 700; }
.primary-nav > a:not(.nav-cta):hover { color: var(--orange-dark); }
.nav-cta { padding: 10px 16px; border: 1px solid var(--orange); color: var(--orange-dark); }
.nav-cta:hover { background: var(--orange-soft); }
.nav-toggle { display: none; width: 42px; height: 42px; border: 1px solid var(--border); background: #fff; align-items: center; justify-content: center; flex-direction: column; gap: 4px; }
.nav-toggle span:not(.sr-only) { width: 20px; height: 2px; background: var(--dark); }

.hero { padding: 68px 0 72px; background: #fff; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(340px, .72fr); gap: 68px; align-items: center; }
.overline { margin: 0 0 13px; color: var(--green-dark); font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
h1, h2, h3, p { margin-top: 0; }
h1 { max-width: 760px; margin-bottom: 20px; font-size: clamp(40px, 5.2vw, 66px); line-height: 1.02; letter-spacing: -.035em; }
h2 { margin-bottom: 16px; font-size: clamp(30px, 3.5vw, 44px); line-height: 1.1; letter-spacing: -.025em; }
h3 { margin-bottom: 8px; font-size: 21px; line-height: 1.2; }
.hero-lead { max-width: 770px; margin-bottom: 26px; color: #4f524d; font-size: 20px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 30px; }
.button { display: inline-flex; min-height: 48px; align-items: center; justify-content: center; padding: 0 20px; border: 1px solid transparent; border-radius: 3px; font-weight: 700; cursor: pointer; transition: background .15s ease, border-color .15s ease, color .15s ease; }
.button-primary { background: var(--orange); color: #fff; border-color: var(--orange); }
.button-primary:hover { background: var(--orange-dark); border-color: var(--orange-dark); }
.button-ghost { background: #fff; color: var(--text); border-color: var(--border-strong); }
.button-ghost:hover { border-color: var(--text); }
.button-dark { background: var(--dark); color: #fff; border-color: var(--dark); }
.button-block { width: 100%; }
.hero-points { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 20px; margin: 0; padding: 0; list-style: none; color: var(--muted); font-size: 14px; }
.hero-points li { position: relative; padding-left: 21px; }
.hero-points li::before { content: "✓"; position: absolute; left: 0; color: var(--green); font-weight: 700; }

.hero-picker { border: 1px solid var(--border); background: #fafaf8; box-shadow: var(--shadow); }
.hero-picker > * { margin-left: 26px; margin-right: 26px; }
.hero-picker::before { content: ""; display: block; height: 6px; background: var(--orange); }
.picker-label { margin-top: 24px; margin-bottom: 8px; color: var(--green-dark); font-size: 12px; font-weight: 700; text-transform: uppercase; }
.hero-picker h2 { margin-bottom: 20px; font-size: 28px; }
.quick-picker { margin: 0 26px; padding-bottom: 24px; }
.quick-picker label { display: block; margin: 13px 0 6px; font-size: 13px; font-weight: 700; }
.quick-picker select { width: 100%; height: 45px; padding: 0 10px; border: 1px solid var(--border-strong); border-radius: 2px; background: #fff; }
.quick-picker .button { margin-top: 18px; }
.picker-note { margin-top: 0; margin-bottom: 22px; padding-top: 16px; border-top: 1px solid var(--border); color: var(--muted); font-size: 12px; }

.benefit-bar { border-block: 1px solid var(--border); background: var(--muted-bg); }
.benefit-grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.benefit-grid > div { min-height: 100px; padding: 22px 24px; border-right: 1px solid var(--border); }
.benefit-grid > div:last-child { border-right: 0; }
.benefit-grid strong, .benefit-grid span { display: block; }
.benefit-grid strong { margin-bottom: 5px; font-size: 15px; }
.benefit-grid span { color: var(--muted); font-size: 13px; }

.section-head { max-width: 820px; margin-bottom: 36px; }
.section-head.centered { margin-inline: auto; text-align: center; }
.section-head.narrow { max-width: 760px; }
.section-head > p:last-child { margin-bottom: 0; color: var(--muted); font-size: 18px; }

.plan-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; align-items: stretch; }
.plan { position: relative; display: flex; flex-direction: column; min-height: 430px; padding: 28px; border: 1px solid var(--border); background: #fff; }
.plan-featured { border: 2px solid var(--orange); padding: 27px; }
.plan-badge { position: absolute; top: -26px; left: -2px; right: -2px; height: 26px; margin: 0; padding: 5px 12px; background: var(--orange); color: #fff; text-align: center; font-size: 11px; font-weight: 700; text-transform: uppercase; }
.plan-label { margin-bottom: 12px; color: var(--green-dark); font-size: 11px; font-weight: 700; letter-spacing: .08em; }
.plan h3 { font-size: 28px; }
.plan-summary { min-height: 78px; color: var(--muted); }
.plan ul { flex: 1; margin: 8px 0 24px; padding: 0; list-style: none; border-top: 1px solid var(--border); }
.plan li { position: relative; padding: 10px 0 10px 21px; border-bottom: 1px solid #eeeeea; color: #4f524e; font-size: 14px; }
.plan li::before { content: "✓"; position: absolute; left: 0; color: var(--green); }

.included { margin-top: 58px; }
.included > h3 { margin-bottom: 22px; font-size: 24px; }
.included-grid { display: grid; grid-template-columns: repeat(2, 1fr); border: 1px solid var(--border); }
.included-grid article { display: grid; grid-template-columns: 44px 1fr; gap: 18px; padding: 24px; border-right: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.included-grid article:nth-child(even) { border-right: 0; }
.included-grid article:nth-last-child(-n+2) { border-bottom: 0; }
.service-icon { display: grid; place-items: center; width: 38px; height: 38px; background: var(--green-soft); color: var(--green-dark); font-size: 12px; font-weight: 700; }
.included-grid h3 { margin-bottom: 5px; font-size: 18px; }
.included-grid p { margin-bottom: 5px; color: var(--muted); font-size: 14px; }
.included-grid small { color: #777a74; }

.market-table { border: 1px solid var(--border); background: #fff; }
.market-table article { display: grid; grid-template-columns: 58px minmax(0, 1fr) auto; gap: 20px; align-items: center; padding: 22px 24px; border-bottom: 1px solid var(--border); }
.market-table article:last-child { border-bottom: 0; }
.market-code { display: grid; place-items: center; width: 42px; height: 42px; background: var(--green-soft); color: var(--green-dark); font-size: 12px; font-weight: 700; }
.market-copy h3 { margin-bottom: 4px; font-size: 18px; }
.market-copy p { margin: 0; color: var(--muted); font-size: 14px; }
.market-table a { color: var(--orange-dark); font-size: 13px; font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }
.legal-note { margin: 22px 0 0; padding: 15px 18px; border-left: 4px solid var(--orange); background: #fff; color: var(--muted); font-size: 13px; }

.why-grid { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--border); border-left: 1px solid var(--border); }
.why-grid article { min-height: 185px; padding: 24px; border-right: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.why-grid article > span { display: inline-grid; place-items: center; width: 26px; height: 26px; margin-bottom: 22px; background: var(--green); color: #fff; font-size: 13px; }
.why-grid h3 { font-size: 18px; }
.why-grid p { margin-bottom: 0; color: var(--muted); font-size: 14px; }
.inline-cta { margin-top: 26px; padding: 22px 24px; display: flex; align-items: center; justify-content: space-between; gap: 24px; background: var(--orange-soft); border: 1px solid #ffd7bc; }
.inline-cta strong, .inline-cta span { display: block; }
.inline-cta span { margin-top: 3px; color: var(--muted); font-size: 13px; }

.architecture-section { background: #fff; }
.architecture-box { border: 1px solid var(--border-strong); }
.architecture-main { display: grid; grid-template-columns: repeat(11, auto); gap: 10px; align-items: center; padding: 32px; background: var(--muted-bg); overflow-x: auto; }
.architecture-main div { min-width: 118px; padding: 18px 14px; border: 1px solid var(--border-strong); background: #fff; text-align: center; font-size: 14px; font-weight: 700; white-space: nowrap; }
.architecture-main .db { border-color: var(--green); background: var(--green-soft); color: var(--green-dark); }
.architecture-main > span { color: var(--orange); font-weight: 700; }
.architecture-secondary { display: flex; flex-wrap: wrap; gap: 0; border-top: 1px solid var(--border); }
.architecture-secondary span { flex: 1 1 150px; padding: 14px 18px; border-right: 1px solid var(--border); text-align: center; color: var(--muted); font-size: 13px; }
.architecture-secondary span:last-child { border-right: 0; }

.table-wrap { overflow-x: auto; border: 1px solid var(--border); background: #fff; }
table { width: 100%; min-width: 720px; border-collapse: collapse; }
caption { padding: 15px 18px; text-align: left; color: var(--muted); font-size: 12px; }
th, td { padding: 16px 18px; border-top: 1px solid var(--border); text-align: left; }
thead th { background: #ecece8; font-size: 13px; }
tbody th { font-weight: 700; }
tbody td { color: #51544f; }

.steps { display: grid; grid-template-columns: repeat(5, 1fr); margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--border); border-left: 1px solid var(--border); }
.steps li { min-height: 240px; padding: 24px; border-right: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.steps > li > span { display: block; margin-bottom: 42px; color: var(--orange); font-size: 26px; font-weight: 700; }
.steps h3 { font-size: 17px; }
.steps p { margin: 0; color: var(--muted); font-size: 13px; }

.faq-section { background: var(--muted-bg); border-block: 1px solid #efefeb; }
.faq-grid { display: grid; grid-template-columns: .75fr 1.25fr; gap: 70px; }
.faq-list { border-top: 1px solid var(--border-strong); }
.faq-list details { border-bottom: 1px solid var(--border-strong); }
.faq-list summary { position: relative; padding: 19px 42px 19px 0; cursor: pointer; font-weight: 700; list-style: none; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after { content: "+"; position: absolute; right: 4px; top: 13px; color: var(--orange); font-size: 26px; font-weight: 400; }
.faq-list details[open] summary::after { content: "−"; }
.faq-list details p { margin: 0; padding: 0 40px 20px 0; color: var(--muted); font-size: 14px; }

.contact-section { background: #fff; }
.contact-grid { display: grid; grid-template-columns: .78fr 1.22fr; gap: 64px; align-items: start; }
.contact-copy > p:last-of-type { color: var(--muted); font-size: 17px; }
.request-list { margin: 28px 0 0; border-top: 1px solid var(--border); }
.request-list > div { display: grid; grid-template-columns: 44px 1fr; gap: 14px; padding: 13px 0; border-bottom: 1px solid var(--border); }
.request-list dt { color: var(--orange); font-size: 12px; font-weight: 700; }
.request-list dd { margin: 0; font-weight: 700; }
.lead-form { padding: 28px; border: 1px solid var(--border-strong); background: #fafaf8; }
.form-row { margin-bottom: 16px; }
.form-row.two-cols { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.form-row label { display: block; margin-bottom: 5px; font-size: 12px; font-weight: 700; }
.form-row input, .form-row select, .form-row textarea { width: 100%; border: 1px solid var(--border-strong); border-radius: 2px; background: #fff; padding: 11px 12px; color: var(--text); }
.form-row input, .form-row select { height: 44px; }
.form-row textarea { min-height: 120px; resize: vertical; }
.form-row input:focus, .form-row select:focus, .form-row textarea:focus { outline: 2px solid rgba(15,138,75,.16); border-color: var(--green); }
.consent { display: flex; gap: 9px; align-items: flex-start; margin: 2px 0 18px; color: var(--muted); font-size: 12px; }
.consent input { margin-top: 3px; }
.form-note, .form-status { margin: 10px 0 0; color: var(--muted); font-size: 11px; }
.form-status.success { color: var(--green-dark); font-weight: 700; }

.closing-cta { padding: 52px 0; background: var(--orange); color: #fff; }
.closing-inner { display: flex; justify-content: space-between; align-items: center; gap: 36px; }
.closing-cta .overline { color: rgba(255,255,255,.8); }
.closing-cta h2 { max-width: 800px; margin-bottom: 0; font-size: clamp(28px, 3vw, 40px); }

.site-footer { background: #f2f2ef; border-top: 1px solid var(--border); }
.footer-top { display: grid; grid-template-columns: 1.35fr repeat(3, 1fr); gap: 44px; padding: 50px 0; }
.footer-brand-block p { max-width: 310px; margin: 14px 0 0; color: var(--muted); font-size: 13px; }
.footer-nav { display: grid; align-content: start; gap: 9px; font-size: 13px; }
.footer-nav strong { margin-bottom: 5px; font-size: 13px; }
.footer-nav a { color: var(--muted); }
.footer-nav a:hover { color: var(--orange-dark); }
.footer-bottom { border-top: 1px solid var(--border); }
.footer-bottom-inner { min-height: 62px; display: flex; justify-content: space-between; align-items: center; gap: 20px; }
.footer-bottom p { margin: 0; color: var(--muted); font-size: 11px; }

@media (max-width: 980px) {
  .utility-inner nav { display: none; }
  .nav-toggle { display: flex; }
  .primary-nav { position: absolute; top: 70px; left: 20px; right: 20px; display: none; flex-direction: column; align-items: stretch; gap: 0; padding: 8px; border: 1px solid var(--border); background: #fff; box-shadow: var(--shadow); }
  .primary-nav.is-open { display: flex; }
  .primary-nav a { padding: 12px 10px; border-bottom: 1px solid #eeeeea; }
  .primary-nav a:last-child { border-bottom: 0; }
  .nav-cta { border: 0; color: var(--orange-dark); }
  .hero-grid, .contact-grid, .faq-grid { grid-template-columns: 1fr; gap: 42px; }
  .hero-picker { max-width: 640px; }
  .benefit-grid { grid-template-columns: repeat(2, 1fr); }
  .benefit-grid > div:nth-child(2) { border-right: 0; }
  .benefit-grid > div:nth-child(-n+2) { border-bottom: 1px solid var(--border); }
  .plan-grid { grid-template-columns: 1fr; gap: 30px; }
  .plan { min-height: 0; }
  .plan-summary { min-height: 0; }
  .why-grid { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .footer-top { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 680px) {
  .container { width: min(calc(100% - 24px), var(--container)); }
  .section { padding: 58px 0; }
  .utility-inner { min-height: 30px; justify-content: center; text-align: center; }
  .utility-inner p { font-size: 10px; }
  .header-inner { min-height: 62px; }
  .brand-text { font-size: 14px; }
  .brand-mark { width: 32px; height: 32px; }
  .primary-nav { top: 62px; left: 12px; right: 12px; }
  .hero { padding: 48px 0 56px; }
  .hero-grid { gap: 34px; }
  h1 { font-size: clamp(38px, 11vw, 52px); }
  h2 { font-size: 31px; }
  .hero-lead { font-size: 18px; }
  .hero-actions { flex-direction: column; }
  .hero-actions .button { width: 100%; }
  .hero-points { grid-template-columns: 1fr; }
  .hero-picker > *, .quick-picker { margin-left: 18px; margin-right: 18px; }
  .benefit-grid { grid-template-columns: 1fr; }
  .benefit-grid > div { min-height: 0; border-right: 0; border-bottom: 1px solid var(--border); }
  .benefit-grid > div:last-child { border-bottom: 0; }
  .included-grid, .why-grid, .steps, .footer-top { grid-template-columns: 1fr; }
  .included-grid article { border-right: 0; }
  .included-grid article:nth-last-child(-n+2) { border-bottom: 1px solid var(--border); }
  .included-grid article:last-child { border-bottom: 0; }
  .market-table article { grid-template-columns: 48px 1fr; gap: 12px; padding: 18px; }
  .market-table a { grid-column: 2; }
  .inline-cta, .closing-inner, .footer-bottom-inner { flex-direction: column; align-items: flex-start; }
  .inline-cta .button { width: 100%; }
  .architecture-main { grid-template-columns: 1fr; padding: 18px; overflow: visible; }
  .architecture-main > span { justify-self: center; transform: rotate(90deg); }
  .architecture-main div { width: 100%; }
  .architecture-secondary span { flex-basis: 100%; border-right: 0; border-bottom: 1px solid var(--border); }
  .architecture-secondary span:last-child { border-bottom: 0; }
  .form-row.two-cols { grid-template-columns: 1fr; gap: 0; }
  .lead-form { padding: 20px; }
  .closing-cta .button { width: 100%; }
  .footer-top { gap: 28px; }
  .footer-bottom-inner { padding: 18px 0; gap: 5px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}

/* Internal pages */
.breadcrumbs { border-bottom: 1px solid var(--border); background: #fafaf8; }
.breadcrumbs ol { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 11px 0; list-style: none; color: var(--muted); font-size: 12px; }
.breadcrumbs li { display: inline-flex; align-items: center; gap: 8px; }
.breadcrumbs li:not(:last-child)::after { content: "/"; color: #a4a69f; }
.breadcrumbs a { text-decoration: underline; text-underline-offset: 2px; }

.page-hero { padding: 58px 0 62px; border-bottom: 1px solid var(--border); background: #fff; }
.page-hero-grid { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(300px, .58fr); gap: 64px; align-items: start; }
.page-hero h1 { max-width: 840px; font-size: clamp(38px, 5vw, 60px); }
.page-hero .hero-lead { max-width: 830px; }
.page-summary { border-top: 6px solid var(--orange); background: var(--muted-bg); padding: 22px 24px; }
.page-summary h2 { margin-bottom: 12px; font-size: 22px; }
.page-summary ul { margin: 0; padding: 0; list-style: none; }
.page-summary li { position: relative; padding: 8px 0 8px 22px; border-top: 1px solid var(--border); color: #4e514d; font-size: 13px; }
.page-summary li:first-child { border-top: 0; }
.page-summary li::before { content: "✓"; position: absolute; left: 0; color: var(--green); font-weight: 700; }

.anchor-nav { border-bottom: 1px solid var(--border); background: var(--muted-bg); }
.anchor-nav .container { display: flex; gap: 0; overflow-x: auto; }
.anchor-nav a { flex: 0 0 auto; padding: 14px 17px; border-right: 1px solid var(--border); color: #52554f; font-size: 13px; font-weight: 700; white-space: nowrap; }
.anchor-nav a:first-child { border-left: 1px solid var(--border); }
.anchor-nav a:hover { background: #fff; color: var(--orange-dark); }

.content-grid { display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(250px, .55fr); gap: 60px; align-items: start; }
.prose { max-width: 820px; }
.prose h2 { margin-top: 0; }
.prose h3 { margin-top: 30px; }
.prose p, .prose li { color: #50534e; }
.prose ul, .prose ol { padding-left: 22px; }
.prose strong { color: var(--text); }

.sidebar-note { position: sticky; top: 96px; border: 1px solid var(--border); background: #fafaf8; }
.sidebar-note > div { padding: 20px; border-bottom: 1px solid var(--border); }
.sidebar-note > div:last-child { border-bottom: 0; }
.sidebar-note h3 { font-size: 15px; }
.sidebar-note p { margin: 0; color: var(--muted); font-size: 13px; }
.sidebar-note a { color: var(--orange-dark); text-decoration: underline; text-underline-offset: 3px; font-size: 13px; font-weight: 700; }

.service-list { border-top: 1px solid var(--border-strong); }
.service-row { display: grid; grid-template-columns: 180px minmax(0, 1fr); gap: 34px; padding: 34px 0; border-bottom: 1px solid var(--border); }
.service-row .service-number { color: var(--orange); font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.service-row h2 { margin-bottom: 10px; font-size: 30px; }
.service-row p { max-width: 780px; color: var(--muted); }
.service-features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; margin-top: 20px; border: 1px solid var(--border); }
.service-features div { padding: 15px 16px; border-right: 1px solid var(--border); }
.service-features div:last-child { border-right: 0; }
.service-features strong, .service-features span { display: block; }
.service-features strong { margin-bottom: 3px; font-size: 13px; }
.service-features span { color: var(--muted); font-size: 12px; }

.decision-grid { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--border); border-left: 1px solid var(--border); }
.decision-grid article { padding: 24px; border-right: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.decision-grid .label { color: var(--green-dark); font-size: 11px; font-weight: 700; text-transform: uppercase; }
.decision-grid p { margin: 0; color: var(--muted); font-size: 14px; }

.market-index { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--border); border-left: 1px solid var(--border); }
.market-index a { min-height: 150px; padding: 22px; border-right: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.market-index strong { display: block; margin: 16px 0 5px; font-size: 18px; }
.market-index span:last-child { display: block; color: var(--muted); font-size: 13px; }
.market-index a:hover { background: var(--orange-soft); }

.market-detail { scroll-margin-top: 105px; padding: 44px 0; border-bottom: 1px solid var(--border); }
.market-detail:last-child { border-bottom: 0; }
.market-detail-head { display: grid; grid-template-columns: 72px minmax(0, 1fr); gap: 22px; align-items: start; }
.market-detail .market-code { width: 56px; height: 56px; }
.market-detail h2 { margin-bottom: 8px; font-size: 34px; }
.market-status { display: inline-block; margin-bottom: 14px; padding: 4px 8px; border: 1px solid #b8d9c4; background: var(--green-soft); color: var(--green-dark); font-size: 11px; font-weight: 700; text-transform: uppercase; }
.market-status.warning { border-color: #ffd0b0; background: var(--orange-soft); color: var(--orange-dark); }
.market-columns { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; margin-top: 22px; }
.market-columns h3 { font-size: 16px; }
.market-columns p, .market-columns li { color: var(--muted); font-size: 14px; }
.market-columns ul { margin: 0; padding-left: 20px; }
.source-note { margin-top: 22px; padding-top: 14px; border-top: 1px dashed var(--border-strong); color: var(--muted); font-size: 12px; }
.source-note a { color: var(--orange-dark); text-decoration: underline; text-underline-offset: 2px; }

.notice { padding: 18px 20px; border-left: 4px solid var(--orange); background: var(--orange-soft); color: #55514c; font-size: 14px; }
.notice.green { border-left-color: var(--green); background: var(--green-soft); }

.security-layers { border-top: 1px solid var(--border-strong); }
.security-layer { display: grid; grid-template-columns: 145px minmax(0, 1fr); gap: 28px; padding: 28px 0; border-bottom: 1px solid var(--border); }
.security-layer .layer-label { color: var(--orange); font-size: 12px; font-weight: 700; text-transform: uppercase; }
.security-layer h3 { font-size: 21px; }
.security-layer p { color: var(--muted); }
.security-layer ul { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px 26px; margin: 16px 0 0; padding: 0; list-style: none; }
.security-layer li { position: relative; padding-left: 18px; color: #555853; font-size: 13px; }
.security-layer li::before { content: "✓"; position: absolute; left: 0; color: var(--green); font-weight: 700; }

.checklist { border: 1px solid var(--border); background: #fff; }
.checklist > div { display: grid; grid-template-columns: 48px minmax(0, 1fr); gap: 14px; padding: 16px 18px; border-bottom: 1px solid var(--border); }
.checklist > div:last-child { border-bottom: 0; }
.checklist b { color: var(--green); }
.checklist strong { display: block; margin-bottom: 2px; font-size: 14px; }
.checklist span { color: var(--muted); font-size: 13px; }

.architecture-layers { border-top: 1px solid var(--border); }
.arch-layer { display: grid; grid-template-columns: 150px minmax(0, 1fr) minmax(220px, .55fr); gap: 28px; padding: 26px 0; border-bottom: 1px solid var(--border); }
.arch-layer .arch-label { color: var(--green-dark); font-size: 12px; font-weight: 700; text-transform: uppercase; }
.arch-layer h3 { font-size: 20px; }
.arch-layer p { margin: 0; color: var(--muted); font-size: 14px; }
.arch-layer .arch-tech { color: #73766f; font-size: 12px; }

.pattern-grid { display: grid; grid-template-columns: repeat(2, 1fr); border-top: 1px solid var(--border); border-left: 1px solid var(--border); }
.pattern-grid article { padding: 26px; border-right: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.pattern-grid h3 { font-size: 19px; }
.pattern-grid p { margin: 0; color: var(--muted); font-size: 14px; }

.crosslinks { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--border); border-left: 1px solid var(--border); }
.crosslinks a { padding: 22px; border-right: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.crosslinks small { display: block; margin-bottom: 8px; color: var(--green-dark); font-weight: 700; text-transform: uppercase; }
.crosslinks strong { display: block; margin-bottom: 7px; }
.crosslinks span { color: var(--muted); font-size: 13px; }
.crosslinks a:hover { background: var(--orange-soft); }

.source-list { margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--border); }
.source-list li { padding: 13px 0; border-bottom: 1px solid var(--border); color: var(--muted); font-size: 13px; }
.source-list a { color: var(--orange-dark); text-decoration: underline; text-underline-offset: 2px; }

.active-nav { color: var(--orange-dark) !important; }

.error-page { min-height: 60vh; display: grid; place-items: center; padding: 70px 0; }
.error-box { max-width: 680px; text-align: center; }
.error-code { margin-bottom: 8px; color: var(--orange); font-size: 64px; line-height: 1; font-weight: 700; }

@media (max-width: 980px) {
  .page-hero-grid, .content-grid { grid-template-columns: 1fr; gap: 38px; }
  .page-summary { max-width: 700px; }
  .sidebar-note { position: static; }
  .service-row { grid-template-columns: 120px minmax(0, 1fr); }
  .market-index, .decision-grid, .crosslinks { grid-template-columns: repeat(2, 1fr); }
  .arch-layer { grid-template-columns: 120px minmax(0, 1fr); }
  .arch-layer .arch-tech { grid-column: 2; }
}

@media (max-width: 680px) {
  .page-hero { padding: 42px 0 46px; }
  .page-hero h1 { font-size: clamp(36px, 10vw, 48px); }
  .anchor-nav .container { width: 100%; padding-left: 12px; }
  .service-row, .security-layer, .arch-layer, .market-detail-head { grid-template-columns: 1fr; gap: 10px; }
  .service-features, .market-columns, .security-layer ul, .pattern-grid, .market-index, .decision-grid, .crosslinks { grid-template-columns: 1fr; }
  .service-features div { border-right: 0; border-bottom: 1px solid var(--border); }
  .service-features div:last-child { border-bottom: 0; }
  .arch-layer .arch-tech { grid-column: auto; }
  .market-detail .market-code { width: 48px; height: 48px; }
  .market-detail h2 { font-size: 30px; }
}

/* =========================================================
   Dama pik brand layer
   Decorative only: no external icon fonts or runtime assets.
   ========================================================= */
:root {
  --spade: #252623;
  --spade-soft: rgba(37, 38, 35, .055);
  --spade-green: #0f8a4b;
}

.brand-mark {
  position: relative;
  background: var(--orange);
  color: #fff;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 24px;
  font-weight: 700;
  line-height: 1;
}
.brand-text { letter-spacing: -.01em; }
.brand-text strong { color: var(--orange-dark); }

/* Spades become a restrained brand motif rather than generic checkmarks. */
.hero-points li::before,
.plan li::before,
.page-summary li::before,
.security-layer li::before {
  content: "♠";
  top: .02em;
  color: var(--green);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 14px;
  line-height: 1.45;
}

/* Keep dense operational checklists visually literal. */
.checklist b {
  color: var(--green);
}

/* Large blurred spades are purely decorative and stay outside the text flow. */
.hero,
.page-hero,
.architecture-section,
.closing-cta,
.final-cta {
  position: relative;
  isolation: isolate;
  overflow: hidden;
}

.hero::after,
.page-hero::after {
  content: "♠";
  position: absolute;
  z-index: -1;
  right: clamp(-90px, -4vw, -35px);
  top: 50%;
  transform: translateY(-50%) rotate(-8deg);
  color: var(--spade);
  opacity: .045;
  filter: blur(5px);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(280px, 38vw, 620px);
  line-height: .75;
  pointer-events: none;
  user-select: none;
}

.page-hero::before {
  content: "♠";
  position: absolute;
  z-index: -1;
  left: -60px;
  bottom: -155px;
  color: var(--orange);
  opacity: .035;
  filter: blur(9px);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 330px;
  line-height: 1;
  transform: rotate(14deg);
  pointer-events: none;
}

.architecture-section::after {
  content: "♠";
  position: absolute;
  z-index: -1;
  left: -85px;
  top: 18%;
  color: var(--green);
  opacity: .035;
  filter: blur(8px);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 360px;
  line-height: 1;
  transform: rotate(10deg);
  pointer-events: none;
}

/* Small spade signature in section labels and selected infrastructure accents. */
.overline::before {
  content: "♠";
  display: inline-block;
  margin-right: 7px;
  color: var(--orange);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 12px;
  transform: translateY(-1px);
}

.plan-featured::after,
.page-summary::after {
  content: "♠";
  position: absolute;
  right: 14px;
  top: 11px;
  color: var(--orange);
  opacity: .12;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 31px;
  line-height: 1;
  pointer-events: none;
}
.plan-featured,
.page-summary { position: relative; }

.market-code {
  position: relative;
}
.market-code::after {
  content: "♠";
  position: absolute;
  right: 3px;
  bottom: 1px;
  color: var(--green);
  opacity: .28;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 10px;
}

/* Branded closing section, still in the existing orange/white/green system. */
.closing-cta::after,
.final-cta::after {
  content: "♠";
  position: absolute;
  z-index: 0;
  right: -55px;
  bottom: -190px;
  color: #fff;
  opacity: .08;
  filter: blur(3px);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 390px;
  line-height: 1;
  pointer-events: none;
}
.closing-cta > *,
.final-cta > * { position: relative; z-index: 1; }

@media (max-width: 680px) {
  .hero::after,
  .page-hero::after {
    right: -120px;
    top: 34%;
    font-size: 340px;
    opacity: .035;
  }
  .page-hero::before,
  .architecture-section::after { display: none; }
  .brand-mark { font-size: 22px; }
}

@media (prefers-reduced-motion: reduce) {
  .hero::after,
  .page-hero::after,
  .page-hero::before,
  .architecture-section::after,
  .closing-cta::after,
  .final-cta::after { filter: none; }
}
