/* ==========================================================================
   PooDoo shared design system
   Used by every page on dailyflow.uk — keep this the single source of truth
   for brand colors, nav/footer, buttons, cards and content-page typography.
   ========================================================================== */

:root {
    --orange: #FA8D28;
    --orange-dark: #E07418;
    --yellow: #FFD23F;
    --purple: #27B7FA;
    --blue: #0D8CD6;
    --bg: #FFF9F2;
    --text: #2c3e50;
    --text-muted: #5b6b78;
    --white: #ffffff;
    --card-shadow: 0 10px 40px rgba(0, 0, 0, 0.04);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}

html {
    scroll-behavior: smooth;
}

body {
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
}

a {
    color: inherit;
}

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

.container.narrow {
    max-width: 800px;
}

/* ---------- Nav ---------- */
nav.site-nav {
    background: var(--purple);
    padding: 18px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px 20px;
}

.logo {
    font-size: 24px;
    font-weight: 800;
    color: white;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 8px;
}

.nav-links {
    display: flex;
    flex-wrap: wrap;
    gap: 4px 22px;
}

.nav-links a {
    text-decoration: none;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 600;
    font-size: 15px;
    transition: 0.2s;
    white-space: nowrap;
}

.nav-links a:hover,
.nav-links a.active {
    color: white;
}

/* ---------- Hero (homepage) ---------- */
header.hero {
    background: var(--purple);
    color: white;
    padding: 40px 20px 100px;
    text-align: center;
    border-bottom-left-radius: 60px;
    border-bottom-right-radius: 60px;
}

header.hero h1 {
    font-size: 56px;
    font-weight: 900;
    margin-bottom: 15px;
    line-height: 1.05;
}

.hero-text {
    max-width: 750px;
    margin: 0 auto 35px;
    font-size: 20px;
    font-weight: 500;
    line-height: 1.4;
}

/* ---------- Page hero (inner pages: methodology, chart, guides, legal) ---------- */
header.page-hero {
    background: var(--purple);
    color: white;
    padding: 56px 20px 72px;
    text-align: center;
    border-bottom-left-radius: 40px;
    border-bottom-right-radius: 40px;
}

header.page-hero h1 {
    font-size: 38px;
    font-weight: 900;
    margin-bottom: 12px;
}

header.page-hero p {
    max-width: 680px;
    margin: 0 auto;
    font-size: 17px;
    opacity: 0.95;
}

header.page-hero .effective-date {
    opacity: 0.85;
    font-size: 14px;
    margin-top: 10px;
}

/* ---------- Store buttons ---------- */
.store-buttons {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
}

.btn-store {
    background: white;
    color: #000;
    padding: 14px 28px;
    border-radius: 16px;
    text-decoration: none;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: transform 0.2s, box-shadow 0.2s;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
}

.btn-store:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.btn-store .store-icon {
    font-size: 18px;
    line-height: 1;
}

/* ---------- App screenshot preview ---------- */
.app-preview-section {
    margin: -70px auto 60px;
    display: flex;
    justify-content: center;
}

.screenshot-container {
    width: 320px;
    aspect-ratio: 9 / 18;
    background: #000;
    border-radius: 45px;
    border: 10px solid #1a1a1a;
    overflow: hidden;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.25);
    display: flex;
    align-items: center;
    justify-content: center;
}

.screenshot-container img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    background-color: var(--orange);
}

/* ---------- Sections / feature grid ---------- */
.features {
    padding: 40px 0;
}

.section-title {
    text-align: center;
    margin-bottom: 40px;
}

.section-title h2 {
    font-size: 32px;
    color: var(--blue);
    margin-bottom: 10px;
}

.section-title p {
    color: var(--text-muted);
    font-size: 17px;
}

.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
}

.card {
    background: white;
    padding: 30px;
    border-radius: 24px;
    box-shadow: var(--card-shadow);
    border-left: 8px solid var(--blue);
    transition: transform 0.3s, box-shadow 0.3s;
    text-decoration: none;
    color: inherit;
    display: block;
    scroll-margin-top: 100px;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 45px rgba(0, 0, 0, 0.08);
}

.card.purple { border-left-color: var(--purple); }
.card.special { border-left-color: var(--orange); }

.card h3 {
    color: var(--blue);
    margin-bottom: 10px;
    font-size: 20px;
}

.card.special h3 { color: var(--orange); }

.card p {
    font-size: 15px;
    color: #555;
    margin-bottom: 15px;
}

.more {
    color: var(--blue);
    font-weight: 700;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.card.special .more { color: var(--orange); }

/* ---------- App showcase card (DailyFlow homepage -> product) ---------- */
.app-showcase {
    max-width: 760px;
    margin: 0 auto;
    display: flex;
    gap: 32px;
    align-items: center;
    padding: 30px 36px;
}

.app-showcase img {
    width: 200px;
    max-width: 100%;
    height: auto;
    border-radius: 24px;
    flex-shrink: 0;
    display: block;
}

.app-showcase-text {
    flex: 1;
    min-width: 220px;
}

.app-showcase-text h3 {
    font-size: 24px;
    margin-bottom: 8px;
}

.app-showcase-text p {
    margin-bottom: 14px;
}

@media (max-width: 640px) {
    .app-showcase {
        flex-direction: column;
        text-align: center;
        padding: 28px 22px;
    }

    .app-showcase img {
        width: 170px;
        margin: 0 auto;
    }
}

/* ---------- CTA band (used at top/bottom of content pages) ---------- */
.cta-band {
    background: linear-gradient(135deg, var(--orange), var(--yellow));
    border-radius: 28px;
    padding: 40px 30px;
    text-align: center;
    color: #2c1600;
    margin: 50px auto;
}

.cta-band h2 {
    font-size: 26px;
    margin-bottom: 10px;
    color: #2c1600;
}

.cta-band p {
    margin-bottom: 22px;
    font-size: 16px;
    opacity: 0.9;
}

.cta-band .store-buttons { margin-top: 4px; }

/* ---------- Content / article pages (methodology, guides, legal) ---------- */
.content-card {
    background: white;
    padding: 50px 40px;
    border-radius: 30px;
    margin: -46px auto 40px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.06);
    position: relative;
    z-index: 2;
}

.content-card h1 {
    color: var(--purple);
    margin-bottom: 20px;
    font-size: 32px;
}

.content-card h2 {
    color: var(--orange-dark);
    margin-top: 34px;
    margin-bottom: 14px;
    font-size: 23px;
    scroll-margin-top: 100px;
}

.type-cta {
    display: inline-block;
    margin: 6px 0 6px;
    font-weight: 700;
    color: var(--blue);
    text-decoration: none;
    font-size: 15px;
}

.content-card h3 {
    color: var(--blue);
    margin-top: 24px;
    margin-bottom: 10px;
    font-size: 19px;
}

.content-card p,
.content-card li {
    font-size: 16px;
    color: #444;
    margin-bottom: 14px;
}

.content-card ul,
.content-card ol {
    padding-left: 22px;
    margin-bottom: 16px;
}

.content-card a {
    color: var(--blue);
    text-decoration: underline;
}

.content-card table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
}

.content-card th,
.content-card td {
    border: 1px solid #eee;
    padding: 12px;
    text-align: left;
    font-size: 15px;
}

.content-card th {
    background: var(--bg);
    color: var(--text);
}

.methodology-box {
    background: var(--bg);
    padding: 18px 20px;
    border-left: 5px solid var(--blue);
    border-radius: 10px;
    margin: 20px 0;
}

.highlight-box {
    background: var(--bg);
    border-left: 5px solid var(--orange);
    padding: 20px;
    border-radius: 10px;
    font-style: italic;
    margin: 30px 0;
}

.alert-box {
    background: #fff3cd;
    border: 1px solid #ffe49a;
    padding: 14px 18px;
    border-radius: 10px;
    font-weight: 600;
    margin-bottom: 24px;
    color: #6b5100;
}

.important-box {
    background-color: #fff3cd;
    border-left: 5px solid var(--orange);
    padding: 16px 20px;
    border-radius: 10px;
    margin: 20px 0;
    font-weight: 600;
    color: #5a4400;
}

.source-list {
    font-size: 0.9em;
    color: var(--text-muted);
}

.effective-date {
    color: var(--text-muted);
    font-style: italic;
    margin-bottom: 20px;
}

/* ---------- FAQ (native <details>/<summary>, no JS needed) ---------- */
.faq-item {
    background: white;
    border-radius: 16px;
    box-shadow: var(--card-shadow);
    margin-bottom: 14px;
    overflow: hidden;
}

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

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

.faq-item summary::after {
    content: '+';
    font-size: 22px;
    color: var(--orange);
    margin-left: 12px;
    flex-shrink: 0;
}

.faq-item[open] summary::after { content: '\2212'; }

.faq-item p {
    padding: 0 24px 20px;
    color: #555;
    font-size: 15px;
}

/* ---------- Footer ---------- */
footer.site-footer {
    background: #1a1a1a;
    color: white;
    padding: 70px 0 30px;
    margin-top: 90px;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 50px;
    margin-bottom: 50px;
}

footer h4 {
    margin-bottom: 22px;
    color: var(--yellow);
    font-size: 18px;
}

footer a {
    color: #adadad;
    text-decoration: none;
    display: block;
    margin-bottom: 12px;
    font-size: 15px;
    transition: 0.2s;
}

footer a:hover { color: white; }

.footer-bottom {
    border-top: 1px solid #333;
    padding-top: 30px;
    text-align: center;
    font-size: 14px;
    color: #777;
}

/* ---------- Responsive ---------- */
@media (max-width: 640px) {
    header.hero h1 { font-size: 40px; }
    header.page-hero h1 { font-size: 28px; }
    .hero-text { font-size: 17px; }
    .content-card { padding: 34px 22px; margin-top: -30px; }
    .cta-band { padding: 30px 20px; }
    nav.site-nav { padding: 14px 0; }
    .logo { font-size: 21px; }
}
