/* ============================================================
   Vaktim — marketing site stylesheet
   Palette: cream / deep green / gold. Fonts: Fraunces + Inter.
   ============================================================ */

:root {
  --cream: #f8f5ee;
  --cream-dark: #efe9dc;
  --ink: #10231a;
  --ink-soft: #3d5147;
  --green: #14532d;
  --green-deep: #0e3d26;
  --green-tint: #e4efe7;
  --gold: #c29a4b;
  --gold-soft: #f3e9d5;
  --white: #ffffff;
  --border: #e2dccb;
  --radius: 20px;
  --radius-lg: 32px;
  --shadow: 0 2px 8px rgba(16, 35, 26, 0.08), 0 14px 32px rgba(16, 35, 26, 0.14);
  --font-display: "Fraunces", Georgia, "Times New Roman", serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

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

html { scroll-behavior: smooth; scroll-padding-top: 88px; }

body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--cream);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img, svg { max-width: 100%; display: block; }

a { color: var(--green); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--green-deep); }

h1, h2, h3 { font-family: var(--font-display); font-weight: 600; line-height: 1.15; letter-spacing: -0.01em; }
h1 { font-size: clamp(2.2rem, 5.5vw, 3.6rem); }
h2 { font-size: clamp(1.7rem, 3.5vw, 2.4rem); }
h3 { font-size: 1.25rem; }

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

.eyebrow {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 14px;
}

.section { padding: 88px 0; }
.section-alt { background: var(--white); }
.section-head { max-width: 680px; margin: 0 auto 48px; text-align: center; }
.section-head p { margin-top: 14px; color: var(--ink-soft); font-size: 1.06rem; }

/* ---------- Header ---------- */

.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(248, 245, 238, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}
.site-header .container {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; padding-top: 14px; padding-bottom: 14px;
}
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); }
.brand-mark {
  width: 36px; height: 36px; border-radius: 9px; overflow: hidden; flex: none;
}
.brand-name { font-family: var(--font-display); font-size: 1.3rem; font-weight: 700; }
.site-nav { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; }
.site-nav a { font-size: 0.92rem; font-weight: 500; text-decoration: none; color: var(--ink-soft); }
.site-nav a:hover { color: var(--green-deep); }
.site-nav a.btn-primary, .site-nav a.btn-primary:hover { color: var(--cream); }

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 14px 26px; border-radius: 999px;
  font-weight: 600; font-size: 1rem; text-decoration: none;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  cursor: pointer; border: none;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--green); color: var(--cream); box-shadow: var(--shadow); }
.btn-primary:hover { background: var(--green-deep); color: var(--cream); }
.btn-secondary { background: var(--white); color: var(--green-deep); border: 1.5px solid var(--border); }
.btn-small { padding: 10px 18px; font-size: 0.9rem; }

/* Placeholder App Store badge (replace with official artwork later) */
.appstore-badge {
  display: inline-flex; flex-direction: column; align-items: flex-start;
  background: var(--ink); color: var(--cream);
  padding: 10px 22px; border-radius: 12px; text-decoration: none; line-height: 1.25;
  border: 1px dashed rgba(248, 245, 238, 0.5);
}
.appstore-badge:hover { color: var(--white); background: #000; }
.appstore-badge .small { font-size: 0.68rem; letter-spacing: 0.06em; text-transform: uppercase; opacity: 0.85; }
.appstore-badge .big { font-family: var(--font-display); font-size: 1.15rem; font-weight: 600; }

/* ---------- Hero ---------- */

.hero {
  padding: 84px 0 72px;
  overflow: hidden;
  background:
    linear-gradient(90deg, rgba(8, 30, 19, 0.28), rgba(8, 30, 19, 0) 72%),
    linear-gradient(180deg, #0e3d26 0%, #14532d 42%, #9cc0a8 72%, var(--cream) 100%);
}
.hero .container { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 56px; align-items: center; }
.hero h1 { color: var(--white); }
.accent-word { color: var(--gold); }
.hero-copy p.lead { margin: 20px 0 30px; font-size: 1.15rem; color: rgba(248, 245, 238, 0.9); max-width: 34em; }
.hero-ctas { display: flex; gap: 14px; flex-wrap: wrap; align-items: center; }
.hero-note { margin-top: 16px; font-size: 0.85rem; color: var(--ink-soft); }
.hero-points { margin-top: 34px; display: flex; gap: 26px; flex-wrap: wrap; padding: 0; list-style: none; }
.hero-points li { font-size: 0.9rem; font-weight: 600; color: var(--cream); display: flex; gap: 8px; align-items: center; }
.hero-points li::before { content: "✓"; color: var(--gold); font-weight: 800; }

/* ---------- Phone frame ---------- */

.phone {
  width: min(300px, 78vw); margin: 0 auto;
  border-radius: 44px; padding: 12px;
  background: var(--ink); box-shadow: var(--shadow);
}
.phone-screen { border-radius: 34px; overflow: hidden; background: var(--cream-dark); }
.phone-screen img { width: 100%; height: auto; }

/* ---------- Feature grid ---------- */

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

.card {
  background: var(--white); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 28px;
}
.section-alt .card { background: var(--cream); }
.card .icon {
  width: 46px; height: 46px; border-radius: 12px;
  background: var(--green-tint); color: var(--green-deep);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.3rem; margin-bottom: 16px;
}
.card h3 { margin-bottom: 8px; }
.card p { color: var(--ink-soft); font-size: 0.95rem; }

/* ---------- Screenshots strip ---------- */

.shots {
  display: flex; gap: 26px; overflow-x: auto; padding: 8px 4px 24px;
  scroll-snap-type: x mandatory;
}
.shot { flex: 0 0 240px; scroll-snap-align: center; text-align: center; }
.shot .phone { width: 240px; padding: 9px; border-radius: 36px; }
.shot .phone-screen { border-radius: 28px; }
.shot figcaption { margin-top: 14px; font-size: 0.9rem; font-weight: 600; color: var(--ink-soft); }

/* ---------- How it works ---------- */

.steps { counter-reset: step; display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.step { position: relative; padding: 26px 22px 22px; background: var(--cream); border: 1px solid var(--border); border-radius: var(--radius); }
.step::before {
  counter-increment: step; content: counter(step);
  display: inline-flex; align-items: center; justify-content: center;
  width: 34px; height: 34px; border-radius: 50%;
  background: var(--green); color: var(--cream);
  font-weight: 700; font-family: var(--font-display); margin-bottom: 14px;
}
.step h3 { font-size: 1.05rem; margin-bottom: 6px; }
.step p { font-size: 0.9rem; color: var(--ink-soft); }

/* ---------- Guide cards ---------- */

.guide-card {
  display: flex; flex-direction: column; gap: 8px;
  background: var(--white); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 26px;
  text-decoration: none; color: var(--ink);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.guide-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); color: var(--ink); }
.guide-card .tag { font-size: 0.72rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--gold); }
.guide-card h3 { font-size: 1.12rem; }
.guide-card p { font-size: 0.9rem; color: var(--ink-soft); }
.guide-card .more { margin-top: auto; padding-top: 10px; font-size: 0.88rem; font-weight: 600; color: var(--green); }

/* ---------- FAQ ---------- */

.faq { max-width: 760px; margin: 0 auto; }
.faq details {
  background: var(--white); border: 1px solid var(--border);
  border-radius: var(--radius); margin-bottom: 12px; overflow: hidden;
}
.faq summary {
  cursor: pointer; list-style: none; padding: 20px 24px;
  font-weight: 600; font-size: 1.02rem;
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 1.4rem; color: var(--gold); flex: none; line-height: 1; }
.faq details[open] summary::after { content: "–"; }
.faq .answer { padding: 0 24px 22px; color: var(--ink-soft); font-size: 0.97rem; }
.faq .answer a { font-weight: 600; }

/* ---------- CTA band ---------- */

.cta-band { background: linear-gradient(165deg, #0e3d26, #081e13); color: var(--cream); text-align: center; padding: 84px 0; }
.cta-band h2 { color: var(--white); }
.cta-band p { margin: 16px auto 30px; max-width: 34em; color: rgba(248, 245, 238, 0.85); }
.cta-band .btn-primary { background: var(--gold); color: var(--ink); }
.cta-band .btn-primary:hover { background: #d4ad60; }

/* ---------- Footer ---------- */

.site-footer { background: var(--ink); color: rgba(248, 245, 238, 0.75); padding: 56px 0 36px; font-size: 0.9rem; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 36px; margin-bottom: 40px; }
.site-footer h4 { color: var(--white); font-size: 0.85rem; letter-spacing: 0.1em; text-transform: uppercase; margin-bottom: 14px; }
.site-footer ul { list-style: none; }
.site-footer li { margin-bottom: 9px; }
.site-footer a { color: rgba(248, 245, 238, 0.75); text-decoration: none; }
.site-footer a:hover { color: var(--white); text-decoration: underline; }
.footer-brand .brand-name { color: var(--white); }
.footer-brand p { margin-top: 12px; max-width: 26em; }
.footer-bottom { border-top: 1px solid rgba(248, 245, 238, 0.15); padding-top: 24px; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }

.mobile-download-bar { display: none; }

/* ---------- Guide / article pages ---------- */

.article-header { padding: 64px 0 40px; }
.breadcrumbs { font-size: 0.85rem; color: var(--ink-soft); margin-bottom: 22px; }
.breadcrumbs a { color: var(--ink-soft); }
.article-header .meta { margin-top: 18px; color: var(--ink-soft); font-size: 0.9rem; }

.article { padding-bottom: 80px; }
.article .container { max-width: 760px; }
.article h2 { margin: 44px 0 14px; font-size: 1.6rem; }
.article h3 { margin: 30px 0 10px; }
.article p { margin-bottom: 16px; color: var(--ink-soft); }
.article p strong, .article li strong { color: var(--ink); }
.article ul, .article ol { margin: 0 0 18px 24px; color: var(--ink-soft); }
.article li { margin-bottom: 8px; }
.article table { width: 100%; border-collapse: collapse; margin: 18px 0 24px; font-size: 0.95rem; }
.article th, .article td { text-align: left; padding: 10px 14px; border: 1px solid var(--border); }
.article th { background: var(--green-tint); color: var(--green-deep); }
.article td { color: var(--ink-soft); background: var(--white); }

.app-callout {
  background: var(--green-tint); border: 1px solid #cbdfd1;
  border-radius: var(--radius); padding: 26px 28px; margin: 30px 0;
}
.app-callout h3 { margin-top: 0; color: var(--green-deep); }
.app-callout p, .app-callout li { color: var(--ink-soft); }
.app-callout .btn { margin-top: 8px; }

.related { background: var(--white); border-top: 1px solid var(--border); padding: 56px 0 72px; }
.related h2 { text-align: center; margin-bottom: 32px; }

/* ---------- Support page ---------- */

.support-card {
  background: var(--white); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 40px; text-align: center;
  max-width: 620px; margin: 0 auto 40px;
}
.support-card .email {
  display: inline-block; font-family: var(--font-display); font-size: 1.3rem;
  font-weight: 600; margin: 14px 0 6px; word-break: break-all;
}

/* ---------- Responsive ---------- */

@media (max-width: 900px) {
  .hero .container { grid-template-columns: 1fr; text-align: center; }
  .hero-copy p.lead { margin-left: auto; margin-right: auto; }
  .hero-ctas, .hero-points { justify-content: center; }
  .grid-3 { grid-template-columns: 1fr 1fr; }
  .steps { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 600px) {
  .section { padding: 64px 0; }
  .grid-3, .grid-2, .steps { grid-template-columns: 1fr; }
  .site-nav { gap: 14px; font-size: 0.85rem; }
  .site-nav .nav-hide-mobile { display: none; }
  .footer-grid { grid-template-columns: 1fr; }
}

@media (max-width: 700px) {
  body.home-page { padding-bottom: calc(76px + env(safe-area-inset-bottom)); }
  .mobile-download-bar {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 60;
    display: flex;
    justify-content: center;
    padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
    background: rgba(248, 245, 238, 0.84);
    border-top: 1px solid rgba(226, 220, 203, 0.8);
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
  }
  .mobile-download-bar .btn { width: min(100%, 420px); }
}
