/* ===== Reset & tokens ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --ink: #6f3a14;
  --ink-soft: #99633c;
  --line: #ece8e2;
  --bg: #ffffff;
  --accent: #9c531f;
  --accent-deep: #6f3a14;
  --radius: 22px;
  --maxw: 1180px;
}

html { scroll-behavior: smooth; }

body {
  font-family: "Poppins", system-ui, -apple-system, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }

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

/* ===== Header ===== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: 76px;
}
.logo { display: flex; align-items: center; gap: 4px; font-weight: 600; font-size: 19px; letter-spacing: -0.02em; }
.logo-text { font-family: Georgia, "Times New Roman", serif; letter-spacing: 0; }
.logo-mark { color: var(--accent); display: inline-flex; }
.logo-img { width: 40px; height: 40px; object-fit: contain; display: block; }
.nav-links { display: flex; align-items: center; gap: 30px; }
.nav-links a { font-weight: 600; font-size: 16px; color: var(--ink); transition: color .15s; }
.nav-links a:hover { color: var(--accent); }
.header-cta { display: flex; align-items: center; gap: 12px; }

/* ===== App Store badge ===== */
.app-badge { display: inline-flex; transition: transform .15s, filter .15s; }
.app-badge img { height: 44px; width: auto; display: block; }
.app-badge:hover { transform: translateY(-2px); filter: brightness(1.08); }
.app-badge--lg img { height: 56px; }

.menu-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: 0; cursor: pointer; padding: 6px; }
.menu-toggle span { width: 24px; height: 2.5px; background: var(--ink); border-radius: 2px; transition: .25s; }

/* ===== Hero ===== */
.hero { padding: 60px 0 90px; overflow: hidden; }
.hero-inner { display: grid; grid-template-columns: 1.05fr 1fr; gap: 40px; align-items: center; }

.rating-pill {
  display: inline-flex; align-items: center; gap: 12px;
  border: 1px solid var(--line); border-radius: 999px;
  padding: 8px 18px 8px 10px; font-weight: 600; font-size: 15px;
  box-shadow: 0 4px 16px rgba(0,0,0,.04);
}
.avatars { display: inline-flex; }
.avatar { width: 34px; height: 34px; border-radius: 50%; border: 2px solid #fff; margin-left: -12px; background-size: cover; background-position: center; box-shadow: 0 1px 3px rgba(0,0,0,.15); }
.avatar:first-child { margin-left: 0; }
.avatar img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; display: block; }
.star { font-size: 13px; }

.hero-title {
  font-size: clamp(44px, 12vw, 60px);
  font-weight: 600; letter-spacing: -0.03em;
  line-height: 1.02; margin: 26px 0 22px;
}
.hero-title-sm { display: block; font-size: 1em; font-weight: 400; }

.hero-sub { font-size: 18px; color: var(--ink-soft); max-width: 460px; margin-bottom: 30px; }
.store-buttons { display: flex; gap: 14px; flex-wrap: wrap; }
.store-buttons--center { justify-content: center; }

/* ===== Phones ===== */
.hero-art { position: relative; height: 620px; display: flex; align-items: center; justify-content: center; }
.phone {
  position: absolute;
  width: 290px; height: 590px;
  background: #0e0c0b;
  border-radius: 44px;
  padding: 11px;
  box-shadow: 0 40px 80px rgba(20,17,15,.28), 0 8px 20px rgba(20,17,15,.18);
}
.phone-notch {
  position: absolute; top: 18px; left: 50%; transform: translateX(-50%);
  width: 110px; height: 26px; background: #0e0c0b; border-radius: 14px; z-index: 5;
}
.phone-screen {
  width: 100%; height: 100%; border-radius: 34px; overflow: hidden;
  padding: 22px 16px 16px; display: flex; flex-direction: column;
  background: #f4f1ec;
}
.phone-screen:has(.phone-shot) { padding: 0; }
.phone-shot { width: 100%; height: 100%; object-fit: cover; display: block; }
.phone--front { transform: translateX(-95px) rotate(-7deg); z-index: 2; }
.phone--back  { transform: translateX(105px) rotate(6deg); z-index: 1; }

.status-bar { display: flex; justify-content: space-between; font-size: 12px; font-weight: 600; margin-bottom: 14px; opacity: .8; }

/* Feed screen */
.feed-screen { background: linear-gradient(165deg, #f6e7d6, #fff 55%, #ffeede); color: var(--ink); }
.feed-card {
  background: #fff; border-radius: 20px; padding: 20px;
  box-shadow: 0 8px 24px rgba(20,17,15,.08); margin-bottom: 12px;
}
.feed-card--hero { background: linear-gradient(160deg, #b3631f, #6f3a14); color: #fff; box-shadow: 0 14px 30px rgba(156,83,31,.35); }
.feed-tag { font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: .08em; opacity: .8; }
.feed-verse { font-size: 19px; font-weight: 600; line-height: 1.3; margin: 12px 0 14px; }
.feed-ref { font-size: 13px; font-weight: 600; opacity: .85; }
.feed-actions { display: flex; gap: 10px; margin-bottom: 12px; }
.feed-action { background: #fff; border-radius: 999px; padding: 7px 12px; font-size: 12px; font-weight: 600; box-shadow: 0 4px 12px rgba(20,17,15,.06); }
.feed-card--mini { padding: 16px; }
.feed-verse-sm { font-size: 15px; font-weight: 600; margin-bottom: 8px; }

/* Detail screen */
.detail-screen { background: #fbfaf8; color: var(--ink); }
.detail-kicker { font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: .08em; color: var(--accent); }
.detail-title { font-size: 26px; font-weight: 600; letter-spacing: -0.02em; margin-top: 4px; }
.detail-body { font-size: 14px; color: var(--ink-soft); margin: 12px 0 18px; }
.detail-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 16px; }
.stat { display: flex; align-items: center; gap: 9px; background: #fff; border-radius: 16px; padding: 12px; font-size: 12px; box-shadow: 0 6px 16px rgba(20,17,15,.05); }
.stat-ico { font-size: 18px; }
.stat b { font-size: 13px; }
.detail-cta { margin-top: auto; background: var(--accent); color: #fff; border: 0; border-radius: 16px; padding: 15px; font-size: 16px; font-weight: 600; font-family: inherit; cursor: pointer; }

.float-chip {
  position: absolute; background: #fff; border-radius: 14px;
  padding: 9px 14px; font-size: 13px; font-weight: 600;
  box-shadow: 0 12px 28px rgba(20,17,15,.16); z-index: 6;
}
.chip-1 { top: 60px; right: -30px; }
.chip-2 { bottom: 90px; right: -20px; }

/* ===== Why ===== */
.why { padding: 90px 0; background: linear-gradient(180deg, #f6f9f6, #fff); }
.section-title { text-align: center; font-size: clamp(34px, 5vw, 56px); font-weight: 600; letter-spacing: -0.03em; }
.section-sub { text-align: center; font-size: 19px; color: var(--ink-soft); margin: 14px 0 56px; }
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.card {
  background: #fff; border-radius: var(--radius); padding: 34px 30px;
  box-shadow: 0 20px 50px rgba(20,17,15,.06); border: 1px solid var(--line);
}
.card-ico {
  width: 54px; height: 54px; border-radius: 16px;
  background: linear-gradient(150deg, #f3e3d2, #fbf0e6);
  display: grid; place-items: center; font-size: 26px; margin-bottom: 22px;
}
.card h3 { font-size: 23px; font-weight: 600; letter-spacing: -0.02em; margin-bottom: 12px; }
.card p { color: var(--ink-soft); font-size: 16px; }

/* ===== Testimonials ===== */
.testimonials { background: linear-gradient(180deg, #fff, #faf6f1); color: var(--ink); padding: 96px 0 110px; }
.testimonials-title { text-align: center; font-size: clamp(34px, 5vw, 58px); font-weight: 600; letter-spacing: -0.03em; margin-bottom: 60px; }
.testi-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; max-width: 1000px; margin: 0 auto; }
.testi-card {
  background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 26px;
  box-shadow: 0 14px 36px rgba(111,58,20,.06);
}
.testi-head { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.testi-avatar { width: 42px; height: 42px; border-radius: 50%; overflow: hidden; flex-shrink: 0; background: #eee; }
.testi-avatar img { width: 100%; height: 100%; object-fit: cover; display: block; }
.testi-head strong { font-size: 18px; }
.testi-card p { color: var(--ink-soft); font-size: 15px; }
.testi-card--offset { grid-column: span 1; }
/* center the last two */
.testi-card:nth-child(4) { grid-column: 1 / 2; transform: translateX(50%); }
.testi-card:nth-child(5) { grid-column: 2 / 3; transform: translateX(50%); }

/* ===== Ratings ===== */
.ratings { background: linear-gradient(120deg, #f2f5f3, #fbeee6 60%, #f6efe6); padding: 100px 0; }
.ratings-inner { text-align: center; }
.ratings-stars { font-size: 30px; letter-spacing: 4px; margin-bottom: 18px; }
.ratings-title { font-size: clamp(38px, 6vw, 66px); font-weight: 600; letter-spacing: -0.03em; max-width: 9ch; margin: 0 auto; line-height: 1.05; }
.ratings-row { margin: 26px 0 34px; font-size: 22px; font-weight: 600; display: flex; align-items: center; justify-content: center; gap: 12px; }
.ratings-store { font-weight: 600; }
.ratings-dot { opacity: .5; }

/* ===== Content / legal pages ===== */
.page { padding: 70px 0 96px; }
.page-inner { max-width: 760px; margin: 0 auto; }
.page-kicker { color: var(--accent); font-weight: 600; text-transform: uppercase; letter-spacing: .08em; font-size: 13px; }
.page h1 { font-size: clamp(36px, 5vw, 54px); font-weight: 600; letter-spacing: -0.03em; margin: 10px 0 8px; }
.page .updated { color: var(--ink-soft); font-size: 15px; margin-bottom: 40px; }
.page h2 { font-size: 24px; font-weight: 600; letter-spacing: -0.02em; margin: 38px 0 12px; }
.page p, .page li { color: #6f3a14; font-size: 17px; margin-bottom: 14px; }
.page ul { padding-left: 22px; margin-bottom: 14px; }
.page li { margin-bottom: 8px; }
.page a.inline { color: var(--accent); font-weight: 600; text-decoration: underline; }

/* Support contact card */
.contact-card {
  background: #fbf6f0; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 32px; margin: 28px 0;
}
.contact-card h2 { font-size: 24px; font-weight: 600; letter-spacing: -0.02em; margin: 26px 0 10px; }
.contact-card h2:first-child { margin-top: 0; }
.contact-card p, .contact-card li { color: var(--ink-soft); font-size: 16px; margin-bottom: 12px; }
.contact-card ul { padding-left: 22px; margin-bottom: 4px; }
.contact-card li { margin-bottom: 8px; }
.contact-btn {
  display: inline-block; background: var(--accent); color: #fff; font-weight: 600;
  padding: 13px 24px; border-radius: 12px; margin: 4px 0 8px;
  transition: transform .15s ease, filter .15s ease;
}
.contact-btn:hover { transform: translateY(-2px); filter: brightness(1.07); }

/* ===== Footer ===== */
.site-footer { background: #fbfaf4; border-top: 1px solid var(--line); padding: 64px 0 0; }
.footer-inner { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; padding-bottom: 50px; }
.footer-tagline { font-weight: 600; margin: 20px 0 14px; }
.footer-col h4 { font-size: 18px; font-weight: 600; margin-bottom: 18px; }
.footer-col a { display: block; color: var(--ink-soft); margin-bottom: 12px; font-weight: 600; }
.footer-col a:hover { color: var(--accent); }
.footer-base { border-top: 1px solid var(--line); padding-top: 22px; padding-bottom: 26px; color: var(--ink-soft); }

/* ===== Animations ===== */
/* Scroll reveal */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s cubic-bezier(.16,.84,.44,1), transform .7s cubic-bezier(.16,.84,.44,1); will-change: opacity, transform; }
.reveal.in { opacity: 1; transform: none; }
/* Fade-only variant for elements whose transform is load-bearing (e.g. centered cards) */
.reveal-fade { opacity: 0; transition: opacity .7s cubic-bezier(.16,.84,.44,1); }
.reveal-fade.in { opacity: 1; }

/* Hero entrance (plays on load) */
.hero-copy > * { opacity: 0; transform: translateY(22px); animation: heroIn .8s cubic-bezier(.16,.84,.44,1) forwards; }
.hero-copy > .rating-pill { animation-delay: .05s; }
.hero-copy > .hero-title  { animation-delay: .18s; }
.hero-copy > .hero-sub    { animation-delay: .32s; }
.hero-copy > .store-buttons { animation-delay: .46s; }
.hero-art { opacity: 0; animation: heroArtIn 1s cubic-bezier(.16,.84,.44,1) .35s forwards; }
@keyframes heroIn { to { opacity: 1; transform: none; } }
@keyframes heroArtIn { from { opacity: 0; transform: translateY(30px) scale(.97); } to { opacity: 1; transform: none; } }

/* Gentle phone float */
.phone--front { animation: floatFront 6s ease-in-out infinite; }
.phone--back  { animation: floatBack 7.5s ease-in-out infinite; }
@keyframes floatFront { 0%,100% { transform: translateX(-95px) rotate(-7deg) translateY(0); } 50% { transform: translateX(-95px) rotate(-7deg) translateY(-16px); } }
@keyframes floatBack  { 0%,100% { transform: translateX(105px) rotate(6deg) translateY(0); } 50% { transform: translateX(105px) rotate(6deg) translateY(-13px); } }

/* Floating chips drift */
.float-chip { animation: chipFloat 4.5s ease-in-out infinite; }
.chip-2 { animation-duration: 5.5s; animation-delay: .6s; }
@keyframes chipFloat { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }

/* Hover lifts (include opacity/transform so they don't clobber the reveal transition) */
.card { transition: opacity .7s cubic-bezier(.16,.84,.44,1), transform .26s ease, box-shadow .22s ease; }
.card:hover { transform: translateY(-6px); box-shadow: 0 28px 60px rgba(111,58,20,.14); }
.testi-card { transition: opacity .7s cubic-bezier(.16,.84,.44,1), border-color .22s ease, box-shadow .22s ease; }
.testi-card:hover { border-color: #e0cdb8; box-shadow: 0 22px 48px rgba(111,58,20,.12); }
.card-ico { transition: transform .25s ease; }
.card:hover .card-ico { transform: scale(1.08) rotate(-4deg); }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .hero-copy > *, .hero-art { opacity: 1; transform: none; animation: none; }
  .phone--front, .phone--back, .float-chip { animation: none; }
  * { scroll-behavior: auto; }
}

/* ===== Responsive ===== */
@media (max-width: 900px) {
  .nav-links, .header-cta { display: none; }
  .nav-links.open {
    display: flex; flex-direction: column; gap: 4px;
    position: absolute; top: 76px; left: 0; right: 0;
    background: #fff; border-bottom: 1px solid var(--line); padding: 16px 28px;
  }
  .nav-links.open a { padding: 10px 0; }
  .menu-toggle { display: flex; }
  .hero-inner { grid-template-columns: 1fr; }
  .hero-art { height: 540px; margin-top: 10px; }
  .cards { grid-template-columns: 1fr; max-width: 460px; margin: 0 auto; }
  .testi-grid { grid-template-columns: 1fr; max-width: 460px; }
  .testi-card:nth-child(4), .testi-card:nth-child(5) { grid-column: auto; transform: none; }
  .footer-inner { grid-template-columns: 1fr; gap: 32px; }
}
@media (max-width: 480px) {
  .phone { width: 240px; height: 500px; }
  .phone--front { transform: translateX(-55px) rotate(-6deg); animation: floatFrontSm 6s ease-in-out infinite; }
  .phone--back { transform: translateX(70px) rotate(6deg); animation: floatBackSm 7.5s ease-in-out infinite; }
  .float-chip { display: none; }
}
@keyframes floatFrontSm { 0%,100% { transform: translateX(-55px) rotate(-6deg) translateY(0); } 50% { transform: translateX(-55px) rotate(-6deg) translateY(-12px); } }
@keyframes floatBackSm  { 0%,100% { transform: translateX(70px) rotate(6deg) translateY(0); } 50% { transform: translateX(70px) rotate(6deg) translateY(-10px); } }
