/* Occasions storefront + buyer pages (/occasions) — the paid front door.
   Public-page convention (the ideas.css idiom): light by default, the app
   stays dark. Coral on light backgrounds uses the ink shade #D64545 for
   text/links; #FF6B6B (coral red) is reserved for fills like buttons. */

@font-face {
    font-family: 'Plus Jakarta Sans';
    src: url('/assets/fonts/PlusJakartaSans-SemiBold.ttf') format('truetype');
    font-weight: 600;
    font-display: swap;
}

:root {
    --occ-bg: #FFFFFF;
    --occ-ink: #1A1A1A;
    --occ-muted: #5C5650;
    --occ-card: #FAF7F4;
    --occ-border: #EDE7E1;
    --occ-coral: #FF6B6B;
    --occ-coral-ink: #D64545;
}

* { box-sizing: border-box; }

/* The beam.css lesson, applied up front: an author `display` beats the UA
   [hidden] rule. Every element this stylesheet gives a display to must keep
   honoring `hidden` — without these, the upload form rendered in EVERY page
   state and "Print the card" survived its own error path. */
.occ-form[hidden],
.occ-print-actions[hidden],
.occ-btn[hidden],
.occ-btn-quiet[hidden],
.occ-demo-replay[hidden],
.occ-file-label[hidden],
.occ-repeat-row[hidden],
.occ-photo-thumb[hidden],
.occ-art[hidden] { display: none; }

body {
    margin: 0;
    background: var(--occ-bg);
    color: var(--occ-ink);
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 17px;
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3 {
    font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
    font-weight: 600;
    line-height: 1.25;
}

a { color: var(--occ-coral-ink); }

/* ── Shell ─────────────────────────────────────────────── */
.occ-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 680px;
    margin: 0 auto;
    padding: 20px 20px 0;
}
.occ-header img { height: 28px; display: block; }
.occ-header .occ-hub-link {
    font-size: 14px;
    text-decoration: none;
    color: var(--occ-muted);
}
/* Right-side header group: the hub/beams link + the EN|ES language link
   (2026-09-03, Spanish storefront) sit together instead of spreading
   across the space-between header. */
.occ-header-links { display: flex; align-items: center; gap: 14px; }

.occ-page {
    max-width: 680px;
    margin: 0 auto;
    padding: 24px 20px 64px;
}

.occ-footer {
    max-width: 680px;
    margin: 0 auto;
    padding: 24px 20px 48px;
    border-top: 1px solid var(--occ-border);
    font-size: 14px;
    color: var(--occ-muted);
}
.occ-footer a { color: var(--occ-muted); margin-right: 16px; }

/* ── Hero ──────────────────────────────────────────────── */
.occ-eyebrow {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-weight: 600;
    font-size: 12px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--occ-coral-ink);
    margin: 16px 0 0;
}
.occ-page h1 { font-size: 34px; margin: 8px 0 12px; }
.occ-lede {
    color: var(--occ-muted);
    font-size: 18px;
    max-width: 52ch;
    margin: 0 0 24px;
}

/* ── Buttons ───────────────────────────────────────────── */
.occ-btn {
    display: inline-block;
    background: var(--occ-coral);
    color: #FFFFFF;
    border: none;
    text-decoration: none;
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-weight: 600;
    font-size: 16px;
    padding: 13px 30px;
    border-radius: 999px;
    cursor: pointer;
}
.occ-btn[disabled] { opacity: 0.6; cursor: default; }
.occ-btn-quiet {
    display: inline-block;
    background: transparent;
    color: var(--occ-coral-ink);
    border: 1px solid var(--occ-border);
    text-decoration: none;
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-weight: 600;
    font-size: 15px;
    padding: 11px 24px;
    border-radius: 999px;
    cursor: pointer;
}

/* The guest occasion chooser (receiver door, 2026-09-09): a stacked pick
   list inside the builder's empty card; the received occasion leads. */
.occ-choose-list { display: flex; flex-direction: column; gap: 10px; margin-top: 16px; }
.occ-choose-list .occ-btn,
.occ-choose-list .occ-btn-quiet { display: block; width: 100%; text-align: center; box-sizing: border-box; }
.occ-choose-cap {
    margin: 4px 0 -2px;
    font-size: 13px;
    font-weight: 600;
    color: var(--occ-muted);
}
.occ-price {
    font-size: 15px;
    color: var(--occ-muted);
    margin: 10px 0 0;
}

/* ── Occasion grid (hub) ───────────────────────────────── */
.occ-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* 2 rows of 3 at every width */
    gap: 8px;
    margin: 28px 0;
}
/* The responsive tile blocks live BELOW every base tile rule — equal
   specificity means source order decides, and these must win. */
.occ-tile {
    --occ-tile-pad: 20px; /* the photo bleed reads this — keep them coupled */
    min-width: 0; /* grid blowout fix: 1fr is minmax(auto,1fr), and the photo
                     bleed inflates min-content past the track on phones */
    display: flex;
    flex-direction: column;
    background: var(--occ-card);
    border: 1px solid var(--occ-border);
    border-radius: 12px;
    padding: var(--occ-tile-pad);
    text-decoration: none;
    color: var(--occ-ink);
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.occ-tile:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(26, 26, 26, 0.08);
}
.occ-tile:focus-visible {
    outline: 3px solid var(--occ-coral);
    outline-offset: 2px;
}
.occ-tile h2 { margin: 0 0 6px; font-size: 19px; }
.occ-tile > p { color: var(--occ-muted); font-size: 15px; margin: 0; }
.occ-tile-foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-top: auto; /* pins to the tile bottom so rows align across the grid */
    padding-top: 14px;
}
.occ-tile-price {
    font-size: 14px;
    color: var(--occ-muted);
    min-height: 20px; /* reserve the line so the JS price fill never reflows the grid */
}
/* Occasion photos (assets/occasions/<slug>-card-v2.webp — 720px derivatives of
   the 9:16 masters; /assets is 30-day immutable, so a re-edited image needs
   a NEW filename). The tile photo bleeds to the card edges over the 20px
   padding; 50% 30% keeps the faces, which sit in the upper third across
   the whole set. */
.occ-tile-img {
    display: block;
    width: calc(100% + var(--occ-tile-pad) * 2);
    max-width: none; /* the bleed is intentional — a global img cap would re-shrink it */
    /* height:auto is LOAD-BEARING: without it the height="1280" attribute
       keeps applying, and aspect-ratio is ignored unless height is auto —
       every tile rendered as a 1280px-tall strip (found on-device 2026-08-26) */
    height: auto;
    margin: calc(-1 * var(--occ-tile-pad)) calc(-1 * var(--occ-tile-pad)) 14px;
    /* native ratio of the masters — the full photo shows, nothing crops
       (founder call 2026-08-26: portrait cards, not square crops) */
    aspect-ratio: 9 / 16;
    object-fit: cover;
    object-position: 50% 30%;
    border-radius: 11px 11px 0 0; /* inside the tile's 12px radius and 1px border */
}
.occ-hero { margin: 24px 0; }
.occ-hero img {
    display: block;
    width: 100%;
    height: auto; /* same trap as .occ-tile-img: the height attr defeats aspect-ratio */
    aspect-ratio: 4 / 3;
    object-fit: cover;
    object-position: 50% 30%;
    border-radius: 12px;
}

/* ── BOGO bonus code on the share card ──────────────────── */
.occ-bogo-gift {
    margin-top: 20px;
    padding: 16px;
    background: var(--occ-card);
    border: 1px dashed var(--occ-coral);
    border-radius: 12px;
    text-align: center;
}
.occ-bogo-gift[hidden] { display: none; }
.occ-bogo-title {
    margin: 0 0 6px;
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-weight: 600;
}
.occ-bogo-code {
    margin: 0 0 12px;
    font-family: ui-monospace, 'Cascadia Mono', Consolas, monospace;
    font-size: 20px;
    letter-spacing: 2px;
    color: var(--occ-coral-ink);
}

/* 2 rows of 3 everywhere (founder call 2026-08-26). Phone tiles are
   photo-led minis (~110px): the description and the Create-it chevron
   hide, the PRICE stays (commercial rule: the flat price on the first
   screen, always). From 560px the tiles get their copy back. These
   blocks MUST sit after every base tile rule — same specificity, so
   source order is what lets them win. */
@media (max-width: 559.98px) {
    .occ-tile { --occ-tile-pad: 10px; }
    .occ-tile h2 { font-size: 13px; margin: 0; }
    .occ-tile > p { display: none; }
    .occ-tile-img { margin-bottom: 10px; }
    .occ-tile-foot { padding-top: 8px; }
    .occ-tile-price { font-size: 11px; min-height: 15px; }
    .occ-tile-cta { display: none; }
}
@media (min-width: 560px) {
    .occ-grid { gap: 14px; }
    .occ-tile { --occ-tile-pad: 14px; }
    .occ-tile h2 { font-size: 16px; }
    .occ-tile > p { font-size: 13px; }
    .occ-tile-price, .occ-tile-cta { font-size: 13px; }
}
.occ-tile-cta {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-weight: 600;
    font-size: 14px;
    color: var(--occ-coral-ink);
    white-space: nowrap;
}
.occ-tile-cta::after {
    /* chevron drawn in CSS: copy rules keep arrow glyphs and emoji out of strings */
    content: '';
    display: inline-block;
    width: 7px;
    height: 7px;
    border-right: 2px solid currentColor;
    border-top: 2px solid currentColor;
    transform: rotate(45deg);
    margin-left: 6px;
    vertical-align: 1px;
}

/* ── Occasion tile art (CSS-only, static; the animated receiver-side
      versions live in occasion-intro.css) ─────────────────── */
.occ-art {
    position: relative;
    display: block;
    width: 100%;
    height: 64px;
    margin-bottom: 14px;
}
.occ-art::before,
.occ-art::after {
    content: '';
    position: absolute;
}

/* Pregnancy: two tiny footprints, one after the other */
.occ-a-pregnancy::before,
.occ-a-pregnancy::after {
    width: 16px;
    height: 24px;
    border-radius: 50% 50% 46% 46%;
    background: var(--occ-coral);
    /* five little toes */
    box-shadow:
        -6px -13px 0 -5px var(--occ-coral),
        -2px -16px 0 -5px var(--occ-coral),
        3px -16px 0 -5.5px var(--occ-coral),
        7px -14px 0 -6px var(--occ-coral),
        10px -12px 0 -6.5px var(--occ-coral);
}
.occ-a-pregnancy::before { left: calc(50% - 26px); top: 18px; transform: rotate(-12deg); }
.occ-a-pregnancy::after { left: calc(50% + 10px); top: 28px; transform: rotate(10deg); }

/* Birthday: a balloon on its string */
.occ-a-birthday::before {
    width: 30px;
    height: 36px;
    left: calc(50% - 15px);
    top: 6px;
    background: var(--occ-coral);
    border-radius: 50% 50% 50% 50% / 55% 55% 45% 45%;
}
.occ-a-birthday::after {
    width: 2px;
    height: 16px;
    left: calc(50% - 1px);
    top: 42px;
    background: var(--occ-coral);
    opacity: 0.5;
    border-radius: 2px;
}

/* Congratulations: a confetti burst */
.occ-a-congrats::before {
    width: 10px;
    height: 10px;
    left: calc(50% - 5px);
    top: 27px;
    border-radius: 50%;
    background: var(--occ-coral);
}
.occ-a-congrats::after {
    width: 6px;
    height: 6px;
    left: calc(50% - 3px);
    top: 29px;
    border-radius: 50%;
    box-shadow:
        -22px -14px 0 var(--occ-coral),
        18px -18px 0 -1px var(--occ-coral),
        26px 6px 0 -2px var(--occ-coral),
        -26px 8px 0 -2px var(--occ-coral),
        -8px -24px 0 -2px var(--occ-coral),
        8px 22px 0 -2px var(--occ-coral),
        24px -4px 0 -3px var(--occ-coral),
        -18px 20px 0 -3px var(--occ-coral);
}

/* Anniversary: two overlapping rings */
.occ-a-anniversary::before,
.occ-a-anniversary::after {
    width: 30px;
    height: 30px;
    top: 17px;
    border: 3px solid var(--occ-coral);
    border-radius: 50%;
}
.occ-a-anniversary::before { left: calc(50% - 28px); }
.occ-a-anniversary::after { left: calc(50% - 6px); opacity: 0.55; }

/* Coming home: an arched doorway, door ajar */
.occ-a-cominghome::before {
    width: 34px;
    height: 48px;
    left: calc(50% - 17px);
    top: 8px;
    border: 3px solid var(--occ-coral);
    border-bottom: none;
    border-radius: 17px 17px 0 0;
}
.occ-a-cominghome::after {
    width: 14px;
    height: 40px;
    left: calc(50% - 11px);
    top: 16px;
    background: var(--occ-coral);
    opacity: 0.55;
    border-radius: 7px 3px 0 0;
    transform: skewY(-6deg);
    transform-origin: bottom left;
}

/* Any occasion: the quiet pulse dot (static twin of the receiver's occ-generic) */
.occ-a-any::before {
    width: 22px;
    height: 22px;
    left: calc(50% - 11px);
    top: 21px;
    border-radius: 50%;
    background: var(--occ-coral);
}
.occ-a-any::after {
    width: 40px;
    height: 40px;
    left: calc(50% - 20px);
    top: 12px;
    border: 2px solid var(--occ-coral);
    border-radius: 50%;
    opacity: 0.35;
}

/* ── Card preview (sales pages: "This is what they'll open") ──
   The receiver's envelope-open moment, inline and light-themed as a
   pre-purchase demo. Same idiom as the real thing (one .open state class,
   perspective ON the envelope since the flap is its pseudo, the Two Doors
   easing); the receiver-side .bv-occ-* overlay is a separate dark
   component and stays untouched. */
.occ-preview { margin: 32px 0; }
.occ-preview h2 { font-size: 24px; margin: 0 0 6px; }
.occ-preview-sub { color: var(--occ-muted); font-size: 15px; margin: 0 0 18px; }

.occ-demo {
    background: var(--occ-card);
    border: 1px solid var(--occ-border);
    border-radius: 12px;
    padding: 26px 20px;
    text-align: center;
}
.occ-demo-stage {
    position: relative;
    display: flex;
    justify-content: center;
    min-height: 176px;
}
.occ-demo-env {
    position: absolute;
    left: 50%;
    top: 50%;
    width: 200px;
    height: 136px;
    margin: -68px 0 0 -100px;
    z-index: 2;
    background: var(--occ-coral);
    border: none;
    border-radius: 10px;
    cursor: pointer;
    perspective: 600px;
    transition: opacity 0.4s ease 0.3s, transform 0.4s ease 0.3s;
}
.occ-demo-env::before {
    /* the flap */
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 70px;
    clip-path: polygon(0 0, 100% 0, 50% 100%);
    background: var(--occ-coral);
    filter: brightness(0.85);
    border-radius: 10px 10px 0 0;
    transform-origin: top center;
    transition: transform 0.45s cubic-bezier(0.65, 0, 0.35, 1);
}
.occ-demo-env::after {
    /* the seal */
    content: '';
    position: absolute;
    top: 59px;
    left: 50%;
    width: 18px;
    height: 18px;
    margin-left: -9px;
    border-radius: 50%;
    background: #FFFFFF;
    transition: opacity 0.15s ease;
}
.occ-demo-env:focus-visible {
    outline: 3px solid var(--occ-coral);
    outline-offset: 6px;
}
.occ-demo.open .occ-demo-env {
    opacity: 0;
    transform: translateY(26px);
    pointer-events: none;
}
.occ-demo.open .occ-demo-env::before { transform: rotateX(-160deg); }
.occ-demo.open .occ-demo-env::after { opacity: 0; }

.occ-demo-card {
    width: 100%;
    max-width: 380px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 24px 20px;
    background: #FFFFFF;
    border: 1px solid var(--occ-border);
    border-radius: 16px;
    opacity: 0;
    transform: translateY(40px) scale(0.93);
    transition: opacity 0.6s cubic-bezier(0.65, 0, 0.35, 1) 0.25s,
                transform 0.6s cubic-bezier(0.65, 0, 0.35, 1) 0.25s;
}
.occ-demo.open .occ-demo-card {
    opacity: 1;
    transform: none;
}
.occ-demo-card .occ-art { height: 64px; margin-bottom: 4px; }
.occ-demo-eyebrow {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-weight: 600;
    font-size: 11px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--occ-muted);
    margin: 0;
}
.occ-demo-for {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-weight: 600;
    font-size: 22px;
    margin: 0;
    overflow-wrap: anywhere;
}
.occ-demo-msg {
    color: var(--occ-muted);
    font-size: 15px;
    margin: 0;
    overflow-wrap: anywhere;
}
.occ-demo-hint {
    color: var(--occ-muted);
    font-size: 14px;
    margin: 14px 0 0;
    transition: opacity 0.2s ease;
}
.occ-demo.open .occ-demo-hint { opacity: 0; }
.occ-demo-replay { margin-top: 14px; }

@media (prefers-reduced-motion: reduce) {
    .occ-demo-env,
    .occ-demo-env::before,
    .occ-demo-env::after,
    .occ-demo-card,
    .occ-demo-hint {
        transition-duration: 0.01s;
        transition-delay: 0s;
    }
}

/* ── Etsy code entry (builder pay block) ───────────────── */
.occ-linklike {
    background: none;
    border: none;
    padding: 0;
    font: inherit;
    font-size: 14px;
    color: var(--occ-coral-ink);
    text-decoration: underline;
    cursor: pointer;
}
#occ-code-wrap[hidden] { display: none; }
#occ-code-wrap { margin-top: 12px; }
.occ-code-input {
    width: 100%;
    max-width: 260px;
    font: inherit;
    font-size: 17px;
    letter-spacing: 0.08em;
    text-align: center;
    text-transform: uppercase;
    color: var(--occ-ink);
    background: #FFFFFF;
    border: 1px solid var(--occ-border);
    border-radius: 12px;
    padding: 11px 12px;
}

/* ── Small layout utilities (replace inline styles) ────── */
.occ-center { text-align: center; }
.occ-card .occ-aside-lede { margin-bottom: 16px; }

/* ── Cards / sections ──────────────────────────────────── */
.occ-card {
    background: var(--occ-card);
    border: 1px solid var(--occ-border);
    border-radius: 12px;
    padding: 24px;
    margin: 24px 0;
}
.occ-card h2 { margin: 0 0 8px; font-size: 21px; }
.occ-card p { color: var(--occ-muted); margin: 0; }
.occ-card ul { margin: 8px 0 0; padding-left: 20px; color: var(--occ-muted); }
.occ-card li { margin-bottom: 8px; }
.occ-card li:last-child { margin-bottom: 0; }
.occ-card li strong { color: var(--occ-ink); }

.occ-steps {
    list-style: none;
    counter-reset: occ-step;
    margin: 24px 0;
    padding: 0;
    display: grid;
    gap: 12px;
}
.occ-steps li {
    counter-increment: occ-step;
    background: var(--occ-card);
    border: 1px solid var(--occ-border);
    border-radius: 12px;
    padding: 18px 18px 18px 58px;
    position: relative;
}
.occ-steps li::before {
    content: counter(occ-step);
    position: absolute;
    left: 18px;
    top: 18px;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--occ-coral);
    color: #FFFFFF;
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-weight: 600;
    font-size: 14px;
    border-radius: 50%;
}
.occ-steps strong {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-weight: 600;
}
.occ-steps p { margin: 4px 0 0; color: var(--occ-muted); font-size: 15px; }

/* ── Trust row ─────────────────────────────────────────── */
.occ-trust {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 18px;
    font-size: 14px;
    color: var(--occ-muted);
    border-top: 1px solid var(--occ-border);
    border-bottom: 1px solid var(--occ-border);
    padding: 14px 0;
    margin: 28px 0;
}
.occ-trust span::before {
    content: '';
    display: inline-block;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--occ-coral);
    margin-right: 8px;
    vertical-align: 2px;
}

/* ── FAQ ───────────────────────────────────────────────── */
.occ-faq { margin: 32px 0; }
.occ-faq h2 { font-size: 24px; }
.occ-faq details {
    border-bottom: 1px solid var(--occ-border);
    padding: 12px 0;
}
.occ-faq summary {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-weight: 600;
    cursor: pointer;
}
.occ-faq details p { color: var(--occ-muted); margin: 8px 0 0; font-size: 15px; }

/* ── Buyer pages (create / thanks) ─────────────────────── */
.occ-form { margin: 24px 0; display: grid; gap: 16px; }
.occ-field label {
    display: block;
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-weight: 600;
    font-size: 14px;
    margin-bottom: 6px;
}
.occ-field input[type="text"],
.occ-field input[type="email"],
.occ-field input[type="password"],
.occ-field input[type="date"],
.occ-field textarea {
    width: 100%;
    font: inherit;
    font-size: 16px;
    color: var(--occ-ink);
    background: #FFFFFF;
    border: 1px solid var(--occ-border);
    border-radius: 12px;
    padding: 12px 14px;
    min-height: 48px;
    -webkit-appearance: none;
    appearance: none;
    box-sizing: border-box;
}
.occ-field textarea { min-height: 88px; resize: vertical; }
.occ-field .occ-hint { font-size: 13px; color: var(--occ-muted); margin: 6px 0 0; }

/* Relationship chips (phase 4): optional, one active at most. The active
   chip mirrors what name-detection guessed, so nothing is ever set silently.
   Collapsed by default since 2026-09-08: .occ-rel-line is the one quiet row,
   the full chip set expands on tap. */
.occ-rel-line {
    display: flex;
    align-items: center;
    gap: 8px;
    width: 100%;
    background: none;
    border: none;
    padding: 0;
    color: var(--occ-muted);
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-weight: 600;
    font-size: 13px;
    cursor: pointer;
    text-align: left;
}
.occ-rel-line-chip {
    color: #FFFFFF;
    background: var(--occ-coral-ink);
    border: 1px solid var(--occ-coral-ink);
    border-radius: 999px;
    padding: 4px 12px;
    font-size: 12.5px;
    font-weight: 700;
}
.occ-rel-line-chip[hidden] { display: none !important; }
.occ-rel-caret { color: var(--occ-muted); font-size: 15px; }
.occ-rel-chips[hidden] { display: none !important; }
.occ-rel-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 10px;
}
.occ-rel-chip {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-weight: 600;
    font-size: 13px;
    color: var(--occ-ink);
    background: #FFFFFF;
    border: 1px solid var(--occ-border);
    border-radius: 999px;
    padding: 7px 14px;
    cursor: pointer;
}
.occ-rel-chip.active {
    color: #FFFFFF;
    background: var(--occ-coral-ink);
    border-color: var(--occ-coral-ink);
}

.occ-file-label {
    display: block;
    border: 1px dashed var(--occ-border);
    background: var(--occ-card);
    border-radius: 12px;
    padding: 20px;
    text-align: center;
    color: var(--occ-muted);
    cursor: pointer;
}
.occ-file-label.has-file { color: var(--occ-ink); border-style: solid; }
.occ-file-label input[type="file"] { display: none; }

.occ-progress {
    background: var(--occ-card);
    border: 1px solid var(--occ-border);
    border-radius: 8px;
    overflow: hidden;
    height: 12px;
}
.occ-progress > div {
    height: 100%;
    width: 0%;
    background: var(--occ-coral);
    transition: width 0.2s;
}

.occ-status { font-size: 15px; color: var(--occ-muted); min-height: 22px; }
.occ-status.error { color: var(--occ-coral-ink); }

/* ── Builder wizard (create page step cards) ────────────── */
.occ-wiz-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: 24px 0 0;
}
.occ-wiz-head[hidden] { display: none; }
.occ-wiz-count {
    margin: 0;
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-weight: 600;
    font-size: 14px;
    color: var(--occ-muted);
}
.occ-wiz-dots { display: flex; gap: 10px; }
.occ-wiz-dot {
    width: 10px;
    height: 10px;
    padding: 0;
    border: none;
    border-radius: 50%;
    background: var(--occ-border);
    cursor: pointer;
    transition: transform 0.15s ease, background 0.15s ease;
}
.occ-wiz-dot.done { background: var(--occ-coral); opacity: 0.4; }
.occ-wiz-dot.active { background: var(--occ-coral); transform: scale(1.3); }
.occ-wiz-dot:disabled { cursor: default; }

.occ-step-card {
    background: var(--occ-card);
    border: 1px solid var(--occ-border);
    border-radius: 12px;
    padding: 20px;
}
.occ-step-card[hidden] { display: none; }
.occ-step-title { margin: 0 0 16px; font-size: 20px; }
.occ-step-nav { display: flex; gap: 12px; margin-top: 16px; }
.occ-step-nav .occ-next { margin-left: auto; }
/* Paid repair shows its cards flat: no step navigation, no dots. */
.occ-form.occ-stacked .occ-step-nav { display: none; }
/* Panels that carry their own card chrome flatten inside a step card. */
.occ-step-card .occ-card {
    background: transparent;
    border: none;
    padding: 0;
    margin: 0;
}
.occ-step-card .occ-demo { background: #FFFFFF; }
.occ-step-card .occ-preview { margin: 20px 0 8px; }
.occ-step-card .occ-preview h2 { font-size: 18px; }
.occ-step-card .occ-file-label { background: #FFFFFF; }

.occ-share {
    background: var(--occ-card);
    border: 1px solid var(--occ-border);
    border-radius: 12px;
    padding: 22px;
    margin: 20px 0;
}
.occ-share input {
    width: 100%;
    font: inherit;
    font-size: 15px;
    color: var(--occ-ink);
    background: #FFFFFF;
    border: 1px solid var(--occ-border);
    border-radius: 8px;
    padding: 10px 12px;
    margin: 10px 0;
}
.occ-share .occ-share-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.occ-share .occ-share-sub { color: var(--occ-muted); }
.occ-share .occ-ready-line { margin-top: 12px; }

/* ── Printable card page ───────────────────────────────── */
.occ-print-card {
    max-width: 420px;
    margin: 24px auto;
    background: #FFFFFF;
    border: 1px solid var(--occ-border);
    border-radius: 12px;
    padding: 36px 28px;
    text-align: center;
}
.occ-print-card .occ-eyebrow { margin-top: 0; }
.occ-print-card h1 { font-size: 26px; }
.occ-print-card .occ-card-msg {
    color: var(--occ-muted);
    font-style: italic;
    margin: 12px 0 20px;
    overflow-wrap: anywhere; /* a pasted URL must not run off the paper */
}
.occ-print-card img.occ-qr {
    width: 220px;
    height: 220px;
    max-width: 100%;
    margin: 8px auto;
    display: block;
}
.occ-print-card .occ-card-url {
    font-size: 13px;
    color: var(--occ-muted);
    word-break: break-all;
    margin-top: 12px;
}
.occ-print-actions { text-align: center; margin: 20px 0 48px; display: flex; gap: 10px; justify-content: center; }

@media print {
    body { background: #FFFFFF; }
    .occ-header, .occ-footer, .occ-print-actions, .occ-print-note { display: none !important; }
    .occ-print-card {
        border: 1px solid #CCCCCC;
        border-radius: 0;
        margin: 0 auto;
        page-break-inside: avoid;
    }
}

/* Date book (2026-09): the any-occasion "every year" tick under the builder's
   date field. Rides .occ-hint for type; this only lays out the checkbox row. */
.occ-repeat-row {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 10px;
    cursor: pointer;
}
.occ-repeat-row input {
    accent-color: var(--occ-coral);
    width: 16px;
    height: 16px;
    margin: 0;
    flex: none;
}

/* Card photo (2026-09-05): the builder's picker thumb + the live-preview
   swap. Intrinsic-ratio, never cropped (the receiver .bv-occ-photo rule). */
.occ-photo-thumb {
    display: block;
    max-width: 100%;
    max-height: 120px;
    width: auto;
    height: auto;
    border-radius: 10px;
    margin: 0 auto 8px;
}
.occ-demo-photo {
    max-width: 100%;
    max-height: 140px;
    width: auto;
    height: auto;
    border-radius: 10px;
    margin-bottom: 4px;
}

/* The invitation (2026-09-06): the platform is a chosen door for buyers,
   never a silent tumble. Rides .occ-card for the surface; this centers it. */
.occ-invite {
    margin-top: 28px;
    text-align: center;
}
.occ-invite-title {
    font-size: 17px;
    font-weight: 700;
    color: var(--occ-ink);
    margin: 0 0 8px;
}
.occ-invite .occ-hint {
    max-width: 46ch;
    margin-left: auto;
    margin-right: auto;
}
