/* This stylesheet defines the shared visual system for the Journalomat website.
   It creates a calm, warm presentation that matches the app's journaling and gratitude focus. */

:root {
    --background: #f6f1eb;
    --surface: rgba(255, 255, 255, 0.82);
    --surface-strong: #fffaf5;
    --surface-muted: #efe5dc;
    --border: rgba(146, 93, 72, 0.14);
    --text: #241a17;
    --text-soft: #6e5a53;
    --accent: #bf725d;
    --accent-dark: #9c5845;
    --accent-light: #f4dfd7;
    --shadow: 0 18px 60px rgba(76, 43, 32, 0.1);
    --radius-xl: 28px;
    --radius-lg: 22px;
    --radius-md: 16px;
    --radius-sm: 12px;
    --max-width: 1120px;
}

* {
    box-sizing: border-box;
}

[hidden] {
    display: none !important;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", sans-serif;
    color: var(--text);
    background:
        radial-gradient(circle at top right, rgba(191, 114, 93, 0.14), transparent 28%),
        radial-gradient(circle at left 20%, rgba(255, 255, 255, 0.9), transparent 24%),
        var(--background);
    line-height: 1.65;
}

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

a {
    color: inherit;
}

.container {
    width: min(var(--max-width), calc(100% - 2rem));
    margin: 0 auto;
}

.header-shell {
    padding: 1.5rem 0 0;
}

.header-card {
    background: linear-gradient(150deg, rgba(255, 250, 245, 0.96), rgba(244, 223, 215, 0.92));
    border: 1px solid rgba(191, 114, 93, 0.12);
    border-radius: 36px;
    box-shadow: var(--shadow);
    overflow: hidden;
}

.topbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    padding: 1.25rem 1.5rem;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 0.9rem;
    text-decoration: none;
}

.brand img {
    width: 54px;
    height: 54px;
    border-radius: 14px;
    box-shadow: 0 10px 26px rgba(156, 88, 69, 0.18);
}

.brand strong {
    display: block;
    font-size: 1rem;
}

.brand span {
    display: block;
    color: var(--text-soft);
    font-size: 0.92rem;
}

.language-toggle-button {
    appearance: none;
    border: 1px solid rgba(191, 114, 93, 0.18);
    background: rgba(255, 255, 255, 0.84);
    color: var(--accent-dark);
    padding: 0.8rem 1.2rem;
    border-radius: 999px;
    font-size: 0.95rem;
    font-weight: 700;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
    box-shadow: 0 10px 24px rgba(156, 88, 69, 0.12);
}

.language-toggle-button:hover {
    transform: translateY(-1px);
    background: white;
    box-shadow: 0 14px 28px rgba(156, 88, 69, 0.16);
}

.language-toggle-button:focus-visible {
    outline: 3px solid rgba(191, 114, 93, 0.28);
    outline-offset: 3px;
}

.site-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    padding: 0 1.5rem 1.25rem;
}

.site-nav a,
.footer-links a {
    text-decoration: none;
    color: var(--text-soft);
    font-weight: 600;
}

.site-nav a.active,
.footer-links a.active {
    color: var(--accent-dark);
}

.site-nav a:hover,
.footer-links a:hover,
.text-link:hover {
    color: var(--accent-dark);
}

.hero {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(300px, 0.95fr);
    gap: 2.25rem;
    align-items: center;
    padding: 1rem 1.5rem 2rem;
}

.hero-single {
    grid-template-columns: 1fr;
    padding-top: 0.5rem;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.45rem 0.8rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.7);
    color: var(--accent-dark);
    font-weight: 700;
    font-size: 0.92rem;
}

.hero h1 {
    margin: 1rem 0 0.8rem;
    font-size: clamp(2.6rem, 6vw, 4.8rem);
    line-height: 1.02;
    letter-spacing: -0.05em;
}

.hero-copy p {
    margin: 0 0 1rem;
    font-size: 1.12rem;
    color: var(--text-soft);
    max-width: 60ch;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.9rem;
    margin: 1.5rem 0 1.4rem;
}

.store-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 0.9rem;
    padding: 0 1.5rem 0.5rem;
}

.store-buttons .btn,
.store-buttons .btn-secondary {
    min-height: 52px;
}

.store-buttons .btn {
    padding: 0.95rem 1.35rem;
    border-radius: 18px;
    background: var(--surface-muted);
    color: var(--text);
    border: 2px solid #1c1c1f;
    box-shadow: 0 12px 24px rgba(19, 19, 20, 0.12);
    letter-spacing: 0.01em;
}

.store-buttons .btn:hover {
    background: var(--surface-muted);
    box-shadow: 0 16px 32px rgba(19, 19, 20, 0.16);
}

.btn,
.btn-secondary {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    min-height: 52px;
    padding: 0.9rem 1.3rem;
    border-radius: 999px;
    text-decoration: none;
    font-weight: 700;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.btn {
    background: var(--accent);
    color: white;
    box-shadow: 0 16px 30px rgba(156, 88, 69, 0.24);
}

.btn:hover,
.btn-secondary:hover {
    transform: translateY(-1px);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.74);
    color: var(--accent-dark);
    border: 1px solid rgba(191, 114, 93, 0.16);
}

.hero-note {
    margin: 0;
    color: var(--text-soft);
    font-size: 0.95rem;
}

.hero-visual {
    position: relative;
    min-height: 100%;
}

.hero-visual-compact {
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-panel {
    background: rgba(255, 255, 255, 0.62);
    border: 1px solid rgba(191, 114, 93, 0.12);
    border-radius: 30px;
    padding: 1.4rem;
    backdrop-filter: blur(14px);
}

.hero-panel-compact {
    max-width: 320px;
    width: 100%;
    padding: 1rem;
}

.highlight-card {
    background: var(--surface-strong);
    border: 1px solid var(--border);
    border-radius: 24px;
    box-shadow: 0 14px 34px rgba(76, 43, 32, 0.08);
    overflow: hidden;
}

.highlight-card-compact {
    border-radius: 22px;
}

.highlight-card img {
    width: 100%;
    aspect-ratio: 9 / 16;
    object-fit: cover;
}

.highlight-card-compact img {
    aspect-ratio: auto;
    height: auto;
    object-fit: contain;
    object-position: top center;
    background: transparent;
}

.hero-visual-caption {
    margin: 0.9rem 0 0;
    text-align: center;
    color: var(--text-soft);
    font-size: 0.95rem;
}

.highlight-copy {
    padding: 1.2rem;
}

.highlight-copy strong {
    display: block;
    font-size: 1.05rem;
    margin-bottom: 0.35rem;
}

.highlight-copy p {
    margin: 0;
    color: var(--text-soft);
}

.stat-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.8rem;
    margin-top: 1rem;
}

.stat-card {
    background: rgba(255, 255, 255, 0.75);
    border: 1px solid rgba(191, 114, 93, 0.12);
    border-radius: 18px;
    padding: 0.9rem;
}

.stat-card strong {
    display: block;
    font-size: 1.1rem;
    color: var(--accent-dark);
}

.stat-card span {
    color: var(--text-soft);
    font-size: 0.92rem;
}

main {
    padding: 2rem 0 4rem;
}

section {
    padding: 1.2rem 0;
}

.section-heading {
    max-width: 760px;
    margin-bottom: 1.5rem;
}

.section-heading h2 {
    margin: 0 0 0.75rem;
    font-size: clamp(2rem, 4vw, 3rem);
    letter-spacing: -0.03em;
}

.section-heading p {
    margin: 0;
    color: var(--text-soft);
    font-size: 1.05rem;
}

.grid-two {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.2rem;
}

.card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 1.35rem;
    box-shadow: 0 10px 26px rgba(76, 43, 32, 0.05);
    backdrop-filter: blur(10px);
}

.card h3 {
    margin-top: 0;
    margin-bottom: 0.65rem;
    font-size: 1.15rem;
}

.card p,
.card li,
.copy-block p,
.copy-block li {
    color: var(--text-soft);
}

.copy-block {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    padding: 1.6rem;
    box-shadow: 0 10px 26px rgba(76, 43, 32, 0.05);
}

.copy-block p:last-child,
.card p:last-child,
.disclaimer-text:last-child {
    margin-bottom: 0;
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
}

.screenshot-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
}

.screenshot-card {
    background: rgba(255, 255, 255, 0.68);
    border: 1px solid var(--border);
    border-radius: 28px;
    padding: 0.95rem;
    box-shadow: 0 12px 28px rgba(76, 43, 32, 0.06);
}

.screenshot-card img {
    width: 100%;
    aspect-ratio: 9 / 19.5;
    object-fit: cover;
    border-radius: 20px;
}

.screenshot-card p {
    margin: 0.9rem 0 0.15rem;
    font-weight: 700;
}

.screenshot-card span {
    color: var(--text-soft);
    font-size: 0.94rem;
}

.benefit-list {
    margin: 0;
    padding-left: 1.2rem;
}

.section-muted {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.62), rgba(239, 229, 220, 0.64));
    border: 1px solid rgba(191, 114, 93, 0.1);
    border-radius: 32px;
    padding: 1.6rem;
}

.callout {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(220px, 0.8fr);
    gap: 1.2rem;
    align-items: center;
}

.callout h2 {
    margin-top: 0;
    margin-bottom: 0.8rem;
}

.callout p {
    margin: 0;
    color: var(--text-soft);
}

.callout-box {
    background: rgba(255, 255, 255, 0.78);
    border: 1px solid var(--border);
    border-radius: 24px;
    padding: 1.2rem;
}

.callout-box strong {
    display: block;
    margin-bottom: 0.45rem;
    color: var(--accent-dark);
}

.text-link {
    color: var(--accent-dark);
}

.callout-link {
    margin-top: 1rem;
}

footer {
    padding: 0 0 2.4rem;
}

.footer-card {
    background: rgba(255, 255, 255, 0.76);
    border: 1px solid var(--border);
    border-radius: 28px;
    padding: 1.4rem 1.5rem;
    box-shadow: 0 12px 30px rgba(76, 43, 32, 0.06);
}

.footer-meta {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
}

.footer-meta p {
    margin: 0;
    color: var(--text-soft);
}

.footer-links {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

@media (max-width: 980px) {
    .hero,
    .feature-grid,
    .screenshot-grid,
    .callout,
    .grid-two {
        grid-template-columns: 1fr;
    }

    .hero {
        padding-top: 0.5rem;
    }
}

@media (max-width: 720px) {
    .topbar {
        flex-direction: column;
        align-items: flex-start;
    }

    .site-nav {
        gap: 0.8rem;
    }

    .stat-row {
        grid-template-columns: 1fr;
    }

    .container {
        width: min(var(--max-width), calc(100% - 1rem));
    }

    .header-card,
    .section-muted,
    .footer-card {
        border-radius: 24px;
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        animation: none !important;
        transition: none !important;
    }
}