/* The portal, in the panel's own colours.
 *
 * Taken from services/larunda-panel/src/fb.rs so that somebody who
 * looks at the wall and then at their laptop is looking at one product.
 * Written out rather than generated: it is short enough to read, and a
 * build step for ninety lines of CSS would be a worse trade. */

:root {
    --ground:  #081523;
    --panel:   #112a40;
    --edge:    #1d3f5c;
    --header:  #103653;
    --ink:     #dceaf6;
    --quiet:   #8aa8c0;
    --accent:  #51c5ff;
    --mint:    #76e4ac;
    --ember:   #ff7a6b;
}

* { box-sizing: border-box; }

body {
    margin: 0;
    background: var(--ground);
    color: var(--ink);
    font: 16px/1.55 ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
}

.mono, .count, input, select, td.mono {
    font-family: ui-monospace, "Cascadia Mono", Menlo, Consolas, monospace;
}

/* --- the bar across the top ------------------------------------------ */

.top {
    display: flex; align-items: center; gap: 28px;
    padding: 14px 28px;
    background: linear-gradient(180deg, var(--header), var(--ground));
    border-bottom: 1px solid var(--edge);
}
.brand {
    display: flex; align-items: center; gap: 10px;
    color: var(--ink); text-decoration: none;
    font-weight: 600; letter-spacing: .14em;
}
.top nav { display: flex; gap: 20px; margin-right: auto; }
.top nav a { color: var(--quiet); text-decoration: none; padding: 4px 0; }
.top nav a:hover { color: var(--accent); }
.out { display: flex; align-items: center; gap: 12px; }
.who { color: var(--quiet); font-size: 14px; }

/* --- the page -------------------------------------------------------- */

main { max-width: 980px; margin: 0 auto; padding: 36px 24px 72px; }
/* The site reads as a page rather than a form, so it gets the width.
 * At 980px a desktop was about a third content and the rest margin. */
.site main { max-width: 1180px; padding: 28px 32px 72px; }
.narrow { max-width: 460px; margin: 48px auto; }

h1 { font-size: 30px; font-weight: 600; margin: 0 0 8px; }
h2 { font-size: 19px; font-weight: 600; margin: 0 0 6px; }
h2.section { margin: 40px 0 14px; color: var(--quiet);
             text-transform: uppercase; letter-spacing: .12em; font-size: 13px; }
.lead { color: var(--quiet); margin: 0 0 28px; max-width: 62ch; }
.aside { color: var(--quiet); font-size: 14px; max-width: 62ch; }
.empty { color: var(--quiet); font-style: italic; }
a { color: var(--accent); }

/* --- things that need saying ----------------------------------------- */

.note { padding: 12px 16px; border-radius: 8px; margin: 0 0 24px;
        border-left: 3px solid; }
.trouble { background: rgba(255,122,107,.1); border-color: var(--ember); }
.done    { background: rgba(118,228,172,.1); border-color: var(--mint); }

/* --- cards and tables ------------------------------------------------ */

.cards { display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.card { background: var(--panel); border: 1px solid var(--edge);
        border-radius: 10px; padding: 18px 20px; }
.meta { color: var(--quiet); font-size: 13px; margin: 0 0 12px; }
.rooms { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.rooms li { background: rgba(81,197,255,.12); color: var(--accent);
            border-radius: 999px; padding: 3px 11px; font-size: 13px; }

table { width: 100%; border-collapse: collapse; }
th { text-align: left; font-size: 12px; letter-spacing: .1em;
     text-transform: uppercase; color: var(--quiet);
     padding: 0 12px 10px 0; font-weight: 600; }
td { padding: 11px 12px 11px 0; border-top: 1px solid var(--edge); vertical-align: middle; }
.count { background: rgba(118,228,172,.12); color: var(--mint);
         border-radius: 5px; padding: 2px 7px; font-size: 13px; margin-right: 5px;
         display: inline-block; }

/* --- forms ----------------------------------------------------------- */

label { display: block; margin: 0 0 16px; color: var(--quiet); font-size: 14px; }
input, select {
    display: block; width: 100%; margin-top: 6px;
    background: var(--ground); color: var(--ink);
    border: 1px solid var(--edge); border-radius: 7px;
    padding: 10px 12px; font-size: 15px;
}
input:focus, select:focus { outline: 2px solid var(--accent); outline-offset: 1px; }

button {
    background: var(--panel); color: var(--ink);
    border: 1px solid var(--edge); border-radius: 7px;
    padding: 9px 18px; font-size: 15px; cursor: pointer;
}
button:hover { border-color: var(--accent); color: var(--accent); }
button.primary { background: var(--accent); border-color: var(--accent);
                 color: var(--ground); font-weight: 600; width: 100%; padding: 11px; }
button.primary:hover { filter: brightness(1.08); color: var(--ground); }

.inline { display: flex; gap: 8px; align-items: center; }
.inline select { width: auto; margin-top: 0; }

footer { border-top: 1px solid var(--edge); padding: 20px 28px;
         color: var(--quiet); font-size: 13px; text-align: center; }

/* --- staff ------------------------------------------------------------
 *
 * The same product, in a colour that says "this is not the customer's
 * screen". Somebody with both open should never be a glance away from
 * assigning a panel when they meant to look at their own house. */

.admin .brand svg path { fill: var(--ember); }
.tag { color: var(--ember); font-size: 11px; letter-spacing: .18em;
       border: 1px solid var(--ember); border-radius: 4px; padding: 1px 6px; }

.tiles { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
         margin: 0 0 28px; }
.tile { background: var(--panel); border: 1px solid var(--edge); border-radius: 10px;
        padding: 14px 16px; color: var(--quiet); font-size: 13px; }
.tile .figure { display: block; font-size: 28px; color: var(--ink); line-height: 1.1; }

.two { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
       margin: 0 0 20px; }
.two .card h2 { font-size: 16px; }
.two .card button { width: 100%; }

/* Something shown once and never again. Loud, because scrolling past it
 * means it is gone. */
.note.once { background: rgba(255,122,107,.08); border-color: var(--ember);
             border-left-width: 3px; }
.note.once h3 { margin: 0 0 8px; font-size: 15px; }
.note.once p { margin: 0 0 8px; }
.secret { font-family: ui-monospace, "Cascadia Mono", Menlo, Consolas, monospace;
          font-size: 19px; color: var(--mint); letter-spacing: .04em;
          background: var(--ground); border-radius: 6px; padding: 10px 14px;
          user-select: all; word-break: break-all; }

/* --- the public site --------------------------------------------------
 *
 * Same palette as the panel and the portal, because somebody who reads
 * the website and then stands in front of the thing should be looking
 * at one product. */

.site .top nav { margin-right: auto; }
.site .signin { color: var(--quiet); text-decoration: none; border: 1px solid var(--edge);
                border-radius: 7px; padding: 7px 16px; }
.site .signin:hover { color: var(--accent); border-color: var(--accent); }

.hero { padding: 48px 0 56px; max-width: 760px; }
.hero h1 { font-size: 40px; line-height: 1.18; margin: 0 0 18px; }
.hero .lead { font-size: 18px; }
.actions { display: flex; gap: 14px; align-items: center; margin: 28px 0 0; }
.cta { background: var(--accent); color: var(--ground); font-weight: 600;
       border-radius: 7px; padding: 11px 24px; text-decoration: none; display: inline-block; }
.cta:hover { filter: brightness(1.08); }
.quiet { color: var(--quiet); text-decoration: none; }
.quiet:hover { color: var(--accent); }

.three { display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
         margin: 0 0 44px; }
.three article { background: var(--panel); border: 1px solid var(--edge);
                 border-radius: 10px; padding: 22px 24px; }
.three h2 { font-size: 17px; margin-bottom: 10px; }
.three p { color: var(--quiet); margin: 0; }

.band { background: var(--panel); border: 1px solid var(--edge); border-radius: 10px;
        padding: 26px 28px; margin: 0 0 36px; }
.band h2 { font-size: 20px; }
.band p { color: var(--quiet); max-width: 70ch; }

.steps { counter-reset: step; list-style: none; padding: 0; margin: 0 0 40px; }
.steps li { counter-increment: step; position: relative; padding: 0 0 26px 54px; }
.steps li::before { content: counter(step); position: absolute; left: 0; top: 0;
                    width: 34px; height: 34px; border-radius: 50%;
                    background: rgba(81,197,255,.14); color: var(--accent);
                    display: grid; place-items: center; font-weight: 600; }
.steps h2 { font-size: 18px; margin-bottom: 6px; }
.steps p { color: var(--quiet); max-width: 68ch; margin: 0; }

.plans { display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
         margin: 0 0 36px; }
.plan { background: var(--panel); border: 1px solid var(--edge); border-radius: 10px;
        padding: 24px 26px; }
.price { font-size: 28px; color: var(--mint); margin: 4px 0 18px; }
.price span { font-size: 14px; color: var(--quiet); }
.plan ul { list-style: none; padding: 0; margin: 0 0 16px; }
.plan li { color: var(--quiet); padding: 6px 0 6px 22px; position: relative; }
.plan li::before { content: "\2022"; color: var(--mint); position: absolute; left: 4px; }

ul.plain { list-style: none; padding: 0; margin: 0 0 32px; max-width: 72ch; }
ul.plain li { color: var(--quiet); padding: 8px 0 8px 22px; position: relative;
              border-bottom: 1px solid var(--edge); }
ul.plain li::before { content: "\2022"; color: var(--accent); position: absolute; left: 4px; }

textarea { display: block; width: 100%; margin-top: 6px; background: var(--ground);
           color: var(--ink); border: 1px solid var(--edge); border-radius: 7px;
           padding: 10px 12px; font: inherit; resize: vertical; }
textarea:focus { outline: 2px solid var(--accent); outline-offset: 1px; }

/* The honeypot. Off-screen rather than display:none, because some
 * submitters skip anything that is display:none. */
.nothere { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.footlinks { display: flex; gap: 18px; justify-content: center; flex-wrap: wrap;
             margin: 0 0 10px; }
.footlinks a { color: var(--quiet); text-decoration: none; }
.footlinks a:hover { color: var(--accent); }

.enquiry { margin: 0 0 18px; }
.enquiry h2 .meta { font-weight: 400; font-size: 14px; }
.said { background: var(--ground); border-radius: 7px; padding: 12px 14px;
        color: var(--ink); margin: 0 0 16px; white-space: pre-wrap; }

/* The strongest sentence on the site, so it sits under the headline
 * rather than in the footer where it was. */
.strap { color: var(--mint); font-size: 17px; margin: 0 0 4px;
         padding: 10px 0 0; border-top: 1px solid var(--edge); display: inline-block; }

.hero { max-width: 820px; }
.hero h1 { font-size: 44px; }
.narrow-lead { max-width: 60ch; }

.why p { font-size: 17px; }
.why strong { color: var(--ink); }

/* What it can help find: a grid, because six one-line items in a
 * column is a list somebody scrolls past. */
.finds { list-style: none; padding: 0; margin: 0 0 40px;
         display: grid; gap: 10px; grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)); }
.finds li { background: var(--panel); border: 1px solid var(--edge); border-radius: 8px;
            padding: 13px 16px 13px 38px; position: relative; color: var(--ink); }
.finds li::before { content: "\2713"; color: var(--mint); position: absolute; left: 15px; }

.plan.featured { border-color: var(--accent); }
.plan.featured .price { color: var(--accent); }
.plan li strong { color: var(--ink); }
.plan .meta { margin: -10px 0 16px; }

.closer { text-align: center; padding: 20px 0 10px; }
.closer h2 { font-size: 24px; margin-bottom: 18px; }
.closer .cta { display: inline-block; }

@media (max-width: 620px) {
  .hero h1 { font-size: 31px; }
  .site main { padding: 22px 18px 56px; }
}

/* --- the operations screen --------------------------------------------
 *
 * The first version of this was four numbers and a form. True, and it
 * answered nothing: a count tells you the size of a business, not
 * where it is going wrong. What follows is built around the absences —
 * a panel never plugged in, a home that stopped backing up — because
 * those are the things that are invisible on a screen made of totals. */

.admin main { max-width: 1240px; }

.headline { display: flex; align-items: center; gap: 24px; flex-wrap: wrap; margin: 0 0 20px; }
.headline h1 { margin: 0; }
.find { display: flex; gap: 8px; margin-left: auto; }
.find input { width: 280px; margin: 0; }
.find button { white-space: nowrap; }

.fleet { display: grid; gap: 10px; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
         margin: 0 0 30px; }
.stat { background: var(--panel); border: 1px solid var(--edge); border-radius: 9px;
        padding: 12px 14px; color: var(--quiet); font-size: 12.5px; }
.stat .figure { display: block; font-size: 25px; color: var(--ink); line-height: 1.15; }
.stat.warn { border-color: var(--ember); }
.stat.warn .figure { color: var(--ember); }

/* One block per thing that needs doing, in the order it hurts. */
.alert { border: 1px solid var(--edge); border-left-width: 3px; border-radius: 9px;
         background: var(--panel); padding: 18px 20px; margin: 0 0 16px; }
.alert h3 { margin: 0 0 4px; font-size: 16px; }
.alert .meta { margin: 0 0 14px; max-width: 76ch; }
.alert table { margin-top: 4px; }
.alert td, .alert th { padding-right: 18px; }
.alert.bad { border-left-color: var(--ember); }
.alert.bad h3 { color: var(--ember); }
.alert.warn { border-left-color: #e8b54a; }
.alert.warn h3 { color: #e8b54a; }
.alert.info { border-left-color: var(--accent); }
.alert.info h3 { color: var(--accent); }

.never { color: var(--ember); }

/* --- health, and the width to show it ---------------------------------
 *
 * A dot rather than a word alone, so a table of forty homes can be
 * scanned rather than read. The word stays beside it: colour on its
 * own excludes anybody who cannot tell these two apart, and "offline"
 * is not a thing to make somebody guess at. */

.admin main { max-width: 1600px; }

.dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%;
       margin-right: 7px; vertical-align: 1px; }
.dot.good { background: var(--mint); }
.dot.warn { background: #e8b54a; }
.dot.bad  { background: var(--ember); }
.dot.waiting { background: var(--accent); }
.dot.off  { background: var(--quiet); opacity: .5; }

table.wide { width: 100%; }
table.wide td, table.wide th { padding-right: 20px; white-space: nowrap; }
tr.row-bad td:first-child { box-shadow: inset 3px 0 0 var(--ember); padding-left: 10px; }

.filters { display: flex; gap: 8px; margin: 0 0 18px; }
.filters a { color: var(--quiet); text-decoration: none; border: 1px solid var(--edge);
             border-radius: 999px; padding: 5px 15px; font-size: 14px; }
.filters a.on { color: var(--ground); background: var(--accent); border-color: var(--accent); }
.filters a:hover:not(.on) { border-color: var(--accent); color: var(--accent); }

/* The home record: the facts somebody rings up about, across the top. */
.facts { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
         margin: 0 0 32px; }
.fact { background: var(--panel); border: 1px solid var(--edge); border-radius: 9px;
        padding: 14px 16px; display: flex; flex-direction: column; gap: 3px; }
.fact .what { color: var(--quiet); font-size: 11.5px; letter-spacing: .1em;
              text-transform: uppercase; }
.fact .is { font-size: 19px; color: var(--ink); }
.fact .meta { margin: 0; font-size: 13px; }

.headline .meta { margin: 0; }

/* Tier 1, which is a separate layer rather than an unlocking of
 * things that were already there — so it gets its own colour rather
 * than looking like a state of Core. */
.autonomy { color: var(--mint); }
.stat .figure.autonomy { color: var(--mint); }
.licence { margin: 0 0 24px; }
.licence p { margin: 0 0 14px; }
.licence .meta { margin: 0; }
.licence form { flex-wrap: wrap; }

/* A minimum term is a commitment, so it is stated where somebody
 * reading the price will see it rather than in small print at the
 * bottom. Required by the advertising rules, and the right thing
 * regardless. */
.term { background: rgba(232,181,74,.12); border-left: 3px solid #e8b54a;
        border-radius: 6px; padding: 11px 14px; margin: 16px 0 0;
        color: var(--ink); font-size: 14px; }
.example { background: var(--ground); border-radius: 7px; padding: 12px 14px;
           color: var(--quiet); font-size: 14px; line-height: 1.6; margin: 10px 0 0; }
.band .two h3 { font-size: 16px; margin: 0; }
.band .two > div { background: var(--ground); border: 1px solid var(--edge);
                   border-radius: 9px; padding: 16px 18px; }

/* An alert nobody can act on is a notification. The heading goes to
 * the list that answers it; the rows go to the record. */
.alert h3 a { color: inherit; text-decoration: none; border-bottom: 1px dotted currentColor; }
.alert h3 a:hover { border-bottom-style: solid; }
tr.gone td { opacity: .55; }
tr.gone td:first-child { box-shadow: inset 3px 0 0 var(--quiet); padding-left: 10px; }
.facts .fact .is a { color: var(--accent); text-decoration: none; }
.facts .fact .is a:hover { text-decoration: underline; }
table.wide a { color: var(--accent); text-decoration: none; }
table.wide a:hover { text-decoration: underline; }

/* Buying. The choice is a radio rather than two buttons, because
 * adding Autonomy is a decision about a twelve month commitment and
 * should be made on a page that says so, not by which button somebody
 * happened to click. */
.choose { border: 1px solid var(--edge); border-radius: 9px; padding: 16px 18px;
          margin: 0 0 22px; }
.choose legend { color: var(--quiet); font-size: 12px; letter-spacing: .1em;
                 text-transform: uppercase; padding: 0 8px; }
.pick { display: flex; gap: 12px; align-items: flex-start; margin: 0 0 14px;
        color: var(--ink); cursor: pointer; }
.pick:last-child { margin-bottom: 0; }
.pick input { width: auto; margin: 3px 0 0; flex: none; }
.pick .meta { margin: 0; }
.buy { margin: 18px 0 0; }
.plan .buy .cta { display: block; text-align: center; }
.band .steps { margin-bottom: 0; }
.band .steps h3 { font-size: 15px; margin: 0 0 4px; }

.wider { max-width: 620px; }
.optional { color: var(--quiet); font-weight: 400; text-transform: none; letter-spacing: 0; }
.rates { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); }
.rates label { margin-bottom: 0; }
.rates .meta { display: block; font-size: 12px; margin: 0; }
select { display: block; width: 100%; margin-top: 6px; background: var(--ground);
         color: var(--ink); border: 1px solid var(--edge); border-radius: 7px;
         padding: 10px 12px; font: inherit; }

/* Two fuels, side by side.
   Stacked they were one long column with gas below the fold, which
   read as an afterthought - and a home that burns gas for its heating
   is the ordinary case, not the footnote. Side by side they are
   plainly the same question asked twice. */
.fuels { display: grid; gap: 0 36px; grid-template-columns: 1fr 1fr;
         align-items: start; margin-bottom: 24px; }
.fuel + .fuel { padding-left: 36px; border-left: 1px solid var(--edge); }
.fuel h3 { font-size: 15px; letter-spacing: .1em; text-transform: uppercase;
           color: var(--accent); margin: 6px 0 16px; }
.fuel .aside { margin: 16px 0; }

/* One column is wider than two cramped ones: below this the labels
   start wrapping mid-phrase and the rates grid collapses anyway. */
@media (max-width: 820px) {
  .fuels { grid-template-columns: 1fr; gap: 0; }
  .fuel + .fuel { padding-left: 0; border-left: 0;
                  padding-top: 24px; border-top: 1px solid var(--edge); }
}

/* The cheap-rate window: two times that belong together. */
.rates.window { margin-top: 12px; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); }
input[type="time"] { color-scheme: dark; }

/* The account reference: findable without being shouted. */
.reference { background: var(--panel); border: 1px solid var(--edge);
             border-radius: 9px; padding: 12px 16px; margin: 0 0 28px; max-width: 72ch; }
.reference strong { letter-spacing: .08em; font-family: ui-monospace, Menlo, Consolas, monospace; }
.reference .meta { display: block; margin-top: 4px; }

/* What a home has learned. */
.learning { margin: 0 0 18px; }
.learning .meta { display: block; margin-top: 4px; }
.health { display: grid; gap: 10px; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); margin: 0 0 24px; }
.domain { background: var(--ground); border: 1px solid var(--edge); border-left-width: 4px;
          border-radius: 8px; padding: 10px 12px; display: grid; gap: 2px; }
.domain .what { font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--quiet); }
.domain .state { font-weight: 600; }
.domain .detail { font-size: 13px; color: var(--quiet); }
.domain.good { border-left-color: var(--mint, #4fd1a5); }
.domain.attention { border-left-color: var(--ember, #e8a33d); }
.domain.poor { border-left-color: #e05d5d; }
.domain.unknown { border-left-color: var(--edge); }
.pill { display: inline-block; font-size: 12px; padding: 2px 8px; border-radius: 999px;
        border: 1px solid var(--edge); margin-right: 6px; }
.pill.good { border-color: var(--mint, #4fd1a5); color: var(--mint, #4fd1a5); }
.pill.attention { border-color: var(--ember, #e8a33d); color: var(--ember, #e8a33d); }
.pill.poor { border-color: #e05d5d; color: #e05d5d; }
.suggestion { border-top: 1px solid var(--edge); padding: 14px 0; }
.suggestion p { margin: 0 0 6px; }
.answer { display: flex; gap: 8px; margin-top: 8px; }
button.small { padding: 6px 12px; font-size: 13px; }


/* --- the front page, with some life in it -------------------------------
 *
 * Still the panel's own colours, still no images: the thing that gives
 * it life is a drawing of the panel saying something true, and a line
 * of the sentences it writes. Both are built from the same CSS as the
 * rest, so they cannot drift from the product they advertise. */

.site body, body.site { background:
    radial-gradient(900px 500px at 15% -10%, rgba(81,197,255,.16), transparent 60%),
    radial-gradient(700px 400px at 95% 10%, rgba(118,228,172,.10), transparent 60%),
    var(--ground); }

.eyebrow { font-size: 12px; letter-spacing: .16em; text-transform: uppercase;
           color: var(--mint); margin: 0 0 10px; font-weight: 600; }

.hero-live { display: grid; grid-template-columns: 1.15fr 1fr; gap: 48px; align-items: center;
             max-width: none; padding: 40px 0 44px; }
.hero-live h1 { font-size: 46px; letter-spacing: -.01em; }
.hero-live .lead { max-width: 56ch; }
.pricenote { color: var(--quiet); font-size: 14px; margin: 12px 0 0; }

/* The drawn panel. The same colours as fb.rs, which is the point. */
.panel-mock { background: linear-gradient(180deg, #0f2a42, #0a1c2e);
              border: 1px solid var(--edge); border-radius: 14px; padding: 16px 18px 14px;
              box-shadow: 0 30px 80px rgba(0,0,0,.45), 0 0 0 1px rgba(81,197,255,.08) inset;
              font-family: ui-monospace, "Cascadia Mono", Menlo, Consolas, monospace;
              font-size: 13px; transform: rotate(-1.2deg); animation: settle 1.1s ease-out both; }
@keyframes settle { from { opacity: 0; transform: translateY(14px) rotate(-1.2deg); }
                    to   { opacity: 1; transform: translateY(0) rotate(-1.2deg); } }
.pm-top { display: flex; justify-content: space-between; align-items: center;
          padding-bottom: 10px; margin-bottom: 12px; border-bottom: 1px solid var(--edge);
          color: var(--quiet); letter-spacing: .12em; }
.pm-brand { display: flex; align-items: center; gap: 8px; color: var(--ink); font-weight: 600; }
.pm-house { width: 12px; height: 12px; background: var(--mint);
            clip-path: polygon(50% 0, 100% 45%, 85% 45%, 85% 100%, 15% 100%, 15% 45%, 0 45%); }
.pm-card { border: 1px solid var(--edge); border-radius: 9px; padding: 12px 14px; margin: 0 0 12px;
           display: grid; gap: 5px; background: rgba(17,42,64,.7); }
.pm-card.pm-accent { border-color: var(--accent); box-shadow: 0 0 0 1px rgba(81,197,255,.25) inset; }
.pm-card strong { color: var(--ink); font-size: 14px; line-height: 1.4; }
.pm-card span { color: var(--quiet); }
.pm-card em { color: var(--accent); font-style: normal; font-size: 12px; margin-top: 4px; }
.pm-rows { display: grid; gap: 6px; }
.pm-row { display: flex; justify-content: space-between; padding: 7px 10px;
          background: rgba(8,21,35,.6); border-radius: 6px; color: var(--quiet); }
.pm-row b { color: var(--ink); font-weight: 600; }
.pm-row b i { color: var(--quiet); font-style: normal; font-size: 11px; }
.pm-mint { color: var(--mint) !important; }
.pm-foot { margin-top: 12px; padding-top: 10px; border-top: 1px solid var(--edge);
           color: var(--mint); font-size: 12px; }

/* A line of sentences. Pure CSS, and still when somebody asks for still. */
.ticker-wrap { margin: 0 0 44px; }
.ticker-cap { color: var(--quiet); font-size: 13px; margin: 0 0 8px; }
.ticker { overflow: hidden; border-top: 1px solid var(--edge); border-bottom: 1px solid var(--edge);
          padding: 12px 0; mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
          -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.ticker-track { display: flex; gap: 44px; width: max-content; animation: drift 70s linear infinite; }
.ticker-track span { white-space: nowrap; color: var(--ink); font-size: 15px; }
.ticker-track span::before { content: "\2022"; color: var(--accent); margin-right: 12px; }
@keyframes drift { to { transform: translateX(-50%); } }
.ticker:hover .ticker-track { animation-play-state: paused; }
@media (prefers-reduced-motion: reduce) {
  .ticker-track { animation: none; flex-wrap: wrap; width: auto; gap: 10px 32px; }
  .panel-mock { animation: none; }
}

/* Cards that respond. */
.three.lively article { transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease;
                        position: relative; }
.three.lively article:hover { transform: translateY(-3px); border-color: var(--accent);
                              box-shadow: 0 18px 40px rgba(0,0,0,.35); }
.three .icon { width: 28px; height: 28px; color: var(--accent); margin: 0 0 12px; display: block; }
.band { transition: border-color .18s ease; }
.band:hover { border-color: rgba(81,197,255,.45); }

/* Four true numbers. Not statistics - facts about the product. */
.facts-strip { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
               margin: 0 0 44px; }
.fact-tile { background: var(--panel); border: 1px solid var(--edge); border-radius: 10px;
             padding: 18px 20px; display: grid; gap: 4px; }
.fact-tile b { font-size: 34px; color: var(--mint); font-weight: 600; line-height: 1; }
.fact-tile span { color: var(--quiet); font-size: 14px; }

.site .top nav a { position: relative; }
.site .top nav a::after { content: ""; position: absolute; left: 0; right: 100%; bottom: -2px;
                          height: 2px; background: var(--accent); transition: right .18s ease; }
.site .top nav a:hover::after { right: 0; }

@media (max-width: 900px) {
  .hero-live { grid-template-columns: 1fr; gap: 28px; }
  .hero-live h1 { font-size: 36px; }
  .panel-mock { transform: none; }
}


/* --- how it works, as stages rather than a list ---------------------------
 *
 * Each stage is copy beside a drawn panel showing what the wall looks
 * like at that point. The panel is the same one the front page draws,
 * so the two pages cannot disagree about what the product looks like. */

.how-hero { padding: 36px 0 28px; max-width: 760px; }
.how-hero h1 { font-size: 42px; }

.phase { position: relative; display: grid; grid-template-columns: 1.15fr 1fr; gap: 44px;
         align-items: center; padding: 30px 0 34px; border-top: 1px solid var(--edge); }
/* Alternation by a class, not by nth-of-type: the hero above is a
   section too, and counting it flipped the first stage. */
.phase.flip .phase-copy { order: 2; }
.phase.flip .phase-visual { order: 1; }
/* A large, faint stage number behind the copy. It is what makes four
   bands read as a sequence rather than four islands. */
.phase::before { content: attr(data-stage); position: absolute; top: 8px; left: -6px;
                 font-size: 150px; line-height: 1; font-weight: 700; color: var(--accent);
                 opacity: .07; pointer-events: none; }
.phase.flip::before { left: auto; right: -6px; }
.phase h2 { font-size: 26px; margin: 0 0 12px; }
.phase h3 { font-size: 17px; margin: 22px 0 6px; color: var(--ink); }
.phase p { color: var(--quiet); max-width: 58ch; margin: 0 0 12px; }
.phase .eyebrow { margin-bottom: 8px; }

/* The drawn panels sit still on this page: four of them drifting in
   at once would be a fairground, and the one on the front page has
   already made the point. */
.panel-mock.still { transform: none; animation: none;
                    box-shadow: 0 20px 50px rgba(0,0,0,.35), 0 0 0 1px rgba(81,197,255,.06) inset; }
.panel-mock.still .pm-card em.pm-mint { color: var(--mint); }

@media (max-width: 900px) {
  .phase { grid-template-columns: 1fr; gap: 24px; padding: 28px 0; }
  .phase.flip .phase-copy { order: 1; }
  .phase.flip .phase-visual { order: 2; }
  .phase::before { font-size: 96px; }
  .how-hero h1 { font-size: 32px; }
}

/* What works with it: three things side by side, using the width. */
.works-grid { display: grid; gap: 28px; grid-template-columns: repeat(3, 1fr); margin: 6px 0 18px; }
.works-grid h3 { font-size: 16px; margin: 0 0 8px; color: var(--ink); }
.works-grid p { margin: 0; max-width: none; }
.band.works .aside { max-width: none; }
@media (max-width: 820px) { .works-grid { grid-template-columns: 1fr; gap: 18px; } }

/* A bill, read: each figure beside the line of the bill it came from,
   so the person checks a sentence of their own bill rather than a box
   somebody filled in. */
.evidence { display: block; color: var(--quiet); font-size: 13px; margin: 4px 0 0; max-width: 62ch; }
.evidence.missing { color: var(--ember); }
form.bill { margin: 0 0 28px; padding: 0 0 20px; border-bottom: 1px solid rgba(255,255,255,.08); }
form.bill input[type=file] { display: block; margin: 6px 0 12px; }
a.button { display: inline-block; margin-left: 12px; color: var(--quiet); text-decoration: none; }
a.button:hover { text-decoration: underline; }

/* The bill, where a customer will look for it: the first thing on the
   Overview until it has been done, and a quieter line after. */
.callout { background: var(--panel); border: 1px solid var(--accent);
           border-radius: 10px; padding: 20px 24px; margin: 0 0 28px; }
.callout.done { border-color: var(--edge); }
.callout h2 { margin: 0 0 8px; font-size: 18px; }
.callout p { margin: 0 0 16px; color: var(--quiet); max-width: 62ch; }
a.cta { display: inline-block; padding: 11px 22px; border-radius: 7px;
        background: var(--accent); color: var(--ground); font-weight: 600;
        text-decoration: none; }
a.cta:hover { filter: brightness(1.08); }
a.cta.quiet { background: var(--panel); color: var(--ink); border: 1px solid var(--edge);
              font-weight: 400; padding: 9px 18px; }
a.cta.quiet:hover { border-color: var(--accent); color: var(--accent); filter: none; }

/* When to look for a better deal. The reasons are on the page and not
   behind anything: advice nobody can check is not advice. */
.advisor { margin: 0 0 28px; padding: 0 0 20px; border-bottom: 1px solid rgba(255,255,255,.08); }
.advice { border-left: 3px solid var(--edge); padding: 4px 0 4px 14px; margin: 0 0 18px; }
.advice.look { border-left-color: var(--ember); }
.advice.watching { border-left-color: var(--accent); }
.advice h4 { margin: 0 0 4px; font-size: 14px; color: var(--quiet); font-weight: 600; text-transform: uppercase; letter-spacing: .06em; }
.advice p { margin: 0 0 8px; max-width: 62ch; }
.advice .because { margin: 0 0 8px; padding-left: 18px; color: var(--quiet); font-size: 14px; max-width: 62ch; }
.callout p.look { color: var(--ink); border-left: 3px solid var(--ember); padding-left: 12px; margin: 0 0 14px; }
.callout p.look a { margin-left: 6px; }
.advice.quiet { border-left-color: var(--edge); }
