/* ============================================
   Treatly — Sweet Treat Tracker
   Global Styles
   ============================================ */

/* ---------- Fonts ---------- */
@font-face {
    font-family: 'Fredoka';
    src: url('../fonts/Fredoka-Variable.ttf') format('truetype');
    font-weight: 300 700;
    font-display: swap;
}
@font-face {
    font-family: 'Poppins';
    src: url('../fonts/Poppins-Regular.ttf') format('truetype');
    font-weight: 400;
    font-display: swap;
}
@font-face {
    font-family: 'Poppins';
    src: url('../fonts/Poppins-Medium.ttf') format('truetype');
    font-weight: 500;
    font-display: swap;
}
@font-face {
    font-family: 'Poppins';
    src: url('../fonts/Poppins-SemiBold.ttf') format('truetype');
    font-weight: 600;
    font-display: swap;
}

/* ---------- Design Tokens ---------- */
:root {
    --color-primary: #6D4C8D;
    --color-accent: #E8458B;
    --color-secondary: #9B6FB0;
    --color-surface: #FFF5FB;
    --color-bg: #F8F0F8;
    --color-text: #2A1F3D;
    --color-muted: #5A4D6A;
    --color-light: #b8a8c8;

    --font-display: 'Fredoka', sans-serif;
    --font-body: 'Poppins', -apple-system, BlinkMacSystemFont, sans-serif;

    --max-width: 1100px;
    --section-padding: 5rem 1.5rem;
}

/* ---------- Reset ---------- */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    color: var(--color-text);
    background: var(--color-bg);
    overflow-x: hidden;
    line-height: 1.6;
}

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

a {
    color: var(--color-accent);
    text-decoration: none;
}
a:hover {
    text-decoration: underline;
}

/* ---------- Utility ---------- */
.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 1.5rem;
}

.section {
    padding: var(--section-padding);
}

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

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* ---------- Typography ---------- */
h1, h2, h3 {
    font-family: var(--font-display);
    color: var(--color-primary);
    line-height: 1.2;
}

h1 { font-size: 3.2rem; font-weight: 700; }
h2 { font-size: 2.2rem; font-weight: 600; margin-bottom: 1rem; }
h3 { font-size: 1.3rem; font-weight: 600; margin-bottom: 0.5rem; }

.section-subtitle {
    font-size: 1.05rem;
    color: var(--color-muted);
    max-width: 600px;
    margin: 0 auto 3rem;
}

/* ---------- Buttons ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.9rem 2rem;
    border-radius: 50px;
    font-family: var(--font-display);
    font-size: 1.05rem;
    font-weight: 600;
    text-decoration: none;
    transition: transform 0.15s, box-shadow 0.3s;
    cursor: pointer;
    border: none;
}
.btn:hover {
    transform: translateY(-2px);
    text-decoration: none;
}
.btn:active {
    transform: translateY(0);
}

.btn--primary {
    background: linear-gradient(135deg, var(--color-accent), #d63a7a);
    color: white;
    box-shadow: 0 8px 32px rgba(232, 69, 139, 0.3);
}
.btn--primary:hover {
    box-shadow: 0 12px 40px rgba(232, 69, 139, 0.4);
}

.btn--secondary {
    background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
    color: white;
    box-shadow: 0 8px 32px rgba(109, 76, 141, 0.3);
}
.btn--secondary:hover {
    box-shadow: 0 12px 40px rgba(109, 76, 141, 0.4);
}

.btn--outline {
    background: transparent;
    color: var(--color-primary);
    border: 2px solid var(--color-secondary);
    box-shadow: none;
}
.btn--outline:hover {
    background: var(--color-surface);
}

/* ============================================
   NAV
   ============================================ */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    background: rgba(248, 240, 248, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(155, 111, 176, 0.1);
    padding: 0.75rem 0;
}

.nav__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 1.5rem;
}

.nav__logo {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    text-decoration: none;
}

.nav__logo img {
    width: 40px;
    height: 40px;
    border-radius: 10px;
}

.nav__logo span {
    font-family: var(--font-display);
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--color-primary);
}

.nav__links {
    display: flex;
    align-items: center;
    gap: 2rem;
    list-style: none;
}

.nav__links a {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--color-muted);
    text-decoration: none;
    transition: color 0.2s;
}
.nav__links a:hover {
    color: var(--color-accent);
    text-decoration: none;
}

.nav__cta {
    font-size: 0.85rem;
    padding: 0.55rem 1.4rem;
}

/* Mobile nav toggle */
.nav__toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
}
.nav__toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--color-primary);
    margin: 5px 0;
    transition: 0.3s;
}

/* ============================================
   HERO
   ============================================ */
.hero {
    padding: 8rem 1.5rem 4rem;
    text-align: center;
    position: relative;
    overflow: hidden;
    background: linear-gradient(160deg, #F8F0F8 0%, #FFF5FB 40%, #f0e6f6 100%);
}

.hero__content {
    max-width: 650px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

.hero__icon {
    width: 130px;
    height: 130px;
    border-radius: 32px;
    box-shadow: 0 20px 60px rgba(109, 76, 141, 0.25);
    margin: 0 auto 1.5rem;
    animation: iconFloat 4s ease-in-out infinite;
}

@keyframes iconFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
}

.hero h1 {
    margin-bottom: 0.25rem;
}

.hero__subtitle {
    font-family: var(--font-display);
    font-size: 1.2rem;
    font-weight: 500;
    color: var(--color-secondary);
    margin-bottom: 1.25rem;
}

.hero__tagline {
    font-size: 1.1rem;
    color: var(--color-muted);
    max-width: 480px;
    margin: 0 auto 2rem;
    line-height: 1.6;
}

.hero__tagline em {
    font-style: normal;
    color: var(--color-accent);
    font-weight: 500;
}

.hero__badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
    color: white;
    padding: 0.85rem 2rem;
    border-radius: 50px;
    font-family: var(--font-display);
    font-size: 1.05rem;
    font-weight: 600;
    box-shadow: 0 8px 32px rgba(109, 76, 141, 0.3);
    margin-bottom: 2rem;
}

/* Floating characters in hero */
.hero__characters {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
    z-index: 1;
}

.hero__char {
    position: absolute;
    opacity: 0.15;
    animation: charFloat 6s ease-in-out infinite;
}

@keyframes charFloat {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-12px) rotate(3deg); }
}

.hero__char--1 { width: 80px; top: 15%; left: 5%; animation-delay: 0s; }
.hero__char--2 { width: 70px; top: 25%; right: 8%; animation-delay: 1s; }
.hero__char--3 { width: 60px; bottom: 20%; left: 10%; animation-delay: 2s; }
.hero__char--4 { width: 75px; bottom: 15%; right: 5%; animation-delay: 0.5s; }
.hero__char--5 { width: 55px; top: 45%; left: 2%; animation-delay: 1.5s; }
.hero__char--6 { width: 65px; top: 50%; right: 3%; animation-delay: 2.5s; }

/* ============================================
   FEATURES
   ============================================ */
.features {
    background: white;
}

.features__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2.5rem;
    max-width: var(--max-width);
    margin: 0 auto;
}

.feature-card {
    text-align: center;
    padding: 2rem 1.5rem;
    border-radius: 20px;
    background: var(--color-surface);
    transition: transform 0.2s, box-shadow 0.2s;
}
.feature-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(109, 76, 141, 0.12);
}

.feature-card__icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 1rem;
    /* slight tilt for playfulness */
}
.feature-card:nth-child(even) .feature-card__icon {
    transform: rotate(-3deg);
}
.feature-card:nth-child(odd) .feature-card__icon {
    transform: rotate(3deg);
}

.feature-card h3 {
    color: var(--color-primary);
}

.feature-card p {
    font-size: 0.92rem;
    color: var(--color-muted);
    line-height: 1.5;
}

/* ============================================
   HOW IT WORKS
   ============================================ */
.how-it-works {
    background: var(--color-bg);
}

.steps {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    max-width: 900px;
    margin: 0 auto;
    position: relative;
}

/* Connecting line between steps */
.steps::before {
    content: '';
    position: absolute;
    top: 50px;
    left: 15%;
    right: 15%;
    height: 3px;
    background: linear-gradient(90deg, var(--color-secondary), var(--color-accent), var(--color-secondary));
    border-radius: 2px;
    opacity: 0.3;
}

.step {
    text-align: center;
    position: relative;
    z-index: 1;
}

.step__number {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--color-accent), #d63a7a);
    color: white;
    font-family: var(--font-display);
    font-size: 1.3rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    box-shadow: 0 4px 16px rgba(232, 69, 139, 0.3);
}

.step__image {
    width: 100px;
    height: 100px;
    margin: 0 auto 1rem;
}

.step h3 {
    margin-bottom: 0.5rem;
}

.step p {
    font-size: 0.9rem;
    color: var(--color-muted);
    max-width: 250px;
    margin: 0 auto;
}

/* ============================================
   PRO SECTION
   ============================================ */
.pro {
    background: linear-gradient(135deg, var(--color-primary), #8B5CB8);
    color: white;
    position: relative;
    overflow: hidden;
}

.pro h2 {
    color: white;
}

.pro .section-subtitle {
    color: rgba(255, 255, 255, 0.8);
}

.pro__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.5rem;
    max-width: 800px;
    margin: 0 auto 2rem;
}

.pro__item {
    background: rgba(255, 255, 255, 0.12);
    border-radius: 16px;
    padding: 1.5rem;
    backdrop-filter: blur(8px);
    text-align: center;
}

.pro__item h3 {
    color: white;
    font-size: 1.1rem;
    margin-bottom: 0.4rem;
}

.pro__item p {
    font-size: 0.88rem;
    color: rgba(255, 255, 255, 0.75);
}

.pro__price {
    font-family: var(--font-display);
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
}

.pro__price-note {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 2rem;
}

/* Floating character decoration */
.pro__char {
    position: absolute;
    opacity: 0.1;
    pointer-events: none;
}
.pro__char--1 { width: 120px; top: 10%; right: 5%; transform: rotate(15deg); }
.pro__char--2 { width: 100px; bottom: 10%; left: 5%; transform: rotate(-10deg); }

/* ============================================
   PRIVACY CALLOUT
   ============================================ */
.privacy-callout {
    background: white;
}

.privacy-callout__inner {
    max-width: 750px;
    margin: 0 auto;
    text-align: center;
}

.privacy-callout__badges {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1.5rem;
    margin-top: 2rem;
}

.privacy-badge {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    background: var(--color-surface);
    padding: 0.8rem 1.4rem;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--color-primary);
}

.privacy-badge__icon {
    font-size: 1.3rem;
}

/* ============================================
   FAQ
   ============================================ */
.faq {
    background: var(--color-bg);
}

.faq__list {
    max-width: 700px;
    margin: 0 auto;
}

.faq__item {
    background: white;
    border-radius: 16px;
    margin-bottom: 1rem;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(109, 76, 141, 0.06);
}

.faq__question {
    width: 100%;
    background: none;
    border: none;
    padding: 1.25rem 1.5rem;
    font-family: var(--font-body);
    font-size: 1rem;
    font-weight: 600;
    color: var(--color-text);
    text-align: left;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: color 0.2s;
}
.faq__question:hover {
    color: var(--color-accent);
}

.faq__arrow {
    font-size: 1.2rem;
    transition: transform 0.3s;
    color: var(--color-secondary);
}

.faq__item.active .faq__arrow {
    transform: rotate(180deg);
}

.faq__answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
}

.faq__item.active .faq__answer {
    max-height: 300px;
}

.faq__answer p {
    padding: 0 1.5rem 1.25rem;
    font-size: 0.92rem;
    color: var(--color-muted);
    line-height: 1.6;
}

/* ============================================
   CTA SECTION
   ============================================ */
.cta-section {
    background: linear-gradient(160deg, #FFF5FB 0%, var(--color-bg) 100%);
    text-align: center;
}

.cta-section__characters {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.cta-section__char {
    width: 55px;
    height: 55px;
    animation: charFloat 4s ease-in-out infinite;
}
.cta-section__char:nth-child(2) { animation-delay: 0.3s; }
.cta-section__char:nth-child(3) { animation-delay: 0.6s; }
.cta-section__char:nth-child(4) { animation-delay: 0.9s; }
.cta-section__char:nth-child(5) { animation-delay: 1.2s; }

/* ============================================
   FOOTER
   ============================================ */
.footer {
    background: var(--color-text);
    color: rgba(255, 255, 255, 0.6);
    padding: 3rem 1.5rem 2rem;
}

.footer__inner {
    max-width: var(--max-width);
    margin: 0 auto;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 2rem;
}

.footer__brand {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
}
.footer__brand img {
    width: 32px;
    height: 32px;
    border-radius: 8px;
}
.footer__brand span {
    font-family: var(--font-display);
    font-size: 1.2rem;
    font-weight: 600;
    color: white;
}

.footer__tagline {
    font-size: 0.85rem;
    line-height: 1.5;
    margin-bottom: 1rem;
}

.footer__social {
    display: flex;
    gap: 1rem;
}
.footer__social a {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.85rem;
    transition: color 0.2s;
}
.footer__social a:hover {
    color: var(--color-accent);
    text-decoration: none;
}

.footer h4 {
    font-family: var(--font-display);
    font-size: 0.95rem;
    font-weight: 600;
    color: white;
    margin-bottom: 0.75rem;
}

.footer__links {
    list-style: none;
}
.footer__links li {
    margin-bottom: 0.5rem;
}
.footer__links a {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.85rem;
    transition: color 0.2s;
}
.footer__links a:hover {
    color: var(--color-accent);
    text-decoration: none;
}

.footer__bottom {
    max-width: var(--max-width);
    margin: 2rem auto 0;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
    font-size: 0.8rem;
}

/* ============================================
   SUBPAGE STYLES (Privacy, Terms, Support)
   ============================================ */
.subpage {
    padding: 8rem 1.5rem 4rem;
    max-width: 750px;
    margin: 0 auto;
}

.subpage h1 {
    font-size: 2.4rem;
    margin-bottom: 0.5rem;
}

.subpage__updated {
    font-size: 0.85rem;
    color: var(--color-muted);
    margin-bottom: 2rem;
}

.subpage h2 {
    font-size: 1.4rem;
    margin-top: 2rem;
    margin-bottom: 0.75rem;
}

.subpage p {
    color: var(--color-muted);
    margin-bottom: 1rem;
    line-height: 1.7;
}

.subpage ul {
    color: var(--color-muted);
    margin-bottom: 1rem;
    padding-left: 1.5rem;
    line-height: 1.7;
}

.subpage a {
    color: var(--color-accent);
}

/* ============================================
   USE-CASE PAGES
   ============================================ */

/* --- UC Hero --- */
.uc-hero {
    padding: 8rem 1.5rem 4rem;
    text-align: center;
    position: relative;
    overflow: hidden;
    background: linear-gradient(160deg, #F8F0F8 0%, #FFF5FB 40%, #f0e6f6 100%);
}

.uc-hero__content {
    max-width: 650px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

.uc-hero__mascot {
    width: 160px;
    height: 160px;
    border-radius: 36px;
    box-shadow: 0 20px 60px rgba(109, 76, 141, 0.2);
    margin: 0 auto 1.5rem;
    animation: iconFloat 4s ease-in-out infinite;
}

.uc-hero h1 {
    margin-bottom: 1rem;
}

.uc-hero__tagline {
    font-size: 1.1rem;
    color: var(--color-muted);
    max-width: 520px;
    margin: 0 auto 2rem;
    line-height: 1.7;
}

.uc-hero__characters {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
    z-index: 1;
}

.uc-hero__char {
    position: absolute;
    opacity: 0.12;
    animation: charFloat 6s ease-in-out infinite;
}
.uc-hero__char--1 { top: 20%; right: 6%; animation-delay: 0s; }
.uc-hero__char--2 { bottom: 18%; left: 6%; animation-delay: 1.5s; }

/* --- Problem / Solution --- */
.uc-problem {
    background: white;
}

.uc-problem__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    max-width: 900px;
    margin: 0 auto;
}

.uc-problem__block {
    padding: 2rem;
    border-radius: 20px;
}

.uc-problem__block--before {
    background: #fef2f2;
}

.uc-problem__block--after {
    background: var(--color-surface);
}

.uc-problem__block h2 {
    font-size: 1.5rem;
    margin-bottom: 1.25rem;
}

.uc-problem__block--before h2 {
    color: #b45454;
}

.uc-problem__list {
    list-style: none;
    padding: 0;
}

.uc-problem__list li {
    position: relative;
    padding-left: 1.75rem;
    margin-bottom: 1rem;
    font-size: 0.95rem;
    color: var(--color-muted);
    line-height: 1.55;
}

.uc-problem__list li::before {
    content: '✗';
    position: absolute;
    left: 0;
    top: 0;
    font-weight: 700;
    color: #d66;
}

.uc-problem__list--solved li::before {
    content: '✓';
    color: var(--color-accent);
}

/* --- UC Features --- */
.uc-features {
    background: var(--color-bg);
}

.uc-features__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 2rem;
    max-width: var(--max-width);
    margin: 0 auto;
}

.uc-feature {
    text-align: center;
    padding: 2rem 1.5rem;
    border-radius: 20px;
    background: white;
    transition: transform 0.2s, box-shadow 0.2s;
}
.uc-feature:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(109, 76, 141, 0.1);
}

.uc-feature__icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 1rem;
}
.uc-feature:nth-child(even) .uc-feature__icon { transform: rotate(-3deg); }
.uc-feature:nth-child(odd) .uc-feature__icon { transform: rotate(3deg); }

.uc-feature h3 { color: var(--color-primary); }
.uc-feature p { font-size: 0.92rem; color: var(--color-muted); line-height: 1.55; }

/* --- Why Section --- */
.uc-why {
    background: white;
}

.uc-why__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    max-width: 900px;
    margin: 0 auto;
}

.uc-why__item {
    text-align: center;
    padding: 2rem 1.5rem;
}

.uc-why__emoji {
    font-size: 2.5rem;
    display: block;
    margin-bottom: 0.75rem;
}

.uc-why__item h3 {
    color: var(--color-primary);
    font-size: 1.15rem;
    margin-bottom: 0.5rem;
}

.uc-why__item p {
    font-size: 0.92rem;
    color: var(--color-muted);
    line-height: 1.55;
}

/* --- Guides Grid --- */
.guides-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 1.5rem;
    max-width: var(--max-width);
    margin: 0 auto;
}

.guide-card {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    padding: 1.5rem;
    background: white;
    border-radius: 20px;
    text-decoration: none;
    transition: transform 0.2s, box-shadow 0.2s;
    box-shadow: 0 2px 8px rgba(109, 76, 141, 0.06);
}
.guide-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(109, 76, 141, 0.12);
    text-decoration: none;
}

.guide-card__img {
    width: 90px;
    height: 90px;
    border-radius: 20px;
    flex-shrink: 0;
    box-shadow: 0 4px 16px rgba(109, 76, 141, 0.12);
}

.guide-card__body h2 {
    font-size: 1.15rem;
    margin-bottom: 0.3rem;
    color: var(--color-primary);
}

.guide-card__body p {
    font-size: 0.88rem;
    color: var(--color-muted);
    line-height: 1.5;
    margin-bottom: 0.5rem;
}

.guide-card__link {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--color-accent);
}

/* --- Cross-Links (use-case pages) --- */
.uc-crosslinks {
    background: var(--color-bg);
    padding: 3rem 1.5rem;
}

.uc-crosslinks h2 {
    text-align: center;
    margin-bottom: 2rem;
}

.uc-crosslinks__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.25rem;
    max-width: 900px;
    margin: 0 auto;
}

.uc-crosslink {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.25rem;
    background: white;
    border-radius: 16px;
    text-decoration: none;
    transition: transform 0.15s, box-shadow 0.15s;
}
.uc-crosslink:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(109, 76, 141, 0.1);
    text-decoration: none;
}

.uc-crosslink__img {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    flex-shrink: 0;
}

.uc-crosslink__text h3 {
    font-size: 0.95rem;
    margin-bottom: 0.1rem;
    color: var(--color-primary);
}

.uc-crosslink__text p {
    font-size: 0.8rem;
    color: var(--color-muted);
    line-height: 1.4;
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 768px) {
    :root {
        --section-padding: 3.5rem 1.25rem;
    }

    h1 { font-size: 2.4rem; }
    h2 { font-size: 1.8rem; }

    /* Nav mobile */
    .nav__links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: rgba(248, 240, 248, 0.98);
        backdrop-filter: blur(12px);
        flex-direction: column;
        padding: 1rem 1.5rem;
        gap: 1rem;
        border-bottom: 1px solid rgba(155, 111, 176, 0.1);
    }
    .nav__links.open {
        display: flex;
    }
    .nav__toggle {
        display: block;
    }

    /* Hero */
    .hero {
        padding: 7rem 1.25rem 3rem;
    }
    .hero__icon {
        width: 110px;
        height: 110px;
        border-radius: 28px;
    }
    .hero__char { display: none; }
    .uc-hero__char { display: none; }

    /* UC Problem grid stack */
    .uc-problem__grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

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

    .uc-crosslinks__grid {
        grid-template-columns: 1fr;
    }

    /* Steps */
    .steps {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }
    .steps::before {
        display: none;
    }

    /* Footer */
    .footer__inner {
        grid-template-columns: 1fr;
        text-align: center;
    }
    .footer__social {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    h1 { font-size: 2rem; }

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

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

    .privacy-callout__badges {
        flex-direction: column;
        align-items: center;
    }
}

/* ============================================
   BLOG
   ============================================ */

/* Blog index grid */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.blog-card {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 4px 16px rgba(109, 76, 141, 0.08);
    transition: transform 0.25s, box-shadow 0.25s;
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
}
.blog-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(109, 76, 141, 0.14);
}

.blog-card__thumb {
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    background: var(--color-surface);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}
.blog-card__thumb img {
    max-height: 100%;
    max-width: 140px;
}

.blog-card__body {
    padding: 1.5rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.blog-card__tag {
    display: inline-block;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--color-secondary);
    margin-bottom: 0.5rem;
}

.blog-card__body h2 {
    font-family: var(--font-display);
    font-size: 1.2rem;
    color: var(--color-text);
    margin-bottom: 0.5rem;
    line-height: 1.3;
}

.blog-card__body p {
    font-size: 0.88rem;
    color: var(--color-muted);
    line-height: 1.55;
    flex: 1;
}

.blog-card__link {
    display: inline-block;
    margin-top: 1rem;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--color-accent);
}

/* Blog article */
.blog-article {
    max-width: 720px;
    margin: 0 auto;
    padding: 6rem 1.5rem 4rem;
}

.blog-article__meta {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.blog-article__tag {
    font-size: 0.72rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: white;
    background: var(--color-secondary);
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
}

.blog-article__date {
    font-size: 0.82rem;
    color: var(--color-muted);
}

.blog-article h1 {
    font-size: 2.2rem;
    line-height: 1.2;
    margin-bottom: 0.5rem;
}

.blog-article__subtitle {
    font-size: 1.1rem;
    color: var(--color-muted);
    line-height: 1.5;
    margin-bottom: 2rem;
}

.blog-article__hero-img {
    display: block;
    margin: 0 auto 2.5rem;
    max-width: 200px;
}

.blog-article h2 {
    font-family: var(--font-display);
    font-size: 1.4rem;
    color: var(--color-text);
    margin: 2.5rem 0 0.75rem;
}

.blog-article p {
    font-size: 0.95rem;
    color: var(--color-muted);
    line-height: 1.75;
    margin-bottom: 1.25rem;
}

.blog-article blockquote {
    border-left: 4px solid var(--color-accent);
    margin: 2rem 0;
    padding: 1rem 1.5rem;
    background: var(--color-surface);
    border-radius: 0 12px 12px 0;
    font-style: italic;
    color: var(--color-text);
}

.blog-article blockquote p {
    color: var(--color-text);
    margin-bottom: 0;
}

.blog-article__cta {
    text-align: center;
    margin-top: 3rem;
    padding: 2.5rem 1.5rem;
    background: var(--color-surface);
    border-radius: 20px;
}

.blog-article__cta h3 {
    font-family: var(--font-display);
    font-size: 1.3rem;
    color: var(--color-text);
    margin-bottom: 0.5rem;
}

.blog-article__cta p {
    text-align: center;
    margin-bottom: 1.25rem;
}

@media (max-width: 768px) {
    .blog-grid {
        grid-template-columns: 1fr;
    }

    .blog-article h1 {
        font-size: 1.7rem;
    }
}

/* ============================================
   PRESS / ABOUT PAGE
   ============================================ */
.press-story {
    max-width: 780px;
    margin: 0 auto;
    margin-top: -3rem;
    padding: 0 1.5rem;
}

.press-story p {
    font-size: 1rem;
    color: var(--color-muted);
    line-height: 1.8;
    margin-bottom: 1.5rem;
}

.press-story h2 {
    font-family: var(--font-display);
    font-size: 1.5rem;
    color: var(--color-text);
    margin: 3rem 0 1rem;
}

.press-photo {
    border-radius: 20px;
    overflow: hidden;
    margin: 2rem 0;
    box-shadow: 0 6px 24px rgba(109, 76, 141, 0.1);
}

.press-photo img {
    width: 100%;
    height: auto;
    display: block;
}

.press-photo figcaption {
    font-size: 0.82rem;
    color: var(--color-muted);
    padding: 0.75rem 1rem;
    background: var(--color-surface);
    text-align: center;
    font-style: italic;
}

.press-photo--pair {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin: 2rem 0;
    box-shadow: none;
    border-radius: 0;
    overflow: visible;
}

.press-photo--pair .press-photo {
    margin: 0;
}

.press-links {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    margin: 1.5rem 0;
}

.press-links a {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--color-accent);
    text-decoration: none;
    padding: 0.5rem 1rem;
    border: 2px solid var(--color-accent);
    border-radius: 12px;
    transition: background 0.2s, color 0.2s;
}

.press-links a:hover {
    background: var(--color-accent);
    color: white;
}

.press-assets {
    background: var(--color-surface);
    border-radius: 20px;
    padding: 2rem;
    margin: 2.5rem 0;
}

.press-assets h3 {
    font-family: var(--font-display);
    font-size: 1.15rem;
    color: var(--color-text);
    margin-bottom: 1rem;
}

.press-assets__grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
    gap: 1rem;
    align-items: center;
}

.press-assets__grid img {
    width: 100%;
    border-radius: 12px;
}

.press-quote {
    border-left: 4px solid var(--color-accent);
    margin: 2.5rem 0;
    padding: 1.25rem 1.5rem;
    background: var(--color-surface);
    border-radius: 0 16px 16px 0;
}

.press-quote p {
    font-size: 1.1rem;
    font-style: italic;
    color: var(--color-text);
    line-height: 1.6;
    margin-bottom: 0.5rem;
}

.press-quote cite {
    font-size: 0.85rem;
    color: var(--color-muted);
    font-style: normal;
}

@media (max-width: 768px) {
    .press-photo--pair {
        grid-template-columns: 1fr;
    }
}

/* ===== SCREENSHOT GALLERY ===== */
.screenshots {
    padding-bottom: 2rem;
    overflow: hidden;
}

.screenshots__track-wrapper {
    position: relative;
    width: 100%;
    overflow: hidden;
    -webkit-mask-image: linear-gradient(to right, transparent 0%, black 5%, black 95%, transparent 100%);
    mask-image: linear-gradient(to right, transparent 0%, black 5%, black 95%, transparent 100%);
}

.screenshots__track {
    display: flex;
    gap: 1.5rem;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding: 1rem 2rem 0.5rem;
    scroll-behavior: smooth;
}

.screenshots__track::-webkit-scrollbar {
    display: none;
}

.screenshots__slide {
    flex: 0 0 auto;
    scroll-snap-align: center;
    text-align: center;
}

.phone-frame {
    width: 220px;
    border-radius: 28px;
    overflow: hidden;
    box-shadow: 0 8px 30px rgba(109, 76, 141, 0.18), 0 2px 8px rgba(0, 0, 0, 0.08);
    border: 4px solid #e0d4eb;
    background: #fff;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.phone-frame:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(109, 76, 141, 0.25), 0 4px 12px rgba(0, 0, 0, 0.1);
}

.phone-frame img {
    display: block;
    width: 100%;
    height: auto;
}

.screenshots__label {
    margin-top: 0.75rem;
    font-family: 'Fredoka', sans-serif;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--color-muted, #5A4D6A);
}

@media (max-width: 768px) {
    .phone-frame {
        width: 180px;
        border-radius: 24px;
    }

    .screenshots__track {
        gap: 1rem;
        padding: 1rem 1.5rem 0.5rem;
    }
}

@media (max-width: 480px) {
    .phone-frame {
        width: 160px;
        border-radius: 20px;
        border-width: 3px;
    }

    .screenshots__track {
        gap: 0.75rem;
        padding: 0.75rem 1rem 0.5rem;
    }

    .screenshots__label {
        font-size: 0.8rem;
    }
}
