/* Ratably — layout of the free check and the pricing page (site phase 2, workstream B).
   The components they use (page head, card, notice, grids, call to action) are in components.css;
   the calculator, tier cards and FAQ are in ratably.css. This file only places them. */

/* ---- /check: the same page as /app/check, with the paste box in a card above it ---- */

/* the paste box sits in a card now, so its own top margin goes; its status line sits under it */
.site-main .card .paste { margin-top: 0 }
.site-main .paste label { display: grid; gap: 8px; font-weight: 600 }
.site-main .paste textarea { width: 100%; font-weight: 400 }
.site-main .card .upload-status { margin-top: 16px }
/* the examples and the form follow the card at the app page's spacing */
.site-main .scenarios { margin: 4px 0 20px }
.site-main #calc > .tool { margin-top: 0 }
.site-main #findingsCountBadge { margin-top: 16px; display: inline-block }
.site-main #findingsCountBadge:empty { display: none }

/* ---- /pricing: the tier grid in a card, the questions in a card, then the call to action ---- */

.site-main .card .tiers { margin: 0 }
.site-main .card > .eyebrow { display: block; margin-bottom: 8px }
.site-main .card .faqs { max-width: none }
.site-main .card .faq:first-child { border-top: 0 }

/* the tiers are the cards: the section around them has no border, background or padding, so on a
   phone they run the full content width, level with the page head */
.pricing-tiers { margin: 0 0 var(--gap); padding: 0 }   /* beats ratably.css's bare `section` padding */

/* ---- /check as a stepped form: 1 lease terms, 2 statement, 3 what to do next, with the result
   beside steps 1 and 2 (a bar at the foot of the screen on a phone). The arithmetic is not here. ---- */
.fc { --fc-num: clamp(2.3rem, 4.2vw, 3rem) }
.fc-steps { list-style: none; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; margin: 0 0 24px; padding: 0;
  background: var(--sheet); border: 1px solid var(--rule); border-radius: 6px; overflow: hidden }
.fc-steps li + li { border-left: 1px solid var(--rule) }
.fc-tab { width: 100%; min-height: 56px; display: flex; align-items: center; gap: 12px; padding: 10px 16px; border: 0; background: none;
  font: 500 .95rem/1.25 var(--body); color: var(--ink2); cursor: pointer; text-align: left }
.fc-tab:hover { background: var(--green-soft) }
.fc-tab:focus-visible { outline-offset: -3px }
.fc-n { flex: none; width: 28px; height: 28px; display: grid; place-items: center; border-radius: 50%; border: 1.5px solid var(--rule);
  font: 600 .85rem var(--mono); color: var(--ink2); background: var(--sheet) }
.fc-tab[aria-current="step"] { color: var(--ink); font-weight: 600; box-shadow: inset 0 -3px 0 var(--green) }
.fc-tab[aria-current="step"] .fc-n { background: var(--green); border-color: var(--green); color: #fff }
@media (max-width: 600px) {
  .fc-tab { flex-direction: column; justify-content: center; gap: 6px; padding: 10px 6px; text-align: center; font-size: .78rem }
}

.fc-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(300px, 380px); gap: clamp(24px, 3vw, 40px); align-items: start }
.fc[data-step="3"] .fc-layout { grid-template-columns: minmax(0, 1fr) }
.fc[data-step="3"] .fc-live { display: none }
.fc-step-title { font-size: 1.5rem; margin-bottom: 18px }
.fc-step-title:focus { outline: none }
.fc-step-title:focus-visible { outline: 3px solid var(--green); outline-offset: 4px }

.fc-set { margin: 0 0 18px; padding: 20px 22px 22px; background: var(--sheet); border: 1px solid var(--rule); border-radius: 6px; min-width: 0 }
.fc-set legend { padding: 0 8px; margin-left: -8px; font: 500 .74rem/1 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--green) }
.fc-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 20px }
.fc-span { grid-column: 1 / -1 }
@media (max-width: 600px) { .fc-grid { grid-template-columns: minmax(0, 1fr) } .fc-set { padding: 18px 16px } }
.fc-field { display: grid; gap: 6px; align-content: start; min-width: 0; padding: 4px; margin: -4px; border-radius: 6px }
.fc-field label { font: 600 .88rem/1.3 var(--body); color: var(--ink) }
.fc-input { position: relative }
.fc-input input, .fc-input select { width: 100%; height: 46px; padding: 0 14px; background: var(--sheet); font-size: 1rem }
.fc-input select { font-family: var(--body); font-weight: 500; padding-right: 8px }
.fc-input.has-pre input { padding-left: 32px }
.fc-input.has-suf input { padding-right: 58px }
.fc-adorn { position: absolute; top: 0; bottom: 0; display: flex; align-items: center; font: 500 .85rem var(--mono); color: var(--ink2); pointer-events: none }
.fc-pre { left: 14px }
.fc-suf { right: 14px }
.fc-input:focus-within .fc-adorn { color: var(--green) }
.fc-hint { font: 400 .78rem/1.4 var(--body); color: var(--ink2) }
.fc-set .prorata { margin-top: 16px }
.fc-set .calc-example { margin-top: 14px }
.fc-filled { background: #FFF6C2; transition: background 1s ease }
.fc-filled input, .fc-filled select { border-color: var(--amber) }
.fc-filled-note { margin-top: 12px; font-weight: 600; color: var(--green); font-size: .95rem }
.fc-handnote { margin-top: 10px }
.fc-paste .btn-primary { min-height: 48px; padding-inline: 1.5em; margin-top: 12px }
.fc-paste textarea { min-height: 120px }
.fc-nav { display: flex; justify-content: space-between; gap: 12px; margin-top: 8px }
.fc-nav .btn { min-height: 48px; min-width: 140px }
@media (max-width: 480px) { .fc-nav .btn { flex: 1; min-width: 0 } .fc-nav span { display: none } }

/* the live result */
.fc-live { position: sticky; top: 84px; background: var(--sheet); border: 1px solid var(--rule); border-top: 4px solid var(--rule);
  border-radius: 6px; padding: 22px; box-shadow: 0 10px 30px -22px rgba(16, 32, 47, .5) }
.fc-live[data-state="found"] { border-top-color: var(--green) }
.fc-live-top { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 14px }
.fc-cue { display: inline-flex; align-items: center; gap: 7px; font: 500 .72rem var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--ink2) }
.fc-cue i { width: 8px; height: 8px; border-radius: 50%; background: var(--green); animation: fcDot 2s ease-in-out infinite }
.fc-biglabel { display: block; font: 500 .74rem var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--ink2) }
.fc-bigunit { display: block; color: var(--ink2); font-size: .86rem; margin-top: 4px }
.fc-live-num, .fc-bignum b { display: block; font: 800 var(--fc-num)/1.05 var(--display); letter-spacing: -.03em; font-variant-numeric: tabular-nums;
  color: var(--ink2); border-radius: 4px; margin: 4px -6px 0; padding: 0 6px; overflow-wrap: anywhere }
.fc-live[data-state="found"] .fc-live-num, .fc-carry[data-state="found"] .fc-bignum b { color: var(--green) }
.fc-live[data-state="clean"] .fc-live-num, .fc-carry[data-state="clean"] .fc-bignum b { color: var(--ink) }
.fc-pulse .fc-live-num { animation: fcPulse 1.1s ease-out }
.fc-live-five { margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--rule) }
.fc-live-meta { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 16px }
.fc-live-meta .badge:empty { display: none }
.calc-sub-line { margin-top: 14px; font-size: .88rem; color: var(--ink2) }
.calc-sub-line b { font: 600 .95rem var(--mono); color: var(--ink) }
.fc-live .verdict { margin-top: 14px; font-size: .9rem; color: var(--ink2) }
.fc-live-next { width: 100%; margin-top: 18px; min-height: 48px }
.fc-live-toggle { display: none }
@keyframes fcPulse { 0% { background: var(--green-soft) } 100% { background: transparent } }
@keyframes fcDot { 0%, 100% { opacity: 1 } 50% { opacity: .3 } }
@media (prefers-reduced-motion: reduce) { .fc-pulse .fc-live-num, .fc-cue i { animation: none } .fc-filled { transition: none } }

/* phone: the result is a bar at the foot of the screen; Details opens the rest */
@media (max-width: 960px) {
  .fc-layout { grid-template-columns: minmax(0, 1fr) }
  .fc { padding-bottom: 120px }
  .fc-live { position: fixed; z-index: 20; left: 0; right: 0; top: auto; bottom: 0; border-radius: 14px 14px 0 0; border-inline: 0; border-bottom: 0;
    padding: 12px 16px calc(12px + env(safe-area-inset-bottom)); max-height: 80vh; overflow-y: auto; box-shadow: 0 -10px 30px -12px rgba(16, 32, 47, .35) }
  .fc-live[data-open="false"] .fc-live-top, .fc-live[data-open="false"] .fc-live-more, .fc-live[data-open="false"] .fc-bigunit { display: none }
  .fc-live-main { padding-right: 96px }
  .fc-live-num { font-size: 2rem }
  .fc-live-toggle { display: block; position: absolute; right: 16px; top: 16px; min-height: 40px; padding: 0 14px; border: 1.5px solid var(--ink);
    border-radius: 3px; background: var(--sheet); font: 600 .9rem var(--body); color: var(--ink); cursor: pointer }
}

/* step 3 */
.fc-carry { padding: clamp(18px, 3vw, 28px) }
.fc-carry-nums { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px }
@media (max-width: 600px) { .fc-carry-nums { grid-template-columns: minmax(0, 1fr); gap: 18px } }
.fc-carry .verdict { margin-top: 18px; color: var(--ink2) }
.fc-carry-list { list-style: none; margin: 18px 0 0; padding: 0 }
.fc-carry-list li { display: flex; justify-content: space-between; gap: 14px; padding: 10px 0; border-top: 1px dotted var(--rule) }
.fc-carry-list li span { font: 500 .78rem var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--green) }
.fc-carry-list li b { font: 600 1rem var(--mono); white-space: nowrap }
.fc-how { margin-top: 14px; border-top: 1px solid var(--rule); padding-top: 12px }
.fc-how summary { cursor: pointer; font-weight: 600; color: var(--green) }
.fc-cta-card { background: var(--green-soft); border-color: color-mix(in srgb, var(--green) 35%, var(--rule)) }
.fc-cta-card h3 { font-size: 1.3rem; margin-bottom: 8px }
.fc-cta-card .btn-primary { min-height: 52px; display: inline-flex; align-items: center; margin-bottom: 4px }
@media (max-width: 480px) { .fc-cta-card .btn-primary { width: 100%; justify-content: center } }
.fc .capture { margin-top: 24px }
.fc-live-meta .badge { white-space: nowrap }
@media (max-width: 960px) { .fc-live[data-open="true"] .fc-live-top { padding-right: 120px } }

/* The pre-send check (/landlords/check, landlord_mode_spec.md 2.4): no five-year figure, no risk
   rating, no draft letter and no Discovery offer; the season block takes the offer's place. */
#calc[data-mode="presend"] .fc-live-five, #calc[data-mode="presend"] #riskBadge,
#calc[data-mode="presend"] #carry .fc-bignum:not(.fc-bignum-main),
#calc[data-mode="presend"] .fc-cta-card:not(.fc-presend) > h3,
#calc[data-mode="presend"] .fc-cta-card:not(.fc-presend) > .card-text,
#calc[data-mode="presend"] .fc-cta-card:not(.fc-presend) > .calc-note,
#calc[data-mode="presend"] #ctaDiscovery, #calc[data-mode="presend"] #btnGenerateLetter,
#calc[data-mode="presend"] #btnShare, #calc[data-mode="presend"] #captureForm,
#calc[data-mode="presend"] #step3 > .calc-note, #calc[data-mode="presend"] .calc-sub-line { display: none }
.fc-presend { margin-top: 16px }
.finding p.finding-next { color: var(--ink) }
