/* ============================================
   CozyPages - Cozy Design System
   Warm, colorful, friendly - like the app icon
   ============================================ */

/* --- Custom Properties --- */
:root {
    /* Primary palette - derived from the icon */
    --primary: #F4845F;          /* Warm sunset orange */
    --primary-dark: #E06940;
    --primary-light: #FFB088;
    --secondary: #7C5CBF;        /* Soft purple */
    --secondary-light: #A78BFA;

    /* Accent colors from the icon */
    --accent-yellow: #FFD166;    /* Heart yellow */
    --accent-pink: #FF8FA3;      /* Soft pink */
    --accent-green: #6BCB77;     /* Leaf green */
    --accent-sky: #89CFF0;       /* Sky blue */
    --accent-peach: #FFDAB9;     /* Peach */

    /* Gradient */
    --gradient-warm: linear-gradient(135deg, #F4845F, #FF8FA3, #FFD166);
    --gradient-sunset: linear-gradient(135deg, #F4845F, #E06940, #FF8FA3);
    --gradient-hero: linear-gradient(160deg, #FFF5EE 0%, #FFE8D6 30%, #FFDAB9 60%, #FFD6CC 100%);
    --gradient-text: linear-gradient(135deg, #F4845F, #FF8FA3);

    /* Neutrals */
    --text: #2D2D2D;
    --text-light: #666666;
    --text-lighter: #999999;
    --bg-light: #FFFAF5;
    --bg-white: #FFFFFF;
    --bg-cream: #FFF8F0;
    --bg-warm-gray: #FAF5F0;
    --border: #F0E6DB;
    --border-light: #F5EDE4;

    /* Shadows */
    --shadow-sm: 0 2px 8px rgba(244, 132, 95, 0.08);
    --shadow-md: 0 4px 20px rgba(244, 132, 95, 0.12);
    --shadow-lg: 0 8px 40px rgba(244, 132, 95, 0.15);
    --shadow-xl: 0 16px 60px rgba(244, 132, 95, 0.2);
    --shadow-card: 0 4px 24px rgba(0, 0, 0, 0.06);

    /* Typography */
    --font-display: 'Nunito', system-ui, -apple-system, sans-serif;
    --font-body: 'Quicksand', system-ui, -apple-system, sans-serif;

    /* Spacing */
    --nav-height: 72px;
    --section-padding: 100px;
    --container-max: 1200px;

    /* Radius */
    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --radius-xl: 32px;
    --radius-pill: 100px;
}

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

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--font-body);
    font-size: 17px;
    line-height: 1.7;
    color: var(--text);
    background: var(--bg-light);
    overflow-x: hidden;
}

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

a {
    text-decoration: none;
    color: inherit;
    transition: color 0.2s;
}

ul {
    list-style: none;
}

h1, h2, h3, h4 {
    font-family: var(--font-display);
    font-weight: 800;
    line-height: 1.2;
}

h2 {
    font-size: clamp(2rem, 4vw, 3rem);
    color: var(--text);
}

h3 {
    font-size: clamp(1.2rem, 2vw, 1.5rem);
    font-weight: 700;
}

/* --- Container --- */
.container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 24px;
}

.container-narrow {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 24px;
}

/* --- Utilities --- */
.gradient-text {
    background: var(--gradient-text);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

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

.section-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 64px;
}

.section-header p {
    margin-top: 16px;
    font-size: 1.15rem;
    color: var(--text-light);
}

/* --- Buttons --- */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 28px;
    border-radius: var(--radius-pill);
    font-family: var(--font-body);
    font-weight: 700;
    font-size: 1rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    border: none;
    white-space: nowrap;
}

.btn-primary {
    background: var(--gradient-sunset);
    color: white;
    box-shadow: 0 4px 16px rgba(244, 132, 95, 0.35);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 28px rgba(244, 132, 95, 0.45);
}

.btn-secondary {
    background: var(--bg-white);
    color: var(--primary);
    border: 2px solid var(--border);
    box-shadow: var(--shadow-sm);
}

.btn-secondary:hover {
    border-color: var(--primary-light);
    background: #FFF5EE;
    transform: translateY(-2px);
}

.btn-lg {
    padding: 16px 36px;
    font-size: 1.1rem;
}

.btn-nav {
    background: var(--gradient-sunset);
    color: white;
    padding: 10px 24px;
    font-size: 0.9rem;
    box-shadow: 0 2px 12px rgba(244, 132, 95, 0.3);
}

.btn-nav:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(244, 132, 95, 0.4);
}

/* --- Navbar --- */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--nav-height);
    z-index: 1000;
    transition: all 0.3s;
    background: rgba(255, 250, 245, 0.7);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
}

.navbar.scrolled {
    background: rgba(255, 250, 245, 0.95);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.06);
}

.nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-family: var(--font-display);
    font-weight: 800;
    font-size: 1.3rem;
    color: var(--text);
}

.nav-logo img {
    border-radius: 10px;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 32px;
}

.nav-links a {
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--text-light);
    transition: color 0.2s;
}

.nav-links a:hover {
    color: var(--primary);
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
}

.nav-toggle span {
    display: block;
    width: 24px;
    height: 2.5px;
    background: var(--text);
    border-radius: 2px;
    transition: all 0.3s;
}

/* --- Hero --- */
.hero {
    position: relative;
    min-height: 100vh;
    padding: calc(var(--nav-height) + 60px) 0 160px;
    background: var(--gradient-hero);
    overflow: hidden;
}

.hero-bg-shapes {
    position: absolute;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
}

.shape {
    position: absolute;
    border-radius: 50%;
    opacity: 0.15;
}

.shape-1 {
    width: 400px;
    height: 400px;
    background: var(--accent-yellow);
    top: -100px;
    right: -100px;
    animation: float-slow 8s ease-in-out infinite;
}

.shape-2 {
    width: 300px;
    height: 300px;
    background: var(--accent-pink);
    bottom: 10%;
    left: -80px;
    animation: float-slow 10s ease-in-out infinite reverse;
}

.shape-3 {
    width: 200px;
    height: 200px;
    background: var(--accent-green);
    top: 30%;
    left: 10%;
    animation: float-slow 12s ease-in-out infinite;
}

.shape-4 {
    width: 150px;
    height: 150px;
    background: var(--accent-sky);
    top: 20%;
    right: 20%;
    animation: float-slow 9s ease-in-out infinite reverse;
}

.shape-5 {
    width: 100px;
    height: 100px;
    background: var(--primary);
    bottom: 30%;
    right: 10%;
    animation: float-slow 7s ease-in-out infinite;
}

@keyframes float-slow {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(20px, -20px) scale(1.05); }
}

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

.hero-badge {
    display: inline-block;
    background: rgba(244, 132, 95, 0.12);
    color: var(--primary);
    padding: 8px 20px;
    border-radius: var(--radius-pill);
    font-weight: 700;
    font-size: 0.85rem;
    margin-bottom: 24px;
    letter-spacing: 0.5px;
}

.hero h1 {
    font-size: clamp(2.5rem, 5vw, 3.8rem);
    margin-bottom: 24px;
    color: var(--text);
}

.hero-subtitle {
    font-size: 1.2rem;
    color: var(--text-light);
    max-width: 520px;
    margin-bottom: 36px;
    line-height: 1.8;
}

.hero-ctas {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 48px;
}

.hero-stats {
    display: flex;
    gap: 32px;
}

.stat {
    display: flex;
    align-items: center;
    gap: 12px;
}

.stat-icon {
    font-size: 1.5rem;
}

.stat strong {
    display: block;
    font-weight: 800;
    font-family: var(--font-display);
    color: var(--text);
}

.stat div span {
    font-size: 0.85rem;
    color: var(--text-lighter);
}

/* Hero Screenshot */
.hero-screenshot-wrapper {
    position: relative;
}

.hero-screenshot {
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-xl);
    border: 1px solid rgba(255, 255, 255, 0.5);
}

.floating-element {
    position: absolute;
    font-size: 2rem;
    animation: float 4s ease-in-out infinite;
    filter: drop-shadow(0 4px 8px rgba(0,0,0,0.1));
}

.floating-heart {
    top: -20px;
    right: 10%;
    animation-delay: 0s;
}

.floating-flower {
    bottom: 10%;
    left: -30px;
    animation-delay: 1s;
    font-size: 2.5rem;
}

.floating-leaf {
    top: 30%;
    right: -25px;
    animation-delay: 2s;
}

.floating-sparkle {
    top: 10%;
    left: 5%;
    animation-delay: 0.5s;
    font-size: 1.5rem;
}

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

.hero-wave {
    position: absolute;
    bottom: -2px;
    left: 0;
    right: 0;
    line-height: 0;
}

.hero-wave svg {
    width: 100%;
    height: 120px;
}

/* --- Story Section --- */
.section-story {
    background: var(--bg-light);
}

.story-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.story-content h2 {
    margin-bottom: 24px;
}

.story-lead {
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 16px;
}

.story-content p {
    color: var(--text-light);
    margin-bottom: 12px;
}

.story-visual {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.story-card {
    background: var(--bg-white);
    border-radius: var(--radius-lg);
    padding: 32px;
    border: 1px solid var(--border-light);
    box-shadow: var(--shadow-card);
}

.story-card-after {
    background: linear-gradient(135deg, #FFF5EE, #FFFAF5);
    border-color: var(--primary-light);
    box-shadow: 0 4px 24px rgba(244, 132, 95, 0.1);
}

.story-card-icon {
    font-size: 2rem;
    margin-bottom: 12px;
}

.story-card h3 {
    margin-bottom: 16px;
    color: var(--text);
}

.story-card ul {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.story-card li {
    padding-left: 24px;
    position: relative;
    color: var(--text-light);
}

.story-card li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 10px;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--border);
}

.story-card-after li::before {
    background: var(--accent-green);
}

/* --- Features Section --- */
.section-features {
    background: var(--bg-cream);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}

.feature-card {
    background: var(--bg-white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid var(--border-light);
    box-shadow: var(--shadow-card);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.feature-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.feature-card-large {
    grid-column: span 2;
    display: grid;
    grid-template-columns: 1.2fr 1fr;
}

.feature-image {
    overflow: hidden;
    background: #1a1a2e;
}

.feature-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.feature-card:hover .feature-image img {
    transform: scale(1.03);
}

.feature-content {
    padding: 32px;
}

.feature-icon {
    font-size: 2rem;
    margin-bottom: 16px;
}

.feature-content h3 {
    margin-bottom: 12px;
}

.feature-content p {
    color: var(--text-light);
    line-height: 1.7;
}

/* Feature Pills */
.feature-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
    margin-top: 48px;
}

.pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: var(--bg-white);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-pill);
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--text);
    box-shadow: var(--shadow-sm);
    transition: all 0.3s;
}

.pill:hover {
    border-color: var(--primary-light);
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.pill span {
    font-size: 1.1rem;
}

/* --- How it Works --- */
.section-how {
    background: var(--bg-light);
}

.steps {
    display: flex;
    flex-direction: column;
    gap: 24px;
    max-width: 700px;
    margin: 0 auto;
}

.step {
    display: flex;
    gap: 24px;
    align-items: flex-start;
    padding: 32px;
    background: var(--bg-white);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-light);
    box-shadow: var(--shadow-card);
    transition: all 0.3s;
}

.step:hover {
    transform: translateX(8px);
    box-shadow: var(--shadow-md);
}

.step-number {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--gradient-warm);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-display);
    font-weight: 800;
    font-size: 1.3rem;
    box-shadow: 0 4px 12px rgba(244, 132, 95, 0.3);
}

.step-content h3 {
    margin-bottom: 8px;
}

.step-content p {
    color: var(--text-light);
}

/* --- Print Guide --- */
.section-print {
    background: var(--bg-cream);
}

.print-methods {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
    margin-bottom: 40px;
}

.print-method {
    background: var(--bg-white);
    border-radius: var(--radius-lg);
    padding: 40px;
    border: 1px solid var(--border-light);
    box-shadow: var(--shadow-card);
    transition: all 0.3s;
}

.print-method:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.print-method-icon {
    color: var(--text);
    margin-bottom: 20px;
}

.print-method h3 {
    margin-bottom: 12px;
    color: var(--text);
}

.print-method p {
    color: var(--text-light);
    margin-bottom: 20px;
}

.print-services {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.service-tag {
    padding: 6px 14px;
    background: rgba(244, 132, 95, 0.08);
    border-radius: var(--radius-pill);
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--primary-dark);
}

.print-tip {
    display: flex;
    gap: 16px;
    align-items: flex-start;
    background: linear-gradient(135deg, #FFF9E6, #FFF5EE);
    border: 1px solid var(--accent-yellow);
    border-radius: var(--radius-md);
    padding: 24px 32px;
}

.print-tip-icon {
    font-size: 1.5rem;
    flex-shrink: 0;
}

.print-tip strong {
    color: var(--text);
}

.print-tip div {
    color: var(--text-light);
}

/* --- Comparison --- */
.section-comparison {
    background: var(--bg-light);
}

.comparison-table-wrapper {
    overflow-x: auto;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-card);
}

.comparison-table {
    width: 100%;
    border-collapse: collapse;
    background: var(--bg-white);
    font-size: 0.95rem;
}

.comparison-table th,
.comparison-table td {
    padding: 16px 24px;
    text-align: center;
    border-bottom: 1px solid var(--border-light);
}

.comparison-table th {
    background: var(--bg-warm-gray);
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 0.9rem;
    color: var(--text);
}

.comparison-table th:first-child,
.comparison-table td:first-child {
    text-align: left;
    font-weight: 600;
}

.comparison-table th.highlight-col {
    background: linear-gradient(135deg, #FFF0E8, #FFE8D6);
    color: var(--primary-dark);
}

.comparison-table th.highlight-col img {
    display: inline-block;
    vertical-align: middle;
    margin-right: 6px;
    border-radius: 6px;
}

.comparison-table td.highlight-col {
    background: rgba(244, 132, 95, 0.04);
}

.comparison-table tbody tr:hover {
    background: rgba(244, 132, 95, 0.03);
}

.check {
    color: var(--accent-green);
    font-size: 1.2rem;
    font-weight: 700;
}

.cross {
    color: #E57373;
    font-size: 1.2rem;
}

.partial {
    color: var(--accent-yellow);
    font-size: 1.2rem;
}

/* --- FAQ --- */
.section-faq {
    background: var(--bg-cream);
}

.faq-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.faq-item {
    background: var(--bg-white);
    border-radius: var(--radius-md);
    border: 1px solid var(--border-light);
    overflow: hidden;
    transition: all 0.3s;
}

.faq-item:hover {
    border-color: var(--primary-light);
}

.faq-item[open] {
    box-shadow: var(--shadow-md);
    border-color: var(--primary-light);
}

.faq-item summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 24px;
    cursor: pointer;
    font-weight: 700;
    font-family: var(--font-display);
    font-size: 1.05rem;
    color: var(--text);
    list-style: none;
    gap: 16px;
}

.faq-item summary::-webkit-details-marker {
    display: none;
}

.faq-item summary::marker {
    display: none;
    content: '';
}

.faq-chevron {
    flex-shrink: 0;
    transition: transform 0.3s;
    color: var(--text-lighter);
}

.faq-item[open] .faq-chevron {
    transform: rotate(180deg);
    color: var(--primary);
}

.faq-answer {
    padding: 0 24px 20px;
    color: var(--text-light);
    line-height: 1.8;
}

/* --- Download CTA --- */
.section-download {
    background: var(--bg-light);
    padding: 80px 0 100px;
}

.download-card {
    position: relative;
    text-align: center;
    background: var(--gradient-hero);
    border-radius: var(--radius-xl);
    padding: 80px 40px;
    overflow: hidden;
    border: 1px solid rgba(244, 132, 95, 0.2);
    box-shadow: var(--shadow-xl);
}

.download-bg-shapes {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.dl-shape {
    position: absolute;
    border-radius: 50%;
    opacity: 0.1;
}

.dl-shape-1 {
    width: 300px;
    height: 300px;
    background: var(--accent-yellow);
    top: -80px;
    right: -60px;
}

.dl-shape-2 {
    width: 200px;
    height: 200px;
    background: var(--accent-pink);
    bottom: -60px;
    left: -40px;
}

.dl-shape-3 {
    width: 150px;
    height: 150px;
    background: var(--accent-green);
    top: 50%;
    left: 20%;
}

.download-icon {
    margin: 0 auto 32px;
    border-radius: 24px;
    box-shadow: var(--shadow-lg);
    position: relative;
}

.download-card h2 {
    font-size: clamp(1.8rem, 3vw, 2.5rem);
    margin-bottom: 16px;
    position: relative;
}

.download-card p {
    font-size: 1.15rem;
    color: var(--text-light);
    max-width: 500px;
    margin: 0 auto 32px;
    position: relative;
}

.btn-download {
    position: relative;
    font-size: 1.15rem;
    padding: 18px 40px;
}

.download-note {
    font-size: 0.85rem !important;
    color: var(--text-lighter) !important;
    margin-top: 16px !important;
    margin-bottom: 0 !important;
    position: relative;
}

/* --- Footer --- */
.footer {
    background: #2D2D2D;
    color: rgba(255, 255, 255, 0.7);
    padding: 60px 0 30px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 48px;
    margin-bottom: 40px;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-display);
    font-weight: 800;
    font-size: 1.2rem;
    color: white;
    margin-bottom: 12px;
}

.footer-logo img {
    border-radius: 8px;
}

.footer-brand p {
    max-width: 300px;
    font-size: 0.9rem;
}

.footer-links h4 {
    color: white;
    margin-bottom: 16px;
    font-size: 1rem;
}

.footer-links li {
    margin-bottom: 8px;
}

.footer-links a {
    font-size: 0.9rem;
    transition: color 0.2s;
}

.footer-links a:hover {
    color: var(--primary-light);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 24px;
    text-align: center;
    font-size: 0.85rem;
}

/* --- Animations --- */
.animate-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s cubic-bezier(0.4, 0, 0.2, 1),
                transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.animate-in.visible {
    opacity: 1;
    transform: translateY(0);
}

.animate-in:nth-child(2) { transition-delay: 0.1s; }
.animate-in:nth-child(3) { transition-delay: 0.2s; }
.animate-in:nth-child(4) { transition-delay: 0.3s; }
.animate-in:nth-child(5) { transition-delay: 0.4s; }

/* --- Responsive --- */
@media (max-width: 1024px) {
    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-subtitle {
        margin-left: auto;
        margin-right: auto;
    }

    .hero-ctas {
        justify-content: center;
    }

    .hero-stats {
        justify-content: center;
    }

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

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

    .feature-card-large {
        grid-template-columns: 1fr;
    }

    .print-methods {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    :root {
        --section-padding: 64px;
    }

    body {
        font-size: 16px;
    }

    .nav-links {
        display: none;
        position: absolute;
        top: var(--nav-height);
        left: 0;
        right: 0;
        background: var(--bg-white);
        flex-direction: column;
        padding: 24px;
        gap: 16px;
        box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
        border-radius: 0 0 var(--radius-md) var(--radius-md);
    }

    .nav-links.active {
        display: flex;
    }

    .nav-toggle {
        display: flex;
    }

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

    .feature-card-large {
        grid-column: span 1;
    }

    .hero-stats {
        flex-direction: column;
        gap: 16px;
        align-items: center;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .step {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .comparison-table th,
    .comparison-table td {
        padding: 12px 12px;
        font-size: 0.85rem;
    }
}

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

    .hero-ctas {
        flex-direction: column;
        align-items: center;
    }

    .btn-lg {
        padding: 14px 28px;
        font-size: 1rem;
    }

    .download-card {
        padding: 48px 24px;
    }

    .print-method {
        padding: 24px;
    }

    .feature-content {
        padding: 24px;
    }
}

/* --- TestFlight Form --- */
.testflight-form {
    max-width: 560px;
    margin: 0 auto 20px;
    position: relative;
}

.form-group {
    display: flex;
    gap: 12px;
    align-items: stretch;
}

.form-group input[type="email"] {
    flex: 1;
    padding: 16px 24px;
    border: 2px solid var(--border);
    border-radius: var(--radius-pill);
    font-family: var(--font-body);
    font-size: 1rem;
    font-weight: 500;
    color: var(--text);
    background: var(--bg-white);
    outline: none;
    transition: border-color 0.3s, box-shadow 0.3s;
    min-width: 0;
}

.form-group input[type="email"]:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(244, 132, 95, 0.12);
}

.form-group input[type="email"]::placeholder {
    color: var(--text-lighter);
    font-weight: 400;
}

.form-group .btn {
    flex-shrink: 0;
    white-space: nowrap;
}

.form-success {
    text-align: center;
    padding: 20px;
    background: rgba(107, 203, 119, 0.1);
    border: 1px solid var(--accent-green);
    border-radius: var(--radius-md);
    color: var(--text);
    font-weight: 600;
}

.hero-beta-hint {
    font-size: 0.9rem;
    color: var(--text-lighter);
    margin-top: -32px;
    margin-bottom: 48px;
}

@media (max-width: 640px) {
    .form-group {
        flex-direction: column;
    }

    .form-group .btn {
        width: 100%;
        justify-content: center;
    }
}

/* --- Legal Pages --- */
.legal-page h1 {
    font-size: clamp(2rem, 4vw, 3rem);
    margin-bottom: 8px;
}

.legal-updated {
    color: var(--text-lighter);
    font-size: 0.9rem;
    margin-bottom: 40px;
}

.legal-page h2 {
    font-size: 1.4rem;
    margin-top: 40px;
    margin-bottom: 12px;
}

.legal-page h3 {
    font-size: 1.15rem;
    margin-top: 24px;
    margin-bottom: 8px;
}

.legal-page p {
    color: var(--text-light);
    margin-bottom: 12px;
}

.legal-page ul {
    color: var(--text-light);
    padding-left: 24px;
    margin-bottom: 16px;
}

.legal-page ul li {
    list-style: disc;
    margin-bottom: 6px;
}

.legal-page a {
    color: var(--primary);
    text-decoration: underline;
    text-underline-offset: 2px;
}

.legal-page a:hover {
    color: var(--primary-dark);
}

/* --- Print Styles --- */
@media print {
    .navbar, .hero-bg-shapes, .floating-element, .hero-wave {
        display: none;
    }

    .section {
        padding: 40px 0;
    }

    body {
        background: white;
    }
}
