/*
 * FontCurator — single project stylesheet.
 *
 * The ONE project-owned stylesheet (UX spec §7.7). No other bespoke CSS
 * files exist; this carries every component class the site templates
 * reference. Bootstrap 5 utilities cover the rest.
 *
 * Sections:
 *   1. Brand tokens (palette + typography + body)
 *   2. Brand utilities (.fc-monogram, .italic-display, .serif-display, .eyebrow,
 *      .bg-cream-alt, .text-copper)
 *   3. Chrome (.fc-nav frosted navbar)
 *   4. Page primitives (.hero-h, .section-h)
 *   5. macOS-window mockup component (.fc-window + variants)
 *   6. Stats band (.stat)
 *   7. Chips (.chip, .chip-add)
 *   8. Pricing box (.price-box)
 *   9. Project-set toggle (.pset)
 *  10. Footer
 */


/* ============================================================ */
/* 1. Brand tokens                                              */
/* ============================================================ */

:root {
    --bs-primary:           #c4935a;          /* Copper */
    --bs-primary-rgb:       196, 147, 90;
    --bs-dark:              #2c2c34;          /* Charcoal */
    --bs-body-bg:           #f2f0ec;          /* Cream */
    --bs-body-color:        #2c2c34;
    --bs-link-color:        #c4935a;
    --bs-link-hover-color:  #2c2c34;

    --fc-font-ui:           'Helvetica Neue', Arial, sans-serif;
    --fc-font-display:      Georgia, 'Times New Roman', serif;

    /* Brand-derived secondary surfaces */
    --fc-cream-alt:         #ebe7dd;          /* Alternating-section band */
    --fc-stroke:            #e3dfd5;          /* Faint hairline between cards / nav */
}

body {
    font-family: var(--fc-font-ui);
    font-weight: 500;
    background: var(--bs-body-bg);
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

main { flex: 1 0 auto; }

.bg-dark,
.navbar.bg-dark { background-color: var(--bs-dark) !important; }

.btn-primary { color: var(--bs-body-bg); border-color: transparent; }
.btn-primary:hover,
.btn-primary:focus { color: var(--bs-body-bg); filter: brightness(0.92); }


/* ============================================================ */
/* 2. Brand utilities                                           */
/* ============================================================ */

.text-copper    { color: var(--bs-primary) !important; }
.bg-cream-alt   { background-color: var(--fc-cream-alt); }

.italic-display {
    font-family: var(--fc-font-display);
    font-style: italic;
    color: var(--bs-primary);
}

.serif-display {
    font-family: var(--fc-font-display);
}

/* Navbar brand lockup — the real rounded Fc app icon (charcoal container,
 * cream F, copper c), sized large so the mark anchors the navbar, followed
 * by the FontCurator wordmark at the same size as the nav links so the
 * brand reads as one cohesive lockup. The icon carries a soft drop shadow
 * to lift it off the cream backdrop. */
.fc-brand {
    display: inline-flex;
    align-items: center;
    gap: 0.65rem;
    padding: 0;
    line-height: 1;
}
.fc-brand .fc-brand-icon {
    height: 44px;
    width: 44px;
    border-radius: 9px;
    display: block;
    box-shadow: 0 4px 10px rgba(44, 44, 52, 0.18),
                0 1px 2px  rgba(44, 44, 52, 0.10);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.fc-brand:hover .fc-brand-icon,
.fc-brand:focus .fc-brand-icon {
    transform: translateY(-1px);
    box-shadow: 0 6px 14px rgba(44, 44, 52, 0.22),
                0 2px 4px  rgba(44, 44, 52, 0.12);
}
.fc-brand .fc-brand-wordmark {
    font-family: var(--fc-font-ui);
    font-weight: 500;
    font-size: 1rem;           /* same as .nav-link default */
    color: var(--bs-dark);
}

/* Eyebrow — small uppercase mini-heading above every section heading. */
.eyebrow {
    font-family: var(--fc-font-ui);
    text-transform: uppercase;
    letter-spacing: 0.18em;
    font-size: 0.78rem;
    color: var(--bs-primary);
    font-weight: 500;
}

/* Feature bullet list — used across the three story sections and the
 * pricing-box included-features grid. Pairs a copper check icon with the
 * line, hanging-indented so wrapped text lines up with the first word
 * rather than the icon. Generous line-height so a multi-line item reads
 * as a single paragraph, with comfortable spacing between items. */
.fc-bullets {
    list-style: none;
    padding-left: 0;
    margin-bottom: 0;
}
.fc-bullets li {
    position: relative;
    padding: 0.35rem 0 0.35rem 1.65rem;
    line-height: 1.55;
}
.fc-bullets li > .fa-solid,
.fc-bullets li > .fa-regular,
.fc-bullets li > .fa-brands {
    position: absolute;
    left: 0;
    top: 0.55rem;
    color: var(--bs-primary);
}


/* ============================================================ */
/* 3. Chrome — frosted cream navbar                             */
/* ============================================================ */

.fc-nav {
    background: rgba(242, 240, 236, 0.92);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--fc-stroke);
}
.fc-nav .nav-link        { color: var(--bs-dark); }
.fc-nav .nav-link:hover  { color: var(--bs-primary); }

/* Vertical separator between the two right-hand nav groups
 * (product content pages vs site pages). Bootstrap's `vr` defaults
 * to `min-height: 1em`; inside a navbar the nav-link line-height is
 * taller, so a 1em rule looks like a stub. Match the link height + use
 * the brand stroke colour so the separator reads as part of the nav
 * chrome rather than a hard divider. Self-aligns to centre so the line
 * sits mid-nav. */
.fc-nav .fc-nav-sep {
    align-self: center;
    min-height: 1.5rem;
    color: var(--fc-stroke);
    opacity: 1;
}


/* ============================================================ */
/* 4. Page primitives — hero + section headings                 */
/* ============================================================ */

/* Compact hero headline — Georgia regular, large, with optional italic
 * accent. Use clamp() so the page rides phones to desktops cleanly. */
.hero-h {
    font-family: var(--fc-font-display);
    font-weight: 400;
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    line-height: 1.1;
    letter-spacing: -0.02em;
    color: var(--bs-dark);
}
.hero-h em {
    font-style: italic;
    color: var(--bs-primary);
}

/* Section heading — Georgia regular, smaller than hero, also with em+copper. */
.section-h {
    font-family: var(--fc-font-display);
    font-weight: 400;
    font-size: clamp(1.9rem, 3.5vw, 2.8rem);
    line-height: 1.15;
    letter-spacing: -0.01em;
    color: var(--bs-dark);
}
.section-h em {
    font-style: italic;
    color: var(--bs-primary);
}


/* ============================================================ */
/* 5. macOS-window mockup component (.fc-window)                */
/* ============================================================ */

.fc-window {
    background: #fff;
    border-radius: 0.65rem;
    box-shadow: 0 30px 80px rgba(44, 44, 52, 0.18),
                0 6px 16px rgba(44, 44, 52, 0.08);
    overflow: hidden;
    color: var(--bs-dark);
    font-family: var(--fc-font-ui);
}
.fc-window-chrome {
    background: #e7e5e0;
    padding: 0.5rem 1rem;
    display: flex;
    gap: 0.45rem;
    align-items: center;
}
.fc-window-chrome .dot         { width: 11px; height: 11px; border-radius: 50%; }
.fc-window-chrome .dot-red     { background: #ff5f57; }
.fc-window-chrome .dot-yellow  { background: #ffbd2e; }
.fc-window-chrome .dot-green   { background: #28c840; }
.fc-window-chrome .title       {
    font-size: 0.74rem;
    color: #6c6b66;
    margin-left: auto;
    margin-right: auto;
    padding-right: 2rem;
}

/* Variant — real product screenshot inside the chrome.
 * Use when an actual PNG screenshot from docs/feature-guide/assets/ is
 * available (preferred over the CSS-only mockup variants below). */
.fc-window-shot {
    display: block;
    width: 100%;
    height: auto;
    background: #f7f5f1;
}

/* Variant — Library view (sidebar + fonts list) */
.window-library .body {
    display: grid;
    grid-template-columns: 160px 1fr;
    min-height: 320px;
    background: #f7f5f1;
}
.window-library .side {
    background: var(--bs-dark);
    color: var(--bs-body-bg);
    padding: 0.9rem;
    font-size: 0.78rem;
}
.window-library .side h6 {
    text-transform: uppercase;
    letter-spacing: 0.12em;
    font-size: 0.63rem;
    color: var(--bs-primary);
    margin: 0 0 0.4rem;
}
.window-library .side ul {
    list-style: none;
    padding: 0;
    margin: 0 0 1rem;
}
.window-library .side li         { padding: 0.13rem 0; opacity: 0.85; }
.window-library .side li.active  { color: var(--bs-primary); opacity: 1; }
.window-library .side li.active::before { content: '› '; }

.window-library .main { padding: 0.9rem 1.1rem; }
.window-library .row-item {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    padding: 0.4rem 0;
    border-bottom: 1px solid #e8e5dd;
}
.window-library .row-item .name {
    font-size: 0.75rem;
    flex: 0 0 35%;
}
.window-library .row-item .sample {
    font-size: 1.15rem;
    flex: 1;
    text-align: right;
}

/* Variant — Tag editor (font cards with chips) */
.window-tags .body {
    padding: 1.1rem 1.3rem;
    background: #f7f5f1;
    min-height: 320px;
}
.window-tags .font-card {
    background: #fff;
    border: 1px solid var(--fc-stroke);
    border-radius: 0.5rem;
    padding: 1rem 1.2rem;
    margin-bottom: 0.8rem;
}
.window-tags .font-card .specimen {
    font-family: var(--fc-font-display);
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
    color: var(--bs-dark);
}
.window-tags .font-card .meta {
    font-size: 0.78rem;
    color: #6c6b66;
}

/* Variant — Project sets (toggle rows) */
.window-active .body {
    padding: 1.1rem 1.3rem;
    background: #f7f5f1;
    min-height: 320px;
}


/* ============================================================ */
/* 6. Stats band                                                */
/* ============================================================ */

.stat { text-align: center; }
.stat .num {
    font-family: var(--fc-font-display);
    font-size: clamp(2.5rem, 6vw, 4rem);
    line-height: 1;
    color: var(--bs-primary);
    font-weight: 400;
}
.stat .label {
    text-transform: uppercase;
    letter-spacing: 0.14em;
    font-size: 0.78rem;
    /* Cream label — matches "Type is a craft." on the same charcoal
     * band (color: var(--bs-body-bg)) so the captions read at the
     * same weight as the section headline. No opacity dim. */
    color: var(--bs-body-bg);
    margin-top: 0.4rem;
}


/* ============================================================ */
/* 7. Chips                                                     */
/* ============================================================ */

.chip {
    background: var(--bs-primary);
    color: var(--bs-body-bg);
    font-size: 0.72rem;
    padding: 0.15rem 0.55rem;
    border-radius: 999px;
    display: inline-block;
    margin: 0.18rem 0.18rem 0 0;
}
.chip-add {
    background: transparent;
    color: var(--bs-primary);
    border: 1px dashed var(--bs-primary);
}


/* Info card — small, inline-friendly callout used in pairs/rows to
 * carry secondary context (Your data / Who it's for / etc) without the
 * weight of a full storytelling section. White card with hairline border,
 * copper icon, Georgia heading, Helvetica body. */
.fc-info-card {
    background: #fff;
    border: 1px solid var(--fc-stroke);
    border-radius: 0.75rem;
    padding: 1.5rem 1.6rem;
    height: 100%;
}
.fc-info-card__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.4rem;
    height: 2.4rem;
    margin-bottom: 0.85rem;
    border-radius: 0.55rem;
    background: rgba(196, 147, 90, 0.12);   /* faint copper wash */
    color: var(--bs-primary);
    font-size: 1.05rem;
}
.fc-info-card h3 {
    font-family: var(--fc-font-display);
    font-weight: 400;
    font-size: 1.35rem;
    line-height: 1.2;
    color: var(--bs-dark);
    margin: 0 0 0.5rem;
}
.fc-info-card p {
    font-size: 0.97rem;
    line-height: 1.55;
    margin: 0;
    color: var(--bs-dark);
}


/* Buy-page form group cards — white panels with hairline border,
 * grouping a related set of fields (Your details / Licence / etc.). */
.buy-form .buy-card {
    background: #fff;
    border: 1px solid var(--fc-stroke);
    border-radius: 0.85rem;
    padding: 1.6rem 1.7rem;
}
.buy-form .buy-card__title {
    font-family: var(--fc-font-display);
    font-weight: 400;
    font-size: 1.4rem;
    color: var(--bs-dark);
    margin: 0 0 1.1rem;
}
.buy-form .form-label {
    font-weight: 500;
    font-size: 0.92rem;
    margin-bottom: 0.3rem;
    color: var(--bs-dark);
}
/* Required-field marker — small red asterisk appended after the label
 * text. Pairs with `<p class="small">* Required field</p>` at the
 * bottom of the form to spell out the convention for screen-reader
 * users and accessibility scanners. */
.buy-form .form-label--required::after {
    content: ' *';
    color: var(--bs-danger);
    font-weight: 500;
    margin-left: 0.15rem;
}
.buy-form .form-control:focus {
    border-color: var(--bs-primary);
    box-shadow: 0 0 0 0.18rem rgba(196, 147, 90, 0.18);
}

/* /buy system-requirements disclosure under the price lines.
 * Data-driven from assets.min_macos + apple_silicon_only via the
 * BuyTemplate; sits with the order summary so the constraint is
 * visible alongside the totals. */
.buy-form .buy-req-line {
    color: var(--bs-dark);
    font-weight: 500;
    border-top: 1px dashed var(--fc-stroke);
    padding-top: 0.55rem;
}

/* Consolidated "I confirm" bullet list under the affirmation tick.
 * Intentionally compact (0.82rem) so the entire affirmation block +
 * Buy button stay inside the initial viewport on a 768px-tall laptop
 * screen. The CTA visibility rule beats the body-text size rule per
 * project requirement — if this list ever needs more items, shrink
 * line-height here BEFORE growing the column. */
.buy-form .buy-confirm-list {
    list-style: disc;
    padding-left: 1.1rem;
    margin: 0.3rem 0 0;
    font-size: 0.82rem;
    line-height: 1.45;
    color: var(--bs-dark);
}
.buy-form .buy-confirm-list li {
    margin-bottom: 0.15rem;
}
.buy-form .buy-confirm-list li:last-child {
    margin-bottom: 0;
}

/* Order-summary card — sticky on desktop so the totals stay in view as
 * the user fills in the form. */
.price-summary {
    background: #fff;
    border: 1px solid var(--fc-stroke);
    border-radius: 0.85rem;
    padding: 1.6rem 1.7rem;
    position: sticky;
    top: 90px;
}
.price-summary__title {
    font-family: var(--fc-font-display);
    font-weight: 400;
    font-size: 1.5rem;
    color: var(--bs-dark);
    margin: 0 0 1.2rem;
}
.price-summary__lines .line {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    padding: 0.45rem 0;
    font-size: 0.95rem;
}
.price-summary__lines .line:not(:last-child) {
    border-bottom: 1px dashed var(--fc-stroke);
}
.price-summary__lines .line--discount      { color: var(--bs-primary); }
.price-summary__lines .line--subtotal      { font-weight: 500; }
.price-summary__lines .line--total {
    font-family: var(--fc-font-display);
    font-size: 1.4rem;
    padding-top: 0.85rem;
    border-bottom: none;
    color: var(--bs-dark);
}

/* Licence-key copy card (Buy return page) — large, copyable, set in a
 * generous monospace block so the customer can read every character and
 * paste it without ambiguity. The container makes the action obvious. */
.license-key-card {
    background: #fff;
    border: 1px solid var(--fc-stroke);
    border-radius: 0.85rem;
    padding: 1.5rem 1.6rem;
    box-shadow: 0 4px 12px rgba(44, 44, 52, 0.06);
}
.license-key-card .license-key {
    margin: 0;
    padding: 1rem 1.1rem;
    background: var(--fc-cream-alt);
    border-radius: 0.6rem;
    font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
    font-size: clamp(1.05rem, 2.4vw, 1.4rem);
    letter-spacing: 0.08em;
    color: var(--bs-dark);
    overflow-wrap: anywhere;
    word-break: break-all;
    white-space: pre-wrap;
    user-select: all;
    text-align: center;
}
/* Copy-icon-in-key — small icon button anchored to the right INSIDE
 * the licence-key cream block. The pre's right-padding leaves room
 * for the button so the centred key text doesn't collide with it. */
.license-key-card .license-key-wrap {
    position: relative;
}
.license-key-card .license-key-wrap > .license-key {
    padding-right: 3.25rem;
}
.license-key-card .fc-copy-btn {
    position: absolute;
    top: 50%;
    right: 0.45rem;
    transform: translateY(-50%);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.25rem;
    height: 2.25rem;
    padding: 0;
    background: transparent;
    border: 0;
    border-radius: 0.4rem;
    color: var(--bs-primary);
    font-size: 0.95rem;
    cursor: pointer;
    transition: background 0.15s ease, color 0.15s ease;
}
.license-key-card .fc-copy-btn:hover,
.license-key-card .fc-copy-btn:focus {
    background: rgba(196, 147, 90, 0.15);
}
.license-key-card .fc-copy-btn:focus-visible {
    outline: 2px solid var(--bs-primary);
    outline-offset: 2px;
}
/* Icon swap on copied state — green check replaces the copper copy. */
.license-key-card .fc-copy-btn .fc-copy-icon-copied { display: none; }
.license-key-card .fc-copy-btn.is-copied {
    color: #2c8a3a;            /* success green, brand-tuned */
    background: rgba(40, 200, 64, 0.10);
}
.license-key-card .fc-copy-btn.is-copied .fc-copy-icon-default { display: none; }
.license-key-card .fc-copy-btn.is-copied .fc-copy-icon-copied { display: inline; }


/* Why page — 3 × 3 grid pieces.
 *
 * Each thematic row has a brand-italic label introducing three white
 * cells with copper eyebrow + Georgia headline + body. Cells reuse the
 * same shape language as .fc-info-card but stand alone here because
 * the why page deserves dedicated styling without coupling. */
.why-row-label {
    font-family: var(--fc-font-display);
    font-style: italic;
    font-size: clamp(1.3rem, 2.5vw, 1.7rem);
    color: var(--bs-primary);
    text-align: center;
    margin: 0 0 1.5rem;
    letter-spacing: 0.005em;
}
.why-cell {
    background: #fff;
    border: 1px solid var(--fc-stroke);
    border-radius: 0.85rem;
    padding: 1.6rem 1.7rem;
    height: 100%;
    display: flex;
    flex-direction: column;
}
.why-cell h3 {
    font-family: var(--fc-font-display);
    font-weight: 400;
    font-size: 1.4rem;
    line-height: 1.2;
    color: var(--bs-dark);
    margin: 0 0 0.75rem;
}
.why-cell h3 em {
    font-style: italic;
    color: var(--bs-primary);
}
.why-cell p {
    font-size: 0.97rem;
    line-height: 1.6;
    margin: 0;
    color: var(--bs-dark);
}

/* Founder pull-quote on /why — italic Georgia in copper, generous
 * letter-spacing. Sits between the 3×3 grid and the trust band as a
 * one-sentence manifesto. */
.founder-quote {
    font-family: var(--fc-font-display);
    font-style: italic;
    font-size: clamp(1.4rem, 2.8vw, 1.85rem);
    line-height: 1.4;
    color: var(--bs-primary);
    margin: 0 0 1.25rem;
    quotes: '\201C' '\201D';
}
.founder-quote::before { content: open-quote;  margin-right: 0.1em; }
.founder-quote::after  { content: close-quote; margin-left: 0.1em; }
.founder-attrib {
    font-size: 0.95rem;
    color: var(--bs-dark);
    margin: 0;
    opacity: 0.7;
}

/* Charcoal trust-band commitment blocks — each pairs a copper Georgia
 * headline with a short body line. Sits inside .bg-dark sections so
 * the headline reads against the dark background. */
.commitment {
    text-align: center;
    padding: 0 0.5rem;
}
.commitment__title {
    font-family: var(--fc-font-display);
    font-weight: 400;
    font-size: clamp(1.5rem, 3vw, 2rem);
    color: var(--bs-primary);
    line-height: 1.15;
    margin: 0 0 0.75rem;
}
.commitment__body {
    font-size: 0.97rem;
    line-height: 1.6;
    color: var(--bs-body-bg);
    margin: 0;
    opacity: 0.88;
}


/* Closing CTA card — charcoal panel with rounded corners, intended to
 * sit inside a cream / cream-alt section so it has clear separation from
 * the charcoal footer. Same visual weight as `.price-box`, just slightly
 * less padding because the CTA is shorter. */
.closing-cta {
    background: var(--bs-dark);
    color: var(--bs-body-bg);
    border-radius: 1.2rem;
    padding: 3rem 2.5rem;
    text-align: center;
    box-shadow: 0 20px 50px rgba(44, 44, 52, 0.18),
                0 4px 12px  rgba(44, 44, 52, 0.10);
}


/* ============================================================ */
/* 8. Pricing box                                               */
/* ============================================================ */

.price-box {
    background: var(--bs-dark);
    color: var(--bs-body-bg);
    border-radius: 1.2rem;
    padding: 3rem 2.5rem;
    text-align: center;
}
.price-box .price-amount {
    font-family: var(--fc-font-display);
    font-size: 4.5rem;
    line-height: 1;
}

/* Launch-promo treatment — strikethrough regular price above the
 * effective price, plus a copper announcement pill below. */
.price-box .price-stack {
    display: inline-flex;
    align-items: flex-end;
    gap: 1rem;
    justify-content: center;
}
.price-box .price-original {
    font-family: var(--fc-font-display);
    font-size: 2.25rem;
    line-height: 1;
    opacity: 0.55;
    text-decoration: line-through;
    text-decoration-thickness: 2px;
    align-self: center;
}
.price-box .launch-pill {
    display: inline-block;
    background: var(--bs-primary);
    color: var(--bs-body-bg);
    text-transform: uppercase;
    letter-spacing: 0.14em;
    font-size: 0.72rem;
    padding: 0.3rem 0.75rem;
    border-radius: 999px;
    font-weight: 500;
}


/* ============================================================ */
/* 9. Project-set toggle row                                    */
/* ============================================================ */

.pset {
    background: #fff;
    border: 1px solid var(--fc-stroke);
    border-radius: 0.5rem;
    padding: 0.8rem 1rem;
    margin-bottom: 0.6rem;
    display: flex;
    align-items: center;
    gap: 0.8rem;
}
.pset h6           { margin: 0; font-size: 0.95rem; color: var(--bs-dark); }
.pset .count       { font-size: 0.74rem; color: #6c6b66; margin: 0; }
.pset .switch {
    margin-left: auto;
    width: 44px;
    height: 24px;
    background: #d6d2c8;
    border-radius: 999px;
    position: relative;
    flex: 0 0 auto;
}
.pset .switch::after {
    content: '';
    position: absolute;
    top: 2px;
    left: 2px;
    width: 20px;
    height: 20px;
    background: #fff;
    border-radius: 50%;
    transition: left 0.2s;
}
.pset.on .switch         { background: var(--bs-primary); }
.pset.on .switch::after  { left: 22px; }
.pset .badge-on {
    background: rgba(196, 147, 90, 0.15);
    color: var(--bs-primary);
    font-size: 0.7rem;
    padding: 0.1rem 0.5rem;
    border-radius: 999px;
}


/* ============================================================ */
/* 10. Footer                                                   */
/* ============================================================ */

footer { background: var(--bs-dark); color: var(--bs-body-bg); }
footer a { color: var(--bs-body-bg); opacity: 0.75; text-decoration: none; }
footer a:hover { opacity: 1; color: var(--bs-primary); }
