:root {
    color-scheme: light;
    --bg: #f8faf9;
    --paper: #ffffff;
    --ink: #1d2328;
    --muted: #65717b;
    --line: #d9e0e2;
    --soft: #eef2f2;
    --coral: #d96f64;
    --teal: #2b7679;
    --teal-dark: #155255;
    --gold: #b9892f;
    --danger: #a43b32;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background: var(--bg);
    color: var(--ink);
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    line-height: 1.6;
}

a {
    color: inherit;
}

.demo-header {
    position: sticky;
    top: 0;
    z-index: 20;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 14px clamp(16px, 4vw, 44px);
    background: rgba(255, 255, 255, 0.94);
    border-bottom: 1px solid var(--line);
    backdrop-filter: blur(12px);
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    min-width: max-content;
    text-decoration: none;
}

.brand-mark {
    display: grid;
    width: 40px;
    height: 40px;
    place-items: center;
    border-radius: 8px;
    background: linear-gradient(135deg, var(--teal), var(--coral));
    color: #fff;
    font-weight: 800;
}

.brand-name,
.brand-subtitle {
    display: block;
}

.brand-name {
    font-size: 18px;
    font-weight: 800;
    line-height: 1.1;
}

.brand-subtitle {
    color: var(--muted);
    font-size: 12px;
    line-height: 1.2;
}

.demo-nav {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 4px;
    overflow-x: auto;
}

.demo-nav a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 36px;
    padding: 6px 12px;
    border-radius: 8px;
    color: var(--muted);
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
    white-space: nowrap;
}

.demo-nav a.is-active,
.demo-nav a:hover {
    background: var(--soft);
    color: var(--teal-dark);
}

.demo-nav a.nav-action {
    margin-left: 8px;
    border: 1px solid var(--teal);
}

.demo-nav a.nav-login {
    background: var(--paper);
    color: var(--teal-dark);
}

.demo-nav a.nav-login.is-active,
.demo-nav a.nav-login:hover {
    background: #e8f4f4;
    color: var(--teal-dark);
}

.demo-nav a.nav-cta {
    margin-left: 4px;
    background: var(--teal);
    color: #fff;
}

.demo-nav a.nav-cta.is-active,
.demo-nav a.nav-cta:hover {
    background: var(--teal-dark);
    color: #fff;
}

.screen {
    display: none;
}

.screen.is-active {
    display: block;
}

.hero {
    position: relative;
    display: flex;
    align-items: center;
    min-height: min(620px, 78vh);
    padding: 78px clamp(18px, 5vw, 72px) 72px;
    overflow: hidden;
    background: var(--bg);
}

.hero::after {
    content: "";
    position: absolute;
    inset: auto 0 0;
    height: 10px;
    background: var(--teal);
}

.hero-copy {
    position: relative;
    z-index: 1;
    max-width: 760px;
}

.eyebrow {
    margin: 0 0 8px;
    color: var(--teal-dark);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0;
    text-transform: uppercase;
}

.audience-label,
.service-label {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    margin: 0 8px 14px 0;
    border-radius: 999px;
    padding: 4px 10px;
    font-size: 13px;
    font-weight: 800;
}

.audience-label {
    background: #fff4f1;
    color: #8c3f37;
}

.service-label {
    background: #e8f4f4;
    color: var(--teal-dark);
}

h1,
h2,
h3,
p {
    overflow-wrap: anywhere;
}

h1 {
    margin: 0;
    font-size: 48px;
    line-height: 1.1;
}

h2 {
    margin: 0;
    font-size: 34px;
    line-height: 1.2;
}

h3 {
    margin: 0;
    font-size: 17px;
    line-height: 1.35;
}

.lead {
    max-width: 560px;
    margin: 20px 0 0;
    color: #3d474e;
    font-size: 18px;
}

.button-row {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 28px;
}

.center-row {
    justify-content: center;
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 44px;
    border: 1px solid transparent;
    border-radius: 8px;
    padding: 10px 18px;
    font: inherit;
    font-size: 15px;
    font-weight: 800;
    text-decoration: none;
    cursor: pointer;
}

.button-primary {
    background: var(--teal);
    color: #fff;
}

.button-primary:hover {
    background: var(--teal-dark);
}

.button-secondary {
    background: var(--paper);
    border-color: var(--line);
    color: var(--teal-dark);
}

.button-secondary:hover {
    border-color: var(--teal);
}

.route-line,
.map-pin {
    position: absolute;
    display: block;
}

.route-line {
    width: 58%;
    height: 5px;
    border-radius: 999px;
    background: rgba(43, 111, 114, 0.72);
    transform-origin: left center;
}

.route-line-a {
    left: 8%;
    top: 42%;
    transform: rotate(-12deg);
}

.route-line-b {
    right: 5%;
    top: 58%;
    transform: rotate(18deg);
    background: rgba(217, 95, 95, 0.72);
}

.map-pin {
    width: 18px;
    height: 18px;
    border: 3px solid #fff;
    border-radius: 50%;
    background: var(--coral);
    box-shadow: 0 8px 20px rgba(29, 35, 40, 0.22);
}

.pin-a { left: 20%; top: 35%; }
.pin-b { left: 42%; top: 53%; background: var(--teal); }
.pin-c { right: 25%; top: 44%; background: var(--gold); }
.pin-d { right: 18%; bottom: 22%; }

.screen-preview-section {
    border-top: 1px solid var(--line);
}

.screen-showcase {
    display: grid;
    grid-template-columns: repeat(2, minmax(190px, 240px));
    justify-content: center;
    align-items: start;
    max-width: 600px;
    margin-inline: auto;
    gap: clamp(18px, 2.4vw, 24px);
}

.screen-card {
    display: grid;
    align-content: end;
    gap: 14px;
    min-width: 0;
}

.screen-card-wide {
    grid-column: 1 / -1;
    justify-self: center;
    width: min(100%, 460px);
}

.device-frame {
    position: relative;
    overflow: hidden;
    border: 1px solid #c8d3d6;
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 24px 70px rgba(18, 36, 43, 0.13);
}

.phone-frame {
    width: min(100%, 188px);
    min-height: 322px;
    margin-inline: auto;
    border-radius: 24px;
    padding: 14px 10px 10px;
    background: #1e2b31;
}

.phone-speaker {
    width: 44px;
    height: 5px;
    margin: 0 auto 10px;
    border-radius: 999px;
    background: #627077;
}

.device-screen {
    overflow: hidden;
    border-radius: 8px;
    background: var(--paper);
}

.phone-frame .device-screen {
    min-height: 282px;
    border-radius: 16px;
}

.mock-appbar {
    min-height: 36px;
    padding: 10px 11px;
    background: var(--teal);
    color: #fff;
    font-size: 13px;
    font-weight: 800;
}

.submit-screen,
.map-screen {
    display: grid;
    gap: 10px;
    align-content: start;
    padding-bottom: 14px;
}

.photo-drop {
    display: grid;
    min-height: 72px;
    margin: 12px 12px 0;
    place-items: center;
    border: 1px dashed #9fb2b6;
    border-radius: 8px;
    background: #edf3f3;
    color: var(--teal-dark);
    font-size: 13px;
    font-weight: 800;
}

.photo-drop i {
    display: block;
    margin-bottom: 8px;
    font-size: 22px;
}

.field-line {
    height: 28px;
    margin: 0 12px;
    border-radius: 8px;
    background: #fff;
    border: 1px solid var(--line);
}

.field-line.wide {
    margin-top: 2px;
}

.mini-map,
.phone-map,
.report-map {
    position: relative;
    overflow: hidden;
    background:
        linear-gradient(90deg, rgba(43, 111, 114, 0.08) 1px, transparent 1px),
        linear-gradient(rgba(43, 111, 114, 0.08) 1px, transparent 1px),
        #e9efef;
    background-size: 34px 34px;
}

.mini-map {
    min-height: 48px;
    margin: 0 12px;
    border-radius: 8px;
}

.submit-button {
    display: grid;
    min-height: 32px;
    margin: 0 12px;
    place-items: center;
    border-radius: 8px;
    background: var(--coral);
    color: #fff;
    font-size: 13px;
    font-weight: 800;
}

.phone-map {
    min-height: 184px;
    margin: 0;
}

.phone-map .route-line-a {
    width: 72%;
    left: 8%;
    top: 36%;
}

.phone-map .route-line-b {
    width: 62%;
    right: 6%;
    top: 62%;
}

.map-sheet {
    display: grid;
    gap: 4px;
    margin: -24px 12px 0;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 16px 34px rgba(18, 36, 43, 0.15);
    z-index: 1;
}

.map-sheet strong,
.map-sheet span {
    display: block;
}

.map-sheet strong {
    font-size: 13px;
}

.map-sheet span {
    color: var(--muted);
    font-size: 12px;
}

.desktop-frame {
    min-height: 240px;
    padding: 10px;
}

.desktop-bar {
    display: flex;
    gap: 6px;
    padding: 0 0 10px;
}

.desktop-bar span {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #c6d2d4;
}

.report-screen {
    min-height: 198px;
    border: 1px solid var(--line);
    padding: 14px;
}

.report-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 16px;
}

.report-head strong {
    font-size: 15px;
}

.report-head span {
    border-radius: 999px;
    padding: 4px 10px;
    background: #e7f1f1;
    color: var(--teal-dark);
    font-size: 12px;
    font-weight: 800;
}

.report-layout {
    display: grid;
    grid-template-columns: 1fr 0.86fr;
    gap: 14px;
}

.report-map {
    min-height: 132px;
    border-radius: 8px;
}

.report-list {
    display: grid;
    gap: 10px;
    align-content: start;
}

.report-list span {
    display: block;
    min-height: 34px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
}

.screen-caption {
    display: grid;
    gap: 5px;
}

.screen-caption span {
    color: var(--coral);
    font-size: 13px;
    font-weight: 800;
}

.screen-caption strong {
    color: var(--ink);
    font-size: 16px;
}

.screen-caption p {
    margin: 8px 0 0;
    color: var(--muted);
    font-size: 14px;
}

.section-band,
.page-shell,
.document-shell {
    padding: clamp(42px, 7vw, 84px) clamp(18px, 5vw, 72px);
}

.section-band {
    background: var(--paper);
}

.section-band-muted {
    background: #f0f4f4;
}

.section-heading,
.page-heading {
    max-width: 760px;
    margin-bottom: 28px;
}

.page-heading p,
.body-copy {
    margin: 12px 0 0;
    color: var(--muted);
}

.step-grid {
    display: grid;
    gap: 14px;
}

.issue-flow {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    width: 100%;
    margin: 0;
    padding: 0;
    list-style: none;
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: 8px;
    overflow: hidden;
}

.issue-flow__item {
    --issue-accent: var(--cp-color-coral);
    --issue-accent-dark: #91433d;
    position: relative;
    display: grid;
    grid-template-rows: auto minmax(190px, 1fr) auto;
    gap: 22px;
    min-width: 0;
    min-height: 440px;
    padding: clamp(24px, 3vw, 40px);
    border-top: 4px solid var(--issue-accent);
}

.issue-flow__item + .issue-flow__item {
    border-left: 1px solid var(--line);
}

.issue-flow__item--blue {
    --issue-accent: var(--cp-color-sea-blue);
    --issue-accent-dark: var(--cp-color-sea-blue-text);
}

.issue-flow__item--turquoise {
    --issue-accent: var(--cp-color-turquoise);
    --issue-accent-dark: #1c696b;
}

.issue-flow__header {
    display: grid;
    grid-template-columns: auto 1fr;
    align-items: start;
    gap: 18px;
}

.issue-flow__number {
    color: var(--issue-accent);
    font-family: var(--cp-font-latin);
    font-size: clamp(40px, 4vw, 58px);
    font-weight: 800;
    line-height: 1;
}

.issue-flow__header h3 {
    margin: 0;
    color: var(--cp-color-navy-deep);
    font-size: clamp(19px, 1.8vw, 26px);
    line-height: 1.5;
}

.issue-flow__visual {
    position: relative;
    align-self: center;
    justify-self: center;
    width: min(100%, 280px);
    min-height: 170px;
    color: var(--issue-accent-dark);
}

.issue-flow__visual svg {
    width: 100%;
    height: 100%;
    stroke-width: 1.7;
}

.issue-flow__item > p {
    margin: 0;
    color: var(--cp-color-text-muted);
    font-size: 15px;
    line-height: 1.85;
}

.issue-flow__visual--conversation {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: end;
    padding-top: 38px;
}

.issue-flow__person {
    display: grid;
    align-self: end;
    justify-self: center;
    width: 88px;
    height: 104px;
    padding: 14px 10px 0;
    border-radius: 44px 44px 10px 10px;
}

.issue-flow__person--coral {
    color: #91433d;
    background: var(--cp-color-coral-soft);
}

.issue-flow__person--blue {
    color: var(--cp-color-sea-blue-text);
    background: var(--cp-color-sea-blue-soft);
}

.issue-flow__question {
    align-self: center;
    color: var(--cp-color-coral);
    font-family: var(--cp-font-latin);
    font-size: 54px;
    font-weight: 800;
    line-height: 1;
}

.issue-flow__bubble {
    position: absolute;
    top: 0;
    width: 58px;
    height: 44px;
}

.issue-flow__bubble--left {
    left: 8%;
    color: var(--cp-color-coral);
}

.issue-flow__bubble--right {
    right: 8%;
    color: var(--cp-color-sea-blue-text);
}

.issue-flow__visual--records {
    display: grid;
    grid-template-columns: repeat(2, 84px);
    place-content: center;
    gap: 12px 18px;
    transform: rotate(-2deg);
}

.issue-flow__visual--records span {
    display: grid;
    width: 84px;
    height: 72px;
    place-items: center;
    border: 1px solid currentColor;
    border-radius: 6px;
    background: var(--paper);
}

.issue-flow__visual--records span:nth-child(even) {
    transform: translateY(-8px) rotate(5deg);
}

.issue-flow__visual--records svg {
    width: 38px;
    height: 38px;
}

.issue-flow__visual--handover {
    display: grid;
    grid-template-columns: 1fr 40px 54px 1fr;
    align-items: center;
    gap: 8px;
}

.issue-flow__files {
    display: grid;
    width: 86px;
    height: 104px;
    place-items: center;
    justify-self: center;
    border: 1px solid currentColor;
    border-radius: 6px;
    background: var(--cp-color-turquoise-soft);
}

.issue-flow__files svg {
    width: 44px;
    height: 44px;
}

.issue-flow__break {
    width: 26px;
    height: 72px;
    justify-self: center;
    background: currentColor;
    clip-path: polygon(46% 0, 100% 0, 68% 38%, 100% 38%, 26% 100%, 42% 55%, 8% 55%);
}

.issue-flow__reset {
    display: grid;
    width: 54px;
    height: 54px;
    place-items: center;
    border-radius: 50%;
    background: var(--cp-color-turquoise-soft);
}

.issue-flow__reset svg {
    width: 30px;
    height: 30px;
}

.step-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.flow-strip {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.flow-strip li {
    position: relative;
    display: grid;
    gap: 10px;
    align-content: start;
    min-height: 128px;
    border-top: 3px solid var(--teal);
    padding: 16px 10px 0 0;
    color: #344047;
    font-weight: 800;
}

.flow-strip span {
    display: grid;
    width: 36px;
    height: 36px;
    place-items: center;
    border-radius: 50%;
    background: var(--teal);
    color: #fff;
}

.step-grid article,
.side-panel,
.wire-form {
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--paper);
}

.step-grid article {
    padding: 20px;
}

.step-grid i {
    display: grid;
    width: 42px;
    height: 42px;
    margin-bottom: 14px;
    place-items: center;
    border-radius: 8px;
    background: #e7f1f1;
    color: var(--teal-dark);
    font-size: 18px;
}

.step-grid p {
    margin: 8px 0 0;
    color: var(--muted);
    font-size: 14px;
}

.split-layout,
.form-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(320px, 0.58fr);
    gap: 18px;
    align-items: start;
}

.check-list,
.ordered-list {
    margin: 16px 0 0;
    padding: 0;
}

.check-list {
    list-style: none;
}

.check-list li,
.ordered-list li {
    margin: 10px 0;
    color: #344047;
}

.check-list li {
    position: relative;
    padding-left: 28px;
}

.check-list li::before {
    content: "\f00c";
    position: absolute;
    left: 0;
    top: 1px;
    color: var(--teal);
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
}

.plan-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(260px, 320px));
    justify-content: center;
    max-width: 700px;
    margin-inline: auto;
    gap: 18px;
}

.plan-card {
    display: flex;
    flex-direction: column;
    min-height: 100%;
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 20px;
    background: var(--paper);
}

.plan-card-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 18px;
}

.plan-icon {
    display: grid;
    width: 44px;
    height: 44px;
    place-items: center;
    border-radius: 8px;
    background: #e8f4f4;
    color: var(--teal-dark);
    font-size: 20px;
}

.plan-badge {
    border-radius: 999px;
    padding: 5px 10px;
    background: #e8f4f4;
    color: var(--teal-dark);
    font-size: 12px;
    font-weight: 800;
}

.plan-card h3 {
    font-size: 30px;
}

.plan-copy {
    min-height: 58px;
    margin: 8px 0 0;
    color: var(--muted);
}

.plan-price {
    margin: 20px 0 18px;
    color: var(--ink);
    font-size: 28px;
    font-weight: 900;
}

.plan-card .button {
    width: 100%;
}

.plan-list {
    margin-top: 22px;
    padding-top: 20px;
    border-top: 1px solid var(--line);
}

.plan-note {
    margin: auto 0 0;
    padding-top: 14px;
    color: var(--muted);
    font-size: 13px;
}

.plan-card-disabled {
    background: #f1f3f3;
    color: #6b747c;
    opacity: 0.72;
}

.plan-card-disabled .plan-icon,
.plan-card-disabled .plan-badge {
    background: #e1e5e6;
    color: #68737b;
}

.plan-card-disabled .plan-price,
.plan-card-disabled h3 {
    color: #505b63;
}

.plan-card-disabled .button:disabled {
    border-color: #cbd3d6;
    background: #dde3e4;
    color: #6b747c;
    cursor: not-allowed;
}

.note-box {
    margin: 0;
    border-left: 4px solid var(--coral);
    padding: 14px 16px;
    background: #fff;
    color: #4c5961;
}

.faq-section {
    display: grid;
    grid-template-columns: minmax(220px, 0.72fr) minmax(0, 1.28fr);
    align-items: start;
    gap: clamp(24px, 5vw, 64px);
}

.faq-heading {
    position: sticky;
    top: 108px;
    align-items: start;
    text-align: left;
}

.faq-heading h2 {
    max-width: 360px;
}

.faq-heading p:not(.eyebrow) {
    max-width: 320px;
    margin: 0;
    color: var(--muted);
    font-size: 15px;
    line-height: 1.8;
}

.faq-accordion {
    border-top: 1px solid var(--line);
}

.faq-item {
    border-bottom: 1px solid var(--line);
}

.faq-item h3 {
    margin: 0;
}

.faq-trigger {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 28px;
    align-items: center;
    width: 100%;
    min-height: 72px;
    border: 0;
    padding: 18px 0;
    background: transparent;
    color: var(--ink);
    font: inherit;
    font-size: 18px;
    font-weight: 800;
    line-height: 1.5;
    text-align: left;
    cursor: pointer;
}

.faq-trigger span {
    position: relative;
    width: 28px;
    height: 28px;
    border: 1px solid #cbd6d7;
    border-radius: 50%;
    background: #fff;
}

.faq-trigger span::before,
.faq-trigger span::after {
    content: "";
    position: absolute;
    left: 50%;
    top: 50%;
    width: 12px;
    height: 2px;
    border-radius: 999px;
    background: var(--teal-dark);
    transform: translate(-50%, -50%);
}

.faq-trigger span::after {
    transform: translate(-50%, -50%) rotate(90deg);
    transition: transform 180ms ease, opacity 180ms ease;
}

.faq-trigger:hover,
.faq-trigger:focus-visible {
    color: var(--teal-dark);
}

.faq-trigger:focus-visible {
    outline: 3px solid rgba(224, 107, 91, 0.28);
    outline-offset: 4px;
}

.faq-trigger[aria-expanded="true"] span {
    border-color: #9fc0c1;
    background: #e7f1f1;
}

.faq-trigger[aria-expanded="true"] span::after {
    opacity: 0;
    transform: translate(-50%, -50%) rotate(0deg);
}

.faq-answer {
    max-width: 680px;
    padding: 0 48px 22px 0;
}

.faq-answer p {
    margin: 0;
    color: var(--muted);
    font-size: 15px;
    line-height: 1.9;
}

.final-cta {
    padding: 64px clamp(18px, 5vw, 72px);
    background: #173f42;
    color: #fff;
    text-align: center;
}

.final-cta .eyebrow {
    color: #a9dddd;
}

.final-cta h2 {
    max-width: 760px;
    margin: 0 auto;
}

.final-cta .button-secondary {
    background: transparent;
    border-color: rgba(255, 255, 255, 0.55);
    color: #fff;
}

.page-shell {
    min-height: calc(100vh - 82px);
}

.narrow-shell {
    max-width: 760px;
    margin: 0 auto;
}

.wire-form,
.side-panel {
    padding: 22px;
}

.field {
    margin-bottom: 18px;
}

label {
    display: block;
    margin-bottom: 6px;
    color: #26323a;
    font-size: 14px;
    font-weight: 800;
}

input,
select,
textarea {
    display: block;
    width: 100%;
    border: 1px solid #cbd6da;
    border-radius: 8px;
    padding: 11px 12px;
    background: #fbfcfc;
    color: var(--ink);
    font: inherit;
    font-size: 16px;
}

input:focus,
select:focus,
textarea:focus {
    outline: 2px solid rgba(43, 111, 114, 0.2);
    border-color: var(--teal);
    background: #fff;
}

.check-row {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin: 0;
    color: #344047;
    font-weight: 700;
}

.check-row input {
    width: 18px;
    height: 18px;
    margin-top: 3px;
}

.side-panel h2 {
    margin: 0;
    font-size: 20px;
}

.side-panel p {
    margin: 10px 0 0;
    color: var(--muted);
}

.contact-panel h2 {
    margin: 0;
    font-size: 22px;
}

.contact-panel p {
    margin: 10px 0 0;
    color: var(--muted);
}

.document-shell {
    max-width: 860px;
    min-height: calc(100vh - 82px);
    margin: 0 auto;
    background: var(--paper);
}

.document-shell h1 {
    font-size: 48px;
}

.document-shell h2 {
    margin-top: 30px;
    font-size: 22px;
}

.document-shell p {
    color: #3d474e;
}

.company-profile {
    display: grid;
    gap: 0;
    margin: 18px 0 0;
    border-top: 1px solid var(--line);
}

.company-profile div {
    display: grid;
    grid-template-columns: 150px minmax(0, 1fr);
    gap: 18px;
    border-bottom: 1px solid var(--line);
    padding: 14px 0;
}

.company-profile dt {
    color: var(--muted);
    font-weight: 800;
}

.company-profile dd {
    margin: 0;
    color: #3d474e;
}

.company-service-list {
    margin: 14px 0 0;
    padding-left: 1.2em;
    color: #3d474e;
}

.source-note {
    margin-top: 28px;
    color: var(--muted);
    font-size: 13px;
}

.signup-modal[hidden] {
    display: none;
}

.signup-modal {
    position: fixed;
    inset: 0;
    z-index: 100;
    display: grid;
    place-items: center;
    padding: 20px;
}

.signup-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(18, 29, 35, 0.52);
}

.signup-dialog {
    position: relative;
    z-index: 1;
    width: min(100%, 420px);
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 28px;
    background: var(--paper);
    box-shadow: 0 24px 80px rgba(18, 36, 43, 0.22);
}

.signup-close {
    position: absolute;
    right: 14px;
    top: 14px;
    display: grid;
    width: 36px;
    height: 36px;
    place-items: center;
    border: 1px solid var(--line);
    border-radius: 50%;
    background: #fff;
    color: var(--muted);
    cursor: pointer;
}

.signup-dialog h2 {
    margin: 0;
    padding-right: 36px;
    font-size: 28px;
}

.signup-modal-lead,
.signup-modal-note {
    font-size: 14px;
}

.signup-modal-lead {
    margin: 12px 0 0;
    color: #3d474e;
}

.signup-modal-form {
    display: grid;
    gap: 10px;
    margin-top: 18px;
}

.signup-modal-form label {
    color: var(--ink);
    font-size: 13px;
    font-weight: 800;
}

.signup-modal-form input {
    width: 100%;
    min-height: 44px;
    border: 1px solid #cbd6d7;
    border-radius: 8px;
    padding: 10px 12px;
    font: inherit;
    font-size: 16px;
}

.signup-modal-form input:focus {
    border-color: var(--teal);
    outline: 3px solid rgba(43, 111, 114, 0.16);
}

.signup-message {
    display: none;
    margin: 14px 0 0;
    border-radius: 8px;
    padding: 10px 12px;
    font-size: 14px;
}

.signup-message.is-visible {
    display: block;
}

.signup-message.error {
    background: #fff1f0;
    color: #9d2f26;
}

.signup-message.success {
    background: #e7f4ee;
    color: #1f6545;
}

.signup-modal-note {
    margin: 14px 0 0;
    color: var(--muted);
}

.demo-footer {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px 18px;
    padding: 24px clamp(16px, 4vw, 44px);
    border-top: 1px solid var(--line);
    background: #20272c;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 14px;
}

.demo-footer a,
.footer-copy {
    color: #fff;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
}

.footer-copy {
    color: rgba(255, 255, 255, 0.72);
}

@media (max-width: 980px) {
    .demo-header {
        align-items: flex-start;
        flex-direction: column;
        gap: 12px;
    }

    .demo-nav {
        justify-content: flex-start;
        width: 100%;
    }

    .hero,
    .split-layout,
    .form-layout {
        grid-template-columns: 1fr;
    }

    .screen-showcase {
        grid-template-columns: repeat(2, minmax(190px, 240px));
    }

    .screen-card-wide {
        grid-column: 1 / -1;
    }

    .step-grid,
    .flow-strip,
    .plan-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .issue-flow {
        grid-template-columns: 1fr;
    }

    .issue-flow__item {
        grid-template-columns: minmax(190px, 0.75fr) minmax(240px, 1fr);
        grid-template-rows: auto 1fr;
        min-height: 0;
    }

    .issue-flow__item + .issue-flow__item {
        border-left: 0;
        border-top: 1px solid var(--line);
        box-shadow: inset 0 4px 0 var(--issue-accent);
    }

    .issue-flow__visual {
        grid-column: 1;
        grid-row: 1 / 3;
        width: 100%;
    }

    .issue-flow__header,
    .issue-flow__item > p {
        grid-column: 2;
    }

    .plan-grid {
        grid-template-columns: repeat(2, minmax(240px, 320px));
    }

    .faq-section {
        grid-template-columns: 1fr;
    }

    .faq-heading {
        position: static;
    }
}

@media (max-width: 640px) {
    .hero {
        min-height: auto;
        padding-top: 36px;
    }

    h1 {
        font-size: 34px;
    }

    h2 {
        font-size: 28px;
    }

    .lead {
        font-size: 16px;
    }

    .button {
        width: 100%;
    }

    .screen-showcase {
        grid-template-columns: 1fr;
    }

    .screen-card-wide {
        grid-column: auto;
    }

    .phone-frame {
        width: min(100%, 188px);
        min-height: 322px;
    }

    .phone-frame .device-screen {
        min-height: 282px;
    }

    .desktop-frame {
        min-height: auto;
    }

    .report-layout {
        grid-template-columns: 1fr;
    }

    .report-map {
        min-height: 160px;
    }

    .step-grid,
    .flow-strip,
    .plan-grid {
        grid-template-columns: 1fr;
    }

    .issue-flow__item {
        display: grid;
        grid-template-columns: 1fr;
        grid-template-rows: auto auto auto;
        gap: 18px;
        padding: 28px 22px;
    }

    .issue-flow__visual,
    .issue-flow__header,
    .issue-flow__item > p {
        grid-column: 1;
    }

    .issue-flow__visual {
        grid-row: auto;
        min-height: 154px;
    }

    .issue-flow__header {
        gap: 14px;
    }

    .issue-flow__number {
        font-size: 42px;
    }

    .issue-flow__header h3 {
        font-size: 20px;
    }

    .plan-grid {
        max-width: 360px;
    }

    .company-profile div {
        grid-template-columns: 1fr;
        gap: 4px;
    }

    .signup-dialog {
        padding: 24px 18px;
    }

    .faq-trigger {
        min-height: 64px;
        font-size: 16px;
    }

    .faq-answer {
        padding-right: 0;
    }

    .flow-strip li {
        min-height: auto;
    }

    .document-shell h1 {
        font-size: 36px;
    }
}

/* Formal top page: shared Coralpia foundations and page-specific composition. */
:root {
    --bg: var(--cp-color-sand);
    --paper: var(--cp-color-white);
    --ink: var(--cp-color-text);
    --muted: var(--cp-color-text-muted);
    --line: var(--cp-color-border);
    --soft: var(--cp-color-sea-blue-soft);
    --coral: var(--cp-color-coral);
    --teal: var(--cp-color-turquoise);
    --teal-dark: var(--cp-color-navy-deep);
    --gold: var(--cp-color-sea-blue);
    --danger: var(--cp-color-danger);
}

html {
    scroll-padding-top: 88px;
}

body {
    min-width: 320px;
    background: var(--cp-color-white);
    color: var(--cp-color-text);
    font-family: var(--cp-font-ja);
}

h1,
h2,
h3 {
    color: var(--cp-color-navy-deep);
    font-family: var(--cp-font-ja);
}

.home-header {
    position: sticky;
    z-index: var(--cp-z-header);
    top: 0;
    border-bottom: 1px solid var(--cp-color-border);
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(12px);
}

.home-header__inner {
    position: relative;
    display: flex;
    width: min(var(--cp-container-wide), calc(100% - 36px));
    min-height: 72px;
    margin-inline: auto;
    align-items: center;
    justify-content: space-between;
    gap: var(--cp-space-5);
}

.home-brand {
    display: inline-flex;
    min-width: 0;
    align-items: center;
    gap: var(--cp-space-3);
    color: var(--cp-color-text-muted);
    font-size: var(--cp-font-size-xs);
    font-weight: 700;
    text-decoration: none;
    white-space: nowrap;
}

.home-brand img {
    width: 146px;
    height: auto;
}

.home-brand span {
    padding-left: var(--cp-space-3);
    border-left: 1px solid var(--cp-color-border);
}

.home-nav {
    display: flex;
    min-width: 0;
    align-items: center;
    justify-content: flex-end;
    gap: 2px;
}

.home-nav > a:not(.cp-button) {
    display: inline-flex;
    min-height: 40px;
    padding: 8px 10px;
    align-items: center;
    border-bottom: 2px solid transparent;
    color: var(--cp-color-text-muted);
    font-size: var(--cp-font-size-sm);
    font-weight: 700;
    text-decoration: none;
    white-space: nowrap;
}

.home-nav > a:not(.cp-button):hover,
.home-nav > a.is-active:not(.cp-button) {
    border-bottom-color: var(--cp-color-coral);
    color: var(--cp-color-navy-deep);
}

.home-nav .cp-button {
    margin-left: var(--cp-space-2);
}

.home-menu-button {
    display: none;
}

.home-menu-button .home-menu-icon--close,
.home-menu-button[aria-expanded="true"] .home-menu-icon--open {
    display: none;
}

.home-menu-button[aria-expanded="true"] .home-menu-icon--close {
    display: block;
}

.hero {
    min-height: min(620px, calc(100svh - 116px));
    padding: 76px max(18px, calc((100vw - var(--cp-container-wide)) / 2)) 70px;
    isolation: isolate;
    background: var(--cp-color-white);
}

.hero::after {
    z-index: 2;
    height: 4px;
    background: var(--cp-color-turquoise);
}

.hero-copy {
    width: min(520px, 43vw);
    max-width: none;
}

.hero-visual {
    position: absolute;
    top: 50%;
    right: clamp(-120px, -7vw, -72px);
    z-index: 0;
    display: block;
    width: clamp(760px, 63vw, 990px);
    pointer-events: none;
    transform: translateY(-50%);
}

.hero-visual img {
    display: block;
    width: 100%;
    height: auto;
}

.hero h1 {
    max-width: 720px;
    color: var(--cp-color-navy-deep);
    line-height: 1.5;
}

.hero .lead {
    max-width: 660px;
    color: var(--cp-color-text-muted);
}

.hero .hero-lead-followup {
    margin-top: var(--cp-space-1);
}

.home-detail-link {
    display: inline-flex;
    margin-top: var(--cp-space-4);
    align-items: center;
    gap: var(--cp-space-2);
    color: var(--cp-color-sea-blue-text);
    font-size: var(--cp-font-size-sm);
    font-weight: 700;
    text-decoration: none;
}

.home-detail-link:hover {
    text-decoration: underline;
}

.home-detail-link svg {
    width: 16px;
    height: 16px;
}

.audience-label {
    color: #91433d;
    background: var(--cp-color-coral-soft);
}

.service-label {
    color: #1c696b;
    background: var(--cp-color-turquoise-soft);
}

.eyebrow {
    color: var(--cp-color-sea-blue-text);
    font-family: var(--cp-font-latin);
}

.section-band {
    padding: clamp(48px, 7vw, 84px) max(18px, calc((100vw - var(--cp-container-wide)) / 2));
}

.section-band-muted {
    background: #f4f8f8;
}

.section-heading {
    width: min(820px, 100%);
    max-width: none;
}

.section-heading > p:not(.eyebrow) {
    color: var(--cp-color-text-muted);
}

.step-grid svg,
.plan-icon svg,
.photo-drop svg {
    width: 20px;
    height: 20px;
}

.step-grid article:nth-child(1) svg,
.step-grid article:nth-child(4) svg {
    color: #91433d;
}

.step-grid article:nth-child(1) > svg,
.step-grid article:nth-child(4) > svg {
    background: var(--cp-color-coral-soft);
}

.step-grid article:nth-child(2) > svg {
    color: #1c696b;
    background: var(--cp-color-turquoise-soft);
}

.step-grid article:nth-child(3) > svg {
    color: var(--cp-color-sea-blue-text);
    background: var(--cp-color-sea-blue-soft);
}

.step-grid article > svg {
    display: grid;
    width: 42px;
    height: 42px;
    padding: 10px;
    border-radius: var(--cp-radius-md);
}

.step-grid article {
    box-shadow: var(--cp-shadow-sm);
}

.flow-strip li {
    border-top-color: var(--cp-color-border-strong);
    color: var(--cp-color-navy-deep);
}

.flow-strip li:nth-child(1) {
    border-top-color: var(--cp-color-coral);
}

.flow-strip li:nth-child(2) {
    border-top-color: var(--cp-color-turquoise);
}

.flow-strip li:nth-child(3) {
    border-top-color: var(--cp-color-sea-blue);
}

.flow-strip li:nth-child(4) {
    border-top-color: var(--cp-color-navy);
}

.flow-strip span {
    color: var(--cp-color-white);
    background: var(--cp-color-navy);
    font-family: var(--cp-font-latin);
}

.check-list li::before {
    content: "\2713";
    color: var(--cp-color-success);
    font-family: inherit;
    font-weight: 700;
}

.plan-card {
    box-shadow: var(--cp-shadow-sm);
}

.plan-card-active {
    border-top: 4px solid var(--cp-color-coral);
}

.plan-card > .cp-button {
    width: 100%;
}

.plan-icon,
.plan-badge {
    color: #1c696b;
    background: var(--cp-color-turquoise-soft);
}

.plan-card-disabled {
    background: #f3f5f7;
    opacity: 1;
}

.screen-preview-section {
    border-top-color: var(--cp-color-border);
}

.device-frame {
    border-color: var(--cp-color-border-strong);
    box-shadow: var(--cp-shadow-md);
}

.mock-appbar {
    background: var(--cp-color-navy-deep);
}

.submit-button {
    color: var(--cp-color-navy-deep);
    background: var(--cp-color-coral);
}

.screen-caption span {
    color: #91433d;
}

.faq-trigger {
    color: var(--cp-color-navy-deep);
}

.faq-trigger:hover,
.faq-trigger:focus-visible {
    color: var(--cp-color-sea-blue-text);
}

.faq-trigger[aria-expanded="true"] span {
    border-color: var(--cp-color-turquoise);
    background: var(--cp-color-turquoise-soft);
}

.faq-trigger span::before,
.faq-trigger span::after {
    background: var(--cp-color-navy);
}

.final-cta {
    background: var(--cp-color-navy-deep);
}

.final-cta .eyebrow {
    color: var(--cp-color-turquoise);
}

.final-cta h2 {
    color: var(--cp-color-white);
}

.final-cta .cp-button--secondary {
    border-color: rgba(255, 255, 255, 0.62);
    color: var(--cp-color-white);
    background: transparent;
}

.final-cta .cp-button--secondary:hover {
    background: rgba(255, 255, 255, 0.1);
}

.cp-overlay__backdrop {
    border: 0;
    padding: 0;
    cursor: pointer;
}

.signup-modal-lead,
.signup-modal-note {
    color: var(--cp-color-text-muted);
    font-size: var(--cp-font-size-sm);
}

.signup-modal-form {
    display: grid;
    gap: var(--cp-space-4);
    margin-top: var(--cp-space-5);
}

.signup-modal-note {
    margin: var(--cp-space-4) 0 0;
}

.home-form-message {
    margin: var(--cp-space-4) 0 0;
    border-radius: var(--cp-radius-md);
    padding: 11px 12px;
    font-size: var(--cp-font-size-sm);
    font-weight: 700;
}

.home-form-message--error {
    color: var(--cp-color-danger);
    background: var(--cp-color-danger-soft);
}

.home-form-message--success {
    color: #175f57;
    background: var(--cp-color-success-soft);
}

.home-footer {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    min-height: 82px;
    padding: 20px max(18px, calc((100vw - var(--cp-container-wide)) / 2));
    align-items: center;
    gap: var(--cp-space-5);
    border-top: 1px solid var(--cp-color-border);
    background: var(--cp-color-white);
}

.home-footer__brand img {
    width: 126px;
    height: auto;
}

.footer-links {
    justify-content: center;
}

.home-footer a,
.footer-copy {
    color: var(--cp-color-text-muted);
    font-size: var(--cp-font-size-xs);
    font-weight: 700;
    text-decoration: none;
}

.home-footer a:hover {
    color: var(--cp-color-navy-deep);
}

@media (max-width: 1180px) {
    .hero-copy {
        width: min(500px, 47vw);
    }

    .hero-visual {
        top: 0;
        right: -64px;
        width: 52vw;
        height: 100%;
        overflow: hidden;
        transform: none;
    }

    .hero-visual img {
        width: auto;
        max-width: none;
        height: 100%;
    }
}

@media (max-width: 900px) {
    .home-header__inner {
        min-height: 64px;
    }

    .home-menu-button {
        display: inline-flex;
    }

    .home-nav {
        position: absolute;
        top: calc(100% + 1px);
        right: 0;
        left: 0;
        display: none;
        max-height: calc(100dvh - 80px);
        padding: var(--cp-space-3);
        overflow-y: auto;
        border: 1px solid var(--cp-color-border);
        border-radius: 0 0 var(--cp-radius-md) var(--cp-radius-md);
        background: var(--cp-color-white);
        box-shadow: var(--cp-shadow-md);
    }

    .home-nav.is-open {
        display: grid;
    }

    .home-nav > a:not(.cp-button) {
        width: 100%;
        border-bottom: 0;
        border-left: 3px solid transparent;
        padding-inline: var(--cp-space-4);
    }

    .home-nav > a.is-active:not(.cp-button) {
        border-left-color: var(--cp-color-coral);
        background: var(--cp-color-sand);
    }

    .home-nav .cp-button {
        width: 100%;
        margin: var(--cp-space-1) 0 0;
    }

    .home-login {
        border: 1px solid var(--cp-color-border);
    }
}

@media (max-width: 780px) {
    .hero {
        align-items: flex-start;
        min-height: auto;
        padding-bottom: clamp(250px, 63vw, 310px);
    }

    .hero-copy {
        width: 100%;
    }

    .hero-visual {
        top: auto;
        right: -12%;
        bottom: 0;
        width: 112%;
        height: clamp(260px, 65vw, 320px);
    }

    .hero-visual img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        object-position: center 52%;
    }
}

@media (max-width: 640px) {
    .home-header__inner {
        width: min(100% - 24px, var(--cp-container-wide));
    }

    .home-brand img {
        width: 124px;
    }

    .home-brand span {
        display: none;
    }

    .hero {
        display: flex;
        flex-direction: column;
        min-height: auto;
        padding: 0 18px 48px;
    }

    .hero-visual {
        position: relative;
        inset: auto;
        width: calc(100% + 36px);
        height: auto;
        margin-inline: -18px;
        transform: none;
    }

    .hero-visual img {
        width: 100%;
        height: auto;
        object-fit: initial;
        object-position: initial;
    }

    .hero-copy {
        padding-top: 32px;
    }

    .button-row .cp-button {
        width: 100%;
    }

    .home-detail-link {
        width: 100%;
        justify-content: center;
    }

    .home-footer {
        grid-template-columns: 1fr;
        justify-items: center;
        text-align: center;
    }
}
