/* Planely web — shared styles. Mirrors the mobile app color system. */

:root {
  --bg: #071c36;
  --card: #0c2d5f;
  --grid: rgba(56, 150, 255, 0.13);
  --border: rgba(56, 150, 255, 0.30);
  --text: #f8fafc;
  --text-2: #8fb0c8;
  --text-3: #7a9ab0;
  --label: #5a7a9a;
  --accent: #38bdf8;
  --warning: #fbbf24;
  --max: 760px;
}

* { box-sizing: border-box; }

html, body { margin: 0; padding: 0; }

body {
  background-color: var(--bg);
  background-image:
    linear-gradient(var(--grid) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid) 1px, transparent 1px);
  background-size: 28px 28px;
  color: var(--text);
  font-family: "Barlow Condensed", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 18px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

.wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding: 28px 22px 80px;
}
/* Landing page uses a wider container so the four feature cards sit on one row. */
.wrap--wide { max-width: 1080px; }

/* Header / nav */
.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 6px 0 28px;
  flex-wrap: wrap;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--text);
}
.brand img {
  width: 38px;
  height: 38px;
  border-radius: 9px;
  display: block;
}
.brand .name {
  font-size: 26px;
  font-weight: 600;
  letter-spacing: 0.3px;
}
.nav {
  display: flex;
  gap: 20px;
  align-items: center;
}
.nav a {
  color: var(--text-2);
  text-decoration: none;
  font-size: 17px;
  letter-spacing: 0.3px;
}
.nav a:hover { color: var(--accent); }

/* Hero (landing) */
.hero {
  position: relative;
  display: flex;
  align-items: center;
  gap: 56px;
  padding: 36px 0 28px;
}
/* Dashed flight path arcing across the hero, with a plane riding it. */
.flightpath {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
  overflow: visible;
}
.hero-text {
  position: relative;
  z-index: 1;
  flex: 1 1 0;
  min-width: 0;
}
.hero h1 {
  font-size: 54px;
  line-height: 1.04;
  margin: 0 0 16px;
  font-weight: 600;
  letter-spacing: 0.5px;
}
.hero p.tagline {
  font-size: 23px;
  color: var(--text-2);
  margin: 0 0 30px;
  max-width: 520px;
}
.cta-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
}
/* Official Apple App Store badge — fixed artwork, sized by height only. */
.badge {
  display: inline-flex;
  border-radius: 12px;
}
.badge--soon { cursor: default; }
.badge img {
  height: 54px;
  width: auto;
  display: block;
}
/* Pre-launch caption under the CTA row — remove once the listing is live. */
.cta-note {
  margin: 14px 0 0;
  font-size: 16px;
  color: var(--text-3);
  letter-spacing: 0.4px;
}
.cta-note::before {
  content: "";
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
  margin-right: 9px;
  vertical-align: middle;
}
.cta {
  display: inline-block;
  background: var(--accent);
  color: #04233f;
  font-weight: 600;
  font-size: 19px;
  letter-spacing: 0.4px;
  text-decoration: none;
  padding: 13px 26px;
  border-radius: 12px;
}
.cta:hover { filter: brightness(1.06); }
.cta.secondary {
  background: transparent;
  color: var(--accent);
  border: 1px solid var(--border);
}

/* Phone screenshot */
.hero-shot {
  flex: 0 0 auto;
  position: relative;
  z-index: 1;
}
/* Radar / radius rings behind the phone — echoes the app's radius circle. */
.hero-shot .radar {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 560px;
  height: 560px;
  transform: translate(-50%, -50%);
  z-index: 0;
  pointer-events: none;
  overflow: visible;
}
.hero-shot::before {
  content: "";
  position: absolute;
  inset: -16% -22%;
  background: radial-gradient(
    ellipse at 50% 46%,
    rgba(249, 115, 22, 0.34) 0%,
    rgba(249, 115, 22, 0.12) 42%,
    rgba(249, 115, 22, 0) 70%
  );
  filter: blur(26px);
  z-index: 0;
  pointer-events: none;
}
/* Two staggered phones: the lock-screen notification in front (the hook),
   the in-app Watch tab fanned behind it. */
.hero-shot .phones {
  position: relative;
  z-index: 1;
  width: 430px;
  max-width: 72vw;
}
.hero-shot .phone {
  display: block;
  border-radius: 40px;
  border: 10px solid #2a2e35;
  box-shadow:
    0 0 0 1px rgba(190, 205, 225, 0.18),
    0 28px 70px rgba(0, 0, 0, 0.6);
  /* Render the rotated bitmap at full device resolution to keep text crisp. */
  image-rendering: auto;
  backface-visibility: hidden;
}
.phone--lock {
  position: relative;
  z-index: 2;
  width: 60%;
  transform: rotate(-2deg);
}
.phone--app {
  position: absolute;
  top: 3%;
  left: 47%;
  z-index: 1;
  width: 59%;
  transform: rotate(2deg);
}

/* Feature cards */
.features {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin: 44px 0;
}
@media (max-width: 880px) {
  .features { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 480px) {
  .features { grid-template-columns: 1fr; }
}
.feature {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 22px;
}
.feature-head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}
.feature-icon {
  flex: 0 0 auto;
  width: 40px;
  height: 40px;
  border-radius: 11px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(249, 115, 22, 0.13);
  border: 1px solid rgba(249, 115, 22, 0.28);
  color: #f97316;
}
.feature-icon svg {
  width: 21px;
  height: 21px;
}
.feature h3 {
  margin: 0;
  font-size: 22px;
  font-weight: 600;
  color: var(--text);
  line-height: 1.1;
}
.feature p {
  margin: 0;
  color: var(--text-3);
  font-size: 17px;
}

/* Plans — Free vs Pro */
.plans { margin: 52px 0 8px; }
.plans-head { text-align: center; margin-bottom: 26px; }
.plans-head h2 {
  font-size: 34px;
  font-weight: 600;
  margin: 0 0 8px;
  letter-spacing: 0.4px;
}
.plans-head p {
  margin: 0;
  font-size: 19px;
  color: var(--text-2);
}
.plans-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  max-width: 760px;
  margin: 0 auto;
}
@media (max-width: 620px) {
  .plans-grid { grid-template-columns: 1fr; }
}
.plan {
  position: relative;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 24px 24px 26px;
}
.plan--pro {
  border-color: rgba(245, 158, 11, 0.55);
  box-shadow: 0 0 0 1px rgba(245, 158, 11, 0.18), 0 18px 50px rgba(0, 0, 0, 0.35);
}
.plan-badge {
  position: absolute;
  top: 18px;
  right: 18px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: #0e141d;
  background: #f59e0b;
  padding: 3px 10px;
  border-radius: 999px;
}
.plan-name {
  font-size: 22px;
  font-weight: 600;
  color: var(--text);
  letter-spacing: 0.3px;
}
.plan--pro .plan-name { color: #f5c07a; }
.plan-price {
  font-size: 28px;
  font-weight: 600;
  color: var(--text);
  margin: 2px 0 16px;
}
.plan--pro .plan-price { font-size: 22px; color: var(--text-2); }
.plan-list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.plan-list li {
  position: relative;
  padding: 7px 0 7px 26px;
  color: var(--text-2);
  font-size: 17px;
  border-top: 1px solid rgba(56, 150, 255, 0.10);
}
.plan-list li:first-child { border-top: none; }
.plan-list li strong { color: var(--text); font-weight: 600; }
.plan-list li::before {
  content: "";
  position: absolute;
  left: 4px;
  top: 14px;
  width: 11px;
  height: 6px;
  border-left: 2px solid var(--accent);
  border-bottom: 2px solid var(--accent);
  transform: rotate(-45deg);
}
.plan--pro .plan-list li::before { border-color: #f59e0b; }
.plan--pro .plan-list li:first-child::before { display: none; }
.plan--pro .plan-list li:first-child { padding-left: 0; }
.plans-note {
  max-width: 760px;
  margin: 20px auto 0;
  text-align: center;
  font-size: 15px;
  color: var(--text-3);
}

/* Legal / content pages */
.doc h1 {
  font-size: 40px;
  font-weight: 600;
  margin: 8px 0 4px;
  letter-spacing: 0.4px;
}
.doc .effective {
  color: var(--label);
  text-transform: uppercase;
  letter-spacing: 1px;
  font-size: 14px;
  margin-bottom: 30px;
}
.doc h2 {
  font-size: 25px;
  font-weight: 600;
  color: var(--text);
  margin: 34px 0 10px;
}
.doc h3 {
  font-size: 20px;
  font-weight: 600;
  color: var(--text-2);
  margin: 22px 0 6px;
}
.doc p, .doc li {
  color: var(--text-2);
  font-size: 18px;
}
.doc strong { color: var(--text); font-weight: 600; }
.doc a { color: var(--accent); }
.doc ul { padding-left: 22px; }
.doc li { margin-bottom: 6px; }
.doc table {
  width: 100%;
  border-collapse: collapse;
  margin: 14px 0;
}
.doc th, .doc td {
  text-align: left;
  padding: 10px 12px;
  border: 1px solid var(--border);
  font-size: 16px;
  color: var(--text-2);
  vertical-align: top;
}
.doc th { color: var(--label); text-transform: uppercase; letter-spacing: 0.6px; font-size: 13px; }
.callout {
  background: var(--card);
  border: 1px solid var(--border);
  border-left: 3px solid var(--accent);
  border-radius: 10px;
  padding: 14px 18px;
  margin: 18px 0;
  color: var(--text-2);
  font-size: 17px;
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--grid);
  margin-top: 56px;
  padding-top: 22px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}
.site-footer .links a {
  color: var(--text-3);
  text-decoration: none;
  margin-right: 18px;
  font-size: 16px;
}
.site-footer .links a:hover { color: var(--accent); }
.site-footer .copy { color: var(--label); font-size: 15px; }

@media (max-width: 820px) {
  .hero {
    flex-direction: column-reverse;
    text-align: center;
    gap: 36px;
  }
  .flightpath { display: none; }
  .hero p.tagline { margin-left: auto; margin-right: auto; }
  .cta-row { justify-content: center; }
  .hero-shot .phones { max-width: 86vw; margin: 0 auto; }
}
@media (max-width: 560px) {
  .hero h1 { font-size: 40px; }
}
