/* invoiceharbor.com: the only stylesheet. System fonts, no framework. Navy and harbour-red are the app's own colours. */
:root {
  --bg: #ffffff; --soft: #f3f6fb; --card: #ffffff; --ink: #0f1d38; --text: #34425c; --muted: #56647d;
  --line: #dfe5ef; --brand: #1f3d75; --brand-2: #2f5aa6; --brand-soft: #e9eff9; --red: #bc261a; --red-soft: #fbeceb;
  --teal: #0f6f66; --teal-soft: #e4f4f1; --slate: #4a5874; --slate-soft: #eef1f6; --gold: #8a5a06; --gold-soft: #fbf2df;
  --shadow: 0 1px 2px rgba(15, 29, 56, .06), 0 14px 36px -14px rgba(15, 29, 56, .22);
  --radius: 14px; --wrap: 1160px;
  --sans: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 84px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; } }
body { margin: 0; font: 400 1.0625rem/1.65 var(--sans); color: var(--text); background: var(--bg); overflow-wrap: break-word; }
img, svg { max-width: 100%; height: auto; display: block; }
a { color: var(--brand-2); text-underline-offset: 3px; }
a:hover { color: var(--brand); }
h1, h2, h3, h4 { color: var(--ink); line-height: 1.15; margin: 0 0 .5em; letter-spacing: -.02em; text-wrap: balance; }
h1 { font-size: clamp(2.1rem, 5vw, 3.5rem); font-weight: 800; letter-spacing: -.035em; }
h2 { font-size: clamp(1.6rem, 3.1vw, 2.25rem); font-weight: 780; }
h3 { font-size: 1.15rem; font-weight: 700; }
h4 { font-size: .95rem; font-weight: 700; letter-spacing: 0; }
p { margin: 0 0 1em; }
code { font-size: .9em; background: var(--soft); padding: .1em .35em; border-radius: 5px; }
:focus-visible { outline: 3px solid var(--brand-2); outline-offset: 2px; border-radius: 4px; }
.wrap { width: min(100% - 40px, var(--wrap)); margin-inline: auto; }
.narrow { width: min(100% - 40px, 780px); margin-inline: auto; }
.center { text-align: center; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--brand); color: #fff; padding: 10px 16px; border-radius: 8px; z-index: 100; }
.skip:focus { left: 8px; color: #fff; }
.lead { font-size: clamp(1.08rem, 1.6vw, 1.22rem); color: var(--muted); max-width: 62ch; }
.center .lead { margin-inline: auto; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; font: 700 .78rem/1 var(--sans); letter-spacing: .09em; text-transform: uppercase; color: var(--brand-2); margin-bottom: 14px; }
.eyebrow::before { content: ""; width: 14px; height: 3px; background: var(--red); border-radius: 2px; }
.linkish { font: inherit; color: inherit; background: none; border: 0; padding: 0; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; font: 650 1rem/1 var(--sans); padding: 14px 22px; border-radius: 10px; border: 1px solid transparent; text-decoration: none; cursor: pointer; transition: background .15s, border-color .15s, transform .15s; }
.btn--primary { background: var(--brand); color: #fff; }
.btn--primary:hover { background: #17305e; color: #fff; transform: translateY(-1px); }
.btn--ghost { border-color: var(--line); color: var(--ink); background: var(--card); }
.btn--ghost:hover { border-color: var(--brand-2); color: var(--ink); }
.btn--sm { min-height: 42px; padding: 11px 18px; font-size: .95rem; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }
.center .actions { justify-content: center; }

/* Header: logo left, nav right, one primary button at the end */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255, 255, 255, .94); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.site-header .wrap { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 72px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font: 800 1.35rem/1 var(--sans); letter-spacing: -.03em; color: var(--brand); text-decoration: none; }
.brand:hover { color: var(--brand); }
.brand svg { width: 36px; height: 36px; flex: none; }
.brand .r { color: var(--red); }
.nav { display: flex; align-items: center; gap: 4px; }
.nav a:not(.btn) { padding: 9px 12px; border-radius: 8px; color: var(--text); text-decoration: none; font-weight: 600; font-size: .95rem; }
.nav a:not(.btn):hover, .nav a[aria-current="page"] { color: var(--brand); background: var(--soft); }
.nav .btn { margin-left: 10px; }
.nav-toggle { display: none; align-items: center; gap: 8px; min-height: 44px; font: 600 .95rem var(--sans); padding: 9px 14px; border-radius: 9px; border: 1px solid var(--line); background: var(--card); color: var(--ink); cursor: pointer; }
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after { display: block; width: 18px; height: 2px; background: currentColor; border-radius: 2px; position: relative; }
.nav-toggle span::before, .nav-toggle span::after { content: ""; position: absolute; left: 0; }
.nav-toggle span::before { top: -6px; } .nav-toggle span::after { top: 6px; }
@media (max-width: 860px) {
  .site-header .wrap { min-height: 60px; }
  .brand { font-size: 1.2rem; } .brand svg { width: 32px; height: 32px; }
  .nav-toggle { display: inline-flex; }
  .nav { display: none; position: absolute; left: -20px; right: -20px; top: 100%; flex-direction: column; align-items: stretch; gap: 2px; padding: 12px 20px 20px; background: var(--bg); border-bottom: 1px solid var(--line); box-shadow: var(--shadow); }
  .nav.is-open { display: flex; }
  .nav a:not(.btn) { padding: 13px 10px; font-size: 1.02rem; }
  .nav .btn { margin: 10px 0 0; width: 100%; }
}

/* Hero: centred text, then one large framed visual */
.hero { position: relative; padding: clamp(28px, 3.4vw, 44px) 0 0; background: radial-gradient(1100px 420px at 50% -60px, var(--brand-soft), transparent 70%), linear-gradient(var(--soft), var(--bg) 78%); overflow: hidden; }
.hero h1 { max-width: 17ch; margin-inline: auto; font-size: clamp(2.1rem, 4.6vw, 3.25rem); margin-bottom: .4em; }
.hero .actions { margin-top: 22px; }
.hero h1 em { font-style: normal; background: linear-gradient(90deg, var(--brand-2), var(--red)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.badge { display: inline-flex; align-items: center; gap: 8px; padding: 7px 14px; border-radius: 999px; background: var(--card); border: 1px solid var(--line); font-size: .88rem; font-weight: 600; color: var(--brand); margin-bottom: 14px; }
.badge svg { width: 18px; height: 18px; }
.chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 10px; list-style: none; padding: 0; margin: 18px auto 0; max-width: 820px; }
.chips li { display: inline-flex; align-items: center; gap: 7px; padding: 6px 12px; border-radius: 999px; background: var(--brand-soft); color: var(--brand); font-size: .9rem; font-weight: 600; }
.chips li::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--red); }
.hero__visual { margin: 30px auto 0; width: min(100% - 40px, 1100px); }

/* The framed lifecycle diagram used as the hero visual */
.frame { background: var(--card); border: 1px solid var(--line); border-radius: 16px 16px 0 0; border-bottom: 0; box-shadow: var(--shadow); overflow: hidden; }
.frame__bar { display: flex; align-items: center; gap: 7px; padding: 12px 16px; background: var(--soft); border-bottom: 1px solid var(--line); font-size: .82rem; color: var(--muted); }
.frame__bar i { width: 11px; height: 11px; border-radius: 50%; background: #d6dce7; }
.frame__bar b { margin-left: 10px; font-weight: 600; color: var(--slate); }
.frame__bar .tag { margin-left: auto; }
.tag { display: inline-block; padding: 3px 9px; border-radius: 999px; background: var(--slate-soft); color: var(--slate); font-size: .78rem; font-weight: 700; letter-spacing: .02em; }
.lifecycle { text-align: left; display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; padding: 30px 28px 34px; position: relative; }
.stage { position: relative; padding: 0 18px; }
.stage + .stage { border-left: 1px dashed var(--line); }
.stage__icon { width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center; color: #fff; margin-bottom: 14px; }
.stage__icon svg { width: 26px; height: 26px; }
.stage__step { display: block; font-size: .78rem; font-weight: 800; letter-spacing: .09em; text-transform: uppercase; margin-bottom: 4px; }
.stage h3 { font-size: 1.25rem; margin-bottom: 8px; }
.stage p { font-size: .96rem; color: var(--muted); margin-bottom: 14px; }
.stage ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 7px; }
.stage li { font-size: .9rem; color: var(--ink); background: var(--soft); border-radius: 8px; padding: 7px 10px; }
.stage:not(:last-child)::after { content: ""; position: absolute; right: -9px; top: 17px; width: 18px; height: 18px; background: var(--card); border: 1px solid var(--line); border-radius: 50%; z-index: 1;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2356647d' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M9 6l6 6-6 6'/%3E%3C/svg%3E"); background-size: 12px; background-repeat: no-repeat; background-position: center; }
.s1 .stage__icon { background: linear-gradient(135deg, var(--brand-2), var(--brand)); } .s1 .stage__step { color: var(--brand-2); }
.s2 .stage__icon { background: linear-gradient(135deg, #168a7e, var(--teal)); } .s2 .stage__step { color: var(--teal); }
.s3 .stage__icon { background: linear-gradient(135deg, #b77a12, var(--gold)); } .s3 .stage__step { color: var(--gold); }
.s4 .stage__icon { background: linear-gradient(135deg, #d8412f, var(--red)); } .s4 .stage__step { color: var(--red); }
@media (max-width: 960px) {
  .lifecycle { grid-template-columns: 1fr 1fr; row-gap: 30px; }
  .stage:nth-child(3) { border-left: 0; }
  .stage:nth-child(2)::after { display: none; }
}
@media (max-width: 560px) {
  .hero__visual { width: min(100% - 24px, 1100px); }
  .lifecycle { grid-template-columns: 1fr; padding: 22px 6px 26px; row-gap: 0; }
  .stage { padding: 18px 14px; }
  .stage + .stage { border-left: 0; border-top: 1px dashed var(--line); }
  .stage::after { display: none; }
  .frame__bar b { font-size: .78rem; }
  .chips { gap: 6px; }
  .chips li { font-size: .8rem; padding: 5px 10px; gap: 6px; }
}

/* Sections */
.section { padding: clamp(56px, 7vw, 92px) 0; }
.section--soft { background: var(--soft); }
.section__head { max-width: 720px; margin: 0 auto 40px; text-align: center; }
.section__head .lead { margin-inline: auto; }
.grid { display: grid; gap: 20px; }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 1000px) { .grid--4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .grid--2, .grid--4 { grid-template-columns: 1fr; } }

/* Feature cards: icon tile + title + text (not an accent group) */
.feature { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; box-shadow: 0 1px 2px rgba(15, 29, 56, .04); display: flex; flex-direction: column; }
.feature .icon { width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center; background: var(--brand-soft); color: var(--brand-2); margin-bottom: 16px; }
.feature .icon svg { width: 24px; height: 24px; }
.feature h3 { margin-bottom: 6px; }
.feature p { margin: 0; color: var(--muted); font-size: .98rem; }

/* Accent cards (one group per page): left border + coloured label */
.accent { background: var(--card); border: 1px solid var(--line); border-left: 4px solid var(--c, var(--brand-2)); border-radius: 12px; padding: 22px 24px; }
.accent__label { display: block; font-size: .76rem; font-weight: 800; letter-spacing: .09em; text-transform: uppercase; color: var(--c, var(--brand-2)); margin-bottom: 6px; }
.accent h3 { margin-bottom: 6px; }
.accent p { margin: 0; color: var(--muted); font-size: .98rem; }
.accent--blue { --c: var(--brand-2); } .accent--teal { --c: var(--teal); } .accent--gold { --c: var(--gold); } .accent--red { --c: var(--red); }

/* Split text block */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; gap: 28px; } }
.checks { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.checks li { position: relative; padding-left: 30px; }
.checks li::before { content: ""; position: absolute; left: 0; top: 4px; width: 20px; height: 20px; border-radius: 50%; background: var(--brand-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231f3d75' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12.5l4 4 8-9'/%3E%3C/svg%3E") center / 13px no-repeat; }

/* CTA band */
.cta { background: linear-gradient(135deg, var(--brand), #17305e); color: #dfe7f5; padding: clamp(52px, 6vw, 76px) 0; text-align: center; }
.cta h2 { color: #fff; }
.cta .lead { color: #d3ddef; margin-inline: auto; }
.cta .btn--primary { background: #fff; color: var(--brand); }
.cta .btn--primary:hover { background: var(--brand-soft); color: var(--brand); }
.cta .btn--ghost { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .45); }
.cta .btn--ghost:hover { border-color: #fff; color: #fff; }

/* Inner page hero */
.page-hero { padding: clamp(48px, 6vw, 80px) 0 clamp(28px, 4vw, 44px); background: linear-gradient(var(--soft), var(--bg)); }
.page-hero h1 { font-size: clamp(2rem, 4.4vw, 3rem); }
.prose h2 { font-size: 1.45rem; margin-top: 1.8em; }
.prose h3 { font-size: 1.1rem; margin-top: 1.5em; }
.prose ul { padding-left: 1.3em; }
.prose li { margin-bottom: .5em; }
.updated { color: var(--muted); font-size: .95rem; }

/* Contact */
.contact { display: grid; grid-template-columns: 1fr 1.35fr; gap: 40px; align-items: start; }
@media (max-width: 860px) { .contact { grid-template-columns: 1fr; } }
.info { display: grid; gap: 16px; }
.info .feature { padding: 20px 22px; }
.form { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow); }
.form h2 { font-size: 1.4rem; }
.field { display: grid; gap: 6px; margin-bottom: 16px; }
.field label { font-weight: 600; color: var(--ink); font-size: .95rem; }
.field label span { font-weight: 400; color: var(--muted); }
.field input, .field textarea { font: inherit; font-size: 1rem; color: var(--ink); padding: 12px 14px; border: 1px solid #c5cedd; border-radius: 10px; background: #fff; min-height: 48px; width: 100%; }
.field textarea { min-height: 140px; resize: vertical; }
.field input:focus, .field textarea:focus { outline: 3px solid rgba(47, 90, 166, .25); border-color: var(--brand-2); }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
@media (max-width: 560px) { .form__row { grid-template-columns: 1fr; } .form { padding: 22px 18px; } }
.form__status { min-height: 1.5em; margin: 12px 0 0; font-weight: 600; }
.form__note { font-size: .88rem; color: var(--muted); margin: 14px 0 0; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* Footer */
.site-footer { background: #0f1d38; color: #c3cde0; padding: 56px 0 28px; font-size: .95rem; }
.site-footer a { color: #e6ecf7; text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.site-footer .brand { color: #fff; }
.site-footer .brand .r { color: #ff8a7d; }
.footer__grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: 32px; }
@media (max-width: 760px) { .footer__grid { grid-template-columns: 1fr 1fr; } .footer__grid > :first-child { grid-column: 1 / -1; } }
.site-footer h4 { color: #fff; font-size: .82rem; letter-spacing: .09em; text-transform: uppercase; margin-bottom: 12px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 4px; }
.site-footer li a, .site-footer li .linkish { display: inline-block; padding: 6px 0; }
.footer__base { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 24px; margin-top: 40px; padding-top: 22px; border-top: 1px solid #263552; color: #a9b6cc; font-size: .9rem; }
.social { display: flex; gap: 10px; margin-top: 16px; }
.social a { width: 42px; height: 42px; border-radius: 10px; display: grid; place-items: center; background: #1a2a4a; }
.social a:hover { background: #24375e; }
.social svg { width: 18px; height: 18px; fill: #e6ecf7; }

/* Cookie notice */
.cookie-banner { position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 60; display: none; }
.cookie-banner.is-open { display: block; }
.cookie-banner__inner { max-width: 880px; margin: 0 auto; background: #fff; border: 1px solid var(--line); border-radius: 14px; box-shadow: 0 18px 50px -12px rgba(15, 29, 56, .35); padding: 16px 18px; display: flex; gap: 16px; align-items: center; }
.cookie-banner p { margin: 0; font-size: .92rem; color: var(--text); }
.cookie-banner__actions { display: flex; gap: 8px; flex: none; }
.cookie-banner button { font: 600 .92rem var(--sans); min-height: 42px; padding: 10px 16px; border-radius: 9px; cursor: pointer; border: 1px solid var(--line); background: #fff; color: var(--ink); }
.cookie-banner button[data-cookie="yes"] { background: var(--brand); color: #fff; border-color: var(--brand); }
@media (max-width: 640px) { .cookie-banner__inner { flex-direction: column; align-items: stretch; } .cookie-banner__actions > * { flex: 1; } }

/* 404 */
.notfound { padding: 96px 0; text-align: center; }
.footer__base a, .footer__base .linkish { display: inline-block; padding: 11px 0; }
.footer__base { align-items: center; }
