:root {
    --paper: #ffffff;
    --paper-deep: #fffaf5;
    --card: #ffffff;

    --ink: #2d1b12;
    --ink-soft: #7a6a5d;
    --muted: #a29385;

    --rule: #f2e6da;
    --rule-soft: #fdf7f2;

    --purple: #f97316;
    --purple-deep: #ea580c;
    --purple-soft: #fff7ed;

    --brass: #fb923c;
    --brass-deep: #f97316;
    --brass-soft: #ffedd5;

    --rose: #fdba74;
    --mint: #fb923c;
    --sky: #fed7aa;

    --shadow: 0 20px 40px rgba(249, 115, 22, 0.08);
    --shadow-sm: 0 8px 24px rgba(249, 115, 22, 0.12);

    --r: 12px;
    --rl: 20px;
    --rx: 32px;

    --display: 'Poppins', sans-serif;
    --body-f: 'Poppins', sans-serif;
    --mono: 'Poppins', sans-serif;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    min-width: 320px;
    overflow-x: hidden;
    background: var(--paper);
    color: var(--ink);
    font-family: var(--body-f);
    font-size: 16px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

body.lock {
    overflow: hidden;
}

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

a {
    color: inherit;
    text-decoration: none;
}

ul {
    list-style: none;
}

button {
    font: inherit;
    cursor: pointer;
    background: none;
    border: none;
    color: inherit;
}

input,
select,
textarea {
    font: inherit;
    color: inherit;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 28px;
}

em {
    font-style: normal;
    color: var(--purple);
}

.title {
    font-family: var(--display);
    font-weight: 700;
    font-size: clamp(2.2rem, 3.8vw, 3.2rem);
    line-height: 1.2;
    letter-spacing: -0.02em;
    color: var(--ink);
}

.copy {
    color: var(--ink-soft);
    font-size: 1.05rem;
    max-width: 60ch;
    margin: 16px auto 0;
    /* Centered by default for this layout */
}

/* Eyebrow / Badges - Styled like the reference "Welcome To Analyx" pill */
.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    font-size: .8rem;
    font-weight: 500;
    color: var(--ink-soft);
    background: var(--rule-soft);
    padding: 6px 16px 6px 6px;
    border-radius: 50px;
    margin-bottom: 20px;
}

.eyebrow::before {
    content: "\f0f3";
    /* Bell icon to match the style */
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--purple);
    color: #fff;
    display: grid;
    place-items: center;
    font-size: 0.8rem;
}

.eyebrow.brass::before {
    background: var(--brass);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-weight: 600;
    font-size: .95rem;
    padding: 14px 28px;
    border-radius: 12px;
    /* Soft rounded rectangle */
    transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
    white-space: nowrap;
}

/* Default Primary is Purple (Header CTA) */
.btn-primary {
    background: var(--purple);
    color: #fff;
    box-shadow: 0 8px 20px rgba(126, 87, 194, 0.25);
    border-radius: 999px;
    /* Pill shape for navbar */
}

.btn-primary:hover {
    background: var(--purple-deep);
    transform: translateY(-2px);
}

/* Hero Primary is Orange (Match Reference) */
.hero .btn-primary {
    background: var(--brass);
    box-shadow: 0 8px 20px rgba(255, 152, 0, 0.25);
    border-radius: 12px;
}

.hero .btn-primary:hover {
    background: var(--brass-deep);
}

.btn-outline {
    background: transparent;
    color: var(--ink);
    border: 1px solid var(--rule);
    border-radius: 12px;
}

.btn-outline:hover {
    border-color: var(--ink);
    background: var(--ink);
    color: #fff;
    transform: translateY(-2px);
}

.btn-brass {
    background: var(--brass);
    color: #fff;
    box-shadow: 0 8px 20px rgba(255, 152, 0, 0.25);
}

.btn-brass:hover {
    background: var(--brass-deep);
    transform: translateY(-2px);
}

/* Header */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 60;
    padding: 20px 0;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid transparent;
    transition: all .25s ease;
}

.header.scrolled {
    padding: 14px 0;
    background: rgba(255, 255, 255, 0.98);
    border-bottom: 1px solid var(--rule-soft);
    box-shadow: var(--shadow-sm);
}

.header .nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.brand {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
    font-size: 1.3rem;
    color: var(--ink);
    letter-spacing: -0.02em;
}

.seal {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    background: var(--purple);
    color: #fff;
    display: grid;
    place-items: center;
    font-size: .9rem;
}

nav {
    display: flex;
    align-items: center;
    gap: 40px;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 36px;
    font-size: .95rem;
    font-weight: 500;
    color: var(--ink-soft);
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--ink);
    font-weight: 600;
}

.nav-actions {
    display: none;
}

.menu-btn {
    font-size: 1.5rem;
    color: var(--ink);
}

/* Mobile Menu */
.mobile {
    position: fixed;
    inset: 0;
    background: rgba(30, 30, 45, .5);
    backdrop-filter: blur(8px);
    z-index: 90;
    display: none;
}

.mobile.show {
    display: block;
}

.mobile-box {
    position: absolute;
    top: 20px;
    right: 20px;
    left: 20px;
    background: #fff;
    border-radius: var(--rl);
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    box-shadow: var(--shadow);
}

.mobile-box a {
    display: flex;
    justify-content: space-between;
    padding: 14px 12px;
    border-bottom: 1px solid var(--rule-soft);
    font-weight: 500;
    color: var(--ink);
}

.mobile-box a.btn {
    justify-content: center;
    margin-top: 16px;
    border-bottom: none;
    color: #fff;
}

/* Hero */
.hero {
    padding: 160px 0 80px;
    position: relative;
    background-color: var(--paper);
    background-image: radial-gradient(var(--rule) 1.5px, transparent 1.5px);
    background-size: 28px 28px;
    overflow: hidden;
}

/* Realigned to a centered flex column to match reference */
.hero-layout {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    position: relative;
    z-index: 1;
}

.hero-title {
    max-width: 500px;
    margin-left: 18%;
}

.hero-copy{
    max-width: 700px;
    margin-left: 5%;
}

.hero-actions {
    display: flex;
    justify-content: center;
    gap: 16px;
    margin: 32px 0 50px;
    flex-wrap: wrap;
}

.hero-summary {
    display: flex;
    justify-content: center;
    gap: 40px;
    flex-wrap: wrap;
    margin-bottom: 50px;
}

.hero-summary div {
    background: #fff;
    border: 1px solid var(--rule-soft);
    border-radius: 20px;
    padding: 20px 30px;
    box-shadow: var(--shadow-sm);
}

.hero-summary b {
    font-size: 2.2rem;
    color: var(--purple);
    display: block;
    line-height: 1.1;
}

.hero-summary span {
    font-size: .85rem;
    font-weight: 500;
    color: var(--ink-soft);
}

/* Hero statement card (styled as a centered dashboard mockup) */
.statement {
    background: #fff;
    border-radius: 24px;
    padding: 40px;
    box-shadow: 0 24px 50px rgba(126, 87, 194, 0.08);
    border: 1px solid var(--rule-soft);
    max-width: 800px;
    width: 100%;
    text-align: left;
}

.statement-head h3 {
    font-size: 1.4rem;
    margin-bottom: 24px;
}

.statement-rows {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

.statement-row {
    display: flex;
    align-items: center;
    gap: 16px;
    background: var(--paper-deep);
    border-radius: 16px;
    width: 350px;
    padding: 16px;
    transition: transform .2s ease;
}

.statement-row:hover {
    transform: translateY(-3px);
}

.row-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: var(--purple-soft);
    color: var(--purple);
    display: grid;
    place-items: center;
    flex-shrink: 0;
    font-size: 1.1rem;
}

.row-body {
    flex: 1;
    min-width: 0;
}

.row-body b {
    display: block;
    font-size: 1rem;
    color: var(--ink);
    margin-bottom: 2px;
}

.row-body p {
    font-size: .8rem;
    color: var(--ink-soft);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.row-tag {
    font-size: .7rem;
    font-weight: 500;
    color: var(--purple);
    background: var(--purple-soft);
    padding: 4px 10px;
    border-radius: 8px;
    flex-shrink: 0;
}

/* Ticker - Styled as brand logos */
.ticker {
    border-top: none;
    border-bottom: 1px solid var(--rule-soft);
    overflow: hidden;
    padding: 40px 0;
    background: var(--paper);
}

.ticker-track {
    display: flex;
    gap: 60px;
    width: max-content;
    animation: scroll 34s linear infinite;
    font-weight: 700;
    font-size: 1.2rem;
    color: #b5b5c3;
    text-transform: uppercase;
    letter-spacing: .05em;
}

.ticker-track span {
    display: flex;
    align-items: center;
    gap: 12px;
}

.ticker-track i {
    font-size: 1.4rem;
    color: #d0d0dc;
}

@keyframes scroll {
    to {
        transform: translateX(-50%);
    }
}

/* Sections General */
.section {
    padding: 100px 0;
}

.section:nth-child(even) {
    background-color: var(--paper-deep);
    background-image: radial-gradient(var(--rule) 1.5px, transparent 1.5px);
    background-size: 28px 28px;
}

.rule-top {
    border-top: 1px solid transparent;
}

/* Section Headings - Centered to match reference */
.section-head {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    max-width: 800px;
    margin: 0 auto 60px;
}

/* About */
.about-layout {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 60px;
    align-items: center;
}

/* Styled to look like the tinted card in the reference */
.about-card {
    background: var(--purple-soft);
    color: var(--ink);
    border-radius: var(--rx);
    padding: 40px;
    border: 1px solid rgba(126, 87, 194, 0.1);
}

.about-card .eyebrow {
    background: #fff;
    color: var(--purple);
    border: 1px solid rgba(126, 87, 194, 0.1);
}

.about-card h3 {
    font-size: 1.8rem;
    margin: 18px 0 16px;
    line-height: 1.3;
}

.about-card p {
    color: var(--ink-soft);
    font-size: 1rem;
}

.metrics {
    display: flex;
    gap: 40px;
    margin: 30px 0 40px;
    flex-wrap: wrap;
}

.metric b {
    font-size: 1.2rem;
    color: var(--purple);
    display: block;
    line-height: 1.2;
}

.metric span {
    font-size: .9rem;
    color: var(--ink-soft);
}

.about-lines {
    display: flex;
    flex-direction: row;
    gap: 24px;
    padding: 10px 180px;
}

.about-line {
    display: flex;
    gap: 20px;
    align-items: flex-start;
}

.about-line:first-child {
    padding-top: 0;
}

.num {
    font-size: .9rem;
    color: var(--purple);
    background: var(--purple-soft);
    font-weight: 600;
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    border-radius: 12px;
    display: grid;
    place-items: center;
}

.about-line h3 {
    font-size: 1.1rem;
    margin-bottom: 4px;
}

.about-line p {
    color: var(--ink-soft);
    font-size: .95rem;
}

/* Services Grid */
.service-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.service-card {
    text-align: left;
    background: #fff;
    border: 1px solid var(--rule-soft);
    border-radius: 24px;
    padding: 32px 24px;
    position: relative;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.02);
    transition: all .3s ease;
}

.service-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-sm);
    border-color: rgba(126, 87, 194, 0.2);
}

.service-card.active {
    border-color: var(--purple);
    box-shadow: var(--shadow-sm);
}

.service-open {
    position: absolute;
    top: 24px;
    right: 24px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--paper-deep);
    display: grid;
    place-items: center;
    font-size: .8rem;
    color: var(--ink-soft);
    transition: all 0.2s;
}

.service-card:hover .service-open {
    background: var(--purple);
    color: #fff;
}

.service-card.active .service-open {
    background: var(--purple);
    color: #fff;
    transform: rotate(45deg);
}

.service-index {
    display: none;
}

.service-icon {
    width: 56px;
    height: 56px;
    border-radius: 16px;
    background: var(--purple-soft);
    color: var(--purple);
    display: grid;
    place-items: center;
    font-size: 1.4rem;
    margin-bottom: 20px;
    transition: all 0.3s;
}

.service-card.active .service-icon {
    background: var(--purple);
    color: #fff;
}

.service-card h3 {
    font-size: 1.15rem;
    margin-bottom: 10px;
}

.service-card p {
    font-size: .9rem;
    color: var(--ink-soft);
}

.service-drawer {
    display: none;
    margin-top: 32px;
    background: #fff;
    border-radius: var(--rx);
    padding: 40px;
    grid-template-columns: .8fr 1.2fr;
    gap: 40px;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--rule-soft);
}

.service-drawer.show {
    display: grid;
}

.drawer-side .eyebrow {
    margin-bottom: 16px;
}

.drawer-side h3 {
    font-size: 1.8rem;
    margin-bottom: 12px;
}

.drawer-side p {
    color: var(--ink-soft);
    font-size: 1rem;
    margin-bottom: 24px;
}

.subservices {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

.subservice {
    text-align: left;
    background: var(--paper-deep);
    border-radius: 16px;
    padding: 20px;
    border: 1px solid transparent;
    transition: all .2s ease;
}

.subservice:hover {
    transform: translateY(-3px);
    background: #fff;
    border-color: rgba(126, 87, 194, 0.2);
    box-shadow: 0 10px 20px rgba(126, 87, 194, 0.05);
}

.subservice i {
    color: var(--purple);
    font-size: 1.2rem;
    margin-bottom: 12px;
    display: block;
}

.subservice h4 {
    font-size: 1.05rem;
    margin-bottom: 6px;
}

.subservice p {
    font-size: .85rem;
    color: var(--ink-soft);
}

/* Process */
.process-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.process-layout .section-head {
    margin-bottom: 0;
    text-align: left;
    align-items: flex-start;
    max-width: 100%;
}

.process-layout .copy {
    margin: 16px 0 0 0;
}

.timeline {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.step {
    display: grid;
    grid-template-columns: 56px 1fr 40px;
    gap: 20px;
    align-items: center;
    background: #fff;
    border: 1px solid var(--rule-soft);
    border-radius: 20px;
    padding: 24px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.02);
    transition: transform 0.3s;
}

.step:hover {
    transform: translateX(5px);
    border-color: rgba(126, 87, 194, 0.2);
}

.step-num {
    font-weight: 600;
    color: var(--purple);
    background: var(--purple-soft);
    font-size: 1.2rem;
    width: 56px;
    height: 56px;
    border-radius: 16px;
    display: grid;
    place-items: center;
}

.step h3 {
    font-size: 1.15rem;
    margin-bottom: 4px;
}

.step p {
    font-size: .95rem;
    color: var(--ink-soft);
}

.step>i {
    color: var(--purple);
    font-size: 1.2rem;
    justify-self: center;
    opacity: 0.5;
}

/* Why */
.why-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.why-card {
    background: #fff;
    border: 1px solid var(--rule-soft);
    border-radius: 24px;
    padding: 40px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.02);
    transition: transform 0.3s;
}

.why-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-sm);
}

.why-card.primary {
    background: var(--purple-soft);
    border-color: rgba(126, 87, 194, 0.1);
}

.why-card.primary p {
    color: var(--ink-soft);
}

.why-icon {
    width: 56px;
    height: 56px;
    border-radius: 16px;
    background: var(--purple-soft);
    color: var(--purple);
    display: grid;
    place-items: center;
    font-size: 1.4rem;
    margin-bottom: 24px;
}

.why-card.primary .why-icon {
    background: #fff;
}

.why-card h3 {
    font-size: 1.3rem;
    margin-bottom: 12px;
    line-height: 1.3;
}

.why-card p {
    color: var(--ink-soft);
    font-size: .95rem;
}

/* FAQ */
.faq-layout {
    display: grid;
    grid-template-columns: .8fr 1.2fr;
    gap: 60px;
}

.faq-side.section-head {
    text-align: left;
    align-items: flex-start;
    margin: 0;
}

.faq-side .copy {
    margin-left: 0;
}

.faq-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.faq-item {
    background: #fff;
    border: 1px solid var(--rule-soft);
    border-radius: 20px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.02);
    overflow: hidden;
}

.faq-q {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 24px;
    font-weight: 600;
    font-size: 1.05rem;
    text-align: left;
}

.faq-q i {
    color: var(--purple);
    transition: transform .3s ease;
    flex-shrink: 0;
    margin-left: 14px;
    background: var(--purple-soft);
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    font-size: 0.8rem;
}

.faq-item.open .faq-q i {
    transform: rotate(45deg);
    background: var(--purple);
    color: #fff;
}

.faq-a {
    max-height: 0;
    overflow: hidden;
    transition: max-height .3s ease;
}

.faq-item.open .faq-a {
    max-height: 260px;
}

.faq-a div {
    padding: 0 24px 24px;
    color: var(--ink-soft);
    font-size: .95rem;
}

/* Contact & Newsletter */
.contact-shell {
    display: grid;
    grid-template-columns: .8fr 1.2fr;
    gap: 60px;
}

.contact-info .section-head {
    align-items: flex-start;
    text-align: left;
    margin: 0;
}

.contact-info .copy {
    margin-left: 0;
}

.contact-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-top: 32px;
    font-size: .95rem;
}

.contact-list a,
.contact-list div {
    display: flex;
    align-items: center;
    gap: 16px;
    color: var(--ink-soft);
    font-weight: 500;
}

.contact-list i {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: var(--purple-soft);
    color: var(--purple);
    display: grid;
    place-items: center;
    flex-shrink: 0;
    font-size: 1.1rem;
}

.contact-form,
.newsletter-form {
    background: #fff;
    border-radius: 24px;
    padding: 40px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.04);
    border: 1px solid var(--rule-soft);
}

.contact-form h3,
.newsletter-form h3 {
    font-size: 1.5rem;
    margin-bottom: 8px;
}

.contact-form>p,
.newsletter-form>p {
    color: var(--ink-soft);
    font-size: .95rem;
    margin-bottom: 24px;
}

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

.field {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 20px;
}

.field label {
    font-size: .85rem;
    font-weight: 500;
    color: var(--ink);
}

.field input,
.field select,
.field textarea {
    background: #fff;
    border: 1px solid #e2e2ea;
    border-radius: 12px;
    padding: 14px 16px;
    font-size: .95rem;
    transition: all 0.2s;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
    outline: none;
    border-color: var(--purple);
    box-shadow: 0 0 0 3px rgba(126, 87, 194, 0.1);
}

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

.consent {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    font-size: .85rem;
    color: var(--ink-soft);
    margin-bottom: 24px;
}

.consent input {
    margin-top: 5px;
}

.unsub-btn {
    display: block;
    text-align: center;
    font-size: .85rem;
    color: var(--ink-soft);
    text-decoration: underline;
    margin-top: 16px;
}

.newsletter-box {
    background: #fff;
    border-radius: var(--rx);
    padding: 60px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.05);
    border: 1px solid var(--rule-soft);
}

.newsletter-points {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-top: 32px;
}

.newsletter-points span {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: .95rem;
    color: var(--ink-soft);
}

.newsletter-points i {
    color: var(--purple);
    background: var(--purple-soft);
    padding: 4px;
    border-radius: 50%;
    font-size: 0.7rem;
}

.newsletter-form {
    box-shadow: none;
    border: none;
    padding: 0;
    background: transparent;
}

/* Footer */
footer {
    background: var(--paper-deep);
    color: var(--ink-soft);
    padding: 80px 0 40px;
    border-top: 1px solid var(--rule);
}

footer .brand {
    color: var(--ink);
}

.footer-copy {
    margin-top: 20px;
    max-width: 38ch;
    font-size: .95rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr 1fr;
    gap: 40px;
    padding-bottom: 60px;
    border-bottom: 1px solid var(--rule);
}

.footer-title {
    font-weight: 600;
    color: var(--ink);
    font-size: 1.05rem;
    margin-bottom: 20px;
}

.footer-grid ul {
    display: flex;
    flex-direction: column;
    gap: 14px;
    font-size: .95rem;
}

.footer-grid a:hover {
    color: var(--purple);
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;
    padding-top: 30px;
    font-size: .85rem;
}

/* Overlays / Modals */
.overlay {
    position: fixed;
    inset: 0;
    background: rgba(30, 30, 45, .6);
    backdrop-filter: blur(4px);
    z-index: 100;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 24px;
}

.overlay.show {
    display: flex;
}

.modal {
    background: #fff;
    border-radius: 24px;
    padding: 40px;
    max-width: 500px;
    width: 100%;
    max-height: 85vh;
    overflow-y: auto;
    position: relative;
    box-shadow: 0 24px 50px rgba(0, 0, 0, 0.1);
}

.modal.wide {
    max-width: 720px;
}

.modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--paper-deep);
    color: var(--ink);
    display: grid;
    place-items: center;
    transition: background 0.2s;
}

.modal-close:hover {
    background: var(--rule);
}

.modal h3 {
    font-size: 1.6rem;
    margin-bottom: 12px;
    padding-right: 40px;
}

.modal-intro {
    color: var(--ink-soft);
    font-size: .95rem;
    margin-bottom: 24px;
}

.legal h4 {
    font-weight: 600;
    font-size: 1.1rem;
    margin: 24px 0 8px;
}

.legal p {
    font-size: .95rem;
    color: var(--ink-soft);
    margin-bottom: 12px;
}

.legal-meta {
    font-size: .85rem;
    color: var(--muted);
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--rule);
}

/* Toasts */
.toasts {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 200;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.toast {
    background: var(--ink);
    color: #fff;
    padding: 16px 24px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: .95rem;
    box-shadow: var(--shadow-sm);
    animation: rise .3s ease;
}

.toast i {
    color: var(--mint);
}

@keyframes rise {
    from {
        opacity: 0;
        transform: translateY(15px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Reveal animation */
.reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity .6s ease, transform .6s ease;
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Responsive */
@media (max-width: 980px) {

    .about-layout,
    .process-layout,
    .faq-layout,
    .contact-shell,
    .newsletter-box {
        grid-template-columns: 1fr;
    }

    .service-grid,
    .subservices,
    .statement-rows {
        grid-template-columns: repeat(2, 1fr);
    }

    nav .nav-links {
        display: none;
    }

    .nav-actions {
        display: block;
    }

    .header .btn-primary {
        display: none;
    }

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

@media (max-width: 640px) {

    .service-grid,
    .subservices,
    .form-row,
    .why-grid,
    .statement-rows {
        grid-template-columns: 1fr;
    }

    .service-drawer {
        grid-template-columns: 1fr;
        padding: 24px;
    }

    .newsletter-box {
        padding: 30px;
    }

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

    .hero-summary {
        flex-direction: column;
        gap: 16px;
    }
}

@media (prefers-reduced-motion: reduce) {
    * {
        animation: none !important;
        transition: none !important;
    }
}
/* =====================================================
   MULTI-PAGE ADDITIONS
   ===================================================== */

.skip-link {
    position: fixed;
    top: -80px;
    left: 16px;
    z-index: 500;
    padding: 11px 20px;
    border-radius: 999px;
    background: var(--ink);
    color: #fff;
    font-size: .85rem;
    font-weight: 600;
}

.skip-link:focus {
    top: 12px;
}

main:focus {
    outline: none;
}

/* Fixed header: inner pages start lower, anchors land clear of it */
.page-top {
    padding-top: 150px;
}

section[id] {
    scroll-margin-top: 80px;
}

/* Cards that are links */
a.service-card {
    display: block;
    color: inherit;
}

.ov-cta {
    margin-top: 44px;
    text-align: center;
}

/* ---------- Call-to-action band ---------- */
.cta-band {
    padding-top: 0;
}

.cta-box {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 28px;
    padding: clamp(30px, 5vw, 56px);
    border: 1px solid var(--rule);
    border-radius: var(--rx);
    background: var(--purple-soft);
}

.cta-box .title {
    font-size: clamp(1.7rem, 3vw, 2.4rem);
}

.cta-box .copy {
    margin: 12px 0 0;
    max-width: 480px;
}

.cta-box .title em {
    color: var(--purple-deep);
}

.cta-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

/* ---------- Subscribe / unsubscribe ---------- */
.newsletter.page-top {
    padding-bottom: 110px;
}

.consent a,
.unsub-hint a {
    color: var(--purple-deep);
    text-decoration: underline;
}

.narrow {
    max-width: 640px;
}

.unsub-page {
    padding-bottom: 110px;
}

.unsub-page .contact-form,
.unsub-page .unsub-done {
    margin-top: 0;
}

.unsub-hint {
    margin-top: 16px;
    color: var(--ink-soft);
    font-size: .8rem;
    line-height: 1.7;
}

.unsub-done[hidden] {
    display: none;
}

.unsub-done {
    text-align: center;
}

.unsub-done h3 {
    margin: 18px 0 10px;
}

.unsub-done p {
    color: var(--ink-soft);
    line-height: 1.8;
}

.done-mark {
    width: 64px;
    height: 64px;
    margin: 0 auto;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: var(--purple-soft);
    color: var(--purple-deep);
    font-size: 1.4rem;
}

.done-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
    margin-top: 24px;
}

/* ---------- Legal pages ---------- */
.legal-layout {
    display: grid;
    grid-template-columns: 270px minmax(0, 1fr);
    gap: 28px;
    align-items: start;
}

.legal-toc {
    position: sticky;
    top: 100px;
    padding: 26px;
    border: 1px solid var(--rule);
    border-radius: var(--rl);
    background: #fff;
    box-shadow: var(--shadow-sm);
}

.legal-toc b {
    display: block;
    margin-bottom: 14px;
    color: var(--purple-deep);
    font-size: .72rem;
    font-weight: 600;
    letter-spacing: 1.5px;
    text-transform: uppercase;
}

.legal-toc ol {
    list-style: none;
    margin: 0 0 16px;
    padding: 0;
}

.legal-toc ol a {
    display: block;
    padding: 8px 10px;
    border-radius: 10px;
    color: var(--ink-soft);
    font-size: .88rem;
    font-weight: 500;
    transition: .2s;
}

.legal-toc ol a:hover {
    background: var(--purple-soft);
    color: var(--ink);
}

.toc-other {
    color: var(--ink);
    font-size: .88rem;
    font-weight: 600;
}

.toc-other i {
    margin-left: 6px;
    color: var(--purple);
}

.legal-doc {
    padding: clamp(24px, 4vw, 52px);
    border: 1px solid var(--rule);
    border-radius: var(--rx);
    background: #fff;
    box-shadow: var(--shadow);
}

.legal-doc .legal h4 {
    scroll-margin-top: 100px;
}

.legal-doc .legal a {
    color: var(--purple-deep);
    font-weight: 600;
    text-decoration: underline;
}

@media (max-width: 900px) {
    .legal-layout {
        grid-template-columns: 1fr;
    }

    .legal-toc {
        position: static;
    }
}

@media (max-width: 760px) {
    .page-top {
        padding-top: 120px;
    }
}

/* ---------- Mobile fixes (the single file overflowed sideways below ~980px) ---------- */
@media (max-width: 980px) {
    .about-lines {
        flex-direction: column;
        padding: 10px 0;
    }

    .about-layout,
    .contact-shell,
    .legal-layout {
        grid-template-columns: minmax(0, 1fr);
    }

    .contact-list a,
    .contact-list div {
        overflow-wrap: anywhere;
    }
}

@media (max-width: 640px) {
    .form-row {
        grid-template-columns: minmax(0, 1fr);
    }
}

.field input,
.field select,
.field textarea {
    min-width: 0;
    max-width: 100%;
}

.legal-doc p,
.legal-doc li,
.legal-doc a {
    overflow-wrap: anywhere;
}
