/* ==========================================================================
   Pilot ShareCraft — Marketing Site
   Brand palette pulled directly from the iOS app (ColorPalette.swift)
   ========================================================================== */

:root {
  /* Brand colors sampled from the hero artwork background */
  --maastricht-blue: #0f334b;   /* deep navy */
  --freedom-blue: #317da4;      /* steel blue (primary) */
  --picton-blue: #6bb3d6;       /* light steel (derived) */
  --energising-yellow: #d1a02f; /* gold accent */
  --desire: #e0464e;            /* red — errors, unchanged */
  --success: #1c652e;           /* forest green */
  --aircraft-green: #1c652e;

  /* Semantic */
  --bg: #ffffff;
  --bg-soft: #f3f7fa;
  --bg-tint: #eaf3f8;
  --ink: #0a2238;
  --ink-soft: #41566b;
  --ink-faint: #6b7f93;
  --line: #e2ecf5;
  --card: #ffffff;

  --radius: 18px;
  --radius-sm: 12px;
  --shadow-sm: 0 2px 10px rgba(2, 44, 74, 0.06);
  --shadow-md: 0 14px 40px rgba(2, 44, 74, 0.12);
  --shadow-lg: 0 30px 70px rgba(2, 44, 74, 0.18);

  --maxw: 1140px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica,
    Arial, "Helvetica Neue", sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4 { line-height: 1.15; margin: 0 0 0.5em; color: var(--ink); letter-spacing: -0.02em; }
h1 { font-size: clamp(2.1rem, 5vw, 3.4rem); font-weight: 800; }
h2 { font-size: clamp(1.7rem, 3.5vw, 2.5rem); font-weight: 800; }
h3 { font-size: 1.2rem; font-weight: 700; }
p { margin: 0 0 1rem; color: var(--ink-soft); }
a { color: var(--freedom-blue); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; display: block; }

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 22px; }

.eyebrow {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--freedom-blue);
  margin-bottom: 0.6rem;
}

.section { padding: 84px 0; }
.section--tint { background: var(--bg-soft); }
.section__head { max-width: 720px; margin: 0 auto 54px; text-align: center; }
.section__head p { font-size: 1.1rem; }

/* ----------------------------- Buttons ---------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 700;
  font-size: 1rem;
  padding: 0.85rem 1.5rem;
  border-radius: 999px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
  text-decoration: none;
}
.btn:hover { text-decoration: none; transform: translateY(-2px); }
.btn--primary {
  background: linear-gradient(135deg, var(--freedom-blue) 0%, var(--picton-blue) 100%);
  color: #fff;
  border: none;
  box-shadow: 0 10px 24px rgba(0, 133, 255, 0.32);
}
.btn--primary:hover {
  background: linear-gradient(135deg, #0a74d8 0%, #3bb3f5 100%);
  box-shadow: 0 14px 30px rgba(0, 133, 255, 0.42);
}
.btn--ghost { background: rgba(255,255,255,0.1); color: #fff; border-color: rgba(255,255,255,0.45); }
.btn--ghost:hover { background: rgba(255,255,255,0.18); }
.btn--dark { background: var(--maastricht-blue); color: #fff; border: none; }
.btn--dark:hover { background: #04395f; }

/* App Store badge button */
.appstore {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  background: linear-gradient(135deg, var(--maastricht-blue) 0%, var(--freedom-blue) 100%);
  color: #fff;
  padding: 0.7rem 1.3rem;
  border-radius: 14px;
  text-decoration: none;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  box-shadow: 0 10px 24px rgba(2, 44, 74, 0.3);
}
.appstore:hover {
  transform: translateY(-2px);
  text-decoration: none;
  box-shadow: 0 14px 30px rgba(2, 44, 74, 0.38);
  background: linear-gradient(135deg, #04395f 0%, #1a90ff 100%);
}
.appstore svg { width: 26px; height: 26px; flex: none; }
.appstore span { display: block; line-height: 1.1; }
.appstore .small { font-size: 0.65rem; opacity: 0.85; }
.appstore .big { font-size: 1.15rem; font-weight: 600; letter-spacing: -0.01em; }

/* ----------------------------- Header ----------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--line);
}
.nav { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.brand { display: flex; align-items: center; gap: 0.6rem; font-weight: 800; color: var(--maastricht-blue); font-size: 1.12rem; }
.brand:hover { text-decoration: none; }
.brand img { width: 38px; height: 38px; }
.nav__links { display: flex; align-items: center; gap: 1.7rem; }
.nav__links a { color: var(--ink-soft); font-weight: 600; font-size: 0.95rem; }
.nav__links a:hover { color: var(--freedom-blue); text-decoration: none; }
.nav__cta { display: flex; align-items: center; gap: 0.8rem; }
.nav__toggle { display: none; background: none; border: 0; cursor: pointer; padding: 6px; }
.nav__toggle span { display: block; width: 24px; height: 2px; background: var(--maastricht-blue); margin: 5px 0; border-radius: 2px; transition: 0.2s; }

/* ----------------------------- Hero ------------------------------------- */
.hero {
  position: relative;
  background:
    radial-gradient(circle at 15% 10%, rgba(80,195,255,0.18), transparent 45%),
    radial-gradient(circle at 90% 0%, rgba(0,133,255,0.16), transparent 40%),
    linear-gradient(180deg, #f7fbff 0%, #ffffff 100%);
  overflow: hidden;
  padding: 70px 0 80px;
}
.hero__grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 48px; align-items: center; }
.hero__pill {
  display: inline-flex; align-items: center; gap: 0.5rem;
  background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow-sm);
  border-radius: 999px; padding: 0.4rem 0.9rem; font-size: 0.85rem; font-weight: 600; color: var(--ink-soft);
  margin-bottom: 1.2rem;
}
.hero__pill .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--success); }
.hero h1 { color: var(--maastricht-blue); }
.hero h1 .grad {
  background: linear-gradient(120deg, var(--freedom-blue), var(--picton-blue));
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.hero__sub { font-size: 1.18rem; max-width: 540px; margin-bottom: 1.6rem; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 0.9rem; align-items: center; }
.hero__note { margin-top: 1rem; font-size: 0.9rem; color: var(--ink-faint); display: flex; align-items: center; gap: 0.4rem; }

.hero__visual { position: relative; display: flex; justify-content: center; }
.hero__shot { position: relative; width: 100%; max-width: 680px; }
/* Soft ambient glow lifting the screenshots off the page */
.hero__shot::before {
  content: "";
  position: absolute;
  inset: -8% -6% -12%;
  z-index: 0;
  border-radius: 50%;
  background:
    radial-gradient(closest-side, rgba(0, 133, 255, 0.28), transparent 72%),
    radial-gradient(closest-side at 70% 80%, rgba(80, 195, 255, 0.22), transparent 70%);
  filter: blur(46px);
  opacity: 0.9;
  pointer-events: none;
}
.hero__shot img {
  position: relative;
  z-index: 1;
  width: 100%;
  height: auto;
  border-radius: 32px;
  border: 1px solid rgba(2, 44, 74, 0.08);
  box-shadow: var(--shadow-lg);
  display: block;
}

/* ----------------------------- Trust bar -------------------------------- */
.trust { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: #fff; }
.trust__row { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 20px; padding: 26px 0; }
.trust__item { display: flex; align-items: center; gap: 0.6rem; color: var(--ink-soft); font-weight: 600; font-size: 0.95rem; }
.trust__item .ic { color: var(--freedom-blue); flex: none; display: inline-flex; }
.trust__item .ic svg { width: 21px; height: 21px; }
.hero__floats .ic svg { width: 17px; height: 17px; }
.mock-row .ic svg { width: 17px; height: 17px; }

/* ----------------------------- Feature grid ----------------------------- */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 28px; box-shadow: var(--shadow-sm); transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.card__icon {
  width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center;
  background: var(--bg-tint); color: var(--freedom-blue); margin-bottom: 16px;
}
.card__icon svg { width: 26px; height: 26px; }
.card h3 { margin-bottom: 0.4rem; }
.card p { margin: 0; font-size: 0.97rem; }

.card--accent .card__icon { background: rgba(255,209,67,0.18); color: #c79400; }
.card--green .card__icon { background: rgba(52,199,89,0.15); color: #1f9e45; }
.card--red .card__icon { background: rgba(224,70,78,0.12); color: var(--desire); }

/* ----------------------------- Split feature ---------------------------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.split--rev .split__media { order: 2; }
.split__media {
  background: linear-gradient(160deg, var(--maastricht-blue), #04467a);
  border-radius: 26px; padding: 34px; color: #fff; box-shadow: var(--shadow-lg);
}
.split h2 { margin-bottom: 0.6rem; }
.checklist { list-style: none; padding: 0; margin: 1.2rem 0 0; }
.checklist li { display: flex; gap: 0.7rem; align-items: flex-start; margin-bottom: 0.85rem; color: var(--ink-soft); }
.checklist li .tick {
  flex: none; width: 24px; height: 24px; border-radius: 50%; background: rgba(52,199,89,0.15);
  color: var(--success); display: grid; place-items: center; margin-top: 2px;
}
.checklist li b { color: var(--ink); }

/* Mock list inside dark media panel */
.mock-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 16px; background: rgba(255,255,255,0.08); border-radius: 14px; margin-bottom: 12px; }
.mock-row:last-child { margin-bottom: 0; }
.mock-row .label { display: flex; align-items: center; gap: 0.6rem; font-weight: 600; }
.mock-row .ic { width: 30px; height: 30px; border-radius: 9px; background: rgba(255,255,255,0.12); display: grid; place-items: center; color: var(--picton-blue); }
.badge { font-size: 0.72rem; font-weight: 700; padding: 0.2rem 0.6rem; border-radius: 999px; }
.badge--green { background: rgba(52,199,89,0.2); color: #7ff0a3; }
.badge--yellow { background: rgba(255,209,67,0.2); color: var(--energising-yellow); }
.badge--red { background: rgba(224,70,78,0.22); color: #ff9aa0; }
.badge--blue { background: rgba(80,195,255,0.22); color: var(--picton-blue); }

/* ----------------------------- NFC cockpit photo ------------------------ */
.nfc-media { padding: 0; background: none; overflow: hidden; }
.nfc-media img { width: 100%; height: auto; display: block; }

/* ----------------------------- Steps ------------------------------------ */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; counter-reset: step; }
.step { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; position: relative; box-shadow: var(--shadow-sm); }
.step__num {
  width: 40px; height: 40px; border-radius: 12px; background: var(--freedom-blue); color: #fff;
  font-weight: 800; display: grid; place-items: center; margin-bottom: 14px; font-size: 1.05rem;
}
.step h3 { font-size: 1.08rem; }
.step p { font-size: 0.93rem; margin: 0; }

/* ----------------------------- Audience --------------------------------- */
.audience { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.aud {
  border-radius: var(--radius); padding: 30px; border: 1px solid var(--line);
  background: #fff; box-shadow: var(--shadow-sm);
}
.aud h3 { font-size: 1.25rem; }
.aud .tag { font-size: 0.78rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; color: var(--freedom-blue); }
.aud ul { padding-left: 1.1rem; margin: 0.8rem 0 0; color: var(--ink-soft); }
.aud ul li { margin-bottom: 0.45rem; }

/* ----------------------------- Pricing ---------------------------------- */
.pricing { display: flex; justify-content: center; gap: 26px; flex-wrap: wrap; align-items: stretch; }
.price-card {
  max-width: 460px; width: 100%; background: #fff; border: 2px solid var(--freedom-blue);
  border-radius: 26px; padding: 40px; text-align: center; box-shadow: var(--shadow-lg); position: relative;
  display: flex; flex-direction: column;
}
/* Two-tier layout: quieter secondary card, tighter figures so both fit side by side */
.pricing--duo .price-card { max-width: 430px; padding: 36px 32px; }
.pricing--duo .amount { font-size: 2.6rem; }
.price-card--alt { border-color: var(--line); box-shadow: var(--shadow-md); }
.price-card__for { color: var(--ink-faint); font-size: 0.88rem; font-weight: 600; margin: 0.35rem 0 1.1rem; }
.price-card__or { color: var(--ink-faint); font-weight: 600; font-size: 0.95rem; margin: 0.2rem 0; }
.price-card__save { color: var(--success); font-weight: 700; font-size: 0.85rem; margin-top: 0.4rem; }
.price-card .price-list { flex: 1; }
.pricing-foot { text-align: center; color: var(--ink-faint); font-size: 0.9rem; margin-top: 1.5rem; }
.price-card .ribbon {
  position: absolute; top: -15px; left: 50%; transform: translateX(-50%);
  background: var(--success); color: #fff; font-weight: 700; font-size: 0.85rem;
  padding: 0.4rem 1.1rem; border-radius: 999px; box-shadow: var(--shadow-sm);
}
.price-card h3 { font-size: 1.4rem; color: var(--maastricht-blue); }
.price-card .amount { font-size: 3.4rem; font-weight: 800; color: var(--ink); letter-spacing: -0.03em; }
.price-card .amount span { font-size: 1.1rem; font-weight: 600; color: var(--ink-faint); }
.price-card .trial { color: var(--success); font-weight: 700; margin: 0.3rem 0 1.4rem; }
.price-list { list-style: none; padding: 0; margin: 1.6rem 0; text-align: left; }
.price-list li { display: flex; gap: 0.6rem; align-items: flex-start; margin-bottom: 0.7rem; color: var(--ink-soft); }
.price-list li .tick { color: var(--success); flex: none; margin-top: 3px; }
.price-card .fine { font-size: 0.8rem; color: var(--ink-faint); margin-top: 1rem; }

/* ----------------------------- FAQ -------------------------------------- */
.faq { max-width: 820px; margin: 0 auto; }
.faq details {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-sm);
  padding: 4px 22px; margin-bottom: 14px; box-shadow: var(--shadow-sm);
}
.faq summary {
  list-style: none; cursor: pointer; font-weight: 700; color: var(--maastricht-blue);
  padding: 16px 0; display: flex; justify-content: space-between; align-items: center; gap: 1rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary .chev { transition: transform 0.2s ease; color: var(--freedom-blue); flex: none; }
.faq details[open] summary .chev { transform: rotate(180deg); }
.faq details p { margin: 0 0 16px; }

/* ----------------------------- CTA banner ------------------------------- */
.cta-band {
  background:
    radial-gradient(circle at 12% 20%, rgba(80,195,255,0.35), transparent 45%),
    linear-gradient(135deg, var(--maastricht-blue), #04467a);
  color: #fff; border-radius: 28px; padding: 56px; text-align: center; box-shadow: var(--shadow-lg);
}
.cta-band h2 { color: #fff; }
.cta-band p { color: rgba(255,255,255,0.85); max-width: 560px; margin: 0 auto 1.8rem; font-size: 1.1rem; }
.cta-band .hero__actions { justify-content: center; }

/* ----------------------------- Footer ----------------------------------- */
.site-footer { background: var(--maastricht-blue); color: rgba(255,255,255,0.75); padding: 56px 0 30px; margin-top: 84px; }
.footer__grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 32px; }
.footer__brand { display: flex; align-items: center; gap: 0.6rem; color: #fff; font-weight: 800; font-size: 1.15rem; margin-bottom: 0.8rem; }
.footer__brand img { width: 40px; height: 40px; }
.site-footer h4 { color: #fff; font-size: 0.85rem; letter-spacing: 0.06em; text-transform: uppercase; margin-bottom: 1rem; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer ul li { margin-bottom: 0.6rem; }
.site-footer a { color: rgba(255,255,255,0.75); }
.site-footer a:hover { color: #fff; }
.footer__bottom { border-top: 1px solid rgba(255,255,255,0.14); margin-top: 36px; padding-top: 22px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; font-size: 0.85rem; }

/* ----------------------------- Legal pages ------------------------------ */
.legal { max-width: 820px; margin: 0 auto; padding: 60px 0; }
.legal h1 { font-size: 2.2rem; }
.legal h2 { font-size: 1.4rem; margin-top: 2rem; }
.legal p, .legal li { color: var(--ink-soft); }
.legal .updated { color: var(--ink-faint); font-size: 0.9rem; }

/* ----------------------------- Gold & green accents --------------------- */
/* "Who it's for" cards — a distinct brand accent per ownership model */
.aud { border-top: 4px solid var(--freedom-blue); }
.aud:nth-child(2) { border-top-color: var(--success); }
.aud:nth-child(3) { border-top-color: var(--energising-yellow); }
.aud:nth-child(2) .tag { color: var(--success); }
.aud:nth-child(3) .tag { color: #8a681b; }

/* "How it works" step numbers cycle the palette: blue → green → gold → navy */
.steps .step:nth-child(2) .step__num { background: var(--success); }
.steps .step:nth-child(3) .step__num { background: var(--energising-yellow); color: #33270a; }
.steps .step:nth-child(4) .step__num { background: var(--maastricht-blue); }

/* Trust bar icons pick up green & gold */
.trust__item:nth-child(2) .ic { color: var(--success); }
.trust__item:nth-child(3) .ic { color: #b98a1f; }
.trust__item:nth-child(5) .ic { color: var(--success); }

/* Section eyebrows alternate accent color for rhythm */
#who .eyebrow { color: var(--success); }
#how .eyebrow { color: #a97d18; }

/* ----------------------------- Responsive ------------------------------- */
@media (max-width: 920px) {
  .hero__grid { grid-template-columns: 1fr; gap: 36px; }
  .hero__visual { order: -1; }
  .cards { grid-template-columns: repeat(2, 1fr); }
  .split { grid-template-columns: 1fr; gap: 32px; }
  .split--rev .split__media { order: 0; }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .audience { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 620px) {
  .nav__links, .nav__cta .btn { display: none; }
  .nav__toggle { display: block; }
  .nav.open .nav__links {
    display: flex; flex-direction: column; position: absolute; top: 68px; left: 0; right: 0;
    background: #fff; border-bottom: 1px solid var(--line); padding: 18px 22px; gap: 1rem; box-shadow: var(--shadow-md);
  }
  .cards { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr; }
  .cta-band { padding: 38px 24px; }
  .hero__floats span { display: none; }
  .section { padding: 60px 0; }
}
