/* =============================================
   SANDFLOW — Global Stylesheet
   Aesthetic: Warm Organic Minimalism
   ============================================= */

@import url('https://fonts.googleapis.com/css2?family=DM+Serif+Display:ital@0;1&family=DM+Sans:ital,opsz,wght@0,9..40,300;0,9..40,400;0,9..40,500;1,9..40,300&display=swap');

/* ---- CSS Variables ---- */
:root {
  --color-bg:       #F7F4EF;
  --color-surface:  #FFFFFF;
  --color-sand:     #E8DFD0;
  --color-sand-mid: #D4C5AE;
  --color-muted:    #B8A896;
  --color-text:     #2E2820;
  --color-sub:      #7A6E62;
  --color-accent:   #8B6F47;
  --color-accent-light: #C4A882;
  --color-cta:      #3D3530;

  --font-display: 'DM Serif Display', Georgia, serif;
  --font-body:    'DM Sans', system-ui, sans-serif;

  --radius-sm:  8px;
  --radius-md:  16px;
  --radius-lg:  28px;
  --radius-xl:  40px;

  --shadow-sm:  0 2px 8px rgba(46,40,32,0.06);
  --shadow-md:  0 8px 32px rgba(46,40,32,0.10);
  --shadow-lg:  0 20px 60px rgba(46,40,32,0.14);

  --transition: 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --max-width: 1100px;
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  font-weight: 300;
  font-size: 17px;
  line-height: 1.7;
  color: var(--color-text);
  background-color: var(--color-bg);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a  { color: inherit; text-decoration: none; }
ul { list-style: none; }

/* =============================================
   TYPOGRAPHY
   ============================================= */

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 400;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

h1 { font-size: clamp(2.4rem, 6vw, 4.2rem); }
h2 { font-size: clamp(1.8rem, 4vw, 2.8rem); }
h3 { font-size: 1.25rem; font-family: var(--font-body); font-weight: 500; letter-spacing: 0; }

p { color: var(--color-sub); max-width: 60ch; }

/* =============================================
   LAYOUT UTILITIES
   ============================================= */

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

section { padding: 96px 0; }

/* =============================================
   HEADER / NAV
   ============================================= */

header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(247,244,239,0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(212,197,174,0.4);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
}

.logo-mark {
  width: 36px;
  height: 36px;
  background: var(--color-cta);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.logo-mark svg { width: 20px; height: 20px; }

.logo-name {
  font-family: var(--font-display);
  font-size: 1.35rem;
  color: var(--color-text);
  letter-spacing: -0.02em;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 36px;
}

.nav-links a {
  font-size: 0.9rem;
  font-weight: 400;
  color: var(--color-sub);
  letter-spacing: 0.02em;
  transition: color var(--transition);
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--color-accent);
  transition: width var(--transition);
}

.nav-links a:hover { color: var(--color-text); }
.nav-links a:hover::after { width: 100%; }
.nav-links a.active { color: var(--color-text); font-weight: 500; }
.nav-links a.active::after { width: 100%; }

/* =============================================
   HERO
   ============================================= */

.hero {
  padding: 80px 0 96px;
  overflow: hidden;
  position: relative;
}

.hero::before {
  content: '';
  position: absolute;
  top: -120px;
  right: -200px;
  width: 700px;
  height: 700px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(196,168,130,0.18) 0%, transparent 70%);
  pointer-events: none;
}

.hero-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

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

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--color-sand);
  color: var(--color-accent);
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 6px 14px;
  border-radius: 100px;
  margin-bottom: 28px;
}

.hero-eyebrow span { font-size: 1em; }

.hero h1 {
  margin-bottom: 24px;
  color: var(--color-text);
}

.hero h1 em {
  font-style: italic;
  color: var(--color-accent);
}

.hero-sub {
  font-size: 1.1rem;
  margin-bottom: 44px;
  color: var(--color-sub);
  max-width: 44ch;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: var(--color-cta);
  color: #FFF;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 500;
  padding: 16px 32px;
  border-radius: var(--radius-lg);
  border: none;
  cursor: pointer;
  transition: background var(--transition), transform var(--transition), box-shadow var(--transition);
  box-shadow: 0 4px 20px rgba(61,53,48,0.25);
  text-decoration: none;
}

.btn-primary:hover {
  background: #2a2420;
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(61,53,48,0.32);
}

.btn-primary svg { width: 20px; height: 20px; flex-shrink: 0; }

/* ---- App Mockup ---- */

.hero-visual {
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
}

.phone-frame {
  width: 260px;
  height: 520px;
  background: var(--color-cta);
  border-radius: 44px;
  padding: 12px;
  box-shadow: var(--shadow-lg), 0 0 0 1px rgba(255,255,255,0.08) inset;
  position: relative;
  animation: float 6s ease-in-out infinite;
}

@keyframes float {
  0%, 100% { transform: translateY(0px) rotate(-1deg); }
  50%       { transform: translateY(-12px) rotate(1deg); }
}

.phone-screen {
  width: 100%;
  height: 100%;
  background: #1A1410;
  border-radius: 34px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  padding: 28px 20px 24px;
  gap: 20px;
}

.phone-status {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.phone-time {
  color: rgba(255,255,255,0.9);
  font-size: 0.75rem;
  font-weight: 500;
}

.phone-dots { display: flex; gap: 4px; }
.phone-dots span {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: rgba(255,255,255,0.35);
}
.phone-dots span:last-child { background: var(--color-accent-light); }

.phone-label {
  font-size: 0.7rem;
  color: rgba(255,255,255,0.45);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.timer-ring {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.timer-circle-wrap {
  position: relative;
  width: 140px;
  height: 140px;
}

.timer-circle-wrap svg {
  width: 140px;
  height: 140px;
  transform: rotate(-90deg);
}

.timer-bg { fill: none; stroke: rgba(255,255,255,0.08); stroke-width: 6; }
.timer-prog {
  fill: none;
  stroke: var(--color-accent-light);
  stroke-width: 6;
  stroke-linecap: round;
  stroke-dasharray: 345;
  stroke-dashoffset: 95;
}

.timer-center {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.timer-val {
  font-family: var(--font-display);
  font-size: 2rem;
  color: #FFF;
  line-height: 1;
}

.timer-unit {
  font-size: 0.65rem;
  color: rgba(255,255,255,0.4);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-top: 3px;
}

.timer-session {
  font-size: 0.75rem;
  color: rgba(255,255,255,0.5);
}

.phone-actions {
  display: flex;
  gap: 10px;
}

.phone-btn {
  flex: 1;
  height: 40px;
  border-radius: 12px;
  border: none;
  font-size: 0.72rem;
  font-family: var(--font-body);
  font-weight: 500;
  cursor: default;
}

.phone-btn.pause { background: rgba(255,255,255,0.1); color: rgba(255,255,255,0.7); }
.phone-btn.stop  { background: var(--color-accent); color: #FFF; }

.phone-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.stat-box {
  background: rgba(255,255,255,0.06);
  border-radius: 12px;
  padding: 12px;
}

.stat-val {
  font-family: var(--font-display);
  font-size: 1.2rem;
  color: #FFF;
  line-height: 1;
}

.stat-lbl {
  font-size: 0.65rem;
  color: rgba(255,255,255,0.38);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-top: 4px;
}

/* Decorative blobs */
.hero-blob {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}
.blob-1 {
  width: 300px; height: 300px;
  background: radial-gradient(circle, rgba(196,168,130,0.22) 0%, transparent 70%);
  top: -60px; right: -40px;
}
.blob-2 {
  width: 180px; height: 180px;
  background: radial-gradient(circle, rgba(139,111,71,0.15) 0%, transparent 70%);
  bottom: -40px; left: 20px;
}

/* =============================================
   FEATURES
   ============================================= */

.features { background: var(--color-surface); }

.section-label {
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-accent);
  margin-bottom: 16px;
}

.section-header { margin-bottom: 64px; }
.section-header p { margin-top: 16px; }

.features-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.feature-card {
  background: var(--color-bg);
  border: 1px solid var(--color-sand);
  border-radius: var(--radius-lg);
  padding: 40px;
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
  position: relative;
  overflow: hidden;
}

.feature-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--color-sand-mid), transparent);
  opacity: 0;
  transition: opacity var(--transition);
}

.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--color-sand-mid);
}
.feature-card:hover::before { opacity: 1; }

.feature-icon {
  width: 52px;
  height: 52px;
  background: var(--color-sand);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
  transition: background var(--transition);
}
.feature-card:hover .feature-icon { background: var(--color-sand-mid); }

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

.feature-card h3 { color: var(--color-text); margin-bottom: 10px; }

.feature-card p {
  font-size: 0.95rem;
  line-height: 1.6;
  max-width: none;
}

/* =============================================
   ABOUT
   ============================================= */

.about {
  background: var(--color-cta);
  color: #FFF;
  position: relative;
  overflow: hidden;
}

.about::before {
  content: '';
  position: absolute;
  top: -100px;
  right: -100px;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  background: rgba(255,255,255,0.04);
  pointer-events: none;
}

.about .section-label { color: var(--color-accent-light); }

.about h2 { color: #FFF; max-width: 18ch; }

.about-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.about-text p {
  color: rgba(255,255,255,0.65);
  max-width: 52ch;
  font-size: 1.05rem;
  margin-top: 20px;
}

.about-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2px;
}

.stat-item {
  background: rgba(255,255,255,0.06);
  padding: 32px 28px;
}
.stat-item:first-child { border-radius: var(--radius-md) 0 0 0; }
.stat-item:nth-child(2) { border-radius: 0 var(--radius-md) 0 0; }
.stat-item:nth-child(3) { border-radius: 0 0 0 var(--radius-md); }
.stat-item:last-child { border-radius: 0 0 var(--radius-md) 0; }

.stat-item-val {
  font-family: var(--font-display);
  font-size: 2.2rem;
  color: #FFF;
  line-height: 1;
}

.stat-item-lbl {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.45);
  margin-top: 6px;
}

/* =============================================
   CTA STRIP
   ============================================= */

.cta-strip {
  padding: 80px 0;
  text-align: center;
}

.cta-strip h2 { margin-bottom: 12px; }
.cta-strip p  { margin: 0 auto 40px; font-size: 1.05rem; }

/* =============================================
   FOOTER
   ============================================= */

footer {
  background: var(--color-text);
  color: rgba(255,255,255,0.5);
  padding: 40px 0;
}

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

.footer-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  color: rgba(255,255,255,0.8);
}

.footer-logo .logo-mark { width: 28px; height: 28px; background: rgba(255,255,255,0.12); }
.footer-logo .logo-name { font-size: 1.1rem; color: rgba(255,255,255,0.8); }

.footer-links {
  display: flex;
  gap: 32px;
  font-size: 0.9rem;
}

.footer-links a {
  color: rgba(255,255,255,0.45);
  transition: color var(--transition);
}
.footer-links a:hover { color: rgba(255,255,255,0.85); }

.footer-copy { font-size: 0.82rem; }

/* =============================================
   INNER PAGES (Privacy, Support)
   ============================================= */

.page-hero {
  padding: 80px 0 56px;
  border-bottom: 1px solid var(--color-sand);
}

.page-hero .section-label { margin-bottom: 12px; }
.page-hero h1 { font-size: clamp(2rem, 5vw, 3.2rem); }
.page-hero p  { margin-top: 16px; font-size: 1.05rem; }

.page-content { padding: 72px 0 96px; }
.page-content .container { max-width: 760px; }

.prose h2 {
  font-size: 1.5rem;
  color: var(--color-text);
  margin: 48px 0 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--color-sand);
}
.prose h2:first-child { margin-top: 0; }

.prose p {
  margin-bottom: 18px;
  max-width: none;
  color: var(--color-sub);
}

.prose a {
  color: var(--color-accent);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.prose ul {
  list-style: disc;
  padding-left: 24px;
  margin-bottom: 18px;
  color: var(--color-sub);
}
.prose ul li { margin-bottom: 8px; }

.updated-tag {
  display: inline-block;
  font-size: 0.8rem;
  color: var(--color-muted);
  background: var(--color-sand);
  padding: 4px 12px;
  border-radius: 100px;
  margin-top: 14px;
}

/* Support FAQ */
.contact-card {
  background: var(--color-sand);
  border-radius: var(--radius-lg);
  padding: 40px;
  margin-bottom: 56px;
  display: flex;
  align-items: flex-start;
  gap: 20px;
}

.contact-icon {
  width: 48px;
  height: 48px;
  background: var(--color-surface);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.contact-icon svg { width: 22px; height: 22px; color: var(--color-accent); }

.contact-card h3 { font-family: var(--font-body); font-weight: 500; font-size: 1rem; color: var(--color-text); margin-bottom: 6px; }
.contact-card p  { font-size: 0.95rem; max-width: none; margin-bottom: 14px; }
.contact-card a  { color: var(--color-accent); font-weight: 500; text-decoration: underline; text-underline-offset: 3px; }

.faq-list { display: flex; flex-direction: column; gap: 2px; }

.faq-item {
  background: var(--color-surface);
  border: 1px solid var(--color-sand);
  border-radius: var(--radius-md);
  overflow: hidden;
}

.faq-q {
  width: 100%;
  background: none;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px 28px;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--color-text);
  text-align: left;
  transition: background var(--transition);
  gap: 16px;
}

.faq-q:hover { background: var(--color-bg); }

.faq-icon {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--color-sand);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: background var(--transition), transform var(--transition);
}

.faq-icon svg { width: 12px; height: 12px; color: var(--color-accent); transition: transform var(--transition); }

.faq-item.open .faq-icon { background: var(--color-accent); }
.faq-item.open .faq-icon svg { color: #FFF; transform: rotate(45deg); }

.faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.faq-a-inner {
  padding: 0 28px 24px;
  font-size: 0.95rem;
  color: var(--color-sub);
  line-height: 1.7;
}

.faq-item.open .faq-a { max-height: 300px; }

/* =============================================
   RESPONSIVE
   ============================================= */

@media (max-width: 900px) {
  .hero-inner      { grid-template-columns: 1fr; text-align: center; }
  .hero-content    { max-width: none; margin: 0 auto; }
  .hero-sub        { margin: 0 auto 44px; }
  .hero-visual     { justify-content: center; }
  .hero::before    { display: none; }
  .about-inner     { grid-template-columns: 1fr; gap: 48px; }
  .features-grid   { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  section  { padding: 64px 0; }
  .container { padding: 0 20px; }

  .nav-links { gap: 20px; }

  .phone-frame { width: 220px; height: 440px; }
  .timer-val   { font-size: 1.6rem; }
  .timer-circle-wrap { width: 120px; height: 120px; }
  .timer-circle-wrap svg { width: 120px; height: 120px; }

  .footer-inner {
    flex-direction: column;
    text-align: center;
    gap: 20px;
  }

  .footer-links { justify-content: center; }

  .about-stats { grid-template-columns: 1fr 1fr; }

  .contact-card { flex-direction: column; }
}

@media (max-width: 440px) {
  .nav-links .nav-hide { display: none; }
  .features-grid { grid-template-columns: 1fr; }
}

/* =============================================
   ANIMATIONS ON LOAD
   ============================================= */

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}

.animate-up {
  animation: fadeUp 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
  opacity: 0;
}

.delay-1 { animation-delay: 0.1s; }
.delay-2 { animation-delay: 0.22s; }
.delay-3 { animation-delay: 0.34s; }
.delay-4 { animation-delay: 0.46s; }
.delay-5 { animation-delay: 0.58s; }