/* pomodrome.com landing page. Auth pages keep their own /style.css. */
:root {
  /* From the app icon: dusk sky, tomato sun, runway lights */
  --night: #13173a;
  --dusk: #2e2462;
  --horizon: #8c4a78;
  --ground: #10122a;
  --sun: #f0603e;
  --button: #c83c1f;
  --button-hover: #b0331a;
  --lights: #ffd27a;
  /* Light sections: chart paper and VFR-chart magenta */
  --paper: #f1f3f0;
  --paper-2: #e6eae5;
  --ink: #1b1e33;
  --muted: #545a6e;
  --rule: #cfd5cd;
  --magenta: #a3106f;
  --strip: #f3e4b8;
  --strip-ifr: #d4e2f1;
  --strip-legend: #ead7ea;
  --strip-edge: #b49a53;
  --bay: #3a3f4f;
  --focus: #3d7bff;

  --head: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", Roboto, system-ui, sans-serif;
  --body: -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
  --gutter: 16px;
  --max: 1120px;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper: #171a2c;
    --paper-2: #1e2238;
    --ink: #eceef5;
    --muted: #a9aec2;
    --rule: #33384f;
    --magenta: #f07ac4;
    --strip: #463d22;
    --strip-ifr: #233448;
    --strip-legend: #3c2a40;
    --strip-edge: #7a6a3c;
    --bay: #0e1020;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --paper: #171a2c; --paper-2: #1e2238; --ink: #eceef5; --muted: #a9aec2; --rule: #33384f; --magenta: #f07ac4;
  --strip: #463d22; --strip-ifr: #233448; --strip-legend: #3c2a40; --strip-edge: #7a6a3c; --bay: #0e1020; color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 18px/1.6 var(--body);
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--magenta); text-underline-offset: 3px; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 4px; }

.wrap { width: 100%; max-width: var(--max); margin-left: auto; margin-right: auto; padding-left: var(--gutter); padding-right: var(--gutter); }
@media (min-width: 720px) { :root { --gutter: 32px; } }

/* Apple-style headings: the system font (SF Pro on Apple devices), semibold, tracked tight */
h1, h2, h3 { font-family: var(--head); font-weight: 600; margin: 0; letter-spacing: -0.022em; }
h3 { letter-spacing: -0.012em; }
h1 { font-size: clamp(2.4rem, 6.4vw, 4.5rem); line-height: 1.05; }
h2 { font-size: clamp(1.75rem, 3.6vw, 2.6rem); line-height: 1.12; }
h3 { font-size: 1.2rem; line-height: 1.3; }
p { margin: 0 0 1em; }
.section-lede { color: var(--muted); max-width: 36em; margin-top: 0.6em; }
main > section { padding: clamp(64px, 9vw, 112px) 0; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  color: #fff;
  background: linear-gradient(180deg, var(--night) 0%, var(--dusk) 55%, var(--horizon) 100%);
  overflow: hidden;
  isolation: isolate;
}
.sky { position: absolute; inset: 0 0 56px 0; width: 100%; height: calc(100% - 56px); z-index: -1; }
.stars circle { fill: #fff; opacity: 0.7; }
.route { fill: none; stroke: rgba(255, 255, 255, 0.42); stroke-width: 3; stroke-dasharray: 12 12; stroke-linecap: round; }
.plane { fill: #fff; }
.plane-still { display: none; }
@media (prefers-reduced-motion: reduce) {
  .plane-flying { display: none; }
  .plane-still { display: inline; }
}

.nav { display: flex; align-items: center; gap: 24px; padding-top: 18px; padding-bottom: 18px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: inherit; text-decoration: none; font-family: var(--head); font-weight: 600; font-size: 1.15rem; letter-spacing: -0.01em; }
.brand img { border-radius: 22%; }
.nav-links { display: flex; gap: 22px; margin-left: auto; }
.nav-links a { color: rgba(255, 255, 255, 0.82); text-decoration: none; font-size: 0.95rem; }
.nav-links a:hover { color: #fff; }
.nav-cta {
  color: #fff; text-decoration: none; font-weight: 600; font-size: 0.95rem;
  padding: 8px 16px; border: 1.5px solid rgba(255, 255, 255, 0.5); border-radius: 999px;
}
.nav-cta:hover { border-color: #fff; }
@media (max-width: 860px) { .nav-links { display: none; } .nav-cta { margin-left: auto; } }
@media (max-width: 400px) { .nav-cta { padding: 7px 12px; font-size: 0.88rem; } }

.hero-body {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: 48px;
  align-items: center;
  padding-top: clamp(24px, 6vw, 72px);
  padding-bottom: 96px;
}
.lede { font-size: clamp(1.08rem, 1.6vw, 1.25rem); color: rgba(255, 255, 255, 0.86); max-width: 31em; margin: 22px 0 30px; }

.signup label { display: block; font-size: 0.9rem; font-weight: 600; margin-bottom: 8px; }
.signup-row { display: flex; gap: 8px; max-width: 540px; }
.signup input[type="email"] {
  flex: 1 1 auto; min-width: 0;
  font: inherit; font-size: 1rem;
  padding: 13px 16px; border-radius: 12px;
  border: 1.5px solid rgba(255, 255, 255, 0.35);
  background: rgba(255, 255, 255, 0.96); color: #1b1e33;
}
.signup button {
  flex: 0 0 auto;
  font: inherit; font-size: 1rem; font-weight: 700;
  padding: 13px 20px; border-radius: 12px; border: 0;
  background: var(--button); color: #fff; cursor: pointer;
}
.signup button:hover { background: var(--button-hover); }
.signup button:disabled { opacity: 0.7; cursor: progress; }
.fineprint { font-size: 0.88rem; margin: 10px 0 0; color: rgba(255, 255, 255, 0.72); }
.fineprint.ok { color: var(--lights); font-weight: 600; }
.fineprint.err { color: #ffc2b4; font-weight: 600; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
@media (max-width: 520px) {
  .signup-row { flex-direction: column; }
  .signup button { width: 100%; }
}

.hero-screen { justify-self: center; width: min(320px, 100%); }
.menubar {
  display: flex; justify-content: flex-end; gap: 4px;
  padding: 4px 8px; margin: 0 -40px 0 -40px;
  background: rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border-radius: 8px; font-size: 0.85rem; font-weight: 600;
}
.mb-item { display: inline-flex; align-items: center; gap: 6px; padding: 2px 9px; border-radius: 5px; font-variant-numeric: tabular-nums; }
.mb-active { background: rgba(255, 255, 255, 0.26); }
.mb-dim { opacity: 0.85; }
.popover {
  position: relative; margin-top: 12px;
  border-radius: 14px; overflow: hidden;
  box-shadow: 0 28px 60px -18px rgba(5, 6, 20, 0.75), 0 0 0 1px rgba(255, 255, 255, 0.12);
}
@media (max-width: 860px) {
  .hero-body { grid-template-columns: 1fr; gap: 44px; padding-bottom: 88px; }
  .hero-screen { width: min(300px, 82%); }
  .menubar { margin: 0 -24px; }
}

.ground {
  position: absolute; left: 0; right: 0; bottom: 0; height: 56px;
  background: var(--ground);
  display: flex; justify-content: center; align-items: center; gap: clamp(28px, 6vw, 72px);
}
.ground span { width: 7px; height: 7px; border-radius: 50%; background: var(--lights); box-shadow: 0 0 10px 2px rgba(255, 210, 122, 0.45); }

/* ---------- Proof line ---------- */
.proof {
  font-family: var(--head); font-weight: 500; font-size: clamp(1.1rem, 2vw, 1.4rem); line-height: 1.45; letter-spacing: -0.012em;
  padding-top: 48px; margin-bottom: 0; color: var(--muted);
}
.proof strong { color: var(--ink); }

/* ---------- How it works ---------- */
.steps { list-style: none; padding: 0; margin: 48px 0 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px; }
.steps img { border-radius: 14px; box-shadow: 0 18px 40px -22px rgba(19, 23, 58, 0.55), 0 0 0 1px var(--rule); margin-bottom: 22px; width: 100%; }
.steps h3 { display: flex; align-items: baseline; gap: 10px; margin-bottom: 8px; }
.step-n { color: var(--magenta); }
.steps p { color: var(--muted); }
@media (max-width: 860px) {
  /* swipeable row on phones instead of three tall screenshots */
  .steps {
    grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: min(78%, 320px); gap: 20px;
    overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 12px;
    margin-left: calc(-1 * var(--gutter)); margin-right: calc(-1 * var(--gutter));
    padding-left: var(--gutter); padding-right: var(--gutter); scroll-padding: var(--gutter);
  }
  .steps li { scroll-snap-align: start; }
  .steps p { font-size: 1rem; }
}

/* ---------- Divert ---------- */
.divert { background: var(--night); color: #fff; }
.divert-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 56px; align-items: center; }
.divert p { color: rgba(255, 255, 255, 0.84); }
.divert h2 { margin-bottom: 20px; }
.shot { border-radius: 14px; box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.14), 0 30px 60px -24px #000; }
@media (max-width: 860px) { .divert-grid { grid-template-columns: 1fr; gap: 36px; } }

/* ---------- Career: ATC flight strips in a strip bay ---------- */
.bay {
  list-style: none; margin: 40px 0 0; padding: 14px;
  background: var(--bay); border-radius: 10px;
  display: grid; gap: 8px;
}
.strip {
  display: grid; grid-template-columns: 150px 130px minmax(0, 1fr);
  background: var(--strip); color: var(--ink);
  border-left: 10px solid var(--strip-edge);
  border-radius: 3px;
  font-size: 0.98rem;
}
.strip > span { padding: 10px 14px; }
.strip > span + span { border-left: 1px solid rgba(27, 30, 51, 0.22); }
.ident { font-family: var(--head); font-weight: 700; font-size: 1.2rem; align-self: center; white-space: nowrap; }
.req { font-family: var(--head); font-weight: 700; font-size: 0.92rem; align-self: stretch; display: flex; align-items: center; }
.what b { display: block; }
.what { color: var(--muted); }
.strip.ifr { background: var(--strip-ifr); border-left-color: #5d84b3; }
.strip.legend { background: var(--strip-legend); border-left-color: var(--magenta); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .strip > span + span { border-left-color: rgba(255, 255, 255, 0.16); } }
@media (max-width: 640px) {
  .bay { padding: 8px; }
  .strip { grid-template-columns: 104px minmax(0, 1fr); }
  .ident { grid-row: span 2; font-size: 0.95rem; padding: 10px; }
  .req { border-left: 1px solid rgba(27, 30, 51, 0.22); padding-bottom: 0 !important; font-size: 0.86rem; }
  .what { border-left: 1px solid rgba(27, 30, 51, 0.22); }
  .strip > span + span + span { padding-top: 2px; }
}
.notes { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; margin: 40px 0 0; }
.notes dt, .feature-list dt { font-weight: 700; margin-bottom: 4px; }
.notes dd, .feature-list dd { margin: 0; color: var(--muted); }
@media (max-width: 720px) { .notes { grid-template-columns: 1fr; gap: 22px; } }

/* ---------- Routes ---------- */
.routes { background: var(--paper-2); }
.route-list { list-style: none; padding: 0; margin: 40px 0 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 48px; }
.route-list li { align-content: start; padding: 22px 0; border-top: 2px dashed color-mix(in srgb, var(--magenta) 55%, transparent); display: grid; gap: 4px; }
.pair { font-family: var(--head); font-weight: 600; font-size: 1.45rem; color: var(--magenta); letter-spacing: 0.01em; font-variant-numeric: tabular-nums; }
.pair i { font-style: normal; font-family: var(--body); font-weight: 400; font-size: 0.95rem; color: var(--muted); margin: 0 6px; }
.route-list span:last-child { color: var(--muted); }
@media (max-width: 720px) { .route-list { grid-template-columns: 1fr; } }

/* ---------- Share ---------- */
.postcards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; margin-top: 40px; }
.postcards img { border-radius: 10px; box-shadow: 0 20px 44px -24px rgba(19, 23, 58, 0.6); }
.pair-shots { display: grid; grid-template-columns: repeat(2, minmax(0, 260px)); gap: 24px; margin-top: 40px; }
.pair-shots img { border-radius: 12px; box-shadow: 0 0 0 1px var(--rule); }
@media (max-width: 720px) {
  .postcards {
    grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: 74%;
    overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 12px;
    margin-left: calc(-1 * var(--gutter)); margin-right: calc(-1 * var(--gutter));
    padding-left: var(--gutter); padding-right: var(--gutter); scroll-padding: var(--gutter);
  }
  .postcards img { scroll-snap-align: start; }
  .pair-shots { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
}

/* ---------- Features ---------- */
.feature-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 36px 40px; margin: 40px 0 0; }
.feature-list > div { border-top: 1px solid var(--rule); padding-top: 16px; }
@media (max-width: 860px) { .feature-list { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .feature-list { grid-template-columns: 1fr; gap: 24px; } }

/* ---------- Maker ---------- */
.maker { display: flex; gap: 24px; align-items: center; padding-top: 0; }
.maker img { border-radius: 22%; flex: 0 0 auto; }
.maker p { font-family: var(--head); font-weight: 500; font-size: clamp(1.15rem, 2.2vw, 1.45rem); line-height: 1.45; letter-spacing: -0.01em; margin: 0; max-width: 34em; }

/* ---------- Pricing ---------- */
.pricing { background: linear-gradient(180deg, var(--dusk), var(--night)); color: #fff; }
.pricing-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 0.9fr); gap: 56px; align-items: center; }
.pricing h2 { margin-bottom: 20px; }
.pricing p { color: rgba(255, 255, 255, 0.86); }
.pricing strong { color: #fff; }
.currency { font-size: 0.92rem; color: rgba(255, 255, 255, 0.66) !important; }
.signup-card { background: rgba(255, 255, 255, 0.08); border: 1px solid rgba(255, 255, 255, 0.16); border-radius: 18px; padding: 28px; }
.launch { margin: 0; font-size: 1.05rem; }
.launch-price { font-family: var(--head); font-weight: 600; letter-spacing: -0.02em; font-size: 2.6rem; color: var(--lights); margin-right: 6px; vertical-align: -4px; }
.signup-card .currency { margin: 4px 0 20px; }
.signup-card .signup-row { flex-direction: column; }
.signup-card button { width: 100%; }
@media (max-width: 860px) { .pricing-grid { grid-template-columns: 1fr; gap: 32px; } .signup-card { padding: 22px; } }

/* ---------- FAQ ---------- */
.faq h2 { margin-bottom: 28px; }
.faq details { border-top: 1px solid var(--rule); max-width: 760px; }
.faq details:last-of-type { border-bottom: 1px solid var(--rule); }
.faq summary { cursor: pointer; padding: 18px 32px 18px 0; font-weight: 600; list-style: none; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 4px; top: 14px; font-size: 1.4rem; color: var(--magenta); font-weight: 400; }
.faq details[open] summary::after { content: "−"; }
.faq details p { color: var(--muted); padding-right: 32px; }

/* ---------- Footer ---------- */
.footer { background: var(--ground); color: rgba(255, 255, 255, 0.8); padding: 40px 0 48px; font-size: 0.95rem; }
.footer-grid { display: grid; grid-template-columns: auto 1fr auto; gap: 8px 24px; align-items: center; }
.footer .brand { color: #fff; }
.footer .tag { margin: 0; color: rgba(255, 255, 255, 0.6); }
.footer ul { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px 20px; }
.footer a { color: rgba(255, 255, 255, 0.86); }
.footer .copy { grid-column: 1 / -1; margin: 16px 0 0; color: rgba(255, 255, 255, 0.5); font-size: 0.85rem; }
@media (max-width: 720px) { .footer-grid { grid-template-columns: 1fr; } }

/* ---------- Plain pages (privacy, thanks) ---------- */
.page { padding: 48px 0 80px; }
.page h1 { font-size: clamp(2rem, 5vw, 3rem); margin-bottom: 24px; }
.page h2 { font-size: 1.3rem; margin: 36px 0 10px; }
.page p, .page li { max-width: 40em; }
.page-head { background: var(--night); color: #fff; }
.page-head .nav-links a { color: rgba(255, 255, 255, 0.82); }

.proof + .how { padding-top: 56px; }
.nw { white-space: nowrap; }
