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

:root {
  --bg:        #121212;
  --surface:   #1E1E1E;
  --surface2:  #252525;
  --input:     #2A2A2A;
  --amber:     #F5A623;
  --amber-dim: #C4841C;
  --white:     #FFFFFF;
  --text-sec:  #AAAAAA;
  --divider:   #333333;
  --radius:    12px;
  --font:      'Inter', system-ui, sans-serif;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

/* ── Utility ── */
.amber       { color: var(--amber); }
.container   { max-width: 1140px; margin: 0 auto; padding: 0 24px; }
.container-center { text-align: center; }

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 28px;
  border-radius: 8px;
  font-family: var(--font);
  font-weight: 700;
  font-size: 15px;
  cursor: pointer;
  transition: all 0.2s ease;
  border: none;
}
.btn-primary {
  background: var(--amber);
  color: #111;
}
.btn-primary:hover { background: #ffb830; transform: translateY(-1px); box-shadow: 0 8px 24px rgba(245,166,35,0.35); }
.btn-ghost {
  background: transparent;
  color: var(--white);
  border: 1.5px solid var(--divider);
}
.btn-ghost:hover { border-color: var(--amber); color: var(--amber); }
.btn-small { padding: 10px 20px; font-size: 14px; }
.btn-large { padding: 18px 40px; font-size: 17px; }

/* ── Nav ── */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(18,18,18,0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--divider);
}
.nav-inner {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 24px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -0.3px;
}
.nav-logo-img { width: 36px; height: 36px; border-radius: 8px; object-fit: cover; }
.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-sec);
}
.nav-links a:not(.btn):hover { color: var(--white); }

/* ── Hero ── */
.hero {
  padding: 140px 24px 0;
  position: relative;
  overflow: hidden;
  background: linear-gradient(180deg, #1a1a1a 0%, var(--bg) 100%);
}
.hero::before {
  content: '';
  position: absolute;
  top: -200px; left: 50%;
  transform: translateX(-50%);
  width: 800px; height: 800px;
  background: radial-gradient(circle, rgba(245,166,35,0.07) 0%, transparent 70%);
  pointer-events: none;
}
.hero-inner {
  max-width: 1140px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
  padding-bottom: 80px;
}
.hero-badge {
  display: inline-block;
  background: rgba(245,166,35,0.15);
  color: var(--amber);
  border: 1px solid rgba(245,166,35,0.3);
  padding: 5px 14px;
  border-radius: 100px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  margin-bottom: 20px;
}
.hero-title {
  font-size: clamp(36px, 5vw, 60px);
  font-weight: 900;
  line-height: 1.1;
  letter-spacing: -1.5px;
  margin-bottom: 20px;
}
.hero-subtitle {
  font-size: 18px;
  color: var(--text-sec);
  max-width: 480px;
  margin-bottom: 36px;
  line-height: 1.7;
}
.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 28px;
}
.hero-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.pill {
  background: var(--surface);
  border: 1px solid var(--divider);
  padding: 6px 14px;
  border-radius: 100px;
  font-size: 13px;
  color: var(--text-sec);
  font-weight: 500;
}

/* Hero visual */
.hero-visual {
  display: flex;
  justify-content: center;
  align-items: center;
}
.phone-frame {
  width: 280px;
  height: 280px;
  border-radius: 32px;
  background: var(--surface);
  border: 1px solid var(--divider);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 32px 80px rgba(0,0,0,0.5), 0 0 0 1px rgba(255,255,255,0.04);
}
.hero-logo {
  width: 220px;
  height: 220px;
  border-radius: 24px;
  object-fit: cover;
}
.hero-wave {
  margin-top: 0;
  line-height: 0;
}
.hero-wave svg { width: 100%; height: 80px; }

/* ── Sections ── */
.section { padding: 96px 0; }
.section-dark { background: #161616; }
.section-alt { background: var(--surface); }

.section-label {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--amber);
  margin-bottom: 12px;
}
.section-title {
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 800;
  letter-spacing: -1px;
  line-height: 1.15;
  margin-bottom: 16px;
}
.section-subtitle {
  font-size: 17px;
  color: var(--text-sec);
  max-width: 560px;
  margin-bottom: 56px;
  line-height: 1.7;
}
.container-center .section-subtitle { margin-left: auto; margin-right: auto; }

/* ── Features grid ── */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.feature-card {
  background: var(--surface);
  border: 1px solid var(--divider);
  border-radius: var(--radius);
  padding: 32px 28px;
  transition: border-color 0.2s, transform 0.2s;
}
.feature-card:hover {
  border-color: rgba(245,166,35,0.4);
  transform: translateY(-2px);
}
.feature-icon {
  width: 44px;
  height: 44px;
  background: rgba(245,166,35,0.12);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  color: var(--amber);
}
.feature-icon svg { width: 22px; height: 22px; }
.feature-card h3 {
  font-size: 17px;
  font-weight: 700;
  margin-bottom: 8px;
}
.feature-card p {
  font-size: 14px;
  color: var(--text-sec);
  line-height: 1.6;
}

/* ── Calculators grid ── */
.calc-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.calc-card {
  background: var(--surface2);
  border: 1px solid var(--divider);
  border-radius: var(--radius);
  padding: 20px;
  display: flex;
  align-items: center;
  gap: 16px;
  transition: border-color 0.2s, background 0.2s;
}
.calc-card:hover {
  border-color: rgba(245,166,35,0.35);
  background: #2a2a2a;
}
.calc-icon {
  width: 36px;
  height: 36px;
  flex-shrink: 0;
  /* Tint white SVGs to amber #F5A623 — matches app's accentColor */
  filter: brightness(0) saturate(100%) invert(72%) sepia(60%) saturate(600%) hue-rotate(2deg) brightness(103%);
}
.calc-icon-plus {
  width: 36px;
  height: 36px;
  flex-shrink: 0;
  background: rgba(245,166,35,0.12);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--amber);
  font-size: 22px;
  font-weight: 700;
}
.calc-coming { border-style: dashed; }
.calc-info h4 { font-size: 14px; font-weight: 700; margin-bottom: 2px; }
.calc-info p { font-size: 12px; color: var(--text-sec); line-height: 1.4; }

/* ── Download section ── */
.download-block {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
}
.price-tag {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}
.price-amount {
  font-size: 52px;
  font-weight: 900;
  letter-spacing: -2px;
  color: var(--amber);
}
.price-label {
  font-size: 14px;
  color: var(--text-sec);
}
.download-note {
  font-size: 13px;
  color: var(--text-sec);
}

/* ── Footer ── */
.footer {
  background: #0e0e0e;
  border-top: 1px solid var(--divider);
  padding: 40px 0;
}
.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  text-align: center;
}
.footer-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 18px;
  font-weight: 800;
}
.footer-logo-img { width: 28px; height: 28px; border-radius: 6px; object-fit: cover; }
.footer-links {
  display: flex;
  gap: 32px;
  font-size: 14px;
  color: var(--text-sec);
}
.footer-links a:hover { color: var(--white); }
.footer-copy { font-size: 13px; color: #555; }

/* ── Animations ── */

/* Scroll reveal base state */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.55s cubic-bezier(0.4,0,0.2,1),
              transform 0.55s cubic-bezier(0.4,0,0.2,1);
}
.reveal.revealed {
  opacity: 1;
  transform: translateY(0);
}

/* Nav scrolled state */
.nav-scrolled {
  background: rgba(12,12,12,0.97) !important;
  box-shadow: 0 1px 24px rgba(0,0,0,0.4);
}

/* Ripple keyframe */
@keyframes ripple-anim {
  to { transform: scale(2.5); opacity: 0; }
}

/* Price pop animation */
@keyframes price-pop {
  0%   { transform: scale(0.7); opacity:0; }
  70%  { transform: scale(1.08); }
  100% { transform: scale(1);   opacity:1; }
}
.price-pop { animation: price-pop 0.5s cubic-bezier(0.34,1.56,0.64,1) forwards; }

/* Hero fade-in sequence */
@keyframes fadeUp {
  from { opacity:0; transform:translateY(20px); }
  to   { opacity:1; transform:translateY(0); }
}
.hero-badge   { animation: fadeUp 0.5s ease 0.1s both; }
.hero-title   { animation: fadeUp 0.6s ease 0.2s both; }
.hero-subtitle{ animation: fadeUp 0.6s ease 0.35s both; }
.hero-actions { animation: fadeUp 0.6s ease 0.5s both; }
.hero-pills   { animation: fadeUp 0.6s ease 0.65s both; }
.phone-frame  { animation: fadeUp 0.7s ease 0.3s both; }

/* Feature card hover lift */
.feature-card {
  transition: border-color 0.25s, transform 0.25s, box-shadow 0.25s !important;
}
.feature-card:hover {
  box-shadow: 0 8px 32px rgba(245,166,35,0.12);
}

/* Calc card hover */
.calc-card {
  transition: border-color 0.2s, background 0.2s, transform 0.2s !important;
}
.calc-card:hover { transform: translateY(-2px); }

/* FAQ smooth styling */
.faq-item summary { transition: color 0.2s; }
.faq-item[open] summary { color: var(--amber); }
.faq-item summary::after {
  transition: transform 0.3s cubic-bezier(0.4,0,0.2,1);
}
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-content-wrapper { transition: max-height 0.35s cubic-bezier(0.4,0,0.2,1), opacity 0.3s ease; }

/* ── Pain Point Band ── */
.band {
  background: var(--surface);
  border-top: 1px solid var(--divider);
  border-bottom: 1px solid var(--divider);
  padding: 28px 0;
}
.band-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  flex-wrap: wrap;
}
.band-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 32px;
  font-size: 15px;
  color: var(--text-sec);
  text-align: center;
}
.band-item strong { color: var(--white); }
.band-icon {
  font-size: 18px;
  font-weight: 700;
  color: #e05555;
  flex-shrink: 0;
}
.band-icon.amber { color: var(--amber); }
.band-divider {
  width: 1px;
  height: 40px;
  background: var(--divider);
  flex-shrink: 0;
}

/* ── Developer Support section ── */
.support-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}
.support-text { /* left column — text + button */ }
.support-body {
  font-size: 16px;
  color: var(--text-sec);
  line-height: 1.75;
  margin-bottom: 16px;
  max-width: 440px;
}
.support-cards {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.support-card {
  background: var(--surface2);
  border: 1px solid var(--divider);
  border-radius: var(--radius);
  padding: 24px 28px;
  transition: border-color 0.2s, transform 0.2s;
}
.support-card:hover {
  border-color: rgba(245,166,35,0.4);
  transform: translateY(-2px);
}
.support-card-icon {
  width: 44px;
  height: 44px;
  min-width: 44px;
  min-height: 44px;
  margin-bottom: 14px;
  background: rgba(245,166,35,0.08);
  border: 1px solid rgba(245,166,35,0.2);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10px;
  align-self: flex-start;
}
.support-card-icon svg {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
}
.support-card h4 {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 6px;
}
.support-card p {
  font-size: 14px;
  color: var(--text-sec);
  line-height: 1.6;
}

/* ── Download CTA section ── */
.section-cta {
  background: linear-gradient(180deg, #161616 0%, #1a1a1a 100%);
  border-top: 1px solid var(--divider);
}
.cta-block {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
  padding: 20px 0;
}
.cta-logo {
  width: 96px;
  height: 96px;
  border-radius: 22px;
  object-fit: cover;
  box-shadow: 0 16px 48px rgba(0,0,0,0.4);
}
.cta-title {
  font-size: clamp(32px, 5vw, 52px);
  font-weight: 900;
  letter-spacing: -1.5px;
  line-height: 1.1;
  text-align: center;
}
.cta-subtitle {
  font-size: 17px;
  color: var(--text-sec);
  max-width: 520px;
  line-height: 1.7;
  text-align: center;
}
.cta-note {
  font-size: 13px;
  color: #555;
  margin-top: -8px;
}

/* ── Responsive: support + band ── */
@media (max-width: 900px) {
  .support-split { grid-template-columns: 1fr; gap: 40px; }
  .band-divider { display: none; }
  .band-item { padding: 8px 20px; align-items: flex-start; text-align: left; }
  .band-icon { margin-top: 2px; }
}

/* ── Legal & Support pages ── */
.legal-page {
  padding: 100px 0 80px;
  min-height: 100vh;
}
.legal-header {
  padding-bottom: 40px;
  border-bottom: 1px solid var(--divider);
  margin-bottom: 48px;
}
.legal-meta {
  font-size: 14px;
  color: var(--text-sec);
  margin-top: 8px;
}
.amber-link { color: var(--amber); }
.amber-link:hover { text-decoration: underline; }

.legal-body { max-width: 760px; }
.legal-body h2 {
  font-size: 20px;
  font-weight: 700;
  margin: 40px 0 12px;
  color: var(--white);
}
.legal-body h3 {
  font-size: 16px;
  font-weight: 600;
  margin: 24px 0 8px;
  color: var(--text-sec);
}
.legal-body p {
  font-size: 15px;
  color: var(--text-sec);
  line-height: 1.8;
  margin-bottom: 12px;
}
.legal-body a { color: var(--amber); }
.legal-body a:hover { text-decoration: underline; }
.legal-body ul {
  padding-left: 20px;
  margin-bottom: 12px;
}
.legal-body ul li {
  font-size: 15px;
  color: var(--text-sec);
  line-height: 1.8;
}
.legal-highlight {
  background: rgba(245,166,35,0.08);
  border: 1px solid rgba(245,166,35,0.25);
  border-radius: var(--radius);
  padding: 20px 24px;
  font-size: 15px;
  color: var(--white);
  line-height: 1.7;
  margin-bottom: 40px;
}
.legal-table-wrap {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin: 16px 0 24px;
}
.legal-table {
  width: 100%;
  min-width: 520px;
  border-collapse: collapse;
  font-size: 14px;
}
.legal-table th {
  text-align: left;
  padding: 10px 14px;
  background: var(--surface);
  color: var(--text-sec);
  font-weight: 600;
  border-bottom: 1px solid var(--divider);
}
.legal-table td {
  padding: 12px 14px;
  border-bottom: 1px solid var(--divider);
  color: var(--text-sec);
}
.legal-table a { color: var(--amber); }

/* Support page */
.support-contact-card {
  display: flex;
  align-items: flex-start;
  gap: 24px;
  background: var(--surface);
  border: 1px solid rgba(245,166,35,0.3);
  border-radius: var(--radius);
  padding: 32px;
  margin-bottom: 56px;
  max-width: 760px;
}
.support-contact-icon {
  width: 48px;
  height: 48px;
  background: rgba(245,166,35,0.12);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--amber);
}
.support-contact-icon svg { width: 22px; height: 22px; }
.support-contact-card h3 { font-size: 18px; font-weight: 700; margin-bottom: 6px; }
.support-contact-card p { font-size: 14px; color: var(--text-sec); }

.faq-section { max-width: 760px; }
.faq-title { font-size: 26px; font-weight: 800; margin-bottom: 36px; }
.faq-group { margin-bottom: 40px; }
.faq-group-title {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--amber);
  margin-bottom: 16px;
}
.faq-item {
  border-bottom: 1px solid var(--divider);
}
.faq-item summary {
  padding: 18px 0;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--white);
}
.faq-item summary::after {
  content: '+';
  font-size: 20px;
  font-weight: 400;
  color: var(--amber);
  flex-shrink: 0;
}
.faq-item[open] summary::after { content: '−'; }
.faq-item p {
  font-size: 14px;
  color: var(--text-sec);
  line-height: 1.8;
  padding-bottom: 18px;
}
.faq-item a { color: var(--amber); }
.faq-item a:hover { text-decoration: underline; }

/* ── Responsive ── */
@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; text-align: center; }
  .hero-subtitle { max-width: 100%; }
  .hero-actions { justify-content: center; }
  .hero-pills { justify-content: center; }
  .hero-visual { display: none; }
  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .calc-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  .nav-links a:not(.btn) { display: none; }
  .features-grid { grid-template-columns: 1fr; }
  .calc-grid { grid-template-columns: 1fr; }
  .hero-actions { flex-direction: row; flex-wrap: wrap; justify-content: center; align-items: center; gap: 12px; }
  .hero-actions .playstore-btn,
  .hero-actions .ios-soon { width: 160px; flex-shrink: 0; }
  .hero-actions .btn-ghost { width: 100%; justify-content: center; }
  .ios-text small, .playstore-text small { white-space: nowrap; }
  .on-desktop { display: none; }
  .btn { justify-content: center; }
}
