/* Customer-facing pages: order page, order status page, terms and privacy.
   System fonts only (the security policy allows nothing else), so it loads instantly and looks native everywhere. */
:root {
  --ink: #0c1b2c;
  --ink-2: #3a4a5d;
  --muted: #667689;
  --navy: #0b2239;
  --navy-2: #123a5e;
  --blue: #1d5f9c;
  --amber: #f5a524;
  --amber-2: #e08e00;
  --amber-soft: #fff6e3;
  --bg: #eef2f6;
  --card: #ffffff;
  --line: #e1e7ee;
  --line-2: #ccd6e1;
  --ok: #0d8559;
  --ok-soft: #e4f5ec;
  --bad: #c0392b;
  --bad-soft: #fdecea;
  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 18px 40px -22px rgba(11, 34, 57, .35), 0 2px 8px rgba(11, 34, 57, .06);
  --header-h: 64px;
  --foot-h: 46px;
  --font: "Inter", ui-sans-serif, -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI Variable Text", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

  /* small icons, used as masks so they take the colour of the text around them */
  --i-check: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E");
  --i-lock: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Crect x='5' y='10' width='14' height='11' rx='2.5'/%3E%3Cpath d='M8 10V7a4 4 0 0 1 8 0v3' fill='none' stroke='black' stroke-width='2.6' stroke-linecap='round'/%3E%3C/svg%3E");
  --i-search: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23667689' stroke-width='2.2' stroke-linecap='round'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='M20 20l-3.5-3.5'/%3E%3C/svg%3E");
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
html, body { margin: 0; }
body {
  font: 15px/1.5 var(--font);
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
a { color: var(--blue); text-underline-offset: 3px; }
a:hover { color: var(--navy-2); }
h1, h2 { letter-spacing: -.015em; }
h2 { margin: 0; font-size: 1rem; font-weight: 700; }
small { color: var(--muted); font-weight: 400; }
:where(button, a, summary):focus-visible { outline: 3px solid rgba(29, 95, 156, .45); outline-offset: 2px; }

/* ------------------------------------------------------------ header */
.site {
  display: flex; align-items: center; gap: 14px; flex-wrap: nowrap;
  min-height: var(--header-h); padding: 0 24px;
  background: linear-gradient(180deg, #0b2239, #0e2c49);
  color: #fff; box-shadow: 0 1px 0 rgba(255, 255, 255, .06) inset, 0 6px 18px -10px rgba(11, 34, 57, .6);
  position: relative; z-index: 5;
}
.brand { display: flex; align-items: center; gap: 11px; min-width: 0; }
.mark { display: inline-flex; flex: none; width: 34px; height: 34px; filter: drop-shadow(0 2px 6px rgba(0, 0, 0, .3)); }
.mark svg { width: 100%; height: 100%; }
.site .logo { color: #fff; font-weight: 700; font-size: 1.02rem; text-decoration: none; letter-spacing: -.01em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.site .tag {
  color: #c4d3e3; font-size: .76rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase;
  border: 1px solid rgba(255, 255, 255, .18); border-radius: 999px; padding: 4px 12px; white-space: nowrap;
}
.site .back {
  margin-left: auto; color: #fff; font-size: .86rem; font-weight: 600; text-decoration: none; white-space: nowrap;
  padding: 8px 15px; border-radius: 999px; background: rgba(255, 255, 255, .09); transition: background .15s;
}
.site .back:hover { background: rgba(255, 255, 255, .18); color: #fff; }
.site .back .short { display: none; }
.banner { padding: 11px 24px; background: var(--amber-soft); border-bottom: 1px solid #f3d99b; color: #5a3d00; font-weight: 500; }

/* ------------------------------------------------------------ order page: map + panel */
.layout {
  display: grid; grid-template-columns: minmax(0, 1fr) 468px; gap: 18px; padding: 18px 24px;
  height: calc(100vh - var(--header-h) - var(--foot-h)); min-height: 600px;
}
.mapwrap { position: relative; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); background: #dfe6ee; min-height: 420px; isolation: isolate; }
#map { position: absolute; inset: 0; }
.panel { background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; scrollbar-color: #c6d1de transparent; }

.intro { padding: 26px 26px 20px; background: linear-gradient(180deg, #f7f9fc, #fff); border-bottom: 1px solid var(--line); }
.eyebrow { display: inline-block; margin: 0 0 8px; font-size: .72rem; font-weight: 700; letter-spacing: .09em; text-transform: uppercase; color: var(--amber-2); }
.intro h1 { margin: 0 0 8px; font-size: 1.55rem; line-height: 1.2; font-weight: 800; letter-spacing: -.025em; color: var(--navy); }
.intro .lead { margin: 0 0 18px; color: var(--ink-2); font-size: .93rem; }
.perks { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.perks li { display: flex; flex-direction: column; gap: 6px; padding: 11px 12px; background: #fff; border: 1px solid var(--line); border-radius: 12px; font-size: .78rem; line-height: 1.3; color: var(--muted); }
.perks b { display: block; color: var(--ink); font-size: .84rem; font-weight: 700; }
.perks svg { width: 20px; height: 20px; color: var(--blue); }

/* steps */
/* the divider is a shadow, not a border: a fieldset border is cut open wherever its legend sits */
.step { border: 0; box-shadow: 0 -1px 0 var(--line); margin: 0; padding: 22px 26px; min-width: 0; }
.intro + .step { box-shadow: none; }
#step1 > h2 { margin-bottom: 14px; }
.step legend { display: block; width: 100%; float: none; padding: 0; margin: 0 0 14px; }
.step h2 { display: flex; align-items: center; gap: 11px; width: 100%; font-size: 1.02rem; }
.n {
  display: inline-grid; place-items: center; flex: none; width: 27px; height: 27px; border-radius: 50%;
  background: linear-gradient(180deg, #1a4d7a, #123a5e); color: #fff; font-size: .82rem; font-weight: 700;
  box-shadow: 0 3px 8px -2px rgba(18, 58, 94, .5);
}
.step.locked > :not(legend) { opacity: .42; }
.step.locked .n { background: #b8c4d2; box-shadow: none; }
.step.locked h2::after {
  content: "Outline your site to unlock"; margin-left: auto; font-size: .7rem; font-weight: 600; color: var(--muted);
  background: #eef2f6; padding: 3px 10px; border-radius: 999px; white-space: nowrap;
}

/* fields */
label { display: block; margin: 0 0 14px; font-weight: 600; font-size: .84rem; color: var(--ink-2); }
input:not([type=checkbox]):not([type=radio]), textarea, select {
  display: block; width: 100%; margin-top: 6px; padding: 11px 13px; min-height: 44px; font: inherit; font-size: .95rem; font-weight: 400;
  border: 1px solid var(--line-2); border-radius: var(--radius-sm); background: #fff; color: var(--ink);
  transition: border-color .15s, box-shadow .15s, background .15s;
}
textarea { resize: vertical; min-height: 72px; }
input::placeholder, textarea::placeholder { color: #9aa8b8; }
input:not([type=checkbox]):not([type=radio]):hover, textarea:hover { border-color: #aab8c8; }
input:focus-visible, textarea:focus-visible, select:focus-visible { outline: none; border-color: var(--blue); box-shadow: 0 0 0 4px rgba(29, 95, 156, .16); }
input:user-invalid, textarea:user-invalid { border-color: var(--bad); }
input:user-invalid:focus-visible { box-shadow: 0 0 0 4px rgba(192, 57, 43, .15); }
fieldset:disabled input, fieldset:disabled textarea { background: #f4f6f9; cursor: not-allowed; }
input#q { padding-left: 40px; background: var(--i-search) 13px 50% / 18px no-repeat #fff; }
input[type=search]::-webkit-search-cancel-button { cursor: pointer; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.help { color: var(--muted); font-size: .82rem; margin: 8px 0; }
.help.req { margin: -6px 0 14px; }

/* search + tools */
.results { list-style: none; margin: -6px 0 14px; padding: 4px; border: 1px solid var(--line); border-radius: 12px; max-height: 240px; overflow: auto; background: #fff; box-shadow: 0 14px 28px -16px rgba(11, 34, 57, .35); }
.results li button { width: 100%; text-align: left; padding: 10px 12px; border: 0; border-radius: 8px; background: transparent; font: inherit; font-size: .9rem; color: var(--ink); cursor: pointer; }
.results li button:hover, .results li button:focus-visible { background: #eef4fa; }
.results .none { padding: 10px 12px; color: var(--muted); font-size: .9rem; }
.tools { display: flex; flex-wrap: wrap; gap: 8px; margin: 4px 0 12px; }
.quick { display: flex; flex-wrap: wrap; align-items: center; gap: 7px; font-size: .84rem; color: var(--muted); }
.chip { border: 1px solid var(--line-2); background: #fff; color: var(--navy-2); border-radius: 999px; padding: 5px 14px; font: inherit; font-size: .84rem; font-weight: 600; cursor: pointer; transition: all .15s; }
.chip:hover { background: var(--navy-2); border-color: var(--navy-2); color: #fff; }
.area {
  display: flex; align-items: center; gap: 9px; margin-top: 12px; padding: 12px 14px; border-radius: var(--radius-sm);
  background: #f3f6fa; border: 1px solid var(--line); font-weight: 600; font-size: .9rem; color: var(--ink-2);
}
.area.ok { background: var(--ok-soft); border-color: #bfe4d0; color: var(--ok); }
.area.ok::before { content: ""; flex: none; width: 18px; height: 18px; background: currentColor; -webkit-mask: var(--i-check) center / contain no-repeat; mask: var(--i-check) center / contain no-repeat; }
.area.bad { background: var(--bad-soft); border-color: #f2c3bd; color: var(--bad); }

/* buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; text-align: center;
  border: 1px solid var(--navy-2); background: var(--navy-2); color: #fff; border-radius: var(--radius-sm);
  padding: 11px 18px; font: inherit; font-size: .92rem; font-weight: 600; cursor: pointer; text-decoration: none;
  transition: transform .15s, box-shadow .15s, background .15s, border-color .15s;
}
.btn svg { width: 16px; height: 16px; flex: none; }
.btn:hover:not(:disabled) { background: var(--navy); border-color: var(--navy); color: #fff; transform: translateY(-1px); box-shadow: 0 8px 18px -10px rgba(11, 34, 57, .7); }
.btn.small { padding: 8px 14px; font-size: .86rem; }
.btn.ghost { background: #fff; color: var(--navy-2); border-color: var(--line-2); }
.btn.ghost:hover:not(:disabled) { background: #f2f6fa; border-color: #aab8c8; color: var(--navy); box-shadow: none; }
.btn.primary {
  width: 100%; padding: 15px 18px; font-size: 1.03rem; font-weight: 700; border-radius: 12px; color: #1d1300;
  background: linear-gradient(180deg, #ffbf44, #f5a524); border-color: var(--amber-2);
  box-shadow: 0 12px 24px -12px rgba(224, 142, 0, .8), inset 0 1px 0 rgba(255, 255, 255, .55);
}
.btn.primary::before { content: ""; width: 17px; height: 17px; background: currentColor; -webkit-mask: var(--i-lock) center / contain no-repeat; mask: var(--i-lock) center / contain no-repeat; opacity: .8; }
.btn.primary:hover:not(:disabled) { background: linear-gradient(180deg, #ffc65c, #f7ac30); border-color: var(--amber-2); color: #1d1300; box-shadow: 0 16px 28px -14px rgba(224, 142, 0, .9), inset 0 1px 0 rgba(255, 255, 255, .6); }
.btn:disabled { opacity: .55; cursor: not-allowed; transform: none; }
a.btn { text-decoration: none; }

/* packages */
.pkg {
  display: block; position: relative; border: 1.5px solid var(--line-2); border-radius: 14px; background: #fff;
  padding: 16px 18px 16px 52px; cursor: pointer; margin: 0 0 10px; font-weight: 400; color: var(--ink);
  transition: border-color .15s, box-shadow .15s, background .15s;
}
.pkg:hover { border-color: #9fb0c3; }
.pkg input { appearance: none; -webkit-appearance: none; position: absolute; left: 18px; top: 18px; width: 22px; height: 22px; margin: 0; border: 2px solid #9fb0c3; border-radius: 50%; background: #fff; cursor: pointer; transition: all .15s; }
.pkg input:checked { border-color: var(--amber-2); background: var(--amber); box-shadow: inset 0 0 0 4px #fff; }
.pkg.on { border-color: var(--amber); background: var(--amber-soft); box-shadow: 0 0 0 4px rgba(245, 165, 36, .16); }
.pkg .top { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; font-weight: 700; font-size: 1rem; }
.pkg .price { white-space: nowrap; font-size: 1.3rem; font-weight: 800; letter-spacing: -.02em; font-variant-numeric: tabular-nums; color: var(--navy); }
.pkg .tagline { color: var(--muted); font-size: .86rem; margin: 3px 0 10px; }
.pkg ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; font-size: .88rem; color: var(--ink-2); }
.pkg li { position: relative; padding-left: 24px; }
.pkg li::before { content: ""; position: absolute; left: 0; top: .22em; width: 15px; height: 15px; background: var(--ok); -webkit-mask: var(--i-check) center / contain no-repeat; mask: var(--i-check) center / contain no-repeat; }

/* review and pay */
.summary {
  display: grid; grid-template-columns: auto 1fr; margin: 0 0 18px; padding: 4px 16px; font-size: .88rem;
  background: #f6f8fb; border: 1px solid var(--line); border-radius: 14px;
}
.summary dt, .summary dd { margin: 0; padding: 10px 0; border-bottom: 1px solid var(--line); }
.summary dt { color: var(--muted); padding-right: 18px; }
.summary dd { text-align: right; font-weight: 600; word-break: break-word; }
.summary dt:last-of-type, .summary dd:last-child { border-bottom: 0; padding-top: 12px; color: var(--ink); font-size: 1.04rem; font-weight: 800; }
.summary dt:last-of-type { font-weight: 700; }
.check { display: flex; gap: 12px; align-items: flex-start; margin: 0 0 16px; font-weight: 400; font-size: .86rem; color: var(--ink-2); }
.check input { appearance: none; -webkit-appearance: none; flex: none; width: 21px; height: 21px; margin: 1px 0 0; border: 1.5px solid #9fb0c3; border-radius: 6px; background: #fff; cursor: pointer; transition: all .15s; }
.check input:checked {
  border-color: var(--navy-2);
  background: var(--navy-2) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / 14px no-repeat;
}
.error { background: var(--bad-soft); color: var(--bad); border: 1px solid #f2c3bd; border-left: 4px solid var(--bad); border-radius: var(--radius-sm); padding: 11px 14px; margin: 0 0 14px; font-weight: 600; font-size: .9rem; }
#payHelp { text-align: center; margin: 14px 0 0; }
.trust { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 16px; margin: 12px 0 0; padding: 0; list-style: none; font-size: .76rem; color: var(--muted); font-weight: 600; }
.trust li { display: inline-flex; align-items: center; gap: 6px; }
.trust li::before { content: ""; width: 13px; height: 13px; background: var(--ok); -webkit-mask: var(--i-check) center / contain no-repeat; mask: var(--i-check) center / contain no-repeat; }

.site-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 2px 14px; min-height: var(--foot-h); padding: 8px 24px; font-size: .78rem; color: var(--muted); text-align: center; }
.site-foot a { color: var(--ink-2); }

/* Leaflet polish */
.leaflet-container { font: inherit; background: #dfe6ee; }
.leaflet-bar { border: 0 !important; border-radius: 12px !important; overflow: hidden; box-shadow: 0 8px 22px -10px rgba(11, 34, 57, .55) !important; }
.leaflet-bar a { width: 36px; height: 36px; line-height: 36px; color: var(--navy-2); }
.leaflet-control-layers { border: 0 !important; border-radius: 12px !important; box-shadow: 0 8px 22px -10px rgba(11, 34, 57, .55) !important; }
.leaflet-control-attribution { border-radius: 8px 0 0 0; font-size: .7rem; }

/* ------------------------------------------------------------ order status page */
.narrow-page { max-width: 700px; margin: 36px auto 56px; padding: 0 16px; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 34px 36px; margin-bottom: 18px; }
.card h1 { margin: 0 0 6px; font-size: 1.65rem; line-height: 1.2; font-weight: 800; letter-spacing: -.025em; color: var(--navy); }
.card h2 { display: block; margin: 26px 0 8px; font-size: 1.05rem; }
.card p { margin: 0 0 12px; }
.hero { display: flex; align-items: center; gap: 16px; margin-bottom: 16px; }
.hero-icon { flex: none; display: grid; place-items: center; width: 52px; height: 52px; border-radius: 50%; font-size: 1.5rem; font-weight: 800; }
.hero-icon.ok { background: var(--ok-soft); color: var(--ok); box-shadow: 0 0 0 6px rgba(13, 133, 89, .08); }
.hero-icon.warn { background: var(--bad-soft); color: var(--bad); }
.hero-icon.wait { border: 4px solid #e4eaf1; border-top-color: var(--amber); background: transparent; animation: spin 1s linear infinite; }
.hero-sub { margin: 0; color: var(--muted); font-size: .92rem; }
@keyframes spin { to { transform: rotate(360deg); } }
.meta { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 22px; padding: 0; list-style: none; }
.meta li { background: #f3f6fa; border: 1px solid var(--line); border-radius: 999px; padding: 5px 12px; font-size: .82rem; font-weight: 600; color: var(--ink-2); }
.meta li:first-child { font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace; font-size: .8rem; color: var(--navy); background: #e9f0f8; border-color: #d4e1ef; }
.timeline { list-style: none; padding: 0; margin: 8px 0 4px; }
.timeline li { position: relative; display: flex; align-items: center; gap: 14px; padding: 0 0 22px; color: var(--muted); font-weight: 500; }
.timeline li:last-child { padding-bottom: 0; }
.timeline li::before { content: ""; position: absolute; left: 12px; top: 28px; bottom: 4px; width: 2px; background: var(--line); }
.timeline li:last-child::before { display: none; }
.timeline li.done { color: var(--ink); }
.timeline li.done::before { background: var(--ok); }
.timeline li.now { color: var(--ink); font-weight: 700; }
.timeline .dot { flex: none; width: 26px; height: 26px; border-radius: 50%; background: #e4eaf1; display: grid; place-items: center; font-size: .78rem; font-weight: 800; color: #fff; }
.timeline .done .dot { background: var(--ok); }
.timeline .now .dot { background: #fff; border: 2px solid var(--amber); box-shadow: 0 0 0 5px rgba(245, 165, 36, .18); }
.timeline + .tools { margin-top: 24px; }
.files { list-style: none; margin: 8px 0 0; padding: 0; }
.files li { padding: 11px 0; border-bottom: 1px solid var(--line); }
.files li:last-child { border-bottom: 0; }
.callout { background: var(--amber-soft); border: 1px solid #f3d99b; border-radius: 14px; padding: 18px 20px; margin: 16px 0; }
.callout h2 { display: block; font-size: 1rem; margin: 14px 0 4px; }
.callout h2:first-child { margin-top: 0; }
.callout p { margin: 0 0 6px; }
.pre { white-space: pre-wrap; }
.contact { margin: 10px 0; }

/* ------------------------------------------------------------ terms and privacy */
.legal { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 38px 44px; max-width: 780px; line-height: 1.65; }
.legal h1 { margin: 0 0 18px; font-size: 1.75rem; line-height: 1.2; font-weight: 800; letter-spacing: -.025em; color: var(--navy); }
.legal h2 { margin: 28px 0 6px; font-size: 1.05rem; color: var(--navy-2); }
.legal p { margin: 0 0 12px; color: var(--ink-2); }
.draft { background: var(--amber-soft); border: 1px solid #f3d99b; border-left: 4px solid var(--amber); padding: 12px 16px; border-radius: var(--radius-sm); font-weight: 600; font-size: .88rem; color: #5a3d00 !important; }

/* ------------------------------------------------------------ phones and tablets */
@media (max-width: 960px) {
  .site { padding: 0 16px; }
  .site .tag { display: none; }
  .layout { display: block; height: auto; min-height: 0; padding: 12px; }
  .mapwrap { height: 52vh; min-height: 340px; margin-bottom: 12px; }
  .panel { overflow: visible; }
  .intro, .step { padding-left: 20px; padding-right: 20px; }
  .card { padding: 26px 22px; }
  .legal { padding: 28px 22px; }
  .narrow-page { margin-top: 20px; }
  .banner { padding: 11px 16px; }
}
@media (max-width: 430px) {
  .perks { grid-template-columns: 1fr; gap: 8px; }
  .perks li { flex-direction: row; align-items: center; gap: 12px; padding: 9px 12px; }
  .perks svg { width: 18px; height: 18px; }
  .site { gap: 10px; }
  .site .back { padding: 7px 12px; font-size: .8rem; }
  .site .back .long { display: none; }
  .site .back .short { display: inline; }
  .step.locked h2::after { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; scroll-behavior: auto !important; }
}
