/* ============================================
   LastDid — Marketing & Help Site
   Clean, calm, premium — no pressure, no guilt
   ============================================ */

:root {
    --color-text: #1a1a2e;
    --color-text-light: #5a6577;
    --color-text-muted: #8c95a6;
    --color-bg: #ffffff;
    --color-bg-soft: #f6f8fa;
    --color-bg-warm: #fafbfc;
    --color-accent: #34a853;
    --color-accent-light: #e8f5e9;
    --color-accent-hover: #2d9249;
    --color-border: #e5e9f0;
    --color-border-light: #eef1f6;
    --color-link: #1a73e8;
    --color-link-hover: #1558b0;
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.04), 0 1px 2px rgba(0,0,0,0.06);
    --shadow-md: 0 4px 12px rgba(0,0,0,0.05), 0 2px 4px rgba(0,0,0,0.04);
    --shadow-lg: 0 8px 28px rgba(0,0,0,0.08), 0 2px 8px rgba(0,0,0,0.04);
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --max-width: 680px;
    --max-width-wide: 960px;
    --transition: 0.2s ease;
}

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

body {
    font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    line-height: 1.7;
    color: var(--color-text);
    background: var(--color-bg);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

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

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

/* ---- Navigation ---- */
.site-header {
    border-bottom: 1px solid var(--color-border-light);
    padding: 0 24px;
    background: rgba(255,255,255,0.92);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    position: sticky;
    top: 0;
    z-index: 100;
}

.site-header nav {
    max-width: var(--max-width-wide);
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 56px;
}

.site-title {
    font-size: 1.2rem;
    font-weight: 800;
    color: var(--color-text);
    text-decoration: none;
    letter-spacing: -0.01em;
}
.site-title:hover { text-decoration: none; }

.nav-links { display: flex; align-items: center; gap: 28px; }
.nav-links a {
    color: var(--color-text-light);
    font-size: 0.9rem;
    font-weight: 500;
    transition: color var(--transition);
}
.nav-links a:hover { color: var(--color-text); text-decoration: none; }

/* ---- Buttons ---- */
.btn {
    display: inline-block;
    padding: 10px 24px;
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-size: 0.95rem;
    text-decoration: none;
    transition: all var(--transition);
    letter-spacing: 0.01em;
}

.btn-primary {
    background: var(--color-accent);
    color: #fff;
    box-shadow: 0 2px 8px rgba(52,168,83,0.25);
}
.btn-primary:hover {
    background: var(--color-accent-hover);
    box-shadow: 0 4px 14px rgba(52,168,83,0.35);
    transform: translateY(-1px);
    text-decoration: none;
    color: #fff;
}

.btn-small {
    padding: 7px 18px;
    font-size: 0.82rem;
    font-weight: 600;
    background: var(--color-accent);
    color: #fff;
    border-radius: var(--radius-sm);
    box-shadow: 0 1px 4px rgba(52,168,83,0.2);
}
.btn-small:hover {
    background: var(--color-accent-hover);
    box-shadow: 0 2px 8px rgba(52,168,83,0.3);
    text-decoration: none;
    color: #fff;
}

/* ---- Store Badges ---- */
.store-badge {
    display: inline-block;
    transition: opacity var(--transition);
}
.store-badge:hover {
    opacity: 0.8;
    text-decoration: none;
}
.store-badge img {
    height: 48px;
    width: auto;
    display: block;
}

.store-badge-soon {
    display: inline-flex;
    align-items: center;
    height: 48px;
    padding: 0 22px;
    border: 1.5px solid var(--color-border);
    border-radius: 10px;
    color: var(--color-text-muted);
    font-size: 0.85rem;
    font-weight: 500;
    letter-spacing: 0.01em;
    white-space: nowrap;
}

/* ---- Screenshot Showcase ---- */
.screenshots {
    padding: 48px 0 64px;
    max-width: 100%;
    overflow: hidden;
}

.screenshots h2 {
    text-align: center;
    font-size: 1.6rem;
    font-weight: 700;
    margin-bottom: 32px;
    letter-spacing: -0.02em;
}

.screenshot-strip {
    display: flex;
    gap: 24px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    padding: 0 24px 16px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}
.screenshot-strip::-webkit-scrollbar { display: none; }

.screenshot-item {
    flex: 0 0 200px;
    scroll-snap-align: start;
    text-align: center;
}

.screenshot-item img {
    width: 200px;
    height: auto;
    border-radius: 20px;
    box-shadow: var(--shadow-lg);
    display: block;
}

.screenshot-item p {
    margin-top: 12px;
    font-size: 0.82rem;
    color: var(--color-text-light);
    line-height: 1.45;
}

@media (min-width: 1400px) {
    .screenshot-strip {
        justify-content: center;
    }
}

/* ---- Hero ---- */
.hero {
    text-align: center;
    padding: 96px 24px 72px;
    max-width: var(--max-width-wide);
    margin: 0 auto;
}

.hero h1 {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 20px;
    letter-spacing: -0.03em;
    line-height: 1.1;
    background: linear-gradient(135deg, var(--color-text) 0%, #2d5a3d 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero .tagline {
    font-size: 1.35rem;
    color: var(--color-text-light);
    margin-bottom: 40px;
    max-width: 520px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.55;
}

.cta-group {
    display: flex;
    gap: 16px;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
}

.hero-screenshot {
    margin-top: 56px;
    max-width: 320px;
    margin-left: auto;
    margin-right: auto;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
}

/* ---- Sections ---- */
.section {
    padding: 72px 24px;
    max-width: var(--max-width-wide);
    margin: 0 auto;
}

.section-alt {
    background: var(--color-bg-soft);
}

.section h2 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 16px;
    text-align: center;
    letter-spacing: -0.02em;
}

.section .subtitle {
    text-align: center;
    color: var(--color-text-light);
    font-size: 1.1rem;
    margin-bottom: 48px;
    max-width: 540px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.6;
}

/* ---- Value Props ---- */
.value-props {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 32px 48px;
    margin-top: 32px;
}

.value-prop h3 {
    font-size: 1rem;
    font-weight: 650;
    margin-bottom: 6px;
}

.value-prop p {
    color: var(--color-text-light);
    font-size: 0.92rem;
    line-height: 1.6;
}

/* ---- Use Cases ---- */
.use-cases {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 16px;
    margin-top: 24px;
}

.use-case {
    background: var(--color-bg);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    padding: 24px;
    transition: border-color var(--transition), box-shadow var(--transition), transform var(--transition);
}

.use-case:hover {
    border-color: #d0d7de;
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
    text-decoration: none;
}

.use-case h3 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 6px;
    color: var(--color-text);
}

.use-case p {
    color: var(--color-text-light);
    font-size: 0.9rem;
    line-height: 1.5;
}

/* ---- Philosophy Quote ---- */
.philosophy {
    text-align: center;
    padding: 72px 24px;
    max-width: var(--max-width);
    margin: 0 auto;
}

.philosophy blockquote {
    font-size: 1.25rem;
    font-style: italic;
    color: var(--color-text-light);
    border-left: 3px solid var(--color-accent);
    padding-left: 28px;
    margin: 0 auto;
    text-align: left;
    max-width: 520px;
    line-height: 1.7;
}

/* ---- CTA Banner ---- */
.cta-banner {
    text-align: center;
    padding: 72px 24px;
    background: linear-gradient(180deg, var(--color-bg-soft) 0%, var(--color-bg) 100%);
}

.cta-banner h2 {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 12px;
    letter-spacing: -0.01em;
}

.cta-banner p {
    color: var(--color-text-light);
    margin-bottom: 28px;
    font-size: 1.05rem;
}

/* ---- Blog List ---- */
.blog-list { list-style: none; }

.blog-list li {
    padding: 24px 0;
    border-bottom: 1px solid var(--color-border-light);
}

.blog-list li:last-child { border-bottom: none; }

.blog-list a { text-decoration: none; display: block; }
.blog-list a:hover h3 { color: var(--color-link); }

.blog-list h3 {
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--color-text);
    margin-bottom: 4px;
    transition: color var(--transition);
}

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

.blog-list p {
    color: var(--color-text-light);
    font-size: 0.92rem;
    margin-top: 4px;
}

/* ---- Post ---- */
.post { max-width: var(--max-width); margin: 0 auto; padding: 48px 24px; }

.post-header { margin-bottom: 36px; }
.post-header h1 { font-size: 2.2rem; font-weight: 700; line-height: 1.25; letter-spacing: -0.02em; }
.post-header time { color: var(--color-text-muted); font-size: 0.85rem; display: block; margin-top: 10px; }

.post-content h2 { font-size: 1.35rem; font-weight: 650; margin: 36px 0 12px; }
.post-content h3 { font-size: 1.1rem; font-weight: 600; margin: 28px 0 8px; }
.post-content p { margin-bottom: 16px; line-height: 1.75; }
.post-content ul, .post-content ol { margin-bottom: 16px; padding-left: 24px; }
.post-content li { margin-bottom: 6px; }

.post-footer { margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--color-border-light); }

.post-cta {
    text-align: center;
    background: var(--color-bg-soft);
    border: 1px solid var(--color-border-light);
    border-radius: var(--radius-md);
    padding: 32px;
    margin-bottom: 24px;
}

.post-cta p {
    font-size: 1.05rem;
    font-weight: 600;
    margin-bottom: 12px;
}

.back-link { font-size: 0.88rem; color: var(--color-text-muted); }

/* ---- Legal Page ---- */
.page { max-width: var(--max-width); margin: 0 auto; padding: 48px 24px; }
.page h1 { font-size: 1.8rem; font-weight: 700; margin-bottom: 8px; }
.page .date { color: var(--color-text-muted); font-size: 0.88rem; margin-bottom: 28px; }
.page h2 { font-size: 1.2rem; font-weight: 650; margin-top: 32px; margin-bottom: 8px; }
.page p, .page li { margin-bottom: 8px; line-height: 1.7; }
.page ul { padding-left: 24px; }

/* ---- Footer ---- */
.site-footer {
    border-top: 1px solid var(--color-border-light);
    padding: 36px 24px;
    margin-top: 72px;
}

.footer-content {
    max-width: var(--max-width-wide);
    margin: 0 auto;
    text-align: center;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 28px;
    margin-bottom: 14px;
    flex-wrap: wrap;
}

.footer-links a {
    color: var(--color-text-muted);
    font-size: 0.88rem;
    font-weight: 500;
    transition: color var(--transition);
}
.footer-links a:hover { color: var(--color-text); text-decoration: none; }

.footer-copy { color: var(--color-text-muted); font-size: 0.78rem; }

/* ---- Blog Index Page ---- */
.blog-page { max-width: var(--max-width); margin: 0 auto; padding: 48px 24px; }
.blog-page h1 { font-size: 2rem; font-weight: 700; margin-bottom: 8px; }
.blog-page .subtitle { color: var(--color-text-light); margin-bottom: 32px; }

/* ---- Help Index ---- */
.help-hero {
    text-align: center;
    padding: 64px 24px 52px;
    max-width: var(--max-width-wide);
    margin: 0 auto;
}
.help-hero h1 {
    font-size: 2.4rem;
    font-weight: 800;
    letter-spacing: -0.03em;
    margin-bottom: 12px;
}
.help-hero .subtitle {
    color: var(--color-text-light);
    font-size: 1.1rem;
    max-width: 440px;
    margin: 0 auto;
    line-height: 1.6;
}

.help-categories {
    max-width: var(--max-width-wide);
    margin: 0 auto;
    padding: 0 24px 72px;
}

.help-category { margin-bottom: 48px; }
.help-category:last-child { margin-bottom: 0; }
.help-category h2 {
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--color-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 14px;
}

.help-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 12px;
}

.help-card {
    background: var(--color-bg);
    border: 1px solid var(--color-border);
    border-left: 3px solid var(--color-border);
    border-radius: var(--radius-md);
    padding: 18px 22px;
    transition: border-color var(--transition), box-shadow var(--transition), transform var(--transition);
    display: block;
    color: inherit;
}
.help-card:hover {
    border-left-color: var(--color-accent);
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
    text-decoration: none;
}
.help-card h3 {
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 3px;
    color: var(--color-text);
}
.help-card p {
    color: var(--color-text-light);
    font-size: 0.85rem;
    line-height: 1.45;
    margin: 0;
}

/* ---- Help Topic Pages ---- */
.help-topic {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 40px 24px 72px;
}

.help-breadcrumb {
    font-size: 0.84rem;
    color: var(--color-text-muted);
    margin-bottom: 28px;
}
.help-breadcrumb a {
    color: var(--color-text-muted);
    font-weight: 500;
    transition: color 0.15s;
}
.help-breadcrumb a:hover {
    color: var(--color-text);
    text-decoration: none;
}
.help-breadcrumb .sep {
    margin: 0 8px;
    color: var(--color-border);
}

.help-topic h1 {
    font-size: 2rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 8px;
    letter-spacing: -0.02em;
}

.help-topic .topic-summary {
    font-size: 1.1rem;
    color: var(--color-text-light);
    margin-bottom: 36px;
    line-height: 1.6;
}

.help-topic-content h2 {
    font-size: 1.2rem;
    font-weight: 650;
    margin: 40px 0 14px;
    color: var(--color-text);
}
.help-topic-content h2:first-child { margin-top: 0; }

.help-topic-content p {
    margin-bottom: 14px;
    line-height: 1.75;
}

.help-topic-content code {
    background: var(--color-bg-soft);
    border: 1px solid var(--color-border-light);
    padding: 2px 7px;
    border-radius: 5px;
    font-size: 0.88em;
    font-family: "SF Mono", "Fira Code", "Fira Mono", Menlo, monospace;
    color: var(--color-text);
}

/* Guide rows — bullet + text list */
.guide-list {
    list-style: none;
    padding: 4px 0;
    margin: 0 0 8px;
}
.guide-list li {
    position: relative;
    padding: 6px 0 6px 20px;
    font-size: 0.95rem;
    line-height: 1.6;
    color: var(--color-text);
}
.guide-list li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 14px;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--color-accent);
    opacity: 0.6;
}
.guide-list.muted li::before {
    background: var(--color-text-muted);
    opacity: 0.4;
}

/* Freshness visualization */
.freshness-table {
    background: var(--color-bg-soft);
    border: 1px solid var(--color-border-light);
    border-radius: var(--radius-md);
    padding: 20px 24px;
    margin: 16px 0;
}
.freshness-row {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 9px 0;
    border-bottom: 1px solid var(--color-border-light);
}
.freshness-row:last-child { border-bottom: none; }
.freshness-dot {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    flex-shrink: 0;
    box-shadow: inset 0 1px 2px rgba(0,0,0,0.1);
}
.freshness-row .label {
    font-weight: 600;
    font-size: 0.95rem;
    min-width: 120px;
}
.freshness-row .desc {
    color: var(--color-text-light);
    font-size: 0.9rem;
}

/* Philosophy comparison table */
.philosophy-table {
    background: var(--color-bg-soft);
    border: 1px solid var(--color-border-light);
    border-radius: var(--radius-md);
    padding: 8px 24px;
    margin: 16px 0;
}
.philosophy-row {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 12px 0;
    font-size: 0.95rem;
    border-bottom: 1px solid var(--color-border-light);
}
.philosophy-row:last-child { border-bottom: none; }
.philosophy-row .wrong {
    color: var(--color-text-muted);
    text-decoration: line-through;
    min-width: 140px;
}
.philosophy-row .arrow {
    color: var(--color-border);
    font-size: 0.85rem;
}
.philosophy-row .right {
    color: var(--color-accent);
    font-weight: 600;
}

/* Back to help link */
.help-back {
    margin-top: 48px;
    padding-top: 24px;
    border-top: 1px solid var(--color-border-light);
    font-size: 0.88rem;
}
.help-back a {
    color: var(--color-text-muted);
    font-weight: 500;
    transition: color 0.15s;
}
.help-back a:hover { color: var(--color-text); text-decoration: none; }

/* ---- Responsive ---- */
/* Tablets */
@media (max-width: 768px) {
    .value-props { grid-template-columns: 1fr; gap: 24px; }
    .nav-links { gap: 18px; }
    .nav-links a { font-size: 0.85rem; }
}

/* Mobile */
@media (max-width: 640px) {
    .site-header { padding: 0 16px; }
    .nav-links { gap: 14px; }
    .nav-links a { font-size: 0.82rem; }

    .hero { padding: 48px 20px 36px; }
    .hero h1 { font-size: 2rem; }
    .hero .tagline { font-size: 1rem; margin-bottom: 28px; }

    .cta-group { flex-direction: column; align-items: center; gap: 12px; }
    .store-badge img { height: 44px; }
    .store-badge-soon { height: 44px; font-size: 0.82rem; }

    .screenshots { padding: 36px 0 48px; }
    .screenshots h2 { font-size: 1.3rem; margin-bottom: 24px; }
    .screenshot-item { flex: 0 0 170px; }
    .screenshot-item img { width: 170px; border-radius: 16px; }
    .screenshot-item p { font-size: 0.78rem; margin-top: 10px; }

    .section { padding: 48px 20px; }
    .section h2 { font-size: 1.5rem; }
    .section .subtitle { font-size: 1rem; }
    .use-cases { grid-template-columns: 1fr; }

    .philosophy { padding: 48px 20px; }
    .philosophy blockquote { font-size: 1.05rem; padding-left: 20px; }

    .cta-banner { padding: 48px 20px; }
    .cta-banner h2 { font-size: 1.4rem; }

    .post { padding: 32px 20px; }
    .post-header h1 { font-size: 1.7rem; }

    .page { padding: 32px 20px; }

    .help-hero { padding: 36px 20px 28px; }
    .help-hero h1 { font-size: 1.6rem; }
    .help-categories { padding: 0 20px 48px; }
    .help-grid { grid-template-columns: 1fr; }
    .help-topic { padding: 28px 20px 48px; }
    .help-topic h1 { font-size: 1.4rem; }
    .philosophy-row { gap: 10px; font-size: 0.88rem; }
    .philosophy-row .wrong { min-width: 100px; }
    .freshness-row .label { min-width: 90px; }

    .footer-links { gap: 16px; }
    .footer-links a { font-size: 0.82rem; }
}
