/* Ryokô Planner brand – kakemono identity: red, light pink, white, black */
:root {
    --brand-red: #e2404b;
    --brand-red-dark: #b82e37;
    --brand-red-deep: #8b2635;
    --brand-pink: #ffccd2;
    --brand-pink-light: #ffe5e8;
    --brand-pink-pale: #fff5f6;
    --brand-light-gray: #f9f7f7;
    --brand-black: #1d1d1b;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Hiragino Sans', 'Yu Gothic', 'Meiryo', 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.8;
    color: var(--brand-black);
    background-color: #fff;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

header {
    background: #fff;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

header.transparent {
    background: transparent;
    box-shadow: none;
}

header.transparent .logo,
header.transparent .nav-links a,
header.transparent .language-switcher a:not(.active) {
    color: #fff;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.4rem 0;
    min-height: 3.5rem;
}

.logo {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    height: 2.75rem;
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--brand-black);
    text-decoration: none;
    font-family: 'Hiragino Sans', 'Yu Gothic', 'Meiryo', sans-serif;
}

.logo-icon {
    height: 100%;
    width: auto;
    object-fit: contain;
    display: block;
}

.logo-text {
    line-height: 1;
}

header.transparent .logo {
    color: #fff;
}

header.transparent .logo .logo-icon {
    filter: brightness(0) invert(1);
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-links a {
    text-decoration: none;
    color: #333;
    font-weight: 500;
    transition: color 0.3s;
}

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

.language-switcher {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.language-switcher a {
    padding: 0.25rem 0.75rem;
    border-radius: 4px;
    text-decoration: none;
    font-size: 0.9rem;
    transition: background 0.3s;
}

.language-switcher a.active {
    background: var(--brand-red);
    color: #fff;
}

.language-switcher a:not(.active) {
    color: #666;
}

.language-switcher a:not(.active):hover {
    background: #f0f0f0;
}

html {
    scroll-behavior: smooth;
}

body {
    overflow-x: hidden;
}

main {
    padding: 0 0 3rem;
}

/* Full-page sections */
.fullpage-section {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: relative;
    padding: 80px 20px 40px;
}

.section-content {
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
    text-align: center;
}

/* Hero Section – kakemono: light pink to red */
.hero-section {
    background: linear-gradient(135deg, var(--brand-pink-pale) 0%, var(--brand-light-gray) 100%);
    color: #fff;
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        radial-gradient(circle at 20% 50%, rgba(255, 255, 255, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(255, 255, 255, 0.1) 0%, transparent 50%);
    pointer-events: none;
}

.hero-content-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8rem;
    align-items: center;
    text-align: left;
}

.hero-image-container {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-image {
    width: 150%;
    height: auto;
    object-fit: contain;
    filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.3));
}

.hero-fox {
    position: absolute;
    width: clamp(120px, 18vw, 200px);
    height: auto;
    bottom: 5%;
    left: -5%;
    filter: drop-shadow(0 8px 20px rgba(0, 0, 0, 0.2));
    animation: float 4s ease-in-out infinite;
}

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

.hero-text-container {
    display: flex;
    flex-direction: column;
}

.hero-title {
    font-size: clamp(2rem, 4vw, 3.5rem);
    font-weight: 700;
    margin-bottom: 1.5rem;
    line-height: 1.3;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    letter-spacing: -0.02em;
}

.hero-title .script-phrase {
    font-family: 'Sriracha', 'Hiragino Mincho ProN', 'Yu Mincho', serif;
    font-weight: 700;
    color: #e2404b;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
    display: inline-block;
}

.hero-subtitle {
    font-size: clamp(1.25rem, 2.5vw, 2rem);
    margin-bottom: 3rem;
    opacity: 0.95;
    color: #e2404b;
}

.hero-waitlist-form {
    margin-top: 1.5rem;
    margin-bottom: 2rem;
    max-width: 420px;
}

.hero-waitlist-label {
    display: block;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--brand-black);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.15);
    margin-bottom: 0.5rem;
}

.hero-waitlist-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    align-items: stretch;
}

.hero-waitlist-input {
    flex: 1 1 200px;
    min-width: 0;
    height: 48px;
    padding: 0 1rem;
    border: 2px solid rgba(0, 0, 0, 0.2);
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.95);
    color: var(--brand-black);
    font-size: 1rem;
    font-family: inherit;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    transition: border-color 0.2s, box-shadow 0.2s;
    box-sizing: border-box;
}

.hero-waitlist-input::placeholder {
    color: rgba(0, 0, 0, 0.45);
}

.hero-waitlist-input:focus {
    outline: none;
    border-color: var(--brand-red);
    box-shadow: 0 2px 12px rgba(226, 64, 75, 0.2);
}

.hero-waitlist-submit {
    flex-shrink: 0;
    height: 48px;
    padding: 0 1.5rem;
    border: none;
    border-radius: 10px;
    background: var(--brand-red);
    color: #fff;
    font-size: 1rem;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    transition: background 0.2s, transform 0.2s;
    box-shadow: 0 4px 14px rgba(226, 64, 75, 0.35);
    box-sizing: border-box;
}

.hero-waitlist-submit:hover {
    background: var(--brand-red-dark);
    transform: translateY(-1px);
}

.hero-waitlist-submit:disabled {
    opacity: 0.8;
    cursor: not-allowed;
    transform: none;
}

.hero-waitlist-message {
    width: 100%;
    font-size: 0.9rem;
    margin-top: 0.25rem;
    min-height: 1.25em;
}

.hero-waitlist-message.success {
    color: var(--brand-black);
}

.hero-waitlist-message.error {
    color: var(--brand-red-dark);
    text-shadow: 0 0 2px rgba(0, 0, 0, 0.3);
}

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

.app-buttons {
    display: flex;
    gap: 1.5rem;
    justify-content: left;
    flex-wrap: wrap;
    margin-bottom: 4rem;
}

.app-button {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 2rem;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border: 2px solid rgba(0, 0, 0, 0.2);
    border-radius: 12px;
    color: var(--brand-black);
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}

.app-button:hover {
    background: #fff;
    transform: translateY(-3px);
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.2);
    border-color: var(--brand-red);
}

.app-button svg {
    width: 28px;
    height: 28px;
    color: var(--brand-black);
}

        .social-links {
            display: flex;
            gap: 0.75rem;
            align-items: center;
            margin-top: 0.75rem;
        }

        .social-links-centered {
            justify-content: center;
            margin: 1.5rem auto;
        }
        
        .social-label {
            font-size: 0.95rem;
            font-weight: 500;
            color: var(--brand-black);
        }
        
        .social-icon {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            width: 40px;
            height: 40px;
            border-radius: 9999px;
            border: 2px solid rgba(0, 0, 0, 0.25);
            background: rgba(255, 255, 255, 0.95);
            color: var(--brand-black);
            text-decoration: none;
            transition: all 0.3s ease;
            box-shadow: 0 2px 10px rgba(0, 0, 0, 0.12);
        }
        
        .social-icon svg {
            width: 20px;
            height: 20px;
            color: var(--brand-black);
        }
        
        .social-icon:hover {
            background: #fff;
            border-color: var(--brand-red);
            transform: translateY(-2px);
            box-shadow: 0 4px 14px rgba(0, 0, 0, 0.2);
        }

.scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    color: var(--brand-black);
    font-size: 0.875rem;
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateX(-50%) translateY(0);
    }
    40% {
        transform: translateX(-50%) translateY(-10px);
    }
    60% {
        transform: translateX(-50%) translateY(-5px);
    }
}

/* Features Section – kakemono: light pink with red accents */
.features-section {
    background: linear-gradient(180deg, var(--brand-pink-pale) 0%, var(--brand-pink-light) 50%, var(--brand-pink) 100%);
    color: var(--brand-black);
    position: relative;
}

.features-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        radial-gradient(circle at 30% 20%, rgba(255, 255, 255, 0.08) 0%, transparent 50%),
        radial-gradient(circle at 70% 60%, rgba(255, 255, 255, 0.08) 0%, transparent 50%);
    pointer-events: none;
}

.section-title {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 700;
    margin-bottom: 1.5rem;
    letter-spacing: -0.01em;
}

.features-section .section-title {
    color: var(--brand-red-dark);
}

.features-section .section-description {
    color: var(--brand-black);
}

.section-mascot {
    position: absolute;
    width: clamp(100px, 15vw, 180px);
    height: auto;
    pointer-events: none;
    z-index: 0;
}

.section-mascot--features {
    top: 1.5rem;
    right: 2rem;
    filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.1));
}

.section-mascot--contact {
    bottom: 2rem;
    left: 2rem;
    filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.15));
}

@media (max-width: 768px) {
    .section-mascot {
        width: clamp(70px, 22vw, 120px);
    }
    .section-mascot--features {
        top: 0.75rem;
        right: 1rem;
    }
    .section-mascot--contact {
        bottom: 1rem;
        left: 1rem;
    }
}

.section-description {
    font-size: clamp(1.125rem, 2vw, 1.5rem);
    max-width: 800px;
    margin: 0 auto 3rem;
    opacity: 0.95;
    line-height: 1.6;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    max-width: 1000px;
    margin: 0 auto;
}

.feature-card-large {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    border: 2px solid rgba(226, 64, 75, 0.25);
    border-radius: 20px;
    padding: 2.5rem;
    text-align: left;
    transition: all 0.3s ease;
    box-shadow: 0 8px 32px rgba(184, 46, 55, 0.12);
}

.feature-card-large:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 40px rgba(184, 46, 55, 0.2);
    border-color: var(--brand-red);
    background: rgba(255, 255, 255, 0.98);
}

.feature-card-with-icon {
    border-left: 4px solid var(--brand-red);
}

.feature-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.feature-card-large h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--brand-red-dark);
}

.feature-card-large p {
    font-size: 1.125rem;
    line-height: 1.6;
    color: var(--brand-black);
    opacity: 0.9;
}

/* Blog Section */
.blog-section {
    background: linear-gradient(135deg, var(--brand-red) 0%, var(--brand-red-dark) 100%);
    color: #fff;
    position: relative;
}

.blog-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        radial-gradient(circle at 15% 30%, rgba(255, 255, 255, 0.3) 0%, transparent 50%),
        radial-gradient(circle at 85% 70%, rgba(255, 255, 255, 0.3) 0%, transparent 50%);
    pointer-events: none;
}

.blog-section .section-title,
.blog-section .section-description {
    color: #fff;
}

.blog-section .blog-card {
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid rgba(45, 52, 54, 0.15);
}

.blog-section .blog-card-content h3 a {
    color: #2d3436;
}

.blog-section .blog-card-content p {
    color: #636e72;
}

.blog-section .blog-card-date {
    color: #636e72;
}

.blog-section .blog-card-link {
    color: var(--brand-red);
}

.blog-section .blog-card-link:hover {
    color: var(--brand-red-dark);
}

.blog-section .btn-secondary {
    background: rgba(255, 255, 255, 0.9);
    border: 2px solid rgba(45, 52, 54, 0.2);
    color: #2d3436;
}

.blog-section .btn-secondary:hover {
    background: rgba(255, 255, 255, 1);
    border-color: rgba(45, 52, 54, 0.3);
}

.blog-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto 3rem;
}

.blog-card {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 16px;
    overflow: hidden;
    transition: transform 0.3s ease;
    display: flex;
    flex-direction: column;
}

.blog-card:hover {
    transform: translateY(-5px);
}

.blog-card-image {
    width: 100%;
    height: 200px;
    overflow: hidden;
}

.blog-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

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

.blog-card-content h3 {
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
}

.blog-card-content h3 a {
    color: #2d3436;
    text-decoration: none;
}

.blog-card-date {
    font-size: 0.875rem;
    color: #636e72;
    margin-bottom: 0.5rem;
}

.blog-card-content p:not(.blog-card-date) {
    font-size: 0.875rem;
    color: #636e72;
    margin-bottom: 0.75rem;
}

.blog-card-summary {
    flex: 1;
    color: #2d3436;
    opacity: 0.9;
    margin-bottom: 1rem;
}

.blog-card-link {
    color: var(--brand-red);
    text-decoration: none;
    font-weight: 600;
    align-self: flex-start;
}

.blog-link-container {
    margin-top: 2rem;
}

.no-posts {
    text-align: center;
    color: #fff;
    opacity: 0.9;
    font-size: 1.125rem;
}

/* Contact Section – kakemono: dark red bar */
.contact-section {
    background: linear-gradient(135deg, var(--brand-red-deep) 0%, var(--brand-red-dark) 100%);
    color: #fff;
    position: relative;
}

.contact-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        radial-gradient(circle at 25% 40%, rgba(255, 255, 255, 0.05) 0%, transparent 50%),
        radial-gradient(circle at 75% 60%, rgba(255, 255, 255, 0.05) 0%, transparent 50%);
    pointer-events: none;
}

.contact-section .section-title,
.contact-section .section-description {
    color: #fff;
}

.contact-form {
    max-width: 600px;
    margin: 0 auto;
    text-align: left;
}

/* Form spacing — any page */
.form-group {
    margin-bottom: 1.5rem;
}

/*
 * Contact section only: frosted inputs on dark red background.
 * Do NOT style .form-group globally — white text on white pages (e.g. account deletion)
 * is invisible if these rules apply outside .contact-section.
 */
.contact-section .form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: #fff;
}

.contact-section .form-group input,
.contact-section .form-group textarea {
    width: 100%;
    padding: 1rem;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    color: #fff;
    font-family: inherit;
    font-size: 1rem;
}

.contact-section .form-group input::placeholder,
.contact-section .form-group textarea::placeholder {
    color: rgba(255, 255, 255, 0.7);
}

.contact-section .form-group input:focus,
.contact-section .form-group textarea:focus {
    outline: none;
    border-color: rgba(255, 255, 255, 0.6);
    background: rgba(255, 255, 255, 0.2);
}

.contact-section .btn-primary {
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.3);
    color: #fff;
    padding: 1rem 2.5rem;
    border-radius: 8px;
    font-size: 1.125rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
}

/* Standalone pages (account deletion, etc.) — light background */
.delete-account-page h1 {
    color: var(--brand-black);
    margin-bottom: 1rem;
}

.standalone-page-form {
    max-width: 100%;
    margin: 0;
    text-align: left;
}

.standalone-page-form .form-group label {
    color: var(--brand-black);
}

.standalone-page-form .form-group input,
.standalone-page-form .form-group textarea {
    border: 2px solid rgba(0, 0, 0, 0.15);
    border-radius: 8px;
    background: #fff;
    color: var(--brand-black);
}

.standalone-page-form .form-group input::placeholder,
.standalone-page-form .form-group textarea::placeholder {
    color: rgba(0, 0, 0, 0.45);
}

.standalone-page-form .form-group input:focus,
.standalone-page-form .form-group textarea:focus {
    outline: none;
    border-color: var(--brand-red);
    background: #fff;
    box-shadow: 0 0 0 3px rgba(226, 64, 75, 0.15);
}

.form-group-checkbox {
    margin-bottom: 1.25rem;
}

.form-checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    font-weight: 500;
    color: var(--brand-black);
    cursor: pointer;
}

.form-checkbox-label input[type="checkbox"] {
    width: auto;
    margin-top: 0.35rem;
    flex-shrink: 0;
    accent-color: var(--brand-red);
}

.btn-standalone-form {
    width: 100%;
    background: var(--brand-red);
    border: 2px solid var(--brand-red-dark);
    color: #fff;
    padding: 1rem 2rem;
    border-radius: 8px;
    font-size: 1.05rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s, transform 0.2s;
}

.btn-standalone-form:hover {
    background: var(--brand-red-dark);
    transform: translateY(-1px);
}

.delete-account-form-message {
    margin-top: 1rem;
    padding: 1rem;
    border-radius: 8px;
    display: none;
}

.delete-account-form-message:not(:empty) {
    display: block;
}

.delete-account-form-message.success {
    background: rgba(76, 175, 80, 0.12);
    color: #2e7d32;
    border: 2px solid rgba(76, 175, 80, 0.35);
}

.delete-account-form-message.error {
    background: rgba(244, 67, 54, 0.1);
    color: #c62828;
    border: 2px solid rgba(244, 67, 54, 0.35);
}

.contact-section .btn-primary:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.3);
    color: #fff;
    padding: 1rem 2rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    display: inline-block;
    transition: all 0.3s ease;
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
}

footer {
    background: var(--brand-red-deep);
    color: #fff;
    text-align: center;
    padding: 2rem 0;
    margin-top: 0;
    position: relative;
    z-index: 1;
}

footer .footer-links {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.25rem 0.5rem;
    margin-bottom: 0.75rem;
}

footer .footer-links a {
    color: #fff;
    text-decoration: none;
    opacity: 0.95;
}

footer .footer-links a:hover {
    opacity: 1;
    text-decoration: underline;
}

footer .footer-sep {
    opacity: 0.7;
    user-select: none;
}

footer .footer-funding {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.75rem;
    padding-bottom: 1.75rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.25);
    max-width: 36rem;
    margin-left: auto;
    margin-right: auto;
}

footer .footer-funding-text {
    margin: 0;
    font-size: 0.9rem;
    line-height: 1.5;
    opacity: 0.95;
}

footer .footer-funding-logo {
    display: block;
    width: auto;
    max-width: min(240px, 100%);
    height: auto;
}

/* Article body: typography, tables, blockquotes, dividers */
article .article-body {
    line-height: 1.8;
    text-align: justify;
    hyphens: auto;
    -webkit-hyphens: auto;
    overflow-wrap: break-word;
}

article .article-body h1,
article .article-body h2,
article .article-body h3,
article .article-body h4,
article .article-body h5,
article .article-body h6 {
    text-align: left;
    line-height: 1.28;
    font-weight: 700;
    color: var(--brand-black);
}

article .article-body h1 {
    font-size: 2rem;
    margin: 0 0 0.65rem;
}

article .article-body h2 {
    font-size: 1.5rem;
    margin: 1.35rem 0 0.45rem;
}

article .article-body h3 {
    font-size: 1.25rem;
    margin: 1.1rem 0 0.4rem;
}

article .article-body h4 {
    font-size: 1.1rem;
    margin: 1rem 0 0.35rem;
}

article .article-body h5,
article .article-body h6 {
    font-size: 1rem;
    margin: 0.85rem 0 0.3rem;
}

article .article-body p {
    margin: 0 0 1rem;
}

article .article-body ul,
article .article-body ol {
    text-align: left;
}

article .article-body blockquote {
    margin: 1.25rem 0;
    padding: 1rem 1.15rem 1rem 1.1rem;
    border-left: 4px solid var(--brand-red);
    background: var(--brand-pink-pale);
    border-radius: 0 10px 10px 0;
    text-align: left;
    font-size: 0.98rem;
    box-shadow: 0 1px 0 rgba(0, 0, 0, 0.04);
}

article .article-body blockquote p {
    margin: 0 0 0.5rem;
    text-align: left;
}

article .article-body blockquote p:last-child {
    margin-bottom: 0;
}

article .article-body hr {
    margin: 2.75rem 0 1.5rem;
    border: none;
    border-top: 1px solid rgba(29, 29, 27, 0.18);
}

article .article-body hr:first-child {
    margin-top: 0;
}

/* Pipe tables from Markdown */
article .article-body table {
    width: 100%;
    max-width: 100%;
    border-collapse: collapse;
    margin: 1.5rem 0;
    font-size: 0.95rem;
    text-align: left;
    display: table;
}

article .article-body thead th {
    background: var(--brand-pink-pale);
    font-weight: 600;
}

article .article-body th,
article .article-body td {
    border: 1px solid rgba(29, 29, 27, 0.15);
    padding: 0.55rem 0.7rem;
    vertical-align: top;
}

article .article-body tbody tr:nth-child(even) {
    background: rgba(249, 247, 247, 0.85);
}

@media (max-width: 640px) {
    article .article-body {
        overflow-x: auto;
    }

    article .article-body table {
        font-size: 0.88rem;
    }

    article .article-body th,
    article .article-body td {
        padding: 0.45rem 0.5rem;
    }
}

/* Article body: text column + inline images/figures same width */

article .article-body img {
    max-width: 100%;
    width: auto;
    height: auto;
    display: block;
    margin: 1.25rem 0;
    border-radius: 8px;
}

article .article-body p img {
    margin-left: auto;
    margin-right: auto;
}

article .article-body figure {
    max-width: 100%;
    margin: 1.5rem 0;
}

article .article-body figure img {
    width: 100%;
    margin: 0;
}

article .article-body video,
article .article-body iframe {
    max-width: 100%;
}

/* List indentation in article content (reset strips default ul/ol padding) */
article ul,
article ol {
    padding-left: 1.5em;
    margin-bottom: 1rem;
}

article ul {
    list-style-type: disc;
    list-style-position: outside;
}

article ol {
    list-style-type: decimal;
    list-style-position: outside;
}

article li {
    margin-bottom: 0.25em;
}

article li::marker {
    color: var(--brand-black);
}

h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: var(--brand-black);
}

h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: var(--brand-black);
}

.hero {
    text-align: center;
    padding: 4rem 0;
    background: linear-gradient(135deg, var(--brand-pink) 0%, var(--brand-red) 100%);
    color: #fff;
    margin-bottom: 3rem;
}

.hero h1 {
    color: #fff;
    font-size: 3rem;
    margin-bottom: 1rem;
}

.hero p {
    font-size: 1.25rem;
    margin-bottom: 2rem;
}

.btn {
    display: inline-block;
    padding: 0.75rem 2rem;
    background: #fff;
    color: var(--brand-red);
    text-decoration: none;
    border-radius: 5px;
    font-weight: 600;
    transition: transform 0.3s;
}

.btn:hover {
    transform: translateY(-2px);
}

.features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin: 3rem 0;
}

.feature-card {
    padding: 1.5rem;
    background: #f8f9fa;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.feature-card h3 {
    color: var(--brand-red);
    margin-bottom: 0.5rem;
}

form {
    max-width: 600px;
    margin: 2rem auto;
}

form label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

form input,
form textarea {
    width: 100%;
    padding: 0.75rem;
    margin-bottom: 1rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-family: inherit;
}

form textarea {
    min-height: 150px;
    resize: vertical;
}

form button {
    background: var(--brand-red);
    color: #fff;
    padding: 0.75rem 2rem;
    border: none;
    border-radius: 4px;
    font-size: 1rem;
    cursor: pointer;
    transition: background 0.3s;
}

form button:hover {
    background: var(--brand-red-dark);
}

@media (max-width: 968px) {
    .hero-content-wrapper {
        grid-template-columns: 1fr;
        gap: 3rem;
        text-align: center;
    }
    
    .hero-image-container {
        order: -1;
    }
    
    .hero-image {
        max-width: 400px;
    }
}

@media (max-width: 968px) {
    .hero-content-wrapper {
        grid-template-columns: 1fr;
        gap: 3rem;
        text-align: center;
    }
    
    .hero-image-container {
        order: -1;
    }
    
    .hero-image {
        max-width: 400px;
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
    }
    
    nav > div {
        gap: 1rem;
    }
    
    .app-buttons {
        flex-direction: column;
        align-items: stretch;
    }
    
    .app-button {
        justify-content: center;
    }
    
    .features-grid,
    .blog-cards {
        grid-template-columns: 1fr;
    }
    
    .fullpage-section {
        padding: 100px 20px 40px;
    }
    
    .hero-image {
        max-width: 300px;
    }
}
