/* ****************************************
 * Page colours and shared elements
 * **************************************** */
:root {
    color-scheme: light;
    --navy: #2f466b;
    --ink: #25364d;
    --green: #337d27;
    --muted: #53616a;
    --line: #d6ddd9;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; scroll-padding-top: 24px; }
body { margin: 0; background: #f5f6f5; color: var(--ink); font: 16px/1.6 Arial, Helvetica, sans-serif; }
h1, h2, h3, p, figure, ul, ol, dl, dd { margin: 0; }
h1, h2, h3 { line-height: 1.15; }
h2 { font-size: 34px; letter-spacing: -.8px; }
h3 { font-size: 20px; letter-spacing: -.3px; }
a { color: #315d8b; text-underline-offset: 4px; }
a:hover { text-decoration-thickness: 2px; }
a:focus-visible, button:focus-visible, summary:focus-visible { outline: 3px solid #dc971d; outline-offset: 5px; }
img { max-width: 100%; height: auto; display: block; }
svg { width: 20px; height: 20px; flex-shrink: 0; vertical-align: middle; }
button { font: inherit; }
.site-width { width: min(1200px, calc(100% - 40px)); margin-inline: auto; }
#main { background: #fff; border: 1px solid var(--line); }
.visually-hidden, .skip-link:not(:focus) { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip-link:focus { position: absolute; top: 10px; left: 20px; z-index: 5; padding: 10px 16px; background: white; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 12px; min-height: 49px; padding: 12px 20px; border: 1px solid transparent; border-bottom-width: 3px; border-radius: 4px; font-weight: bold; font-size: 15px; line-height: 1.4; text-align: center; text-decoration: none; }
.button.primary { background: #3d8a2d; color: #fff; border-color: #286822; }
.button.light { background: #fff8df; color: var(--ink); border-color: #d9b14b; }
a.button:hover { filter: brightness(.95); }
.text-link, .example-link { display: inline-flex; align-items: center; gap: 8px; font-weight: bold; font-size: 14px; text-decoration: none; }
.text-link:hover, .example-link:hover { text-decoration: underline; }

/* ****************************************
 * Header and navigation
 * **************************************** */
.site-header { background: var(--navy); color: #fff; }
.header-row { display: flex; align-items: center; justify-content: space-between; gap: 25px; min-height: 100px; padding: 20px 8px; }
.brand { display: inline-flex; align-items: center; gap: 12px; color: #fff; text-decoration: none; }
.brand img { width: 80px; height: 40px; }
.brand strong, .brand small { display: block; }
.brand strong { font-size: 25px; line-height: 1.15; }
.brand small { font-size: 15px; line-height: 1.5; }
.phone { text-align: center; }
.phone span { display: block; font-size: 12px; color: #e1e8f0; }
.phone a { color: #fff; font-size: 24px; line-height: 1.2; font-weight: bold; text-decoration: none; }
.login-link { display: inline-flex; align-items: center; gap: 30px; border: 1px solid #a6b8cc; padding: 8px 15px; border-radius: 4px; color: white; font-size: 14px; font-weight: bold; text-decoration: none; }
.login-link:hover { background: #243957; }
.header-nav { background: #25364d; }
.nav-row { display: flex; align-items: center; gap: 28px; min-height: 46px; padding-inline: 8px; }
.nav-row a { color: #fff; font-size: 13px; text-decoration: none; padding-block: 10px; }
.nav-row a:hover { text-decoration: underline; }
.nav-row .support-link { margin-left: auto; color: #e6eddf; }
.breadcrumbs { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding: 17px 1px; font-size: 12px; color: #68746c; }
.breadcrumbs a { color: #49663d; text-decoration: none; }
.breadcrumbs a:hover { text-decoration: underline; }

/* ****************************************
 * Upload area and map example
 * **************************************** */
.hero { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: center; gap: 44px; padding: 45px 38px 36px; }
.hero h1 { font-size: clamp(36px, 3.8vw, 49px); line-height: 1.08; letter-spacing: -1.8px; margin-bottom: 19px; }
.hero h1 span { color: var(--green); }
.hero-lead { font-size: 20px; line-height: 1.4; font-weight: bold; margin-bottom: 10px; max-width: 430px; }
.hero-description { color: var(--muted); font-size: 15px; max-width: 465px; }
.upload-panel { margin-top: 26px; padding: 23px; border: 1.5px dashed #8ba480; border-radius: 5px; background: #f5f8f0; }
.upload-heading { display: flex; gap: 16px; align-items: center; margin-bottom: 20px; }
.upload-icon { display: grid; place-items: center; width: 47px; height: 47px; border-radius: 50%; background: #e7efde; color: var(--green); flex-shrink: 0; }
.upload-icon svg { width: 27px; height: 27px; }
.upload-heading h2 { font-size: 20px; letter-spacing: -.4px; }
.upload-heading p { font-size: 13px; color: var(--muted); margin-top: 4px; }
.upload-button { width: 100%; justify-content: space-between; cursor: pointer; opacity: 1; }
.upload-button:disabled { cursor: not-allowed; }
.file-types { text-align: center; font-size: 12px; color: #53624f; margin-top: 11px; }
.file-types span { margin-inline: 6px; }
.preview-note { font-size: 11px; margin: 8px 0 18px; color: #687469; }
.upload-note { font-size: 12px; margin: 10px 0 18px; color: #53624f; }
.example-link svg { width: 17px; height: 17px; }
.hero-example { min-width: 0; }
.example-top { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin: 0 0 14px; font-size: 12px; }
.file-label { display: inline-flex; align-items: center; gap: 8px; font-weight: bold; color: #47613d; }
.file-label svg { width: 18px; }
.example-tag { color: #66746d; font-size: 11px; }
.map-preview { background: #e8f2f6; padding: 8px; border: 1px solid #becbd1; box-shadow: 7px 8px 0 #e9edf0; border-radius: 4px; }
.map-preview img { width: 100%; }
.map-key { display: flex; justify-content: center; flex-wrap: wrap; gap: 8px 17px; padding: 13px 4px 5px; color: #3c4b5c; font-size: 11px; }
.map-key span, .territory-name { display: inline-flex; align-items: center; gap: 7px; }
.swatch { display: inline-block; width: 11px; height: 11px; border: 1px solid #0002; border-radius: 2px; flex-shrink: 0; }
.north { background: #7dbd97; }
.york { background: #eeaf69; }
.coastal { background: #789fcf; }
.example-result { display: flex; align-items: center; gap: 12px; margin-top: 26px; }
.result-check { display: grid; place-items: center; width: 37px; height: 37px; background: #edf3e7; color: var(--green); border-radius: 50%; }
.example-result strong { font-size: 16px; }
.example-result p { color: var(--muted); font-size: 12px; }
.hero-example figcaption { margin-top: 17px; font-size: 11px; color: #68746c; }
.use-cases { display: flex; justify-content: space-between; gap: 15px; padding: 16px 38px; border-block: 1px solid var(--line); list-style: none; background: #f1f5ea; color: #41602f; font-weight: bold; font-size: 13px; }
.use-cases li { display: flex; align-items: center; gap: 7px; }
.use-cases svg { width: 16px; height: 16px; color: #518a36; }

/* ****************************************
 * Converter upload and question states
 * **************************************** */
.upload-panel.dragging { border-color: #337d27; background: #e7efde; }
.upload-panel[aria-busy="true"] button { opacity: .65; cursor: wait; }
.upload-privacy { margin-top: 14px; color: var(--muted); font-size: 12px; line-height: 1.5; }
.upload-messages p { font-size: 14px; margin-bottom: 14px; overflow-wrap: anywhere; }
.upload-messages .upload-reply { padding: 10px 12px; border-left: 3px solid #8ba480; background: #fff; color: var(--muted); }
.upload-choices { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; }
.upload-choices button { padding: 9px 12px; border: 1px solid #8ba480; border-radius: 4px; background: #fff; color: var(--ink); font-size: 13px; cursor: pointer; text-align: left; }
.upload-choices button:hover { background: #e7efde; }
#postcodeAnswerForm label { display: block; font-size: 12px; color: var(--muted); margin-bottom: 6px; }
.upload-answer { display: flex; gap: 8px; }
.upload-answer input { min-width: 0; width: 100%; border: 1px solid #8ba480; border-radius: 4px; padding: 10px; font: inherit; }
.upload-working { display: flex; align-items: center; gap: 10px; font-size: 14px; margin-block: 18px; }
.upload-spinner { width: 19px; height: 19px; border: 2px solid #cdd9c9; border-top-color: #337d27; border-radius: 50%; flex-shrink: 0; animation: upload-spin 1s linear infinite; }
.upload-error { padding: 12px; margin-top: 16px; background: #fff2ed; color: #813b28; border: 1px solid #d7a18f; border-radius: 4px; font-size: 13px; }
.upload-restart { margin-top: 17px; padding: 0; background: none; border: 0; color: #315d8b; text-decoration: underline; text-underline-offset: 3px; font-size: 12px; cursor: pointer; }
@keyframes upload-spin { to { transform: rotate(360deg); } }

/* ****************************************
 * AI assistant prompt and file preview
 * **************************************** */
.assistant-composer { border-style: solid; padding: 20px; }
.assistant-composer.dragging { border-color: #337d27; background: #e7efde; }
.assistant-prompt-label { display: block; font-size: 15px; font-weight: bold; margin-bottom: 10px; }
.assistant-composer textarea { display: block; width: 100%; min-height: 150px; resize: vertical; padding: 13px; border: 1px solid #c5d1bf; border-radius: 4px; background: #fff; color: var(--ink); font: 15px/1.6 Arial, Helvetica, sans-serif; }
.assistant-composer textarea::placeholder { color: #6b776c; opacity: 1; }
.assistant-composer textarea:focus-visible { outline: 3px solid #dc971d; outline-offset: 2px; }
.assistant-actions { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; margin-top: 16px; }
.assistant-actions button { cursor: pointer; }
.assistant-actions button:disabled { cursor: not-allowed; }
.assistant-attach { display: inline-flex; align-items: center; gap: 6px; border: 0; padding: 8px 0; background: transparent; color: #315d8b; font-size: 13px; font-weight: bold; }
.assistant-file-help { font-size: 12px; line-height: 1.5; color: var(--muted); margin-top: 13px; }
.assistant-files { display: grid; gap: 7px; list-style: none; padding: 0; margin-top: 13px; }
.assistant-files li { display: flex; align-items: center; gap: 12px; padding: 8px 10px; border: 1px solid #d0dbca; border-radius: 3px; background: #fff; font-size: 12px; }
.assistant-files span { min-width: 0; overflow-wrap: anywhere; flex: 1; }
.assistant-files button { flex-shrink: 0; border: 0; background: transparent; padding: 3px; font-size: 11px; color: #315d8b; text-decoration: underline; cursor: pointer; }
.assistant-status { padding-top: 14px; margin-top: 14px; border-top: 1px solid #d0dbca; font-size: 13px; color: #315d8b; }
.assistant-suggestions > p { font-size: 12px; color: var(--muted); margin-bottom: 8px; }
.assistant-suggestions .upload-choices { margin-bottom: 0; }
.assistant-suggestions button { font-size: 12px; padding: 7px 10px; }
.assistant-brief > p { margin: 20px 22px 0; color: var(--muted); font-size: 15px; }
.assistant-brief > button { margin: 20px 22px; padding: 0; border: 0; background: transparent; color: #315d8b; cursor: pointer; }

/* ****************************************
 * Steps and spreadsheet guide
 * **************************************** */
.page-section { padding: 48px 38px; border-bottom: 1px solid var(--line); }
.section-heading { display: grid; grid-template-columns: 1fr 1fr; gap: 44px; align-items: center; margin-bottom: 30px; }
.section-heading > p { color: var(--muted); font-size: 15px; }
.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; list-style: none; padding: 0; }
.steps li { border-top: 2px solid #dce6d3; padding-top: 17px; }
.step-number { display: block; color: #718c54; font-size: 13px; font-weight: bold; margin-bottom: 11px; }
.steps h3 { margin-bottom: 10px; }
.steps p { font-size: 14px; color: var(--muted); }
.spreadsheet-section { display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: 65px; background: #f8faf6; }
.spreadsheet-copy h2 { margin-bottom: 19px; }
.spreadsheet-copy > p { color: var(--muted); font-size: 15px; }
.spreadsheet-copy > p + p { margin-top: 13px; }
.file-guide { margin: 22px 0; font-size: 12px; }
.file-guide > div { display: grid; grid-template-columns: 115px 1fr; gap: 12px; padding: 9px 0; border-top: 1px solid var(--line); }
.file-guide dt { font-weight: bold; }
.file-guide dd { color: var(--muted); }
.spreadsheet-example { min-width: 0; border: 1px solid #cdd9c9; background: #fff; border-radius: 4px; box-shadow: 6px 6px 0 #e8ede2; overflow: hidden; }
.sheet-title { display: flex; align-items: center; gap: 10px; padding: 16px 20px; background: #edf3e7; color: #43643b; font-size: 13px; border-bottom: 1px solid #cdd9c9; }
.sheet-title span { margin-left: auto; font-size: 10px; font-weight: normal; color: #59684f; }
table { width: 100%; border-collapse: collapse; text-align: left; font-size: 14px; }
th, td { padding: 11px 22px; border-bottom: 1px solid #e5e9e3; }
th { font-size: 12px; background: #f9faf8; }
th + th, td + td { border-left: 1px solid #e5e9e3; }
td:first-child { width: 37%; font-family: ui-monospace, monospace; color: #425367; }
.territory-name .swatch { width: 13px; height: 13px; margin-right: 3px; }
.spreadsheet-example figcaption { display: flex; align-items: center; gap: 7px; padding: 14px 20px; color: #526348; font-size: 11px; }
.spreadsheet-example figcaption svg { width: 16px; height: 16px; }

/* ****************************************
 * Example map placeholders
 * **************************************** */
.placeholder-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.map-placeholder { display: grid; place-items: center; aspect-ratio: 4 / 3; padding: 20px; border: 1px dashed #aab7a5; border-radius: 4px; background: #f5f8f0; color: var(--muted); font-size: 14px; }
.example-map figcaption { margin-top: 14px; font-size: 16px; font-weight: bold; }

/* ****************************************
 * Customer reviews
 * **************************************** */
.reviews-heading { display: flex; justify-content: space-between; gap: 20px; }
#reviewsPause { flex-shrink: 0; padding: 8px 12px; border: 1px solid #8ba480; border-radius: 4px; background: #fff; color: #315d8b; font-size: 12px; cursor: pointer; }
.reviews-viewport { overflow-x: auto; padding: 4px 0 10px; scrollbar-width: thin; }
.reviews-viewport:focus-visible { outline: 3px solid #dc971d; outline-offset: 3px; }
.reviews-track { display: flex; width: max-content; }
.reviews-group { display: flex; gap: 20px; padding-right: 20px; flex-shrink: 0; }
.review-card { display: flex; flex-direction: column; width: clamp(250px, 70vw, 330px); flex-shrink: 0; padding: 24px; border: 1px solid var(--line); border-radius: 4px; background: #f8faf6; }
.review-rating { display: flex; gap: 3px; color: var(--green); margin-bottom: 16px; }
.review-rating svg { width: 17px; height: 17px; }
.review-card blockquote { margin: 0 0 24px; font-size: 16px; }
.review-card figcaption { margin-top: auto; font-size: 12px; }
.review-card figcaption strong { display: block; font-size: 14px; margin-bottom: 3px; }
.reviews-moving { overflow-x: hidden; }
.reviews-moving .reviews-track { animation: reviews-pan 90s linear infinite; }
.reviews-moving:hover .reviews-track { animation-play-state: paused; }
.reviews-moving:focus-within, .reviews-paused { overflow-x: auto; }
.reviews-moving:focus-within .reviews-track, .reviews-paused .reviews-track { animation: none; }
.reviews-moving:focus-within .reviews-group[aria-hidden="true"], .reviews-paused .reviews-group[aria-hidden="true"] { display: none; }
@keyframes reviews-pan { to { transform: translateX(-50%); } }

/* ****************************************
 * Map editor and access information
 * **************************************** */
.editor-section { display: grid; grid-template-columns: .9fr 1.1fr; align-items: center; gap: 44px; padding: 43px 38px; background: var(--navy); color: #fff; }
.editor-copy h2 { margin-bottom: 18px; }
.editor-copy > p { font-size: 15px; color: #e1e8f1; }
.editor-features { display: grid; gap: 9px; list-style: none; padding: 0; margin: 24px 0; font-size: 13px; }
.editor-features li { display: flex; align-items: center; gap: 8px; }
.editor-features svg { width: 16px; height: 16px; color: #edce7b; }
.editor-example { min-width: 0; }
.editor-example img { width: 100%; border: 1px solid #b9c5d0; border-radius: 3px; }
.editor-example a { display: block; }
.editor-example a:hover { outline: 2px solid #edce7b; outline-offset: 3px; }
.editor-example figcaption { font-size: 11px; color: #dce6f4; margin-top: 10px; }
.access-note { display: flex; justify-content: space-between; align-items: center; gap: 35px; padding: 24px 38px; background: #fffdf3; border-bottom: 1px solid #e3dfca; }
.access-note strong { color: #476333; font-size: 14px; }
.access-note p { color: var(--muted); font-size: 12px; }
.access-note > p { text-align: right; flex-shrink: 0; }
.access-note > p strong { font-size: 12px; }

/* ****************************************
 * Questions, closing section and footer
 * **************************************** */
.faq-section .section-heading { margin-bottom: 27px; }
.faq-list { border-top: 1px solid var(--line); }
.faq-list details { border-bottom: 1px solid var(--line); }
.faq-list summary { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 19px 0; list-style: none; cursor: pointer; font-size: 15px; font-weight: bold; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary svg { color: #557b35; }
.faq-list details[open] summary svg { transform: rotate(45deg); }
.faq-list summary:hover { color: var(--green); }
.faq-list details > p { max-width: 930px; padding: 0 30px 20px 0; color: var(--muted); font-size: 14px; }
.closing-cta { display: flex; align-items: center; justify-content: space-between; gap: 32px; padding: 35px 38px; background: #edf3e7; }
.closing-cta h2 { font-size: 25px; letter-spacing: -.5px; }
.closing-cta p { font-size: 14px; color: #536348; margin-top: 8px; }
.closing-cta .button { flex-shrink: 0; font-size: 14px; }
.site-footer { margin-top: 35px; padding: 28px 0 35px; background: var(--navy); color: #e4eaf2; }
.footer-row { display: flex; align-items: flex-start; justify-content: space-between; gap: 25px; padding-inline: 6px; }
.footer-brand { color: white; font-size: 23px; font-weight: bold; text-decoration: none; }
.site-footer p { font-size: 12px; margin: 3px 0 12px; }
.site-footer small { font-size: 11px; color: #c3cede; }
.site-footer nav { display: grid; grid-template-columns: auto auto; gap: 9px 27px; padding-top: 8px; }
.site-footer nav a { color: #e4eaf2; font-size: 12px; }

/* ****************************************
 * Tablet and phone layouts
 * **************************************** */
@media (max-width: 1050px) {
    .hero { gap: 30px; padding: 32px 28px; }
    .hero h1 { font-size: 38px; letter-spacing: -1.3px; }
    .hero-lead { font-size: 18px; }
    .upload-panel { padding: 18px; }
    .upload-heading { gap: 11px; }
    .upload-heading h2 { font-size: 17px; }
    .upload-icon { width: 40px; height: 40px; }
    .page-section, .editor-section { padding: 36px 28px; }
    .spreadsheet-section, .editor-section { gap: 30px; }
    .use-cases, .access-note, .closing-cta { padding-inline: 28px; }
    .use-cases { font-size: 12px; }
    .sheet-title { padding-inline: 15px; }
    .sheet-title span { display: none; }
    .closing-cta { align-items: flex-start; flex-direction: column; gap: 20px; }
}

@media (max-width: 760px) {
    .site-width { width: calc(100% - 28px); }
    .header-row { min-height: 87px; padding-inline: 2px; gap: 12px; }
    .brand { gap: 9px; }
    .brand img { width: 65px; height: auto; }
    .brand strong { font-size: 21px; }
    .brand small { font-size: 12px; }
    .phone { display: none; }
    .login-link { gap: 14px; padding: 7px 10px; font-size: 12px; }
    .login-link svg { width: 16px; }
    .nav-row { gap: 17px; min-height: 42px; flex-wrap: wrap; justify-content: center; }
    .nav-row a { font-size: 11px; }
    .nav-row .support-link { display: none; }
    .breadcrumbs { font-size: 10px; gap: 7px; padding-block: 13px; }
    .hero { grid-template-columns: 1fr; padding: 29px 23px; gap: 35px; }
    .hero h1 { font-size: clamp(34px, 6.5vw, 46px); }
    .hero-lead { font-size: 19px; }
    .hero-description { max-width: none; }
    .hero-example { width: 100%; max-width: 560px; justify-self: center; }
    .upload-heading h2 { font-size: 20px; }
    .example-result { margin-top: 22px; }
    .use-cases { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 14px; padding: 17px 23px; }
    .page-section, .editor-section { padding: 32px 23px; }
    h2 { font-size: 30px; }
    .section-heading { grid-template-columns: 1fr; gap: 16px; margin-bottom: 25px; }
    .steps { grid-template-columns: 1fr; gap: 22px; }
    .placeholder-grid { grid-template-columns: 1fr; }
    .reviews-heading { align-items: flex-start; flex-direction: column; }
    .steps li { padding-top: 16px; }
    .step-number { float: left; width: 38px; padding-top: 3px; }
    .steps h3, .steps p { margin-left: 38px; }
    .steps h3 { margin-bottom: 7px; }
    .spreadsheet-section, .editor-section { grid-template-columns: 1fr; gap: 30px; }
    .sheet-title span { display: inline; }
    .editor-features { font-size: 14px; }
    .access-note { align-items: flex-start; flex-direction: column; gap: 13px; padding: 23px; }
    .access-note > p { text-align: left; }
    .closing-cta { padding: 29px 23px; }
    .closing-cta h2 { font-size: 26px; }
    .footer-row { flex-direction: column; gap: 20px; padding-inline: 8px; }
}

@media (max-width: 390px) {
    .site-width { width: calc(100% - 20px); }
    .brand img { width: 49px; }
    .brand strong { font-size: 18px; }
    .brand small { font-size: 11px; }
    .login-link { gap: 7px; }
    .nav-row { gap: 13px; }
    .nav-row a { font-size: 10px; }
    .hero, .page-section, .editor-section { padding-inline: 18px; }
    .hero h1 { font-size: 33px; }
    .upload-heading h2 { font-size: 18px; }
    .upload-panel { padding: 16px; }
    .upload-button { font-size: 13px; padding-inline: 14px; }
    .use-cases { padding-inline: 18px; font-size: 11px; }
    .sheet-title span { display: none; }
    .spreadsheet-example figcaption { font-size: 10px; padding-inline: 13px; }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .upload-spinner { animation: none; }
    .reviews-moving { overflow-x: auto; }
    .reviews-moving .reviews-track { animation: none; }
    .reviews-group[aria-hidden="true"], #reviewsPause { display: none; }
}
