/* Daily PLR — the one stylesheet for every public and member page.
 *
 * Look: a direct-response sales letter. White page, black Helvetica-style
 * type, big centred bold headlines, a narrow reading column, red crosses
 * for "no" points and a big yellow buy button.
 *
 * Written mobile-first: the plain rules are for phones; the @media
 * blocks at the end widen things for bigger screens.
 *
 * Sections, in order:
 *   1. Colours and basics      5. Home page (the sales letter)
 *   2. Header and footer       6. Product cards and covers
 *   3. Buttons and forms       7. Member pages
 *   4. The Join box            8. Shop and sales pages
 *                              9. Bigger screens
 */

/* ---- 1. Colours and basics ------------------------------------------- */

:root {
    --ink: #111;            /* headlines and body text */
    --ink-soft: #3b3b3b;    /* paragraphs */
    --muted: #6b6b6b;       /* small print */
    --line: #e2e2e2;        /* dividers */
    --paper: #fff;
    --tint: #f6f6f4;        /* light grey panels */
    --yellow: #ffe01b;      /* the buy button */
    --yellow-edge: #d9b900;
    --red: #d60000;         /* ✖ bullets, errors */
    --green: #1e8e3e;       /* ✔ ticks, success */
    --link: #1667d9;
    --font: "Helvetica Neue", Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
    margin: 0;
    background: var(--paper);
    color: var(--ink-soft);
    font: 18px/1.6 var(--font);
}

h1, h2, h3 { color: var(--ink); line-height: 1.15; margin: 0 0 16px; }
h1 { font-size: 30px; font-weight: 800; }
h2 { font-size: 26px; font-weight: 800; }
h3 { font-size: 20px; font-weight: 700; }
p { margin: 0 0 16px; }
strong, b { color: var(--ink); }
a { color: var(--link); }
a:hover { text-decoration: none; }
img { max-width: 100%; height: auto; }

.muted { color: var(--muted); }
.small { font-size: 15px; }
.center { text-align: center; }
form.inline { display: inline; }

.alert { padding: 12px 16px; border-radius: 6px; margin: 0 0 20px; }
.alert-error { background: #fdecec; color: #8a1010; }
.alert-ok { background: #e8f5ec; color: #145c2a; }

/* Narrow reading column (default for every page). */
.page { max-width: 680px; margin: 0 auto; padding: 28px 16px 56px; min-height: 60vh; }
.page-wide { max-width: 1080px; }

/* ---- 2. Header and footer --------------------------------------------- */

.top { border-bottom: 1px solid var(--line); background: var(--paper); }
.top-inner {
    max-width: 1080px; margin: 0 auto; padding: 12px 16px;
    display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 20px;
}
.logo {
    color: var(--ink); text-decoration: none; font-weight: 800; font-size: 24px; letter-spacing: -0.5px;
}
.logo span { background: var(--yellow); padding: 0 5px; border-radius: 3px; }

/* On phones the links sit on their own row under the logo. */
.top-nav { order: 3; width: 100%; display: flex; flex-wrap: wrap; gap: 4px 18px; font-size: 16px; }
.top-nav a, .top-nav .link { color: var(--ink); text-decoration: none; font-weight: 600; }
.top-nav a:hover, .top-nav .link:hover { text-decoration: underline; }

.join-small {
    background: var(--yellow); border-bottom: 3px solid var(--yellow-edge); color: var(--ink);
    font-weight: 800; text-decoration: none; padding: 6px 18px; border-radius: 6px; text-transform: uppercase; font-size: 15px;
}

.bottom {
    border-top: 1px solid var(--line); padding: 28px 16px 40px; text-align: center; font-size: 15px; color: var(--muted);
}
.bottom nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 22px; margin-bottom: 10px; }
.bottom a { color: var(--ink); }

/* ---- 3. Buttons and forms --------------------------------------------- */

button, .button {
    display: inline-block; font: inherit; font-weight: 700; font-size: 16px; cursor: pointer; text-decoration: none;
    padding: 10px 20px; border-radius: 6px; border: 2px solid var(--ink); background: var(--ink); color: #fff;
}
button:hover, .button:hover { background: #333; border-color: #333; }
button:disabled { background: #ccc; border-color: #ccc; color: #666; cursor: not-allowed; }
button.link { background: none; border: 0; padding: 0; color: inherit; font-weight: 600; }
.button-light { background: #fff; color: var(--ink); }
.button-light:hover { background: var(--tint); }

label { display: block; margin: 0 0 16px; font-weight: 700; color: var(--ink); }
input[type=email], input[type=password], input[type=text], input[type=search] {
    display: block; width: 100%; margin-top: 6px; padding: 12px 14px;
    font: inherit; font-size: 17px; border: 2px solid #cfcfcf; border-radius: 6px; background: #fff; color: var(--ink);
}
input:focus { outline: none; border-color: var(--ink); }
label.checkbox { display: flex; gap: 10px; align-items: center; font-weight: 400; }
label.checkbox input { width: 20px; height: 20px; margin: 0; }

/* ---- 4. The Join box (price notice, yellow button, card logos) -------- */

.join { text-align: center; margin: 32px auto; max-width: 560px; }

.price-notice,
.notice { /* .notice: the same box on other pages, e.g. /thank-you */
    border: 2px dashed var(--ink); border-radius: 8px; padding: 14px 16px; margin: 0 0 20px;
    font-size: 17px; color: var(--ink); background: #fffdf0;
}
.price-notice .places { display: block; margin-top: 6px; color: var(--red); font-weight: 700; }

.buy {
    display: flex; align-items: stretch; width: 100%; text-decoration: none; color: var(--ink);
    background: var(--yellow); border-radius: 8px; border-bottom: 5px solid var(--yellow-edge);
    box-shadow: 0 2px 0 rgba(0, 0, 0, 0.08); overflow: hidden;
}
.buy:hover { filter: brightness(1.04); }
.buy:active { transform: translateY(2px); border-bottom-width: 3px; }
.buy-icon { display: flex; align-items: center; padding: 0 16px; border-right: 2px solid var(--yellow-edge); }
.buy-icon svg { width: 34px; height: 34px; }
.buy-text {
    flex: 1; padding: 18px 12px; font-size: 24px; font-weight: 900; letter-spacing: 0.5px; text-transform: uppercase; text-align: center;
}

.cards { display: flex; justify-content: center; flex-wrap: wrap; gap: 6px; margin: 14px 0 6px; }
.cards img { display: block; width: 39px; height: 25px; } /* full-colour card marks, public/assets/cards/ */

.full-box { border: 3px solid var(--ink); border-radius: 8px; padding: 20px 16px; background: var(--tint); }
.full-title { font-size: 22px; font-weight: 800; color: var(--ink); line-height: 1.25; }
.waitlist { display: flex; flex-direction: column; gap: 10px; margin: 0 0 10px; }
.waitlist input { margin: 0; }
.waitlist button { width: 100%; }
.trap { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; } /* spam-robot trap */

/* ---- 5. Home page (the sales letter) ---------------------------------- */

.sales section { padding: 40px 16px; border-top: 1px solid var(--line); }
.sales section:first-child { border-top: 0; }
.sales .column { max-width: 680px; margin: 0 auto; }
.sales .column-wide { max-width: 1000px; margin: 0 auto; }
.sales h2 { text-align: center; font-size: 30px; margin-bottom: 24px; }

.hero { text-align: center; padding-top: 36px; }
/* Two lines: "A brand-new PLR product" / "every single day.". The size
   shrinks with narrow phones so the highlighted phrase always fits whole. */
.hero h1 { font-size: min(38px, 9.4vw); line-height: 1.1; letter-spacing: -1px; max-width: 900px; margin: 0 auto 20px; }
.hero h1 .nowrap { white-space: nowrap; } /* one unbroken yellow block; "day." never alone */
/* The yellow box is its own inline block with a margin above it, so it
   starts clearly below the letters of the first line (never overlaps them). */
.hero h1 mark {
    display: inline-block; line-height: 1.05; padding: 0 0.15em; margin-top: 0.2em;
    background: var(--yellow); color: inherit;
}
.subhead { font-size: 20px; max-width: 640px; margin: 0 auto 8px; color: var(--ink-soft); }

/* Coming this week */
.days { list-style: none; margin: 0; padding: 0; border-top: 2px solid var(--ink); }
.days li { display: flex; flex-direction: column; gap: 2px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.days .day { font-weight: 800; color: var(--ink); font-size: 16px; text-transform: uppercase; letter-spacing: 0.5px; }
.days .what strong { display: block; }
.days .what .type { color: var(--muted); font-size: 15px; }
.days .tba { color: var(--muted); font-style: italic; }

/* How it works */
.steps { list-style: none; counter-reset: step; margin: 0; padding: 0; display: grid; gap: 24px; }
.steps li { counter-increment: step; text-align: center; }
.steps li::before {
    content: counter(step); display: flex; align-items: center; justify-content: center;
    width: 56px; height: 56px; margin: 0 auto 12px; border-radius: 50%;
    background: var(--yellow); border: 3px solid var(--ink); font-size: 26px; font-weight: 900; color: var(--ink);
}
.steps h3 { margin-bottom: 8px; }
.steps li.arrow { display: none; counter-increment: none; }
.steps li.arrow::before { content: none; }

/* The no-licence promise: ✖ and ✔ lists */
.promise { text-align: center; }
.promise .big { font-size: 28px; font-weight: 900; color: var(--ink); line-height: 1.2; margin-bottom: 24px; }
.xlist, .ticks { list-style: none; padding: 0; margin: 0 auto 16px; display: inline-block; text-align: left; }
.xlist li, .ticks li { position: relative; padding-left: 36px; margin: 0 0 10px; font-size: 20px; color: var(--ink); }
.xlist li::before, .ticks li::before { position: absolute; left: 0; top: 0; font-weight: 900; font-size: 22px; line-height: 1.4; }
.xlist li::before { content: "\2716"; color: var(--red); }   /* ✖ */
.ticks li::before { content: "\2714"; color: var(--green); } /* ✔ */

/* FAQ: <details> opens without any JavaScript */
.faq details { border-bottom: 1px solid var(--line); }
.faq details:first-of-type { border-top: 2px solid var(--ink); }
.faq summary {
    cursor: pointer; list-style: none; padding: 16px 36px 16px 0; position: relative;
    font-weight: 800; color: var(--ink); font-size: 19px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 4px; top: 12px; font-size: 26px; font-weight: 400; }
.faq details[open] summary::after { content: "\2212"; } /* − */
.faq details p { margin: 0 0 16px; }

/* ---- 6. Product cards and covers -------------------------------------- */

.cards-grid { display: grid; grid-template-columns: 1fr; gap: 20px; }
.card { border: 1px solid var(--line); border-radius: 10px; overflow: hidden; background: #fff; display: flex; flex-direction: column; }
.card-body { padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.card-title { font-size: 19px; margin: 0; }
.card-meta { font-size: 14px; color: var(--muted); margin: 0; text-transform: uppercase; letter-spacing: 0.4px; font-weight: 700; }
.card-desc { font-size: 16px; margin: 0; }

/* Covers: a square box (3:2 on phones, to save scrolling). Real covers are fitted inside; products with no
   cover get a placeholder drawn from the title and type, in one of four
   Daily PLR colour schemes (chosen by the |cover_style filter). */
.cover { aspect-ratio: 3 / 2; background: var(--tint); display: flex; align-items: center; justify-content: center; }
.cover img { width: 100%; height: 100%; object-fit: contain; }
.ph {
    width: 100%; height: 100%; padding: 8%; display: flex; flex-direction: column; justify-content: space-between;
    text-align: left; overflow: hidden;
}
.ph-type { font-size: 13px; font-weight: 800; text-transform: uppercase; letter-spacing: 1px; }
.ph-title {
    font-size: 26px; font-weight: 900; line-height: 1.1; letter-spacing: -0.5px;
    display: -webkit-box; -webkit-line-clamp: 5; -webkit-box-orient: vertical; overflow: hidden;
}
.ph-brand { font-size: 13px; font-weight: 800; }
.ph-0 { background: var(--ink); color: #fff; }
.ph-0 .ph-type, .ph-0 .ph-brand { color: var(--yellow); }
.ph-1 { background: var(--yellow); color: var(--ink); }
.ph-2 { background: #fff; color: var(--ink); border: 6px solid var(--ink); }
.ph-2 .ph-type { color: var(--red); }
.ph-3 { background: var(--red); color: #fff; }
.ph-3 .ph-brand { color: var(--yellow); }

/* Download buttons on a card */
.downloads { margin-top: auto; padding-top: 8px; display: flex; flex-direction: column; gap: 10px; }
.download { display: flex; flex-direction: column; gap: 4px; }
.download button { width: 100%; background: var(--yellow); border-color: var(--yellow-edge); color: var(--ink); }
.download button:hover { filter: brightness(1.04); background: var(--yellow); }
.download button:disabled { background: #e6e6e6; border-color: #ddd; color: #777; }
.download .left { font-size: 14px; color: var(--muted); text-align: center; }
.download .left strong { color: var(--ink); }
.download .refund-note { font-size: 12px; line-height: 1.35; color: var(--muted); text-align: center; } /* refund rule, under every Download button */

/* ---- 7. Member pages --------------------------------------------------- */

.page h1 { font-size: 30px; }
.page h2 { margin-top: 32px; }
.section-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 8px 16px; margin: 36px 0 16px; }
.section-head h2 { margin: 0; }

form.search { display: flex; gap: 8px; margin: 0 0 20px; }
form.search input { margin: 0; flex: 1; }
.pager { display: flex; gap: 20px; justify-content: center; align-items: center; margin-top: 28px; }

.roadmap-day { border-top: 1px solid var(--line); padding: 12px 0; }
.roadmap-day h3 { font-size: 16px; text-transform: uppercase; letter-spacing: 0.5px; margin: 0 0 6px; }
.roadmap-day.provisional { color: var(--muted); }
.roadmap-item { display: flex; gap: 14px; align-items: flex-start; margin: 6px 0 12px; }
.roadmap-item p { margin: 2px 0 0; }

/* Small square covers in lists (roadmaps) */
/* Whole cover, never cropped: fixed width, the image's own height. */
.thumb { flex: 0 0 90px; width: 90px; border-radius: 6px; overflow: hidden; background: var(--tint); border: 1px solid var(--line); }
.thumb img { width: 100%; height: auto; display: block; }
.thumb .ph { aspect-ratio: 1 / 1; padding: 6px; justify-content: flex-end; }
.thumb .ph-type { font-size: 11px; letter-spacing: 0.5px; line-height: 1.1; }
.thumb .ph-2 { border-width: 3px; }
.days .day-product { display: flex; gap: 12px; align-items: center; margin: 4px 0; }
.badge { display: inline-block; padding: 1px 8px; border-radius: 10px; background: var(--tint); border: 1px solid var(--line); font-size: 12px; font-weight: 700; text-transform: uppercase; }

.not-found { text-align: center; padding-top: 40px; }
.not-found .code { font-size: 96px; font-weight: 900; color: var(--ink); line-height: 1; margin: 0 0 8px; }
.not-found .code span { background: var(--yellow); padding: 0 12px; }

.draft-note { border: 2px dashed var(--muted); border-radius: 6px; padding: 14px 16px; color: var(--muted); }

/* Legal pages: terms, refunds, privacy, contact */
.legal .updated { color: var(--muted); font-size: 15px; margin-top: -8px; }
.legal h2 { font-size: 22px; margin: 32px 0 8px; }
.legal li { margin-bottom: 6px; }
.table-scroll { overflow-x: auto; margin: 0 0 16px; }
.legal table { width: 100%; border-collapse: collapse; font-size: 16px; }
.legal th, .legal td { text-align: left; vertical-align: top; padding: 10px 12px; border-bottom: 1px solid var(--line); }
.legal th { background: var(--tint); color: var(--ink); font-weight: 800; }
.legal td:first-child { color: var(--ink); width: 50%; }

/* ---- 8. Shop and sales pages ---------------------------------------------- */

/* Shown only to a logged-in admin, above the header on public and member pages */
.admin-bar { display: flex; flex-wrap: wrap; gap: 6px 16px; align-items: center; padding: 6px 16px; background: #1d2330; color: #fff; font-size: 14px; }
.admin-bar a { color: #cfd6e4; text-decoration: none; }
.admin-bar a:hover { color: #fff; text-decoration: underline; }
.admin-bar .edit { margin-left: auto; color: var(--yellow); font-weight: 700; }

.preview-note { border: 2px dashed var(--red); border-radius: 6px; padding: 10px 14px; color: var(--red); font-weight: 700; }
.crumbs { font-size: 15px; margin: 0 0 12px; }

/* Shop: the whole card is a link to the sales page */
a.card { color: inherit; text-decoration: none; }
a.card:hover { border-color: var(--ink); }
a.card:hover .card-title { text-decoration: underline; }
.card-more { margin-top: auto; padding-top: 6px; font-weight: 700; color: var(--link); font-size: 16px; }
.shop-filters { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 20px; }
.shop-filters input { margin: 0; flex: 1 1 220px; }
.shop-filters select { padding: 12px 14px; border: 2px solid var(--line); border-radius: 6px; font: inherit; background: #fff; }

/* Sales page: cover and facts side by side on wider screens */
.sale { display: grid; grid-template-columns: 1fr; gap: 24px; align-items: start; }
.sale h1 { text-align: left; margin: 4px 0 12px; }
.sale-facts { list-style: none; padding: 0; margin: 16px 0; border-top: 1px solid var(--line); }
.sale-facts li { display: flex; justify-content: space-between; gap: 12px; padding: 8px 0; border-bottom: 1px solid var(--line); font-size: 16px; }
.sale-facts li span:last-child { color: var(--muted); white-space: nowrap; }
.sale-copy { margin: 32px 0; }
.choices { display: grid; grid-template-columns: 1fr; gap: 20px; margin: 32px 0; }
.choice { border: 2px solid var(--line); border-radius: 10px; padding: 20px; }
.choice h2 { font-size: 22px; margin: 0 0 8px; text-align: left; }
.choice .join { margin: 16px 0 0; }
.choice-main { border-color: var(--ink); }

/* ---- 9. Bigger screens -------------------------------------------------- */

@media (min-width: 560px) {
    .cover { aspect-ratio: 1 / 1; } /* square covers once cards sit side by side */
    .cards-grid { grid-template-columns: repeat(2, 1fr); }
    .waitlist { flex-direction: row; }
    .waitlist button { width: auto; white-space: nowrap; }
    .days li { flex-direction: row; gap: 20px; }
    .days .day { flex: 0 0 130px; padding-top: 2px; }
    .sale { grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); }
    .thumb { flex-basis: 120px; width: 120px; }
}

@media (min-width: 800px) {
    body { font-size: 19px; }
    h1 { font-size: 40px; }
    .top-nav { order: 0; width: auto; flex: 1; justify-content: flex-end; gap: 24px; }
    .page { padding-top: 44px; }
    .page h1 { font-size: 40px; }
    .sales section { padding: 64px 24px; }
    .sales h2 { font-size: 40px; margin-bottom: 32px; }
    .hero { padding-top: 64px; }
    /* Desktop: about as wide as the price box (560px). The first line never
       wraps, and the headline is exactly as wide as that line (fit-content),
       so it stays centered whatever the font. */
    .hero h1 { font-size: 40px; letter-spacing: -1px; width: fit-content; max-width: none; }
    .hero h1 .line1 { white-space: nowrap; }
    .subhead { font-size: 23px; }
    .buy-text { font-size: 30px; padding: 22px 12px; }
    .promise .big { font-size: 38px; }
    .steps { grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr) auto minmax(0, 1fr); align-items: start; gap: 12px; }
    .steps li.arrow { display: block; font-size: 36px; font-weight: 900; color: var(--ink); padding-top: 8px; }
    .join-small { order: 4; }
    .cards-grid { grid-template-columns: repeat(3, 1fr); gap: 24px; }
    .cards-grid.today { grid-template-columns: repeat(auto-fit, minmax(260px, 340px)); justify-content: center; }
    .choices.two { grid-template-columns: 1fr 1fr; }
}
