/**
 * Use-case pages (/use-cases and /use-cases/<slug>, 28 Oct 2026) and the homepage "Use cases" row.
 * Builds on landing.css (Field Journal: Caveat labels, 6px buttons, 10px cards). The visual is sample data drawn
 * in HTML/CSS: something visitors fill in (left) turning into a card a manager uses (right).
 */

/* ---------- Short pages: a tighter rhythm than the 112px sections of the homepage ---------- */
.uc-page .home-section { padding-top: 80px; padding-bottom: 80px; }
.uc-page .page-section { gap: 36px; }
.uc-page .home-cta { margin-bottom: 80px; }

/* ---------- Hero ---------- */
.uc-crumbs { font-size: 14px; color: var(--color-muted-green); }
.fj-page .uc-crumbs a { color: var(--color-muted-green); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--color-rule); }
.fj-page .uc-crumbs a:hover { color: var(--color-forest); }
.home-page .uc-hero h1 { font-size: 52px; line-height: 1.06; }
.uc-for { font-size: 15px; line-height: 1.55; color: var(--color-forest); font-weight: 600; border-left: 3px solid var(--color-trail); padding-left: 12px; }

/* ---------- The visual ---------- */
.uc-visual { position: relative; width: 540px; max-width: 100%; height: 440px; font-family: var(--font-body); color: var(--color-forest); line-height: normal; text-align: left; }
.uc-visual__from { position: absolute; left: 0; top: 0; transform: rotate(-2.5deg); transform-origin: top left; }
.uc-visual__to { position: absolute; right: 0; bottom: 0; }
.uc-visual__arrow { position: absolute; left: 304px; top: 70px; }

/* A handwritten sheet: guest book, register, sign-in sheet */
.uc-sheet {
    width: 286px; background: #FBF8F1; border-radius: 3px; padding: 18px 18px 6px; position: relative; overflow: hidden;
    box-shadow: 0 1px 0 #E6DFD0, 0 14px 32px rgba(27, 58, 45, .2);
}
.uc-sheet::before { content: ''; position: absolute; top: 0; bottom: 0; left: 58px; width: 1px; background: var(--color-margin); }
.uc-sheet__head { display: flex; flex-direction: column; gap: 2px; padding-bottom: 8px; }
.uc-sheet__title { font-family: var(--font-heading); font-size: 18px; }
.uc-sheet__sub { font-size: 10px; color: #8A7A60; }
.uc-sheet__cols, .uc-sheet__row { display: grid; grid-template-columns: 40px 1fr 1fr 22px; gap: 0 6px; }
.uc-sheet__cols { font-size: 8px; font-weight: 700; letter-spacing: .1em; color: #8A7A60; border-bottom: 2px solid var(--color-forest); padding-bottom: 4px; }
.uc-sheet__row {
    height: 29px; align-items: end; padding-bottom: 2px; border-bottom: 1px solid #D3CAB7;
    font-family: var(--font-hand); font-size: 17px; line-height: 1; color: #27406B; white-space: nowrap; overflow: hidden;
}
.uc-sheet__row span { overflow: hidden; }
.uc-sheet__row span:last-child { text-align: center; }

/* A shelf of old guest books */
.uc-books { display: flex; align-items: flex-end; gap: 5px; height: 250px; padding: 0 6px 10px; border-bottom: 6px solid #B9A88A; }
.uc-books__book {
    width: 33px; display: flex; flex-direction: column; justify-content: space-between; align-items: center; padding: 12px 0 10px; border-radius: 3px 3px 1px 1px;
    color: #F3EBDD; box-shadow: inset -4px 0 0 rgba(0, 0, 0, .12), 0 6px 14px rgba(27, 58, 45, .18);
}
.uc-books__book--0 { height: 222px; background: #6B4A2E; }
.uc-books__book--1 { height: 236px; background: #2D4F3E; }
.uc-books__book--2 { height: 210px; background: #7A3B2E; }
.uc-books__label { writing-mode: vertical-rl; transform: rotate(180deg); font-family: var(--font-heading); font-size: 13px; letter-spacing: .02em; opacity: .9; }
.uc-books__year { font-size: 11px; font-weight: 700; }

/* A QR sign */
.uc-qr {
    width: 210px; background: #FFFFFF; border-radius: 12px; padding: 18px 16px 16px; display: flex; flex-direction: column; align-items: center; gap: 10px;
    box-shadow: 0 1px 0 #DDD7CC, 0 14px 32px rgba(27, 58, 45, .2); text-align: center;
}
.uc-qr__name { font-family: var(--font-heading); font-size: 19px; line-height: 1.1; }
.uc-qr__code { display: block; width: 150px; height: 150px; }
.uc-qr__sub { font-size: 13px; font-weight: 600; color: var(--color-pine); }

/* A list of sites, each counting its own way */
.uc-sites {
    width: 270px; background: #FFFFFF; border-radius: 10px; padding: 16px 18px; display: flex; flex-direction: column;
    box-shadow: 0 14px 32px rgba(27, 58, 45, .16);
}
.uc-sites__title { font-family: var(--font-heading); font-size: 18px; padding-bottom: 8px; border-bottom: 2px solid var(--color-forest); }
.uc-sites__row { display: flex; flex-direction: column; gap: 3px; padding: 9px 0; border-bottom: 1px solid #EEEAE2; }
.uc-sites__name { font-size: 14px; font-weight: 600; }
.uc-sites__how { display: inline-flex; align-items: center; gap: 7px; font-size: 12px; color: var(--color-muted-green); }
.uc-sites__how i { display: block; width: 14px; height: 3px; }

/* The card a manager uses */
.uc-card {
    width: 290px; background: #FFFFFF; border-radius: 10px; padding: 18px 20px 16px; display: flex; flex-direction: column; gap: 10px;
    box-shadow: 0 18px 44px rgba(27, 58, 45, .2); border: 1px solid #ECE7DD;
}
.uc-card__head { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; }
.uc-card__title { font-family: var(--font-heading); font-size: 21px; line-height: 1.1; }
.uc-card__sample { flex-shrink: 0; font-size: 10.5px; font-weight: 600; color: #8A7A60; border: 1px solid #DDD7CC; border-radius: 100px; padding: 2px 8px; margin-top: 2px; }
.uc-card__sub { font-size: 12.5px; color: var(--color-muted-green); margin-top: -6px; }
.uc-card__bars { display: flex; align-items: flex-end; gap: 8px; height: 132px; border-bottom: 1px solid var(--color-forest); padding-top: 18px; }
.uc-card__bar { flex: 1; height: 100%; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; position: relative; }
.uc-card__bar i { display: block; width: 100%; min-height: 3px; background: var(--color-pine); border-radius: 2px 2px 0 0; }
.uc-card__barvalue { font-size: 10.5px; color: var(--color-muted-green); padding-bottom: 3px; font-variant-numeric: tabular-nums; }
.uc-card__barlabel { position: absolute; bottom: -18px; font-size: 11px; color: var(--color-body); }
.uc-card__bars + .uc-card__foot { margin-top: 16px; }
.uc-card__tiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; padding-top: 2px; }
.uc-card__tile { display: flex; flex-direction: column; gap: 4px; border-top: 3px solid; padding-top: 8px; }
.uc-card__tile strong { font-family: var(--font-heading); font-weight: 400; font-size: 24px; line-height: 1; }
.uc-card__tile span { font-size: 11px; line-height: 1.3; color: var(--color-muted-green); }
.uc-card__figures { margin: 0; display: flex; flex-direction: column; }
.uc-card__figures div { display: flex; justify-content: space-between; gap: 12px; padding: 7px 0; border-bottom: 1px solid #EEEAE2; font-size: 13px; }
.uc-card__figures dt { color: var(--color-body); }
.uc-card__figures dd { margin: 0; font-weight: 700; white-space: nowrap; font-variant-numeric: tabular-nums; }
.uc-card__foot { font-size: 11.5px; color: var(--color-muted-green); }

/* Each kind of source sits where it reads best */
.uc-visual--books .uc-visual__from { left: 8px; top: 30px; transform: none; }
.uc-visual--books .uc-visual__arrow { left: 262px; top: 70px; }
.uc-visual--qr .uc-visual__from { left: 20px; top: 8px; }
.uc-visual--qr .uc-visual__arrow { left: 250px; top: 60px; }
.uc-visual--sites .uc-visual__from { transform: rotate(-1.5deg); }
.uc-visual--sites .uc-visual__arrow { left: 290px; top: 60px; }

/* ---------- What you do / what you get ---------- */
.uc-two { display: grid; grid-template-columns: 340px minmax(0, 1fr); gap: 56px; align-items: start; }
.home-page .uc-two h2, .home-page .uc-proof h2 { font-size: 44px; line-height: 1.08; }
.uc-gets .page-card h3 { font-size: 26px; line-height: 1.15; }
.uc-note { max-width: 820px; }

/* ---------- Proof ---------- */
.uc-proof__copy { display: flex; flex-direction: column; gap: 16px; max-width: 760px; }
.uc-proof__copy p { font-size: 18px; line-height: 1.6; color: var(--color-body); }
.uc-proof__copy a { font-weight: 600; }

/* ---------- Related and index cards ---------- */
.uc-related { gap: 32px; }
.uc-related__list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.fj-page a.uc-related__link, .fj-page a.uc-index__card {
    display: flex; flex-direction: column; gap: 8px; height: 100%; padding: 20px 22px; border-radius: 10px;
    background: #FFFFFF; border: 1px solid var(--color-rule); color: var(--color-forest); text-decoration: none;
    transition: border-color .15s ease, box-shadow .15s ease;
}
.fj-page a.uc-related__link:hover, .fj-page a.uc-index__card:hover { border-color: var(--color-forest); box-shadow: 0 8px 24px rgba(27, 58, 45, .10); color: var(--color-forest); }
.uc-related__name, .uc-index__name { font-size: 13px; font-weight: 600; color: var(--color-trail-dark); }
.uc-related__card { font-family: var(--font-heading); font-size: 22px; line-height: 1.2; }

.uc-index { gap: 36px; padding-top: 24px; }
.uc-index__grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.uc-index__title { font-family: var(--font-heading); font-size: 26px; line-height: 1.15; }
.uc-index__line { font-size: 16px; line-height: 1.6; color: var(--color-body); }
.uc-index__more { margin-top: auto; padding-top: 4px; font-size: 15px; font-weight: 600; color: var(--color-pine); text-decoration: underline; text-underline-offset: 3px; }

.uc-cta { margin-top: 0; }
.home-cta p.uc-more-sites { font-size: 15px; }
.uc-more-sites a { font-weight: 600; }

/* ---------- Homepage row ---------- */
.home-usecases { border-top: 1px solid var(--color-rule); display: flex; flex-direction: column; gap: 32px; padding-top: 80px; padding-bottom: 80px; }
.home-usecases__list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0 28px; }
.home-usecases__list li { border-top: 1px solid var(--color-rule); }
.fj-page a.home-usecases__link { display: flex; flex-direction: column; gap: 4px; padding: 14px 0 16px; color: var(--color-forest); text-decoration: none; }
.fj-page a.home-usecases__link:hover .home-usecases__card { text-decoration: underline; text-underline-offset: 3px; }
.home-usecases__name { font-size: 13px; font-weight: 600; color: var(--color-trail-dark); }
.home-usecases__card { font-size: 16px; line-height: 1.4; font-weight: 600; }

/* ---------- Tablet ---------- */
@media (max-width: 1100px) {
    .home-page .uc-hero h1 { font-size: 46px; }
    .uc-hero .page-hero__visual { transform: scale(.88); transform-origin: center; }
    .home-usecases__list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* ---------- Stacked (under ~900px) ---------- */
@media (max-width: 900px) {
    .uc-hero .page-hero__visual { transform: none; justify-content: flex-start; }
    .uc-two { grid-template-columns: minmax(0, 1fr); gap: 24px; }
    .uc-related__list { grid-template-columns: minmax(0, 1fr); gap: 12px; }
    .uc-index__grid { grid-template-columns: minmax(0, 1fr); gap: 14px; }
}

/* ---------- Phones: the source on top, the card below it ---------- */
@media (max-width: 600px) {
    .home-page .uc-hero h1 { font-size: 36px; }
    .home-page .uc-two h2, .home-page .uc-proof h2 { font-size: 34px; }
    .uc-page .home-section { padding-top: 56px; padding-bottom: 56px; }
    .uc-page .home-cta { margin-bottom: 56px; }
    .uc-visual { height: auto; width: 100%; display: flex; flex-direction: column; align-items: flex-start; }
    .uc-visual .uc-visual__from { position: relative; left: auto; top: auto; transform: rotate(-1.5deg); max-width: 100%; }
    .uc-visual--books .uc-visual__from { transform: none; }
    .uc-sheet { width: 270px; max-width: 100%; }
    .uc-sheet__row:nth-of-type(n+6) { display: none; }
    .uc-visual .uc-visual__arrow { position: relative; left: auto; top: auto; align-self: center; margin: -6px 0 -10px; transform: rotate(40deg); }
    .uc-visual .uc-visual__to { position: relative; right: auto; bottom: auto; align-self: flex-end; }
    .uc-card { width: 290px; max-width: calc(100vw - 32px); }
    .uc-books { height: 200px; }
    .uc-books__book--0 { height: 180px; }
    .uc-books__book--1 { height: 192px; }
    .uc-books__book--2 { height: 170px; }
    .uc-index__title, .uc-related__card { font-size: 22px; }
    .fj-page a.uc-related__link, .fj-page a.uc-index__card { padding: 18px; }
    .uc-proof__copy p { font-size: 17px; }
    .home-usecases { padding-top: 56px; padding-bottom: 56px; }
    .home-usecases__list { grid-template-columns: minmax(0, 1fr); }
}
