/* melierax.online, from the implicatio.online stylesheet. One stylesheet for the public site (the wiki keeps its own). */
@font-face { font-family: "Inter Display"; font-weight: 800; font-display: swap; src: url(fonts/InterDisplay-ExtraBold.otf) format("opentype"); }
@font-face { font-family: "Inter"; font-weight: 400; font-display: swap; src: url(fonts/Inter-Regular.otf) format("opentype"); }
@font-face { font-family: "Inter"; font-weight: 500; font-display: swap; src: url(fonts/Inter-Medium.otf) format("opentype"); }
@font-face { font-family: "Inter"; font-weight: 600; font-display: swap; src: url(fonts/Inter-SemiBold.otf) format("opentype"); }
:root {
  --night: #0a0e12;      /* the ground everything sits on */
  --deep: #10161c;       /* a panel lifted off it */
  --line: #1e2831;       /* streets, rules */
  --bone: #e8e3d8;       /* what is read */
  --ash: #8b97a0;        /* what is read second */
  --signal: #ef6a4e;     /* the brand's ochre, lit: what's live */
  --alarm: #ef6a4e;      /* what is live */
  --display: "Inter Display", "Inter", system-ui, sans-serif;
  --body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --gutter: clamp(20px, 5vw, 72px);
}
* { box-sizing: border-box; }
html { background: var(--night); color-scheme: dark; scroll-behavior: smooth; }
body { margin: 0; background: var(--night); color: var(--bone); font: 400 1.0625rem/1.55 var(--body); -webkit-font-smoothing: antialiased; }
a { color: inherit; }
img, svg { max-width: 100%; }
:focus-visible { outline: 2px solid var(--signal); outline-offset: 3px; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 12px; top: 12px; background: var(--bone); color: var(--night); padding: 8px 12px; z-index: 20; }
.wrap { max-width: 1320px; margin: 0 auto; padding: 0 var(--gutter); }

/* header */
.site-head { position: sticky; top: 0; z-index: 30; background: rgba(10,14,18,.94); border-bottom: 1px solid var(--line); }
[id] { scroll-margin-top: 90px; }
.site-head .wrap { display: flex; align-items: center; gap: 28px; padding-top: 14px; padding-bottom: 14px; }
.brand svg { flex: none; }
.brand { display: flex; align-items: center; gap: 12px; font: 800 1.3rem/1 var(--display); text-decoration: none; margin-right: auto; }
.site-nav { display: flex; align-items: center; gap: 26px; flex-wrap: wrap; justify-content: flex-end; }
.site-nav a { text-decoration: none; color: var(--ash); font-weight: 500; font-size: .98rem; }
.site-nav a:hover, .site-nav a[aria-current] { color: var(--bone); }
.site-nav .quiet-link { padding-left: 26px; border-left: 1px solid var(--line); }
.button { display: inline-block; font: 600 1rem/1 var(--body); text-decoration: none; padding: 14px 22px; border-radius: 2px; background: var(--signal); color: #14100a !important; border: 1px solid var(--signal); }
.button:hover { background: #f58469; }
.button.ghost { background: transparent; color: var(--bone) !important; border-color: #3a4853; }
.button.ghost:hover { border-color: var(--bone); background: transparent; }
.button.small { padding: 10px 16px; font-size: .95rem; }

/* hero: the map at night */
.hero { position: relative; min-height: min(100svh, 940px); display: flex; align-items: flex-end; overflow: hidden; border-bottom: 1px solid var(--line); }
.hero .map { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(10,14,18,.94) 0%, rgba(10,14,18,.72) 34%, rgba(10,14,18,0) 66%), linear-gradient(0deg, rgba(10,14,18,.9) 0%, rgba(10,14,18,0) 38%); pointer-events: none; }
.hero .wrap { position: relative; z-index: 2; width: 100%; padding-top: 150px; padding-bottom: clamp(48px, 9vh, 96px); }
h1, h2, h3 { font-family: var(--display); font-weight: 800; line-height: .96; margin: 0; letter-spacing: -.035em; }
.brand, .plan .fee, .est-name, .est-total .total, .clock time, .avail td.num { letter-spacing: -.035em; }
h1 { font-size: clamp(3.1rem, 8.2vw, 8rem); max-width: 9ch; text-wrap: balance; }
.hero p { max-width: 34rem; font-size: clamp(1.05rem, 1.5vw, 1.25rem); color: #c7c6bf; margin: 26px 0 34px; }
.actions { display: flex; gap: 14px; flex-wrap: wrap; }

/* map furniture */
.map .street { stroke: #17212a; fill: none; stroke-linecap: round; }
.map .street.minor { stroke: #121a21; }
.map .block { fill: #0d1318; }
.map text { font-family: var(--body); font-weight: 600; font-size: 15px; fill: #c9cdc9; }
.map .unit circle { fill: #7fb0d8; stroke: #0a0e12; stroke-width: 3; }
.map .unit path { fill: #7fb0d8; }
.map .lit circle, .map .lit path { fill: var(--signal); }
.map .lit text { fill: var(--signal); }
.map .way { stroke: var(--signal); stroke-width: 2.5; fill: none; stroke-dasharray: 2 9; stroke-linecap: round; opacity: .85; }
.map .fence { stroke: #7fb0d8; stroke-width: 1.5; fill: rgba(127,176,216,.045); stroke-dasharray: 8 7; }
.map .cone { fill: url(#cone); }
.map .alarm-core { fill: var(--alarm); }
.map .ring { fill: none; stroke: var(--alarm); stroke-width: 2; transform-origin: 1105px 420px; animation: ring 3.2s cubic-bezier(.2,.6,.3,1) infinite; }
.map .ring.b { animation-delay: 1.6s; }
.map .alarm-label { fill: #ff8d78; font-size: 16px; }
@keyframes ring { from { transform: scale(.25); opacity: .95; } to { transform: scale(1); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .map .ring { animation: none; opacity: .5; } html { scroll-behavior: auto; } }

/* sections */
section { padding: clamp(72px, 11vw, 150px) 0; border-bottom: 1px solid var(--line); }
h2 { font-size: clamp(2.3rem, 4.8vw, 4.2rem); max-width: 15ch; text-wrap: balance; }
.lede { color: var(--ash); max-width: 38rem; font-size: 1.15rem; margin: 22px 0 0; }

/* four things the picture holds */
.four { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; margin-top: clamp(40px, 6vw, 80px); border-top: 1px solid var(--line); }
.four > div { padding: 28px 28px 8px 0; border-right: 1px solid var(--line); }
.four > div + div { padding-left: 28px; }
.four > div:last-child { border-right: 0; }
.four h3 { font-size: 1.6rem; margin-bottom: 12px; }
.four p { color: var(--ash); margin: 0; font-size: 1rem; }

/* a response, minute by minute (it is a sequence, so it carries its times) */
.clock { list-style: none; margin: clamp(40px, 6vw, 72px) 0 0; padding: 0; }
.clock li { display: grid; grid-template-columns: 9.5rem 1fr; gap: 24px; align-items: baseline; padding: 20px 0; border-top: 1px solid var(--line); }
.clock time { font: 800 1.9rem/1 var(--display); color: var(--signal); font-variant-numeric: tabular-nums; }
.clock li:first-child time { color: #ff8d78; }
.clock h3 { font: 600 1.25rem/1.3 var(--body); }
.clock p { margin: 4px 0 0; color: var(--ash); }

/* capabilities: a name, and at most four things about it */
.cap { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(24px, 5vw, 80px); padding: clamp(34px, 5vw, 60px) 0; border-top: 1px solid var(--line); }
.cap:first-of-type { margin-top: clamp(40px, 6vw, 72px); }
.cap h3 { font-size: clamp(1.9rem, 3.4vw, 3rem); }
.cap .with { color: var(--ash); margin: 14px 0 0; max-width: 24rem; }
.cap ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 22px 40px; align-content: start; }
.cap li { padding-left: 18px; position: relative; color: #cfcdc5; }
.cap li::before { content: ""; position: absolute; left: 0; top: .62em; width: 7px; height: 7px; background: var(--signal); border-radius: 50%; }
.cap li strong { display: block; color: var(--bone); font-weight: 600; }

/* pricing */
.plans { display: grid; grid-template-columns: repeat(3, 1fr); margin-top: clamp(40px, 6vw, 72px); border: 1px solid var(--line); }
.plan { padding: 34px 30px 30px; border-right: 1px solid var(--line); display: flex; flex-direction: column; }
.plan:last-child { border-right: 0; }
.plan h3 { font-size: 1.7rem; }
.plan .for { color: var(--ash); margin: 8px 0 26px; min-height: 3.1em; }
.plan .fee { font: 800 3.4rem/.9 var(--display); }
.plan .fee small { font: 500 1rem/1.3 var(--body); color: var(--ash); display: block; margin-top: 10px; }
.plan .device { color: var(--signal); font-weight: 600; margin: 14px 0 26px; }
.plan dl { margin: 0 0 28px; display: grid; grid-template-columns: 1fr; gap: 0; }
.plan dt { color: var(--ash); font-size: .9rem; padding-top: 12px; border-top: 1px solid var(--line); }
.plan dd { margin: 2px 0 12px; }
.plan .no { color: #59646d; }
.plan .button { margin-top: auto; text-align: center; }
.terms { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 56px; margin: 40px 0 0; padding: 0; list-style: none; color: #cfcdc5; }
.terms li { padding-left: 18px; position: relative; }
.terms li::before { content: ""; position: absolute; left: 0; top: .62em; width: 7px; height: 7px; background: var(--signal); border-radius: 50%; }
.avail { margin-top: 56px; display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(24px, 5vw, 80px); }
.avail h3 { font-size: 1.7rem; }
.avail p { color: var(--ash); margin: 12px 0 0; }
.avail table { width: 100%; border-collapse: collapse; }
.avail th, .avail td { text-align: left; padding: 14px 0; border-top: 1px solid var(--line); font-weight: 400; }
.avail thead th { color: var(--ash); font-size: .9rem; border-top: 0; }
.avail td.num { font: 800 1.5rem/1 var(--display); }

/* the estimate */
.estimate { margin-top: clamp(56px, 8vw, 110px); }
.estimate-head h3 { font-size: clamp(1.9rem, 3.4vw, 3rem); }
.estimate-head p { color: var(--ash); margin: 12px 0 0; }
.estimate-grid { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: clamp(28px, 5vw, 72px); margin-top: 40px; align-items: start; }
.field { margin-bottom: 26px; display: block; }
.field label, .field .label { display: block; font-weight: 600; margin-bottom: 8px; }
.optional { color: var(--ash); font-weight: 400; }
.hint { display: block; color: var(--ash); font-size: .92rem; margin-top: 6px; }
input[type=number] { width: 100%; background: var(--deep); border: 1px solid #2c3944; color: var(--bone); font: 500 1.1rem var(--body); padding: 13px 14px; border-radius: 2px; }
input[type=number]:focus { border-color: var(--signal); outline: none; }
.choices { display: flex; flex-wrap: wrap; gap: 10px; }
.choice { position: relative; margin: 0 !important; }
.choice input { position: absolute; opacity: 0; inset: 0; }
.choice span { display: block; padding: 11px 16px; border: 1px solid #2c3944; border-radius: 2px; color: var(--ash); font-weight: 500; cursor: pointer; }
.choice input:checked + span { border-color: var(--signal); color: var(--bone); background: rgba(224,161,38,.1); }
.choice input:focus-visible + span { outline: 2px solid var(--signal); outline-offset: 3px; }
.check { display: flex !important; gap: 12px; align-items: flex-start; font-weight: 400 !important; margin: 10px 0 0 !important; color: #cfcdc5; cursor: pointer; }
.check input { accent-color: var(--signal); width: 18px; height: 18px; margin-top: 3px; flex: none; }
.row { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.estimate-result { background: var(--deep); border: 1px solid var(--line); border-top: 3px solid var(--signal); padding: 30px; position: sticky; top: 24px; }
.est-for { color: var(--ash); margin: 0; }
.est-name { font: 800 2.6rem/.95 var(--display); margin: 2px 0 0; }
.est-why { color: #cfcdc5; margin: 14px 0 20px; }
.est-lines { display: grid; grid-template-columns: 1fr auto; gap: 10px 20px; margin: 0; padding: 18px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.est-lines dt { color: #cfcdc5; }
.est-lines dd { margin: 0; text-align: right; font-variant-numeric: tabular-nums; font-weight: 600; }
.est-total { margin: 20px 0; }
.est-total .total { font: 800 3.2rem/.9 var(--display); color: var(--signal); display: block; }
.est-total .quiet { color: var(--ash); }
.est-compare { list-style: none; margin: 0 0 22px; padding: 0; font-size: .95rem; }
.est-compare li { display: flex; gap: 12px; justify-content: space-between; padding: 8px 0; border-top: 1px solid var(--line); color: var(--ash); }
.est-compare li.picked { color: var(--bone); }
.est-compare strong { font-weight: 600; }
.est-note { color: var(--ash); font-size: .9rem; margin: 18px 0 0; }
.note { color: var(--ash); margin-top: 36px; }

/* close */
.close { text-align: left; }
.close h2 { max-width: 12ch; }
.close .actions { margin-top: 36px; }
.site-foot { padding: 34px 0 44px; color: var(--ash); font-size: .95rem; }
.site-foot .wrap { display: flex; flex-wrap: wrap; gap: 14px 28px; align-items: center; }
.site-foot a { text-decoration: none; }
.site-foot a:hover { color: var(--bone); }
.site-foot .grow { margin-right: auto; }

/* a page that isn't the front one */
.page-head { padding: clamp(60px, 9vw, 120px) 0 0; border-bottom: 0; }
.page-head h1 { font-size: clamp(2.8rem, 6.4vw, 6rem); max-width: 12ch; }

@media (max-width: 900px) {
  .site-nav { gap: 16px; }
  .site-nav .hide-small { display: none; }
  .site-nav .quiet-link { padding-left: 0; border-left: 0; }
  .four { grid-template-columns: 1fr 1fr; }
  .four > div { padding: 24px 20px 24px 0; border-bottom: 1px solid var(--line); }
  .four > div:nth-child(2n) { border-right: 0; padding-left: 20px; }
  .four > div:nth-child(2n+1) { padding-left: 0; }
  .cap, .avail, .estimate-grid { grid-template-columns: 1fr; }
  .cap ul, .terms, .row { grid-template-columns: 1fr; }
  .plans { grid-template-columns: 1fr; }
  .plan { border-right: 0; border-bottom: 1px solid var(--line); }
  .plan:last-child { border-bottom: 0; }
  .plan .for { min-height: 0; }
  .clock li { grid-template-columns: 6.5rem 1fr; gap: 14px; }
  .clock time { font-size: 1.5rem; }
  .hero .map { inset: 0 auto auto 60%; width: auto; height: 74%; aspect-ratio: 16 / 9; max-width: none; transform: translateX(-69%); }
  .estimate-result { position: static; }
  .hero::after { background: linear-gradient(0deg, rgba(10,14,18,1) 0%, rgba(10,14,18,.92) 40%, rgba(10,14,18,0) 62%); }
  .site-nav { flex-wrap: nowrap; }
}
.plan .fee small { letter-spacing: 0; }
.plan .fee.ask { font-size: 2.3rem; line-height: 1.33; }
.plan .for { min-height: 4.7em; }
.plan .fee { margin: 0 0 1.4rem; } .plan .for { margin-bottom: 2.6rem; } .plan .fee.ask { height: 3.06rem; line-height: 3.06rem; margin-bottom: calc(1.4rem + 10px + 1.3rem); } .plan .fee.ask small { display: none; }

/* the plain pages: join, sign in, thanks */
.page-head.plain { padding-bottom: clamp(72px, 11vw, 150px); border-bottom: 1px solid var(--line); min-height: 62vh; }
.narrow { max-width: 880px; margin-left: 0; margin-right: auto; padding-left: max(var(--gutter), calc((100vw - 1320px) / 2 + var(--gutter))); }
.narrow .actions, .narrow form { margin-top: 40px; }
.quiet { color: var(--ash); }
.lede a, .quiet a, .hint a, .signin-more a, .send-failed a, .note a { color: var(--signal); text-underline-offset: 3px; }
.join { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 6vw, 96px); align-items: start; }
.join aside { position: sticky; top: 32px; }
.next { margin: 36px 0; padding: 0; list-style: none; counter-reset: next; }
.next li { counter-increment: next; display: grid; grid-template-columns: 2.4rem 1fr; padding: 16px 0; border-top: 1px solid var(--line); color: #cfcdc5; }
.next li::before { content: counter(next); font: 800 1.3rem/1.2 var(--display); color: var(--signal); }
fieldset { border: 0; margin: 0 0 36px; padding: 0; min-width: 0; }
legend { font: 800 1.6rem/1 var(--display); letter-spacing: -.035em; padding: 0; margin-bottom: 24px; }
input[type=text], input[type=email], input[type=tel], select, textarea { width: 100%; background: var(--deep); border: 1px solid #2c3944; color: var(--bone); font: 500 1.05rem var(--body); padding: 13px 14px; border-radius: 2px; }
input::placeholder, textarea::placeholder { color: #5d6871; }
textarea { min-height: 130px; resize: vertical; }
input:focus, select:focus, textarea:focus { border-color: var(--signal); outline: none; }
button.button { cursor: pointer; }
.consent { display: flex; gap: 12px; align-items: flex-start; color: #cfcdc5; font-size: .98rem; margin-bottom: 28px; cursor: pointer; }
.consent input { accent-color: var(--signal); width: 20px; height: 20px; margin-top: 2px; flex: none; }
.send-failed { display: none; margin: 0 0 28px; padding: 14px 16px; border-left: 3px solid var(--alarm); background: rgba(214,64,43,.12); }
.send-failed:target { display: block; }
.hp, .hp[hidden] { display: none; }
.tak-form .label { display: block; font-weight: 600; margin-bottom: 8px; }
.tak-row { display: flex; gap: 12px; flex-wrap: wrap; }
.tak-addr { display: flex; align-items: center; flex: 1 1 320px; background: var(--deep); border: 1px solid #2c3944; border-radius: 2px; }
.tak-addr:focus-within { border-color: var(--signal); }
.tak-addr input { border: 0; background: transparent; min-width: 0; }
.tak-addr .suffix { color: var(--ash); padding-right: 14px; white-space: nowrap; }
.error { color: #ff8d78; margin: 10px 0 0; }
.signin-more { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; margin-top: 56px; padding-top: 28px; border-top: 1px solid var(--line); color: var(--ash); }
.signin-more strong { display: block; color: var(--bone); font-weight: 600; margin-bottom: 4px; }
@media (max-width: 900px) { .join, .signin-more { grid-template-columns: 1fr; } .join aside { position: static; } .narrow { padding-left: var(--gutter); } }

/* Melierax */
.button { color: #1a0905 !important; }
.button.ghost { color: var(--bone) !important; }
.map .dock { fill: var(--night); stroke: var(--signal); stroke-width: 3; }
.map .path { fill: none; stroke: var(--signal); stroke-width: 3; stroke-dasharray: 2 12; stroke-linecap: round; }
.map .area { fill: #ef6a4e22; stroke: var(--signal); stroke-width: 2; stroke-dasharray: 10 8; }
.plans.four { grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); }
