body {
    font-family: 'Inter', system-ui, sans-serif;
    background-color: #F4F2EF;
    font-style: normal;
    color: #3E3E3E;
    letter-spacing: -8%;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}
.text-yellow {
    color: #e4ad37;
    font-weight: 400;
    font-size: 18px;
    text-align: center;
}
.text-red {
    color: #FF0000;
    font-weight: 400;
    font-size: 18px;
    text-align: center;
}
.form-input-underline {
    background: #FFFFFF !important;
    width: 480px;
    height: 43px;
    border-radius: 16px;
    padding-top: 12px;
    padding-right: 16px;
    padding-bottom: 12px;
    padding-left: 16px;
    border: none;
    transition: border-color 0.2s ease-in-out;
    color: #3E3E3E !important;
}
.form-input-underline:focus {
    outline: none;
    box-shadow: 0 0 0 2px #D1D5DB;
    border: none;
}
.custom-font-style-3 {
    font-weight: 400;
    font-style: Regular;
    font-size: 16px;
    line-height: 100%;
}
/* Placeholder typography for email input */
#email-input::placeholder {
    color: rgba(130, 130, 130, 0.50); /* #82828280 */
    font-family: "Inter", system-ui, sans-serif;
    font-size: 16px;
    font-style: normal;
    font-weight: 400;
    line-height: normal;
    letter-spacing: -0.06px;
}
/* Safari/WebKit placeholder */
#email-input::-webkit-input-placeholder {
    color: rgba(130, 130, 130, 0.50);
    font-family: "Inter", system-ui, sans-serif;
    font-size: 16px;
    font-style: normal;
    font-weight: 400;
    line-height: normal;
    letter-spacing: -0.916px;
}
/* Swipe slider styles */
.swipe-container {
    position: relative;
    width: 343px;
    padding: 0px;
    height: 64px;
    display: flex;
    align-items: flex-start;
    gap: 12px;
    border-radius: 80px;
    background: #FFF;
    box-shadow: 0 0 8px 0 rgba(0,0,0,0.05);
    user-select: none;
    -webkit-user-select: none;
    touch-action: none;
    contain: layout paint;
    transition: width 0.5s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.3s ease;
    overflow: hidden;
}

.swipe-container.collapsed {
    width: 64px;
}

.swipe-container.collapsed .swipe-initial,
.swipe-container.collapsed .swipe-labels {
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.1s ease;
}

.swipe-initial, .swipe-labels {
    transition: opacity 0.4s ease 0.1s;
}

.swipe-container[aria-disabled="true"] { opacity: 1; }
.swipe-container.collapsed[aria-disabled="true"] {
    opacity: 1;
}
.swipe-container.collapsed[aria-disabled="true"] .swipe-handle {
    background: #55B36C;
}
.swipe-labels {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none; /* keep drag working while text visually blocks */
    z-index: 2; /* under handle, above gradient */
    /* Reveal overlay labels only within the gradient width */
    clip-path: inset(0 calc(100% - (calc(var(--handleX, 0px) + 64px))) 0 0);
    /* Mask fallback for browsers with better mask support */
    -webkit-mask-image: linear-gradient(to right, #000 0, #000 calc(var(--handleX, 0px) + 64px), transparent calc(var(--handleX, 0px) + 64px));
    -webkit-mask-size: 100% 100%;
    -webkit-mask-repeat: no-repeat;
    mask-image: linear-gradient(to right, #000 0, #000 calc(var(--handleX, 0px) + 64px), transparent calc(var(--handleX, 0px) + 64px));
    mask-size: 100% 100%;
    mask-repeat: no-repeat;
}
.swipe-labels span {
    display: none;
    width: 100%;
    text-align: center;
    color: #3E3E3E;
    font-family: 'Inter', system-ui, sans-serif;
    font-size: 16.845px;
    font-style: normal;
    font-weight: 400;
    line-height: normal;
    letter-spacing: -0.65px;
}
/* Initial layer (arrow + label). Initially above gradient, below handle */
.swipe-initial {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding-left: 48px; /* clear the handle */
    pointer-events: none;
    z-index: 2; /* above gradient initially */
}
.swipe-initial.below { z-index: 0; }
.swipe-initial .swipe-label-init {
    width: auto;
    text-align: left;
    color: #3E3E3E;
    font-family: 'Inter', system-ui, sans-serif;
    font-size: 16.845px;
    font-style: normal;
    font-weight: 400;
    line-height: normal;
    letter-spacing: -0.65px;
    display: inline;
}
.swipe-labels .swipe-label-sent { color: #FFFFFF; }
.swipe-labels .swipe-label-progress { color: #FFFFFF; }
.swipe-gradient {
    position: absolute;
    left: 0px;
    /* Keep gradient width in lockstep with handle position */
    width: calc(var(--handleX, 0px) + 64px);
    top: 0px;
    bottom: 0px;
    border-radius: 80px;
    background: linear-gradient(90deg, #55B36C 0%, #FF6200 102.33%);
    filter: saturate(1);
    pointer-events: none;
    z-index: 1;
    will-change: width;
}
.swipe-handle {
    position: relative;
    width: 64px;
    height: 64px;
    border-radius: 64px;
    background: #55B36C;
    left: 0px;
    top: 50%;
    transform: translateY(-50%) translateX(var(--handleX, 0px));
    box-shadow: 0 0 7.375px 1.25px rgba(0, 0, 0, 0.25);
    display: grid;
    place-items: center;
    color: #222;
    touch-action: none;
    cursor: grab;
    z-index: 3; /* topmost */
    transition: transform 0.2s ease-out;
    will-change: transform;
}
.swipe-handle .spinner, .swipe-handle .tick { display: none; }
.swipe-handle .tick {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 22px;
    height: 17px;
}
.swipe-handle.white { background: #FFFFFF; }
.swipe-arrow { 
    position: static; 
    display: inline-flex; 
    align-items: center; 
    justify-content: center; 
    pointer-events: none; 
    left: 80px;
}
.swipe-container.dragging { cursor: grabbing; }
.dragging .swipe-gradient { transition: none; }
.dragging .swipe-handle { transition: none; }
/* During JS-driven animations keep handle/gradient perfectly in sync */
.swipe-container.animating .swipe-gradient { transition: none; }
.swipe-container.animating .swipe-handle { transition: none; }
/* Spinner: use CSS-based spinner to avoid SVG transparency quirks */
.swipe-handle .spinner { width: 36px; height: 36px; position: relative; }
.swipe-handle .spinner svg { display: none; }
.swipe-handle .spinner::before {
    content: '';
    position: relative;
    display: block;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    border: 3px solid #EADFD6;
    border-top-color: #55B36C;
    animation: spin 0.9s linear infinite;
}


@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}
.spin { animation: spin 1s linear infinite; }
/* Submitting: subdued gradient over white, no labels, hide dynamic fill */
.swipe-container.submitting {
    background: linear-gradient(90deg, rgba(85, 179, 108, 0.20) -9.33%, rgba(255, 98, 0, 0.20) 107%), #FFF;
}
.swipe-container.submitting .swipe-labels { display: none; }
.swipe-container.submitting .swipe-initial { display: none; }
.swipe-container.submitting .swipe-gradient { display: none; }
/* Solid green once sent */
.swipe-container.sent { background: #55B36C; box-shadow: none; opacity: 1; }
.swipe-container.sent .swipe-gradient { display: none; }
.swipe-container.sent .swipe-initial { display: none; }
.swipe-container.sent .swipe-labels {
    display: flex;
    clip-path: none;
    -webkit-mask-image: none;
    mask-image: none;
}
.swipe-container.sent[aria-disabled="true"] { opacity: 1; }

/* Email sent: fly in from bottom with elastic bounce */
@keyframes labelBounceInUp {
    0% { transform: translateY(24px); opacity: 0; }
    60% { transform: translateY(-6px); opacity: 1; }
    80% { transform: translateY(3px); }
    100% { transform: translateY(0); }
}
.swipe-labels .swipe-label-sent.bounce-in {
    animation: labelBounceInUp 500ms ease-out both;
}

/* Footer styles */
.footer {
    padding: 32px 0;
    justify-content: center;
    align-items: center;
    gap: 16px;
    background: #ECE5DC;
    min-height: 326px;
    width: 100%;
    position: relative;
    z-index: 1;
}
.footer-text-1 {
    align-self: stretch;
    color: #68605B;
    font-family: "Inter", system-ui, sans-serif;
    font-size: 12px;
    font-style: normal;
    font-weight: 410;
    line-height: normal;
    letter-spacing: -0.28px;
}
.footer-text-2 {
    margin-top: 12px;
    align-self: stretch;
    color: #828282;
    font-family: "Inter", system-ui, sans-serif;
    font-size: 12px;
    font-style: normal;
    font-weight: 400;
    line-height: 16px; /* 133.333% */
    letter-spacing: -0.28px;
}
/* Site-wide content max width */
.content-max {
    width: 100%;
    max-width: 480px;
    margin: 0 auto;
    padding: 8px; /* page border padding */
}
/* Brand row (title + subtitle) */
.brand-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    align-self: stretch;
    padding-top: 32px;
}
.brand-title {
    font-family: "Inter", system-ui, sans-serif;
    font-size: 32px;
    font-style: normal;
    font-weight: 700;
    line-height: normal;
    letter-spacing: -0.95px;
    background: linear-gradient(263deg, #55B36C 35.82%, #FF6200 90.45%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}
.brand-subtitle {
    color: #3E3E3E;
    font-family: "Inter", system-ui, sans-serif;
    font-size: 16px;
    font-style: normal;
    font-weight: 500;
    line-height: normal;
    letter-spacing: -0.7px;
}
/* Hero box with phone */
.hero-box {
    background: #ECE5DC;
    border-radius: 16px;
    height: 248px;
    padding-top: 32px;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    align-self: stretch;
    overflow: hidden;
}
.phone-image {
    width: clamp(140px, 55vw, 200px);
    height: auto;
    display: block;
    /* clip-path removed per design update */
}
/* Features */
.features { margin-top: 24px; }
.features h2 {
    align-self: stretch;
    color: #68605B;
    font-family: "Inter", system-ui, sans-serif;
    font-size: 16px;
    font-style: normal;
    font-weight: 500;
    line-height: 16px; /* 100% */
    letter-spacing: -0.3px;
    margin-bottom: 12px;
}
h2 {
    color: #68605B;
    font-family: "Inter", system-ui, sans-serif;
    font-size: 16px;
    font-weight: 500;
}
.feature-grid {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap; /* keep on one line */
    gap: 8px;
    overflow-x: auto; /* allow horizontal scroll */
    position: relative; /* for fade overlay */
    -webkit-overflow-scrolling: touch;
    user-select: none;
    -webkit-user-select: none;
    touch-action: pan-x; /* allow vertical scroll; we handle horizontal drag */
    cursor: grab;
    scrollbar-width: none; /* Firefox hide scrollbar */
    --gridOffset: 0px;
}
.feature-grid::-webkit-scrollbar { display: none; } /* WebKit hide scrollbar */
.feature-grid.dragging { cursor: grabbing; }
/* Elastic edge effect: translate children by --gridOffset */
.feature-grid > * { transform: translateX(var(--gridOffset)); }
.feature-card {
    display: flex;
    width: 120px;
    height: 160px;
    padding: 12px; /* design shows 12px insets */
    flex-direction: column;
    justify-content: space-between;
    align-items: flex-start;
    flex-shrink: 0; /* prevent squashing */
    border-radius: 16px;
    background: #ECE5DC;
}
.feature-card-icon { width: 16px; height: 16px; margin-bottom: 0px; }
.feature-card-icon img { width: 100%; height: 100%; display: block; object-fit: contain; }
.feature-card h3 {
    color: #3E3E3E;
    font-family: "Inter", system-ui, sans-serif;
    font-size: 16px;
    font-style: normal;
    font-weight: 400;
    line-height: 16px;
    letter-spacing: -0.7px;
    margin-bottom: 18px;
}
.feature-card p {
    color: #858277;
    font-family: "Inter", system-ui, sans-serif;
    font-size: 12px;
    font-style: normal;
    font-weight: 400;
    line-height: 16px; /* 133.333% */
    letter-spacing: -0.3px;
}
/* Compact variant for specific feature card where title should sit higher */
.feature-card--compact { justify-content: flex-start; gap: 6px; }
.feature-card--compact p { margin-top: auto; }
/* Input container with attention arrows */
.input-container {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
}

.attention-arrow {
    position: absolute;
    display: none;
    opacity: 0;
    pointer-events: none;
    z-index: 1;
}

.attention-arrow-left {
    left: -40px;
    animation: bounceLeft 2s ease-in-out infinite;
}

.attention-arrow-right {
    right: -40px;
    animation: bounceRight 2s ease-in-out infinite;
}

.attention-arrow svg {
    width: 24px;
    height: 24px;
}

/* Attention arrows animation */
@keyframes bounceLeft {
    0%, 20%, 50%, 80%, 100% {
        transform: translateX(0);
        opacity: 0;
    }
    40% {
        transform: translateX(8px);
        opacity: 1;
    }
    60% {
        transform: translateX(4px);
        opacity: 0.8;
    }
}

@keyframes bounceRight {
    0%, 20%, 50%, 80%, 100% {
        transform: translateX(0);
        opacity: 0;
    }
    40% {
        transform: translateX(-8px);
        opacity: 1;
    }
    60% {
        transform: translateX(-4px);
        opacity: 0.8;
    }
}

.attention-arrow.attention-arrow-left svg {
    animation: arrowPulse 1.5s ease-in-out infinite;
}

.attention-arrow.attention-arrow-right svg {
    animation: arrowPulse 1.5s ease-in-out infinite 0.75s;
}

@keyframes arrowPulse {
    0%, 100% {
        transform: scale(1);
        opacity: 0.7;
    }
    50% {
        transform: scale(1.2);
        opacity: 1;
    }
}

/* Ensure email input remains editable and properly styled */
#email-input {
    background-color: #FFFFFF !important;
    color: #3E3E3E !important;
    pointer-events: auto !important;
    transition: opacity 0.2s ease, cursor 0.2s ease;
}
#email-input:disabled,
#email-input[readonly] {
    background-color: #FFFFFF !important;
    color: #3E3E3E !important;
    opacity: 1 !important;
    cursor: not-allowed !important;
}

/* Submission state styling for email input */
#email-input.submitting {
    background-color: #ECE5DC !important;
    opacity: 0.6;
    cursor: not-allowed;
    pointer-events: none;
}

/* Center slider and caption */
.swipe-container { margin-left: auto; margin-right: auto; }
.cta-caption {
    text-align: center;
    color: #858277;
    font-family: "Inter", system-ui, sans-serif;
    font-size: 12px;
    font-style: normal;
    font-weight: 410;
    line-height: normal;
    letter-spacing: -0.34px;
    margin-top: 8px !important;
}

/* Secondary dark footer */
.footer-secondary {
    background: #645D58; /* dark warm gray matching screenshot */
    color: #EADFD6; /* light beige text */
    min-height: 143px; /* minimum footer height */
    flex-grow: 1; /* fill remaining vertical space on short pages */
}
.footer-secondary__inner {
    max-width: 480px; /* match .content-max */
    margin: 0 auto;
    padding: 16px 20px 16px 20px; /* tighter to fit fixed height */
}
.footer-secondary__top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
}
.footer-secondary__nav {
    display: flex;
    align-items: center;
    gap: 12px; /* reduced gap */
    font-size: 12px;
    line-height: 1.4;
}
.footer-secondary__link {
    color: #EADFD6;
    text-decoration: none;
}
.footer-secondary__link:hover { text-decoration: underline; }
.footer-secondary__sep { color: #EADFD6; opacity: 0.6; }
.footer-secondary__tagline {
    font-size: 12px;
    margin-left: auto; /* right-align within the flex row */
    text-align: right;
}
.footer-secondary__rule {
    margin: 12px 0; /* compact spacing to fit height */
    border: none;
    border-top: 2px solid #EADFD6;
    opacity: 0.6;
}
.footer-secondary__bottom {
    text-align: center;
    margin-top: 12px;
    font-size: 10px;
    line-height: 16px; /* 160% */
    letter-spacing: -0.24px;
}

@media (max-width: 768px) {
    .footer-secondary__top { flex-direction: row; align-items: center; }
    .footer-secondary__tagline { font-size: 12px; text-align: right; margin-left: auto; }
    .footer-secondary__nav { font-size: 12px; flex-wrap: nowrap; white-space: nowrap; }
    .footer-secondary__rule { margin: 10px 0; }
    .footer-secondary__bottom { font-size: 10px; }
}

/* Policy pages styles */
.policy-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 40px 20px;
    line-height: 1.6;
    font-size: 12px;
}
.policy-content h1 {
    font-family: "Inter", system-ui, sans-serif;
    font-size: 18px;
    font-weight: 700;
    color: #3E3E3E;
    margin-bottom: 32px;
    text-align: center;
    background: linear-gradient(263deg, #55B36C 35.82%, #FF6200 90.45%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}
.policy-content h2 {
    font-family: "Inter", system-ui, sans-serif;
    font-size: 14px;
    font-weight: 600;
    color: #3E3E3E;
    margin-top: 32px;
    margin-bottom: 16px;
    border-bottom: 1px solid #ECE5DC;
    padding-bottom: 8px;
}
.policy-content h3 {
    font-family: "Inter", system-ui, sans-serif;
    font-size: 13px;
    font-weight: 500;
    color: #68605B;
    margin-top: 24px;
    margin-bottom: 12px;
}
.policy-content p {
    margin-bottom: 16px;
    color: #828282;
}
.policy-content ul, .policy-content ol {
    margin-bottom: 16px;
    padding-left: 24px;
    color: #828282;
}
.policy-content li {
    margin-bottom: 8px;
}
.last-updated {
    text-align: center;
    color: #858277;
    font-size: 12px;
    margin-bottom: 40px;
    font-style: italic;
}
.back-link {
    display: inline-block;
    margin-bottom: 32px;
    color: #55B36C;
    text-decoration: none;
    font-weight: 500;
    font-size: 12px;
}
.back-link:hover {
    text-decoration: underline;
}
