/* Medway Explorer website – river teal and warm coral (Rochester Explorer is blue and gold) */
:root { --paper:#F3F6F5; --card:#fff; --line:#DCE5E3; --teal:#0E5C5A; --teal-dark:#0A4544; --tint:#E1EFEE; --coral:#C2482F; --coral-bright:#FF8A6B; --coral-soft:#FCE6DF; --ink:#1F2D2D; --text:#32403F; --muted:#667574; --on-teal:#D5E8E6; }
* { box-sizing: border-box; }
body { margin: 0; background: var(--paper); color: var(--text); font: 17px/1.55 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; }
a { color: var(--teal); }
.wrap { max-width: 640px; margin: 0 auto; }
.wide { max-width: 900px; margin: 0 auto; }

/* top of each page */
.hero { background: var(--teal); color: #fff; padding: 32px 16px 56px; text-align: center; border-radius: 0 0 28px 28px; }
.hero.page { text-align: left; padding: 22px 16px 34px; }
.hero > div > img { width: 88px; height: 88px; border-radius: 20px; box-shadow: 0 6px 18px rgba(0,0,0,.25); }
.kicker { color: var(--coral-bright); font-size: 12px; letter-spacing: .16em; font-weight: 800; text-transform: uppercase; margin-top: 16px; }
.hero.page .kicker { margin-top: 22px; }
h1 { font-size: clamp(30px, 8vw, 42px); line-height: 1.1; margin: 6px 0 8px; font-weight: 800; letter-spacing: -.01em; }
.hero.page h1 { font-size: clamp(28px, 7vw, 38px); }
.lead { color: var(--on-teal); margin: 0 auto; max-width: 32em; }
.hero.page .lead { margin: 0; max-width: 38em; }
.back { display: inline-flex; align-items: center; gap: 8px; color: var(--on-teal); text-decoration: none; font-size: 15px; font-weight: 600; }
.back:hover, .back:focus-visible { color: #fff; text-decoration: underline; }
.back img { width: 30px; height: 30px; border-radius: 8px; }
.towns { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; margin: 16px auto 0; padding: 0; list-style: none; max-width: 30em; }
.towns li { background: rgba(255,255,255,.12); color: #fff; border-radius: 999px; padding: 3px 11px; font-size: 13.5px; font-weight: 600; }

main { padding: 0 16px 48px; }
main.over { margin-top: -30px; }
main.page { padding-top: 24px; }
h2 { color: var(--teal); font-size: 22px; font-weight: 800; margin: 34px 0 10px; }

/* store buttons */
.stores { display: grid; grid-template-columns: 1fr 1fr; background: var(--card); border: 1.5px solid var(--line); border-radius: 16px; box-shadow: 0 4px 12px rgba(0,0,0,.06); overflow: hidden; }
@media (max-width: 340px) { .stores { grid-template-columns: 1fr; } .stores .store + .store { border-left: 0; border-top: 1px solid var(--line); } }
.store { display: flex; align-items: center; justify-content: center; gap: 10px; padding: 14px 12px; text-decoration: none; color: var(--ink); min-width: 0; text-align: center; }
.store + .store { border-left: 1px solid var(--line); }
.store.mine { background: var(--tint); }
.store svg { width: 30px; height: 30px; flex: none; }
.store b { display: block; font-size: 17px; line-height: 1.2; }
.store span { color: var(--muted); font-size: 14px; }
.store.soon { pointer-events: none; }
.store .tag { display: table; margin: 4px auto 0; font-size: 11px; font-weight: 700; color: var(--coral); background: var(--coral-soft); border-radius: 10px; padding: 1px 8px; white-space: nowrap; }
.launch { margin: 12px 0 0; text-align: center; font-weight: 700; color: var(--teal); }
.launch span { display: block; font-weight: 400; color: var(--muted); font-size: 15px; }

/* what's inside */
.inside { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; list-style: none; padding: 0; margin: 0; }
@media (max-width: 420px) { .inside { grid-template-columns: 1fr; } }
.inside li { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 12px 14px; display: flex; gap: 11px; align-items: flex-start; }
.inside svg { width: 26px; height: 26px; flex: none; margin-top: 2px; }
.inside b { display: block; color: var(--ink); line-height: 1.25; }
.inside span { color: var(--muted); font-size: 14.5px; line-height: 1.4; display: block; margin-top: 2px; }
.promise { background: var(--card); border: 1px solid var(--line); border-left: 4px solid var(--coral); border-radius: 14px; padding: 14px 16px; margin-top: 18px; }
.promise b { color: var(--ink); }
.note { text-align: center; color: var(--muted); font-size: 14px; margin-top: 24px; }

/* the big links near the bottom */
.biz { display: flex; align-items: center; gap: 14px; margin-top: 14px; padding: 16px 18px; background: var(--teal); color: #fff; border: 2px solid var(--coral-bright); border-radius: 16px; text-decoration: none; }
.biz.first { margin-top: 34px; }
.biz:hover b, .biz:focus-visible b { text-decoration: underline; }
.biz:focus-visible { outline: 3px solid var(--coral-bright); outline-offset: 3px; }
.biz svg { width: 34px; height: 34px; flex: none; }
.biz div { flex: 1; min-width: 0; }
.biz small { display: block; color: var(--coral-bright); font-size: 12px; letter-spacing: .14em; font-weight: 800; text-transform: uppercase; }
.biz b { display: block; font-size: 19px; line-height: 1.25; margin: 2px 0; }
.biz span { display: block; color: var(--on-teal); font-size: 15px; }
.biz i { font-style: normal; font-size: 26px; color: var(--coral-bright); }

/* plans (business page) */
.plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 16px; margin-top: 16px; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 18px; display: flex; flex-direction: column; gap: 8px; }
.card.hot { border: 2px solid var(--coral); box-shadow: 0 6px 18px rgba(194,72,47,.14); }
.card h3 { margin: 0; color: var(--ink); font-size: 21px; }
.badge { align-self: flex-start; font-size: 12px; font-weight: 700; color: var(--coral); background: var(--coral-soft); border-radius: 10px; padding: 2px 9px; }
.price { font-size: 28px; font-weight: 800; color: var(--teal); line-height: 1.1; }
.price small { font-size: 15px; font-weight: 600; color: var(--muted); }
.card ul { margin: 4px 0 0; padding-left: 1.2em; } .card li { margin: 4px 0; }
table.extras { width: 100%; border-collapse: collapse; background: var(--card); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; margin-top: 12px; }
.extras th, .extras td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; font-size: 15.5px; }
.extras th { background: var(--tint); color: var(--teal); }
.extras td:nth-child(2) { white-space: nowrap; font-weight: 700; color: var(--ink); }
.box { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 16px 18px; margin-top: 16px; }
.cta { display: flex; align-items: center; justify-content: center; gap: 8px; margin-top: 18px; padding: 14px 18px; border-radius: 14px; background: var(--coral); color: #fff; font-weight: 700; text-decoration: none; font-size: 18px; }
.cta:hover, .cta:focus-visible { text-decoration: underline; }
ol { padding-left: 1.3em; } ol li { margin: 6px 0; }
ul.why { list-style: none; padding: 0; margin: 12px 0 0; display: grid; gap: 10px; }
ul.why li { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 12px 14px; }
ul.why b { color: var(--ink); }
.muted { color: var(--muted); font-size: 15px; }
.small { color: var(--muted); font-size: 14px; margin-top: 30px; }

/* privacy page */
.text { max-width: 760px; margin: 0 auto; }
.text ul { padding-left: 1.2em; } .text li { margin: 4px 0; }

/* Waystation Apps page */
.apps { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; }
.app { display: flex; flex-direction: column; gap: 12px; background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 18px; }
.app.here { border: 2px solid var(--coral); }
.app .top { display: flex; align-items: flex-start; gap: 14px; }
.app .top img, .app .top svg { width: 56px; height: 56px; border-radius: 14px; flex: none; display: block; box-shadow: 0 0 0 1px var(--line); }
.app h2 { margin: 0; font-size: 20px; color: var(--ink); }
.app .tag { margin: 2px 0 0; font-size: 14px; color: var(--muted); }
.app p.about { margin: 0; font-size: 15.5px; }
.app .btn { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 11px 14px; border-radius: 12px; background: var(--tint); color: var(--teal); font-weight: 700; text-decoration: none; }
.app .btn:hover, .app .btn:focus-visible { text-decoration: underline; }
/* every card's parts line up across a row: name, description, button */
@supports (grid-template-rows: subgrid) {
  .app { display: grid; grid-row: span 3; grid-template-rows: subgrid; gap: 12px; }
  .app .btn { margin-top: 0; align-self: end; }
}
.app .top > div { min-width: 0; }
.app .top .badge { display: inline-block; margin-top: 6px; }
.app .tag { line-height: 1.35; }
.app .btn { font-size: 15px; white-space: nowrap; }

/* footer + the Waystation Apps menu pill (opens upwards) */
footer { text-align: center; color: var(--muted); font-size: 14px; padding: 0 16px 32px; }
footer a { color: var(--teal); }
.ws { display: flex; align-items: center; justify-content: center; gap: 10px; flex-wrap: wrap; margin-top: 10px; }
.ws details { position: relative; }
.ws summary { list-style: none; display: inline-flex; align-items: center; gap: 6px; cursor: pointer; border: 1px solid var(--line); background: var(--card); color: var(--teal); border-radius: 999px; padding: 5px 10px 5px 13px; font-size: 13px; font-weight: 700; }
.ws summary::-webkit-details-marker { display: none; }
.ws summary svg { width: 16px; height: 16px; transition: transform .15s; }
.ws details[open] summary svg { transform: rotate(180deg); }
.ws summary:focus-visible { outline: 2px solid var(--coral); outline-offset: 2px; }
.ws-menu { position: absolute; bottom: calc(100% + 8px); left: 50%; transform: translateX(-50%); width: 300px; max-width: calc(100vw - 32px); background: var(--card); border: 1px solid var(--line); border-radius: 14px; box-shadow: 0 14px 40px rgba(0,0,0,.18); padding: 8px; text-align: left; z-index: 10; }
.ws-head { font-size: 12px; color: var(--muted); padding: 6px 8px 8px; line-height: 1.4; }
.ws-head b { display: block; color: var(--ink); font-size: 13.5px; }
.ws-item { display: flex; align-items: center; gap: 12px; padding: 9px 8px; border-radius: 10px; text-decoration: none; color: var(--ink); }
.ws-item:hover, .ws-item:focus-visible { background: var(--tint); outline: none; }
.ws-item svg, .ws-item img { width: 38px; height: 38px; border-radius: 10px; flex: none; display: block; }
.ws-item span { flex: 1; min-width: 0; font-size: 12.5px; color: var(--muted); line-height: 1.35; }
.ws-item b { display: block; font-size: 14.5px; color: var(--ink); }
.ws-item i { font-style: normal; color: var(--muted); font-size: 18px; }
.ws-all { display: flex; justify-content: space-between; margin-top: 4px; padding: 11px 8px 7px; border-top: 1px solid var(--line); font-size: 13.5px; font-weight: 700; color: var(--teal); text-decoration: none; }
.ws-all:hover, .ws-all:focus-visible { text-decoration: underline; }
