/* ArrowFly marketing landing (web_hosting/index.html only).
   Mirrors the app's design tokens: one app green #4E8F34, Inter, white cards on a
   light-grey page, 16-20px radii. The share pages (/u /s /t /e) keep style.css —
   nothing here is shared with them. Mobile-first; no JavaScript. */

:root {
  --green: #4e8f34;          /* canonical app green */
  --green-dark: #3f7227;     /* pressed / current-target green in the app */
  --green-tint: #eaf4e4;
  --page: #f7f8f9;
  --surface: #ffffff;
  --title: #1e1e1e;
  --text: #4b5563;
  --muted: #6b7280;
  --border: #e5e7eb;
  --radius: 20px;
  --shadow: 0 10px 40px rgba(0, 0, 0, 0.10);
  --gutter: 16px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--surface);
  color: var(--title);
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  line-height: 1.5;
  overflow-x: hidden;
}

img { display: block; max-width: 100%; height: auto; }

a { color: inherit; }

h1, h2, h3 { margin: 0; letter-spacing: -0.03em; line-height: 1.12; }
h1 { font-size: clamp(2.4rem, 7vw, 4rem); font-weight: 800; }
h2 { font-size: clamp(1.7rem, 4.5vw, 2.5rem); font-weight: 700; }
h3 { font-size: clamp(1.35rem, 3vw, 1.7rem); font-weight: 700; }
p { margin: 0; }

.container {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.eyebrow {
  color: var(--green);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 12px;
}
.eyebrow--light { color: #d6ebc9; }

.lead {
  font-size: clamp(1.05rem, 2.4vw, 1.25rem);
  color: var(--text);
  margin-top: 16px;
  max-width: 34rem;
}

/* ── Buttons (app PrimaryButton: green, 12px radius, semi-bold) ─────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 26px;
  border-radius: 12px;
  background: var(--green);
  color: #fff;
  font-weight: 600;
  font-size: 1rem;
  letter-spacing: -0.01em;
  text-decoration: none;
  transition: background 0.15s ease, transform 0.15s ease;
}
.btn:hover { background: var(--green-dark); }
.btn:active { transform: translateY(1px); }
.btn:focus-visible { outline: 3px solid #a7d18f; outline-offset: 2px; }
.btn--small { min-height: 40px; padding: 0 16px; font-size: 0.9rem; }
.btn--light { background: #fff; color: var(--green); }
.btn--light:hover { background: var(--green-tint); }

/* ── Nav ──────────────────────────────────────────────────────────────── */
.nav {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: saturate(180%) blur(12px);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--border);
}
.nav__inner {
  display: flex;
  align-items: center;
  gap: 16px;
  min-height: 64px;
}
.nav__brand img { width: 112px; }
.nav__links { display: none; margin-left: auto; gap: 28px; }
.nav__links a {
  text-decoration: none;
  color: var(--text);
  font-weight: 500;
  font-size: 0.95rem;
}
.nav__links a:hover { color: var(--green); }
.nav .btn--small { margin-left: auto; }

/* ── Phone frame around the real app screenshots ──────────────────────── */
.phone {
  margin: 0;
  width: 100%;
  max-width: 280px;
  border-radius: 36px;
  padding: 8px;
  background: #111;
  box-shadow: var(--shadow), 0 2px 6px rgba(0, 0, 0, 0.12);
}
.phone img { border-radius: 28px; width: 100%; }

/* ── Hero ─────────────────────────────────────────────────────────────── */
.hero {
  background: linear-gradient(180deg, var(--surface) 0%, var(--page) 100%);
  padding: 48px 0 56px;
}
.hero__inner {
  display: grid;
  gap: 40px;
  align-items: center;
}
.hero__cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 16px;
  margin-top: 28px;
}
.hero__platforms { color: var(--muted); font-size: 0.95rem; font-weight: 500; }
.hero__phones {
  position: relative;
  display: flex;
  justify-content: center;
  min-height: 420px;
}
.hero__phones .phone--front { position: relative; z-index: 2; max-width: 230px; }
.hero__phones .phone--back {
  position: absolute;
  max-width: 200px;
  transform: translate(-88%, 28px) rotate(-6deg);
  left: 50%;
}
.hero__phones .phone--front { transform: translateX(26%); }

/* ── Sections ─────────────────────────────────────────────────────────── */
.section-head { text-align: center; max-width: 40rem; margin: 0 auto 40px; }

.features { padding: 72px 0 24px; }

.feature {
  display: grid;
  gap: 28px;
  align-items: center;
  justify-items: center;
  padding: 32px 0;
}
.feature__copy { max-width: 32rem; }
.feature .phone, .clubs .phone { max-width: 240px; }
.feature__copy p { color: var(--text); margin-top: 12px; font-size: 1.05rem; }

.ticks { list-style: none; padding: 0; margin: 18px 0 0; display: grid; gap: 10px; }
.ticks li {
  position: relative;
  padding-left: 30px;
  color: var(--title);
  font-weight: 500;
}
.ticks li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 2px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--green-tint)
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5.5 10.5l3 3 6-7' fill='none' stroke='%234e8f34' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E")
    center / 16px no-repeat;
}

/* ── Clubs band ───────────────────────────────────────────────────────── */
.clubs {
  background: var(--green);
  color: #fff;
  padding: 64px 0;
  margin-top: 48px;
}
.clubs__inner {
  display: grid;
  gap: 36px;
  align-items: center;
  justify-items: center;
}
.clubs__copy { max-width: 32rem; }
.clubs__copy p { margin: 14px 0 26px; color: #eef6ea; font-size: 1.05rem; }
.clubs .phone { background: #0b1a05; }

/* ── Screens strip ────────────────────────────────────────────────────── */
.strip { padding: 72px 0 64px; background: var(--page); }
.strip__track {
  display: flex;
  gap: 20px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding: 8px var(--gutter) 28px;
  scrollbar-width: thin;
}
.strip__track .phone--sm {
  flex: 0 0 200px;
  scroll-snap-align: center;
  border-radius: 30px;
  padding: 7px;
}
.strip__track .phone--sm img { border-radius: 24px; }

/* ── Final CTA ────────────────────────────────────────────────────────── */
.final { padding: 24px var(--gutter) 72px; background: var(--page); }
.final__inner {
  background: var(--green);
  color: #fff;
  border-radius: var(--radius);
  text-align: center;
  padding: 48px 24px;
}
.final__inner p { margin: 10px 0 24px; color: #eef6ea; }

/* ── Footer ───────────────────────────────────────────────────────────── */
.footer { border-top: 1px solid var(--border); padding: 28px 0 36px; }
.footer__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px 28px;
  justify-content: space-between;
}
.footer nav { display: flex; gap: 22px; }
.footer nav a { color: var(--text); text-decoration: none; font-size: 0.95rem; }
.footer nav a:hover { color: var(--green); }
.footer__copy { color: var(--muted); font-size: 0.9rem; }

/* Narrow phones: keep both hero phones inside the viewport. */
@media (max-width: 420px) {
  .hero__phones { min-height: 380px; }
  .hero__phones .phone--front { max-width: 190px; transform: translateX(22%); }
  .hero__phones .phone--back { max-width: 165px; transform: translate(-82%, 24px) rotate(-6deg); }
}

/* ── Larger screens ───────────────────────────────────────────────────── */
@media (min-width: 720px) {
  :root { --gutter: 24px; }
  .nav__links { display: flex; }
  .nav .btn--small { margin-left: 8px; }
  .hero { padding: 72px 0 80px; }
  .hero__phones { min-height: 520px; }
  .hero__phones .phone--front { max-width: 270px; }
  .hero__phones .phone--back { max-width: 240px; }
  .strip__track { justify-content: safe center; }
}

@media (min-width: 960px) {
  .hero__inner { grid-template-columns: 1.05fr 1fr; gap: 56px; }
  .feature { grid-template-columns: 1fr 1fr; gap: 64px; padding: 48px 0; }
  .feature .phone { justify-self: center; max-width: 280px; }
  .clubs .phone { max-width: 280px; }
  .feature--flip .feature__copy { order: 2; }
  .clubs__inner { grid-template-columns: 1fr 1.2fr; gap: 64px; }
  .clubs .phone { justify-self: end; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn { transition: none; }
}
