/* Main Content */
main {
    padding-top: 100px;
    padding-bottom: 80px;
}

.heart-filled {
    color: #ff4757 !important;
    fill: #ff4757 !important;
}

/* Feature Sections */
.feature-section {
    margin-bottom: 100px;
    background: #ffffff;
    border-radius: 20px;
    padding: 50px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}

.feature-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(90, 62, 190, 0.01) 0%, rgba(110, 85, 210, 0.01) 100%);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.feature-section:hover::before {
    opacity: 1;
}

.feature-section:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(90, 62, 190, 0.1);
}

.feature-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    position: relative;
    z-index: 1;
}

.feature-content.reverse {
    direction: rtl;
}

.feature-content.reverse > * {
    direction: ltr;
}

.feature-text h2 {
    font-size: 2.5rem;
    font-weight: 600;
    margin-bottom: 20px;
    color: #1d1d1f;
}

.feature-text p {
    font-size: 1.2rem;
    color: #6e6e73;
    margin-bottom: 20px;
    line-height: 1.6;
}

/* Anonymity Toggle Visual */
.anonymity-demo {
    background: linear-gradient(135deg, #f8f7ff 0%, #e8e7ff 100%);
    border-radius: 20px;
    padding: 40px;
    text-align: center;
    position: relative;
    z-index: 1;
}

.toggle-comparison {
    display: flex;
    gap: 30px;
    justify-content: center;
    flex-wrap: wrap;
}

.toggle-example {
    background: white;
    border-radius: 15px;
    padding: 20px;
    width: 280px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    transition: all 0.4s ease;
}

.toggle-example:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.toggle-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid #f0f0f0;
}

.user-info {
    display: flex;
    align-items: center;
    gap: 10px;
}

.avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #5A3EBE;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 12px;
    transition: all 0.3s ease;
}

.avatar.anonymous {
    background: #333;
}

.toggle-example:hover .avatar {
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(90, 62, 190, 0.3);
}

.toggle-switch {
    width: 44px;
    height: 24px;
    border-radius: 12px;
    position: relative;
    cursor: pointer;
    transition: all 0.3s ease;
}

.toggle-switch.off {
    background: #e5e5e7;
}

.toggle-switch.on {
    background: #5A3EBE;
}

.toggle-switch::after {
    content: '';
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: white;
    position: absolute;
    top: 2px;
    transition: all 0.3s ease;
}

.toggle-switch.off::after {
    left: 2px;
}

.toggle-switch.on::after {
    left: 22px;
}

.toggle-switch:hover {
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(90, 62, 190, 0.2);
}

.post-content {
    color: #1d1d1f;
    font-size: 14px;
    text-align: left;
}

/* Steps Section */
.steps-section {
    background: #f5f5f7;
    padding: 80px 0;
    border-radius: 30px;
    margin: 100px 0;
    position: relative;
    overflow: hidden;
}

.steps-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="50" cy="50" r="2" fill="rgba(90,62,190,0.05)"/></svg>') 0 0;
    background-size: 100px 100px;
    animation: float 25s infinite linear;
}

.steps-container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
    z-index: 1;
}

.steps-title {
    text-align: center;
    font-size: 2.5rem;
    font-weight: 600;
    margin-bottom: 60px;
    color: #1d1d1f;
}

.steps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
}

/* Key Features Grid */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 40px;
    margin: 80px 0;
}

.feature-card {
    background: linear-gradient(135deg, #f8f7ff 0%, #ffffff 100%);
    border-radius: 20px;
    padding: 40px;
    text-align: center;
    border: 1px solid #e8e7ff;
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}



.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(90, 62, 190, 0.1);
}

/* Highlight Boxes */
.highlight-box {
    background: linear-gradient(135deg, #5A3EBE 0%, #6E55D2 100%);
    color: white;
    padding: 40px;
    border-radius: 20px;
    text-align: center;
    margin: 60px 0;
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}

.highlight-box::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="25" cy="25" r="2" fill="rgba(255,255,255,0.1)"/><circle cx="75" cy="75" r="1.5" fill="rgba(255,255,255,0.1)"/></svg>') 0 0;
    background-size: 80px 80px;
    animation: float 25s infinite linear;
}

.highlight-box:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(90, 62, 190, 0.3);
}

.highlight-box h3 {
    font-size: 1.8rem;
    margin-bottom: 15px;
    position: relative;
    z-index: 1;
}

.highlight-box p {
    font-size: 1.1rem;
    opacity: 0.9;
    position: relative;
    z-index: 1;
}

/* CTA Section */
.how-to-cta-section {
    text-align: center;
    padding: 80px 0;
    background: linear-gradient(135deg, #1d1d1f 0%, #333 100%);
    border-radius: 30px;
    color: white;
    margin-top: 100px;
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}

.how-to-cta-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="50" cy="50" r="2" fill="rgba(255,255,255,0.1)"/></svg>') 0 0;
    background-size: 50px 50px;
    animation: float 20s infinite linear;
}

.how-to-cta-section:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

.how-to-cta-section h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
    position: relative;
    z-index: 1;
}

.how-to-cta-section p {
    font-size: 1.2rem;
    margin-bottom: 40px;
    opacity: 0.8;
    position: relative;
    z-index: 1;
}

.app-button {
    display: inline-flex;
    align-items: center;
    padding: 15px 30px;
    background: linear-gradient(135deg, #5A3EBE 0%, #6E55D2 100%);
    color: white;
    text-decoration: none;
    border-radius: 12px;
    font-weight: 500;
    transition: all 0.3s ease;
    min-width: 160px;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.app-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.app-button:hover::before {
    left: 100%;
}

.app-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(90, 62, 190, 0.3);
}

/* Swiping Demo */
.swipe-demo {
    background: linear-gradient(135deg, #f8f7ff 0%, #e8e7ff 100%);
    border-radius: 20px;
    padding: 40px;
    text-align: center;
    position: relative;
    min-height: 450px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: all 0.4s ease;
    overflow: hidden;
}

.swipe-demo::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(90, 62, 190, 0.05) 0%, rgba(110, 85, 210, 0.05) 100%);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.swipe-demo:hover::before {
    opacity: 1;
}

.swipe-demo:hover {
    transform: scale(1.02);
}

.swipe-card {
    width: 280px;
    height: 400px;
    background: white;
    border-radius: 20px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
    position: relative;
    overflow: hidden;
    margin-bottom: 20px;
    transition: all 0.4s ease;
    z-index: 1;
}

.swipe-demo:hover .swipe-card {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2);
}

.card-image {
    width: 100%;
    height: 250px;
    background: linear-gradient(135deg, #5A3EBE 0%, #6E55D2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 3rem;
    background-image: url('../images/screenshots/sarah-picture.png');
    background-size: cover;
    background-position: center;
}

.card-info {
    padding: 20px;
    text-align: left;
}

.card-name {
    font-size: 1.5rem;
    font-weight: 600;
    color: #1d1d1f;
    margin-bottom: 5px;
}

.card-details {
    color: #6e6e73;
    font-size: 0.9rem;
    margin-bottom: 10px;
}

.card-interests {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
}

.interest-tag {
    background: #f0f0f0;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 0.8rem;
    color: #5A3EBE;
    transition: all 0.3s ease;
}

.interest-tag:hover {
    background: #5A3EBE;
    color: white;
    transform: scale(1.05);
}

.swipe-actions {
    display: flex;
    justify-content: center;
    gap: 40px;
    margin-top: 20px;
    z-index: 1;
}

.swipe-button {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    border: 3px solid;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
    background: white;
}

.swipe-button.pass {
    border-color: #ff6b6b;
    color: #ff6b6b;
}

.swipe-button.like {
    border-color: #4ecdc4;
    color: #4ecdc4;
}

.swipe-button:hover {
    transform: scale(1.1);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

/* Profile Comparison */
.profile-comparison {
    background: linear-gradient(135deg, #f8f7ff 0%, #e8e7ff 100%);
    border-radius: 20px;
    padding: 40px;
    text-align: center;
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}

.profile-comparison::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(90, 62, 190, 0.05) 0%, rgba(110, 85, 210, 0.05) 100%);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.profile-comparison:hover::before {
    opacity: 1;
}

.profile-comparison:hover {
    transform: scale(1.02);
}

.comparison-container {
    display: flex;
    gap: 30px;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 30px;
}

.profile-example {
    background: white;
    border-radius: 15px;
    padding: 20px;
    width: 280px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    transition: all 0.4s ease;
    position: relative;
    z-index: 1;
}

.profile-example:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.profile-header {
    text-align: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid #f0f0f0;
}

.profile-type {
    background: #5A3EBE;
    color: white;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.9rem;
    display: inline-block;
    margin-bottom: 10px;
    transition: all 0.3s ease;
}

.profile-example:hover .profile-type {
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(90, 62, 190, 0.3);
}

.profile-content {
    text-align: left;
}

.profile-item {
    margin-bottom: 10px;
    font-size: 0.9rem;
}

.profile-label {
    font-weight: 600;
    color: #5A3EBE;
}

.profile-value {
    color: #6e6e73;
}

/* Account Setup Flow */
.setup-flow {
    background: linear-gradient(135deg, #f8f7ff 0%, #e8e7ff 100%);
    border-radius: 20px;
    padding: 40px;
    text-align: center;
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}

.setup-flow::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(90, 62, 190, 0.05) 0%, rgba(110, 85, 210, 0.05) 100%);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.setup-flow:hover::before {
    opacity: 1;
}

.setup-flow:hover {
    transform: scale(1.02);
}

.flow-steps {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
    margin-top: 30px;
}

.flow-step {
    background: white;
    border-radius: 15px;
    padding: 25px;
    width: 250px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    position: relative;
    transition: all 0.4s ease;
    z-index: 1;
}

.flow-step:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.flow-step::after {
    content: '→';
    position: absolute;
    right: -15px;
    top: 50%;
    transform: translateY(-50%);
    color: #5A3EBE;
    font-size: 1.5rem;
    font-weight: bold;
    transition: all 0.3s ease;
}

.flow-step:last-child::after {
    display: none;
}

.flow-step:hover::after {
    transform: translateY(-50%) scale(1.2);
}

.step-icon {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: linear-gradient(135deg, #5A3EBE 0%, #6E55D2 100%);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 15px;
    transition: all 0.4s ease;
}

.step-icon svg {
    width: 20px;
    height: 20px;
    stroke-width: 2;
}

.flow-step:hover .step-icon {
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 8px 20px rgba(90, 62, 190, 0.3);
}

.step-title {
    font-weight: 600;
    margin-bottom: 10px;
    color: #1d1d1f;
    transition: color 0.3s ease;
}

.flow-step:hover .step-title {
    color: #5A3EBE;
}

.step-description {
    font-size: 0.9rem;
    color: #6e6e73;
    line-height: 1.4;
}

/* Forum Interaction Demo */
.forum-demo {
    background: linear-gradient(135deg, #f8f7ff 0%, #e8e7ff 100%);
    border-radius: 20px;
    padding: 40px;
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}

.forum-demo::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(90, 62, 190, 0.05) 0%, rgba(110, 85, 210, 0.05) 100%);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.forum-demo:hover::before {
    opacity: 1;
}

.forum-demo:hover {
    transform: scale(1.02);
}

.forum-posts {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-top: 30px;
    position: relative;
    z-index: 1;
}

.forum-post {
    background: white;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    transition: all 0.4s ease;
}

.forum-post:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.post-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 10px;
}

.post-user {
    display: flex;
    align-items: center;
    gap: 10px;
}

.post-content {
    color: #1d1d1f;
    line-height: 1.5;
    margin-bottom: 15px;
}

.post-actions {
    display: flex;
    gap: 15px;
    color: #6e6e73;
    font-size: 0.9rem;
}

.privacy-shield {
    background: #e8f5e8;
    color: #2d5a2d;
    padding: 3px 8px;
    border-radius: 12px;
    font-size: 0.8rem;
    transition: all 0.3s ease;
}

.forum-post:hover .privacy-shield {
    transform: scale(1.05);
}

@media (max-width: 768px) {
    .comparison-container,
    .flow-steps {
        flex-direction: column;
        align-items: center;
    }

    .flow-step::after {
        content: '↓';
        right: 50%;
        top: 100%;
        transform: translateX(50%);
    }

    .nav-links {
        display: none;
    }

    .page-header h1 {
        font-size: 2.5rem;
    }

    .feature-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .feature-content.reverse {
        direction: ltr;
    }

    .toggle-comparison {
        flex-direction: column;
        align-items: center;
    }

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

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

    .feature-section {
        padding: 30px 20px;
    }
}

/* ========= Mobile polish (non-destructive to desktop) ========= */

/* Fluid typography (keeps desktop sizes intact) */
.page-header h1{ font-size: clamp(2rem, 4.5vw + 1rem, 3.5rem); }
.page-header p,
.feature-text p,
.steps-section .steps-title,
.how-to-cta-section p{
  line-height: 1.6;
  word-break: break-word;
}

/* Feature sections: flexible spacing */
.feature-section{
  margin-bottom: clamp(40px, 8vw, 100px);
  padding: clamp(20px, 5vw, 50px);
}

/* 2-col blocks -> 1-col on phones with comfy gaps */
.feature-content{
  grid-template-columns: 1fr 1fr;
  gap: clamp(24px, 5vw, 60px);
}
@media (max-width: 900px){
  .feature-content{ grid-template-columns: 1fr; }
  /* Kill the RTL flip trick on narrow screens */
  .feature-content.reverse{ direction: ltr; }
}

/* Small cards that had fixed widths (280px) now fluid */
.toggle-example,
.profile-example,
.flow-step{
  width: min(100%, 320px);
}

/* Flex clusters: nicer wrapping & spacing */
.toggle-comparison,
.comparison-container,
.flow-steps{
  gap: clamp(14px, 3.5vw, 30px);
}

/* Steps & Features grids: lower min widths so they don't overflow */
.steps-grid{
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: clamp(16px, 4vw, 40px);
}
.features-grid{
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: clamp(16px, 4vw, 40px);
  margin: clamp(40px, 8vw, 80px) 0;
}

/* Swipe demo card: responsive width & aspect */
.swipe-card{
  width: clamp(240px, 75vw, 320px);
  aspect-ratio: 7 / 10;     /* replaces fixed 280x400 */
  height: auto;
}
.card-image{
  height: auto;
  aspect-ratio: 7 / 10;     /* keep top image nicely framed if you prefer full card image */
  /* If you want only the top to be image, remove this aspect-ratio and keep your original 250px height */
}
@media (min-width: 769px){
  /* On desktop, keep your original split layout look */
  .card-image{ aspect-ratio: auto; height: 250px; }
}

/* Swipe actions: bigger tap targets on phones */
.swipe-actions{ gap: clamp(20px, 8vw, 40px); }
.swipe-button{
  width: clamp(52px, 12vw, 64px);
  height: clamp(52px, 12vw, 64px);
  border-width: 3px;
}

/* CTA: fluid text + safe spacing */
.how-to-cta-section{
  padding: clamp(40px, 9vw, 80px) 0;
  margin-top: clamp(40px, 9vw, 100px);
}
.how-to-cta-section h2{ font-size: clamp(1.8rem, 3.6vw + 1rem, 2.5rem); }
.how-to-cta-section p{ font-size: clamp(1rem, 1.2vw + .8rem, 1.2rem); }
.app-button{
  min-width: 0;
  padding: clamp(12px, 2.8vw, 15px) clamp(18px, 4.5vw, 30px);
}

/* Highlight box: fluid */
.highlight-box{
  padding: clamp(20px, 5vw, 40px);
  margin: clamp(30px, 7vw, 60px) 0;
}
.highlight-box h3{ font-size: clamp(1.3rem, 2vw + 1rem, 1.8rem); }
.highlight-box p{ font-size: clamp(0.95rem, 1.2vw + .7rem, 1.1rem); }

/* Forum posts: avoid cramp on small screens */
.forum-posts{ gap: clamp(12px, 3.5vw, 20px); }
.forum-post{ padding: clamp(14px, 3.6vw, 20px); }

/* Reduce hover animations on touch devices (less jank) */
@media (hover: none){
  .feature-section:hover,
  .toggle-example:hover,
  .profile-example:hover,
  .flow-step:hover,
  .forum-post:hover,
  .swipe-demo:hover,
  .profile-comparison:hover,
  .setup-flow:hover,
  .screenshot-container:hover{
    transform: none;
    box-shadow: inherit;
  }
  .interest-tag:hover{ transform: none; }
}

/* Images never overflow */
img{ max-width: 100%; height: auto; }

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

/* Safe area padding for iOS when needed */
.how-to-cta-section{ padding-bottom: calc(env(safe-area-inset-bottom) + clamp(40px, 9vw, 80px)); }

/* Tiny nav helper for this page if the global one isn’t loaded */
@media (max-width: 768px){
  .nav-links{ display: none; }
}

/* Make the big sticky header a bit lighter on small phones for perf */
@media (max-width: 480px){
  header{
    backdrop-filter: blur(10px) saturate(1.2);
    -webkit-backdrop-filter: blur(10px) saturate(1.2);
  }
}

/* ===== Mobile fixes for: Profile Separation / Swiping Demo / Forum Demo / Meet Detail ===== */

/* 1) Two-column feature blocks -> single column on small screens with comfy spacing */
.feature-content{
  gap: clamp(20px, 5vw, 60px);
}
@media (max-width: 900px){
  .feature-content{ grid-template-columns: 1fr; }
  /* disable the RTL flip hack on narrow screens */
  .feature-content.reverse{ direction: ltr; }
}

/* 2) Profile Separation: comparison cards no longer overflow */
.comparison-container{
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: clamp(14px, 3.5vw, 30px);
}
.profile-example{
  width: 100%;                /* instead of hard 280px */
  max-width: 360px;           /* keeps a nice cap on tablets */
  margin: 0 auto;
  padding: clamp(16px, 4.5vw, 20px);
}
.profile-type{ font-size: clamp(.9rem, 1.2vw + .6rem, 1rem); }
.profile-content{ font-size: clamp(.9rem, 1.1vw + .6rem, .95rem); }

/* 3) Swiping Demo: responsive card + tap targets */
.swipe-demo{
  padding: clamp(18px, 5vw, 40px);
  min-height: unset;
}
.swipe-card{
  width: clamp(240px, 75vw, 320px);  /* flexible width */
  aspect-ratio: 7 / 10;              /* replaces fixed 280x400 on phones */
  height: auto;
}
.card-image{
  height: auto;
  aspect-ratio: 7 / 10;              /* keep image nicely framed on phones */
  background-size: cover;
  background-position: center;
}
@media (min-width: 769px){
  /* keep your original desktop look */
  .swipe-card{ width: 280px; height: 400px; aspect-ratio: auto; }
  .card-image{ aspect-ratio: auto; height: 250px; }
}
.swipe-actions{
  gap: clamp(20px, 8vw, 40px);
}
.swipe-button{
  width: clamp(52px, 12vw, 64px);
  height: clamp(52px, 12vw, 64px);
  border-width: 3px;
}

/* 4) Forum Demo: prevent text squeeze + comfy padding */
.forum-demo{
  padding: clamp(16px, 5vw, 40px);
}
.forum-posts{ gap: clamp(12px, 3.5vw, 20px); }
.forum-post{
  padding: clamp(14px, 3.6vw, 20px);
}
.post-content{
  word-wrap: break-word;
  overflow-wrap: anywhere;
}

/* 5) Meet Feature Detail panel: reduce the inline min-height/padding on phones */
@media (max-width: 768px){
  .feature-visual > div{
    min-height: unset !important;
    padding: clamp(16px, 5vw, 40px) !important;
  }
}

/* 6) Typography clamps inside these visuals */
.feature-text h2{ font-size: clamp(1.4rem, 2.2vw + 1rem, 2rem); }
.feature-text p{ font-size: clamp(1rem, 1.2vw + .8rem, 1.2rem); }

/* 7) Reduce hover animations on touch to avoid jank */
@media (hover: none){
  .profile-comparison:hover,
  .swipe-demo:hover,
  .forum-demo:hover,
  .profile-example:hover,
  .swipe-card:hover,
  .forum-post:hover{
    transform: none;
    box-shadow: inherit;
  }
}

/* 8) Safety: images & long words never overflow */
img{ max-width: 100%; height: auto; }