/* ============================================================
   PHYLOSY — website (same design language as the app)
   ============================================================ */
@font-face {
  font-family: "LuckiestGuy";
  src: url("../fonts/LuckiestGuy.ttf") format("truetype");
  font-display: swap;
}

:root {
  --purple: #7c5cc4;
  --purple-dark: #5d40a4;
  --ink: #3a2e52;
  --teal: #2ec4b6;
  --sun: #ffbf3f;
  --coral: #ff6b6b;
  --cream: #fff6e9;
  --sky1: #c9b6f0;
  --sky2: #ffd9a0;
  --display: "LuckiestGuy", "Comic Sans MS", cursive;
  --body: -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --shadow: 0 6px 0 var(--ink);
  --radius: 22px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--body);
  color: var(--ink);
  background: var(--cream);
  line-height: 1.6;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
.wrap { width: min(1120px, 92vw); margin: 0 auto; }

/* ---------- typography ---------- */
h1, h2, h3 { font-family: var(--display); font-weight: 400; letter-spacing: .5px; line-height: 1.05; }
.eyebrow {
  display: inline-block; font-weight: 900; text-transform: uppercase; letter-spacing: 2px;
  font-size: 13px; color: var(--purple-dark); background: #fff;
  border: 3px solid var(--ink); border-radius: 999px; padding: 6px 16px;
  box-shadow: 0 4px 0 var(--ink); margin-bottom: 20px;
}
.section-title { font-size: clamp(30px, 5vw, 48px); text-align: center; color: var(--ink); }
.section-sub { text-align: center; max-width: 620px; margin: 14px auto 0; font-size: 17px; font-weight: 500; color: #6b5e8c; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--display); font-size: 22px; color: var(--ink);
  background: linear-gradient(180deg, #ffd166, var(--sun));
  border: 3px solid var(--ink); border-radius: 18px; padding: 14px 26px 10px;
  box-shadow: var(--shadow); cursor: pointer; transition: transform .12s, box-shadow .12s;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 8px 0 var(--ink); }
.btn:active { transform: translateY(4px); box-shadow: 0 2px 0 var(--ink); }
.btn.teal { background: linear-gradient(180deg, #45e0d2, var(--teal)); color: #fff; }
.btn.coral { background: linear-gradient(180deg, #ff9d6b, var(--coral)); color: #fff; }
.btn.ghost { background: #fff; }
.btn .store-sub { display: flex; flex-direction: column; align-items: flex-start; line-height: 1; }
.btn .store-sub small { font-family: var(--body); font-size: 10px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; opacity: .85; margin-bottom: 3px; }

/* ---------- nav ---------- */
header.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 246, 233, .92); backdrop-filter: blur(8px);
  border-bottom: 3px solid var(--ink);
}
.nav-inner { display: flex; align-items: center; gap: 20px; padding: 12px 0; }
.brand { display: flex; align-items: center; gap: 10px; }
.brand svg { width: 42px; height: 42px; }
.brand .name { font-family: var(--display); font-size: 26px; color: var(--ink); }
.nav-links { display: flex; gap: 22px; margin-left: auto; }
.nav-links a { font-weight: 800; font-size: 15px; color: var(--purple-dark); transition: color .15s; }
.nav-links a:hover { color: var(--coral); }
.nav-cta { }
@media (max-width: 780px) { .nav-links { display: none; } }

/* ---------- hero ---------- */
.hero { position: relative; overflow: hidden; padding: 40px 0 90px;
  background: linear-gradient(180deg, var(--sky1) 0%, #d8c4f2 40%, var(--sky2) 100%); }
.hero .clouds span { position: absolute; background: #fff; border-radius: 60px; opacity: .8;
  box-shadow: 26px 10px 0 6px #fff, -22px 12px 0 4px #fff; animation: drift 40s linear infinite; }
.hero .c1 { width: 90px; height: 32px; top: 12%; left: -15%; }
.hero .c2 { width: 64px; height: 24px; top: 30%; left: -35%; animation-duration: 58s; animation-delay: -20s; }
.hero .c3 { width: 110px; height: 38px; top: 8%; left: -55%; animation-duration: 70s; animation-delay: -44s; }
@keyframes drift { from { transform: translateX(0); } to { transform: translateX(180vw); } }
.hero-hills { position: absolute; left: 0; right: 0; bottom: 0; height: 120px;
  background: radial-gradient(120% 90% at 20% 100%, #9bd8a8 0 55%, transparent 56%),
              radial-gradient(130% 100% at 85% 100%, #7ccb8f 0 60%, transparent 61%); }
.hero-grid { position: relative; z-index: 2; display: grid; grid-template-columns: 1.1fr .9fr; gap: 40px; align-items: center; }
@media (max-width: 860px) { .hero-grid { grid-template-columns: 1fr; text-align: center; } }
.hero-owl { width: min(30vw, 150px); margin: 0 auto 6px; animation: bob 3.2s ease-in-out infinite; }
@media (max-width: 860px) { .hero-owl { width: 150px; } }
@keyframes bob { 0%,100% { transform: translateY(0) rotate(-1.5deg); } 50% { transform: translateY(-10px) rotate(1.5deg); } }
.hero h1 { font-size: clamp(52px, 11vw, 92px); color: #fff;
  -webkit-text-stroke: 3px var(--ink); text-shadow: 0 6px 0 var(--ink), 0 10px 18px rgba(58,46,82,.3); letter-spacing: 2px; }
.hero .lead { font-size: clamp(18px, 2.4vw, 23px); font-weight: 700; color: var(--purple-dark); margin: 18px 0 8px; }
.hero .sub { font-size: 16px; font-weight: 500; color: #4b3d6b; max-width: 480px; }
@media (max-width: 860px) { .hero .sub { margin-inline: auto; } }
.hero-cta { display: flex; gap: 14px; margin-top: 28px; flex-wrap: wrap; }
@media (max-width: 860px) { .hero-cta { justify-content: center; } }
@media (max-width: 480px) {
  .hero-cta { flex-direction: column; align-items: stretch; }
  .hero-cta .btn { justify-content: center; }
}
.hero-badges { display: flex; gap: 10px; margin-top: 22px; flex-wrap: wrap; }
@media (max-width: 860px) { .hero-badges { justify-content: center; } }
.pill { background: rgba(255,255,255,.9); border: 3px solid var(--ink); border-radius: 999px;
  font-weight: 800; font-size: 14px; padding: 8px 16px; box-shadow: 0 4px 0 var(--ink); }
.hero-phone { position: relative; justify-self: center; }
.hero-phone img { width: min(78vw, 300px); border: 5px solid var(--ink); border-radius: 34px;
  box-shadow: 0 14px 0 rgba(58,46,82,.85), 0 30px 50px rgba(58,46,82,.35); }

/* ---------- generic section ---------- */
section.band { padding: 84px 0; }
.band.tint { background: linear-gradient(180deg, #fff 0%, #f7f1ff 100%); border-top: 3px solid var(--ink); border-bottom: 3px solid var(--ink); }

/* ---------- feature cards ---------- */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-top: 50px; }
@media (max-width: 860px) { .cards { grid-template-columns: 1fr; } }
.card {
  background: #fff; border: 3px solid var(--ink); border-radius: var(--radius);
  box-shadow: var(--shadow); padding: 26px 24px; transition: transform .15s, box-shadow .15s;
}
.card:hover { transform: translateY(-4px); box-shadow: 0 10px 0 var(--ink); }
.card .ico { font-size: 40px; display: block; margin-bottom: 12px; }
.card h3 { font-size: 22px; color: var(--purple-dark); margin-bottom: 8px; }
.card p { font-size: 15px; font-weight: 500; color: #5b4e7a; }

/* ---------- modes ---------- */
.modes { display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; margin-top: 50px; }
@media (max-width: 980px) { .modes { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .modes { grid-template-columns: 1fr; } }
.mode { text-align: center; background: #fff; border: 3px solid var(--ink); border-radius: 20px;
  box-shadow: var(--shadow); padding: 22px 14px; transition: transform .15s; }
.mode:hover { transform: translateY(-4px) rotate(-1deg); }
.mode .ico { font-size: 38px; }
.mode h3 { font-size: 18px; margin: 10px 0 6px; }
.mode p { font-size: 13px; font-weight: 600; color: #6b5e8c; }
.mode:nth-child(1){ background: linear-gradient(180deg,#eafff9,#d4f6ea); }
.mode:nth-child(2){ background: linear-gradient(180deg,#f1ebff,#e2d5fb); }
.mode:nth-child(3){ background: linear-gradient(180deg,#fff0e8,#ffe0d1); }
.mode:nth-child(4){ background: linear-gradient(180deg,#fff8e6,#ffedbe); }
.mode:nth-child(5){ background: linear-gradient(180deg,#fdeafd,#f6d9f6); }

/* ---------- screenshots ---------- */
.shots { display: flex; gap: 22px; overflow-x: auto; padding: 50px 4px 14px; scroll-snap-type: x mandatory; }
.shots img { width: 240px; flex: none; scroll-snap-align: center; border: 5px solid var(--ink);
  border-radius: 28px; box-shadow: 0 10px 0 rgba(58,46,82,.85); background: #fff; }

/* ---------- languages ---------- */
.langs { display: flex; justify-content: center; gap: 18px; margin-top: 44px; flex-wrap: wrap; }
.lang { background: #fff; border: 3px solid var(--ink); border-radius: 20px; box-shadow: var(--shadow);
  padding: 20px 30px; text-align: center; min-width: 160px; transition: transform .15s; }
.lang:hover { transform: translateY(-4px); }
.lang .flag { font-size: 44px; }
.lang h3 { font-size: 22px; margin-top: 8px; color: var(--purple-dark); }
.lang p { font-size: 13px; font-weight: 700; color: #6b5e8c; }

/* ---------- free band ---------- */
.free { background: linear-gradient(180deg, var(--purple), var(--purple-dark)); color: #fff;
  border-top: 3px solid var(--ink); border-bottom: 3px solid var(--ink); text-align: center; }
.free .section-title { color: #fff; text-shadow: 0 4px 0 rgba(30,22,48,.5); }
.free .free-list { display: flex; justify-content: center; gap: 28px; flex-wrap: wrap; margin: 30px 0 34px; }
.free .free-list span { font-weight: 800; font-size: 17px; }
.free .free-list b { display: block; font-family: var(--display); font-size: 30px; color: var(--sun); }

/* ---------- CTA ---------- */
.cta { text-align: center; }
.cta .cta-owl { font-size: 64px; }

/* ---------- footer ---------- */
footer { background: var(--ink); color: #d9cdf0; padding: 50px 0 30px; text-align: center; }
footer .brand { justify-content: center; margin-bottom: 16px; }
footer .brand .name { color: #fff; }
footer .flinks { display: flex; justify-content: center; gap: 22px; flex-wrap: wrap; margin-bottom: 18px; }
footer .flinks a { font-weight: 700; font-size: 15px; color: #cdbff0; transition: color .15s; }
footer .flinks a:hover { color: var(--sun); }
footer .fine { font-size: 13px; color: #9384bd; }

/* ---------- reveal-on-scroll ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .hero-owl, .hero .clouds span { animation: none; }
}

/* ---------- policy pages ---------- */
.policy-hero { background: linear-gradient(180deg, var(--sky1), var(--sky2)); border-bottom: 3px solid var(--ink);
  text-align: center; padding: 50px 0; }
.policy-hero h1 { font-size: clamp(34px, 7vw, 56px); color: #fff; -webkit-text-stroke: 2.5px var(--ink);
  text-shadow: 0 5px 0 var(--ink); }
.policy-hero p { font-weight: 700; color: var(--purple-dark); margin-top: 10px; }
.policy { max-width: 760px; margin: 0 auto; padding: 56px 0 80px; }
.policy .card { padding: 34px 30px; }
.policy h2 { font-size: 26px; color: var(--purple-dark); margin: 28px 0 10px; }
.policy h2:first-child { margin-top: 0; }
.policy p, .policy li { font-size: 16px; font-weight: 500; color: #4b3d6b; margin-bottom: 12px; }
.policy ul { padding-left: 22px; }
.policy li { margin-bottom: 8px; }
.policy strong { color: var(--ink); }
.policy .updated { display: inline-block; font-weight: 800; font-size: 13px; color: var(--purple-dark);
  background: #f1ebff; border: 2px solid var(--ink); border-radius: 10px; padding: 5px 12px; margin-bottom: 20px; }
.back-home { display: inline-flex; align-items: center; gap: 8px; margin-top: 30px; font-weight: 800; color: var(--purple-dark); }
