/* The signed-in product and the client's approval page.
   Loaded after app.css so it inherits the palette, dark mode and components,
   and only changes what a working tool needs that a landing page does not. */

/* ------------------------------------------------------- type scale ----- */

/* The marketing h1 is clamp(2.35rem, 7vw, 4.85rem), which is right for "Stop
   doing extra work for free" and absurd above "Acme Website Redesign". A tool
   someone has open all afternoon needs headings that organise, not headings
   that announce. */
.console h1 { font-size: clamp(1.6rem, 3.4vw, 2.1rem); line-height: 1.12; letter-spacing: -.02em; margin: 0 0 .2rem; }
.console h2 { font-size: 1.12rem; letter-spacing: -.01em; margin: 2.2rem 0 .5rem; }
.console h3 { font-size: .98rem; margin: 1.3rem 0 .4rem; }
.console .lead { font-size: 1.02rem; }
.console .narrow h1 { font-size: 1.35rem; }

.console-bar { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 58px; }
.console-bar nav.site { display: flex; align-items: center; gap: 1.1rem; }
.wide-console { max-width: 70rem; }
.narrow { max-width: 27rem; margin: 3.5rem auto; }
form.inline { display: inline; }

.page-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem; flex-wrap: wrap; margin: 1.6rem 0 .8rem; }
.page-head .btn { flex: none; }
.eyebrow { font-size: .72rem; font-weight: 700; letter-spacing: .09em; text-transform: uppercase; color: var(--muted); margin: 0 0 .35rem; }

/* ----------------------------------------------------------- deltas ----- */

/* ScopeLock is a before-and-after machine. Six equal boxes said "here are some
   numbers"; this says "this is what it was, this is what it is now", which is
   the only sentence the product exists to produce. */
.headline-figure { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.3rem 1.4rem; box-shadow: var(--shadow); margin: 1rem 0 1.2rem; }
.headline-figure .k { font-size: .72rem; text-transform: uppercase; letter-spacing: .07em; color: var(--muted); }
.headline-figure .big { font-size: clamp(2rem, 5vw, 2.9rem); font-weight: 700; letter-spacing: -.035em; line-height: 1.05; color: var(--accent); margin: .1rem 0; }
.headline-figure .sub { color: var(--muted); font-size: .92rem; }

.deltas { display: grid; gap: .9rem; grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr)); margin: 1rem 0 1.5rem; }
.delta { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: .85rem 1rem; }
.delta .k { font-size: .7rem; text-transform: uppercase; letter-spacing: .07em; color: var(--muted); }
.delta .pair { display: flex; align-items: baseline; gap: .5rem; flex-wrap: wrap; margin-top: .25rem; }
.delta .was { color: var(--muted); text-decoration: line-through; text-decoration-thickness: 1px; font-size: 1rem; }
.delta .arrow { color: var(--accent); font-weight: 700; }
.delta .now { font-size: 1.22rem; font-weight: 700; letter-spacing: -.02em; }
.delta .why { color: var(--muted); font-size: .82rem; margin-top: .2rem; }
/* Unchanged is worth showing plainly rather than dressing up as a change. */
.delta.flat .now { font-weight: 600; color: var(--muted); }

/* ---------------------------------------------------------- records ----- */

/* A change order is the core object of the product, so it is a record with a
   status rule down its edge, not a row in a grid. It also stacks on a phone
   without hiding anything, which the old table did by deleting a column. */
.records { display: grid; gap: .7rem; margin: .8rem 0 1.5rem; }
.record { display: grid; grid-template-columns: 1fr auto; gap: .6rem 1rem; align-items: start;
  background: var(--surface); border: 1px solid var(--line); border-left: 4px solid var(--line);
  border-radius: var(--radius); padding: .85rem 1rem; text-decoration: none; color: inherit; }
a.record:hover { border-color: var(--accent); }
.record .ref { font: .72rem/1 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; letter-spacing: .06em; color: var(--muted); }
.record .title { font-weight: 600; letter-spacing: -.01em; margin: .2rem 0 0; }
.record .figures { display: flex; gap: .9rem; margin-top: .35rem; font-size: .92rem; color: var(--muted); }
.record .figures strong { color: var(--ink); font-weight: 600; }
.record .right { text-align: right; display: grid; gap: .3rem; justify-items: end; }
.record .when { font-size: .78rem; color: var(--muted); }

.record.is-approved { border-left-color: var(--good); }
.record.is-sent, .record.is-question { border-left-color: var(--warn); }
.record.is-declined { border-left-color: var(--bad); }
.record.is-draft { border-left-color: var(--line); }

/* The marketing site promises a locked record. This is that, so somebody who
   saw the landing page recognises it when it happens to them. */
.locked { display: inline-flex; align-items: center; gap: .4rem; font: 700 .68rem/1 system-ui, sans-serif;
  letter-spacing: .14em; text-transform: uppercase; color: var(--good);
  border: 1.5px solid var(--good); border-radius: 5px; padding: .34rem .5rem; }
.locked::before { content: "✓"; font-size: .85em; }
.lockbox { background: var(--good-bg); border: 1px solid var(--good); border-radius: var(--radius); padding: 1rem 1.15rem; margin: 1.2rem 0; }
.lockbox .who { font-weight: 600; margin: .5rem 0 .1rem; }
.lockbox .fingerprint { font: .72rem/1.5 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; color: var(--muted); word-break: break-all; margin: .4rem 0 0; }

/* --------------------------------------------------------- versions ----- */

.versions { display: grid; gap: .5rem; margin: .7rem 0 1.5rem; }
.version { display: flex; align-items: baseline; gap: .8rem; flex-wrap: wrap; padding: .6rem .8rem; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); font-size: .93rem; }
.version .n { font: 700 .74rem/1 ui-monospace, Menlo, Consolas, monospace; color: var(--muted); }
.version.current { border-color: var(--accent); }
.version .meta { color: var(--muted); font-size: .84rem; margin-left: auto; }

ul.scope { list-style: none; padding: 0; margin: .5rem 0 1.5rem; display: grid; gap: .3rem; grid-template-columns: repeat(auto-fit, minmax(12rem, 1fr)); }
ul.scope li { background: var(--surface); border: 1px solid var(--line); border-radius: 8px; padding: .42rem .7rem; font-size: .92rem; }

.sharelink { font: .86rem/1.5 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; word-break: break-all; background: var(--bg); border: 1px solid var(--line); border-radius: 8px; padding: .6rem .7rem; margin: .5rem 0; }
.warn { background: var(--warn-bg); color: var(--warn); border-radius: 8px; padding: .7rem .9rem; margin: .8rem 0; }
.empty { border: 1px dashed var(--line); border-radius: var(--radius); padding: 1.4rem; text-align: center; color: var(--muted); }

/* --------------------------------------------- the client's page ------- */

.approve { max-width: 34rem; margin: 2.5rem auto 0; }
.approve .headline-figure { text-align: left; }
.order-figures { display: grid; grid-template-columns: repeat(auto-fit, minmax(8rem, 1fr)); gap: 1rem; padding: 1.2rem 0; margin: 1.3rem 0; border-top: 2px solid var(--ink); border-bottom: 2px solid var(--ink); }
.order-figures .v { font-size: 1.55rem; font-weight: 700; letter-spacing: -.025em; line-height: 1.1; }
.order-figures .v.cost { color: var(--accent); }
.order-figures .k { font-size: .72rem; text-transform: uppercase; letter-spacing: .07em; color: var(--muted); margin-top: .2rem; }
label.agree { display: flex; gap: .6rem; align-items: flex-start; font-weight: 400; font-size: .94rem; line-height: 1.45; margin: 1.2rem 0 0; }
label.agree input { width: auto; margin-top: .22rem; flex: none; }

/* ---------------------------------------------------------- billing ---- */

.plan-now { background: var(--surface); border: 2px solid var(--accent); border-radius: var(--radius); padding: 1.2rem 1.3rem; margin: 1rem 0 1.5rem; box-shadow: var(--shadow); }
.plan-now .name { font-size: 1.3rem; font-weight: 700; letter-spacing: -.02em; }
.meter-row { margin: .9rem 0 .2rem; }
.meter-row .k { font-size: .76rem; color: var(--muted); display: flex; justify-content: space-between; }
.meter-bar { height: 8px; border-radius: 99px; background: var(--line); overflow: hidden; margin-top: .3rem; }
.meter-bar i { display: block; height: 100%; background: var(--accent); }
.meter-bar.full i { background: var(--bad); }

.plans { display: grid; gap: .8rem; grid-template-columns: 1fr; margin: .8rem 0 1.5rem; }
@media (min-width: 36rem) { .plans { grid-template-columns: repeat(3, 1fr); } .plans.two { grid-template-columns: repeat(2, 1fr); } }
.card.plan { display: flex; flex-direction: column; gap: .15rem; padding: 1rem; }
.card.plan.current { border-color: var(--accent); }
.plan-price { font-size: 1.1rem; font-weight: 700; letter-spacing: -.02em; margin: .15rem 0 .5rem; }
ul.plan-list { list-style: none; padding: 0; margin: 0 0 .9rem; flex: 1; font-size: .88rem; color: var(--muted); }
ul.plan-list li { padding: .22rem 0; border-top: 1px solid var(--line); }
ul.plan-list li:first-child { border-top: 0; }
.card.plan .btn { width: 100%; text-align: center; }

/* ----------------------------------------------------------- legal ----- */

.legal { max-width: 40rem; margin: 0 auto; }
.legal h2 { font-size: 1.05rem; margin: 2rem 0 .4rem; }
.legal p { margin: 0 0 .9rem; }
.legal .lead { margin-bottom: 1.5rem; }
.legal-links { margin: .4rem 0 0; }

@media (max-width: 40rem) {
  .record { grid-template-columns: 1fr; }
  .record .right { justify-items: start; text-align: left; }
  .order-figures { grid-template-columns: 1fr; gap: .8rem; }
  .deltas { grid-template-columns: 1fr; }
}

/* Meter widths as classes, because the content security policy forbids the
   inline style attribute that would normally carry a percentage. */
.meter-bar .w-0 { width: 0%; }
.meter-bar .w-5 { width: 5%; }
.meter-bar .w-10 { width: 10%; }
.meter-bar .w-15 { width: 15%; }
.meter-bar .w-20 { width: 20%; }
.meter-bar .w-25 { width: 25%; }
.meter-bar .w-30 { width: 30%; }
.meter-bar .w-35 { width: 35%; }
.meter-bar .w-40 { width: 40%; }
.meter-bar .w-45 { width: 45%; }
.meter-bar .w-50 { width: 50%; }
.meter-bar .w-55 { width: 55%; }
.meter-bar .w-60 { width: 60%; }
.meter-bar .w-65 { width: 65%; }
.meter-bar .w-70 { width: 70%; }
.meter-bar .w-75 { width: 75%; }
.meter-bar .w-80 { width: 80%; }
.meter-bar .w-85 { width: 85%; }
.meter-bar .w-90 { width: 90%; }
.meter-bar .w-95 { width: 95%; }
.meter-bar .w-100 { width: 100%; }
