*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --gold: #C9A84C;
  --gold-light: #A1864A;
  --gold-dim: rgba(201,168,76,0.18);
  --bg: #0A0A0F;
  --bg2: #151023; /* subtle purple tinge */
  --bg3: #16161F;
  --text: #F0EDE6;
  --muted: #8A8A9A;
  --border: rgba(201,168,76,0.15);
  --font-display: 'Cormorant Garamond', Georgia, serif;
  --font-body: 'DM Sans', sans-serif;
}

/* Utility classes */
.gold-italic { font-style: italic; color: var(--gold); }
.text-strong { color: var(--text); }

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 22px;
  line-height: 1.7;
  overflow-x: hidden;
}

/* NAV */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.4rem;
  padding: 0.9rem 2rem;
  background: rgba(10,10,15,0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.nav-logo {
  display: flex;
  align-items: center;
}
.nav-logo img {
  display: block;
  height: 40px;
  width: auto;
}
.nav-links { display: flex; gap: 2rem; list-style: none; }
.nav-links a { color: var(--muted); text-decoration: none; font-size: 1.25rem; font-weight: 300; letter-spacing: 0.03em; transition: color 0.2s; }
.nav-links { display: flex; gap: 2rem; list-style: none; width: 100%; justify-content: flex-end; }
.nav-links a { color: var(--muted); text-decoration: none; font-size: 1.25rem; font-weight: 300; letter-spacing: 0.03em; transition: color 0.2s; }
.nav-links a:hover { color: var(--text); }

@media (min-width: 1000px) {
  nav {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    padding: 1.25rem 3rem;
  }
  .nav-links {
    width: auto;
    justify-content: flex-end;
  }
}

/* HERO */
.hero {
  min-height: 100vh;
  display: flex; align-items: center; justify-content: center;
  text-align: center;
  padding: 8rem 2rem 4rem;
  position: relative;
  overflow: hidden;
}

.hero-bg {
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 60% 50% at 50% 60%, rgba(201,168,76,0.06) 0%, transparent 68%);
}

.hero-grid {
  position: absolute; inset: 0; opacity: 0.02;
  background-image:
    linear-gradient(rgba(201,168,76,0.5) 1px, transparent 1px),
    linear-gradient(90deg, rgba(201,168,76,0.5) 1px, transparent 1px);
  background-size: 72px 72px;
}

.hero-content { position: relative; max-width: 780px; }

.hero-eyebrow {
  display: inline-block;
  font-size: 0.75rem; 
  font-weight: 400; 
  letter-spacing: 0.25em;
  text-transform: uppercase; 
  color: var(--gold);
  padding: 0.4rem 1.2rem;
  margin-bottom: 2rem;
  
  /* 1. Create a 1px border area */
  border: 2px solid transparent; 
  /* 2. Standard border-radius doesn't always clip border-images, so we use a mask to keep it capsule-shaped */
  border-radius: 100px; 
  
  /* 3. Apply the gradient directly as a border background */
  background: 
    linear-gradient(to right, #0d0d0d, #0d0d0d) padding-box, /* Keeps the inside your dark background */
    conic-gradient(from var(--angle, 0deg), #ff007f, #7928ca, #00dfd8, #C9A84C, #ff007f) border-box; /* The border colors */
  
  animation: rotateGradient 10s linear infinite;
}

/* Register the custom CSS property so the browser can animate the angle */
@property --angle {
  syntax: '<angle>';
  initial-value: 0deg;
  inherits: false;
}

@keyframes rotateGradient {
  to {
    --angle: 360deg;
  }
}

h1 {
  font-family: var(--font-display);
  font-size: clamp(4.125rem, 7vw, 7.5625rem);
  font-weight: 300;
  line-height: 1.1;
  letter-spacing: -0.01em;
  margin-bottom: 1.5rem;
}

h1 em {
  font-style: italic;
  color: var(--gold);
}

.hero-sub {
  font-size: 1.5rem;
  font-weight: 300;
  color: var(--muted);
  max-width: 520px;
  margin: 0 auto 3rem;
  line-height: 1.8;
}

.btn-group { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }

.btn-primary {
  display: inline-flex; align-items: center; gap: 0.75rem;
  background: var(--gold);
  color: #0A0A0F;
  text-decoration: none;
  font-family: var(--font-body);
  font-size: 1.2rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  padding: 1.1rem 2.5rem;
  border-radius: 4px;
  transition: background 0.2s, transform 0.15s;
}
.btn-primary:hover { background: var(--gold-light); transform: translateY(-1px); }

.btn-secondary {
  display: inline-flex; align-items: center; gap: 0.75rem;
  background: transparent;
  color: var(--text);
  text-decoration: none;
  font-family: var(--font-body);
  font-size: 1.2rem;
  font-weight: 400;
  letter-spacing: 0.05em;
  padding: 1.1rem 2.5rem;
  border-radius: 4px;
  border: 1px solid var(--border);
  transition: border-color 0.2s, transform 0.15s;
}
.btn-secondary:hover { border-color: var(--gold); transform: translateY(-1px); }

.store-icon {
  width: 32px; height: 32px;
  display: inline-block;
  vertical-align: middle;
}

/* Store badge graphic (Google Play logo) */
.store-graphic {
  height: 28px; /* increased size for better legibility */
  width: auto;
  display: inline-block;
  vertical-align: middle;
  margin-right: 0.6rem;
}

/* hero-scroll removed — visual indicator deprecated */

/* SECTIONS */
section { padding: 6rem 2rem; }

.container { max-width: 1100px; margin: 0 auto; }
.container-sm { max-width: 760px; margin: 0 auto; }

.section-label {
  font-size: 0.9625rem; font-weight: 400; letter-spacing: 0.25em;
  text-transform: uppercase; color: var(--gold);
  margin-bottom: 1rem;
}

h2 {
  font-family: var(--font-display);
  font-size: clamp(2.75rem, 4vw, 4.4rem);
  font-weight: 300;
  line-height: 1.2;
  margin-bottom: 1.5rem;
}

/* HOW IT WORKS */
.how-section { background: var(--bg2); }

.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 0; margin-top: 4rem; position: relative; }

.step {
  padding: 2.5rem 2rem;
  border-top: 1px solid var(--border);
  position: relative;
}
.step:not(:last-child) { border-right: 1px solid var(--border); }

.step-num {
  font-family: var(--font-display);
  font-size: 5.5rem;
  font-weight: 300;
  color: var(--gold-light);
  line-height: 1;
  margin-bottom: 1rem;
}

.step h3 {
  font-family: var(--font-display);
  font-size: 2.3rem;
  font-weight: 400;
  margin-bottom: 0.75rem;
}

.step p { font-size: 1.4rem; color: var(--muted); line-height: 1.7; font-weight: 300; }

/* INSPIRATION CARD */
.inspiration-card {
  margin-top: 4rem;
  background: var(--bg3);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 2.5rem;
  position: relative;
  overflow: hidden;
}
.inspiration-card::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0; height: 2px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
}
.inspiration-label {
  font-size: 1rem; letter-spacing: 0.25em; text-transform: uppercase;
  color: var(--gold); margin-bottom: 1.25rem;
  display: flex; align-items: center; gap: 0.5rem;
}
.inspiration-label::before { content: '✦'; font-size: 2rem; line-height: 1; margin-right: 0.5rem; }
.inspiration-quote {
  font-family: var(--font-display);
  font-size: clamp(2.25rem, 3vw, 3rem);
  font-weight: 300;
  font-style: italic;
  line-height: 1.5;
  color: var(--text);
  margin-bottom: 1.5rem;
}
.inspiration-meta { font-size: 1rem; color: var(--muted); font-weight: 300; }

/* FEATURES */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5px;
  margin-top: 4rem;
  background: var(--border);
  border: 1px solid var(--border);
}

/* Selection highlight for features: subtle purple tinge to match theme */
.features-grid ::selection,
.feature ::selection,
.features-grid *::selection,
.feature *::selection {
  background: var(--bg2) !important;
  color: var(--text) !important;
}
.features-grid ::-moz-selection,
.feature ::-moz-selection,
.features-grid *::-moz-selection,
.feature *::-moz-selection {
  background: var(--bg2) !important;
  color: var(--text) !important;
}

.feature {
  background: var(--bg);
  padding: 2.5rem 2rem;
  transition: background 0.2s;
}
.feature:hover { background: var(--bg2); }

.feature-icon {
  width: 80px; height: 80px;
  border: 1px solid var(--border);
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 1.5rem;
  color: var(--gold);
  font-size: 3.6rem;
}

.feature h3 {
  font-family: var(--font-display);
  font-size: 2.6rem;
  font-weight: 400;
  margin-bottom: 0.75rem;
}

/* Reusable heading style matching feature section headers */
.feature-heading {
  font-family: var(--font-display);
  font-size: 2.6rem;
  font-weight: 400;
  margin-bottom: 0.75rem;
  margin-top: 2.5rem;
}

.feature p { font-size: 1.5rem; color: var(--muted); line-height: 1.7; font-weight: 300; }

/* Reusable block style for narrative content to match feature copy */
.feature-content {
  font-size: 1.5rem;
  color: var(--muted);
  line-height: 1.7;
  font-weight: 300;
}
.feature-content p { margin: 0 0 1rem 0; }
.feature-content ul {
  margin: 0 0 1rem 0;
  padding-left: 4rem; /* increased indentation */
  list-style: disc;
  list-style-position: outside;
}
.feature-content ul li { margin-bottom: 0.5rem; }

/* Site-wide list indentation (applies to main content areas; excludes nav/footer lists) */
main ol, section ol, article ol, .container ol, .container-sm ol, .feature-content ol {
  margin: 0 0 1rem 0;
  padding-left: 4.8rem; /* increased ordered list indentation */
}
main ul, section ul, article ul, .container ul, .container-sm ul, .feature-content ul {
  margin: 0 0 1rem 0;
  padding-left: 4rem; /* increased unordered list site-wide */
}

/* Stronger, page-specific fallbacks for .feature-content lists to override caching or external resets */
.container .feature-content ul, .container-sm .feature-content ul, section .feature-content ul {
  padding-left: 4rem !important;
  margin-left: 0 !important;
  list-style-type: disc !important;
  list-style-position: outside !important;
}
.container .feature-content ol, .container-sm .feature-content ol, section .feature-content ol {
  padding-left: 4.8rem !important;
  margin-left: 0 !important;
  list-style-type: decimal !important;
  list-style-position: outside !important;
}

/* Make label terms (Email Address, User ID, etc.) bold and high-contrast in privacy lists */
.feature-content ul li strong {
  font-weight: 600;
  color: var(--text);
}

/* Emphasis for inline DELETE ACCOUNT label */
.delete-label {
  font-weight: 700;
  color: var(--text);
  background: rgba(201,168,76,0.06);
  padding: 0.12rem 0.4rem;
  border-radius: 4px;
  letter-spacing: 0.06em;
}

/* Note block emphasis used on account/delete pages */
.note {
  background: rgba(255,255,255,0.02);
  border-left: 4px solid var(--gold);
  padding: 1rem 1rem;
  margin: 1.25rem 0 0.5rem 0;
  border-radius: 6px;
  color: var(--text);
  font-weight: 400;
}
.note p { margin: 0; color: var(--muted); }
.note strong { color: var(--text); font-weight: 700; }

/* TESTIMONIALS */
.testimonials-section { background: var(--bg2); }

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
  margin-top: 4rem;
}

.testimonial {
  background: var(--bg3);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 2rem;
  position: relative;
}

.testimonial-quote {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 300;
  font-style: italic;
  line-height: 1.6;
  color: var(--text);
  margin-bottom: 1.5rem;
}

.testimonial-author { display: flex; align-items: center; gap: 0.75rem; }

.author-avatar {
  width: 48px; height: 48px; border-radius: 50%;
  background: var(--gold-dim);
  border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.6rem; color: var(--gold); font-weight: 600; line-height: 1;
}

.author-info p:first-child { font-size: 1.4rem; font-weight: 600; }
.author-info p:last-child { font-size: 1.15rem; color: var(--muted); font-weight: 400; }

.stars { color: var(--gold); font-size: 2.8rem; margin-bottom: 1.25rem; letter-spacing: 0.14em; }

/* FAQ */
.faq-list { margin-top: 3rem; }

.faq-item {
  border-top: 1px solid var(--border);
  padding: 1.75rem 0;
  cursor: pointer;
}
.faq-item:last-child { border-bottom: 1px solid var(--border); }

/* Mobile tap highlight (use --bg2). Keep :active state unchanged. */
.faq-item {
  -webkit-tap-highlight-color: var(--bg2);
}

.faq-q {
  display: flex; justify-content: space-between; align-items: center;
  font-family: var(--font-display);
  font-size: 2.2rem;
  font-weight: 400;
  color: var(--text);
}
.faq-toggle {
  color: var(--gold);
  font-size: 2.8rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.8rem;
  height: 2.8rem;
  line-height: 1;
  transition: transform 0.18s;
  flex-shrink: 0; margin-left: 1rem;
}
.faq-toggle.open { transform: rotate(45deg); }

.faq-a {
  font-size: 1.6rem; color: var(--muted); font-weight: 300;
  line-height: 1.8; margin-top: 1rem;
  display: none;
}
.faq-a.open { display: block; }

/* CTA BANNER */
.cta-section {
  text-align: center;
  padding: 7rem 2rem;
  position: relative;
  overflow: hidden;
  background: var(--bg2); /* match testimonials background */
}
.cta-section::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(ellipse 50% 60% at 50% 50%, rgba(201,168,76,0.06) 0%, transparent 70%);
}
.cta-section h2 { position: relative; margin-bottom: 1rem; }
.cta-section p { position: relative; color: var(--muted); font-weight: 300; margin-bottom: 2.5rem; }
.cta-section .btn-group { position: relative; }

/* Link theme: no underlines, subtle highlight on hover/focus */
a {
  color: var(--gold-light);
  text-decoration: none;
  transition: color 0.15s ease, box-shadow 0.15s ease;
}
/* Ensure links never show underlines on hover/focus/active across the theme */
a:hover,
a:focus,
a:active {
  color: var(--gold);
  box-shadow: none !important; /* remove inset bar underline effect */
  text-decoration: none !important;
}
a:focus-visible {
  outline: 3px solid rgba(201,168,76,0.15);
  outline-offset: 3px;
}

/* FOOTER */
footer {
  border-top: 1px solid var(--border);
  padding: 3rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  max-width: 1100px;
  margin: 0 auto;
}
.footer-logo {
  display: inline-flex;
  align-items: center;
}
.footer-logo img {
  height: 26px;
  width: auto;
  display: block;
}
.footer-links { display: flex; gap: 2rem; flex-wrap: nowrap; margin: 0 auto; justify-content: center; overflow-x: auto; -webkit-overflow-scrolling: touch; }
.footer-links a {
  color: #E3D499;
  text-decoration: none;
  font-size: 1rem;
  font-weight: 300;
  padding-bottom: 2px;
  border-bottom: 2px solid transparent;
  transition: color 0.15s ease, border-color 0.15s ease;
  display: inline-block;
  white-space: normal;
  max-width: 180px;
  text-align: center;
}
.footer-links a:hover, .footer-links a:focus {
  color: var(--gold);
  border-bottom-color: transparent !important; /* prevent footer underline */
  border-bottom-style: none !important;
}
.footer-copy { font-size: 0.95rem; color: var(--muted); font-weight: 300; }

/* Make nav and footer links high-contrast (accessibility) */
.nav-links a,
.footer-links a,
.footer-copy a {
  color: #FFFFFF;
}

/* Improve link visibility when clicked/focused in nav and footer */
.nav-links a:focus,
.nav-links a:active,
.nav-links a:focus-visible,
.footer-links a:focus,
.footer-links a:active,
.footer-links a:focus-visible,
.footer-copy a:focus,
.footer-copy a:active,
.footer-copy a:focus-visible {
  font-weight: 700;
  color: var(--text);
}

