/* ============================================================
   HopTuu — site styles
   Brand: rainbow map-pins on white, coral accent, rounded & playful.
   ============================================================ */

:root {
  /* Core palette */
  --coral:        #F0526B;   /* primary accent — the HopTuu red */
  --coral-dark:   #D23E57;
  --coral-soft:   #FFE8EC;
  --ink:          #2A2A33;
  --ink-soft:     #5C5C68;
  --paper:        #FFFFFF;
  --cloud:        #F6F7F9;   /* light "map" gray */
  --line:         #ECECF1;

  /* Pin colors — used as playful accents everywhere */
  --pin-green:  #6FCF7F;
  --pin-blue:   #5BC2E7;
  --pin-yellow: #F2C744;
  --pin-purple: #B57BE0;
  --pin-pink:   #F58FB0;
  --pin-orange: #F39B5B;

  --radius:      22px;
  --radius-pill: 999px;
  --shadow:      0 10px 30px rgba(42, 42, 51, 0.08);
  --shadow-lg:   0 20px 50px rgba(42, 42, 51, 0.14);

  --font-display: "Baloo 2", system-ui, -apple-system, sans-serif;
  --font-body: system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

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

h1, h2, h3 {
  font-family: var(--font-display);
  line-height: 1.1;
  margin: 0 0 0.4em;
  letter-spacing: -0.01em;
}

h1 { font-size: clamp(2.4rem, 6vw, 4.2rem); font-weight: 800; }
h2 { font-size: clamp(1.8rem, 4vw, 2.6rem); font-weight: 700; }
h3 { font-size: 1.25rem; font-weight: 700; }

p { margin: 0 0 1em; color: var(--ink-soft); }

a { color: var(--coral); text-decoration: none; }
a:hover { text-decoration: underline; }

img { max-width: 100%; display: block; }

.wrap {
  width: min(1100px, 92vw);
  margin-inline: auto;
}

.center { text-align: center; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.05rem;
  padding: 0.8em 1.6em;
  border-radius: var(--radius-pill);
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.2s ease, background 0.2s ease;
  text-decoration: none;
}
.btn:hover { transform: translateY(-2px); text-decoration: none; }

.btn--primary {
  background: var(--coral);
  color: #fff;
  box-shadow: 0 8px 20px rgba(240, 82, 107, 0.35);
}
.btn--primary:hover { background: var(--coral-dark); }

.btn--ghost {
  background: #fff;
  color: var(--coral);
  border-color: var(--coral);
}

/* ---------- Header / nav ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--line);
}
.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.7rem 0;
}
.brand {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.5rem;
  color: var(--coral);
}
.brand:hover { text-decoration: none; }
.brand img {
  width: 38px; height: 38px;
  border-radius: 10px;
  box-shadow: var(--shadow);
}
.nav__links {
  display: flex;
  align-items: center;
  gap: 1.4rem;
  font-weight: 600;
}
.nav__links a { color: var(--ink); }
.nav__links a:hover { color: var(--coral); text-decoration: none; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  padding: clamp(3rem, 8vw, 6rem) 0 clamp(3rem, 7vw, 5rem);
  background:
    radial-gradient(1200px 500px at 80% -10%, var(--coral-soft), transparent 60%),
    var(--paper);
}
.hero__grid {
  position: relative;   /* sit above the decorative pins so text is never covered */
  z-index: 1;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}
.hero__eyebrow {
  display: inline-block;
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--coral);
  background: var(--coral-soft);
  padding: 0.35em 1em;
  border-radius: var(--radius-pill);
  margin-bottom: 1rem;
  font-size: 0.95rem;
}
.hero h1 .accent { color: var(--coral); }
.hero__sub { font-size: 1.2rem; max-width: 32ch; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 0.8rem; margin-top: 1.6rem; }
.hero__note { font-size: 0.9rem; margin-top: 1rem; color: var(--ink-soft); }

/* phone mockup in hero */
.phone {
  margin-inline: auto;
  width: min(280px, 70vw);
  border-radius: 38px;
  padding: 10px;
  background: #1c1c22;
  box-shadow: var(--shadow-lg);
  transform: rotate(2deg);
}
.phone img { border-radius: 30px; display: block; width: 100%; }

/* floating decorative pins */
.pin {
  position: absolute;
  z-index: 0;            /* purely decorative — stays behind the hero text */
  pointer-events: none;  /* never intercepts clicks/taps */
  width: 26px; height: 26px;
  border-radius: 50% 50% 50% 0;
  transform: rotate(-45deg);
  opacity: 0.85;
  box-shadow: 0 6px 14px rgba(0,0,0,0.12);
  animation: bob 5s ease-in-out infinite;
}
.pin::after {
  content: "";
  position: absolute;
  inset: 7px;
  background: rgba(255,255,255,0.65);
  border-radius: 50%;
}
@keyframes bob {
  0%,100% { transform: rotate(-45deg) translateY(0); }
  50%     { transform: rotate(-45deg) translateY(-10px); }
}

/* ---------- Bunny mascot ---------- */
@keyframes hop {
  0%,100% { transform: translateY(0); }
  50%     { transform: translateY(-12px); }
}
/* small bunny used inline within text (replaces the old bunny emoji) */
.bunny-inline {
  display: inline-block;   /* override the global `img { display:block }` so text stays on the same line */
  height: 1.2em;
  width: auto;
  vertical-align: -0.22em;
  margin-right: 0.15em;
}
/* larger standalone mascot */
.bunny-mascot {
  width: clamp(84px, 13vw, 128px);
  height: auto;
  filter: drop-shadow(0 10px 18px rgba(240, 82, 107, 0.28));
}
/* bunny tucked against the hero phone */
.hero__media { position: relative; }
.hero__bunny {
  position: absolute;
  bottom: -8px;
  left: -6px;
  width: clamp(82px, 13vw, 132px);
  height: auto;
  filter: drop-shadow(0 10px 18px rgba(240, 82, 107, 0.28));
  animation: hop 4s ease-in-out infinite;
}
@media (max-width: 860px) {
  .hero__bunny { left: 4%; }
}

/* ---------- Section scaffolding ---------- */
.section { padding: clamp(3rem, 7vw, 5.5rem) 0; }
.section--cloud { background: var(--cloud); }
.section__head { max-width: 46ch; margin-bottom: 2.5rem; }
.section--center .section__head { margin-inline: auto; text-align: center; }

/* ---------- Feature cards ---------- */
.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.4rem;
}
.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.8rem;
  box-shadow: var(--shadow);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.card__icon {
  width: 52px; height: 52px;
  border-radius: 16px;
  display: grid; place-items: center;
  font-size: 1.7rem;
  margin-bottom: 1rem;
}
.card h3 { margin-bottom: 0.4rem; }

/* ---------- Showcase (screenshots) ---------- */
.showcase {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.6rem;
  align-items: start;
}
.shot {
  border-radius: 28px;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 6px solid #fff;
  background: #fff;
}
.shot:nth-child(2) { transform: translateY(-1.5rem); }

/* ---------- CTA band ---------- */
.band {
  background: linear-gradient(120deg, var(--coral), #ff7e6b);
  color: #fff;
  border-radius: 32px;
  padding: clamp(2.4rem, 5vw, 3.6rem);
  text-align: center;
  box-shadow: var(--shadow-lg);
}
.band h2 { color: #fff; }
.band p { color: rgba(255,255,255,0.92); }
.band .btn--ghost { background: #fff; border-color: #fff; }

/* ---------- Footer ---------- */
.footer {
  border-top: 1px solid var(--line);
  padding: 2.5rem 0;
  font-size: 0.95rem;
}
.footer__inner {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: space-between;
  align-items: center;
}
.footer__links { display: flex; gap: 1.3rem; flex-wrap: wrap; }
.footer__links a { color: var(--ink-soft); }
.footer small { color: var(--ink-soft); }

/* ============================================================
   Sub-pages (support / privacy)
   ============================================================ */
.page-head {
  padding: clamp(2.5rem, 6vw, 4rem) 0 1rem;
  background:
    radial-gradient(900px 400px at 90% -20%, var(--coral-soft), transparent 60%),
    var(--paper);
}
.prose { width: min(760px, 92vw); margin-inline: auto; padding: 1rem 0 4rem; }
.prose h2 { margin-top: 2rem; }
.prose h3 { margin-top: 1.5rem; }
.prose ul { color: var(--ink-soft); padding-left: 1.2rem; }
.prose li { margin-bottom: 0.4rem; }
.prose .updated { color: var(--ink-soft); font-size: 0.9rem; }

/* ---------- Form ---------- */
.form-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: clamp(1.5rem, 4vw, 2.4rem);
}
.field { margin-bottom: 1.1rem; }
.field label {
  display: block;
  font-weight: 600;
  margin-bottom: 0.4rem;
  color: var(--ink);
}
.field input,
.field select,
.field textarea {
  width: 100%;
  font: inherit;
  color: var(--ink);
  padding: 0.8em 1em;
  border: 2px solid var(--line);
  border-radius: 14px;
  background: var(--cloud);
  transition: border-color 0.15s ease, background 0.15s ease;
}
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--coral);
  background: #fff;
}
.field textarea { min-height: 150px; resize: vertical; }
.hp { position: absolute; left: -9999px; }  /* honeypot */

/* ---------- FAQ ---------- */
.faq details {
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 0.4rem 1.2rem;
  margin-bottom: 0.8rem;
  background: #fff;
}
.faq summary {
  cursor: pointer;
  font-weight: 700;
  font-family: var(--font-display);
  padding: 0.7rem 0 0.7rem 2.1rem;
  list-style: none;
  background: url("assets/bunny.png") no-repeat left 0.55rem / 1.4em auto;
}
.faq summary::-webkit-details-marker { display: none; }
.faq details[open] summary { color: var(--coral); }

/* ---------- Responsive ---------- */
@media (max-width: 860px) {
  .hero__grid { grid-template-columns: 1fr; text-align: center; }
  .hero__sub { margin-inline: auto; }
  .hero__cta { justify-content: center; }
  .cards { grid-template-columns: 1fr; }
  .showcase { grid-template-columns: 1fr; max-width: 360px; margin-inline: auto; }
  .shot:nth-child(2) { transform: none; }
  .nav__links a:not(.btn) { display: none; }  /* keep nav tidy on mobile */
}
