:root {
    --teal: #00a9a5;
    --teal-dark: #087f7c;
    --teal-soft: #e8f8f7;
    --navy: #0e2038;
    --navy-soft: #33455d;
    --ink: #14243a;
    --muted: #5c6b7c;
    --line: #dce5eb;
    --surface: #ffffff;
    --surface-soft: #f6f9fa;
    --surface-tint: #f1fbfa;
    --green: #2e9b68;
    --amber: #e4a63f;
    --purple: #7c6ee6;
    --blue: #3c8ed8;
    --shadow: 0 24px 64px rgba(14, 32, 56, 0.13);
    --radius-sm: 10px;
    --radius-md: 18px;
    --radius-lg: 28px;
    --shell: 1280px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 96px;
}

body {
    margin: 0;
    color: var(--ink);
    background: var(--surface);
    font-family: "Inter", system-ui, sans-serif;
    font-size: 16px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

body.menu-open {
    overflow: hidden;
}

a {
    color: inherit;
}

button,
input,
textarea {
    font: inherit;
}

button,
a {
    -webkit-tap-highlight-color: transparent;
}

img {
    display: block;
    max-width: 100%;
}

.material-symbols-rounded {
    font-size: 1.25em;
    line-height: 1;
    vertical-align: middle;
}

.shell {
    width: min(var(--shell), calc(100% - 48px));
    margin-inline: auto;
}

.skip-link {
    position: fixed;
    top: 8px;
    left: 8px;
    z-index: 200;
    padding: 10px 14px;
    color: white;
    background: var(--navy);
    border-radius: 8px;
    transform: translateY(-160%);
}

.skip-link:focus {
    transform: translateY(0);
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(255, 255, 255, 0.96);
    border-bottom: 1px solid rgba(220, 229, 235, 0.82);
    backdrop-filter: blur(14px);
}

.header-inner {
    display: flex;
    min-height: 80px;
    align-items: center;
    justify-content: space-between;
    gap: 32px;
}

.brand {
    flex: 0 0 auto;
}

.brand img {
    width: 96px;
    height: 48px;
    object-fit: contain;
}

.desktop-nav {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: clamp(18px, 2.4vw, 36px);
    margin-left: auto;
}

.desktop-nav a,
.header-contact {
    position: relative;
    color: var(--ink);
    font-size: 0.94rem;
    font-weight: 600;
    text-decoration: none;
}

.desktop-nav a::after {
    position: absolute;
    right: 0;
    bottom: -8px;
    left: 0;
    height: 2px;
    content: "";
    background: var(--teal);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 180ms ease;
}

.desktop-nav a:hover::after,
.desktop-nav a:focus-visible::after {
    transform: scaleX(1);
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 16px;
}

.header-contact {
    display: none;
}

.button {
    display: inline-flex;
    min-height: 52px;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 0 22px;
    border: 1px solid transparent;
    border-radius: var(--radius-sm);
    cursor: pointer;
    font-weight: 700;
    line-height: 1.2;
    text-align: center;
    text-decoration: none;
    transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.button:hover {
    transform: translateY(-2px);
}

.button-primary {
    color: white;
    background: var(--teal);
    box-shadow: 0 10px 24px rgba(0, 169, 165, 0.2);
}

.button-primary:hover {
    background: var(--teal-dark);
    box-shadow: 0 14px 30px rgba(0, 169, 165, 0.25);
}

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

.button-secondary:hover {
    background: var(--teal-soft);
}

.button-small {
    min-height: 44px;
    padding-inline: 18px;
    font-size: 0.92rem;
}

.button-full {
    width: 100%;
}

.menu-toggle {
    display: none;
    width: 44px;
    height: 44px;
    align-items: center;
    justify-content: center;
    color: var(--ink);
    background: transparent;
    border: 1px solid var(--line);
    border-radius: 9px;
}

.mobile-nav {
    position: fixed;
    inset: 80px 0 auto;
    max-height: calc(100vh - 80px);
    padding: 18px 24px 28px;
    overflow-y: auto;
    background: white;
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow);
}

.mobile-nav[hidden] {
    display: none;
}

.mobile-nav a {
    display: block;
    padding: 14px 0;
    border-bottom: 1px solid var(--line);
    font-weight: 700;
    text-decoration: none;
}

.mobile-nav .button {
    margin-top: 18px;
    color: white;
}

.hero {
    position: relative;
    overflow: hidden;
    padding: 48px 0 52px;
}

.hero::before {
    position: absolute;
    z-index: -1;
    top: -120px;
    right: -160px;
    width: 720px;
    height: 720px;
    content: "";
    background: radial-gradient(circle, rgba(0, 169, 165, 0.1), rgba(0, 169, 165, 0) 68%);
}

.hero-grid {
    display: grid;
    grid-template-columns: minmax(480px, 1fr) minmax(620px, 1.3fr);
    align-items: center;
    gap: clamp(42px, 5vw, 78px);
}

.eyebrow {
    margin: 0 0 14px;
    color: var(--teal-dark);
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.11em;
    text-transform: uppercase;
}

h1,
h2,
h3,
p {
    margin-top: 0;
}

h1 {
    max-width: 650px;
    margin-bottom: 24px;
    color: var(--navy);
    font-size: clamp(3rem, 3.8vw, 3.6rem);
    font-weight: 800;
    letter-spacing: -0.055em;
    line-height: 1.04;
}

.hero-lede {
    max-width: 590px;
    margin-bottom: 32px;
    color: var(--navy-soft);
    font-size: clamp(1.08rem, 1.5vw, 1.28rem);
    line-height: 1.7;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
}

.talk-link {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-top: 20px;
    color: var(--muted);
    font-size: 0.92rem;
    text-decoration: none;
}

.talk-link .material-symbols-rounded,
.talk-link strong {
    color: var(--teal-dark);
}

.talk-link strong {
    text-decoration: underline;
    text-underline-offset: 3px;
}

.hero-points {
    display: flex;
    flex-wrap: wrap;
    gap: 16px 24px;
    margin: 26px 0 0;
    padding: 0;
    color: var(--muted);
    font-size: 0.84rem;
    font-weight: 600;
    list-style: none;
}

.hero-points li {
    display: flex;
    align-items: center;
    gap: 7px;
}

.hero-points .material-symbols-rounded {
    color: var(--teal);
}

.product-window {
    display: grid;
    min-height: 500px;
    grid-template-columns: 68px 1fr;
    overflow: hidden;
    background: white;
    border: 1px solid var(--line);
    border-radius: 14px;
    box-shadow: var(--shadow);
    transform: perspective(1600px) rotateY(-1deg);
}

.product-sidebar {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 24px;
    padding: 16px 0;
    color: rgba(255, 255, 255, 0.78);
    background: var(--teal);
}

.product-mark {
    display: grid;
    width: 34px;
    height: 34px;
    margin-bottom: 8px;
    place-items: center;
    color: var(--teal);
    background: white;
    border-radius: 6px;
    font-weight: 800;
}

.product-sidebar .material-symbols-rounded {
    padding: 7px;
    font-size: 1.2rem;
}

.product-sidebar .is-active {
    color: white;
    background: rgba(255, 255, 255, 0.18);
    border-radius: 8px;
}

.product-main {
    min-width: 0;
    padding: 18px;
}

.product-topline {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding-bottom: 15px;
    border-bottom: 1px solid var(--line);
}

.product-topline div {
    display: flex;
    flex-direction: column;
    line-height: 1.3;
}

.product-kicker {
    color: var(--muted);
    font-size: 0.72rem;
}

.product-topline button {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 8px 12px;
    color: white;
    background: var(--teal);
    border: 0;
    border-radius: 7px;
    font-size: 0.72rem;
    font-weight: 700;
}

.metric-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 9px;
    margin-block: 14px;
}

.metric-row > div {
    display: flex;
    min-width: 0;
    flex-direction: column;
    padding: 13px;
    border: 1px solid var(--line);
    border-radius: 8px;
}

.metric-row span,
.metric-row small,
.preview-label {
    color: var(--muted);
    font-size: 0.62rem;
}

.metric-row strong {
    color: var(--navy);
    font-size: 1.22rem;
}

.dashboard-grid {
    display: grid;
    grid-template-columns: 0.9fr 1.25fr 1fr;
    gap: 10px;
}

.dashboard-grid > section {
    min-width: 0;
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: 8px;
}

.panel-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 14px;
    font-size: 0.72rem;
}

.panel-heading span {
    color: var(--green);
    font-size: 0.62rem;
}

.panel-heading a {
    color: var(--teal-dark);
    font-size: 0.62rem;
}

.pipeline-list,
.automation-panel ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

.pipeline-list {
    display: grid;
    gap: 10px;
}

.pipeline-list li {
    display: grid;
    grid-template-columns: 8px 1fr auto;
    align-items: center;
    gap: 8px;
    padding: 10px;
    background: var(--surface-soft);
    border-radius: 6px;
    font-size: 0.66rem;
}

.status-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
}

.status-blue { background: var(--blue); }
.status-purple { background: var(--purple); }
.status-amber { background: var(--amber); }
.status-green { background: var(--green); }

.event-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 11px 0;
    border-bottom: 1px solid var(--line);
    font-size: 0.63rem;
}

.event-row:last-child {
    border-bottom: 0;
}

.event-row div {
    display: flex;
    min-width: 0;
    flex-direction: column;
}

.event-row small {
    color: var(--muted);
}

.event-row > span {
    color: var(--teal-dark);
    font-weight: 700;
}

.automation-panel ul {
    display: grid;
    gap: 18px;
}

.automation-panel li {
    display: flex;
    align-items: flex-start;
    gap: 8px;
}

.automation-panel li > .material-symbols-rounded {
    color: var(--teal);
    font-size: 1rem;
}

.automation-panel li div {
    display: flex;
    flex-direction: column;
    font-size: 0.63rem;
}

.automation-panel small {
    color: var(--muted);
}

.workflow-section {
    padding: 84px 0;
    background: var(--surface-soft);
    border-block: 1px solid var(--line);
}

.section-heading {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 48px;
    margin-bottom: 48px;
}

.section-heading > div,
.section-heading > p {
    flex: 1;
}

.section-heading h2,
.savings-copy h2,
.contact-copy h2 {
    max-width: 780px;
    margin-bottom: 0;
    color: var(--navy);
    font-size: clamp(2.1rem, 3.3vw, 3.4rem);
    letter-spacing: -0.045em;
    line-height: 1.12;
}

.section-heading > p,
.centered > p,
.integrations-heading > p {
    max-width: 590px;
    margin-bottom: 0;
    color: var(--muted);
}

.workflow-list {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    margin: 0;
    padding: 0;
    list-style: none;
}

.workflow-list li {
    position: relative;
    padding: 0 18px;
    border-right: 1px solid var(--line);
}

.workflow-list li:first-child {
    padding-left: 0;
}

.workflow-list li:last-child {
    padding-right: 0;
    border-right: 0;
}

.workflow-icon {
    display: grid;
    width: 52px;
    height: 52px;
    margin-bottom: 18px;
    place-items: center;
    color: var(--teal-dark);
    background: white;
    border: 1px solid var(--line);
    border-radius: 50%;
    font-size: 1.55rem;
}

.step-number {
    color: var(--teal-dark);
    font-size: 0.7rem;
    font-weight: 800;
}

.workflow-list h3 {
    margin: 2px 0 8px;
    font-size: 1rem;
}

.workflow-list p {
    margin: 0;
    color: var(--muted);
    font-size: 0.78rem;
    line-height: 1.55;
}

.workflow-help {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
    margin-top: 34px;
    color: var(--muted);
    font-size: 0.9rem;
}

.workflow-help .material-symbols-rounded,
.workflow-help a {
    color: var(--teal-dark);
}

.workflow-help a {
    font-weight: 800;
}

.product-story {
    padding: 112px 0;
}

.centered {
    display: block;
    max-width: 810px;
    margin: 0 auto 48px;
    text-align: center;
}

.centered h2 {
    margin-inline: auto;
}

.centered > p {
    margin: 16px auto 0;
}

.story-tabs {
    display: grid;
    max-width: 900px;
    grid-template-columns: repeat(3, 1fr);
    margin: 0 auto 36px;
    border-bottom: 1px solid var(--line);
}

.story-tabs button {
    position: relative;
    padding: 18px 12px;
    color: var(--muted);
    background: transparent;
    border: 0;
    cursor: pointer;
    font-weight: 700;
}

.story-tabs button[aria-selected="true"] {
    color: var(--navy);
}

.story-tabs button[aria-selected="true"]::after {
    position: absolute;
    right: 0;
    bottom: -1px;
    left: 0;
    height: 3px;
    content: "";
    background: var(--teal);
}

.story-panel {
    display: grid;
    grid-template-columns: 0.85fr 1.15fr;
    align-items: center;
    gap: clamp(48px, 7vw, 100px);
    padding: 64px;
    background: var(--surface-tint);
    border-radius: var(--radius-lg);
}

.story-panel[hidden] {
    display: none;
}

.story-copy h3 {
    margin-bottom: 20px;
    color: var(--navy);
    font-size: clamp(2rem, 3vw, 3rem);
    letter-spacing: -0.04em;
    line-height: 1.15;
}

.story-copy > p:not(.eyebrow) {
    color: var(--muted);
}

.check-list {
    display: grid;
    gap: 12px;
    margin: 26px 0 0;
    padding: 0;
    list-style: none;
}

.check-list li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-weight: 600;
}

.check-list .material-symbols-rounded {
    margin-top: 3px;
    color: var(--teal);
}

.process-preview {
    padding: 28px;
    background: white;
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
    box-shadow: 0 18px 44px rgba(14, 32, 56, 0.1);
}

.preview-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--line);
}

.preview-heading > div {
    display: flex;
    flex-direction: column;
}

.preview-heading > div span {
    color: var(--muted);
    font-size: 0.75rem;
}

.status-pill {
    padding: 6px 10px;
    color: var(--green);
    background: #e9f7f0;
    border-radius: 100px;
    font-size: 0.7rem;
    font-weight: 700;
}

.preview-columns,
.finance-metrics {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
    margin-top: 18px;
}

.preview-columns > div,
.finance-metrics > div {
    display: flex;
    flex-direction: column;
    padding: 16px;
    background: var(--surface-soft);
    border-radius: 10px;
}

.mini-row {
    display: flex;
    justify-content: space-between;
    gap: 8px;
    margin-top: 12px;
    padding-top: 10px;
    color: var(--muted);
    border-top: 1px solid var(--line);
    font-size: 0.75rem;
}

.mini-row span {
    color: var(--green);
    font-weight: 700;
}

.preview-automation {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 18px;
    padding: 14px 16px;
    color: var(--teal-dark);
    background: var(--teal-soft);
    border-radius: 10px;
    font-size: 0.82rem;
}

.timeline-row {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 18px 0;
    border-bottom: 1px solid var(--line);
}

.timeline-row:last-child {
    border-bottom: 0;
}

.timeline-row > .material-symbols-rounded {
    color: var(--teal);
}

.timeline-row div {
    display: flex;
    flex-direction: column;
}

.timeline-row small,
.finance-metrics small {
    color: var(--muted);
}

.finance-metrics strong {
    margin: 4px 0;
    color: var(--navy);
    font-size: 1.7rem;
}

.savings-section {
    padding: 112px 0;
    color: white;
    background: var(--navy);
}

.savings-grid {
    display: grid;
    grid-template-columns: 1fr 0.9fr;
    align-items: center;
    gap: clamp(56px, 8vw, 120px);
}

.savings-copy h2 {
    margin-bottom: 22px;
    color: white;
}

.savings-copy > p:not(.eyebrow) {
    max-width: 620px;
    color: rgba(255, 255, 255, 0.68);
}

.savings-copy .eyebrow {
    color: #5ee0da;
}

.calculator {
    display: grid;
    grid-template-columns: minmax(180px, 0.7fr) minmax(360px, 1.5fr);
    gap: 12px;
    margin-top: 34px;
}

.calculator-field {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.calculator-field label {
    min-height: 40px;
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.76rem;
}

.calculator-field input {
    width: 100%;
    height: 50px;
    padding: 0 14px;
    color: white;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 8px;
}

.calculator-assumptions {
    display: grid;
    position: relative;
    grid-template-columns: 1fr 1.45fr;
    gap: 16px;
    padding: 15px 16px 12px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 8px;
}

.assumptions-label {
    position: absolute;
    top: -10px;
    left: 12px;
    padding-inline: 6px;
    color: rgba(255, 255, 255, 0.62);
    background: var(--navy);
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.calculator-assumptions div {
    display: flex;
    flex-direction: column;
}

.calculator-assumptions div + div {
    padding-left: 16px;
    border-left: 1px solid rgba(255, 255, 255, 0.15);
}

.calculator-assumptions strong {
    color: white;
    font-size: 0.92rem;
}

.calculator-assumptions div span {
    color: rgba(255, 255, 255, 0.58);
    font-size: 0.7rem;
    line-height: 1.4;
}

.savings-result {
    padding: 38px;
    color: var(--ink);
    background: white;
    border-radius: var(--radius-md);
}

.result-label {
    color: var(--teal-dark);
    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.savings-result > strong {
    display: block;
    margin: 8px 0;
    color: var(--navy);
    font-size: clamp(2.8rem, 5vw, 4.6rem);
    letter-spacing: -0.06em;
    line-height: 1;
}

.savings-result > p {
    color: var(--muted);
}

.saving-breakdown {
    display: grid;
    gap: 12px;
    margin: 28px 0;
    padding-block: 22px;
    border-block: 1px solid var(--line);
}

.saving-breakdown div {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    color: var(--muted);
}

.saving-breakdown strong {
    flex: 0 0 auto;
    color: var(--ink);
}

.integrations-section {
    padding: 112px 0;
}

.integration-groups {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    border-block: 1px solid var(--line);
}

.integration-groups > div {
    padding: 32px;
    border-right: 1px solid var(--line);
}

.integration-groups > div:last-child {
    border-right: 0;
}

.integration-groups .material-symbols-rounded {
    color: var(--teal);
    font-size: 2rem;
}

.integration-groups h3 {
    margin: 16px 0 8px;
    color: var(--navy);
}

.integration-groups p {
    margin: 0;
    color: var(--muted);
}

.contact-section {
    padding: 112px 0;
    background: var(--surface-soft);
    border-top: 1px solid var(--line);
}

.contact-grid {
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    align-items: start;
    gap: clamp(56px, 8vw, 120px);
}

.contact-copy h2 {
    margin-bottom: 22px;
}

.contact-copy > p:not(.eyebrow) {
    color: var(--muted);
}

.contact-route-list {
    display: grid;
    gap: 10px;
    margin-top: 32px;
}

.contact-route {
    display: flex;
    align-items: center;
    gap: 16px;
    width: 100%;
    padding: 18px;
    color: var(--ink);
    background: white;
    border: 1px solid var(--line);
    border-radius: 12px;
    cursor: pointer;
    text-align: left;
    transition: border 180ms ease, background 180ms ease, transform 180ms ease;
}

.contact-route:hover,
.contact-route.is-selected {
    background: var(--teal-soft);
    border-color: var(--teal);
    transform: translateX(3px);
}

.contact-route > .material-symbols-rounded {
    color: var(--teal-dark);
    font-size: 1.8rem;
}

.contact-route span:last-child {
    display: flex;
    flex-direction: column;
}

.contact-route small {
    color: var(--muted);
}

.contact-reassurance {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 18px;
    margin: 26px 0 0;
    padding: 0;
    color: var(--muted);
    font-size: 0.82rem;
    list-style: none;
}

.contact-reassurance li {
    display: flex;
    align-items: center;
    gap: 4px;
}

.contact-reassurance .material-symbols-rounded {
    color: var(--teal);
}

.contact-form-wrap {
    padding: clamp(28px, 4vw, 48px);
    background: white;
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
    box-shadow: 0 18px 48px rgba(14, 32, 56, 0.08);
}

.form-kicker {
    margin-bottom: 8px;
    color: var(--teal-dark);
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.contact-form-wrap h3 {
    margin-bottom: 28px;
    color: var(--navy);
    font-size: 1.8rem;
    letter-spacing: -0.03em;
}

.contact-form {
    display: grid;
    gap: 18px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.form-field {
    display: flex;
    flex-direction: column;
    gap: 7px;
}

.form-field label {
    color: var(--ink);
    font-size: 0.82rem;
    font-weight: 700;
}

.form-field input,
.form-field textarea {
    width: 100%;
    padding: 13px 14px;
    color: var(--ink);
    background: white;
    border: 1px solid #b8c6d0;
    border-radius: 8px;
    outline: none;
    transition: border 180ms ease, box-shadow 180ms ease;
}

.form-field input:focus,
.form-field textarea:focus {
    border-color: var(--teal);
    box-shadow: 0 0 0 3px rgba(0, 169, 165, 0.14);
}

.form-field textarea {
    min-height: 110px;
    resize: vertical;
}

.form-status,
.form-privacy {
    margin: 0;
    color: var(--muted);
    font-size: 0.78rem;
    text-align: center;
}

.form-status:not(:empty) {
    padding: 10px;
    color: var(--teal-dark);
    background: var(--teal-soft);
    border-radius: 8px;
}

.site-footer {
    padding: 64px 0 24px;
    color: rgba(255, 255, 255, 0.72);
    background: var(--navy);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 72px;
}

.footer-brand img {
    width: 112px;
    filter: brightness(1.1);
}

.footer-grid p {
    max-width: 420px;
    margin: 20px 0 0;
}

.footer-grid > div:not(:first-child) {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.footer-grid strong {
    margin-bottom: 8px;
    color: white;
}

.footer-grid a {
    text-decoration: none;
}

.footer-grid a:hover {
    color: white;
}

.footer-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 48px;
    padding-top: 22px;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    font-size: 0.78rem;
}

:focus-visible {
    outline: 3px solid #f2b84b;
    outline-offset: 3px;
}

@media (max-width: 1160px) {
    .desktop-nav {
        display: none;
    }

    .header-contact {
        display: inline-block;
    }

    .menu-toggle {
        display: inline-flex;
    }

    .hero-grid {
        grid-template-columns: 1fr;
    }

    .hero-copy {
        max-width: 760px;
    }

    .product-window {
        max-width: 900px;
        min-height: 520px;
    }

    .workflow-list {
        grid-template-columns: repeat(3, 1fr);
        gap: 36px 0;
    }

    .workflow-list li:nth-child(3) {
        border-right: 0;
    }

    .workflow-list li:nth-child(4) {
        padding-left: 0;
    }

    .integration-groups {
        grid-template-columns: repeat(2, 1fr);
    }

    .integration-groups > div:nth-child(2) {
        border-right: 0;
    }

    .integration-groups > div:nth-child(-n+2) {
        border-bottom: 1px solid var(--line);
    }
}

@media (max-width: 820px) {
    .shell {
        width: min(100% - 32px, var(--shell));
    }

    .header-inner {
        min-height: 70px;
    }

    .brand img {
        width: 84px;
        height: 42px;
    }

    .header-contact,
    .header-actions > .button {
        display: none;
    }

    .mobile-nav {
        inset: 70px 0 auto;
        max-height: calc(100vh - 70px);
    }

    .hero {
        padding: 54px 0;
    }

    h1 {
        font-size: clamp(2.7rem, 11vw, 4rem);
    }

    .hero-actions .button {
        flex: 1 1 220px;
    }

    .product-window {
        min-height: 0;
        grid-template-columns: 50px minmax(700px, 1fr);
        overflow-x: auto;
        transform: none;
    }

    .product-sidebar {
        position: sticky;
        left: 0;
        z-index: 2;
    }

    .section-heading,
    .savings-grid,
    .contact-grid {
        display: grid;
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .workflow-list {
        grid-template-columns: 1fr 1fr;
    }

    .workflow-list li,
    .workflow-list li:nth-child(3) {
        padding: 0 20px;
        border-right: 1px solid var(--line);
    }

    .workflow-list li:nth-child(even) {
        padding-right: 0;
        border-right: 0;
    }

    .workflow-list li:nth-child(odd) {
        padding-left: 0;
    }

    .story-tabs {
        display: flex;
        overflow-x: auto;
        scrollbar-width: thin;
    }

    .story-tabs button {
        min-width: 220px;
    }

    .story-panel {
        grid-template-columns: 1fr;
        padding: 36px;
    }

    .calculator {
        grid-template-columns: 1fr;
    }

    .calculator-field label {
        min-height: 0;
    }

    .calculator-assumptions {
        grid-template-columns: 1fr 1.35fr;
    }

    .contact-grid {
        gap: 48px;
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }

    .footer-grid > div:first-child {
        grid-column: 1 / -1;
    }
}

@media (max-width: 560px) {
    body {
        font-size: 15px;
    }

    .hero {
        padding-top: 44px;
    }

    h1 {
        font-size: 2.7rem;
    }

    .hero-lede {
        font-size: 1rem;
    }

    .hero-actions {
        display: grid;
    }

    .talk-link {
        align-items: flex-start;
    }

    .hero-points {
        display: grid;
        gap: 10px;
    }

    .product-window {
        margin-inline: -16px;
        border-radius: 0;
    }

    .workflow-section,
    .product-story,
    .savings-section,
    .integrations-section,
    .contact-section {
        padding: 78px 0;
    }

    .section-heading h2,
    .savings-copy h2,
    .contact-copy h2 {
        font-size: 2.3rem;
    }

    .workflow-list {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .workflow-list li,
    .workflow-list li:nth-child(3),
    .workflow-list li:nth-child(4),
    .workflow-list li:nth-child(even),
    .workflow-list li:nth-child(odd) {
        padding: 0 0 26px;
        border-right: 0;
        border-bottom: 1px solid var(--line);
    }

    .workflow-list li:last-child {
        border-bottom: 0;
    }

    .workflow-icon {
        margin-bottom: 12px;
    }

    .workflow-help {
        justify-content: flex-start;
    }

    .story-panel {
        padding: 26px 20px;
        border-radius: 18px;
    }

    .preview-columns,
    .finance-metrics {
        grid-template-columns: 1fr;
    }

    .savings-result {
        padding: 28px 22px;
    }

    .calculator-assumptions {
        grid-template-columns: 1fr;
    }

    .calculator-assumptions div + div {
        padding-top: 12px;
        padding-left: 0;
        border-top: 1px solid rgba(255, 255, 255, 0.15);
        border-left: 0;
    }

    .integration-groups {
        grid-template-columns: 1fr;
    }

    .integration-groups > div {
        border-right: 0;
        border-bottom: 1px solid var(--line);
    }

    .integration-groups > div:last-child {
        border-bottom: 0;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .contact-form-wrap {
        padding: 26px 20px;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 36px;
    }

    .footer-grid > div:first-child {
        grid-column: auto;
    }

    .footer-bottom {
        align-items: flex-start;
        flex-direction: column;
        gap: 8px;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        transition-duration: 0.01ms !important;
    }
}
