/* =====================================================================
TABLE OF CONTENTS
   1.  Tinder font
   2.  Colour palette
   3.  Base (body, headings, links, form controls)
   4.  Layout: cards
   5.  Buttons
   6.  Navigation bar
   7.  Multi-step form (steps, progress bar, inputs)
   8.  Ratings and ranking
   9.  AI chat
   10. Tinder profile card
   11. Small extras
   12. Mobile
===================================================================== */

/* =====================================================================
1. TINDER FONT
===================================================================== */
@import url('https://cdn.jsdelivr.net/npm/gotham-fonts@1.0.3/css/gotham-rounded.min.css');

/* =====================================================================
2. COLOUR PALETTE
===================================================================== */

:root {
    /* Brand */
    --color-primary: #ff4d6d;
    --color-primary-hover: #e03859;
    --color-primary-subtle: #fcecf2;   /* for active/hover states */

    /* Secondary / Structural accents */
    --color-secondary: #4A2C2A;

    /* Text */
    --color-text: #2E1B19;
    --color-text-muted: #7A6560; 

    /* Surfaces */
    --color-bg: #fff8f5;
    --color-surface: #fffaf8;
    --color-border: #f0d3d0;

    /* Shadows */
    --shadow-soft: 0 10px 25px rgba(120, 80, 70, 0.14);
}
/* =====================================================================
3. BASE
===================================================================== */
body {
    /* Base background color */
    background-color: var(--color-bg);
    color: var(--color-text);
    font-family: 'Lora', serif;
    /* Two identical heart layers, with the second layer shifted - generated with ClaudeAI*/
    background-image:  
        url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="-12 -12 48 48" width="36" height="36"><path fill="%23FFD6DE" fill-opacity="0.74" d="M12 21.35l-1.45-1.32C5.4 15.36 2 12.28 2 8.5 2 5.42 4.42 3 7.5 3c1.74 0 3.41.81 4.5 2.09C13.09 3.81 14.76 3 16.5 3 19.58 3 22 5.42 22 8.5c0 3.78-3.4 6.86-8.55 11.54L12 21.35z"/></svg>'),
        url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="-12 -12 48 48" width="36" height="36"><path fill="%23FFD6DE" fill-opacity="0.74" d="M12 21.35l-1.45-1.32C5.4 15.36 2 12.28 2 8.5 2 5.42 4.42 3 7.5 3c1.74 0 3.41.81 4.5 2.09C13.09 3.81 14.76 3 16.5 3 19.58 3 22 5.42 22 8.5c0 3.78-3.4 6.86-8.55 11.54L12 21.35z"/></svg>');
    background-size: 40px 40px;
    background-position: 0 0, 20px 20px;
}

h1 { 
    color: var(--color-secondary); 
    margin-top: 0;
    text-align: center;
}

h3 { 
    color: var(--color-secondary); 
    margin-top: 0;
    text-align: center;
    font-size: 1.8rem;
}

a { color: var(--color-primary); }

hr {
    width: 100%;
    border: none;
    border-top: 2px solid var(--color-border);
    margin: 20px 0;
}

input, textarea, button, select { font-family: inherit; }

.spaced-list li + li {
    margin-top: 10px;
}
/* =====================================================================
4. LAYOUT: CARDS
===================================================================== */
.card {
    margin: 40px auto;
    max-width: 1100px;
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: 18px;
    padding: 48px;
    box-shadow: var(--shadow-soft);
    box-sizing: border-box;
    overflow-wrap: anywhere;
}

.card-row {
  display: flex;
  align-items: center;       /* centers photo and paragraph vertically */
  gap: 30px;                 /* space between photo and paragraph */
  margin: 30px 0;
}

/* for when authentication fails */
.error-box {
    color: #d93025;
    background: #fce8e6;
    border: 1px solid #fad2cf;
    padding: 10px;
    border-radius: 6px;
    margin-bottom: 16px;
}

/* =====================================================================
5. BUTTONS
===================================================================== */

.btn {
    margin: 28px auto 0;
    display: inline-block;
    background-color: var(--color-primary); 
    color: white; 
    padding: 14px 44px;
    text-decoration: none;
    border: none;
    border-radius: 999px;
    box-shadow: 0 4px 14px rgba(255, 77, 109, 0.3);
    font-size: 1.15rem;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.2s ease, transform 0.1s ease, box-shadow 0.2s ease;
}

.btn:hover {
    background-color: var(--color-primary-hover);
    box-shadow: 0 6px 18px rgba(255, 77, 109, 0.4);
    transform: translateY(-1px); /*move up!*/
}

.btn:active { transform: scale(0.98); } /* subtle click press effect */

/* =====================================================================
6. NAVIGATION BAR
===================================================================== */
.topnav {
    box-sizing: border-box;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 25px;
    width: 90%;               /* shrinks with the window */
    max-width: 800px;         /* but never wider than this */
    margin: 15px auto;
    padding: 8px 16px;
    padding-top: calc(8px + env(safe-area-inset-top));
    border-radius: 999px;
    background: var(--color-secondary);
}

.topnav a {
    color: var(--color-primary-subtle);
    font-size: 15px;
    font-weight: 500;
    text-decoration: none;
    padding: 8px 18px;
    border-radius: 999px;
    transition: all 0.15s ease;
}

.topnav a:hover {
    color: white;
    background-color: rgba(255, 255, 255, 0.1);
}

.topnav a.active {
    color: white;
    background-color: var(--color-primary);
    font-weight: 600;
}

/* =====================================================================
7. MULTI-STEP FORM
   steps.js moves the "active" class so only one step shows at a time
===================================================================== */
.step { 
    display: none; 
    margin: 20px 40px 0; 
}
.step.active { display: block; }

.question { margin: 30px 0 15px; } /* space above the title, less below */
.choice { 
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin: 10px 20px 0; 
}

/* Next / submit row */
.step-nav {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 24px;
}

.step-nav .btn {     /* smaller than the big .btn */
    margin: 0;
    padding: 10px 32px;
    font-size: 1rem;
}

/* ---- Progress label + bar ---- */
#progress-label {
    text-align: center;
    color: var(--color-text-muted);
    font-size: 0.9rem;
    margin: 0 0 8px;
}

.progress-bar {     /* the track: the unfinished part */
    height: 10px;
    background: var(--color-primary-subtle);
    border-radius: 999px;
    overflow: hidden;
}
.progress-fill {     /* the finished part (width set by steps.js) */
    height: 100%;
    width: 0;
    background: var(--color-primary);
    transition: width 0.3s ease;
}

/* ---- Inputs ---- */
.step input[type="text"] { 
    width: 100%; 
    box-sizing: border-box; 
    padding: 10px 14px; 
    font-size: 1rem; 
    color: var(--color-text);
    border: 1.5px solid var(--color-border);
    border-radius: 8px;
}

.step input[type="text"]:focus {
    border-color: var(--color-primary);
    outline: none;
}

.step input[type="text"]::placeholder {
    color: var(--color-text-muted);
    opacity: 0.7;
}

input[type="radio"], 
input[type="checkbox"] {
    accent-color: var(--color-primary);
    width: 18px;
    height: 18px;
    cursor: pointer;
    flex: none;                   /* don't let the box get squashed by long text */
    margin: 0.15em 0 0;           /* nudges it down so it lines up with the first line */
}

.consent-heading {
    margin: 20px 0 6px;
    font-weight: 700;
    color: var(--color-secondary);
}

#google-wrap {
    display: flex;
    justify-content: center;
    margin-top: 20px;
    transition: opacity 0.2s ease;
}
#google-wrap[inert] { opacity: 0.35; }

.signin-note {
    margin-top: 24px;
    text-align: center;
}

.chosen-message {
    margin: 0 auto 24px;
    padding: 16px 20px;
    background: var(--color-tint);
    border-inline: 4px solid var(--color-primary);
    border-radius: 10px;
    font-style: italic;
    color: var(--color-muted);
    text-align: center;
    text-wrap: balance;
    width: fit-content;
}

.chosen-label {
    margin: 0 0 8px;
    font-size: 0.9rem;
    color: var(--color-muted);
    text-align: center;
}
.question-chosen {
    text-wrap:pretty;
    text-align: center;
}

/* =====================================================================
8. RATINGS AND RANKING
===================================================================== */
/* ---- Ranking (drag to reorder) ---- */
.rank-list { 
    padding-left: 28px; 
    margin: 12px 0; 
}
.rank-list li {
    background: white;
    border: 1px solid var(--color-border);
    border-radius: 9px;
    padding: 12px 14px;
    margin: 8px 0;
    cursor: grab;
}
.rank-list li::marker { 
    font-weight: bold; 
    color: var(--color-primary); 
}
.sortable-ghost { opacity: 0.4; }

/* ---- Rating cards (one per message) ---- */
.rating-block {
    background: white;
    border: 1px solid var(--color-border);
    border-radius: 12px;
    padding: 16px 20px 24px;
    margin: 24px 0;
    box-shadow: var(--shadow-soft);
}
.rating-block p { 
    font-weight: 500; 
    text-align: center; 
    padding-bottom: 10px;
}

/* ---- Scales (the row of radio buttons with end labels) ---- */
.scale {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
}
.scale > span { 
    flex: 0 0 200px; 
    font-size: 0.9rem; 
    color: var(--color-text-muted); 
}
.scale > span:first-child { 
    text-align: right; 
    padding: 0 20px 21px 0; 
}
.scale > span:last-child { 
    text-align: left; 
    padding: 0 0 21px 20px; 
}
.scale label { 
    cursor: pointer; 
    flex: 1; 
    display: flex; 
    flex-direction: column; 
    align-items: center; 
    font-size: 0.85rem;
}
.scale input[type="radio"] {
    width: 22px;
    height: 22px;
    margin: 0 0 6px;
}

.scale-key { display: none; }

/* =====================================================================
9. AI CHAT
===================================================================== */
#chat-box { 
    height: 45vh;
    overflow-y: auto;
    background: white;
    border: 1px solid var(--color-border);
    border-radius: 12px;
    padding: 12px;
}

.bubble {
    max-width: 80%; 
    padding: 10px 14px; 
    border-radius: 16px; 
    margin: 8px 0; 
    font-size: 0.95rem; 
}
.bubble.user { 
    background: var(--color-primary); 
    color: white; 
    margin-left: auto; 
}
.bubble.bot { 
    background: var(--color-primary-subtle); 
    color: var(--color-text); 
}
.bubble.note { 
    background: transparent; 
    color: var(--color-text-muted); 
    font-style: italic; 
    text-align: center; 
    max-width: 100%; 
}

.chat-input-row { 
    display: flex; 
    margin-top: 15px; 
}

#chat-input {
    flex: 1;
    border-right: none;
    border-radius: 8px 0 0 8px;
    font-size: 1rem;
    background: white;
}

#chat-send {
    background-color: var(--color-primary);
    color: white;
    border: 1.5px solid var(--color-primary);
    border-left: none;
    width: 90px;
    border-radius: 0 8px 8px 0;
    font-size: 1rem;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.2s ease;
}
#chat-send:hover { background-color: var(--color-primary-hover); }
#chat-send:disabled { 
    opacity: 0.6; 
    cursor: not-allowed; 
}

/* =====================================================================
10. TINDER PROFILE CARD
   Sized in em: the card's font-size shrinks with the screen, and everything inside follows.
===================================================================== */
.photo-note {
    font-size: 0.9rem;
    text-wrap: balance;
    color: var(--color-text-muted);
    font-style: italic; 
}

.profile-option { 
    --card-scale: 1;
    --text-boost: 1;
    position: relative; 
    container-type: inline-size; 
}   /* lets the card measure the width available to it */

.tinder_profile_card {
    --bold: 'Gotham Rounded Bold', sans-serif;

    position: relative;
    box-sizing: border-box;
    width: calc(var(--card-scale) * 100%);
    max-width: 435px;
    aspect-ratio: 435 / 930;
    margin: 3.125em auto;
    font-size: min(16px, calc(var(--card-scale) * 3.68cqw));
    font-family: 'Gotham Rounded Book', sans-serif;
    text-align: left;
    background: white;
    border: 0.5em solid black;
    border-radius: 3.125em;
    box-shadow: 0 1em 2em rgba(0, 0, 0, 0.12);
    overflow: hidden;
}

.tinder_profile_card::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 3em;
    background: linear-gradient(to bottom, transparent, white);
    pointer-events: none;                /* scrolling and taps still go through */
}

/* ---- Photos ---- */
.photo-stack { position: relative; isolation: isolate; }

.tinder_profile_card img {
    display: none;                    /* only the active photo shows */
    width: 100%;
    height: 37.5em;
    object-fit: cover;
}
.tinder_profile_card img.active { display: block; }

.photo-bars {
    position:absolute;
    top: 0.9375em;
    left: 1.5625em;
    right: 1.5625em;
    display: flex;
    gap: 0.375em;
    z-index: 2;
    pointer-events: none;
}
.photo-bars span {
    flex: 1;
    height: 0.25em;
    border-radius: 0.125em;
    border: 0.5px solid rgba(0, 0, 0, 0.08);
    background: rgba(0, 0, 0, 0.45);
}
.photo-bars span.active { background: white; }

.photo-prev,
.photo-next {
    position: absolute;
    top: 0;
    bottom: 0;
    width: 50%;
    padding: 0;
    border: 0;
    background: transparent;
    cursor: pointer;
    z-index: 1;
}
.photo-prev { left: 0; }
.photo-next { right: 0; }

/* ---- Swipe arrows ---- */
.photo-prev svg,
.photo-next svg {
    position: absolute;
    top: 50%;
    width: calc(1.6em * (1 + (var(--text-boost) - 1) * 0.25));
    height: calc(1.6em * (1 + (var(--text-boost) - 1) * 0.25));
    transform: translateY(-50%);                              /* vertically centred on the photo */
    fill: none;
    stroke: white;
    stroke-width: 2.5;
    stroke-linecap: round;
    stroke-linejoin: round;
    filter: drop-shadow(0 0 0.15em rgba(0, 0, 0, 0.6));      /* keeps them visible on light photos */
    pointer-events: none;                                    /* taps still go to the button */
}
.photo-prev svg { left: 0.5em; }
.photo-next svg { right: 0.5em; }

/* Hide the left arrow on the first photo and the right arrow on the last one */
.photo-stack:has(img:first-of-type.active) .photo-prev svg,
.photo-stack:has(img:last-of-type.active) .photo-next svg {
    display: none;
}
/* ---- Scrolling area ---- */
.profile-scroll {
    position: relative;
    height: 100%;
    overflow-x: hidden;
    overflow-y: auto;
    scrollbar-width: none;
}
.profile-scroll p {
    padding-right: 0.5em;
    overflow-wrap: break-word;
    white-space: pre-line;
}

.scroll-down-btn {
    --grow: calc(1 + (var(--text-boost) - 1) * 0.5);   /* 0 = no growth, 1 = full boost */
    --size: calc(3.5em * var(--grow));
    top: calc(37.5em - var(--size) / 2);
    width: var(--size);
    height: var(--size);
    position: absolute;
    right: 1.25em;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    font-size: inherit;               /* buttons ignore the parent's font size by default */
    border: none;
    border-radius: 50%;
    background: linear-gradient(135deg, #fd267a, #ff6036);
    box-shadow: 0 0.25em 0.625em rgba(0, 0, 0, 0.25);
    cursor: pointer;
}
.scroll-down-btn svg {
    width: calc(1.75em * var(--grow));
    height: calc(1.75em * var(--grow));
}

/* ---- Text. Each size is its normal em size times --text-boost. ---- */

.profile-name {
    margin: 0.893em 0 0 calc(0.5714em / var(--text-boost));    /* 1 ÷ 1.75 */
    font-size: calc(1.75em * var(--text-boost));
}
.profile-name span { font-family: var(--bold); }

.profile-details { margin: 0.5em 0 0; padding: 0 1em; }
.profile-details li {
    display: flex;
    align-items: center;
    gap: 0.18em;
    margin: 0.41em 0;
    font-size: calc(1.0625em * (1 + (var(--text-boost) - 1) * 0.5));
    color: var(--color-text-muted);
}
.profile-details svg {
    width: 1.35em;                    /* relative to the li's own font size */
    height: 1.35em;
    flex: none;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.looking-for-card {
    display: flex;
    align-items: center;
    gap: 14px;
    margin: 1.25em 1.25em 0;
    padding: 8px 10px;
    background: rgb(251, 234, 234);
    border-radius: 10px;
    color: #9b1c1c;
}

.looking-for-card span { font-size: 28px; }
.looking-for-card p {
    margin: 0 0 1px;
    font-size: 15px;
}
.looking-for-card strong {
    display: block;
    font-family: var(--bold);
    font-size: 17px;
    text-wrap: balance;
}

.profile-heading {
    margin: 1em 0 0.75em calc(0.8em / var(--text-boost));      /* 1 ÷ 1.25 */
    font-family: var(--bold);
    font-size: calc(1.25em * var(--text-boost));
}
.profile-bio {
    margin: 0 calc(1.333em / var(--text-boost)) calc(2.667em / var(--text-boost)) calc(1.0667em / var(--text-boost));   /* 1 ÷ 0.9375 on the left */
    font-size: calc(0.9375em * var(--text-boost));
}

/* ---- "Scroll down" cue beside the phone ---- */
.scroll-cue {
    position: absolute;
    top: 40%;
    left: calc(50% + min(435px, var(--card-scale) * 100%) / 2 + 8px);   /* just past the card's right edge */
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    font-size: 0.7rem;
    color: var(--color-primary);
    transition: opacity 0.4s ease;
    pointer-events: none;
}
.scroll-cue svg {
    width: 28px;
    height: 28px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2.5;
    stroke-linecap: round;
    stroke-linejoin: round;
    animation: cue-bounce 1.4s ease-in-out infinite;
}
.scroll-cue.done { opacity: 0; }                       /* added by profile.js after the first scroll */

@keyframes cue-bounce {
    0%, 100% { transform: translateY(0); }
    50%      { transform: translateY(10px); }
}
@media (prefers-reduced-motion: reduce) {
    .scroll-cue svg { animation: none; }
}

/* =====================================================================
11. SMALL EXTRAS
===================================================================== */
a[href^="mailto"]::before {
    white-space: nowrap;
}
/* =====================================================================
HOME PAGE
===================================================================== */
h2 {
    color: var(--color-secondary);
    font-size: 1.25rem;
    margin: 0 0 12px;
}
 
.home { padding: 0; overflow: hidden; }          /* sections run edge to edge inside the card */
 
.band {
    padding: 44px 48px;
    text-align: center;
}
.band-dark { background: var(--color-secondary); color: white; }
.band-dark h1,
.band-dark h3 { color: white;}
.band-dark a:not(.btn) { color: var(--color-primary); }
.band-tint { background: var(--color-primary-subtle); }
 
.subtitle { color: var(--color-text-muted); }
.band-dark .subtitle { color: var(--color-primary-subtle); }
.hook { max-width: 800px; margin: 20px auto 0; font-size: 1.1rem; }

/* ---- Interactive bubbles ---- */
.circle-container {
    display: flex;
    flex-wrap: wrap;           /* bubbles drop onto a new row on phones */
    justify-content: center;
    gap: 80px;
    padding: 70px 0 40px;      /* room for the zoom above and below */
}
 
.circle {
    width: 200px;
    height: 200px;
    background: var(--color-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    cursor: pointer;
    overflow: hidden;
    box-shadow: 0 4px 14px rgba(255, 77, 109, 0.3);
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1), background-color 0.3s ease;
}
.circle-content {
    padding: 22px;
    display: flex;
    flex-direction: column;
    align-items: center;
    overflow-wrap: anywhere;
}
.circle-title { 
    font-weight: bold; 
    transition: font-size 0.3s ease;
}
.circle-info {
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    font-size: 0.6rem;
    transition: opacity 0.3s ease, max-height 0.3s ease;
}
 
/* Zoom on hover (computers) or on tap / keyboard focus (phones) */
.circle:hover,
.circle:focus {
    transform: scale(1.6);
    background: var(--color-primary-hover);    /* deeper pink, easier to read */
    z-index: 10;
}
.circle:hover .circle-info,
.circle:focus .circle-info {
    max-height: 150px;
    opacity: 1;
}
.circle:hover .circle-title,
.circle:focus .circle-title {
    font-size: 0.85rem;
    padding-bottom: 10px;
}

/* ---- What's involved ---- */
.how {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    margin: 24px 0;
}
.how-item {
    flex: 1 1 200px;
    max-width: 260px;
    background: white;
    border: 1px solid var(--color-border);
    border-radius: 12px;
    padding: 20px 16px;
}
.how-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--color-primary-hover);
    color: white;
    font-weight: bold;
    margin-bottom: 8px;
}
.how-item p { margin: 0; }
 
.facts {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    padding: 0;
    gap: 10px;
}
.facts li {
    background: white;
    border: 1px solid var(--color-border);
    border-radius: 999px;
    padding: 6px 14px;
    font-size: 0.9rem;
}
.note { 
    font-size: 0.9rem; 
    color: var(--color-text-muted); 
    max-width: 560px; 
    margin: 0 auto 0; 
}

/* ---- About ---- */
.avatar {
    width: 140px;
    height: 140px;
    border-radius: 50%;
    object-fit:cover;
    flex: none;
    object-position: center top;
}
.band .card-row { 
    justify-content: center; 
    text-align: left; 
    margin: 20px 0 0; 
    max-width: 620px; 
    margin-inline: auto; 
}
.card-row p { margin: 0; }

.about { max-width: 820px; }             /* keeps lines a comfortable length */
.about p { line-height: 1.7; }
.about h2 { margin: 28px 0 8px; }

.about-photo {
    float: left;                         /* text wraps around it */
    width: 240px;
    height: 320px;
    object-fit: cover;
    object-position: center top;
    margin: 4px 28px 12px 0;
    border-radius: 18px;
    box-shadow: var(--shadow-soft);
}

.about-quote {
    clear: both;                         /* start below the photo */
    margin: 28px 0;
    padding: 18px 24px;
    background: var(--color-primary-subtle);
    border-inline: 4px solid var(--color-primary);
    border-radius: 10px;
    font-style: italic;
    text-wrap: balance;
}

/* Privacy note, styled like a chat bubble */
.callout {
    position: relative;
    max-width: 640px;
    margin: 0 auto;
    padding: 26px 32px 28px;
    background: white;
    border: 2px solid var(--color-primary);
    border-radius: 24px;
    box-shadow: var(--shadow-soft);
}
.callout::after {            /* the speech-bubble tail */
    content: "";
    position: absolute;
    left: 50%;
    bottom: -13.5px;
    width: 22px;
    height: 22px;
    background: white;
    border-right: 2px solid var(--color-primary);
    border-bottom: 2px solid var(--color-primary);
    transform: translateX(-50%) rotate(45deg);
}
.callout h2 { margin: 15px; }
.callout p { margin: 0 0 8px; font-size: 1.15rem; }
.callout p:last-child { margin-bottom: 0; }
.callout strong {            /* highlighter-pen effect */
    background: rgba(255, 77, 110, 0.175);
    padding: 0 4px;
    border-radius: 2px;
}

.callout .btn {     /* smaller than the big .btn */
    margin: 12px 0 5px;
    padding: 10px 15px;
    font-size: 0.7rem;
}

/* =====================================================================
12. MOBILE (phones)
===================================================================== */
@media (max-width: 600px) {

    /* ---- Layout ---- */
    h1 { font-size: 1.6rem; }
    .card { padding: 24px 20px; margin: 24px 16px; }
    .card.home { padding: 0; }            /* overflow: hidden is already set on .home */
    .card-row { flex-direction: column; }
    .step { margin: 12px 0 0; }

    /* ---- Nav ---- */
    .topnav { gap: 4px; padding-inline: 10px; }
    .topnav a { padding: 8px 9px; font-size: 13px; }

    /* ---- Home page ---- */
    .band { padding: 32px 18px; }
    .band .card-row { text-align: center; }
    .circle-container { gap: 30px; padding: 60px 0 50px; }

    /* ---- Text boxes (16px or more stops iPhone zoom) ---- */
    .step input[type="text"],
    .step textarea,
    #chat-input {
        padding: 8px 10px;
        font-size: 16px;
    }
    #chat-box { height: 35vh; }
    #chat-send { width: 70px; }

    /* ---- Rating scales: end labels on top, 7 radios in a row ---- */
    .scale {
        display: grid;
        grid-template-columns: repeat(7, 1fr);
        row-gap: 4px;
    }
    .scale > span:first-child,
    .scale > span:last-child {
        grid-column: 1 / -1;
        padding: 0;
        text-align: left;
        font-size: 0.85rem;
    }
    .scale > span:first-child { grid-row: 1; }
    .scale > span:last-child  { grid-row: 2; margin-bottom: 10px; }
    .scale > span:first-child::before { content: "1 = "; font-weight: bold; }
    .scale > span:last-child::before  { content: "7 = "; font-weight: bold; }
    .scale > label { grid-row: 3; }

    .rating-block { padding: 14px 12px 18px; }

    /* In the two rating steps, a single key replaces each card's end labels */
    .scale-key { display: block; margin: 0 0 12px; font-size: 0.9rem; color: var(--color-text-muted); }
    .scale-key span { display: block; }
    .rating-step .scale > span { display: none; }
    .rating-step .scale > label { grid-row: auto; }

    /* ---- Fake phone ---- */
    .profile-option {
        --card-scale: 0.8;
        --text-boost: 2;
    }

    /* ---- "Looking for" box: make room for the text on a narrow card ---- */
    .looking-for-card {
        margin: 1.25em 0.75em 0;
        gap: 8px;
        padding: 6px 8px;
    }
    .looking-for-card span { font-size: 18px; }
    .looking-for-card p { font-size: 10px; padding-right: 0; }
    .looking-for-card strong { font-size: 11px; }

    /* ---- About section ---- */
    .about-photo {
        float: none;
        display: block;
        width: 200px;
        height: 260px;
        margin: 0 auto 20px;
    }
    .contact-divider { display: none; }

}


