/* ============================================================
   TakeFive — Landing Page
   Warm, calm, Apple-style minimal design
   ============================================================ */

:root {
  /* Brand palette (from app icon) */
  --bg:            #FFFBF2;
  --bg-soft:       #FFF6E6;
  --cream:         #FFF3D9;
  --amber:         #F5850B;
  --amber-deep:    #E06B00;
  --gold:          #FFD166;
  --gold-soft:     #FFE8B3;
  --green:         #7CB342;
  --ink:           #1C1C1E;
  --ink-soft:      #5B5546;
  --ink-faint:     #8A8172;
  --line:          rgba(28, 28, 30, 0.08);
  --card-dark:     #161007;
  --amber-glow:    rgba(245, 133, 11, 0.55);

  --radius-lg:     28px;
  --radius-md:     18px;
  --radius-pill:   999px;

  --font: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text",
          "Helvetica Neue", "Segoe UI", Roboto, Arial, sans-serif;

  --shadow-screen: 0 30px 80px -20px rgba(90, 60, 10, 0.28),
                   0 0 0 1px rgba(28, 28, 30, 0.05);
  --shadow-btn:    0 8px 24px -6px rgba(245, 133, 11, 0.5);
}

/* ---------- Reset ---------- */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--ink);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }

/* ---------- Typography ---------- */
.eyebrow {
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--amber-deep);
  margin-bottom: 1rem;
}
.eyebrow--amber { color: var(--gold); }

h1, h2 {
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.05;
  color: var(--ink);
}

/* ============================================================
   NAV
   ============================================================ */
.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  backdrop-filter: saturate(180%) blur(16px);
  -webkit-backdrop-filter: saturate(180%) blur(16px);
  background: rgba(255, 251, 242, 0.75);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s ease, background 0.3s ease;
}
.nav--scrolled { border-bottom-color: var(--line); }
.nav__inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0.85rem 1.5rem;
  display: flex;
  align-items: center;
  gap: 2rem;
}
.nav__brand { display: flex; align-items: center; gap: 0.6rem; font-weight: 700; }
.nav__logo { width: 30px; height: 30px; border-radius: 8px; }
.nav__name { font-size: 1.05rem; letter-spacing: -0.01em; }
.nav__links { display: flex; gap: 1.75rem; margin-left: auto; }
.nav__links a {
  font-size: 0.92rem;
  color: var(--ink-soft);
  transition: color 0.2s ease;
}
.nav__links a:hover { color: var(--ink); }

/* ============================================================
   BUTTONS & BADGES
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  border-radius: var(--radius-pill);
  transition: transform 0.15s ease, box-shadow 0.2s ease, background 0.2s ease;
  cursor: pointer;
  white-space: nowrap;
}
.btn--primary {
  background: var(--ink);
  color: #fff;
  padding: 0.5rem 1.4rem;
  font-size: 0.92rem;
}
.btn--primary:hover { transform: scale(1.04); }
.btn--sm { padding: 0.42rem 1.2rem; }
.btn--lg { padding: 0.9rem 2.2rem; font-size: 1.05rem; }
.btn--amber {
  background: linear-gradient(135deg, var(--gold), var(--amber));
  color: #2A1A00;
  box-shadow: var(--shadow-btn);
}
.btn--amber:hover { transform: translateY(-2px) scale(1.02); }

/* App Store badge */
.badge-appstore {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  background: var(--ink);
  color: #fff;
  padding: 0.6rem 1.35rem;
  border-radius: 14px;
  transition: transform 0.15s ease, box-shadow 0.2s ease;
}
.badge-appstore:hover { transform: translateY(-2px); box-shadow: 0 12px 30px -8px rgba(0,0,0,0.4); }
.badge-appstore__icon { width: 22px; height: 22px; }
.badge-appstore__text { display: flex; flex-direction: column; line-height: 1.1; }
.badge-appstore__text small { font-size: 0.62rem; opacity: 0.8; }
.badge-appstore__text strong { font-size: 1.05rem; font-weight: 600; letter-spacing: -0.01em; }
.badge-appstore--lg { padding: 0.85rem 1.8rem; }
.badge-appstore--lg .badge-appstore__icon { width: 28px; height: 28px; }
.badge-appstore--lg .badge-appstore__text strong { font-size: 1.3rem; }

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative;
  padding: 9.5rem 1.5rem 5rem;
  text-align: center;
  overflow: hidden;
}
.hero__glow {
  position: absolute;
  top: -20%;
  left: 50%;
  transform: translateX(-50%);
  width: 1100px;
  height: 700px;
  background:
    radial-gradient(closest-side, var(--amber-glow), transparent 70%),
    radial-gradient(closest-side, rgba(255, 209, 102, 0.4), transparent 70%);
  filter: blur(70px);
  opacity: 0.55;
  pointer-events: none;
}
.hero__content { position: relative; max-width: 780px; margin: 0 auto; }
.hero__title {
  font-size: clamp(3.2rem, 8.5vw, 6.4rem);
  margin-bottom: 1.4rem;
}
.hero__sub {
  font-size: clamp(1.05rem, 2vw, 1.3rem);
  color: var(--ink-soft);
  max-width: 560px;
  margin: 0 auto 2.2rem;
  font-weight: 500;
}
.hero__cta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}
.hero__link {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--amber-deep);
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  transition: gap 0.2s ease;
}
.hero__link:hover { gap: 0.55rem; }
.hero__link .arrow { transition: transform 0.2s ease; }

.hero__screen {
  position: relative;
  max-width: 960px;
  margin: 4.5rem auto 0;
}

/* ============================================================
   SCREEN MOCKUP  (screenshots framed like a Mac display)
   ============================================================ */
.screen {
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-screen);
  transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.4s ease;
  background: #000;
}
.screen img { width: 100%; height: auto; }
.screen:hover { transform: translateY(-8px) scale(1.01); }
.screen--float { animation: floaty 6s ease-in-out infinite; }
@keyframes floaty {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-12px); }
}

/* ============================================================
   FEATURES  (alternating text / media)
   ============================================================ */
.features {
  max-width: 1180px;
  margin: 0 auto;
  padding: 4rem 1.5rem 2rem;
  display: flex;
  flex-direction: column;
  gap: 7rem;
}
.feature {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  align-items: center;
  gap: 4rem;
}
.feature--reverse .feature__text { order: 2; }
.feature--reverse .feature__media { order: 1; }
.feature__text h2 {
  font-size: clamp(2.1rem, 4vw, 3.2rem);
  margin-bottom: 1.2rem;
}
.feature__body {
  font-size: 1.12rem;
  color: var(--ink-soft);
  max-width: 460px;
  font-weight: 500;
}

/* ============================================================
   PRO  (dark, warm-highlighted section)
   ============================================================ */
.pro {
  background:
    radial-gradient(1200px 500px at 50% -10%, rgba(245, 133, 11, 0.22), transparent 60%),
    var(--card-dark);
  color: #fff;
  margin: 6rem 1.5rem;
  border-radius: var(--radius-lg);
  padding: 6rem 1.5rem;
}
.pro__inner { max-width: 720px; margin: 0 auto; text-align: center; }
.pro__title {
  font-size: clamp(2.2rem, 4.5vw, 3.4rem);
  color: #fff;
  margin-bottom: 1.1rem;
}
.pro__sub { font-size: 1.15rem; color: rgba(255, 240, 214, 0.75); margin-bottom: 3rem; font-weight: 500; }
.pro__list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 1.6rem;
  text-align: left;
  max-width: 540px;
  margin: 0 auto 3rem;
}
.pro__list li {
  display: flex;
  gap: 1.1rem;
  align-items: flex-start;
  background: rgba(255, 214, 150, 0.06);
  border: 1px solid rgba(255, 214, 150, 0.12);
  padding: 1.25rem 1.4rem;
  border-radius: var(--radius-md);
  transition: background 0.25s ease, transform 0.25s ease;
}
.pro__list li:hover { background: rgba(255, 214, 150, 0.1); transform: translateX(6px); }
.pro__icon { font-size: 1.5rem; line-height: 1; flex-shrink: 0; }
.pro__list strong { display: block; font-size: 1.05rem; margin-bottom: 0.2rem; }
.pro__list p { font-size: 0.95rem; color: rgba(255, 240, 214, 0.7); }

/* ============================================================
   CTA
   ============================================================ */
.cta { padding: 5rem 1.5rem 6rem; text-align: center; }
.cta__logo {
  width: 96px;
  height: 96px;
  border-radius: 24px;
  margin: 0 auto 1.8rem;
  box-shadow: var(--shadow-screen);
}
.cta h2 { font-size: clamp(2.4rem, 5vw, 4rem); margin-bottom: 0.8rem; }
.cta p { font-size: 1.2rem; color: var(--ink-soft); margin-bottom: 2.2rem; font-weight: 500; }

/* ============================================================
   FAQ
   ============================================================ */
.faq { background: var(--bg-soft); padding: 5rem 1.5rem 6rem; border-radius: var(--radius-lg); margin: 0 1.5rem 6rem; }
.faq__inner { max-width: 760px; margin: 0 auto; }
.faq__title { font-size: clamp(2rem, 4vw, 2.8rem); text-align: center; margin-bottom: 2.8rem; }
.faq__item {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 1.3rem 1.5rem;
  margin-bottom: 0.9rem;
  transition: box-shadow 0.2s ease;
}
.faq__item:hover { box-shadow: 0 6px 20px -8px rgba(90, 60, 10, 0.15); }
.faq__item summary {
  font-weight: 600;
  font-size: 1.08rem;
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  letter-spacing: -0.01em;
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary::after {
  content: "+";
  font-size: 1.5rem;
  font-weight: 400;
  color: var(--amber);
  transition: transform 0.25s ease;
  flex-shrink: 0;
  margin-left: 1rem;
}
.faq__item[open] summary::after { transform: rotate(45deg); }
.faq__item p { margin-top: 0.9rem; color: var(--ink-soft); font-size: 1rem; line-height: 1.6; }

/* ============================================================
   FOOTER
   ============================================================ */
.footer { border-top: 1px solid var(--line); padding: 3.5rem 1.5rem; }
.footer__inner {
  max-width: 1180px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 2rem;
}
.footer__brand { display: flex; align-items: center; gap: 1rem; }
.footer__logo { width: 52px; height: 52px; border-radius: 14px; }
.footer__name { font-weight: 700; font-size: 1.1rem; }
.footer__tag { font-size: 0.88rem; color: var(--ink-faint); }
.footer__links { display: flex; gap: 1.8rem; margin-left: auto; }
.footer__links a { font-size: 0.92rem; color: var(--ink-soft); transition: color 0.2s; }
.footer__links a:hover { color: var(--ink); }
.footer__copy { width: 100%; font-size: 0.82rem; color: var(--ink-faint); padding-top: 0.5rem; }

/* ============================================================
   REVEAL ANIMATIONS
   ============================================================ */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}
.reveal--delay { transition-delay: 0.15s; }
.reveal.is-visible { opacity: 1; transform: translateY(0); }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 860px) {
  .nav__links { display: none; }
  .hero { padding-top: 7.5rem; }
  .feature { grid-template-columns: 1fr; gap: 2rem; }
  .feature--reverse .feature__text { order: 1; }
  .feature--reverse .feature__media { order: 2; }
  .feature__body { max-width: none; }
  .features { gap: 5rem; }
  .pro, .faq { margin-left: 1rem; margin-right: 1rem; }
  .footer__inner { flex-direction: column; align-items: flex-start; }
  .footer__links { margin-left: 0; }
}

/* ============================================================
   REDUCED MOTION
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .screen--float, .reveal { animation: none; transition: none; opacity: 1; transform: none; }
  .screen:hover, .btn:hover, .badge-appstore:hover { transform: none; }
}
