/* Marketing home (index.php default page) */

body {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

body.modal-open {
    overflow: hidden;
}

footer {
    margin-top: 40px;
}

/* —— Hero —— */
.marketing-hero {
    padding: 50px 0;
}

.marketing-hero__title {
    font-size: 3rem;
    margin-bottom: 24px;
}

.marketing-hero__lead {
    font-size: 1.25rem;
    max-width: 650px;
    margin: 0 auto 40px;
    color: var(--text-body);
}

.hero-lead-form {
    display: flex;
    justify-content: center;
    gap: 10px;
    max-width: 550px;
    margin: 0 auto 16px;
    flex-wrap: wrap;
}

.hero-lead-form__input {
    padding: 14px 20px;
    border: 1px solid #D1D5DB;
    border-radius: var(--radius-md);
    flex-grow: 1;
    max-width: 350px;
    font-size: 1rem;
}

.hero-lead-form__submit {
    padding: 14px 28px;
}

.demo-trigger-wrap {
    text-align: center;
    margin-bottom: 40px;
}

.demo-trigger {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    background: #F0F9FA;
    border: 1px solid #0E7C86;
    border-radius: 20px;
    color: #0E7C86;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.2s ease;
}

.demo-trigger:hover {
    background: #E0F2F3;
    transform: translateY(-1px);
}

.demo-trigger__icon {
    flex-shrink: 0;
}

.demo-trigger__arrow {
    flex-shrink: 0;
    margin-left: 2px;
}

.hero-preview-result {
    max-width: 720px;
    margin: 0 auto;
    text-align: left;
}

.hero-preview {
    margin-top: 60px;
    background: var(--bg-off-white);
    border: 1px solid #E5E7EB;
    border-radius: var(--radius-lg);
    padding: 20px;
    box-shadow: var(--shadow-md);
    height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    box-sizing: border-box;
    max-width: 100%;
}

.hero-preview__video {
    width: 100%;
    max-width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: var(--radius-md);
}

/* —— Process steps —— */
.process-section {
    padding: 96px 0;
    background: var(--bg-off-white);
}

.process-section__title {
    font-size: 2.25rem;
    margin-bottom: 12px;
}

.process-section__lead {
    font-size: 1.1rem;
    color: var(--text-body);
    max-width: 780px;
    margin: 0 auto 10px;
}

.process-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 24px;
    margin-top: 40px;
}

@media (max-width: 1024px) {
    .process-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 640px) {
    .process-grid { grid-template-columns: 1fr; gap: 16px; }
}

.step-card {
    position: relative;
    padding: 24px;
    background: var(--bg-white);
    border: 1px solid #E5E7EB;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
    height: 100%;
    text-align: left;
}

.step-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-md);
    border-color: var(--primary);
}

.step-card::after {
    content: "";
    position: absolute;
    top: 50%;
    right: -18px;
    width: 36px;
    height: 2px;
    background: #CFD8DC;
    transform: translateY(-50%);
    transition: background 0.25s ease, opacity 0.25s ease;
}

.step-card::before {
    content: "";
    position: absolute;
    top: 50%;
    right: -22px;
    width: 0;
    height: 0;
    border-top: 6px solid transparent;
    border-bottom: 6px solid transparent;
    border-left: 8px solid #CFD8DC;
    transform: translateY(-50%);
    transition: border-left-color 0.25s ease, opacity 0.25s ease;
}

.process-grid .step-card:last-child::after,
.process-grid .step-card:last-child::before {
    display: none;
}

.step-card:hover::after { background: var(--primary); }
.step-card:hover::before { border-left-color: var(--primary); }

@media (max-width: 1024px) {
    .step-card::after { width: 22px; right: -12px; }
    .step-card::before { right: -14px; }
}

@media (max-width: 640px) {
    .step-card::after,
    .step-card::before { display: none; }
}

.step-icon {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
}

.step-icon-circle {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: var(--accent-soft);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    border: 1px solid rgba(14, 124, 134, 0.12);
}

.step-icon svg {
    width: 28px;
    height: 28px;
    stroke: currentColor;
    fill: none;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.step-badge {
    position: absolute;
    top: -6px;
    right: -6px;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: var(--primary);
    color: white;
    font-size: 0.75rem;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}

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

.step-card p {
    color: var(--text-body);
    font-size: 0.95rem;
}

/* —— Shared section helpers —— */
.section-intro {
    max-width: 700px;
    margin: 0 auto 60px;
}

.section-title {
    font-size: 2.25rem;
    margin-bottom: 16px;
}

.section-title--lg {
    margin-bottom: 20px;
}

.feature-card__blurb {
    font-size: 0.95rem;
    margin-bottom: 16px;
}

.grid-2--centered {
    align-items: center;
}

.chip--accent {
    background: var(--accent-soft);
    color: var(--primary);
}

.feature-copy {
    font-size: 1.1rem;
    color: var(--text-body);
    margin-bottom: 30px;
}

.feature-block {
    margin-bottom: 20px;
}

.feature-block--spaced {
    margin-bottom: 30px;
}

.feature-block__heading {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
}

.feature-block__heading .icon-inline {
    color: var(--primary);
}

.feature-block__heading .icon-inline--sheets {
    color: #0F9D58;
}

.feature-block__heading .icon-inline--gmail {
    color: #EA4335;
}

.feature-block__body {
    color: var(--text-body);
    font-size: 0.95rem;
    padding-left: 30px;
}

.info-btn {
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
    display: inline-flex;
    align-items: center;
    color: var(--text-body);
    opacity: 0.7;
    transition: opacity 0.2s;
}

.info-btn:hover {
    opacity: 1;
}

/* —— Perception / workflow visual panels —— */
.perception-panel {
    background: var(--accent-soft);
    height: 450px;
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #C8E6C9;
    padding: 40px;
    box-shadow: var(--shadow-md);
}

.perception-panel__inner {
    text-align: center;
}

.perception-panel__title {
    color: var(--primary-dark);
    margin-bottom: 10px;
}

.perception-panel__score {
    font-size: 3rem;
    font-weight: 800;
    color: var(--primary);
    margin-bottom: 20px;
}

.perception-panel__sentiment {
    color: var(--text-body);
}

.perception-panel__note {
    font-size: 0.85rem;
    color: var(--text-light);
}

.workflow-panel {
    background: var(--bg-off-white);
    border: 1px solid #E5E7EB;
    border-radius: var(--radius-lg);
    height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.workflow-panel__inner {
    text-align: center;
}

.workflow-panel__icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 10px;
    color: var(--primary);
}

.workflow-panel__title {
    font-weight: 600;
    color: var(--text-heading);
}

.workflow-panel__meta {
    font-size: 0.8rem;
    color: var(--text-light);
}

/* —— Ethics —— */
.ethics-section {
    padding: 96px 0;
    background-color: var(--bg-off-white);
}

.ethics-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    text-align: center;
}

.ethics-section__title {
    font-size: 2.25rem;
    color: var(--text-heading);
    margin-bottom: 16px;
}

.ethics-section__lead {
    font-size: 1.15rem;
    color: var(--text-body);
    max-width: 800px;
    margin: 0 auto;
}

.ethics-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.ethics-pillar {
    background: #ffffff;
    padding: 32px;
    border: 1px solid #F3F4F6;
    border-radius: var(--radius-md);
    border-top: 4px solid var(--primary);
    text-align: left;
    box-shadow: 0 1px 2px 0 rgba(0,0,0,0.05);
    height: 100%;
    transition: 0.3s;
}

.ethics-pillar:hover {
    border-color: var(--primary);
    box-shadow: 0 4px 6px -1px rgba(0,0,0,0.1);
    transform: translateY(-2px);
}

.ethics-pillar .feature-icon {
    margin-bottom: 16px;
}

.ethics-pillar__text {
    font-size: 0.95rem;
    color: var(--text-body);
    margin-bottom: 16px;
}

.ethics-footer {
    margin-top: 40px;
    font-size: 0.9rem;
    color: var(--text-body);
}

.ethics-footer__link {
    color: var(--primary);
    font-weight: 600;
}

/* —— CTA band —— */
.cta-band {
    padding-bottom: 20px;
}

.cta-band__inner {
    background: var(--primary);
    color: white;
    border-radius: var(--radius-lg);
    padding: 60px 40px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.cta-band__title {
    color: white;
    margin-bottom: 16px;
}

.cta-band__lead {
    max-width: 600px;
    margin-bottom: 32px;
    color: rgba(255, 255, 255, 0.9);
}

.cta-band__actions {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    justify-content: center;
}

.btn--on-primary {
    background: white;
    color: var(--primary);
}

.btn--outline-on-primary {
    border: 1px solid rgba(255, 255, 255, 0.5);
    color: white;
}

/* —— Gmail info modal —— */
.gmail-info-modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    overflow: auto;
}

.gmail-info-modal.is-open {
    display: block;
}

.gmail-info-modal__dialog {
    background-color: #fefefe;
    margin: 5% auto;
    padding: 0;
    border-radius: 12px;
    width: 90%;
    max-width: 600px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    position: relative;
}

.gmail-info-modal__header {
    padding: 24px 24px 16px;
    border-bottom: 1px solid #e5e7eb;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.gmail-info-modal__title {
    margin: 0;
    font-size: 1.5rem;
    color: var(--text-heading);
    display: flex;
    align-items: center;
    gap: 10px;
}

.gmail-info-modal__title-icon {
    color: #EA4335;
    width: 24px;
    height: 24px;
}

.gmail-info-modal__close {
    background: none;
    border: none;
    font-size: 28px;
    font-weight: bold;
    color: #999;
    cursor: pointer;
    padding: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    transition: background 0.2s, color 0.2s;
}

.gmail-info-modal__close:hover {
    background: #f3f4f6;
    color: #000;
}

.gmail-info-modal__body {
    padding: 24px;
}

.gmail-info-modal__intro {
    margin: 0 0 16px 0;
    color: var(--text-body);
    line-height: 1.7;
    font-size: 1rem;
}

.gmail-info-modal__callout {
    padding: 16px;
    background: #F9FAFB;
    border-radius: 8px;
    margin-bottom: 16px;
}

.gmail-info-modal__callout--last {
    margin-bottom: 20px;
}

.gmail-info-modal__callout-row {
    margin: 0;
    color: var(--text-body);
    line-height: 1.6;
    font-size: 0.95rem;
    display: flex;
    align-items: flex-start;
    gap: 8px;
}

.gmail-info-modal__callout-icon {
    display: inline-block;
    vertical-align: middle;
    flex-shrink: 0;
    margin-top: 2px;
}

.gmail-info-modal__note {
    margin: 0;
    color: var(--text-body);
    line-height: 1.6;
    font-size: 0.95rem;
}

.gmail-info-modal__footer {
    padding: 16px 24px;
    border-top: 1px solid #e5e7eb;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.gmail-info-modal__links {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.gmail-info-modal__link {
    padding: 8px 16px;
    color: var(--primary);
    text-decoration: none;
    font-size: 0.9rem;
    border-radius: 6px;
    transition: background 0.2s;
}

.gmail-info-modal__link:hover {
    background: #f3f4f6;
}

.gmail-info-modal__link--muted {
    color: var(--text-body);
}

.gmail-info-modal__confirm {
    padding: 8px 20px;
    background: var(--primary);
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 500;
    transition: opacity 0.2s;
}

.gmail-info-modal__confirm:hover {
    opacity: 0.9;
}
