/* Public marketing pages (_PublicLayout). Kept separate from site.css so the app's styles
   and the public site's styles cannot affect each other. */

.public-site {
    color: #212529;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.public-site main {
    flex: 1 0 auto;
}

/* Copy still to be written or confirmed. Visible on purpose so it can't ship unnoticed;
   search the pages for "placeholder-copy" or "[" to find every instance. */
.placeholder-copy {
    background: #fff3cd;
    outline: 1px dashed #d39e00;
    padding: 0 .2em;
}

div.placeholder-copy,
section.placeholder-copy {
    display: block;
    padding: .75rem 1rem;
    margin-bottom: 1rem;
}

.public-hero {
    padding: 4rem 0 3rem;
    background: #f7f8f3;
}

.public-hero h1 {
    font-weight: 700;
    font-size: clamp(2rem, 6vw, 3.25rem);
    line-height: 1.15;
}

.public-hero .lead {
    max-width: 40rem;
    margin-left: auto;
    margin-right: auto;
}

.public-section {
    padding: 3rem 0;
}

.public-section + .public-section {
    border-top: 1px solid #eceee5;
}

.public-section h2 {
    font-weight: 700;
    margin-bottom: 1.25rem;
}

.public-narrow {
    max-width: 44rem;
}

/* Text beside an illustration: wider than .public-narrow so the text column keeps
   roughly the same line length it had on its own. */
.public-split {
    max-width: 60rem;
}

/* Clerk illustration + photo balloon (Index.cshtml). All placement is in % of the scene's
   width (S): the person image is 78% of S wide and 1.25x as tall (97.5% of S), so the SVG
   tail's viewBox "0 0 100 97.5" maps 1 unit = 1% of S. The phone's lower edge sits at about
   (46, 38.5), just right of its edge by the thumb; the balloon's top edge is at y = 50. */
.clerk-scene {
    --balloon-ink: #232a3e;
    --balloon-fill: #fdf8ec;
    position: relative;
    width: 100%;
    max-width: 23rem;
    margin: 0 auto;
}

.clerk-scene-person {
    display: block;
    width: 78%;
    height: auto;
}

.clerk-scene-balloon {
    position: absolute;
    z-index: 1;
    left: 53%;
    top: 51.28%; /* 50 / 97.5 */
    width: 45%;
    padding: .4rem;
    background: var(--balloon-fill);
    border: 3px solid var(--balloon-ink);
    border-radius: 1rem;
}

.clerk-scene-balloon img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: .5rem;
}

/* Drawn over the balloon so its fill hides the balloon's border where the tail joins. */
.clerk-scene-tail {
    position: absolute;
    z-index: 2;
    inset: 0;
    width: 100%;
    height: 100%;
    overflow: visible;
    pointer-events: none;
}

.clerk-scene-tail polygon {
    fill: var(--balloon-fill);
}

.clerk-scene-tail polyline {
    fill: none;
    stroke: var(--balloon-ink);
    stroke-width: 3px;
    stroke-linejoin: round;
    vector-effect: non-scaling-stroke;
}

@media (max-width: 767.98px) {
    .clerk-scene {
        max-width: 19rem;
    }
}

.public-steps {
    counter-reset: step;
    list-style: none;
    padding-left: 0;
}

.public-steps li {
    position: relative;
    padding-left: 3rem;
    margin-bottom: 1.25rem;
}

.public-steps li::before {
    counter-increment: step;
    content: counter(step);
    position: absolute;
    left: 0;
    top: 0;
    width: 2rem;
    height: 2rem;
    border-radius: 50%;
    background: #4f89c8;
    color: #fff;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
}

.public-callout {
    background: #eef4fb;
    border-radius: .75rem;
    padding: 2rem;
}

.public-faq dt {
    margin-top: 1.25rem;
}

.public-faq dd {
    margin-left: 0;
}

.public-pricing-table th,
.public-pricing-table td {
    white-space: nowrap;
}

.public-footer {
    flex-shrink: 0;
    background: #fafbf7;
}

.public-footer a {
    color: #495057;
}

.public-legal h2 {
    font-size: 1.25rem;
    margin-top: 2rem;
}

/* Home hero card (Index.cshtml only). Built from
   "Sales and Marketing/Marketing Web Pages/Hero Graphic Home Page.png". */
.hero-card {
    --hero-navy: #292961;
    --hero-green: #4E6B2F;
    --hero-rule: #CFC6AE;
    --hero-serif: "Source Serif 4", "Source Serif Pro", Georgia, "Times New Roman", serif;
    --hero-sans: "Source Sans 3", "Segoe UI", system-ui, -apple-system, sans-serif;
    max-width: 72rem;
    margin: 0 auto;
    padding: clamp(1.5rem, 4vw, 3.5rem);
    background: #FBF7EC;
    border: 1px solid #E3D8BC;
    border-radius: 1.25rem;
    font-family: var(--hero-sans);
}

.hero-eyebrow {
    color: var(--hero-green);
    font-weight: 700;
    font-size: 1rem;
    letter-spacing: .18em;
    text-transform: uppercase;
    margin-bottom: 1rem;
}

.public-hero .hero-headline {
    color: var(--hero-navy);
    font-family: var(--hero-serif);
    font-weight: 700;
    font-size: clamp(1.75rem, 3.6vw, 2.75rem);
    line-height: 1.18;
    margin-bottom: 2rem;
}

.hero-btn {
    background: var(--hero-green);
    border-color: var(--hero-green);
    color: #fff;
    font-size: 1.35rem;
    font-weight: 600;
    padding: .75rem 2.25rem;
    border-radius: .6rem;
}

.hero-btn:hover,
.hero-btn:active {
    background: #3F5826;
    border-color: #3F5826;
    color: #fff;
}

.hero-btn:focus-visible {
    color: #fff;
    box-shadow: 0 0 0 .25rem rgba(78, 107, 47, .4);
}

.hero-slip {
    max-width: 24rem;
    margin: 0 auto;
    padding: 1.5rem 1.75rem;
    background: #fff;
    border: 3px solid var(--hero-navy);
    border-radius: 1.25rem;
    color: var(--hero-navy);
    font-size: 1.2rem;
    font-variant-numeric: lining-nums;
}

.hero-slip-isbn {
    color: #5B5B5B;
    font-size: 1.05rem;
    font-variant-numeric: tabular-nums;
    letter-spacing: .03em;
}

.hero-slip-title {
    font-family: var(--hero-serif);
    font-weight: 700;
    font-size: 1.6rem;
    line-height: 1.2;
    margin: .25rem 0 .5rem;
}

.hero-slip-cond {
    color: var(--hero-green);
    font-size: 1.1rem;
    padding-bottom: .5rem;
}

.hero-slip-author {
    border-top: 1px dashed var(--hero-rule);
    border-bottom: 1px dashed var(--hero-rule);
    padding: .5rem 0;
}

.hero-slip-rows {
    margin: 0;
}

.hero-slip-rows > div {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    padding: .45rem 0;
}

.hero-slip-rows > div + div {
    border-top: 1px dashed var(--hero-rule);
}

.hero-slip-rows dt {
    font-weight: 400;
    font-size: 1.35rem;
}

.hero-slip-rows dd {
    margin: 0;
    font-family: var(--hero-serif);
    font-weight: 700;
    font-size: 1.45rem;
}

/* Home "Three steps" screens (Index.cshtml only). HTML/CSS renderings of the Folio counter,
   built from "Sales and Marketing/Marketing Web Pages/Step 1-3 *.png". Every screen is the
   same fixed size, set so the tallest fits at the narrowest 3-column width (992px). */
.step-shots {
    list-style: none;
    padding: 0;
    margin: 2rem 0 0;
    display: grid;
    grid-template-columns: 1fr;
    gap: 2.5rem;
    counter-reset: shot;
}

@media (min-width: 992px) {
    .step-shots {
        grid-template-columns: repeat(3, 1fr);
        gap: 2rem;
    }
}

.step-shot {
    width: 100%;
    max-width: 22rem;
    margin: 0 auto;
}

.step-screen {
    --ss-blue: #0d6efd;
    --ss-muted: #6c757d;
    --ss-border: #dee2e6;
    position: relative;
    height: 31.5rem;
    overflow: hidden;
    padding: .75rem;
    background: #f8f9fa;
    border: 1px solid var(--ss-border);
    border-radius: .75rem;
    box-shadow: 0 .5rem 1.5rem rgba(33, 37, 41, .08);
    color: #212529;
    font-size: .8rem;
    line-height: 1.4;
    text-align: left;
}

.step-caption {
    margin: 1rem 0 0;
    padding-left: 2.5rem;
    position: relative;
}

.step-caption::before {
    counter-increment: shot;
    content: counter(shot);
    position: absolute;
    left: 0;
    top: 0;
    width: 1.75rem;
    height: 1.75rem;
    border-radius: 50%;
    background: #4f89c8;
    color: #fff;
    font-weight: 700;
    font-size: .9rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ss-icon {
    width: 1em;
    height: 1em;
    vertical-align: -.125em;
}

.ss-title {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: .4rem;
}

.ss-muted { color: var(--ss-muted); }
.ss-mono { font-family: SFMono-Regular, Consolas, "Liberation Mono", monospace; }

.ss-visit,
.ss-list,
.ss-card {
    background: #fff;
    border: 1px solid var(--ss-border);
    border-radius: .375rem;
    margin-bottom: .5rem;
}

.ss-visit {
    border-color: var(--ss-blue);
    padding: .5rem .6rem;
}

.ss-totals { margin-top: .1rem; }

.ss-btns {
    display: flex;
    gap: .35rem;
    margin-top: .4rem;
}

.ss-btn {
    display: inline-block;
    padding: .2rem .5rem;
    border: 1px solid transparent;
    border-radius: .25rem;
    font-size: .75rem;
    white-space: nowrap;
}

.ss-btn-outline { border-color: var(--ss-muted); color: #495057; }
.ss-btn-primary { background: var(--ss-blue); border-color: var(--ss-blue); color: #fff; }
.ss-btn-danger { border-color: #dc3545; color: #dc3545; align-self: flex-start; }

.ss-btn-block {
    display: block;
    text-align: center;
    padding: .5rem;
    font-size: .85rem;
}

.ss-item {
    display: flex;
    justify-content: space-between;
    gap: .5rem;
    padding: .5rem .6rem;
}

.ss-item + .ss-item { border-top: 1px solid var(--ss-border); }

.ss-card { padding: .6rem; }

.ss-label { margin: .5rem 0 .25rem; }
.ss-card > .ss-label:first-child { margin-top: 0; }

.ss-input-group { display: flex; }

.ss-input {
    flex: 1;
    padding: .3rem .5rem;
    border: 2px solid #86b7fe;
    border-radius: .25rem 0 0 .25rem;
}

.ss-input-group .ss-btn {
    border-radius: 0 .25rem .25rem 0;
    display: flex;
    align-items: center;
    font-size: .8rem;
}

.ss-subhead {
    font-size: .95rem;
    font-weight: 600;
    margin: .6rem 0 .4rem;
}

.ss-note {
    font-size: .75rem;
    margin: .5rem 0 0;
}

.ss-book {
    display: flex;
    gap: .6rem;
    margin-bottom: .5rem;
}

.ss-cover {
    flex: 0 0 3.2rem;
    height: 4.4rem;
    border: 1px solid var(--ss-border);
    border-radius: .2rem;
    background: linear-gradient(#fff 55%, #f3ede4);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    padding: .2rem .1rem;
    font-family: Georgia, serif;
    text-transform: uppercase;
    text-align: center;
    line-height: 1;
}

.ss-cover-author { color: #b02a2a; font-size: .35rem; letter-spacing: .05em; }
.ss-cover-title { color: #333; font-size: .6rem; margin-top: auto; }
.ss-cover-sub { color: #333; font-size: .35rem; letter-spacing: .2em; }

.ss-book-title { font-size: .85rem; }

.ss-tiles {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: .3rem;
}

.ss-tile,
.ss-offer {
    border: 1px solid var(--ss-border);
    border-radius: .25rem;
    text-align: center;
    padding: .3rem .15rem;
    display: flex;
    flex-direction: column;
}

.ss-tile span { font-size: .7rem; color: #495057; }
.ss-tile b { font-size: .85rem; }

.ss-offer-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: .5rem 0 .25rem;
    color: #495057;
    font-weight: 600;
}

.ss-badge {
    background: #198754;
    color: #fff;
    border-radius: .25rem;
    padding: .05rem .4rem;
    font-size: .75rem;
}

.ss-offers {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: .35rem;
}

.ss-offer { padding: .35rem; }
.ss-offer b { font-size: 1.35rem; }
.ss-offer-credit b { color: var(--ss-blue); }

.ss-segments {
    display: flex;
    border: 1px solid #343a40;
    border-radius: .25rem;
    overflow: hidden;
}

.ss-segments span {
    flex: 1 1 auto;
    text-align: center;
    padding: .25rem .1rem;
    font-size: .7rem;
    white-space: nowrap;
}

.ss-segments span + span { border-left: 1px solid #343a40; }
.ss-segments .active { background: #6c757d; color: #fff; }

.ss-accepted { border-color: #198754; }

.ss-accepted-head {
    color: #198754;
    font-size: 1.05rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: .35rem;
    margin-bottom: .2rem;
}

.ss-accepted-head svg { width: 1.1em; height: 1.1em; }

.ss-credit-box,
.ss-row-box,
.ss-write {
    border: 1px solid var(--ss-border);
    border-radius: .25rem;
    margin-top: .5rem;
    padding: .5rem .6rem;
}

.ss-credit-box {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.ss-credit-box span { font-size: .75rem; color: #495057; }
.ss-credit-box b { font-size: 1.8rem; line-height: 1.2; }

.ss-row-box {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
}

.ss-row-box span:last-child { font-size: .95rem; }

.ss-write {
    display: flex;
    flex-direction: column;
}

.ss-write b { font-size: 1.05rem; margin-bottom: .3rem; }
