/* Fintley — landing page
   Palette from the Fintley Brand Kit:
   teal #0FA899 · teal-dark #0A6B60 · navy #0B2540 · gold #F2C440
   blush #FF8073 · warm-white #F7F6F2 */

:root {
  --teal: #0FA899;
  --teal-dark: #0A6B60;
  --navy: #0B2540;
  --navy-soft: #133255;
  --gold: #F2C440;
  --blush: #FF8073;
  --warm: #F7F6F2;
  --ink: #0B2540;
  --muted: #5b6b7a;
  --radius: 18px;
  --maxw: 1080px;
  --shadow: 0 18px 40px rgba(11, 37, 64, 0.10);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: "Nunito", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--warm);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 { line-height: 1.1; margin: 0 0 .4em; font-weight: 900; letter-spacing: -0.02em; }
h2 { font-size: clamp(1.7rem, 3.5vw, 2.5rem); text-align: center; }
p { margin: 0 0 1rem; }
.accent { color: var(--teal); }

/* ───── Header ───── */
.site-header {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px clamp(16px, 4vw, 40px);
  background: rgba(247, 246, 242, 0.82);
  backdrop-filter: saturate(160%) blur(10px);
  border-bottom: 1px solid rgba(11, 37, 64, 0.07);
}
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--navy); }
.brand__mark { display: block; }
.brand__name { font-weight: 900; font-size: 1.25rem; letter-spacing: -0.02em; }
.site-nav { display: flex; align-items: center; gap: clamp(12px, 2.5vw, 28px); }
.site-nav a { color: var(--navy); text-decoration: none; font-weight: 700; font-size: .95rem; }
.site-nav a:not(.btn):hover { color: var(--teal-dark); }

.btn {
  background: var(--teal); color: #fff; border-radius: 999px;
  padding: 10px 18px; font-weight: 800; text-decoration: none;
  transition: transform .15s ease, background .15s ease;
}
.btn:hover { background: var(--teal-dark); transform: translateY(-1px); }
.btn--sm { padding: 8px 16px; font-size: .9rem; }

/* ───── Hero ───── */
.hero {
  max-width: var(--maxw); margin: 0 auto;
  padding: clamp(40px, 7vw, 90px) clamp(16px, 4vw, 40px) clamp(30px, 5vw, 60px);
  display: grid; grid-template-columns: 1.1fr .9fr; gap: 40px; align-items: center;
}
.eyebrow {
  text-transform: uppercase; letter-spacing: .18em; font-weight: 800;
  font-size: .8rem; color: var(--teal-dark); margin-bottom: .8rem;
}
.hero h1 { font-size: clamp(2.4rem, 6vw, 4rem); }
.lede { font-size: clamp(1rem, 1.6vw, 1.18rem); color: #2c3e50; max-width: 34ch; }
.hero strong { color: var(--navy); }

.cta-row { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; margin-top: 1.6rem; }
.link-quiet { color: var(--teal-dark); font-weight: 800; text-decoration: none; }
.link-quiet:hover { text-decoration: underline; }
.cta-note { font-size: .82rem; color: var(--muted); margin-top: .7rem; }
.cta-note--light { color: rgba(255,255,255,.7); }

/* Hero art */
.hero__art { position: relative; display: grid; place-items: center; }
.hero__glow {
  position: absolute; inset: 0; margin: auto;
  width: min(78%, 340px); aspect-ratio: 1;
  background: radial-gradient(circle, rgba(15,168,153,.28), transparent 65%);
  filter: blur(8px);
}
.fintley-hero { position: relative; width: min(80%, 340px); height: auto; filter: drop-shadow(0 20px 30px rgba(11,37,64,.18)); }

/* App Store button */
.appstore-btn {
  display: inline-flex; align-items: center; gap: 12px;
  background: var(--navy); color: #fff; text-decoration: none;
  padding: 12px 20px; border-radius: 14px;
  transition: transform .15s ease, box-shadow .15s ease;
}
.appstore-btn:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.appstore-btn__logo { width: 26px; height: 30px; flex: none; }
.appstore-btn__text { display: flex; flex-direction: column; line-height: 1.05; text-align: left; }
.appstore-btn__text small { font-size: .68rem; opacity: .85; font-weight: 600; }
.appstore-btn__text strong { font-size: 1.18rem; font-weight: 800; }
.appstore-btn--on-dark { background: #fff; color: var(--navy); }

/* ───── Features ───── */
.features { max-width: var(--maxw); margin: 0 auto; padding: clamp(40px, 6vw, 80px) clamp(16px, 4vw, 40px); }
.section-sub { text-align: center; color: var(--muted); max-width: 48ch; margin: 0 auto 2.4rem; }
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.card {
  background: #fff; border-radius: var(--radius); padding: 26px 24px;
  box-shadow: var(--shadow); border: 1px solid rgba(11,37,64,.05);
}
.card h3 { font-size: 1.15rem; color: var(--navy); }
.card h3::before {
  content: ""; display: block; width: 34px; height: 5px; border-radius: 3px;
  background: var(--teal); margin-bottom: 14px;
}
.card p { color: #44586a; margin: 0; font-size: .97rem; }

/* ───── Meet Fintley ───── */
.fintley {
  background: linear-gradient(160deg, var(--navy), var(--navy-soft));
  color: #fff; padding: clamp(48px, 7vw, 88px) clamp(16px, 4vw, 40px);
}
.fintley .section-sub { color: rgba(255,255,255,.72); }
.moods {
  list-style: none; margin: 2rem auto 0; padding: 0; max-width: var(--maxw);
  display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px;
}
.mood { text-align: center; }
.mood img {
  width: 100%; max-width: 130px; height: auto; background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.10); border-radius: var(--radius); padding: 8px;
}
.mood__label { display: block; margin-top: .7rem; font-weight: 700; font-size: .82rem; color: rgba(255,255,255,.85); }

/* ───── Download ───── */
.download {
  text-align: center; padding: clamp(48px, 7vw, 90px) clamp(16px, 4vw, 40px);
  background:
    radial-gradient(circle at 50% 0%, rgba(15,168,153,.10), transparent 60%),
    var(--warm);
}
.download__fintley { width: 110px; height: auto; margin-bottom: 8px; }
.download p { color: var(--muted); margin-bottom: 1.6rem; }
.download .appstore-btn { background: var(--navy); color: #fff; }

/* ───── Footer ───── */
.site-footer {
  border-top: 1px solid rgba(11,37,64,.08);
  padding: 30px clamp(16px, 4vw, 40px); text-align: center;
}
.footer__brand { display: inline-flex; align-items: center; gap: 8px; font-weight: 900; color: var(--navy); }
.footer__fine { color: var(--muted); font-size: .82rem; margin-top: .6rem; }

/* ───── Motion ───── */
@keyframes floaty {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}
.floaty { animation: floaty 4.5s ease-in-out infinite; }

@media (prefers-reduced-motion: reduce) {
  .floaty { animation: none; }
  html { scroll-behavior: auto; }
}

/* ───── Responsive ───── */
@media (max-width: 860px) {
  .hero { grid-template-columns: 1fr; text-align: center; padding-top: 36px; }
  .hero__copy { order: 2; }
  .hero__art { order: 1; }
  .lede { max-width: none; }
  .cta-row { justify-content: center; }
  .grid { grid-template-columns: repeat(2, 1fr); }
  .moods { grid-template-columns: repeat(3, 1fr); max-width: 460px; }
}
@media (max-width: 520px) {
  .site-nav a:not(.btn) { display: none; }
  .grid { grid-template-columns: 1fr; }
  .moods { grid-template-columns: repeat(2, 1fr); max-width: 320px; }
}
