/* Secret Diary: Private Journal - website design system */

:root {
    color-scheme: light;
    --ink: #18211f;
    --muted: #5f6863;
    --soft: #7e887f;
    --paper: #fbf7ee;
    --paper-deep: #f0e8d8;
    --surface: #fffdf8;
    --surface-2: #f6f0e5;
    --cedar: #23594c;
    --cedar-dark: #12372f;
    --rose: #9b3f4d;
    --brass: #b9822c;
    --blue: #375f86;
    --line: rgba(24, 33, 31, 0.14);
    --line-strong: rgba(24, 33, 31, 0.26);
    --shadow: 0 24px 60px rgba(24, 33, 31, 0.12);
    --shadow-soft: 0 12px 34px rgba(24, 33, 31, 0.09);
    --radius: 8px;
    --radius-sm: 6px;
    --radius-full: 999px;
    --font-body: "DM Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    --font-display: "Newsreader", Georgia, serif;
    --text: var(--ink);
    --text-primary: var(--ink);
    --text-secondary: var(--muted);
    --text-tertiary: var(--soft);
    --bg-primary: var(--paper);
    --bg-secondary: var(--surface);
    --bg-card: var(--surface);
    --bg-glass: rgba(255, 253, 248, 0.82);
    --border: var(--line);
    --border-color: var(--line);
    --border-color-hover: var(--line-strong);
}

[data-theme="dark"] {
    color-scheme: dark;
    --ink: #f6f0e5;
    --muted: #c6beb0;
    --soft: #9f978b;
    --paper: #111715;
    --paper-deep: #18211f;
    --surface: #18211f;
    --surface-2: #202a27;
    --cedar: #79b8a5;
    --cedar-dark: #bfe1d6;
    --rose: #d88a94;
    --brass: #d3a85c;
    --blue: #8eb0cd;
    --line: rgba(246, 240, 229, 0.16);
    --line-strong: rgba(246, 240, 229, 0.28);
    --shadow: 0 26px 70px rgba(0, 0, 0, 0.35);
    --shadow-soft: 0 14px 36px rgba(0, 0, 0, 0.24);
    --bg-glass: rgba(24, 33, 31, 0.78);
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

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

body {
    margin: 0;
    font-family: var(--font-body);
    color: var(--text-primary);
    background:
        linear-gradient(90deg, rgba(24, 33, 31, 0.035) 1px, transparent 1px),
        linear-gradient(180deg, rgba(24, 33, 31, 0.025) 1px, transparent 1px),
        var(--paper);
    background-size: 44px 44px, 44px 44px, auto;
    line-height: 1.6;
    overflow-x: hidden;
    letter-spacing: 0;
}

[data-theme="dark"] body {
    background:
        linear-gradient(90deg, rgba(246, 240, 229, 0.035) 1px, transparent 1px),
        linear-gradient(180deg, rgba(246, 240, 229, 0.025) 1px, transparent 1px),
        var(--paper);
}

a {
    color: inherit;
    text-decoration: none;
}

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

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

.container {
    width: min(1180px, calc(100% - 48px));
    margin: 0 auto;
}

.gradient-text {
    color: var(--cedar-dark);
}

[data-theme="dark"] .gradient-text {
    color: var(--cedar);
}

.navbar,
.nav {
    position: fixed;
    inset: 0 0 auto;
    z-index: 1000;
    border-bottom: 1px solid var(--border-color);
    background: var(--bg-glass);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
}

.navbar.scrolled {
    box-shadow: var(--shadow-soft);
}

.nav-container {
    width: min(1180px, calc(100% - 40px));
    min-height: 68px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.nav-logo,
.brand-link {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-weight: 800;
}

.logo-icon {
    width: 32px;
    height: 32px;
    border-radius: 7px;
    box-shadow: 0 8px 20px rgba(35, 89, 76, 0.2);
}

.logo-text,
.brand-text {
    white-space: nowrap;
}

.nav-menu,
.nav-links {
    display: flex;
    align-items: center;
    gap: 4px;
}

.nav-link,
.nav-links a {
    display: inline-flex;
    align-items: center;
    min-height: 40px;
    padding: 0 14px;
    border-radius: var(--radius-sm);
    color: var(--text-secondary);
    font-size: 14px;
    font-weight: 700;
}

.nav-link:hover,
.nav-links a:hover {
    color: var(--text-primary);
    background: var(--surface-2);
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.nav-cta,
.btn,
.app-store-btn,
.more-apps-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 46px;
    padding: 0 18px;
    border-radius: var(--radius-sm);
    font-size: 14px;
    font-weight: 800;
    border: 1px solid transparent;
    cursor: pointer;
    transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease, border-color 160ms ease;
}

.nav-cta,
.btn-primary {
    color: #fffdf8;
    background: var(--cedar-dark);
    box-shadow: 0 10px 22px rgba(18, 55, 47, 0.22);
}

[data-theme="dark"] .nav-cta,
[data-theme="dark"] .btn-primary {
    color: #111715;
    background: var(--cedar);
}

.btn-secondary {
    color: var(--text-primary);
    background: rgba(255, 253, 248, 0.62);
    border-color: var(--border-color);
}

[data-theme="dark"] .btn-secondary {
    background: rgba(24, 33, 31, 0.7);
}

.nav-cta:hover,
.btn:hover,
.app-store-btn:hover,
.more-apps-cta:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-soft);
}

.btn-block {
    width: 100%;
}

.btn-icon {
    font-size: 12px;
    color: currentColor;
    border: 1px solid currentColor;
    border-radius: 4px;
    padding: 2px 5px;
}

.theme-toggle {
    width: 44px;
    height: 44px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    background: transparent;
    color: var(--text-secondary);
    cursor: pointer;
}

.theme-toggle:hover {
    color: var(--text-primary);
    background: var(--surface-2);
}

.theme-icon {
    font-size: 11px;
    font-weight: 800;
}

.theme-icon-light,
[data-theme="light"] .theme-icon-dark,
:root:not([data-theme="dark"]) .theme-icon-dark {
    display: none;
}

[data-theme="light"] .theme-icon-light,
:root:not([data-theme="dark"]) .theme-icon-light {
    display: inline;
}

[data-theme="dark"] .theme-icon-light {
    display: none;
}

[data-theme="dark"] .theme-icon-dark {
    display: inline;
}

.nav-toggle {
    display: none;
    width: 44px;
    height: 44px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    background: transparent;
    cursor: pointer;
}

.nav-toggle span {
    display: block;
    width: 20px;
    height: 2px;
    margin: 4px auto;
    background: var(--text-primary);
}

.hero {
    position: relative;
    min-height: 92vh;
    padding: 132px 0 78px;
    overflow: hidden;
    border-bottom: 1px solid var(--border-color);
}

.hero::before {
    content: "";
    position: absolute;
    inset: 68px 0 auto;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--line-strong), transparent);
}

.hero-scene {
    position: absolute;
    inset: 68px 0 0;
    overflow: hidden;
    pointer-events: none;
}

.scene-paper {
    position: absolute;
    background: rgba(255, 253, 248, 0.72);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-soft);
}

[data-theme="dark"] .scene-paper {
    background: rgba(32, 42, 39, 0.72);
}

.scene-paper-large {
    width: 520px;
    height: 640px;
    right: 14%;
    top: 84px;
    transform: rotate(8deg);
}

.scene-paper-small {
    width: 340px;
    height: 420px;
    right: 2%;
    bottom: -90px;
    transform: rotate(-7deg);
}

.scene-phone {
    position: absolute;
    width: 224px;
    min-height: 454px;
    padding: 20px 16px;
    border: 8px solid #111;
    border-radius: 32px;
    background: #151515;
    box-shadow: var(--shadow);
}

.scene-phone-top {
    width: 74px;
    height: 18px;
    margin: 0 auto 22px;
    background: #000;
    border-radius: 0 0 12px 12px;
}

.scene-calculator {
    right: 25%;
    top: 86px;
    transform: rotate(-8deg);
    color: #fff;
}

.scene-journal {
    right: 8%;
    top: 140px;
    transform: rotate(6deg);
    color: var(--text-primary);
    background: var(--surface);
    border-color: #181818;
}

.scene-app-icon {
    position: absolute;
    width: 104px;
    height: 104px;
    right: 31%;
    top: 512px;
    border-radius: 20px;
    box-shadow: var(--shadow);
}

.calc-display {
    height: 72px;
    display: flex;
    align-items: flex-end;
    justify-content: flex-end;
    padding: 0 6px 12px;
    font-size: 36px;
    font-weight: 300;
}

.calc-keys {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
}

.calc-keys span {
    min-height: 40px;
    display: grid;
    place-items: center;
    border-radius: var(--radius-full);
    background: #333;
    color: #fff;
    font-size: 13px;
}

.calc-keys span:nth-child(4n),
.calc-keys span:last-child {
    background: var(--brass);
}

.journal-bar {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    margin: 20px 0;
    font-size: 13px;
    color: var(--text-secondary);
}

.journal-lines {
    display: grid;
    gap: 12px;
    margin-bottom: 28px;
}

.journal-lines span {
    height: 12px;
    border-radius: var(--radius-full);
    background: var(--surface-2);
}

.journal-lines span:nth-child(2) {
    width: 82%;
}

.journal-lines span:nth-child(3) {
    width: 68%;
}

.journal-lines span:nth-child(4) {
    width: 90%;
}

.journal-mood-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
}

.journal-mood-grid span {
    height: 76px;
    border-radius: var(--radius-sm);
}

.journal-mood-grid span:nth-child(1) {
    background: var(--cedar);
}

.journal-mood-grid span:nth-child(2) {
    background: var(--rose);
}

.journal-mood-grid span:nth-child(3) {
    background: var(--brass);
}

.hero-container {
    position: relative;
    z-index: 2;
    width: min(1180px, calc(100% - 48px));
    margin: 0 auto;
    max-width: 760px;
    margin-left: max(24px, calc((100vw - 1180px) / 2));
}

.eyebrow,
.section-badge {
    display: inline-flex;
    align-items: center;
    min-height: 30px;
    padding: 0 10px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    color: var(--cedar-dark);
    background: rgba(255, 253, 248, 0.7);
    font-size: 12px;
    font-weight: 800;
}

[data-theme="dark"] .eyebrow,
[data-theme="dark"] .section-badge {
    color: var(--cedar);
    background: rgba(24, 33, 31, 0.62);
}

.hero h1,
.section-header h2,
.download h2,
.more-apps h2,
.legal-content h1,
.press-hero h1,
.support-hero h1 {
    margin: 18px 0;
    font-family: var(--font-display);
    font-size: 72px;
    line-height: 0.98;
    font-weight: 650;
    letter-spacing: 0;
}

.hero-subtitle {
    max-width: 640px;
    margin: 0 0 30px;
    color: var(--text-secondary);
    font-size: 20px;
    line-height: 1.7;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 28px;
}

.hero-proof {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    max-width: 680px;
}

.hero-proof span,
.disguise-chip,
.save-badge {
    display: inline-flex;
    align-items: center;
    min-height: 34px;
    padding: 0 10px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    color: var(--text-secondary);
    background: rgba(255, 253, 248, 0.68);
    font-size: 13px;
    font-weight: 700;
}

[data-theme="dark"] .hero-proof span,
[data-theme="dark"] .disguise-chip,
[data-theme="dark"] .save-badge {
    background: rgba(24, 33, 31, 0.7);
}

section {
    padding: 104px 0;
}

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

.section-header.align-left {
    margin-left: 0;
    text-align: left;
}

.section-header h2,
.download h2,
.more-apps h2,
.legal-content h1,
.press-hero h1,
.support-hero h1 {
    font-size: 48px;
    line-height: 1.05;
}

.section-header p,
.download p,
.more-apps p,
.legal-content p,
.press-hero p,
.support-hero p {
    color: var(--text-secondary);
    font-size: 17px;
}

.trust-strip {
    padding: 26px 0;
    background: var(--surface);
    border-bottom: 1px solid var(--border-color);
}

.trust-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1px;
    border: 1px solid var(--border-color);
    background: var(--border-color);
}

.trust-item {
    padding: 24px;
    background: var(--surface);
}

.trust-kicker,
.feature-index {
    color: var(--rose);
    font-size: 12px;
    font-weight: 800;
}

.trust-item strong {
    display: block;
    margin: 8px 0;
    font-size: 18px;
}

.trust-item p {
    margin: 0;
    color: var(--text-secondary);
    font-size: 14px;
}

.features,
.premium,
.pricing,
.faq {
    background: rgba(255, 253, 248, 0.46);
}

[data-theme="dark"] .features,
[data-theme="dark"] .premium,
[data-theme="dark"] .pricing,
[data-theme="dark"] .faq {
    background: rgba(17, 23, 21, 0.55);
}

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

.feature-card,
.pricing-card,
.faq-item,
.showcase-panel,
.ledger-table,
.decoy-steps article,
.help-card,
.support-section,
.press-section {
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    background: var(--surface);
    box-shadow: 0 1px 0 rgba(24, 33, 31, 0.04);
}

.feature-card,
.decoy-steps article {
    min-height: 240px;
    padding: 28px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.feature-card-wide {
    grid-column: span 2;
    background:
        linear-gradient(135deg, rgba(35, 89, 76, 0.08), rgba(185, 130, 44, 0.08)),
        var(--surface);
}

.feature-card h3,
.pricing-card h3,
.panel-info h3,
.decoy-steps strong {
    margin: 12px 0 10px;
    font-size: 24px;
    line-height: 1.15;
}

.feature-card p,
.pricing-card p,
.panel-info p,
.decoy-steps p {
    margin: 0;
    color: var(--text-secondary);
}

.feature-card:hover,
.pricing-card:hover,
.more-app-card:hover {
    border-color: var(--line-strong);
    transform: translateY(-3px);
    box-shadow: var(--shadow-soft);
}

.decoy-story {
    border-block: 1px solid var(--border-color);
    background: var(--paper-deep);
}

.decoy-layout {
    display: grid;
    grid-template-columns: 0.8fr 1.2fr;
    gap: 32px;
    align-items: start;
}

.decoy-steps {
    display: grid;
    gap: 12px;
}

.decoy-steps article {
    min-height: 0;
}

.decoy-steps span {
    color: var(--brass);
    font-size: 12px;
    font-weight: 800;
}

.premium .section-header,
.pricing .section-header,
.faq .section-header {
    max-width: 680px;
}

.showcase-tabs {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 8px;
    margin: 0 auto 24px;
}

.tab-btn {
    min-height: 42px;
    padding: 0 14px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    background: var(--surface);
    color: var(--text-secondary);
    font-weight: 800;
    cursor: pointer;
}

.tab-btn.active,
.tab-btn:hover {
    color: #fffdf8;
    background: var(--cedar-dark);
    border-color: var(--cedar-dark);
}

[data-theme="dark"] .tab-btn.active,
[data-theme="dark"] .tab-btn:hover {
    color: #111715;
    background: var(--cedar);
    border-color: var(--cedar);
}

.showcase-panel {
    display: none;
    grid-template-columns: 0.9fr 1.1fr;
    gap: 36px;
    align-items: center;
    padding: 32px;
}

.showcase-panel.active {
    display: grid;
}

.panel-visual {
    min-height: 240px;
    display: grid;
    place-items: center;
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    background:
        linear-gradient(90deg, rgba(35, 89, 76, 0.08) 1px, transparent 1px),
        linear-gradient(180deg, rgba(35, 89, 76, 0.08) 1px, transparent 1px),
        var(--surface-2);
    background-size: 24px 24px;
}

.year-card,
.mini-disguise {
    align-content: center;
    text-align: center;
}

.year-card span,
.mini-disguise span {
    color: var(--rose);
    font-weight: 800;
}

.year-card strong,
.mini-disguise strong {
    display: block;
    margin-top: 12px;
    font-family: var(--font-display);
    font-size: 42px;
    line-height: 1;
}

.voice-card {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.voice-card span {
    width: 16px;
    border-radius: var(--radius-full);
    background: var(--cedar);
}

.voice-card span:nth-child(1) { height: 42px; }
.voice-card span:nth-child(2) { height: 96px; background: var(--brass); }
.voice-card span:nth-child(3) { height: 140px; background: var(--rose); }
.voice-card span:nth-child(4) { height: 78px; background: var(--blue); }
.voice-card span:nth-child(5) { height: 54px; }

.theme-stack {
    display: grid;
    grid-template-columns: repeat(2, 84px);
    gap: 12px;
}

.theme-stack span {
    height: 84px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border-color);
}

.theme-stack span:nth-child(1) { background: var(--cedar); }
.theme-stack span:nth-child(2) { background: var(--rose); }
.theme-stack span:nth-child(3) { background: var(--brass); }
.theme-stack span:nth-child(4) { background: var(--blue); }

.feature-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    padding: 0;
    margin: 22px 0 0;
    list-style: none;
}

.feature-list li,
.pricing-features li {
    color: var(--text-secondary);
    font-size: 14px;
}

.feature-list li::before,
.pricing-features li::before {
    content: "";
    display: inline-block;
    width: 8px;
    height: 8px;
    margin-right: 8px;
    background: var(--cedar);
    border-radius: 2px;
}

.privacy-ledger {
    background: var(--surface);
    border-block: 1px solid var(--border-color);
}

.ledger-layout {
    display: grid;
    grid-template-columns: 0.75fr 1.25fr;
    gap: 44px;
    align-items: center;
}

.ledger-layout h2 {
    font-family: var(--font-display);
    font-size: 44px;
    line-height: 1.05;
    margin: 16px 0;
}

.ledger-layout p {
    color: var(--text-secondary);
}

.ledger-table {
    display: grid;
}

.ledger-table div {
    display: grid;
    grid-template-columns: 0.75fr 1.25fr;
    gap: 18px;
    padding: 18px;
    border-bottom: 1px solid var(--border-color);
}

.ledger-table div:last-child {
    border-bottom: 0;
}

.ledger-table span {
    color: var(--text-secondary);
}

.pricing-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-bottom: 26px;
}

.toggle-label {
    color: var(--text-secondary);
    font-weight: 800;
}

.toggle-label.active {
    color: var(--text-primary);
}

.toggle-switch {
    width: 58px;
    height: 32px;
    padding: 3px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-full);
    background: var(--surface);
    cursor: pointer;
}

.toggle-handle {
    display: block;
    width: 24px;
    height: 24px;
    border-radius: var(--radius-full);
    background: var(--cedar-dark);
    transition: transform 180ms ease;
}

.toggle-switch.active .toggle-handle {
    transform: translateX(26px);
}

.save-badge {
    color: var(--cedar-dark);
}

.pricing-cards {
    max-width: 880px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
    align-items: stretch;
}

.pricing-card {
    position: relative;
    padding: 32px;
}

.pricing-card.featured {
    border-color: var(--cedar);
    box-shadow: var(--shadow-soft);
}

.popular-badge {
    display: inline-flex;
    margin-bottom: 14px;
    padding: 6px 8px;
    border-radius: var(--radius-sm);
    background: var(--cedar-dark);
    color: #fffdf8;
    font-size: 12px;
    font-weight: 800;
}

.pricing-desc {
    color: var(--text-secondary);
}

.pricing-amount {
    display: flex;
    align-items: baseline;
    gap: 4px;
    margin: 24px 0;
}

.pricing-amount .currency,
.pricing-amount .period {
    color: var(--text-secondary);
    font-weight: 800;
}

.pricing-amount .price {
    font-family: var(--font-display);
    font-size: 58px;
    line-height: 1;
    font-weight: 650;
}

.pricing-features {
    display: grid;
    gap: 12px;
    padding: 0;
    margin: 0 0 28px;
    list-style: none;
}

.faq-grid {
    max-width: 820px;
    margin: 0 auto;
    display: grid;
    gap: 10px;
}

.faq-question {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 20px 22px;
    border: 0;
    background: transparent;
    color: var(--text-primary);
    text-align: left;
    font-weight: 800;
    cursor: pointer;
}

.faq-icon {
    color: var(--cedar);
    font-size: 22px;
    line-height: 1;
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 180ms ease;
}

.faq-answer p {
    margin: 0;
    padding: 0 22px 20px;
    color: var(--text-secondary);
}

.faq-item.active .faq-answer {
    max-height: 320px;
}

.download {
    padding: 80px 0;
    background: var(--cedar-dark);
    color: #fffdf8;
}

[data-theme="dark"] .download {
    background: #0a100f;
}

.download-panel {
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 28px;
    align-items: center;
}

.download-panel img {
    border-radius: 20px;
    box-shadow: 0 18px 48px rgba(0, 0, 0, 0.28);
}

.download .section-badge {
    color: #fffdf8;
    background: rgba(255, 253, 248, 0.1);
    border-color: rgba(255, 253, 248, 0.22);
}

.download h2 {
    color: #fffdf8;
    font-size: 42px;
    margin: 14px 0 8px;
}

.download p {
    margin: 0;
    color: rgba(255, 253, 248, 0.78);
}

.app-store-btn {
    min-width: 220px;
    min-height: 68px;
    flex-direction: column;
    align-items: flex-start;
    gap: 2px;
    background: #fffdf8;
    color: #111715;
}

.app-store-btn .small {
    font-size: 11px;
    color: #5f6863;
    font-weight: 800;
}

.app-store-btn .large {
    font-size: 18px;
    font-weight: 800;
}

.more-apps {
    background: var(--surface);
    border-bottom: 1px solid var(--border-color);
    text-align: center;
}

.more-apps-container {
    width: min(960px, calc(100% - 48px));
    margin: 0 auto;
}

.more-apps h2 {
    font-size: 38px;
    margin-bottom: 8px;
}

.more-apps-grid {
    margin: 28px 0;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
}

.more-app-card {
    min-height: 76px;
    display: grid;
    place-items: center;
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    background: var(--paper);
    color: var(--text-primary);
    font-weight: 800;
}

.more-apps-cta {
    border-color: var(--border-color);
    background: var(--surface);
    color: var(--text-primary);
}

.site-footer {
    padding: 54px 0 28px;
    background: var(--paper);
}

.footer-main {
    width: min(1180px, calc(100% - 48px));
    margin: 0 auto 34px;
    display: flex;
    justify-content: space-between;
    gap: 40px;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 34px;
}

.brand-logo {
    width: 34px;
    height: 34px;
    display: grid;
    place-items: center;
    border-radius: var(--radius-sm);
    background: var(--cedar-dark);
    color: #fffdf8;
    font-weight: 900;
}

.brand-tagline {
    margin: 12px 0 0;
    color: var(--text-secondary);
}

.footer-links {
    display: flex;
    gap: 56px;
}

.footer-column h4 {
    margin: 0 0 12px;
    font-size: 13px;
    color: var(--text-secondary);
}

.footer-column ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 8px;
}

.footer-column a {
    color: var(--text-primary);
    font-weight: 700;
}

.footer-bottom {
    width: min(1180px, calc(100% - 48px));
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    gap: 18px;
    color: var(--text-secondary);
    font-size: 14px;
}

.footer-maker a {
    color: var(--cedar-dark);
    font-weight: 800;
}

/* Shared legal, support, and press pages */
.legal-content,
.support-content,
.press-content {
    color: var(--text-primary);
}

.legal-content a,
.support-content a,
.press-content a {
    color: var(--cedar-dark);
    font-weight: 800;
}

[data-theme="dark"] .legal-content a,
[data-theme="dark"] .support-content a,
[data-theme="dark"] .press-content a {
    color: var(--cedar);
}

.legal-content h2,
.support-section h2,
.press-section h2 {
    color: var(--text-primary);
}

.highlight-box,
.press-section,
.support-section,
.help-card {
    background: var(--surface);
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    box-shadow: none;
}

.help-cards {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
}

.help-card {
    padding: 22px;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
    width: 100%;
    min-height: 44px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    background: var(--surface);
    color: var(--text-primary);
    padding: 10px 12px;
}

.contact-form button {
    width: 100%;
    min-height: 48px;
    border: 0;
    border-radius: var(--radius-sm);
    background: var(--cedar-dark);
    color: #fffdf8;
    font-weight: 800;
    cursor: pointer;
}

[data-theme="dark"] .contact-form button {
    background: var(--cedar);
    color: #111715;
}

::selection {
    background: rgba(35, 89, 76, 0.2);
}

.reveal-ready {
    opacity: 0;
    transform: translateY(18px);
    transition: opacity 420ms ease, transform 420ms ease;
}

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

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.001ms !important;
        animation-iteration-count: 1 !important;
        scroll-behavior: auto !important;
        transition-duration: 0.001ms !important;
    }
}

@media (max-width: 1080px) {
    .hero h1 {
        font-size: 60px;
    }

    .scene-calculator {
        right: 18%;
        opacity: 0.72;
    }

    .scene-journal {
        right: 2%;
        opacity: 0.86;
    }

    .trust-grid,
    .features-grid,
    .help-cards {
        grid-template-columns: repeat(2, 1fr);
    }

    .decoy-layout,
    .ledger-layout {
        grid-template-columns: 1fr;
    }

    .download-panel {
        grid-template-columns: 1fr;
        text-align: center;
        justify-items: center;
    }
}

@media (max-width: 760px) {
    .container,
    .hero-container,
    .footer-main,
    .footer-bottom,
    .nav-container,
    .more-apps-container {
        width: min(100% - 32px, 1180px);
    }

    .nav-menu {
        position: absolute;
        top: 68px;
        left: 0;
        right: 0;
        display: none;
        flex-direction: column;
        align-items: stretch;
        padding: 16px;
        background: var(--paper);
        border-bottom: 1px solid var(--border-color);
    }

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

    .nav-toggle {
        display: block;
    }

    .nav-actions {
        display: none;
    }

    .hero {
        min-height: auto;
        padding: 112px 0 54px;
    }

    .hero-container {
        margin-left: 16px;
        max-width: calc(100% - 32px);
    }

    .hero h1 {
        font-size: 44px;
    }

    .hero-subtitle {
        font-size: 17px;
    }

    .scene-paper-large,
    .scene-paper-small,
    .scene-calculator {
        display: none;
    }

    .scene-journal {
        position: relative;
        right: auto;
        top: auto;
        width: 160px;
        min-height: 300px;
        margin: 8px 16px 24px auto;
        opacity: 0.34;
    }

    .scene-app-icon {
        width: 72px;
        height: 72px;
        right: 22px;
        top: 112px;
        opacity: 0.48;
    }

    section {
        padding: 72px 0;
    }

    .section-header h2,
    .download h2,
    .more-apps h2,
    .legal-content h1,
    .press-hero h1,
    .support-hero h1,
    .ledger-layout h2 {
        font-size: 34px;
    }

    .trust-grid,
    .features-grid,
    .pricing-cards,
    .more-apps-grid,
    .help-cards {
        grid-template-columns: 1fr;
    }

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

    .showcase-panel {
        grid-template-columns: 1fr;
        padding: 20px;
    }

    .feature-list,
    .ledger-table div {
        grid-template-columns: 1fr;
    }

    .footer-main,
    .footer-bottom {
        flex-direction: column;
    }

    .footer-links {
        gap: 34px;
    }
}

@media print {
    .navbar,
    .hero-scene,
    .download,
    .more-apps,
    .site-footer {
        display: none;
    }

    body {
        background: white;
        color: black;
    }
}

/* Pricing legal disclosure */
.pricing-disclosure {
    max-width: 760px;
    margin: 32px auto 0;
    text-align: center;
    font-size: 13px;
    line-height: 1.7;
    color: var(--text-secondary);
    opacity: 0.85;
}
.pricing-disclosure a {
    color: var(--primary);
}

/* Screenshots showcase */
.screens {
    padding: 96px 0;
}
.screens-rail {
    display: flex;
    gap: 28px;
    overflow-x: auto;
    padding: 12px 4px 28px;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
}
.screens-rail::-webkit-scrollbar { height: 8px; }
.screens-rail::-webkit-scrollbar-thumb { background: var(--border); border-radius: 8px; }
.screen-shot {
    flex: 0 0 auto;
    width: 230px;
    margin: 0;
    scroll-snap-align: center;
    text-align: center;
}
.screen-shot img {
    width: 100%;
    border-radius: 28px;
    border: 1px solid var(--border);
    box-shadow: 0 18px 48px rgba(0, 0, 0, 0.22);
    display: block;
}
.screen-shot figcaption {
    margin-top: 14px;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-secondary);
}
@media (min-width: 900px) {
    .screens-rail {
        justify-content: center;
        flex-wrap: nowrap;
        overflow-x: visible;
    }
    .screen-shot { width: 220px; }
}
