/* ==========================================================================
   Quenched — landing page styles
   Dark hydration theme matched to the iOS app.
   Accent cyan gradient: rgb(41,219,255) -> rgb(20,140,235)
     (the app's progress-ring gradient)
   ========================================================================== */

:root {
  --bg-base: #051429;            /* Color(0.02, 0.08, 0.16) */
  --bg-deep: #052e47;            /* Color(0.02, 0.18, 0.28) */
  --water-front: rgb(10, 140, 224);
  --water-foam: rgb(26, 199, 242);
  --accent-light: rgb(41, 219, 255);   /* Color(0.16, 0.86, 1.0) */
  --accent-mid: rgb(20, 140, 235);     /* Color(0.07, 0.57, 0.96) */
  --text: #eef6fb;
  --text-dim: rgba(238, 246, 251, 0.66);
  --text-faint: rgba(238, 246, 251, 0.45);
  --glass: rgba(255, 255, 255, 0.07);
  --glass-strong: rgba(255, 255, 255, 0.14);
  --glass-border: rgba(255, 255, 255, 0.12);
  --maxw: 1120px;
  --head-font: "Avenir Next", "Avenir", system-ui, -apple-system, sans-serif;
  --body-font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    Helvetica, Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--body-font);
  color: var(--text);
  background: var(--bg-base);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

h1,
h2,
h3,
.wordmark {
  font-family: var(--head-font);
  font-weight: 800;
  letter-spacing: -0.01em;
  line-height: 1.08;
  margin: 0 0 0.5em;
}

a {
  color: var(--accent-light);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

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

/* ---- Top navigation ------------------------------------------------------ */
.site-header {
  position: relative;
  z-index: 3;
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px 24px;
  max-width: var(--maxw);
  margin: 0 auto;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--head-font);
  font-weight: 800;
  font-size: 1.35rem;
  color: var(--text);
}

.brand:hover {
  text-decoration: none;
}

.brand .logo-drop {
  width: 26px;
  height: 26px;
  flex: none;
}

.nav-links {
  display: flex;
  gap: 26px;
  align-items: center;
  font-size: 0.96rem;
}

.nav-links a {
  color: var(--text-dim);
}

.nav-links a:hover {
  color: var(--text);
  text-decoration: none;
}

/* ---- Hero ---------------------------------------------------------------- */
.hero {
  position: relative;
  min-height: 92vh;
  display: flex;
  align-items: center;
  overflow: hidden;
}

#fluid {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  z-index: 0;
}

/* Soft vignette so hero text stays legible over the moving water. */
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: radial-gradient(
      120% 90% at 20% 30%,
      rgba(5, 20, 41, 0.55) 0%,
      rgba(5, 20, 41, 0) 60%
    ),
    linear-gradient(180deg, rgba(5, 20, 41, 0.35) 0%, rgba(5, 20, 41, 0) 40%);
  pointer-events: none;
}

.hero-inner {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 64px 24px 96px;
}

.hero-content {
  max-width: 620px;
}

.eyebrow {
  display: inline-block;
  font-family: var(--head-font);
  font-weight: 700;
  font-size: 0.82rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent-light);
  padding: 6px 14px;
  border: 1px solid var(--glass-border);
  border-radius: 999px;
  background: var(--glass);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  margin-bottom: 22px;
}

.hero h1 {
  font-size: clamp(2.6rem, 7vw, 4.6rem);
  margin-bottom: 18px;
}

.hero .tagline {
  font-size: clamp(1.1rem, 2.4vw, 1.4rem);
  color: var(--text-dim);
  max-width: 520px;
  margin-bottom: 34px;
}

.gradient-text {
  background: linear-gradient(
    100deg,
    var(--accent-light),
    var(--accent-mid)
  );
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

/* ---- App Store badge ----------------------------------------------------- */
.store-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
}

.app-store-badge {
  display: inline-block;
  line-height: 0;
  border-radius: 12px;
  transition: transform 0.15s ease, opacity 0.15s ease;
}

.app-store-badge:hover {
  transform: translateY(-2px);
  text-decoration: none;
}

.app-store-badge:focus-visible {
  outline: 3px solid var(--accent-light);
  outline-offset: 3px;
}

.app-store-badge img,
.app-store-badge svg {
  height: 56px;
  width: auto;
  display: block;
}

/* ---- Generic section ----------------------------------------------------- */
.section {
  padding: 96px 0;
  position: relative;
}

.section-head {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 56px;
}

.section-head h2 {
  font-size: clamp(2rem, 4.5vw, 2.9rem);
}

.section-head p {
  color: var(--text-dim);
  font-size: 1.1rem;
  margin: 0;
}

.section-alt {
  background: linear-gradient(180deg, var(--bg-base) 0%, #06192f 100%);
}

/* ---- Feature grid -------------------------------------------------------- */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 22px;
}

.feature-card {
  background: var(--glass);
  border: 1px solid var(--glass-border);
  border-radius: 20px;
  padding: 28px;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.feature-card:hover {
  transform: translateY(-4px);
  border-color: rgba(41, 219, 255, 0.4);
}

.feature-icon {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: linear-gradient(
    135deg,
    rgba(41, 219, 255, 0.22),
    rgba(20, 140, 235, 0.22)
  );
  margin-bottom: 18px;
}

.feature-icon svg {
  width: 24px;
  height: 24px;
  stroke: var(--accent-light);
}

.feature-card h3 {
  font-size: 1.2rem;
  margin-bottom: 8px;
}

.feature-card p {
  color: var(--text-dim);
  font-size: 0.98rem;
  margin: 0;
}

/* ---- Screenshots --------------------------------------------------------- */
.screenshot-row {
  display: flex;
  gap: 28px;
  justify-content: center;
  flex-wrap: wrap;
}

/* iPhone frame placeholder (~1170x2532 ratio) */
.phone-frame {
  width: 248px;
  aspect-ratio: 1170 / 2532;
  border-radius: 40px;
  padding: 12px;
  background: linear-gradient(160deg, #1a2740, #0a1626);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 30px 60px -20px rgba(0, 0, 0, 0.7);
  flex: none;
}

.phone-screen,
.watch-screen {
  width: 100%;
  height: 100%;
  border-radius: 30px;
  overflow: hidden;
  display: grid;
  place-items: center;
  position: relative;
  background: linear-gradient(180deg, var(--bg-base), var(--bg-deep));
}

.placeholder-label {
  position: absolute;
  bottom: 18px;
  left: 0;
  right: 0;
  text-align: center;
  font-family: var(--head-font);
  font-weight: 700;
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-faint);
}

.placeholder-drop {
  width: 64px;
  height: 64px;
  opacity: 0.5;
}

/* Apple Watch frame placeholder */
.watch-row {
  display: flex;
  gap: 36px;
  justify-content: center;
  flex-wrap: wrap;
  align-items: center;
}

.watch-frame {
  width: 170px;
  height: 205px;
  border-radius: 46px;
  padding: 14px;
  background: linear-gradient(160deg, #20242c, #0c0e12);
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 24px 50px -18px rgba(0, 0, 0, 0.75);
  flex: none;
}

.watch-screen {
  border-radius: 34px;
}

/* ---- CTA band ------------------------------------------------------------ */
.cta {
  text-align: center;
  padding: 100px 0;
  background: radial-gradient(
    90% 140% at 50% 0%,
    rgba(20, 140, 235, 0.22) 0%,
    rgba(5, 20, 41, 0) 60%
  );
}

.cta h2 {
  font-size: clamp(2.1rem, 5vw, 3.2rem);
  margin-bottom: 18px;
}

.cta p {
  color: var(--text-dim);
  font-size: 1.15rem;
  margin: 0 auto 30px;
  max-width: 520px;
}

.cta .store-buttons {
  justify-content: center;
}

/* ---- Footer -------------------------------------------------------------- */
.site-footer {
  border-top: 1px solid var(--glass-border);
  padding: 48px 0 60px;
  background: #04101f;
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: space-between;
  align-items: center;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--head-font);
  font-weight: 800;
  font-size: 1.1rem;
}

.footer-links {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
}

.footer-links a {
  color: var(--text-dim);
}

.footer-meta {
  width: 100%;
  margin-top: 26px;
  padding-top: 22px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  color: var(--text-faint);
  font-size: 0.88rem;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  justify-content: space-between;
}

/* ==========================================================================
   Legal / support content pages
   ========================================================================== */
.page-hero {
  padding: 70px 0 30px;
  background: linear-gradient(180deg, var(--bg-deep) 0%, var(--bg-base) 100%);
  border-bottom: 1px solid var(--glass-border);
}

.page-hero h1 {
  font-size: clamp(2.2rem, 5vw, 3.2rem);
  margin-bottom: 8px;
}

.page-hero .updated {
  color: var(--text-faint);
  font-size: 0.95rem;
}

.placeholder-note {
  display: inline-block;
  margin-top: 16px;
  padding: 8px 16px;
  border-radius: 10px;
  background: rgba(255, 196, 71, 0.12);
  border: 1px solid rgba(255, 196, 71, 0.3);
  color: #ffd98a;
  font-size: 0.9rem;
}

.legal {
  padding: 50px 0 90px;
}

.legal .container {
  max-width: 780px;
}

.legal h2 {
  font-size: 1.5rem;
  margin-top: 44px;
}

.legal h3 {
  font-size: 1.15rem;
  margin-top: 28px;
}

.legal p,
.legal li {
  color: var(--text-dim);
}

.legal ul {
  padding-left: 22px;
}

.legal a {
  color: var(--accent-light);
}

/* ---- FAQ accordion ------------------------------------------------------- */
.faq {
  max-width: 780px;
  margin: 0 auto;
}

.faq-item {
  border: 1px solid var(--glass-border);
  border-radius: 16px;
  background: var(--glass);
  margin-bottom: 14px;
  overflow: hidden;
}

.faq-item summary {
  cursor: pointer;
  list-style: none;
  padding: 22px 26px;
  font-family: var(--head-font);
  font-weight: 700;
  font-size: 1.08rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: "+";
  font-size: 1.5rem;
  color: var(--accent-light);
  transition: transform 0.2s ease;
  line-height: 1;
}

.faq-item[open] summary::after {
  transform: rotate(45deg);
}

.faq-item .faq-body {
  padding: 0 26px 24px;
  color: var(--text-dim);
}

.faq-item .faq-body p {
  margin: 0;
}

.support-contact {
  text-align: center;
  margin: 0 auto 56px;
  max-width: 560px;
}

.support-contact .btn {
  display: inline-block;
  margin-top: 18px;
  padding: 14px 28px;
  border-radius: 14px;
  font-family: var(--head-font);
  font-weight: 700;
  color: #03121f;
  background: linear-gradient(100deg, var(--accent-light), var(--accent-mid));
}

.support-contact .btn:hover {
  text-decoration: none;
  filter: brightness(1.05);
}

/* ---- Responsive ---------------------------------------------------------- */
@media (max-width: 640px) {
  .nav-links {
    gap: 16px;
    font-size: 0.88rem;
  }
  .nav-links a.nav-hide-sm {
    display: none;
  }
  .hero-inner {
    padding: 40px 20px 72px;
  }
  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}
