:root {
  color-scheme: light;
  --ink: #102a2b;
  --ink-soft: #476164;
  --muted: #789092;
  --paper: #f4f8f7;
  --card: rgba(255, 255, 255, .82);
  --line: #d9e7e4;
  --teal: #0c817c;
  --teal-dark: #08635f;
  --mint: #dff4ed;
  --shadow: 0 20px 60px rgba(16, 42, 43, .08);
}

* { box-sizing: border-box; }

html { min-width: 320px; background: var(--paper); }

body {
  min-width: 320px;
  min-height: 100vh;
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 90% 0%, rgba(196, 234, 221, .72), transparent 32rem),
    linear-gradient(180deg, #f7fbfa 0%, var(--paper) 100%);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

button, input { font: inherit; }
button { cursor: pointer; }
button:focus-visible, input:focus-visible, a:focus-visible { outline: 3px solid rgba(12, 129, 124, .35); outline-offset: 3px; }

.shell { width: min(100% - 2rem, 720px); margin: 0 auto; padding: max(1.25rem, env(safe-area-inset-top)) 0 2.5rem; }
.topbar { display: flex; align-items: center; justify-content: space-between; min-height: 48px; }
.brand { display: inline-flex; align-items: center; gap: .65rem; color: var(--ink); text-decoration: none; font-size: 1.05rem; font-weight: 800; letter-spacing: -.03em; }
.brand-mark { display: grid; place-items: center; width: 2rem; height: 2rem; border-radius: .7rem; color: white; background: var(--ink); font-size: 1.25rem; line-height: 1; }
.install-button { border: 1px solid var(--line); border-radius: 999px; padding: .6rem .9rem; color: var(--teal-dark); background: rgba(255,255,255,.7); font-size: .82rem; font-weight: 750; }

.intro { padding: clamp(3rem, 11vw, 6.5rem) 0 2.1rem; }
.eyebrow, .label { margin: 0; color: var(--teal); font-size: .7rem; font-weight: 850; letter-spacing: .16em; }
h1 { margin: .85rem 0 .9rem; font-size: clamp(3.35rem, 13vw, 6.8rem); line-height: .88; letter-spacing: -.075em; }
h1 em { color: var(--teal); font-family: Georgia, serif; font-weight: 400; letter-spacing: -.1em; }
.lede { max-width: 22rem; margin: 0; color: var(--ink-soft); font-size: 1.05rem; line-height: 1.5; }

.panel { padding: 1.3rem; border: 1px solid rgba(217, 231, 228, .9); border-radius: 1.4rem; background: var(--card); box-shadow: var(--shadow); backdrop-filter: blur(14px); }
.destination-panel { margin-top: .9rem; }
.section-heading { display: flex; gap: .9rem; align-items: flex-start; }
.step { display: grid; place-items: center; width: 2rem; height: 2rem; flex: 0 0 2rem; border-radius: .7rem; color: var(--teal-dark); background: var(--mint); font-size: .7rem; font-weight: 850; }
.muted { margin: .35rem 0 0; color: var(--muted); font-size: .84rem; line-height: 1.35; }
.location-button { display: flex; align-items: center; gap: .75rem; width: 100%; margin-top: 1.1rem; padding: .9rem; border: 1px solid var(--line); border-radius: 1rem; color: var(--ink); background: white; text-align: left; }
.location-button:hover { border-color: rgba(12, 129, 124, .45); }
.location-icon { display: grid; place-items: center; width: 2.2rem; height: 2.2rem; border-radius: .75rem; color: var(--teal-dark); background: var(--mint); font-size: 1.3rem; }
.location-copy { display: grid; gap: .22rem; flex: 1; }
.location-copy strong { font-size: .92rem; }
.location-copy small { color: var(--muted); font-size: .75rem; }
.chevron { color: var(--teal); font-size: 1.5rem; }

.route-form { display: grid; gap: .7rem; margin-top: 1.1rem; }
.input-wrap { display: flex; align-items: center; gap: .7rem; min-height: 3.5rem; padding: 0 1rem; border: 1px solid var(--line); border-radius: 1rem; background: white; }
.input-wrap > span { color: var(--teal); font-size: 1.25rem; }
input { width: 100%; min-width: 0; border: 0; outline: 0; color: var(--ink); background: transparent; font-size: 1rem; }
input::placeholder { color: #9aabab; }
.primary-button { display: flex; align-items: center; justify-content: space-between; min-height: 3.5rem; padding: 0 1.1rem; border: 0; border-radius: 1rem; color: white; background: var(--teal); font-weight: 800; transition: transform .18s ease, background .18s ease; }
.primary-button:hover { background: var(--teal-dark); transform: translateY(-1px); }
.primary-button:disabled { cursor: wait; opacity: .6; transform: none; }
.form-status { min-height: 1.3rem; margin: .8rem 0 0; color: var(--ink-soft); font-size: .83rem; line-height: 1.4; }

.result-card { position: relative; overflow: hidden; margin-top: .9rem; padding: 1.5rem; border-radius: 1.4rem; color: white; background: var(--ink); box-shadow: 0 20px 50px rgba(16, 42, 43, .18); }
.result-card::after { position: absolute; right: -4rem; bottom: -5rem; width: 14rem; height: 14rem; border: 1px solid rgba(207, 242, 231, .16); border-radius: 50%; box-shadow: 0 0 0 1.5rem rgba(207, 242, 231, .04), 0 0 0 3rem rgba(207, 242, 231, .04); content: ""; }
.result-topline { display: flex; align-items: center; justify-content: space-between; }
.result-card .label { color: #93d5c1; }
.live-dot { width: .55rem; height: .55rem; border-radius: 50%; background: #8de2be; box-shadow: 0 0 0 .35rem rgba(141, 226, 190, .12); }
.result-time { position: relative; z-index: 1; margin: .85rem 0 .25rem; font-size: clamp(3.2rem, 13vw, 5.5rem); font-weight: 850; letter-spacing: -.08em; line-height: .95; }
.result-detail { position: relative; z-index: 1; max-width: 90%; margin: 0; color: #afd0ca; font-size: .88rem; line-height: 1.4; }
footer { padding: 1.3rem .2rem 0; color: var(--muted); text-align: center; font-size: .72rem; line-height: 1.55; }
footer p { margin: .18rem 0; }
footer a { color: var(--teal-dark); }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }

@media (min-width: 640px) {
  .shell { padding-top: 2rem; }
  .route-form { grid-template-columns: 1fr auto; }
  .primary-button { min-width: 10.5rem; }
  .intro { padding-top: 6rem; }
}
