/* =============================================================================
   MyOrderLedger public pages and account (sign-in / sign-up) pages.
   Loaded after bootstrap.min.css and theme.css. Colours come only from the
   theme.css variables (--mol-*); the only literal colour used here is white.
   Mobile first: base rules are for a phone, min-width queries add the rest.
   ============================================================================= */

.marketing {
    background: #fff;
    color: var(--mol-ink);
    line-height: 1.6;
}
.marketing main:focus { outline: none; }

.marketing h1, .marketing h2, .marketing h3 {
    color: var(--mol-primary-dark);
    line-height: 1.2;
    font-weight: 700;
    letter-spacing: -.01em;
}
.marketing h1 { font-size: clamp(2rem, 5vw + .5rem, 3.1rem); }
.marketing h2 { font-size: clamp(1.5rem, 2.5vw + .6rem, 2.1rem); }
.marketing h3 { font-size: 1.2rem; }

.marketing a:focus-visible,
.marketing button:focus-visible,
.marketing summary:focus-visible,
.marketing .btn-check:focus-visible + .btn {
    outline: 3px solid var(--mol-accent);
    outline-offset: 2px;
    box-shadow: none;
}

/* ---- skip link ------------------------------------------------------------- */
.skip-link {
    position: absolute;
    top: .5rem;
    left: .5rem;
    z-index: 1100;
    padding: .5rem 1rem;
    background: #fff;
    color: var(--mol-primary-dark);
    border: 2px solid var(--mol-accent);
    border-radius: .4rem;
    font-weight: 600;
}

/* ---- icons and illustrations (SVG via <use>) -------------------------------- */
.icon {
    display: inline-block;
    flex: none;
    width: 1.75rem;
    height: 1.75rem;
    vertical-align: middle;
}
.ill {
    /* invoice.svg: plain shapes take fill, copper parts take currentColor */
    fill: var(--mol-primary);
    color: var(--mol-accent);
    display: block;
    width: 100%;
    max-width: 360px;
    height: auto;
    margin: 0 auto;
}

/* ---- header ---------------------------------------------------------------- */
.site-header .navbar { padding-top: .65rem; padding-bottom: .65rem; }
.brand {
    display: inline-flex;
    align-items: center;
    gap: .55rem;
    text-decoration: none;
    font-weight: 700;
    font-size: 1.25rem;
    letter-spacing: -.01em;
}
.brand-mark { flex: none; }
.site-header .brand { color: #fff; }
.site-header .brand-mark { stroke: #fff; color: var(--mol-accent); }
.site-header .brand-name-tail { color: var(--mol-accent-light); }

.site-header .nav-link { font-weight: 500; padding-left: .75rem; padding-right: .75rem; }
.site-header .nav-link[aria-current="page"] {
    color: #fff;
    text-decoration: underline;
    text-decoration-color: var(--mol-accent);
    text-decoration-thickness: 3px;
    text-underline-offset: .45em;
}
.nav-cta {
    display: flex;
    flex-wrap: wrap;
    gap: .5rem;
    padding: .5rem 0 .75rem;
}
.nav-cta .btn { font-weight: 600; }
.navbar-toggler { border-color: rgba(255, 255, 255, .45); }

@media (min-width: 992px) {
    .nav-cta { padding: 0; margin-left: 1rem; }
}

/* ---- sections -------------------------------------------------------------- */
.section { padding: 3.5rem 0; }
.section-surface { background: var(--mol-surface); }
.section-head { max-width: 46rem; margin-bottom: 2rem; }
.section-head p { color: var(--mol-slate); font-size: 1.1rem; margin-bottom: 0; }
.section-head.text-center { margin-left: auto; margin-right: auto; }
.eyebrow {
    display: block;
    margin-bottom: .5rem;
    color: var(--mol-accent-dark);
    font-size: .85rem;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
}
.lede { font-size: 1.2rem; color: var(--mol-slate); }
.btn-row { display: flex; flex-wrap: wrap; gap: .75rem; }
.btn-row .btn { font-weight: 600; }

@media (min-width: 768px) {
    .section { padding: 5rem 0; }
}

/* ---- hero ------------------------------------------------------------------ */
.hero {
    padding: 3rem 0 3.5rem;
    background: linear-gradient(180deg, var(--mol-primary-light) 0%, #fff 100%);
    border-bottom: 1px solid var(--mol-border);
}
.hero-lede { font-size: 1.2rem; color: var(--mol-slate); max-width: 40rem; margin: 1rem 0 1.75rem; }
.hero-note { margin: 1rem 0 0; color: var(--mol-slate); font-size: .95rem; }
.hero-art { margin-top: 2.5rem; }
.hero-simple { padding-bottom: 2.5rem; }

@media (min-width: 992px) {
    .hero { padding: 5rem 0; }
    .hero-art { margin-top: 0; }
}

/* ---- feature blocks -------------------------------------------------------- */
.feature {
    height: 100%;
    padding: 1.5rem;
    background: #fff;
    border: 1px solid var(--mol-border);
    border-left: 4px solid var(--mol-primary);
    border-radius: .5rem;
}
.feature h3 { display: flex; align-items: center; gap: .6rem; margin-bottom: .6rem; }
.feature h3 .icon { color: var(--mol-accent); }
.feature p:last-child, .feature ul:last-child { margin-bottom: 0; }
.feature-more { margin-top: 2rem; }

/* features page: grouped sections */
.feature-group + .feature-group { margin-top: 3rem; }
.feature-group-head { display: flex; align-items: center; gap: .75rem; margin-bottom: 1rem; }
.feature-group-head .icon { width: 2.25rem; height: 2.25rem; color: var(--mol-accent); }
.feature-group-head h2 { margin: 0; }
.feature-group p, .feature-group li { max-width: 46rem; }

.status-row { display: flex; flex-wrap: wrap; gap: .5rem; padding: 0; margin: 0 0 1rem; list-style: none; }

/* ---- check lists ------------------------------------------------------------ */
.check-list { list-style: none; padding: 0; margin: 0 0 1rem; }
.check-list li { display: flex; gap: .6rem; align-items: flex-start; padding: .35rem 0; }
.check-list .icon { width: 1.35rem; height: 1.35rem; margin-top: .15rem; color: var(--mol-success); }

.not-list { padding-left: 1.2rem; color: var(--mol-slate); }
.not-list li { padding: .2rem 0; }

/* ---- how it works ----------------------------------------------------------- */
.steps { list-style: none; padding: 0; margin: 0; counter-reset: step; }
.step {
    position: relative;
    height: 100%;
    padding: 1.5rem 1.5rem 1.5rem 4.5rem;
    background: #fff;
    border: 1px solid var(--mol-border);
    border-radius: .5rem;
}
.step::before {
    counter-increment: step;
    content: counter(step);
    position: absolute;
    left: 1.25rem;
    top: 1.35rem;
    width: 2.25rem;
    height: 2.25rem;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: var(--mol-primary);
    color: #fff;
    font-weight: 700;
}
.step h3 { margin-bottom: .4rem; }
.step p { margin-bottom: 0; color: var(--mol-slate); }

/* ---- who it's for ----------------------------------------------------------- */
.trade-strip { display: flex; flex-wrap: wrap; gap: .6rem; list-style: none; padding: 0; margin: 0; }
.trade-strip a {
    display: inline-block;
    padding: .5rem 1rem;
    border: 1px solid var(--mol-border);
    border-radius: 2rem;
    background: #fff;
    color: var(--mol-primary-dark);
    font-weight: 600;
    text-decoration: none;
}
.trade-strip a:hover { border-color: var(--mol-accent); color: var(--mol-accent-dark); }

.trade { padding: 2.5rem 0; border-top: 1px solid var(--mol-border); scroll-margin-top: 1rem; }
.trade:first-of-type { border-top: 0; }
.trade h2 { margin-bottom: .75rem; }

.catalog-example {
    padding: 1.25rem 1.5rem;
    background: var(--mol-surface);
    border: 1px solid var(--mol-border);
    border-radius: .5rem;
}
.catalog-example h3 { font-size: 1rem; margin-bottom: .75rem; color: var(--mol-slate); text-transform: uppercase; letter-spacing: .05em; }
.catalog-tree, .catalog-tree ul { list-style: none; margin: 0; padding: 0; }
.catalog-tree ul { padding-left: 1.1rem; border-left: 2px solid var(--mol-border); margin: .25rem 0 .5rem .4rem; }
.catalog-tree li { padding: .15rem 0; }
.catalog-tree .lvl-1 { font-weight: 700; color: var(--mol-primary-dark); }
.catalog-tree .lvl-2 { font-weight: 600; }
.catalog-tree .unit {
    display: inline-block;
    margin-left: .35rem;
    padding: 0 .45rem;
    border-radius: .3rem;
    background: var(--mol-accent-light);
    color: var(--mol-accent-dark);
    font-size: .8rem;
    font-weight: 600;
}
.catalog-levels { font-size: .9rem; color: var(--mol-slate); margin: .75rem 0 0; }

/* ---- pricing ---------------------------------------------------------------- */
.pricing-card {
    max-width: 34rem;
    margin: 0 auto;
    padding: 2rem 1.5rem;
    background: #fff;
    border: 1px solid var(--mol-border);
    border-top: 5px solid var(--mol-accent);
    border-radius: .6rem;
    box-shadow: 0 .5rem 1.5rem rgba(var(--mol-primary-rgb), .08);
}
.pricing-card h2 { margin-bottom: .25rem; }
.billing-toggle { border: 0; padding: 0; margin: 1.25rem 0 1rem; display: flex; gap: .5rem; }
.billing-toggle .btn { flex: 1 1 0; font-weight: 600; }
.price-options { margin: 1rem 0 1.25rem; }
.price-option { margin: 0 0 .75rem; }
.price-amount { display: inline-block; font-size: 2.6rem; font-weight: 800; color: var(--mol-primary-dark); line-height: 1.1; }
.price-per { display: inline-block; margin-left: .35rem; color: var(--mol-slate); font-weight: 600; }
.price-note { display: block; color: var(--mol-slate); font-size: .95rem; }
.price-save { color: var(--mol-success); font-weight: 600; }
.pricing-card .btn-lg { width: 100%; }
.trial-note { text-align: center; color: var(--mol-slate); font-size: .95rem; margin: .75rem 0 0; }

@media (min-width: 576px) {
    .pricing-card { padding: 2.5rem; }
}

.price-teaser {
    padding: 2rem 1.5rem;
    background: #fff;
    border: 1px solid var(--mol-border);
    border-radius: .6rem;
}
.price-teaser .price-amount { font-size: 2.2rem; }

/* ---- FAQ ------------------------------------------------------------------- */
.faq { max-width: 48rem; }
.faq details {
    border: 1px solid var(--mol-border);
    border-radius: .5rem;
    background: #fff;
    margin-bottom: .75rem;
}
.faq summary {
    cursor: pointer;
    padding: 1rem 2.75rem 1rem 1.25rem;
    position: relative;
    font-weight: 600;
    color: var(--mol-primary-dark);
    list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
    content: "+";
    position: absolute;
    right: 1.25rem;
    top: .8rem;
    font-size: 1.4rem;
    line-height: 1;
    color: var(--mol-accent);
}
.faq details[open] summary::after { content: "\2212"; }
.faq details[open] summary { border-bottom: 1px solid var(--mol-border); }
.faq-body { padding: 1rem 1.25rem .25rem; }

/* ---- CTA band --------------------------------------------------------------- */
.cta-band { padding: 3.5rem 0; background: var(--mol-primary); color: #fff; text-align: center; }
.cta-band h2 { color: #fff; }
.cta-band p { color: rgba(255, 255, 255, .85); font-size: 1.1rem; max-width: 36rem; margin: .75rem auto 1.75rem; }
.cta-band .btn-row { justify-content: center; }

/* ---- callouts and contact ---------------------------------------------------- */
.callout {
    padding: 1.25rem 1.5rem;
    background: var(--mol-accent-light);
    border-left: 4px solid var(--mol-accent);
    border-radius: .4rem;
}
.callout h2, .callout h3 { font-size: 1.15rem; margin-bottom: .5rem; }
.callout p:last-child { margin-bottom: 0; }
.email-big { font-size: 1.15rem; word-break: break-word; }

/* ---- legal pages ------------------------------------------------------------- */
.prose { max-width: 46rem; }
.prose h2 { margin-top: 2.5rem; margin-bottom: .75rem; }
.prose h3 { margin-top: 1.5rem; margin-bottom: .5rem; }
.prose dt { margin-top: .75rem; color: var(--mol-primary-dark); }
.prose dd { margin-left: 0; }
.updated { color: var(--mol-slate); font-size: .95rem; }

/* ---- footer ------------------------------------------------------------------ */
.site-footer {
    padding: 3rem 0 1.5rem;
    background: var(--mol-surface);
    border-top: 1px solid var(--mol-border);
    font-size: .95rem;
}
.site-footer .brand { color: var(--mol-primary-dark); }
.site-footer .brand-mark { stroke: var(--mol-primary); color: var(--mol-accent); }
.site-footer .brand-name-tail { color: var(--mol-accent-dark); }
.footer-brand p { color: var(--mol-slate); margin: .75rem 0 0; max-width: 24rem; }
.footer-col h2 {
    font-size: .8rem;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--mol-slate);
    margin-bottom: .75rem;
}
.footer-col ul, .footer-legal ul { list-style: none; padding: 0; margin: 0; }
.footer-col li { padding: .2rem 0; }
.footer-col a, .footer-legal a { color: var(--mol-primary); text-decoration: none; word-break: break-word; }
.footer-col a:hover, .footer-legal a:hover { color: var(--mol-accent-dark); text-decoration: underline; }
.footer-col a[aria-current="page"] { font-weight: 700; }
.footer-legal {
    display: flex;
    flex-direction: column;
    gap: .5rem;
    margin-top: 2.5rem;
    padding-top: 1.25rem;
    border-top: 1px solid var(--mol-border);
    color: var(--mol-slate);
    font-size: .875rem;
}
.footer-legal p { margin: 0; }
.footer-legal ul { display: flex; flex-wrap: wrap; gap: 1.25rem; }

@media (min-width: 768px) {
    .footer-legal { flex-direction: row; justify-content: space-between; align-items: center; }
}

/* ---- account pages (sign-in / sign-up) ------------------------------------------ */
.account-main { padding: 2.5rem 0 3.5rem; background: var(--mol-surface); }
.account-container { max-width: 30rem; }

/* ---- motion ------------------------------------------------------------------- */
@media (prefers-reduced-motion: no-preference) {
    html { scroll-behavior: smooth; }
    .trade-strip a, .footer-col a { transition: color .15s ease, border-color .15s ease; }
}
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .collapsing { transition: none !important; }
}

/* Account pages (sign in, sign up, recovery, crew link, errors) */
.account-card { max-width: 30rem; margin: 2.5rem auto; background: #fff; border: 1px solid var(--mol-border); border-radius: .6rem; padding: 1.75rem; }
.account-card-wide { max-width: 40rem; }
.account-card legend { color: var(--mol-primary-dark); }

/* ---- Account pages over the workshop photo (myorderledger-brand) -------------------
   The photo's left side is plain navy: the form sits there, left-aligned, as a dark
   translucent panel. On narrow screens the photo is anchored to that navy edge, so the
   form always has navy behind it. If the photo is replaced, give it a new file name
   (CSS url() isn't cache-busted). */
.account-page .account-main {
    display: flex;
    align-items: center;
    min-height: calc(100vh - 4.5rem);
    padding: 3rem 0;
    background: var(--mol-primary-dark) url("/img/account-bg.jpg") right center / cover no-repeat;
}
@media (min-width: 1921px), (min-resolution: 2dppx) and (min-width: 1100px) {
    .account-page .account-main { background-image: url("/img/account-bg-2560.jpg"); }
}
@media (max-width: 767.98px) {
    .account-page .account-main { background-position: left center; padding: 1.5rem 0; }
}
.account-stage { width: 100%; padding-left: clamp(1rem, 7vw, 9rem); padding-right: 1rem; }

.account-page .account-card {
    margin: 0;
    max-width: 27rem;
    color: #fff;
    background: rgba(20, 40, 64, .78);
    border: 1px solid rgba(255, 255, 255, .14);
    border-radius: .75rem;
    box-shadow: 0 1rem 2.5rem rgba(0, 0, 0, .35);
    backdrop-filter: blur(6px);
}
.account-page .account-card-wide { max-width: 36rem; }
.account-page .account-card h1,
.account-page .account-card legend,
.account-page .account-card .form-label,
.account-page .account-card .form-check-label { color: #fff; }
.account-page .account-card .form-text,
.account-page .account-card .text-secondary,
.account-page .account-card p.small { color: rgba(255, 255, 255, .72) !important; }
.account-page .account-card a { color: var(--mol-accent-light); }
.account-page .account-card a:hover { color: #fff; }
.account-page .account-card .form-control,
.account-page .account-card .form-select { background-color: #fff; border-color: rgba(255, 255, 255, .25); }
.account-page .account-card .form-control:focus,
.account-page .account-card .form-select:focus { border-color: var(--mol-accent); box-shadow: 0 0 0 .2rem rgba(200, 120, 42, .35); }
.account-page .account-card .btn-primary { --bs-btn-bg: var(--mol-accent); --bs-btn-border-color: var(--mol-accent);
    --bs-btn-hover-bg: var(--mol-accent-dark); --bs-btn-hover-border-color: var(--mol-accent-dark); }
.account-page .account-card fieldset + fieldset { border-top: 1px solid rgba(255, 255, 255, .14); padding-top: 1rem; }

/* Header and footer logos */
.brand-logo { display: block; height: 32px; width: auto; }
.navbar .brand-logo { height: 28px; }
