/* ArchAI Data Shop. Colours and type follow the ArchAI brand guide:
   PP Neue Machina Inktrap for titles, Open Sans for body copy. */

@font-face {
  font-family: "Machina";
  src: url("/static/brand/Brand%20Fonts/PP%20Neue%20Machina%20-%20Inktrap%20Regular%20v2.0/PPNeueMachina-InktrapRegular.woff2") format("woff2");
  font-display: swap;
}
@font-face {
  font-family: "Open Sans";
  src: url("/static/brand/Brand%20Fonts/Open_Sans/OpenSans-VariableFont_wdth%2Cwght.ttf") format("truetype");
  font-weight: 300 800;
  font-display: swap;
}

:root {
  --orange: #f8b133;
  --orange-dark: #e39a14;
  --orange-pale: #fdd6a5;
  --orange-wash: #fff4e5;
  --ink: #3d3d3b;
  --ink-soft: #6b6b68;
  --light: #ededed;
  --line: #dddcd8;
  --white: #ffffff;
  --green-dark: #276347;
  --green: #00a45d;
  --lime: #a9c947;
  --lost: #ba1517;
  --maintained: #4daf4a;
  --blue: #2c6f9e;
  --radius: 4px;
  --shadow: 0 1px 2px rgba(0,0,0,.06), 0 6px 18px rgba(0,0,0,.06);
  --title: "Machina", "Open Sans", sans-serif;
  --body: "Open Sans", "Segoe UI", Arial, sans-serif;
}

* { box-sizing: border-box; }
.visually-hidden { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
html { scroll-behavior: smooth; }
body { margin: 0; font-family: var(--body); color: var(--ink); background: var(--white); font-size: 15px; line-height: 1.55; }
a { color: inherit; }
img { max-width: 100%; display: block; }
h1, h2, h3, h4 { font-family: var(--title); font-weight: 400; line-height: 1.12; margin: 0 0 .5em; letter-spacing: .04em; }
h1 { font-size: clamp(34px, 4.6vw, 56px); text-transform: uppercase; letter-spacing: .06em; }
h2 { font-size: clamp(24px, 2.6vw, 34px); text-transform: uppercase; letter-spacing: .07em; }
h3 { font-size: 19px; }
h4 { font-size: 14px; text-transform: uppercase; letter-spacing: .1em; }
p { margin: 0 0 1em; }
.wrap { max-width: 1240px; margin: 0 auto; padding: 0 24px; }
.muted { color: var(--ink-soft); }
.small { font-size: 13px; }
.eyebrow { font-family: var(--title); text-transform: uppercase; letter-spacing: .14em; font-size: 12px; color: var(--orange-dark); margin-bottom: 10px; display: block; }
.hidden { display: none !important; }
.num { font-variant-numeric: tabular-nums; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 0; border-radius: var(--radius); padding: 11px 20px; font: 600 14px/1.2 var(--body); cursor: pointer; text-decoration: none; transition: background .15s, transform .05s, box-shadow .15s; white-space: nowrap; }
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--orange); color: var(--ink); }
.btn-primary:hover { background: var(--orange-dark); }
.btn-dark { background: var(--ink); color: var(--white); }
.btn-dark:hover { background: #2a2a28; }
.btn-ghost { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--ink); }
.btn-ghost:hover { background: var(--ink); color: var(--white); }
.btn-light { background: var(--white); color: var(--ink); box-shadow: inset 0 0 0 1px var(--line); }
.btn-light:hover { box-shadow: inset 0 0 0 1px var(--ink); }
.btn-lg { padding: 15px 28px; font-size: 16px; }
.link-btn { display: block; margin: 14px auto 0; background: none; border: 0; padding: 0; font: inherit; font-size: 13px; color: var(--ink-soft); text-decoration: underline; cursor: pointer; }
.link-btn:hover { color: var(--ink); }
.btn-sm { padding: 7px 12px; font-size: 13px; }
.btn[disabled] { opacity: .45; cursor: not-allowed; }
.link-btn { background: none; border: 0; padding: 0; font: inherit; color: var(--blue); cursor: pointer; text-decoration: underline; }

/* Demo bar, header, footer */
.demo-bar { background: var(--ink); color: #dcdcd8; font-size: 12.5px; padding: 6px 24px; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.demo-bar a { color: var(--orange-pale); }
.site-header { background: var(--white); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 1000; }
.header-row { display: flex; align-items: center; gap: 28px; height: 72px; }
.logo { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.logo img { height: 40px; width: auto; }
.logo-shop { font-family: var(--title); text-transform: uppercase; letter-spacing: .14em; font-size: 12px; color: var(--ink-soft); border-left: 1px solid var(--line); padding-left: 12px; }
.main-nav { display: flex; gap: 22px; margin-left: auto; align-items: center; }
.main-nav a { text-decoration: none; font-weight: 600; font-size: 14px; color: var(--ink-soft); padding: 6px 0; border-bottom: 2px solid transparent; }
.main-nav a:hover, .main-nav a.active { color: var(--ink); border-bottom-color: var(--orange); }
.nav-account { display: inline-flex; align-items: center; gap: 8px; }
.avatar { width: 26px; height: 26px; border-radius: 50%; background: var(--orange-pale); color: var(--ink); display: inline-grid; place-items: center; font-size: 12px; font-weight: 700; }
.site-footer { background: var(--ink); color: #d6d6d2; margin-top: 80px; padding: 48px 0 24px; font-size: 14px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1.4fr 1fr; gap: 32px; }
.footer-grid h2 { color: var(--orange); font-size: 13px; text-transform: uppercase; letter-spacing: .1em; }
.footer-grid a, .footer-grid span { display: block; color: #d6d6d2; text-decoration: none; margin-bottom: 6px; }
.footer-grid a:hover { color: var(--white); }
.footer-logo { height: 38px; width: auto; filter: brightness(0) invert(1); opacity: .9; margin-bottom: 14px; }
.footer-legal { margin-top: 36px; padding-top: 18px; border-top: 1px solid #55554f; font-size: 12px; color: #a9a9a3; }
@media (max-width: 960px) { .main-nav { display: none; } .footer-grid { grid-template-columns: 1fr 1fr; } }

/* Toast */
.toast { position: fixed; bottom: 24px; left: 50%; transform: translate(-50%, 20px); background: var(--ink); color: var(--white); padding: 12px 20px; border-radius: var(--radius); box-shadow: var(--shadow); opacity: 0; pointer-events: none; transition: all .25s; z-index: 5000; font-size: 14px; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }
.toast.error { background: var(--lost); }

/* Home */
.hero { position: relative; overflow: hidden; background: var(--light); }
.hero-inner { display: grid; grid-template-columns: 1.05fr 1fr; gap: 40px; align-items: center; min-height: 560px; padding-top: 56px; padding-bottom: 56px; position: relative; z-index: 1; }
.hero p.lead { font-size: 18px; max-width: 34em; color: #4a4a47; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 26px; }
.hero-points { display: flex; gap: 24px; margin-top: 34px; flex-wrap: wrap; font-size: 13.5px; color: var(--ink-soft); }
.hero-points span::before { content: ""; display: inline-block; width: 8px; height: 8px; background: var(--orange); transform: rotate(45deg); margin-right: 8px; }
.hero-art { position: relative; height: 470px; }
.hero-diamond { position: absolute; transform: rotate(45deg); overflow: hidden; box-shadow: var(--shadow); }
.hero-diamond img { position: absolute; width: 142%; height: 142%; left: -21%; top: -21%; max-width: none; object-fit: cover; transform: rotate(-45deg); }
.hero-diamond.d1 { width: 300px; height: 300px; left: 90px; top: 40px; }
.hero-diamond.d2 { width: 190px; height: 190px; left: 360px; top: 210px; }
.hero-diamond.d3 { width: 150px; height: 150px; left: 20px; top: 300px; }
.hero-shape { position: absolute; transform: rotate(45deg); }
.hero-shape.s1 { width: 520px; height: 520px; right: -220px; top: -160px; background: var(--orange-pale); opacity: .7; }
.hero-shape.s2 { width: 360px; height: 360px; right: -60px; bottom: -250px; background: var(--orange); opacity: .85; }
@media (max-width: 960px) { .hero-inner { grid-template-columns: 1fr; } .hero-art { display: none; } }
@media (max-width: 700px) { .hero-shape.s2 { display: none; } }  /* it would sit behind the text */

.section { padding: 76px 0; }
.section-grey { background: var(--light); }
.section-dark { background: var(--ink); color: #ecece8; }
.section-dark h2 { color: var(--orange); }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 24px; margin-bottom: 32px; flex-wrap: wrap; }
.section-head p { max-width: 40em; margin: 0; }

.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; counter-reset: step; }
.step { background: var(--white); padding: 26px 22px; border-radius: var(--radius); border-top: 4px solid var(--orange); box-shadow: var(--shadow); }
.step .step-num { font-family: var(--title); font-size: 38px; color: var(--orange); line-height: 1; margin-bottom: 12px; }
.step h3 { font-size: 17px; }
.step p { font-size: 14px; color: var(--ink-soft); margin: 0; }
@media (max-width: 960px) { .steps { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .steps { grid-template-columns: 1fr; } }

.tile-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); gap: 22px; }
.product-tile { background: var(--white); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); display: flex; flex-direction: column; text-decoration: none; transition: transform .15s, box-shadow .15s; border: 1px solid #ecebe7; }
.product-tile:hover { transform: translateY(-3px); box-shadow: 0 10px 26px rgba(0,0,0,.12); }
.product-tile .tile-img { aspect-ratio: 4/3; background: var(--light) center/cover; position: relative; }
.product-tile .tile-cat { position: absolute; left: 12px; top: 12px; background: rgba(61,61,59,.88); color: var(--white); font-size: 11px; text-transform: uppercase; letter-spacing: .1em; padding: 4px 8px; border-radius: 2px; }
.product-tile .tile-body { padding: 16px 18px 18px; display: flex; flex-direction: column; flex: 1; }
.product-tile h3 { margin-bottom: 6px; }
.product-tile p { font-size: 13.5px; color: var(--ink-soft); flex: 1; }
.tile-foot { display: flex; justify-content: space-between; align-items: center; font-size: 13px; margin-top: 8px; }
.tile-foot .from { font-weight: 700; }
.tile-foot .from small { font-weight: 400; color: var(--ink-soft); }
.tile-links { display: flex; gap: 8px; margin-top: 12px; }

.stat-band { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; text-align: left; }
.stat-band .big { font-family: var(--title); font-size: 44px; color: var(--orange); line-height: 1.05; }
.stat-band .label { font-size: 14px; color: #cfcfca; }
@media (max-width: 700px) { .stat-band { grid-template-columns: 1fr 1fr; } .stat-band .big { font-size: 34px; } }

.report-strip { display: grid; grid-template-columns: 1fr 1.5fr; gap: 48px; align-items: center; }
.report-pages { display: flex; gap: 14px; }
.report-pages img { width: 32%; border: 1px solid var(--line); box-shadow: var(--shadow); background: var(--white); }
.report-pages img:nth-child(2) { transform: translateY(-16px); }
@media (max-width: 960px) { .report-strip { grid-template-columns: 1fr; } }

/* Shop */
.shop-shell { display: grid; grid-template-columns: minmax(0, 1fr) 470px; height: calc(100vh - 72px - 31px - 37px); min-height: 640px; }  /* header, demo bar, beta strip */
.shop-map { position: relative; background: var(--light); container-type: inline-size; }  /* its buttons lay out by the map's width */
#map { position: absolute; inset: 0; }
.shop-panel { border-left: 1px solid var(--line); display: flex; flex-direction: column; background: var(--white); min-height: 0; }
.stepper { display: grid; grid-template-columns: repeat(3, 1fr); border-bottom: 1px solid var(--line); }
.stepper button { background: var(--light); border: 0; border-right: 1px solid var(--line); padding: 14px 10px 12px; font: 600 13px var(--body); color: var(--ink-soft); cursor: pointer; text-align: left; display: flex; gap: 10px; align-items: center; }
.stepper button:last-child { border-right: 0; }
.stepper button .n { width: 24px; height: 24px; display: inline-grid; place-items: center; background: var(--white); border-radius: 50%; font-size: 12px; flex: none; box-shadow: inset 0 0 0 1px var(--line); }
.stepper button.active { background: var(--white); color: var(--ink); box-shadow: inset 0 -3px 0 var(--orange); }
.stepper button.active .n { background: var(--orange); box-shadow: none; }
.stepper button.done .n { background: var(--ink); color: var(--white); box-shadow: none; }
.stepper button[disabled] { cursor: not-allowed; opacity: .6; }
.panel-body { flex: 1; overflow-y: auto; padding: 22px 24px; min-height: 0; }
.panel-foot { border-top: 1px solid var(--line); padding: 14px 24px; background: #faf9f7; }
.panel-foot .totals { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 10px; }
.panel-foot .totals .t { font-family: var(--title); font-size: 26px; }
.panel-foot .btn { width: 100%; }
.panel-foot .warning { margin: 0 0 12px; }
@media (max-width: 960px) { .shop-shell { grid-template-columns: 1fr; height: auto; } .shop-map { height: 60vh; } }

.tabs { display: flex; gap: 4px; background: var(--light); padding: 4px; border-radius: var(--radius); margin-bottom: 18px; }
.tabs button { flex: 1; border: 0; background: transparent; padding: 9px 8px; font: 600 13px var(--body); color: var(--ink-soft); border-radius: 3px; cursor: pointer; }
.tabs button.active { background: var(--white); color: var(--ink); box-shadow: 0 1px 3px rgba(0,0,0,.1); }
.dropzone { display: block; border: 2px dashed #c9c7c0; border-radius: 6px; padding: 30px 18px; text-align: center; background: #fbfaf8; cursor: pointer; transition: all .15s; }
.dropzone:hover, .dropzone.drag { border-color: var(--orange); background: var(--orange-wash); }
.dropzone .dz-icon { width: 46px; height: 46px; margin: 0 auto 10px; }
.dropzone strong { display: block; margin-bottom: 4px; }
.format-chips { display: flex; gap: 6px; justify-content: center; flex-wrap: wrap; margin-top: 12px; }
.chip { display: inline-block; background: var(--white); border: 1px solid var(--line); border-radius: 20px; padding: 2px 9px; font-size: 11.5px; font-weight: 600; color: var(--ink-soft); }
.chip-orange { background: var(--orange-pale); border-color: var(--orange-pale); color: var(--ink); }
.chip-green { background: #e3f2df; border-color: #cfe7c9; color: #256b2e; }
.chip-red { background: #f7e0e0; border-color: #efcaca; color: var(--lost); }
.chip-grey { background: var(--light); border-color: var(--light); }
.chip-blue { background: #e1ecf5; border-color: #cfe0ee; color: var(--blue); }
.help-list { font-size: 13px; color: var(--ink-soft); padding-left: 18px; margin: 14px 0 0; }
.draw-buttons { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 14px; }
.draw-buttons .btn { width: 100%; }
.or-divider { display: flex; align-items: center; gap: 12px; color: var(--ink-soft); font-size: 12px; text-transform: uppercase; letter-spacing: .1em; margin: 20px 0; }
.or-divider::before, .or-divider::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.example-card { display: flex; gap: 12px; align-items: center; border: 1px solid var(--line); border-radius: var(--radius); padding: 10px; cursor: pointer; background: var(--white); width: 100%; text-align: left; font: inherit; }
.example-card:hover { border-color: var(--orange); }
.example-card img { width: 64px; height: 48px; object-fit: cover; border-radius: 2px; }

.site-card { border: 1px solid var(--line); border-radius: 6px; overflow: hidden; margin-bottom: 18px; }
.site-card-head { background: var(--ink); color: var(--white); padding: 12px 16px; display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.site-card-head input { background: transparent; border: 0; color: var(--white); font: 600 15px var(--body); width: 100%; padding: 2px 0; border-bottom: 1px dashed transparent; }
.site-card-head input:hover, .site-card-head input:focus { border-bottom-color: #8a8a85; outline: none; }
.site-stats { display: grid; grid-template-columns: 1fr 1fr; }
.site-stats div { padding: 10px 16px; border-bottom: 1px solid var(--light); border-right: 1px solid var(--light); }
.site-stats div:nth-child(2n) { border-right: 0; }
.site-stats .k { font-size: 11.5px; text-transform: uppercase; letter-spacing: .08em; color: var(--ink-soft); display: block; }
.site-stats .v { font-weight: 700; font-size: 15px; }
.warning { background: #fff5e0; border-left: 3px solid var(--orange); padding: 10px 14px; font-size: 13px; margin: 12px 0; }
.error-box { background: #fbeaea; border-left: 3px solid var(--lost); padding: 10px 14px; font-size: 13px; margin: 12px 0; color: #7d1010; }


.category { border-radius: var(--radius); overflow: hidden; margin-bottom: 10px; border: 1px solid var(--line); }
.category-head { width: 100%; border: 0; color: var(--white); padding: 13px 16px; display: flex; align-items: center; gap: 12px; font: 400 15px var(--title); letter-spacing: .05em; text-transform: uppercase; cursor: pointer; text-align: left; }
.category-head .cat-count { margin-left: auto; font: 600 12px var(--body); letter-spacing: 0; text-transform: none; background: rgba(255,255,255,.22); padding: 2px 8px; border-radius: 12px; }
.category-head .chev { transition: transform .2s; }
.category.open .chev { transform: rotate(90deg); }
.category-body { display: none; background: var(--white); }
.category.open .category-body { display: block; }
.cat-blurb { font-size: 12.5px; color: var(--ink-soft); padding: 10px 16px 4px; margin: 0; }
.product-row { display: grid; grid-template-columns: 26px 1fr auto; gap: 10px; align-items: center; padding: 11px 16px; border-top: 1px solid var(--light); cursor: pointer; }
.product-row:hover { background: #fcfbf8; }
.product-row.selected { background: var(--orange-wash); }
.product-row input[type=checkbox] { width: 18px; height: 18px; accent-color: var(--orange-dark); cursor: pointer; }
.product-row .pname { font-weight: 600; font-size: 14px; display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.product-row .pmeta { font-size: 12px; color: var(--ink-soft); display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin-top: 2px; }
.product-row .price { font-weight: 700; font-size: 14px; text-align: right; font-variant-numeric: tabular-nums; }
.info-btn { width: 20px; height: 20px; border-radius: 50%; border: 0; background: var(--light); color: var(--ink); font: 700 12px/20px Georgia, serif; cursor: pointer; padding: 0; flex: none; }
.info-btn:hover { background: var(--orange); }
.swatches { display: inline-flex; gap: 2px; }
.swatches i { width: 10px; height: 10px; display: inline-block; border-radius: 2px; }
.format-select { display: grid; grid-template-columns: 1fr auto; gap: 10px; align-items: center; background: var(--light); padding: 10px 14px; border-radius: var(--radius); margin-bottom: 14px; font-size: 13.5px; }
select, input[type=text], input[type=email], input[type=search], textarea { font: inherit; font-size: 14px; padding: 9px 11px; border: 1px solid #cfcdc6; border-radius: var(--radius); background: var(--white); color: var(--ink); width: 100%; }
select:focus, input:focus, textarea:focus { outline: 2px solid var(--orange-pale); border-color: var(--orange); }
.format-select select { width: auto; }
.discount-hint { font-size: 12.5px; background: #eef6e9; color: #2c5d22; padding: 8px 12px; border-radius: var(--radius); margin-bottom: 12px; }
/* Modern comparisons (+25%): "all layers", and the tick under each chosen layer. */
.compare-all { display: flex; gap: 10px; align-items: flex-start; border: 1px solid var(--line); border-radius: var(--radius); padding: 10px 14px; margin-bottom: 12px; font-size: 13.5px; cursor: pointer; }
.compare-all input { margin-top: 3px; accent-color: var(--orange-dark); }
.compare-toggle { display: flex; gap: 8px; align-items: center; font-size: 12.5px; margin-top: 6px; cursor: pointer; }
.compare-toggle input { width: 15px; height: 15px; accent-color: var(--orange-dark); margin: 0; }
.compare-note { font-size: 12px; color: var(--ink-soft); margin-top: 6px; }
.quote-table tr.sub-line td { font-size: 12.5px; color: var(--ink-soft); padding-top: 0; }
.quote-table tr.sub-line td:first-child { padding-left: 14px; }
/* The ponds offer (pond_offer in the price book). */
.chip-offer { background: var(--orange); border-color: var(--orange); color: var(--ink); }
.offer-box { margin: 8px 16px 10px; padding: 10px 12px; background: var(--orange-wash); border-left: 3px solid var(--orange); border-radius: var(--radius); font-size: 13px; }
.offer-box.applied { background: #eef6e9; border-left-color: #4daf4a; color: #2c5d22; }
.offer-box .btn { display: block; margin-top: 8px; }
.product-link { color: inherit; font-weight: 600; text-decoration: underline; text-underline-offset: 2px; }
.product-link:hover { color: var(--blue); }
.offer-note { font-size: 12px; color: var(--orange-dark); font-weight: 600; margin-top: 3px; }
.product-row .price s { color: var(--ink-soft); font-weight: 400; margin-right: 4px; }
.foot-licence { margin: 0 0 6px; }
.foot-refunds { margin: 0 0 10px; padding-bottom: 10px; border-bottom: 1px solid var(--line); }
.tile-offer { font-size: 12.5px !important; color: var(--orange-dark) !important; font-weight: 600; flex: 0 !important; margin: 6px 0 0; }

.popover { position: fixed; z-index: 3000; width: 420px; max-width: calc(100vw - 24px); background: var(--white); border-radius: 6px; box-shadow: 0 16px 48px rgba(0,0,0,.22); overflow: hidden; border: 1px solid var(--line); }
.popover-img { aspect-ratio: 16/9; background: var(--light) center/cover; position: relative; }
.popover-img .img-switch { position: absolute; bottom: 8px; left: 8px; display: flex; gap: 4px; flex-wrap: wrap; }
.popover-img .img-switch button { border: 0; background: rgba(255,255,255,.9); font: 600 11px var(--body); padding: 4px 7px; border-radius: 2px; cursor: pointer; }
.popover-img .img-switch button.active { background: var(--orange); }
.popover-body { padding: 16px 18px 18px; }
.popover-body h3 { margin-bottom: 6px; }
.popover-body p { font-size: 13.5px; color: #555; }
.popover-legend { display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: 12px; margin-bottom: 14px; }
.popover-legend span { display: inline-flex; align-items: center; gap: 5px; }
.popover-legend i { width: 12px; height: 12px; border-radius: 2px; }
.popover-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.popover-close { position: absolute; top: 8px; right: 8px; width: 30px; height: 30px; border-radius: 50%; border: 0; background: rgba(255,255,255,.92); cursor: pointer; font-size: 18px; line-height: 30px; }

.quote-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.quote-table td { padding: 9px 0; border-bottom: 1px solid var(--light); vertical-align: top; }
.quote-table td:last-child { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; padding-left: 12px; }
.product-row.unavailable { opacity: 0.55; cursor: not-allowed; }
.product-row.unavailable .offer-note { color: var(--ink-soft); }
.quote-table .line-note { display: block; font-size: 12.5px; color: var(--ink-soft); margin-top: 2px; }
.quote-table tr.sub td { color: var(--ink-soft); }
.quote-table tr.discount td { color: #2c7a2a; }
.quote-table tr.total td { font-family: var(--title); font-size: 22px; border-bottom: 0; padding-top: 14px; }
.quote-head { display: flex; justify-content: space-between; align-items: start; gap: 12px; margin-bottom: 14px; }
.quote-ref { font-family: var(--title); letter-spacing: .08em; font-size: 13px; background: var(--light); padding: 4px 8px; border-radius: 2px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 14px 0; }
.form-grid .full { grid-column: 1 / -1; }
label.field { display: block; font-size: 12.5px; font-weight: 600; color: var(--ink-soft); }
label.field span { display: block; margin-bottom: 4px; }
.check { display: flex; gap: 10px; align-items: start; font-size: 13px; margin: 10px 0; }
.check input { margin-top: 3px; accent-color: var(--orange-dark); }
.deliverables-list { list-style: none; padding: 0; margin: 10px 0 0; font-size: 13px; }
.deliverables-list li { padding: 5px 0 5px 22px; position: relative; }
.deliverables-list li::before { content: ""; position: absolute; left: 4px; top: 11px; width: 8px; height: 8px; background: var(--orange); transform: rotate(45deg); }

/* Map widgets */
.map-controls { position: absolute; top: 14px; right: 14px; z-index: 800; display: flex; flex-direction: column; gap: 8px; align-items: flex-end; }
.basemap-switch { background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow); padding: 4px; display: flex; gap: 3px; }
.basemap-switch button { border: 0; background: transparent; padding: 7px 10px; font: 600 12px var(--body); color: var(--ink-soft); cursor: pointer; border-radius: 3px; }
.basemap-switch button.active { background: var(--ink); color: var(--white); }
.map-search { position: absolute; top: 14px; left: 56px; z-index: 800; width: min(340px, calc(100% - 370px)); }  /* clear of the map buttons on the right */
.map-search input { box-shadow: var(--shadow); border: 0; padding: 11px 14px; }
.search-results { background: var(--white); box-shadow: var(--shadow); border-radius: var(--radius); margin-top: 4px; overflow: hidden; }
.search-results button { display: block; width: 100%; text-align: left; border: 0; background: var(--white); padding: 9px 14px; font: 13px var(--body); cursor: pointer; border-bottom: 1px solid var(--light); }
.search-results button:hover { background: var(--orange-wash); }
.map-legend-box { position: absolute; bottom: 24px; left: 14px; z-index: 800; background: rgba(255,255,255,.95); padding: 10px 12px; border-radius: var(--radius); box-shadow: var(--shadow); font-size: 12px; max-width: 260px; }
.map-hint { position: absolute; bottom: 24px; left: 50%; transform: translateX(-50%); z-index: 800; background: var(--ink); color: var(--white); padding: 9px 16px; border-radius: 20px; font-size: 13px; box-shadow: var(--shadow); pointer-events: none; }  /* clicks and taps go through to the map, so a corner can be placed under it */
.map-empty { position: absolute; inset: 0; display: grid; place-items: center; z-index: 700; pointer-events: none; }
.map-empty div { background: rgba(255,255,255,.93); padding: 18px 24px; border-radius: 6px; box-shadow: var(--shadow); text-align: center; max-width: 340px; font-size: 14px; }
.area-label { background: var(--ink); color: var(--white); border: 0; font-weight: 700; padding: 4px 8px; border-radius: 3px; box-shadow: none; }
.area-label::before { display: none; }
.leaflet-container { font-family: var(--body); isolation: isolate; }  /* keeps Leaflet's z-index 1000 controls under the header's menu */

/* Pay page (demo checkout) */
.pay-shell { min-height: calc(100vh - 31px); display: grid; grid-template-columns: 1fr 1fr; }
.pay-summary { background: #f7f6f3; padding: 64px 56px; display: flex; justify-content: flex-end; }
.pay-summary-inner, .pay-form-inner { width: 100%; max-width: 420px; }
.pay-form { padding: 64px 56px; box-shadow: -1px 0 0 var(--line); }
.pay-back { display: inline-flex; gap: 8px; align-items: center; color: var(--ink-soft); text-decoration: none; font-size: 14px; margin-bottom: 30px; }
.pay-back img { height: 26px; width: auto; }
.pay-amount { font-size: 36px; font-weight: 700; margin: 4px 0 26px; font-variant-numeric: tabular-nums; }
.pay-line { display: flex; justify-content: space-between; gap: 12px; padding: 10px 0; font-size: 14px; border-bottom: 1px solid #e7e5df; }
.pay-line .muted { font-size: 12.5px; }
.card-box { border: 1px solid #d9d7d0; border-radius: 6px; overflow: hidden; }
.card-box input { border: 0; border-radius: 0; border-bottom: 1px solid #d9d7d0; padding: 12px; }
.card-box .row2 { display: grid; grid-template-columns: 1fr 1fr; }
.card-box .row2 input:first-child { border-right: 1px solid #d9d7d0; }
.card-box .row2 input { border-bottom: 0; }
.pay-btn { width: 100%; margin-top: 22px; padding: 15px; font-size: 16px; background: var(--ink); color: var(--white); }
.pay-btn:hover { background: #222; }
.test-badge { display: inline-block; background: #ffe2b8; color: #8a4b00; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; padding: 3px 7px; border-radius: 3px; margin-left: 8px; vertical-align: middle; }
.test-cards { font-size: 12.5px; background: #f7f6f3; border-radius: var(--radius); padding: 10px 12px; margin-top: 16px; color: var(--ink-soft); }
.test-cards code { background: var(--white); padding: 1px 5px; border-radius: 2px; }
.spinner { width: 18px; height: 18px; border: 2.5px solid rgba(255,255,255,.35); border-top-color: var(--white); border-radius: 50%; animation: spin .7s linear infinite; }
.spinner.dark { border-color: rgba(0,0,0,.12); border-top-color: var(--orange-dark); }
@keyframes spin { to { transform: rotate(360deg); } }
@media (max-width: 860px) { .pay-shell { grid-template-columns: 1fr; } .pay-summary { justify-content: flex-start; padding: 32px 24px; } .pay-form { padding: 32px 24px; } }

/* Order page */
.page-head { background: var(--light); padding: 44px 0 36px; }
.page-head h1 { font-size: clamp(28px, 3.4vw, 42px); }
.order-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 28px; margin-top: 32px; align-items: start; }
.panel { background: var(--white); border: 1px solid var(--line); border-radius: 6px; padding: 24px; }
.panel + .panel { margin-top: 20px; }
.panel h3 { margin-bottom: 14px; }
.progress-track { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; margin-bottom: 24px; }
.progress-track .pt { text-align: center; font-size: 12.5px; font-weight: 600; color: var(--ink-soft); position: relative; padding-top: 34px; }
.progress-track .pt::before { content: ""; position: absolute; top: 9px; left: 50%; width: 18px; height: 18px; transform: translateX(-50%) rotate(45deg); background: var(--light); box-shadow: inset 0 0 0 2px #cfcdc6; z-index: 1; }
.progress-track .pt::after { content: ""; position: absolute; top: 17px; left: -50%; width: 100%; height: 3px; background: var(--light); }
.progress-track .pt:first-child::after { display: none; }
.progress-track .pt.done { color: var(--ink); }
.progress-track .pt.done::before { background: var(--orange); box-shadow: none; }
.progress-track .pt.done::after, .progress-track .pt.now::after { background: var(--orange); }
.progress-track .pt.now { color: var(--ink); }
.progress-track .pt.now::before { background: var(--white); box-shadow: inset 0 0 0 3px var(--orange); animation: pulse 1.4s infinite; }
.progress-track .pt.fail::before { background: var(--lost); box-shadow: none; }
@keyframes pulse { 50% { box-shadow: inset 0 0 0 3px var(--orange), 0 0 0 6px rgba(248,177,51,.25); } }
.stage-list { list-style: none; margin: 0; padding: 0; }
.stage-list li { display: grid; grid-template-columns: 26px 1fr auto; gap: 10px; align-items: center; padding: 8px 0; border-bottom: 1px solid var(--light); font-size: 14px; }
.stage-list li .desc { font-size: 12.5px; color: var(--ink-soft); display: block; }
.stage-list .icon { width: 20px; height: 20px; border-radius: 50%; display: grid; place-items: center; font-size: 12px; background: var(--light); color: var(--ink-soft); }
.stage-list li.done .icon { background: var(--maintained); color: var(--white); }
.stage-list li.running .icon { background: transparent; }
.stage-list li.failed .icon { background: var(--lost); color: var(--white); }
.stage-list li.pending { color: #9a9a95; }
.stage-list .secs { font-size: 12px; color: var(--ink-soft); font-variant-numeric: tabular-nums; }
.download-box { background: var(--orange-wash); border: 1px solid var(--orange-pale); border-radius: 6px; padding: 20px; }
.file-row { display: flex; align-items: center; gap: 14px; background: var(--white); border-radius: var(--radius); padding: 12px 14px; margin-top: 10px; border: 1px solid #f0e2c8; }
.file-row .ficon { width: 38px; height: 44px; background: var(--ink); color: var(--white); display: grid; place-items: center; font-size: 10px; font-weight: 700; border-radius: 3px; flex: none; }
.file-row .ficon.pdf { background: var(--lost); }
.file-row .fname { font-weight: 600; font-size: 14px; word-break: break-all; }
.file-row .btn { margin-left: auto; }
.mini-map { height: 240px; border-radius: var(--radius); overflow: hidden; margin-bottom: 14px; }
.kv { display: grid; grid-template-columns: auto 1fr; gap: 6px 16px; font-size: 14px; margin: 0; }
.kv dt { color: var(--ink-soft); }
.kv dd { margin: 0; font-weight: 600; text-align: right; }
@media (max-width: 960px) { .order-grid { grid-template-columns: 1fr; } }

/* Account tables and order status */
.data-table { width: 100%; border-collapse: collapse; font-size: 14px; background: var(--white); }
.data-table th { text-align: left; font-size: 11.5px; text-transform: uppercase; letter-spacing: .08em; color: var(--ink-soft); font-weight: 700; padding: 10px 12px; border-bottom: 2px solid var(--line); white-space: nowrap; }
.data-table td { padding: 11px 12px; border-bottom: 1px solid var(--light); vertical-align: middle; }
.data-table tr.clickable { cursor: pointer; }
.data-table tr.clickable:hover td { background: #fcfbf8; }
.data-table .r { text-align: right; font-variant-numeric: tabular-nums; }
.status { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 700; padding: 3px 9px; border-radius: 12px; white-space: nowrap; }
.status::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.status-delivered { background: #e3f2df; color: #25702c; }
.status-processing, .status-paid { background: #fff0d6; color: #9a5b00; }
.status-awaiting_payment { background: var(--light); color: var(--ink-soft); }
.status-failed { background: #f7e0e0; color: var(--lost); }
.empty-state { text-align: center; padding: 48px 20px; color: var(--ink-soft); }
.empty-state .mark { margin: 0 auto 14px; opacity: .7; }
.signin-box { max-width: 440px; margin: 60px auto; }

/* The stand-in's demo inbox */
.inbox { display: grid; grid-template-columns: 340px 1fr; border: 1px solid var(--line); border-radius: 6px; overflow: hidden; height: 72vh; min-height: 520px; background: var(--white); }
.inbox-list { border-right: 1px solid var(--line); overflow-y: auto; }
.inbox-item { padding: 14px 16px; border-bottom: 1px solid var(--light); cursor: pointer; }
.inbox-item:hover { background: #fcfbf8; }
.inbox-item.active { background: var(--orange-wash); box-shadow: inset 3px 0 0 var(--orange); }
.inbox-item .from { font-weight: 700; font-size: 13.5px; display: flex; justify-content: space-between; }
.inbox-item .from time { font-weight: 400; color: var(--ink-soft); font-size: 12px; }
.inbox-item .subj { font-size: 13.5px; margin-top: 2px; }
.inbox-item .to { font-size: 12px; color: var(--ink-soft); }
.inbox-view { display: flex; flex-direction: column; min-width: 0; }
.inbox-view-head { padding: 16px 20px; border-bottom: 1px solid var(--line); }
.inbox-view iframe { flex: 1; border: 0; width: 100%; background: #f5f4f1; }

/* Product catalogue page */
.cat-section { margin-top: 48px; }
.cat-section-head { display: flex; align-items: center; gap: 14px; margin-bottom: 18px; }
.cat-section-head .swatch { width: 16px; height: 16px; transform: rotate(45deg); }
.cat-section-head h2 { margin: 0; font-size: 24px; }
.cat-section-head p { margin: 0 0 0 auto; color: var(--ink-soft); font-size: 14px; max-width: 32em; text-align: right; }

/* Printing a quote from the shop prints only the quote. */
@media print {
  .demo-bar, .site-header, .site-footer, .shop-map, .stepper, .panel-foot, .form-grid, .check, #quote-view .btn, .toast { display: none !important; }
  .shop-shell { display: block; height: auto; }
  .shop-panel { border: 0; }
  .panel-body { overflow: visible; padding: 0; }
  #quote-view::before { content: "ArchAI quotation"; display: block; font-family: var(--title); font-size: 28px; text-transform: uppercase; letter-spacing: .08em; margin-bottom: 18px; }
}

/* Product card, web view: the A4 sheets sit on a grey desk. */
.card-web-bar { background: var(--white); border-bottom: 1px solid var(--line); position: sticky; top: 72px; z-index: 900; }
.card-web-bar-row { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding-top: 12px; padding-bottom: 12px; flex-wrap: wrap; }
.crumbs { font-size: 14px; color: var(--ink-soft); }
.crumbs a { color: var(--ink-soft); text-decoration: none; }
.crumbs a:hover { color: var(--ink); text-decoration: underline; }
.card-web-actions { display: flex; gap: 10px; }
.card-web { background: #e4e3df; padding: 36px 16px 48px; }
.card-sheet { display: flex; flex-direction: column; align-items: center; gap: 28px; }
.card-web .card-page { box-shadow: 0 2px 6px rgba(0,0,0,.1), 0 18px 40px rgba(0,0,0,.12); max-width: 100%; }
/* On phones the web card reflows into one column. The PDF has no .card-web, so it keeps the A4 layout. */
@media (max-width: 760px) {
  .card-web { padding: 20px 0 32px; }
  .card-web .card-page { width: 100%; min-height: 0; }
  .card-web .card-hero { height: 44vw; }
  .card-web .card-title { padding: 0 20px; gap: 14px; margin-top: -12vw; }
  .card-web .card-title .mark { width: 54px; height: 60px; }
  .card-web .card-title h1 { font-size: 26px; overflow-wrap: anywhere; }
  .card-web .card-cols, .card-web .card-band, .card-web .card-band2, .card-web .card-foot { flex-direction: column; }
  .card-web .card-cols { padding: 20px; gap: 20px; }
  .card-web .card-band { padding: 20px; gap: 18px; }
  .card-web .card-band > div { padding: 0; }
  .card-web .card-band > div + div { border-left: 0; border-top: 1px solid var(--band-accent, #f8b133); padding-top: 14px; }
  .card-web .card-band2 .uses { padding: 20px; }
  .card-web .card-foot { align-items: flex-start; gap: 14px; padding: 20px; }
  .card-web .card-section, .card-web .card-attrib { padding-left: 20px; padding-right: 20px; }
  .card-web .spec-table { width: calc(100% - 40px); margin: 20px; }
  .card-web .spec-table th { width: 30%; }
  .card-web .card-gallery, .card-web .card-report-pages { grid-template-columns: 1fr 1fr; }
  .card-web .schema-table td.f { width: 34%; overflow-wrap: anywhere; }
}
.card-explore { width: 210mm; max-width: 100%; background: var(--white); padding: 28px 30px 30px; box-shadow: 0 2px 6px rgba(0,0,0,.1); }
.card-explore h2 { font-size: 24px; }
.explore-map-wrap { position: relative; height: 520px; border-radius: var(--radius); overflow: hidden; }
#explore-map { position: absolute; inset: 0; background: var(--light); }
.explore-map-wrap .basemap-switch { flex-wrap: nowrap; justify-content: flex-end; max-width: calc(100vw - 96px); overflow-x: auto; }
.explore-map-wrap .basemap-switch button { white-space: nowrap; }
.pay-page .site-header, .pay-page .site-footer { display: none; }

/* Key for the hatched "no historic map" areas drawn by NlsCountyMosaic (common.js). */
.historic-key { bottom: 30px; padding: 0; font-size: 11.5px; color: var(--ink-soft); max-width: none; }
.historic-key #historic-key-zoom { padding: 5px 9px; }
.historic-key-chip { display: flex; align-items: center; gap: 0; background: none; border: 0; padding: 5px 9px; font: inherit; color: inherit; cursor: pointer; }
.historic-key-explain { display: none; position: absolute; left: 0; bottom: calc(100% + 8px); width: min(300px, calc(100vw - 48px)); background: var(--white); color: var(--ink); padding: 11px 13px; border-radius: var(--radius); box-shadow: var(--shadow); font-size: 12.5px; line-height: 1.5; }
.historic-key-explain p { margin: 6px 0 0; }
#historic-key-gap:hover .historic-key-explain, #historic-key-gap.open .historic-key-explain { display: block; }
.historic-key .hatch-swatch { display: inline-block; vertical-align: -3px; width: 14px; height: 14px; margin-right: 6px; border: 1px solid #d8cfbb;
  background: repeating-linear-gradient(135deg, rgba(160,140,105,.55) 0 1.5px, #f3efe4 1.5px 6px); }

/* Readiness checklist on the quote: what we checked before taking payment. */
.checklist { list-style: none; margin: 8px 0 12px; padding: 0; border: 1px solid var(--line); border-radius: 4px; }
.checklist li { display: grid; grid-template-columns: 22px minmax(120px, 34%) 1fr; gap: 8px; align-items: start; padding: 7px 10px; font-size: 13px; border-top: 1px solid var(--line); }
.checklist li:first-child { border-top: 0; }
.checklist .mark { font-weight: 700; text-align: center; }
.checklist .what { font-weight: 600; }
.checklist .detail { color: var(--ink-soft); overflow-wrap: anywhere; }
.checklist .ok .mark { color: var(--green); }
.checklist .warn .mark { color: var(--orange-dark); }
.checklist .skip .mark { color: var(--ink-soft); }
.checklist .fail, .checklist .down { background: #fbeaea; }
.checklist .fail .mark, .checklist .down .mark { color: var(--lost); }
.checklist .spinner { width: 13px; height: 13px; display: inline-block; vertical-align: middle; }
@media (max-width: 560px) { .checklist li { grid-template-columns: 22px 1fr; } .checklist .detail { grid-column: 2; } }

/* Draw tools on the map, under the place search (step 1 only). */
.map-draw { position: absolute; top: 64px; left: 56px; right: 12px; z-index: 800; display: flex; flex-wrap: wrap; gap: 6px; pointer-events: none; }
.map-draw button { pointer-events: auto; white-space: nowrap; display: flex; align-items: center; gap: 6px; background: var(--white); border: 0; border-radius: var(--radius); box-shadow: var(--shadow); padding: 7px 11px; font: 600 12.5px var(--body); color: var(--ink); cursor: pointer; }
.map-draw button:hover { background: #fff8ea; }
.map-draw button.active { background: var(--ink); color: var(--white); }
.map-draw svg { width: 16px; height: 16px; fill: rgba(248,177,51,.25); stroke: var(--orange-dark); stroke-width: 1.8; stroke-linejoin: round; }
.map-draw button.active svg { stroke: var(--orange); }
.map-draw button.draw-finish { background: var(--orange); }
.draw-buttons .btn.active { outline: 3px solid var(--orange); outline-offset: 1px; }
.map-search { z-index: 810; }

/* A narrow map (phones, and laptops where the panel takes the right): the place search
   takes the full width, the map buttons the row below it, and the draw buttons the next. */
@container (max-width: 660px) {
  .map-search { left: 56px; right: 14px; width: auto; }
  .map-controls { top: 64px; }
  .map-draw { top: 112px; }
}

/* Phones: a customer's orders show the order, site, total and status; the order page has the rest. */
@media (max-width: 640px) {
  .orders-table th:nth-child(2), .orders-table td:nth-child(2),
  .orders-table th:nth-child(4), .orders-table td:nth-child(4) { display: none; }
  .orders-table td, .orders-table th { padding-left: 8px; padding-right: 8px; }
}

/* Beta label (launch): a badge on the Data Shop menu item and a strip on the shop's pages. */
.beta-pill { display: inline-block; font: 700 10.5px/1 var(--body); letter-spacing: .08em; text-transform: uppercase; color: var(--ink); background: var(--orange-pale); border-radius: 99px; padding: 3px 7px; vertical-align: 2px; margin-left: 5px; }
.beta-strip { background: var(--orange-wash); border-bottom: 1px solid var(--orange-pale); font-size: 13.5px; line-height: 20px; color: var(--ink); padding: 8px 0; }
@media (min-width: 961px) { .beta-strip { height: 37px; white-space: nowrap; overflow: hidden; } }  /* one line: the quote page subtracts 37px */
.beta-strip .wrap { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.beta-strip .beta-pill { margin-left: 0; }
.beta-strip a { color: var(--ink); }

/* Cookie banner (static/consent.js): a card at the bottom left, clear of the page's own controls. */
.cookie-banner { position: fixed; left: max(16px, env(safe-area-inset-left, 0px)); bottom: max(16px, env(safe-area-inset-bottom, 0px)); z-index: 4000; width: min(440px, calc(100vw - 32px)); background: var(--white); color: var(--ink); border: 1px solid var(--line); border-radius: 6px; box-shadow: 0 12px 36px rgba(0,0,0,.18); padding: 14px 16px; font-size: 13.5px; display: grid; gap: 10px; }
.cookie-banner p { margin: 0; }
.cookie-banner a { color: var(--ink); }
.cookie-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.link-button { background: none; border: 0; padding: 0; font: inherit; color: inherit; text-decoration: underline; cursor: pointer; }

/* Product tiles: where the layer's data exists (data/coverage.json). */
.tile-cov { font-size: 12.5px; color: var(--green-dark); margin: -4px 0 8px; }
