/* ten20.live landing page. Colours come from the mark: navy wordmark, red
   pin, the map's cream paper, its parks and its water. No web fonts, no
   scripts. */

:root {
  --navy: #122846;
  --red: #e2382f;
  /* White button text needs 4.5:1: the pin red is a shade too light. */
  --button: #d1302a;
  --button-hover: #b9241c;
  --paper: #f5eee2;
  --card: #fffdf9;
  --water: #75c4f7;
  --park: #cfe5bf;
  --text: #1c2533;
  --muted: #4d5869;
  --line: #e4dccd;
  --heading: var(--navy);
  --street: rgb(255 255 255 / 0.5);
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --paper: #0e1828;
    --card: #16233a;
    --text: #e8edf4;
    --muted: #a8b4c6;
    --line: #26364f;
    --red: #ef5148;
    --heading: var(--text);
    --street: rgb(255 255 255 / 0.04);
  }
}

* {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--text);
  font:
    17px/1.6 system-ui,
    -apple-system,
    "Segoe UI",
    Roboto,
    "Helvetica Neue",
    Arial,
    sans-serif;
}

a {
  color: inherit;
  text-decoration-color: var(--red);
  text-underline-offset: 0.15em;
}

a:hover {
  color: var(--red);
}

a:focus-visible {
  outline: 3px solid var(--water);
  outline-offset: 2px;
}

.wrap {
  max-width: 1080px;
  margin: 0 auto;
  padding-inline: 24px;
}

/* Hero: the map's paper with a faint street grid, a lake in one corner and a
   park in the other. */
.hero {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 104% -4%, var(--water) 0 190px, transparent 191px),
    radial-gradient(ellipse 220px 140px at -2% 104%, var(--park) 0 99%, transparent 100%),
    repeating-linear-gradient(-8deg, transparent 0 92px, var(--street) 92px 98px),
    repeating-linear-gradient(84deg, transparent 0 132px, var(--street) 132px 137px), var(--paper);
  border-bottom: 1px solid var(--line);
  padding: 20px 0 72px;
}

@media (prefers-color-scheme: dark) {
  .hero {
    background:
      radial-gradient(circle at 104% -4%, #1c4a6e 0 190px, transparent 191px),
      radial-gradient(ellipse 220px 140px at -2% 104%, #1d3a2e 0 99%, transparent 100%),
      repeating-linear-gradient(-8deg, transparent 0 92px, var(--street) 92px 98px),
      repeating-linear-gradient(84deg, transparent 0 132px, var(--street) 132px 137px), var(--paper);
  }
}

.topbar {
  display: flex;
  gap: 16px;
  align-items: center;
  justify-content: space-between;
}

/* The web app's own sign-in. */
.signin {
  display: inline-flex;
  flex: none;
  gap: 8px;
  align-items: center;
  padding: 10px 18px;
  border: 2px solid var(--heading);
  border-radius: 999px;
  background: var(--card);
  color: var(--heading);
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
}

.signin:hover {
  background: var(--heading);
  color: var(--paper);
}

.signin svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.brand {
  display: inline-flex;
  gap: 14px;
  align-items: center;
  color: var(--heading);
  font-size: 1.75rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  text-decoration: none;
}

.brand img {
  border-radius: 18px;
  box-shadow: 0 4px 14px rgb(18 40 70 / 0.22);
}

@media (max-width: 600px) {
  .brand img {
    width: 60px;
    height: 60px;
    border-radius: 15px;
  }
}

.hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: 48px;
  align-items: center;
  margin-top: 40px;
}

.badge {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  margin: 0 0 18px;
  padding: 6px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--card);
  color: var(--heading);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--red);
  box-shadow: 0 0 0 0 var(--red);
  animation: ping 2s ease-out infinite;
}

@keyframes ping {
  70% {
    box-shadow: 0 0 0 8px transparent;
  }
  100% {
    box-shadow: 0 0 0 0 transparent;
  }
}

@media (prefers-reduced-motion: reduce) {
  .dot {
    animation: none;
  }
}

h1 {
  margin: 0 0 20px;
  color: var(--heading);
  font-size: clamp(2.6rem, 7vw, 4.4rem);
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1.04;
}

.accent {
  display: block;
  color: var(--red);
}

.lede {
  max-width: 34em;
  margin: 0 0 32px;
  color: var(--muted);
  font-size: 1.1rem;
}

/* Store badges: dark pills like the stores' own, but not links until launch. */
.stores {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.store {
  display: inline-flex;
  gap: 12px;
  align-items: center;
  min-width: 220px;
  padding: 10px 20px 10px 16px;
  border: 1px solid rgb(255 255 255 / 0.12);
  border-radius: 14px;
  background: #0b1a2e;
  color: #fff;
  box-shadow: 0 6px 18px rgb(18 40 70 / 0.18);
}

.store svg {
  flex: none;
  width: 30px;
  height: 30px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
}

.store span {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.store small {
  color: #b9c4d4;
  font-size: 0.75rem;
}

.store strong {
  font-size: 1.25rem;
  letter-spacing: -0.01em;
}

/* Early access: a plain form posting to the server, which sends people to
   thanks.html or back to one of the #early-* messages below. */
.early {
  max-width: 34em;
  margin: 0 0 28px;
  padding: 22px 24px 18px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--card);
  box-shadow: 0 10px 30px rgb(18 40 70 / 0.1);
}

.early-title {
  margin: 0 0 4px;
  font-size: 1.3rem;
}

.early-note {
  margin: 0 0 14px;
  color: var(--muted);
  font-size: 0.95rem;
}

.early-msg {
  display: none;
  margin: 0 0 14px;
  padding: 10px 14px;
  border-radius: 12px;
  background: color-mix(in srgb, var(--red) 12%, transparent);
  color: var(--text);
  font-size: 0.95rem;
  font-weight: 600;
}

.early-msg:target {
  display: block;
  scroll-margin-top: 160px;
}

.early-platform {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin: 0 0 12px;
  padding: 0;
  border: 0;
}

.early-platform legend {
  float: left;
  margin-right: 4px;
  padding: 0;
  color: var(--muted);
  font-size: 0.95rem;
}

@media (max-width: 600px) {
  .early-platform legend {
    float: none;
    margin-bottom: 6px;
  }
}

.choice {
  position: relative;
}

.choice input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.choice span {
  display: inline-block;
  padding: 5px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
}

.choice input:checked + span {
  border-color: var(--heading);
  background: var(--heading);
  color: var(--paper);
}

.choice input:focus-visible + span {
  outline: 3px solid var(--water);
  outline-offset: 2px;
}

.early-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.early-row input {
  flex: 1 1 14em;
  min-width: 0;
  padding: 12px 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--paper);
  color: var(--text);
  font: inherit;
}

.early-row input:focus-visible {
  border-color: var(--heading);
  outline: 3px solid var(--water);
  outline-offset: 1px;
}

.early-row button,
.cta {
  flex: none;
  padding: 12px 22px;
  border: 0;
  border-radius: 999px;
  background: var(--button);
  color: #fff;
  font: inherit;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
}

.early-row button:hover,
.cta:hover {
  background: var(--button-hover);
  color: #fff;
}

.early-row button:focus-visible {
  outline: 3px solid var(--water);
  outline-offset: 2px;
}

.early-fine {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 0.8rem;
}

/* A field only bots fill in. */
.hp {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.phone {
  margin: 0;
  justify-self: center;
  width: min(300px, 100%);
  transform: rotate(3deg);
  filter: drop-shadow(0 24px 40px rgb(18 40 70 / 0.28));
}

.phone svg {
  display: block;
  width: 100%;
  height: auto;
}

@media (max-width: 820px) {
  .hero {
    padding-bottom: 56px;
  }

  .hero-inner {
    grid-template-columns: 1fr;
    gap: 48px;
    margin-top: 28px;
  }

  .phone {
    width: min(250px, 72%);
  }
}

main {
  padding-bottom: 16px;
}

section {
  padding: 72px 0 0;
}

h2 {
  margin: 0 0 28px;
  color: var(--heading);
  font-size: clamp(1.6rem, 4vw, 2.2rem);
  letter-spacing: -0.02em;
  line-height: 1.2;
}

h3 {
  margin: 0 0 6px;
  font-size: 1.15rem;
}

.features,
.points {
  display: grid;
  gap: 18px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.features {
  grid-template-columns: repeat(auto-fill, minmax(min(300px, 100%), 1fr));
}

.features li {
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--card);
  transition:
    transform 0.15s ease,
    box-shadow 0.15s ease;
}

.features li:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgb(18 40 70 / 0.08);
}

.icon {
  width: 44px;
  height: 44px;
  margin-bottom: 14px;
  padding: 10px;
  border-radius: 12px;
  background: color-mix(in srgb, var(--red) 12%, transparent);
  fill: none;
  stroke: var(--red);
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.features p,
.points p {
  margin: 0;
  color: var(--muted);
}

/* Privacy: a navy band. */
.privacy {
  margin-top: 72px;
  padding: 64px 0;
  background: var(--navy);
  color: #fff;
}

@media (prefers-color-scheme: dark) {
  .privacy {
    background: var(--card);
    border-block: 1px solid var(--line);
  }
}

.privacy h2 {
  color: #fff;
}

.points {
  grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr));
  gap: 28px;
}

.points li {
  padding-left: 18px;
  border-left: 3px solid var(--red);
}

.privacy .points p {
  color: #c9d3e1;
}

.soon {
  padding-bottom: 56px;
  text-align: center;
}

.soon h2 {
  margin-bottom: 8px;
}

.soon p {
  margin: 0;
  color: var(--muted);
}

.soon .cta {
  display: inline-block;
  margin-top: 20px;
}

footer {
  border-top: 1px solid var(--line);
  padding: 24px 0 40px;
  color: var(--muted);
  font-size: 0.95rem;
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 24px;
  align-items: center;
  justify-content: space-between;
}

.brand-small {
  color: var(--text);
  font-weight: 800;
}

footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
}

/* thanks.html, where the early access form lands. */
.thanks {
  min-height: calc(100vh - 90px);
}

.thanks-card {
  max-width: 32em;
  margin: 64px auto 0;
  padding: 40px 32px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: var(--card);
  box-shadow: 0 16px 40px rgb(18 40 70 / 0.12);
  text-align: center;
}

.thanks-card h1 {
  margin-bottom: 12px;
  font-size: clamp(2rem, 6vw, 2.8rem);
}

.thanks-card p {
  margin: 0 0 8px;
  color: var(--muted);
}

.thanks-card .cta {
  display: inline-block;
  margin-top: 16px;
}

.tick {
  width: 64px;
  height: 64px;
  margin-bottom: 12px;
  fill: none;
  stroke: var(--button);
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
