/* flightdata.dev/: the page the Swift server serves at the root. Dark, quiet, one accent taken from the app icon. */
:root {
  --bg: #141416;
  --ink: #f2f2f4;
  --muted: #98989f;
  --line: #2c2e31;
  --card: #1e2023;
  --accent: #ff7a32;      /* between the icon's #ff8737 and #e74f18 */
  --accent-deep: #e74f18;
  --danger: #ff6b6b;
}
* { box-sizing: border-box; margin: 0; }
html, body { height: 100%; }
body {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 24px 16px;
  background: var(--bg);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "Helvetica Neue", Helvetica, Arial, sans-serif;
  text-align: center;
}
main { flex: 1; width: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 16px; padding: 16px 0 24px; }

.icon {
  width: clamp(84px, 18vw, 112px);
  height: auto;
  border-radius: 24%;
  box-shadow: 0 18px 50px rgba(231, 79, 24, 0.28), 0 2px 8px rgba(0, 0, 0, 0.5);
  margin-bottom: 4px;
}
h1 {
  font-size: clamp(44px, 12vw, 96px);
  font-weight: 600;
  letter-spacing: -0.035em;
  line-height: 1;
}
/* The i's dot is the signal's end point, as on the icon. */
.i { position: relative; }
.i::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 0.09em;
  width: 0.17em;
  height: 0.17em;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0.14em var(--accent);
  transform: translateX(-50%);
}
.data { color: var(--muted); }
.tagline { font-size: clamp(18px, 2.6vw, 22px); color: var(--ink); font-weight: 500; margin-top: 4px; }
.detail { max-width: 36em; text-wrap: balance; font-size: 15px; line-height: 1.55; color: var(--muted); margin-top: -8px; }

.next { font-size: 15px; display: flex; align-items: center; }
.next:empty { display: none; }
.next a { color: var(--muted); text-decoration: none; }
.next a:hover, .next a:focus-visible { color: var(--ink); }
.next a.primary {
  display: inline-block;
  padding: 10px 18px;
  border-radius: 999px;
  background: linear-gradient(#ff8737, var(--accent-deep));
  color: #fff;
  font-weight: 600;
  box-shadow: 0 6px 18px rgba(231, 79, 24, 0.3);
}
.next a.primary:hover, .next a.primary:focus-visible { filter: brightness(1.06); color: #fff; }
a:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

/* Two ways to read more, above the footer: the app and the kit, each a tile led by its icon. The tiles adapt, as on
   icloud.com: side by side they narrow with the window (and grow taller as the text wraps); below 640px they stack,
   each the full width, and turn into wide rows with the icon on the left. */
.cards {
  width: 100%;
  max-width: 720px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  margin: 12px 0 0;   /* with main's 16px gap: 28px below the words or the button */
}
.card {
  min-height: 280px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 10px;
  padding: 24px 28px 20px;
  border: 1px solid var(--line);
  border-radius: 28px;
  background: linear-gradient(180deg, #23252a, var(--card));
  color: var(--ink);
  text-decoration: none;
  transition: border-color .15s, transform .2s;
}
.card:hover, .card:focus-visible { border-color: #4a4d53; transform: translateY(-2px); }
.card img {
  width: 88px; height: 88px; border-radius: 24%; margin-bottom: 6px;
  box-shadow: 0 12px 30px rgba(231, 79, 24, 0.28), 0 2px 6px rgba(0, 0, 0, 0.45);
}
.card .words { display: flex; flex-direction: column; gap: 8px; flex: 1; }
.card .title { font-weight: 600; font-size: 19px; }
.card .line { color: var(--muted); font-size: 14px; line-height: 1.5; }
.card .go { margin-top: auto; padding-top: 8px; color: var(--muted); font-size: 14px; font-weight: 500; }
.card .go span { display: inline-block; transition: transform .15s; }
.card:hover .go, .card:focus-visible .go { color: var(--accent); }
.card:hover .go span, .card:focus-visible .go span { transform: translateX(3px); }
@media (max-width: 640px) {
  .cards { grid-template-columns: 1fr; gap: 14px; }
  .card { min-height: 0; flex-direction: row; align-items: flex-start; text-align: left; gap: 18px; padding: 20px; border-radius: 22px; }
  .card img { width: 72px; height: 72px; margin: 0; flex: none; }
  .card .words { gap: 6px; }
  .card .go { padding-top: 4px; }
}

/* A short window (a laptop's Safari with its toolbars): everything tightens so the footer stays on screen. */
@media (max-height: 760px) and (min-width: 641px) {
  body { padding-top: 16px; padding-bottom: 16px; }
  main { gap: 12px; padding: 8px 0 16px; }
  h1 { font-size: clamp(44px, 11vh, 96px); }
  .cards { margin-top: 8px; }
  .card { min-height: 0; padding: 18px 24px 16px; gap: 8px; }
  .card img { width: 72px; height: 72px; margin-bottom: 4px; }
}

/* A plain footer bar: who makes it on the left, where to read more on the right. */
footer {
  width: 100%;
  max-width: 1080px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px 24px;
  flex-wrap: wrap;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  font-size: 13px;
  color: var(--muted);
}
footer .maker { display: flex; align-items: baseline; gap: 12px; }
footer nav { display: flex; align-items: baseline; gap: 6px 10px; flex-wrap: wrap; }
footer nav .sep { color: var(--muted); opacity: 0.5; }
footer nav a { color: var(--muted); text-decoration: none; }
footer nav a:hover, footer nav a:focus-visible { color: var(--ink); }
@media (max-width: 560px) {
  footer { flex-direction: column; align-items: center; text-align: center; }
  footer nav { justify-content: center; }
}
/* The Diradical wordmark, as on diradical.com: the two i's carry the two unpaired electrons. */
.logo {
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -0.035em;
  line-height: 1;
  color: var(--ink);
  text-decoration: none;
}
.logo .dot { position: relative; }
.logo .dot::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 0.09em;
  width: 0.17em;
  height: 0.17em;
  border-radius: 50%;
  background: #6aa3ff;   /* blue, the console's dark-mode accent */
  transform: translateX(-50%);
}

/* The way in, quiet, top right: "Log in", or once signed in, the person menu the console also uses. */
.account { position: fixed; top: 12px; right: 16px; }
.login { display: inline-block; font-size: 14px; color: var(--muted); text-decoration: none; padding: 6px 4px; }
.login:hover, .login:focus-visible { color: var(--ink); }
.menu { position: relative; text-align: left; }
.menu > summary { list-style: none; cursor: pointer; width: 32px; height: 32px; border-radius: 50%; color: var(--muted); display: block; }
.menu > summary::-webkit-details-marker { display: none; }
.menu > summary:hover, .menu[open] > summary { color: var(--ink); }
.menu > summary:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.menu .panel {
  position: absolute; right: 0; top: 40px; width: max-content; min-width: 216px; max-width: calc(100vw - 24px);
  padding: 6px; background: var(--bg); border: 1px solid var(--line); border-radius: 10px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.45); font-size: 15px;
}
.menu .who { display: flex; flex-direction: column; gap: 2px; background: var(--card); border-radius: 8px; padding: 10px 11px; margin-bottom: 6px; }
.menu .who .name { font-weight: 600; white-space: nowrap; }
.menu .who .login-name { color: var(--muted); font-size: 13px; overflow-wrap: anywhere; }
.menu .panel a, .menu .panel button {
  display: block; width: 100%; text-align: left; padding: 7px 10px; border: 0; border-radius: 6px;
  background: none; color: var(--ink); font: inherit; text-decoration: none; cursor: pointer;
}
.menu .panel a:hover, .menu .panel button:hover { background: var(--card); }
.menu .panel hr { border: 0; border-top: 1px solid var(--line); margin: 6px 3px; }
.menu .panel form { margin: 0; }
.menu .panel .danger { color: var(--danger); }

/* /plans: three prices over a table of limits, then short notes. Same palette; the table scrolls sideways before it squeezes. */
main.plans { justify-content: flex-start; max-width: 760px; }
.plans .back { color: var(--muted); text-decoration: none; font-size: 15px; }
.plans .back:hover, .plans .back:focus-visible { color: var(--ink); }
.plans h1.page { font-size: clamp(36px, 8vw, 56px); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.tiers { width: 100%; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.tier { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 18px 12px; }
.tier h2 { font-size: 15px; font-weight: 600; color: var(--muted); }
.tier .price { font-size: clamp(20px, 5vw, 26px); font-weight: 600; margin-top: 6px; }
.tier .price span { font-size: 13px; font-weight: 400; color: var(--muted); }
.tier .alt { font-size: 13px; color: var(--muted); margin-top: 2px; }
.tablewrap { width: 100%; overflow-x: auto; }
.limits { width: 100%; border-collapse: collapse; font-size: 15px; text-align: right; }
.limits caption { text-align: left; color: var(--muted); font-size: 13px; padding-bottom: 8px; }
.limits th, .limits td { padding: 10px 12px; border-top: 1px solid var(--line); }
.limits thead th { border-top: 0; font-weight: 600; }
.limits tbody th { text-align: left; font-weight: 400; color: var(--muted); white-space: nowrap; }
.limits td:last-child, .limits thead th:last-child { min-width: 9em; }
.notes { width: 100%; text-align: left; list-style: none; padding: 0; display: grid; gap: 10px; font-size: 15px; line-height: 1.5; color: var(--muted); }
.notes li { padding-left: 16px; position: relative; }
.notes li::before { content: ""; position: absolute; left: 0; top: 0.6em; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }
.contact { font-size: 15px; color: var(--muted); }
.contact a { color: var(--ink); }
