/* Wordable — wordable.live
   Brand palette pulled from the iOS app:
     #FF6699  — primary pink (header text, buttons, brand)
     #FFB3D1  — light pink (gradient mate)
     #7B2FBE  — deep magenta accent
     #4A1A2E  — near-black text on light surfaces
*/

:root {
  --pink: #FF6699;
  --pink-soft: #FFB3D1;
  --pink-deep: #E04E80;
  --magenta: #7B2FBE;
  --ink: #4A1A2E;
  --ink-soft: #6B3A4F;
  --cream: #FFF6F8;
  --white: #FFFFFF;
  --shadow: 0 12px 32px rgba(123, 47, 190, 0.18);
  --shadow-soft: 0 6px 18px rgba(255, 102, 153, 0.25);
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Rounded", "SF Pro Text", "Helvetica Neue", Arial, sans-serif;
  color: var(--ink);
  background: var(--cream);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; display: block; }
a { color: var(--magenta); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ---------- Hero ---------- */

.hero {
  position: relative;
  background: linear-gradient(160deg, var(--pink) 0%, var(--pink-soft) 100%);
  color: var(--white);
  padding: 72px 24px 96px;
  text-align: center;
  overflow: hidden;
}

.hero::before {
  /* subtle confetti dot pattern */
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 12% 18%, rgba(255,255,255,0.18) 0 6px, transparent 7px),
    radial-gradient(circle at 88% 22%, rgba(255,255,255,0.12) 0 8px, transparent 9px),
    radial-gradient(circle at 22% 82%, rgba(255,255,255,0.14) 0 5px, transparent 6px),
    radial-gradient(circle at 76% 78%, rgba(255,255,255,0.16) 0 7px, transparent 8px),
    radial-gradient(circle at 50% 8%, rgba(255,255,255,0.10) 0 4px, transparent 5px);
  pointer-events: none;
}

.hero-inner {
  position: relative;
  max-width: 720px;
  margin: 0 auto;
}

.app-icon {
  width: 168px;
  height: 168px;
  border-radius: 38px;
  box-shadow: var(--shadow);
  margin: 0 auto 28px;
  animation: floaty 4.5s ease-in-out infinite;
  transform-origin: center;
}

@keyframes floaty {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-10px); }
}

@media (prefers-reduced-motion: reduce) {
  .app-icon { animation: none; }
}

.wordmark {
  height: 72px;
  width: auto;
  margin: 0 auto 14px;
  filter: drop-shadow(0 6px 16px rgba(123, 47, 190, 0.35));
}

.tagline {
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.01em;
  margin: 0 auto 36px;
  max-width: 480px;
  color: rgba(255, 255, 255, 0.95);
}

/* ---------- App Store CTA ---------- */

.cta-row {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 28px;
}

.app-store-badge {
  display: inline-block;
  transition: transform 140ms ease;
}
.app-store-badge:hover { transform: translateY(-2px); }
.app-store-badge:active { transform: translateY(0); }
.app-store-badge svg {
  height: 60px;
  width: auto;
  display: block;
  filter: drop-shadow(0 6px 14px rgba(0,0,0,0.18));
}

.qr-card {
  background: var(--white);
  border-radius: 20px;
  padding: 18px 18px 14px;
  box-shadow: var(--shadow);
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.qr-card .qr-image {
  width: 132px;
  height: 132px;
}

.qr-card .qr-label {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--magenta);
}

/* ---------- About ---------- */

.about {
  max-width: 760px;
  margin: 0 auto;
  padding: 88px 24px;
}

.about h2 {
  font-size: 36px;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin: 0 0 20px;
  color: var(--ink);
}

.about p {
  font-size: 18px;
  line-height: 1.6;
  color: var(--ink-soft);
  margin: 0 0 16px;
}

.feature-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 28px;
  justify-content: flex-start;
}

.pill {
  background: var(--white);
  border: 2px solid var(--pink-soft);
  color: var(--pink-deep);
  padding: 8px 16px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.01em;
}

/* ---------- Screenshots (auto-scrolling, draggable, click-to-zoom) ---------- */

.screenshots {
  background: linear-gradient(180deg, var(--cream) 0%, #FFE9F0 100%);
  padding: 72px 0 88px;
  /* edge fade so screenshots feel like they drift in/out */
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 80px, #000 calc(100% - 80px), transparent 100%);
          mask-image: linear-gradient(90deg, transparent 0, #000 80px, #000 calc(100% - 80px), transparent 100%);
}

.screenshots-track {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  gap: 28px;
  padding: 12px 32px 24px;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-behavior: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  -ms-overflow-style: none;
  cursor: grab;
  user-select: none;
}
.screenshots-track:active { cursor: grabbing; }
.screenshots-track::-webkit-scrollbar { display: none; }

.screenshots-track img {
  flex: 0 0 auto;
  width: 260px;
  height: auto;
  border-radius: 28px;
  box-shadow: 0 18px 40px rgba(123, 47, 190, 0.18);
  cursor: zoom-in;
  transition: transform 200ms ease, box-shadow 200ms ease;
  -webkit-user-drag: none;
  pointer-events: auto;
}
.screenshots-track img:hover {
  transform: translateY(-4px);
  box-shadow: 0 24px 50px rgba(123, 47, 190, 0.28);
}

@media (max-width: 600px) {
  .screenshots { padding: 56px 0 64px; }
  .screenshots-track { gap: 18px; padding: 12px 20px 20px; }
  .screenshots-track img { width: 220px; }
}

/* ---------- Lightbox ---------- */

.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(74, 26, 46, 0.88);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  cursor: zoom-out;
  animation: lightbox-fade 180ms ease;
}
.lightbox[hidden] { display: none; }

.lightbox-image {
  max-width: 92vw;
  max-height: 92vh;
  width: auto;
  height: auto;
  border-radius: 28px;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.55);
  animation: lightbox-pop 220ms cubic-bezier(0.2, 0.9, 0.3, 1.1);
}

.lightbox-close {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: none;
  background: var(--white);
  color: var(--ink);
  font-size: 28px;
  font-weight: 600;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.25);
  transition: transform 140ms ease;
}
.lightbox-close:hover { transform: scale(1.08); }

@keyframes lightbox-fade {
  from { opacity: 0; }
  to   { opacity: 1; }
}
@keyframes lightbox-pop {
  from { opacity: 0; transform: scale(0.94); }
  to   { opacity: 1; transform: scale(1); }
}

@media (prefers-reduced-motion: reduce) {
  .lightbox, .lightbox-image { animation: none; }
}

/* ---------- Footer ---------- */

.site-footer {
  background: var(--white);
  border-top: 1px solid rgba(255, 102, 153, 0.18);
  padding: 8px 24px 20px;
  text-align: center;
}

.footer-inner {
  max-width: 760px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}

.footer-logo {
  width: 360px;
  height: 360px;
  opacity: 1;
  /* The PNG has ~15% transparent padding on top/bottom — claw it back so the
     visible flower glyph hugs the surrounding text instead of floating in space. */
  margin: -56px 0 -48px;
}

@media (max-width: 600px) {
  .footer-logo {
    width: 260px;
    height: 260px;
    margin: -40px 0 -34px;
  }
}

.footer-credit {
  font-size: 14px;
  color: var(--ink-soft);
  font-weight: 500;
  margin: 0;
}

.footer-links {
  display: flex;
  gap: 24px;
  font-size: 14px;
}

.footer-links a {
  color: var(--ink-soft);
  font-weight: 600;
}
.footer-links a:hover { color: var(--magenta); }

/* ---------- Mobile ---------- */

@media (max-width: 600px) {
  .hero { padding: 56px 20px 72px; }
  .app-icon { width: 132px; height: 132px; border-radius: 30px; margin-bottom: 22px; }
  .wordmark { height: 44px; }
  .tagline { font-size: 18px; margin-bottom: 28px; }
  .app-store-badge svg { height: 52px; }
  .qr-card .qr-image { width: 116px; height: 116px; }
  .about { padding: 64px 20px; }
  .about h2 { font-size: 28px; }
  .about p { font-size: 16px; }
}

/* ---------- Compact hero (support page) ---------- */

.hero-compact {
  padding: 56px 24px 48px;
}

.hero-back { display: inline-block; }

.app-icon-small {
  width: 84px;
  height: 84px;
  border-radius: 20px;
  margin: 0 auto 20px;
  box-shadow: var(--shadow);
  transition: transform 140ms ease;
}
.hero-back:hover .app-icon-small { transform: translateY(-3px); }

.page-title {
  font-size: 44px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--white);
  margin: 0 0 10px;
  text-shadow: 0 4px 14px rgba(123, 47, 190, 0.25);
}

/* ---------- Support page body ---------- */

.page-body {
  max-width: 720px;
  margin: 0 auto;
  padding: 56px 24px 64px;
}

.contact-card {
  background: var(--white);
  border-radius: 20px;
  padding: 32px 28px;
  box-shadow: var(--shadow-soft);
  margin-bottom: 40px;
  border: 2px solid var(--pink-soft);
}

.contact-card h2 {
  font-size: 24px;
  font-weight: 800;
  color: var(--ink);
  margin: 0 0 12px;
}

.contact-card p {
  font-size: 17px;
  line-height: 1.55;
  color: var(--ink-soft);
  margin: 0 0 20px;
}

.contact-button {
  display: inline-block;
  background: var(--pink);
  color: var(--white) !important;
  font-weight: 700;
  font-size: 16px;
  padding: 14px 28px;
  border-radius: 999px;
  text-decoration: none !important;
  transition: transform 140ms ease, background 140ms ease;
  box-shadow: var(--shadow-soft);
}
.contact-button:hover {
  background: var(--pink-deep);
  transform: translateY(-2px);
}

.faq h2 {
  font-size: 26px;
  font-weight: 800;
  color: var(--ink);
  margin: 0 0 20px;
}

.faq details {
  background: var(--white);
  border-radius: 14px;
  padding: 18px 22px;
  margin-bottom: 12px;
  box-shadow: 0 2px 8px rgba(255, 102, 153, 0.08);
  border: 1px solid rgba(255, 102, 153, 0.15);
}

.faq summary {
  font-weight: 700;
  font-size: 16px;
  color: var(--ink);
  cursor: pointer;
  list-style: none;
  position: relative;
  padding-right: 28px;
  outline: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  font-size: 22px;
  font-weight: 600;
  color: var(--pink);
  transition: transform 200ms ease;
}
.faq details[open] summary::after { transform: translateY(-50%) rotate(45deg); }

.faq details p {
  font-size: 15px;
  line-height: 1.6;
  color: var(--ink-soft);
  margin: 14px 0 0;
}
.faq details p + p { margin-top: 10px; }

@media (max-width: 600px) {
  .hero-compact { padding: 44px 20px 36px; }
  .app-icon-small { width: 68px; height: 68px; border-radius: 16px; }
  .page-title { font-size: 34px; }
  .page-body { padding: 40px 20px 48px; }
  .contact-card { padding: 24px 20px; }
  .faq details { padding: 16px 18px; }
}

/* ---------- Legal pages (privacy.html / terms.html) ---------- */
/* Match the in-app PrivacyPolicyView aesthetic */

.legal {
  background: #F6EDDE;
  min-height: 100vh;
  padding: 48px 20px 64px;
}

.legal-card {
  background: rgba(255, 255, 255, 0.6);
  max-width: 760px;
  margin: 0 auto;
  border-radius: 16px;
  padding: 40px 36px;
  color: #5C4A3A;
  font-size: 15px;
  line-height: 1.65;
}

.legal-card h1 {
  font-size: 28px;
  font-weight: 800;
  color: #4A3728;
  margin: 0 0 8px;
  text-align: center;
}

.legal-card .legal-subtitle {
  text-align: center;
  color: #8B7355;
  font-style: italic;
  margin: 0 0 28px;
}

.legal-card h2 {
  font-size: 16px;
  font-weight: 800;
  color: #4A3728;
  letter-spacing: 0.04em;
  margin: 28px 0 10px;
  text-transform: uppercase;
}

.legal-card p, .legal-card ul { margin: 0 0 14px; }
.legal-card ul { padding-left: 22px; }
.legal-card li { margin-bottom: 6px; }
.legal-card hr {
  border: none;
  border-top: 1px solid rgba(74, 55, 40, 0.2);
  margin: 28px 0;
}

.legal-back {
  display: block;
  text-align: center;
  margin-top: 24px;
  color: #8B7355;
  font-weight: 600;
}
