/* Navvyplan's home page, in the manner of Moorlog's: a glow from the top, a headline, the thing itself in a
   frame, and a strip of features. */
:root{color-scheme:dark;--sky:#38bdf8;--ink:#e2e8f0;--hi:#f8fafc;--muted:#94a3b8;--faint:#64748b;--line:rgb(255 255 255 / .1);--line-2:rgb(255 255 255 / .16)}
*{box-sizing:border-box}
html,body{margin:0;background:#0f172a}
body{font:15px/1.55 ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,"Helvetica Neue",Arial,sans-serif;color:var(--ink);-webkit-font-smoothing:antialiased;
  background:radial-gradient(ellipse at top,#1e3a5f,#0f172a 55rem) no-repeat,#0f172a}
a{color:var(--sky);text-decoration:none}
a:hover{text-decoration:underline}
h1,h2,h3{color:var(--hi)}
svg{flex:none}
.sky{color:var(--sky)}
.sr{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
:focus-visible{outline:2px solid var(--sky);outline-offset:2px;border-radius:6px}
.wrap{max-width:72rem;margin:0 auto;padding-left:1rem;padding-right:1rem}
@media (min-width:640px){.wrap{padding-left:1.5rem;padding-right:1.5rem}}

.primary,.ghost,.quiet{display:inline-flex;white-space:nowrap;align-items:center;gap:.5rem;border-radius:8px;padding:.4rem .8rem;font-size:14px;transition:background-color .15s}
.primary{background:#0ea5e9;background:var(--sky);color:#020617;font-weight:650}
.primary:hover{background:#7dd3fc;text-decoration:none}
.ghost{background:rgb(255 255 255 / .1);color:var(--ink)}
.ghost:hover{background:rgb(255 255 255 / .15);text-decoration:none}
.quiet{color:#cbd5e1}
.quiet:hover{background:rgb(255 255 255 / .1);text-decoration:none}
.big{padding:.65rem 1.25rem}

/* header */
.top{display:flex;align-items:center;gap:.75rem;min-height:4.25rem}
.brand{display:flex;align-items:center;gap:.6rem;color:var(--hi)}
.brand:hover{text-decoration:none}
.brand b{font-size:17px;font-weight:650}
.brand small{display:block;font-size:12.5px;color:var(--muted)}
.brand span b{display:block;line-height:1.15}
@media (max-width:520px){.brand small{display:none}}
.top nav{margin-left:auto;display:flex;align-items:center;gap:.4rem}

/* hero */
.hero{text-align:center;-webkit-user-select:none;user-select:none;padding-top:calc(2rem + 5.5vw);padding-bottom:calc(2.5rem + 4.5vw)}
.hero h1{max-width:48rem;margin:0 auto;font-size:clamp(1.9rem,5vw,3.1rem);line-height:1.12;letter-spacing:-.025em;text-wrap:balance}
.sub{max-width:40rem;margin:1rem auto 0;font-size:clamp(1rem,2vw,1.15rem);color:rgb(255 255 255 / .6);text-wrap:pretty}
.dots{display:flex;flex-wrap:wrap;justify-content:center;gap:.25rem .65rem;margin:.75rem 0 0;font-size:14px;color:rgb(255 255 255 / .7)}
.dots span+span::before{content:"•";margin-right:.65rem;color:rgb(255 255 255 / .35)}
.ctas{display:flex;flex-wrap:wrap;justify-content:center;gap:.75rem;margin-top:1.5rem}

/* the planner, live */
.frame{position:relative;overflow:hidden;border-radius:18px;background:#020617;box-shadow:0 30px 80px rgb(0 0 0 / .5);outline:1px solid rgb(255 255 255 / .15)}
.frame iframe{position:relative;z-index:1;display:block;touch-action:pan-x pan-y;width:100%;height:max(460px,70vh);border:0;color-scheme:dark}
@media (min-width:640px){.frame iframe{height:640px}}
/* Under a finger, the frame's own side edges belong to the page: a drag that starts on them scrolls it, where one
   that starts on the map moves the map (home.js keeps a touch in the gutters beside the frame the page's too). */
@media (pointer:coarse){.frame::before,.frame::after{content:"";position:absolute;z-index:2;top:0;bottom:0;width:10px;touch-action:pan-y}
  .frame::before{left:0}.frame::after{right:0}}
.loading{position:absolute;inset:0;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:.75rem;color:var(--muted);font-size:13px}
.loading svg{animation:bob 2.4s ease-in-out infinite}
@keyframes bob{50%{transform:translateY(-6px) rotate(-4deg)}}
@media (prefers-reduced-motion:reduce){.loading svg{animation:none}}
.note{display:flex;flex-wrap:wrap;justify-content:center;gap:.25rem 1.25rem;margin:.75rem 0 0;font-size:12.5px;color:var(--muted)}
.note a{display:inline-flex;align-items:center;gap:.35rem;color:var(--muted)}
.note a:hover{color:var(--hi)}

/* features */
.features{padding:3.5rem 0}
.fhead{display:flex;align-items:center;justify-content:space-between;gap:1rem;margin-bottom:1.25rem}
.fhead h2{margin:0;font-size:clamp(1.4rem,3vw,1.9rem)}
.fbtns{display:flex;align-items:center;gap:.4rem}
.arrow,.all{display:inline-flex;align-items:center;justify-content:center;height:2.25rem;border-radius:999px;border:1px solid var(--line-2);background:rgb(2 6 23 / .4);color:var(--ink);font:inherit;font-size:13px;cursor:pointer}
.arrow{width:2.25rem}
[hidden]{display:none!important}
.all{padding:0 .9rem;white-space:nowrap}
.arrow:hover,.all:hover{background:rgb(255 255 255 / .1)}
.all[aria-pressed=true]{background:var(--sky);border-color:var(--sky);color:#020617;font-weight:600}
.strip{--pad:max(1rem,calc((100vw - 72rem) / 2 + 1.5rem));display:flex;gap:1rem;margin:0;padding:.25rem var(--pad) 1rem;list-style:none;overflow-x:auto;scroll-snap-type:x mandatory;scroll-padding:0 var(--pad);scrollbar-width:none;overscroll-behavior-x:contain}
.strip::-webkit-scrollbar{display:none}
.tile{flex:none;width:82vw;scroll-snap-align:start;overflow:hidden;border-radius:14px;background:rgb(15 23 42 / .7);outline:1px solid var(--line);transition:opacity .2s}
@media (min-width:640px){.tile{width:calc((min(100vw,72rem) - 3rem - 1rem) / 2)}}
@media (min-width:1024px){.tile{width:calc((min(100vw,72rem) - 3rem - 2rem) / 3)}}
.tile>a,.tile>div{display:block;height:100%;color:inherit}
.tile>a:hover{text-decoration:none;background:rgb(255 255 255 / .03)}
.tile>a:hover h3{color:var(--sky)}
.tile img{display:block;width:100%;height:auto;aspect-ratio:16/10;object-fit:cover;object-position:top;border-bottom:1px solid var(--line);background:#020617;user-select:none}
.txt{padding:1rem}
.txt h3{display:flex;align-items:center;gap:.5rem;margin:0;font-size:15.5px}
.txt p{margin:.45rem 0 0;font-size:14px;color:var(--muted);text-wrap:pretty}
.strip.grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(min(100%,19rem),1fr));max-width:72rem;margin:0 auto;padding:.25rem 1rem 1rem;overflow:visible}
@media (min-width:640px){.strip.grid{padding:.25rem 1.5rem 1rem}}
.strip.grid .tile{width:auto;opacity:1!important}

/* the waterways */
.explore{padding-top:1rem}
.panel{display:grid;gap:2rem;align-items:center;padding:clamp(1.25rem,4vw,2.5rem);border-radius:20px;background:linear-gradient(135deg,rgb(56 189 248 / .1),rgb(2 6 23 / .4));outline:1px solid var(--line)}
@media (min-width:900px){.panel{grid-template-columns:1.1fr 1fr}}
.panel h2{margin:0;font-size:clamp(1.4rem,3vw,1.9rem)}
.panel .copy>p{color:#cbd5e1;max-width:36rem}
.find{position:relative;display:flex;gap:.5rem;max-width:30rem;margin-top:1.25rem}
.find svg{position:absolute;left:.8rem;top:50%;transform:translateY(-50%);color:var(--faint)}
.find input{flex:1;min-width:0;height:2.75rem;padding:0 .9rem 0 2.5rem;border-radius:10px;border:1px solid var(--line-2);background:rgb(2 6 23 / .6);color:var(--hi);font:inherit;font-size:16px}
.find input:focus{outline:none;border-color:var(--sky);box-shadow:0 0 0 3px rgb(56 189 248 / .2)}
.find button{height:2.75rem;padding:0 1.1rem;border:0;border-radius:10px;background:var(--sky);color:#020617;font:inherit;font-weight:650;cursor:pointer}
.find button:hover{background:#7dd3fc}
.popular{display:flex;flex-wrap:wrap;gap:.4rem;margin-top:1rem}
.popular a{padding:.25rem .7rem;border-radius:999px;border:1px solid var(--line-2);color:var(--ink);font-size:13.5px}
.popular a:hover{background:rgb(255 255 255 / .08);text-decoration:none}
.peek{display:block;overflow:hidden;border-radius:14px;outline:1px solid var(--line-2);box-shadow:0 20px 60px rgb(0 0 0 / .45);transform:rotate(1deg);transition:transform .3s}
.peek:hover{transform:rotate(0) scale(1.01)}
.peek img{display:block;width:100%;height:auto}

.cta{text-align:center;padding-top:4.5rem;padding-bottom:5rem}
.cta h2{margin:0;font-size:clamp(1.5rem,3.5vw,2.2rem)}
.cta p{margin:.5rem 0 1.5rem;color:var(--muted)}

/* the foot, as Moorlog's and Canal Tools' */
footer{border-top:1px solid var(--line);background:rgb(2 6 23 / .4);padding:3rem 0 0}
.ftop{display:flex;flex-wrap:wrap;align-items:flex-start;justify-content:space-between;gap:1.5rem 2.5rem}
.about{max-width:24rem}
.about .brand b{font-size:18px}
.about p{margin:.5rem 0 0;font-size:14px;color:var(--muted);text-wrap:pretty}
.ways{display:flex;flex-wrap:wrap;gap:.5rem}
.fh{margin:2.5rem 0 0;font-size:12px;font-weight:500;letter-spacing:.06em;text-transform:uppercase;color:var(--muted)}
.contrib{display:grid;gap:.75rem;margin:.75rem 0 0;padding:0;list-style:none}
@media (min-width:640px){.contrib{grid-template-columns:1fr 1fr}}
@media (min-width:1024px){.contrib{grid-template-columns:repeat(4,1fr)}}
.contrib li{display:flex;flex-direction:column;padding:1rem;border-radius:12px;background:rgb(255 255 255 / .03);outline:1px solid var(--line)}
.contrib h3{margin:0;font-size:14px;font-weight:600}
.contrib p{margin:.4rem 0 0;font-size:14px;color:var(--muted);text-wrap:pretty}
.contrib .nb{font-size:12px;color:var(--faint)}
.contrib a{margin-top:auto;padding-top:.75rem;font-size:12px}
.foot{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:1rem 2rem;margin-top:2.5rem;padding:1.5rem 0;border-top:1px solid var(--line);font-size:12px;color:var(--faint)}
.foot p{margin:0}
.foot .sep{margin:0 .5rem;opacity:.6}
/* Links brighten at once under the pointer and fade back when it leaves; no underline. */
.foot a{color:inherit;text-decoration:none;transition:color .3s}
.foot a:hover{color:var(--ink);text-decoration:none;transition-duration:0s}
.foot .by{display:flex;align-items:center;gap:.375rem}
/* The designer's mark as a mask filled with the word's own colour, so the two are one hue and change together. */
.foot .fb{height:1rem;aspect-ratio:326/313;transform:translateY(1px);background:currentColor;-webkit-mask:url(/fb-logo.svg) center/contain no-repeat;mask:url(/fb-logo.svg) center/contain no-repeat}
@media (prefers-reduced-motion:reduce){.foot a{transition:none}}

/* add to the home screen, on a phone (home.js) */
.inst{max-width:26rem;margin:1.75rem auto 0;padding:1rem;border-radius:14px;text-align:left;background:rgb(15 23 42 / .75);outline:1px solid var(--line-2);box-shadow:0 20px 50px rgb(0 0 0 / .35);-webkit-user-select:text;user-select:text}
.inst-head{display:flex;align-items:center;gap:.8rem}
.inst-head img{width:44px;height:44px;flex:none;border-radius:11px;outline:1px solid var(--line)}
.inst-head b{display:block;font-size:15px;font-weight:650;color:var(--hi);line-height:1.3}
.inst-head small{display:block;margin-top:.1rem;font-size:13px;color:var(--muted)}
.inst-add{display:flex;width:100%;align-items:center;justify-content:center;gap:.5rem;margin-top:.9rem;padding:.7rem 1rem;border:0;border-radius:10px;background:var(--sky);color:#020617;font:inherit;font-size:15px;font-weight:650;cursor:pointer}
.inst-add:hover{background:#7dd3fc}
.inst-more:empty{display:none}
.inst-steps{margin:.9rem 0 0;padding-left:1.35rem;font-size:14px;color:#cbd5e1;display:grid;gap:.55rem}
.inst-steps li::marker{color:var(--sky);font-weight:650}
.inst-steps b{color:var(--hi);font-weight:600}
.inst-steps small{display:block;color:var(--muted);font-size:12.5px}
div.inst-steps{padding:0;display:block}div.inst-steps p{margin:0 0 .5rem}div.inst-steps ol{margin:0 0 .5rem;padding-left:1.35rem;display:grid;gap:.55rem}
.inst-note,.inst-ok{margin:.9rem 0 0;font-size:13.5px;color:var(--muted)}
.inst-ok{color:var(--hi)}
.keycap{display:inline-flex;align-items:center;gap:4px;vertical-align:-3px;padding:2px 4px;border-radius:4px;background:rgb(255 255 255 / .1);color:var(--hi)}
button.keycap{border:0;font:600 12px/1 ui-sans-serif,system-ui,sans-serif;padding:3px 6px;cursor:pointer}
button.keycap:hover{background:rgb(255 255 255 / .16)}
