/* Citifyer local landing revision. Existing logo colours, type and imagery.
   All information is present in HTML; no reveal or application simulation. */
.cf-landing {
    --cf-blue: #1596cf;
    --cf-green: #10b981;
    --cf-violet: #a78bfa;
    --cf-ink: #002735;
    --cf-muted: #546772;
    --cf-night: #030711;
    --cf-line: rgb(0 39 53 / 12%);
    color: var(--cf-ink);
    font-family: inherit;
}
.cf-container { width: min(1180px, calc(100% - 48px)); margin-inline: auto; }
.cf-section { position: relative; padding-block: clamp(72px, 7.5vw, 112px); scroll-margin-top: 100px; }
.cf-anchor { position: absolute; top: 0; scroll-margin-top: 100px; pointer-events: none; }
.cf-landing [id] { scroll-margin-top: 100px; }
.cf-eyebrow { margin: 0 0 20px; font-size: 11px; font-weight: 700; letter-spacing: .16em; line-height: 1.5; text-transform: uppercase; color: #087da9; }
.cf-section h2 { margin: 0; max-width: 1000px; font-size: clamp(36px, 4.5vw, 60px); font-weight: 700; letter-spacing: -.052em; line-height: 1.07; text-wrap: balance; }
.cf-section h2 span { color: var(--cf-blue); }
.cf-section h3 { font-weight: 700; letter-spacing: -.035em; line-height: 1.2; }
.cf-section p { line-height: 1.7; }
.cf-section-heading { margin-bottom: 34px; }
.cf-lead { font-size: clamp(17px, 1.55vw, 20px); line-height: 1.65 !important; }
.cf-section-heading > .cf-lead { max-width: 790px; margin: 24px 0 0; color: var(--cf-muted); }
.cf-landing a:focus-visible, .cf-landing summary:focus-visible { outline: 3px solid var(--cf-violet); outline-offset: 5px; }
.cf-button { display: inline-flex; align-items: center; justify-content: space-between; gap: 28px; min-height: 50px; margin-top: 20px; padding: 14px 21px; background: var(--cf-green); border: 1px solid transparent; border-radius: 7px; color: #002735; font-size: 14px; font-weight: 700; line-height: 1.4; text-decoration: none; transition: background .2s ease, transform .2s ease; }
.cf-button:hover { background: #6ee7b7; transform: translateY(-2px); }
.cf-button > span { font-size: 20px; line-height: 1; }

/* Original app captures remain uncropped; native links work without JavaScript. */
.cf-app-shot { min-width: 0; margin: 0; overflow: hidden; border: 1px solid #274452; border-top: 3px solid var(--cf-blue); border-radius: 9px; background: #071722; box-shadow: 0 16px 40px rgb(0 39 53 / 12%); }
.cf-app-shot-link { display: block; cursor: zoom-in; }
.cf-app-shot-link:focus-visible { outline-offset: -4px; }
.cf-app-shot img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; }
.cf-app-shot figcaption { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 10px 24px; padding: 15px 20px; border-top: 1px solid #274452; color: #bacdd7; font-size: 11px; line-height: 1.65; }
.cf-app-shot figcaption > span:first-child { flex: 1 1 420px; }
.cf-app-shot-hint { flex: 0 0 auto; color: #84d7b8; font-weight: 700; }
.cf-app-shot--embedded { border: 0; border-radius: 0; box-shadow: none; }

/* S2 — one-line partner ticker, with persistent pause and static fallback. */
.cf-partners { padding-block: 14px; background: #f7f9fb; border-bottom: 1px solid var(--cf-line); }
.cf-partner-row { display: flex; align-items: center; gap: 24px; min-height: 36px; }
.cf-ticker { flex: 1; min-width: 0; overflow-x: auto; scrollbar-width: thin; mask-image: linear-gradient(90deg, transparent, #000 22px, #000 calc(100% - 22px), transparent); }
.cf-ticker-track { display: flex; width: max-content; }
.cf-partner-list { display: flex; flex: 0 0 auto; align-items: center; gap: 32px; width: max-content; margin: 0; padding: 0 32px 0 0; list-style: none; }
.cf-partner-list[hidden], .cf-ticker-toggle[hidden] { display: none; }
.cf-partner-placeholder { display: flex; flex: 0 0 260px; align-items: center; justify-content: center; gap: 10px; width: 260px; height: 36px; color: #71808b; font-size: 12px; font-weight: 500; white-space: nowrap; }
.cf-partner-placeholder > span { color: #9ba7b0; font-size: 21px; }
.cf-partners.is-animated .cf-ticker { overflow: hidden; }
.cf-partners.is-animated .cf-ticker-track { animation: cf-partner-scroll 44s linear infinite; }
.cf-partners.is-paused .cf-ticker-track, .cf-ticker:hover .cf-ticker-track, .cf-ticker:focus-within .cf-ticker-track { animation-play-state: paused; }
.cf-ticker-toggle { display: grid; flex: 0 0 36px; width: 36px; height: 36px; place-items: center; border: 1px solid #d7e0e5; border-radius: 50%; color: #546772; background: transparent; cursor: pointer; font-size: 11px; }
.cf-ticker-toggle:hover { background: #eaf0f4; }
.cf-ticker-toggle:focus-visible, .cf-ticker:focus-visible { outline: 3px solid var(--cf-violet); outline-offset: 3px; }
@keyframes cf-partner-scroll { to { transform: translateX(-50%); } }

/* S3 — climate expertise, catalogue and one static product example. */
.cf-measures { background: #fff; }
.cf-measures-intro { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: start; }
.cf-measures-intro p { margin: 0; color: var(--cf-muted); font-size: 15px; }
.cf-measures-intro .cf-lead { color: var(--cf-ink); }
.cf-risk-images { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-top: 32px; }
.cf-risk-images figure { position: relative; margin: 0; height: clamp(120px, 12vw, 165px); overflow: hidden; border-radius: 5px; background: #002735; }
.cf-risk-images figure::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 15%, rgb(3 7 17 / 65%)); pointer-events: none; }
.cf-risk-images img { width: 100%; height: 100%; object-fit: cover; object-position: center 57%; }
.cf-risk-images figcaption { position: absolute; z-index: 1; left: 18px; bottom: 14px; color: #fff; font-size: 15px; font-weight: 700; letter-spacing: -.02em; }
.cf-capability-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 36px; margin-block: 38px 48px; }
.cf-capability-list article { position: relative; padding-left: 42px; }
.cf-capability-icon { position: absolute; top: 2px; left: 0; color: var(--cf-blue); font-size: 21px; }
.cf-capability-list article:nth-child(2) .cf-capability-icon { color: #059669; }
.cf-capability-list article:nth-child(3) .cf-capability-icon { color: #8b6adb; }
.cf-capability-list h3 { margin: 0 0 10px; font-size: 17px; }
.cf-capability-list p { margin: 0; color: var(--cf-muted); font-size: 13px; }
.cf-product-example { position: relative; overflow: hidden; border: 1px solid var(--cf-line); border-radius: 9px; background: #f6f9fb; box-shadow: 0 16px 50px rgb(0 39 53 / 6%); }
.cf-example-heading { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 25px 28px; }
.cf-example-heading .cf-eyebrow { margin-bottom: 8px; font-size: 9px; }
.cf-example-heading h3 { margin: 0; font-size: clamp(22px, 2.2vw, 29px); line-height: 1.12; }
.cf-example-label { padding: 6px 10px; border: 1px solid #d4dee4; border-radius: 4px; color: var(--cf-muted); font-size: 10px; line-height: 1.4; }
.cf-example-layout { display: grid; grid-template-columns: 1fr; border-top: 1px solid var(--cf-line); }
.cf-example-data { min-width: 0; padding: 24px; }
.cf-example-project { margin: 0 0 16px; color: var(--cf-ink); font-size: 12px; font-weight: 700; }
.cf-metric-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin: 0; }
.cf-metric-grid > div { min-width: 0; padding: 15px 18px 17px; border-top: 1px solid var(--cf-line); }
.cf-metric-grid > div:not(:nth-child(4n + 1)) { border-left: 1px solid var(--cf-line); }
.cf-metric-grid dt { color: var(--cf-muted); font-size: 11px; line-height: 1.45; }
.cf-metric-grid dd { margin: 9px 0 0; color: #087da9; font-size: clamp(24px, 2.4vw, 31px); font-weight: 700; letter-spacing: -.055em; line-height: 1.1; white-space: nowrap; }
.cf-metric-grid dd > span { font-size: .55em; font-weight: 500; letter-spacing: -.02em; }
.cf-metric-grid .cf-metric-cost dd { color: #00845a; }
.cf-metric-grid dd.cf-metric-reference { margin-top: 10px; color: var(--cf-muted); font-size: 9px; font-weight: 500; letter-spacing: 0; line-height: 1.45; white-space: normal; }
.cf-metric-reference a { color: #456779; text-decoration: underline; text-decoration-color: #b6c9d3; text-underline-offset: 3px; }
.cf-metric-reference a:hover { color: #087da9; }
.cf-method-details { border-top: 1px solid var(--cf-line); background: #fff; }
.cf-method-details summary { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 17px 26px; color: var(--cf-ink); font-size: 12px; font-weight: 700; cursor: pointer; list-style: none; }
.cf-method-details summary::-webkit-details-marker { display: none; }
.cf-method-details summary > span { font-size: 21px; color: var(--cf-blue); }
.cf-method-details[open] summary > span { transform: rotate(45deg); }
.cf-method-details > div { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; padding: 0 26px 24px; }
.cf-method-details p { margin: 0; color: var(--cf-muted); font-size: 12px; }
.cf-source-links { display: flex; flex-wrap: wrap; grid-column: 1 / -1; gap: 8px 20px; margin: 0; padding: 0; list-style: none; }
.cf-source-links a { display: inline-flex; align-items: center; gap: 8px; min-height: 36px; color: #087da9; font-size: 11px; font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }
.cf-section-result { max-width: 840px; margin: 30px 0 0; padding-left: 17px; border-left: 3px solid var(--cf-green); color: var(--cf-ink); font-size: 16px; font-weight: 500; }

/* S4 — funding effort and work retained in the municipal team. */
.cf-efficiency { background: var(--cf-night); color: #fff; }
.cf-efficiency .cf-eyebrow { color: #6ee7b7; }
.cf-efficiency h2 { font-size: clamp(35px, 3.8vw, 53px); }
.cf-efficiency h2 span { color: #75bfe0; }
.cf-efficiency-layout { display: grid; grid-template-columns: 1fr; gap: 36px; }
.cf-efficiency-copy { max-width: 820px; }
.cf-efficiency-copy > p:not(.cf-eyebrow) { margin: 19px 0 0; color: #aebdcb; font-size: 14px; }
.cf-efficiency-copy > .cf-lead { color: #e0e8ef !important; font-size: 17px; }
.cf-efficiency-copy > .cf-button { margin-top: 28px; }
.cf-efficiency-benefits { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px; margin-top: 55px; padding-top: 30px; border-top: 1px solid rgb(255 255 255 / 16%); }
.cf-efficiency-benefits article > span { color: #6ee7b7; font-size: 11px; letter-spacing: .1em; }
.cf-efficiency-benefits h3 { margin: 15px 0 12px; color: #fff; font-size: 22px; }
.cf-efficiency-benefits p { max-width: 310px; margin: 0; color: #aebdcb; font-size: 13px; }

/* The funding agent is part of the same inhousing section. */
.cf-funding-feature { position: relative; display: grid; grid-template-columns: .85fr 1.15fr; min-width: 0; overflow: hidden; margin-top: 48px; border: 1px solid #193342; border-radius: 9px; background: #07131e; color: #fff; }
.cf-funding-art { display: flex; align-items: flex-end; justify-content: center; min-width: 0; background: radial-gradient(ellipse at 45% 40%, #153342, #030711 72%); }
.cf-funding-art img { display: block; width: 100%; height: 505px; object-fit: contain; }
.cf-funding-content { align-self: center; min-width: 0; padding: 38px 45px 38px 24px; }
.cf-status { display: inline-block; padding: 5px 9px; border: 1px solid #d2c5f2; border-radius: 4px; color: #6a4caf; background: #f1ecfc; font-size: 10px; font-weight: 700; line-height: 1.4; }
.cf-status--development { border-color: rgb(110 231 183 / 30%); background: rgb(16 185 129 / 10%); color: #6ee7b7; }
.cf-funding-content .cf-eyebrow { margin-top: 25px; margin-bottom: 10px; color: #75bfe0; font-size: 10px; }
.cf-funding-content h3 { margin: 0; font-size: clamp(31px, 3vw, 42px); letter-spacing: -.05em; }
.cf-funding-content > p:not(.cf-eyebrow) { max-width: 480px; margin: 18px 0 0; color: #aebdcb; font-size: 14px; }
.cf-agent-tasks { display: grid; gap: 12px; margin: 24px 0 0; padding: 0; list-style: none; }
.cf-agent-tasks li { display: flex; align-items: baseline; gap: 10px; color: #e7eff4; font-size: 12px; line-height: 1.5; }
.cf-agent-tasks i { color: var(--cf-green); font-size: 11px; }
.cf-funding-content > .cf-button { margin-top: 28px; }

/* S5 — compact explanation of deterministic checks and human approval. */
.cf-working-note { padding-block: 36px; border-block: 1px solid #d8e9e4; background: #f1f9f7; }
.cf-working-layout { display: grid; grid-template-columns: 100px 1fr; gap: 32px; align-items: center; }
.cf-working-icon { display: grid; width: 100px; height: 110px; place-items: center; color: #07865f; font-size: 76px; background: radial-gradient(ellipse, rgb(16 185 129 / 12%), transparent 70%); }
.cf-working-note .cf-eyebrow { margin-bottom: 8px; color: #07865f; font-size: 10px; }
.cf-working-note h2 { margin: 0; font-size: clamp(23px, 2.5vw, 30px); font-weight: 700; letter-spacing: -.04em; line-height: 1.2; }
.cf-working-note p:not(.cf-eyebrow) { max-width: 970px; margin: 12px 0 0; color: var(--cf-muted); font-size: 14px; line-height: 1.65; }
.cf-working-note p.cf-working-terms { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: 10px; color: #07865f; font-size: 11px; font-weight: 700; }

/* S6 — concise operating principles; planned status remains explicit. */
.cf-security { background: #071722; color: #fff; }
.cf-security .cf-eyebrow { color: #c1aaf7; }
.cf-security h2 { font-size: clamp(33px, 3.6vw, 48px); }
.cf-security h2 span { color: #bb9df4; }
.cf-security-heading { display: flex; align-items: center; justify-content: space-between; gap: 32px; }
.cf-security-mark { margin-right: 20px; color: #1596cf; font-size: 72px; opacity: .5; }
.cf-security-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px; margin-top: 42px; }
.cf-security-grid article { padding-top: 22px; border-top: 1px solid rgb(255 255 255 / 18%); }
.cf-security-grid article > i { color: #78c7eb; font-size: 22px; }
.cf-security-grid h3 { margin: 20px 0 12px; font-size: 21px; }
.cf-security-grid p { margin: 0; color: #b0c0cc; font-size: 13px; }
.cf-security-note { max-width: 940px; margin: 30px 0 0; color: #93a8b8; font-size: 11px; }
.cf-security-note a { color: #c2d6e5; text-decoration: underline; text-underline-offset: 3px; }

/* Project documentation: tenant-scoped records, evidence and reporting. */
.cf-documentation { background: #fff; }
.cf-documentation-layout { display: grid; grid-template-columns: 1fr; gap: 36px; }
.cf-documentation-layout > div { max-width: 860px; }
.cf-documentation h2 { font-size: clamp(34px, 4vw, 52px); }
.cf-documentation .cf-lead { margin: 25px 0 0; color: var(--cf-muted); font-size: 17px; }
.cf-documentation-benefits { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 36px; margin-top: 44px; }
.cf-documentation-benefits article { padding-top: 22px; border-top: 2px solid #d8ece8; }
.cf-documentation-benefits h3 { margin: 0 0 12px; font-size: 20px; }
.cf-documentation-benefits p { margin: 0; color: var(--cf-muted); font-size: 13px; }
.cf-legal-context { margin-top: 38px; padding: 24px; border: 1px solid #e3dfee; border-radius: 6px; background: #f8f7fc; }
.cf-legal-context .cf-eyebrow { margin-bottom: 15px; color: #7354b3; font-size: 10px; }
.cf-legal-context ul { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; margin: 0; padding: 0; list-style: none; }
.cf-legal-context li > a { display: inline-flex; align-items: center; gap: 14px; color: #62429e; font-size: 12px; font-weight: 700; text-decoration: underline; text-underline-offset: 4px; }
.cf-legal-context li > span { display: block; margin-top: 8px; color: var(--cf-muted); font-size: 11px; line-height: 1.6; }
.cf-legal-context .cf-legal-note { margin: 18px 0 0; padding-top: 14px; border-top: 1px solid #e3dfee; color: #776d8c; font-size: 10px; }

/* Preserve contact layout, with content readable even when JavaScript is off. */
@media (scripting: none) {
    .citifyer-home .reveal { opacity: 1; transform: none; }
}

@media (max-width: 1000px) {
    .cf-measures-intro { gap: 32px; }
    .cf-capability-list { gap: 24px; }
    .cf-capability-list article { padding-left: 0; }
    .cf-capability-icon { position: static; display: block; margin-bottom: 14px; }
    .cf-example-data { padding: 18px; }
    .cf-efficiency-layout { gap: 32px; }
    .cf-funding-content { padding: 30px; }
    .cf-funding-art img { height: 500px; }
    .cf-security-grid { gap: 28px; }
}
@media (max-width: 760px) {
    .cf-partner-row { gap: 12px; }
    .cf-ticker-toggle { flex-basis: 32px; width: 32px; height: 32px; }
    .cf-working-note { padding-block: 28px; }
    .cf-working-layout { grid-template-columns: 48px 1fr; gap: 18px; align-items: start; }
    .cf-working-icon { width: 48px; height: 65px; font-size: 45px; }
    .cf-working-note h2 { font-size: 23px; }
    .cf-working-note p:not(.cf-eyebrow) { font-size: 13px; }
    .cf-working-note p.cf-working-terms { font-size: 10px; gap: 8px; }
    .cf-documentation-layout { grid-template-columns: 1fr; gap: 30px; }
    .cf-documentation-benefits { grid-template-columns: 1fr; gap: 24px; margin-top: 32px; }
    .cf-legal-context { margin-top: 30px; padding: 22px; }
    .cf-legal-context ul { grid-template-columns: 1fr; gap: 22px; }
    .cf-container { width: calc(100% - 40px); }
    .cf-section { padding-block: 66px; }
    .cf-section-heading { margin-bottom: 26px; }
    .cf-measures-intro { grid-template-columns: 1fr; gap: 18px; }
    .cf-risk-images { gap: 8px; margin-top: 26px; }
    .cf-risk-images figure { height: 125px; }
    .cf-risk-images figcaption { left: 10px; bottom: 10px; font-size: 12px; }
    .cf-capability-list { grid-template-columns: 1fr; gap: 24px; margin-block: 30px; }
    .cf-capability-list article { padding-left: 42px; }
    .cf-capability-icon { position: absolute; top: 0; margin: 0; }
    .cf-capability-list h3 { font-size: 16px; margin-bottom: 7px; }
    .cf-capability-list p { font-size: 13px; }
    .cf-example-heading { padding: 22px; flex-direction: column; align-items: flex-start; gap: 14px; }
    .cf-example-layout { grid-template-columns: 1fr; }
    .cf-example-data { padding: 22px; }
    .cf-metric-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .cf-metric-grid > div { padding-inline: 0 10px; }
    .cf-metric-grid > div:not(:nth-child(4n + 1)) { border-left: 0; }
    .cf-metric-grid > div:nth-child(even) { padding-left: 14px; border-left: 1px solid var(--cf-line); }
    .cf-metric-grid dd { font-size: 28px; }
    .cf-method-details summary { padding: 17px 22px; }
    .cf-method-details > div { grid-template-columns: 1fr; gap: 14px; padding-inline: 22px; }
    .cf-section-result { font-size: 14px; }
    .cf-efficiency-layout { grid-template-columns: 1fr; gap: 32px; }
    .cf-efficiency-benefits { grid-template-columns: 1fr; gap: 24px; margin-top: 35px; padding-top: 26px; }
    .cf-efficiency-benefits article { position: relative; padding-left: 38px; }
    .cf-efficiency-benefits article > span { position: absolute; top: 3px; left: 0; }
    .cf-efficiency-benefits h3 { margin: 0 0 9px; font-size: 20px; }
    .cf-efficiency-benefits h3 br { display: none; }
    .cf-efficiency-benefits p { max-width: none; }
    .cf-funding-feature { grid-template-columns: 1fr; margin-top: 28px; }
    .cf-funding-art img { height: 340px; }
    .cf-funding-content { padding: 10px 25px 32px; }
    .cf-security-mark { display: none; }
    .cf-security-grid { grid-template-columns: 1fr; gap: 24px; margin-top: 30px; }
    .cf-security-grid article { position: relative; padding-left: 38px; }
    .cf-security-grid article > i { position: absolute; top: 25px; left: 0; font-size: 20px; }
    .cf-security-grid h3 { margin-top: 0; font-size: 20px; }
    .cf-security-grid h3 br { display: none; }
}
@media (max-width: 380px) {
    .cf-container { width: calc(100% - 32px); }
    .cf-section h2 { font-size: 32px; }
}
@media (prefers-reduced-motion: reduce) {
    .cf-landing *, .cf-landing *::before, .cf-landing *::after { scroll-behavior: auto !important; transition: none !important; animation: none !important; }
    .cf-button:hover { transform: none; }
}
