/* Tallie Up website — tokens aligned with app design system (sage / warm paper) */

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

:root {
  --bg:         #FEFBFA;
  --bg-alt:     #F4F7F5;
  --surface:    #FFFFFF;
  --text:       #2B2E34;
  --text-muted: #555555;
  --text-faint: #888888;
  --primary:    #5F7F73;
  --primary-dk: #2F4A3F;
  --primary-lt: #D6E3DD;
  --teal:       #567C8D;
  --navy:       #2F4156;
  --border:     #E5E3E0;
  --radius:     16px;
  --radius-sm:  10px;
  --shadow:     0 2px 12px rgba(43, 46, 52, 0.06);
  --shadow-lg:  0 12px 40px rgba(43, 46, 52, 0.10);
  --font:       'Figtree', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --nav-h:      64px;
}

html { scroll-behavior: smooth; }

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

h1, h2, h3, h4 { line-height: 1.15; font-weight: 700; letter-spacing: -0.02em; }
h1 { font-size: clamp(2.25rem, 5.5vw, 3.5rem); }
h2 { font-size: clamp(1.65rem, 3.8vw, 2.35rem); }
h3 { font-size: 1.05rem; }
p  { color: var(--text-muted); }
a  { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }
ul, ol { list-style: none; }

.container { max-width: 1100px; margin: 0 auto; padding: 0 24px; }
section { padding: 88px 0; }

.section-header { text-align: center; margin-bottom: 52px; max-width: 560px; margin-left: auto; margin-right: auto; }
.section-header h2 { margin-bottom: 12px; }
.section-header p { font-size: 1.02rem; }

.label {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--primary);
  background: var(--primary-lt);
  padding: 5px 12px;
  border-radius: 999px;
  margin-bottom: 16px;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 22px;
  border-radius: 999px;
  font-size: 0.92rem;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  transition: background 0.2s, color 0.2s, transform 0.2s, box-shadow 0.2s, border-color 0.2s;
  border: 1.5px solid transparent;
}
.btn-lg { padding: 14px 26px; font-size: 0.95rem; }
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-dk); transform: translateY(-1px); box-shadow: 0 6px 20px rgba(95, 127, 115, 0.35); }
.btn-outline { background: transparent; color: var(--primary); border-color: var(--primary); }
.btn-outline:hover { background: var(--primary-lt); }
.btn-on-primary { background: #fff; color: var(--primary-dk); }
.btn-on-primary:hover { transform: translateY(-1px); box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15); }
.btn-ghost-on-primary { background: transparent; color: #fff; border-color: rgba(255, 255, 255, 0.45); }
.btn-ghost-on-primary:hover { background: rgba(255, 255, 255, 0.12); }

.badge-dark, .badge-light {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 20px;
  border-radius: 12px;
  font-weight: 700;
  font-size: 0.88rem;
  transition: background 0.2s, transform 0.2s, box-shadow 0.2s;
}
.badge-dark {
  background: var(--text);
  color: #fff;
}
.badge-dark:hover {
  background: var(--navy);
  transform: translateY(-1px);
  box-shadow: var(--shadow-lg);
}
.badge-light {
  background: #fff;
  color: var(--primary-dk);
}
.badge-light:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

/* Nav */
nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(254, 251, 250, 0.9);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--nav-h);
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
  gap: 16px;
}
.nav-logo { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 1.05rem; }
.nav-logo img { width: 30px; height: 30px; border-radius: 7px; }
.nav-links { display: flex; align-items: center; gap: 26px; }
.nav-links a { font-size: 0.88rem; font-weight: 500; color: var(--text-muted); transition: color 0.2s; }
.nav-links a:hover { color: var(--text); }
.nav-right { display: flex; align-items: center; gap: 12px; }
.nav-back { font-size: 0.88rem; font-weight: 500; color: var(--text-muted); }
.nav-back:hover { color: var(--text); }

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: none;
  background: transparent;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  cursor: pointer;
  border-radius: 8px;
}
.nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--text);
  border-radius: 1px;
}

@media (max-width: 820px) {
  .nav-toggle { display: flex; }
  .nav-right .btn { display: none; }
  .nav-links {
    display: none;
    position: absolute;
    top: var(--nav-h);
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--bg);
    border-bottom: 1px solid var(--border);
    padding: 8px 0 16px;
    box-shadow: var(--shadow);
  }
  .nav-links.is-open { display: flex; }
  .nav-links a { display: block; padding: 14px 24px; font-size: 1rem; }
}

/* Hero — split layout with floating badges */
.hero {
  padding: 80px 0 72px;
  overflow: hidden;
}
.hero-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}
.hero-eyebrow {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--primary);
  letter-spacing: 0.06em;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.hero-eyebrow::before {
  content: '';
  display: inline-block;
  width: 20px;
  height: 2px;
  background: var(--primary);
  border-radius: 2px;
}
.hero h1 { margin-bottom: 20px; }
.hero h1 em { font-style: normal; color: var(--primary); }
.hero p { font-size: 1.05rem; margin-bottom: 28px; max-width: 460px; }
.hero-actions {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}
.hero-note { font-size: 0.8rem; color: var(--text-faint); margin-bottom: 0; }

.hero-img-wrap {
  position: relative;
  display: flex;
  justify-content: center;
}
.hero-img-blob {
  position: absolute;
  width: 82%;
  height: 82%;
  border-radius: 50%;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 0;
  background: radial-gradient(circle, var(--primary-lt) 0%, transparent 70%);
}
.hero-img-wrap img {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 400px;
  border-radius: 24px;
}

.float {
  position: absolute;
  z-index: 2;
  background: #fff;
  border-radius: 12px;
  box-shadow: var(--shadow-lg);
  padding: 8px 14px;
  font-size: 0.78rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 7px;
  white-space: nowrap;
  color: var(--text);
}
.float-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}
.float.f1 { top: 10%; right: -4%; animation: bob 3.2s ease-in-out infinite; }
.float.f2 { bottom: 14%; left: -4%; animation: bob 3.2s ease-in-out infinite 1.1s; }
.float.f3 {
  top: 50%;
  right: -8%;
  transform: translateY(-50%);
  animation: bob3 3.2s ease-in-out infinite 0.6s;
}

@keyframes bob {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}
@keyframes bob3 {
  0%, 100% { transform: translateY(-50%); }
  50% { transform: translateY(calc(-50% - 8px)); }
}

@media (max-width: 768px) {
  .hero-inner { grid-template-columns: 1fr; text-align: center; }
  .hero-eyebrow, .hero-actions { justify-content: center; }
  .hero p { margin-left: auto; margin-right: auto; }
  .hero-img-wrap { order: -1; max-width: 320px; margin: 0 auto; }
  .float.f1 { right: 0; }
  .float.f2 { left: 0; }
  .float.f3 { right: -2%; }
}

@media (prefers-reduced-motion: reduce) {
  .float.f1, .float.f2, .float.f3 { animation: none; }
}

/* Strip */
.strip {
  background: var(--primary);
  padding: 16px 0;
  overflow: hidden;
}
.strip-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 36px;
  justify-content: center;
  padding: 0 24px;
  animation: stripIn 0.7s ease-out 0.15s both;
}
.strip-item {
  color: rgba(255, 255, 255, 0.92);
  font-size: 0.84rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 8px;
}
.strip-item::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--primary-lt);
  flex-shrink: 0;
}

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

/* Problem */
.problem {
  background:
    linear-gradient(180deg, var(--bg-alt) 0%, var(--bg) 100%);
}
.problem-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
}
.problem-visual {
  border-radius: 24px;
  overflow: visible;
  background: transparent;
  box-shadow: none;
}
.problem-visual img {
  width: 100%;
  /* signup.png has a solid black matte — multiply knocks it out on light backgrounds */
  mix-blend-mode: multiply;
}
.problem-copy h2 { margin-bottom: 14px; }
.problem-copy > p { margin-bottom: 22px; font-size: 1.02rem; }
.pain-list { display: flex; flex-direction: column; gap: 12px; }
.pain-list li {
  background: var(--surface);
  border-radius: var(--radius-sm);
  padding: 16px 18px;
  border-left: 3px solid var(--teal);
  box-shadow: var(--shadow);
}
.pain-list strong { display: block; color: var(--text); margin-bottom: 3px; font-size: 0.92rem; }
.pain-list span { font-size: 0.86rem; color: var(--text-muted); }

@media (max-width: 800px) {
  .problem-inner { grid-template-columns: 1fr; }
  .problem-visual { max-width: 420px; margin: 0 auto; }
}

/* Steps */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  counter-reset: none;
}
.step {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 32px 26px;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
}
.step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--primary-lt);
  color: var(--primary-dk);
  font-weight: 800;
  font-size: 0.95rem;
  margin-bottom: 16px;
}
.step h3 { margin-bottom: 8px; }
.step p { font-size: 0.9rem; }

@media (max-width: 800px) {
  .steps { grid-template-columns: 1fr; }
}

/* Features */
.features {
  background:
    radial-gradient(ellipse 70% 50% at 10% 0%, rgba(214, 227, 221, 0.55), transparent 55%),
    var(--bg-alt);
}
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.feature-card {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 26px 24px;
  border: 1px solid var(--border);
  transition: transform 0.2s, box-shadow 0.2s;
}
.feature-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}
.feature-card h3 { margin-bottom: 8px; }
.feature-card p { font-size: 0.9rem; }

@media (max-width: 900px) { .features-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .features-grid { grid-template-columns: 1fr; } }

/* Pricing */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  align-items: stretch;
}
.pricing-card {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 32px 26px;
  border: 1.5px solid var(--border);
  position: relative;
  display: flex;
  flex-direction: column;
}
.pricing-card.featured {
  border-color: var(--primary);
  box-shadow: var(--shadow-lg);
}
.pro-badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--primary);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 4px 12px;
  border-radius: 999px;
}
.pricing-tier { font-size: 0.88rem; font-weight: 600; color: var(--text-muted); margin-bottom: 6px; }
.pricing-price {
  font-size: 2.4rem;
  font-weight: 800;
  margin-bottom: 4px;
  letter-spacing: -0.03em;
  line-height: 1.1;
}
.pricing-price-unit {
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0;
  color: var(--text-muted);
  margin-left: 2px;
}
.pricing-card.featured .pricing-price { color: var(--primary); }
.pricing-card.featured .pricing-price-unit { color: var(--primary); opacity: 0.75; }
.pricing-period { font-size: 0.8rem; color: var(--text-faint); margin-bottom: 22px; }
.pricing-list { margin-bottom: 24px; flex: 1; }
.pricing-list li {
  display: flex;
  gap: 8px;
  font-size: 0.88rem;
  color: var(--text-muted);
  padding: 8px 0;
  border-bottom: 1px solid var(--border);
}
.pricing-list li:last-child { border-bottom: none; }
.check { color: var(--primary); font-weight: 700; }
.pricing-btn { width: 100%; margin-top: auto; }
.pricing-billing-notes {
  max-width: 720px;
  margin: 32px auto 0;
  padding: 22px 24px;
  background: var(--bg-alt);
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.pricing-billing-notes p {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.55;
  margin: 0;
}
.pricing-billing-notes strong {
  color: var(--text);
  font-weight: 600;
}
.pricing-footnote {
  text-align: center;
  font-size: 0.82rem;
  color: var(--text-faint);
  margin-top: 28px;
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.5;
}

@media (max-width: 900px) {
  .pricing-grid { grid-template-columns: 1fr; max-width: 400px; margin: 0 auto; }
}

/* FAQ */
.faq { background: var(--bg-alt); }
.faq-list { max-width: 680px; margin: 0 auto; }

details {
  background: var(--surface);
  border-radius: var(--radius-sm);
  margin-bottom: 10px;
  border: 1px solid var(--border);
  overflow: hidden;
}
summary {
  padding: 17px 20px;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}
summary::-webkit-details-marker { display: none; }
summary::after {
  content: '+';
  font-size: 1.25rem;
  color: var(--primary);
  flex-shrink: 0;
  transition: transform 0.2s;
}
details[open] summary::after { transform: rotate(45deg); }
details > div {
  padding: 0 20px 16px;
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.7;
}
details > div a { color: var(--primary); font-weight: 600; }
details > div a:hover { text-decoration: underline; }

/* Download */
.download {
  background:
    linear-gradient(145deg, var(--primary) 0%, var(--primary-dk) 55%, var(--navy) 100%);
  text-align: center;
  padding: 96px 24px;
}
.download h2 { color: #fff; margin-bottom: 12px; }
.download > .container > p:not(.download-note) {
  color: rgba(255, 255, 255, 0.82);
  margin: 0 auto 32px;
  font-size: 1.05rem;
  max-width: 420px;
}
.download-actions { display: flex; justify-content: center; gap: 12px; flex-wrap: wrap; }
.download-note {
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.9rem;
  margin: 20px auto 0;
  max-width: 420px;
  padding-top: 0;
}

/* Footer */
footer { background: var(--text); padding: 32px 24px; text-align: center; }
footer p { color: rgba(255, 255, 255, 0.35); font-size: 0.78rem; }
footer a { color: rgba(255, 255, 255, 0.55); font-size: 0.78rem; margin: 0 8px; }
footer a:hover { color: #fff; }
.footer-links { margin-top: 12px; }

footer.footer-full { padding: 52px 0 32px; text-align: left; }
.footer-inner { max-width: 1100px; margin: 0 auto; padding: 0 24px; }
.footer-top {
  display: flex;
  justify-content: space-between;
  gap: 48px;
  margin-bottom: 48px;
  flex-wrap: wrap;
}
.footer-brand img { width: 34px; height: 34px; border-radius: 8px; margin-bottom: 10px; }
.footer-brand-name { color: #fff; font-weight: 700; font-size: 1rem; margin-bottom: 7px; }
.footer-brand p { color: rgba(255, 255, 255, 0.45); font-size: 0.83rem; max-width: 200px; line-height: 1.55; }
.footer-col h4 {
  color: rgba(255, 255, 255, 0.35);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 14px;
  font-weight: 600;
}
.footer-col ul { display: flex; flex-direction: column; gap: 10px; }
.footer-col a { color: rgba(255, 255, 255, 0.6); font-size: 0.86rem; margin: 0; }
.footer-col a:hover { color: #fff; }
.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}
.footer-bottom p { color: rgba(255, 255, 255, 0.3); }
.footer-bottom-links { display: flex; gap: 20px; flex-wrap: wrap; }
.footer-bottom a { color: rgba(255, 255, 255, 0.45); margin: 0; }
.footer-bottom a:hover { color: #fff; }

/* Sub-pages */
.page-wrap { max-width: 720px; margin: 0 auto; padding: 64px 24px 96px; }
.page-label {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--primary);
  background: var(--primary-lt);
  padding: 5px 12px;
  border-radius: 999px;
  margin-bottom: 16px;
}
.page-wrap h1 { font-size: clamp(1.8rem, 4vw, 2.5rem); margin-bottom: 8px; }
.page-meta { color: var(--text-faint); font-size: 0.85rem; margin-bottom: 40px; }
.page-wrap > p { color: var(--text-muted); font-size: 1rem; margin-bottom: 40px; }
.page-wrap a { color: var(--primary); }
.page-wrap a:hover { text-decoration: underline; }

.placeholder-banner {
  background: var(--primary-lt);
  border: 1.5px solid var(--primary);
  border-radius: 12px;
  padding: 20px 24px;
  margin-bottom: 40px;
  font-size: 0.9rem;
  color: var(--primary-dk);
}
.placeholder-banner strong { display: block; margin-bottom: 4px; font-size: 0.95rem; }

.legal-section { margin-bottom: 36px; }
.legal-section h2 { font-size: 1.08rem; margin-bottom: 10px; }
.legal-section p { font-size: 0.92rem; color: var(--text-muted); margin-bottom: 10px; }
.legal-section ul { padding-left: 20px; color: var(--text-muted); font-size: 0.92rem; list-style: disc; }
.legal-section ul li { margin-bottom: 6px; }

.contact-card {
  background: linear-gradient(135deg, var(--primary), var(--primary-dk));
  border-radius: 16px;
  padding: 32px;
  margin-bottom: 48px;
  color: #fff;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}
.contact-card h2 { color: #fff; font-size: 1.25rem; margin-bottom: 6px; }
.contact-card p { color: rgba(255, 255, 255, 0.8); font-size: 0.92rem; }
.contact-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #fff;
  color: var(--primary-dk);
  padding: 11px 22px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.9rem;
  white-space: nowrap;
  transition: transform 0.2s, box-shadow 0.2s;
}
.contact-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
  text-decoration: none;
}

.faq-title, .tips-title { font-size: 1.25rem; font-weight: 700; margin-bottom: 20px; }
.tips-title { margin-top: 48px; }
.tip-card {
  background: var(--bg-alt);
  border-radius: 12px;
  padding: 20px 22px;
  margin-bottom: 12px;
  border: 1px solid var(--border);
}
.tip-card h3 { font-size: 0.95rem; margin-bottom: 6px; }
.tip-card p { font-size: 0.88rem; color: var(--text-muted); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .strip-inner { animation: none; }
  .btn:hover, .feature-card:hover, .badge-dark:hover, .badge-light:hover { transform: none; }
}
