/* What every craggy.io site shares, linked before each site's own stylesheet: the design tokens, the page backdrop
   (a faint grid with a low amber and teal glow, fixed behind the page), the header bar with its Products and Services
   menus (scripts/shared_site.py site_header()), the footer (site_footer()), the status chips and the glyphs.
   A site's stylesheet may override a token for itself, never the header bar or footer. */
:root{
 --ground:#0b1216;--surface:#111a20;--raised:#16222a;--line:#22303a;--line-strong:#33444c;
 --text:#e4ece7;--soft:#b7c2bc;--muted:#a7b4b0;--amber:#ffb547;--amber-hot:#ffd084;--teal:#5ed6c5;--on-amber:#111a20;
 --sans:Inter,system-ui,-apple-system,'Segoe UI',sans-serif;--display:'Inter Tight',Inter,system-ui,sans-serif;
 --mono:'JetBrains Mono',ui-monospace,monospace;--radius:16px;--gutter:5.5%}
html{background:var(--ground)}
body{background:transparent;position:relative;isolation:isolate;overflow-x:clip;font-family:var(--sans);-webkit-font-smoothing:antialiased}
body:before{content:'';position:fixed;inset:0;z-index:-1;pointer-events:none;background:
 radial-gradient(ellipse 50% 60% at 0% 10%,rgba(94,214,197,.10),transparent 70%),
 radial-gradient(ellipse 50% 60% at 100% 95%,rgba(255,181,71,.08),transparent 70%),
 linear-gradient(rgba(228,236,231,.03) 1px,transparent 1px) 0 0/44px 44px,
 linear-gradient(90deg,rgba(228,236,231,.03) 1px,transparent 1px) 0 0/44px 44px,
 var(--ground)}
/* mesh-wave.js draws a rolling sheet of dots on this canvas, so the flat lines step aside. */
html.mesh-wave body:before{background:
 radial-gradient(ellipse 50% 60% at 0% 10%,rgba(94,214,197,.10),transparent 70%),
 radial-gradient(ellipse 50% 60% at 100% 95%,rgba(255,181,71,.08),transparent 70%),
 var(--ground)}
.mesh-wave-canvas{position:fixed;inset:0;z-index:-1;width:100%;height:100%;pointer-events:none}
code,kbd,samp,pre{font-family:var(--mono)}
h1,h2,h3,h4{font-family:var(--display)}

/* Buttons: amber fill for the one action a section wants, an outline for the rest. 44px tall, for touch. */
.button{display:inline-flex;align-items:center;justify-content:space-between;gap:12px;min-height:44px;padding:0 18px;border-radius:8px;font:600 14px var(--sans);text-decoration:none;transition:background .15s,border-color .15s}
.primary{background:var(--amber);color:var(--on-amber)}.primary:hover{background:var(--amber-hot)}
.secondary{border:1px solid var(--line-strong);color:var(--text)}.secondary:hover{border-color:var(--amber)}
.button:focus-visible{outline:2px solid var(--amber);outline-offset:3px}

/* Status chips and glyphs. */
.chip{display:inline-flex;align-items:center;gap:6px;height:22px;padding:0 8px;border-radius:999px;font:500 11px/1 var(--mono);letter-spacing:.02em;white-space:nowrap;vertical-align:middle}
.chip-live{background:rgba(94,214,197,.12);color:#7fe3d5}
.chip-live:before{content:'';width:6px;height:6px;border-radius:2px;background:var(--teal)}
.chip-free,.chip-plans{background:rgba(255,181,71,.12);color:#ffc46b}
.chip-invite{border:1px solid #3a4a50;color:#c9d3ce}
.chip-soon{border:1px dashed #4a5a60;color:var(--muted)}
.glyph{display:block;flex:none}

/* The header bar: the wordmark on the left and the main navigation on the right, sticky and translucent, its
   background spanning the whole window even when the page content is capped in width. */
.header{position:sticky;top:0;z-index:20;height:72px;margin:0 var(--gutter);display:flex;align-items:center;justify-content:space-between;gap:24px;font-family:var(--sans)}
.header:before{content:'';position:absolute;z-index:-1;top:0;bottom:0;left:calc(50% - 50vw);width:100vw;background:rgba(11,18,22,.86);-webkit-backdrop-filter:blur(12px);backdrop-filter:blur(12px);border-bottom:1px solid rgba(228,236,231,.07)}
.brand img{width:118px;display:block}
.header nav{display:flex;align-items:center;gap:4px;font-size:14px;font-weight:500}
.header nav a{color:inherit;text-decoration:none}
.nav-link,.nav-menu>summary{display:inline-flex;align-items:center;gap:6px;min-height:44px;padding:0 12px;border-radius:8px;color:#c9d3ce;cursor:pointer;white-space:nowrap;transition:background .15s,color .15s}
.nav-menu>summary{list-style:none;user-select:none}.nav-menu>summary::-webkit-details-marker{display:none}
.nav-link:hover,.nav-menu>summary:hover,.nav-menu[open]>summary{background:var(--raised);color:var(--text)}
.nav-link[aria-current],.nav-menu>summary.nav-current{color:var(--amber)}
.nav-chevron{fill:none;stroke:currentColor;stroke-width:1.5;transition:transform .15s}.nav-menu[open] .nav-chevron{transform:rotate(180deg)}
.nav-link:focus-visible,.nav-menu>summary:focus-visible,.nav-contact:focus-visible,.menu-panel a:focus-visible{outline:2px solid var(--amber);outline-offset:2px}
.nav-contact{display:inline-flex;align-items:center;gap:8px;min-height:44px;margin-left:12px;padding:0 16px;border:1px solid var(--line-strong);border-radius:8px;font-weight:600;white-space:nowrap;transition:border-color .15s}
.nav-contact:hover,.nav-contact[aria-current]{border-color:var(--amber)}.nav-contact span{color:var(--amber)}

/* The menus: a full-width panel under the header bar while a menu is open. */
.nav-menu{position:static}
.menu-panel{position:absolute;top:100%;left:calc(50% - 50vw);width:100vw;max-height:calc(100dvh - 72px);overflow-y:auto;background:#0e171c;border-bottom:1px solid var(--line);box-shadow:0 40px 80px rgba(0,0,0,.55);font-weight:400;cursor:auto}
.menu-body,.menu-foot{max-width:1800px;margin:0 auto;padding:28px calc(min(100vw,1800px) * .055) 0;display:flex;flex-wrap:wrap;gap:24px}
.menu-item,.menu-foot a{margin-left:-12px}.menu-foot a{margin-left:0}.menu-head{margin-left:-12px}
.menu-columns{flex:999 1 640px;min-width:0;display:grid;grid-template-columns:repeat(auto-fit,minmax(260px,1fr));gap:16px}
.menu-column{display:flex;flex-direction:column;gap:2px;min-width:0}
.menu-head{margin:0;padding:0 12px 6px;font:500 11px var(--mono);color:var(--muted);letter-spacing:.08em;text-transform:uppercase}
.menu-item{display:flex;gap:14px;align-items:flex-start;padding:12px;border-radius:12px;min-height:44px;transition:background .15s}
.menu-item:hover,.menu-item[aria-current]{background:var(--raised)}
.menu-text{display:flex;flex-direction:column;gap:3px;min-width:0}
.menu-name{display:flex;align-items:center;gap:8px;flex-wrap:wrap;font-size:15px;font-weight:600;color:var(--text)}
.menu-item[aria-current] .menu-name{color:var(--amber)}
.menu-line{font-size:13px;line-height:1.45;color:var(--muted)}
.menu-feature{flex:1 1 300px;display:flex;flex-direction:column;border:1px solid var(--line);border-radius:var(--radius);overflow:hidden;background:var(--surface);transition:border-color .15s}
.menu-feature:hover{border-color:#4a5a60}
.menu-feature img{display:block;width:100%;height:140px;object-fit:cover;object-position:left top;border-bottom:1px solid var(--line)}
.menu-feature-text{padding:16px 18px;display:flex;flex-direction:column;gap:5px}
.menu-kicker{font:500 11px var(--mono);color:#7fe3d5;letter-spacing:.06em;text-transform:uppercase}
.menu-feature-title{font:700 19px var(--display);letter-spacing:-.02em;color:var(--text)}
.menu-more{font-size:13px;font-weight:600;color:var(--amber);margin-top:4px}
.menu-foot{margin-top:20px;padding-top:14px;padding-bottom:16px;border-top:1px solid #1b2730;gap:8px 28px;font-size:14px}
.menu-foot a{color:#c9d3ce;min-height:32px;display:inline-flex;align-items:center}.menu-foot a:hover{color:var(--amber)}

/* The footer: the wordmark and a line, four columns of links, then the copyright line. */
.site-footer{margin:0 var(--gutter);padding:96px 0 40px;font-family:var(--sans);font-size:14px;color:var(--muted)}
.footer-top{display:grid;grid-template-columns:1.4fr repeat(3,minmax(0,1fr));gap:32px;padding-bottom:40px;border-bottom:1px solid #1b2730}
.footer-brand img{width:110px;display:block}.footer-brand p{margin:14px 0 0;max-width:240px;line-height:1.55}
.footer-col{display:flex;flex-direction:column;gap:10px}
.footer-head{margin:0 0 4px;font:500 11px var(--mono);letter-spacing:.08em;text-transform:uppercase;color:var(--muted)}
.site-footer a{color:#c9d3ce;text-decoration:none}.site-footer a:hover{color:var(--amber)}
.footer-note{margin:24px 0 0;font-size:13px}

@media(max-width:1100px){.header nav{gap:0}.footer-top{grid-template-columns:repeat(3,minmax(0,1fr))}.footer-brand{grid-column:1 / -1}.footer-brand{grid-column:1 / -1}}
/* On a narrow window the bar has two rows: the wordmark, "Get in touch" and the account bubble above the menus and
   links, which wrap rather than squeeze. An open menu fills the rest of the window and scrolls. */
@media(max-width:900px){
.header{height:auto;flex-wrap:wrap;justify-content:flex-start;column-gap:4px;row-gap:0;padding:12px 0 4px}
.brand+nav .nav-contact{margin-right:8px}
.brand{margin-right:auto}.brand img{width:104px}
.header nav{display:contents}
.nav-menu,.nav-link{order:4}.nav-menu>summary,.nav-link{padding:0 10px}
.header nav .nav-contact{order:1;margin-left:0;min-height:40px;padding:0 12px}
.craggy-account{order:2}
.header:after{content:'';order:3;flex-basis:100%}
.menu-panel{max-height:calc(100dvh - 120px)}
.menu-body,.menu-foot{padding-left:16px;padding-right:16px}.menu-body{padding-top:16px}
.menu-feature img{height:110px}}
@media(max-width:700px){.footer-top{grid-template-columns:repeat(2,minmax(0,1fr))}.site-footer{padding-top:64px}}
@media(max-width:420px){.header nav{font-size:13px}.nav-menu>summary,.nav-link{padding:0 8px}.brand img{width:92px}}
@media(max-width:360px){.header nav .nav-contact span{display:none}}
@media(prefers-reduced-motion:reduce){.nav-chevron,.menu-item,.nav-link{transition:none}}

/* A feather: where there is reading to do, a quiet surface over the terrain that fades into it at its edges, with no
   border. The surface is drawn behind the content (::before) and only it is masked, so text is never faded. It reaches
   --feather-x past the sides and --feather-y past the top and bottom, and fades across that margin.
   .feather-bleed is for a full-width container: the surface stops at the page gutter, so the terrain shows beside it.
   The footer carries one on every page. */
.feather,.site-footer{position:relative;isolation:isolate;--feather-x:72px;--feather-y:44px;
  --feather-side:calc(-1 * var(--feather-x));--feather-top:calc(-1 * var(--feather-y) - 8px);--feather-bottom:calc(-1 * var(--feather-y) - 24px)}
.feather-bleed{--feather-side:calc(var(--gutter) - var(--feather-x));--feather-top:0px}
/* Below a hero that uses the terrain as its picture: the terrain dissolves into the content over a long fade. */
.feather-home{--feather-top:-24px;--feather-fade-top:220px}
.site-footer{--feather-top:0px;--feather-bottom:0px;--feather-y:88px}
.feather::before,.site-footer::before{content:"";position:absolute;z-index:-1;pointer-events:none;
  inset:var(--feather-top) var(--feather-side) var(--feather-bottom);
  background:radial-gradient(90% 60% at 50% 0%,rgba(255,181,71,.035),transparent 70%),rgba(10,17,21,.9);
  -webkit-backdrop-filter:blur(14px) saturate(.7);backdrop-filter:blur(14px) saturate(.7);
  -webkit-mask-image:linear-gradient(90deg,transparent,#000 var(--feather-x),#000 calc(100% - var(--feather-x)),transparent),
    linear-gradient(180deg,transparent,#000 var(--feather-fade-top,var(--feather-y)),#000 calc(100% - var(--feather-fade-bottom,var(--feather-y))),transparent);
  -webkit-mask-composite:source-in;
  mask-image:linear-gradient(90deg,transparent,#000 var(--feather-x),#000 calc(100% - var(--feather-x)),transparent),
    linear-gradient(180deg,transparent,#000 var(--feather-fade-top,var(--feather-y)),#000 calc(100% - var(--feather-fade-bottom,var(--feather-y))),transparent);
  mask-composite:intersect}
.site-footer::before{-webkit-mask-image:linear-gradient(90deg,transparent,#000 var(--feather-x),#000 calc(100% - var(--feather-x)),transparent),
    linear-gradient(180deg,transparent,#000 var(--feather-y));
  mask-image:linear-gradient(90deg,transparent,#000 var(--feather-x),#000 calc(100% - var(--feather-x)),transparent),
    linear-gradient(180deg,transparent,#000 var(--feather-y))}
@media(max-width:560px){.feather,.site-footer{--feather-x:18px;--feather-y:28px}.feather-home{--feather-fade-top:140px}.site-footer{--feather-y:56px}}
