/* টংখাতা (TongKhata) — tongkhata.app
   Palette mirrors the app's AppTheme golden-yellow brand colors. */

:root {
  --brand: #FFC700;          /* brandPrimary */
  --brand-soft: #FFD633;     /* brandPrimarySoft */
  --brand-strong: #E6A800;   /* brandPrimaryStrong */
  --brand-deep: #B38600;     /* brandPrimaryDeep */
  --brand-tint: #FFF8DC;     /* brandPrimaryTint */
  --surface: #FFFBF0;        /* surfaceLight */
  --surface-2: #FFF8E8;
  --card: #FFFFFF;
  --border: #E0D4B0;
  --text: #1A1500;
  --text-2: #3D3520;
  --success: #2E8B57;
  --danger: #CC3333;
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --surface: #1A1808;
    --surface-2: #252210;
    --card: #2A2618;
    --border: #4D4530;
    --text: #FFF8DC;
    --text-2: #C9BD98;
    --brand-tint: #383220;
  }
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  overflow-x: clip;
  font-family: "Noto Sans Bengali", "Hind Siliguri", system-ui, -apple-system, sans-serif;
  background: var(--surface);
  color: var(--text);
  line-height: 1.8;
  -webkit-font-smoothing: antialiased;
}

.wrap { max-width: 960px; margin: 0 auto; padding: 0 20px; }
.wrap-narrow { max-width: 760px; margin: 0 auto; padding: 0 20px; }

a { color: var(--brand-deep); }
@media (prefers-color-scheme: dark) { a { color: var(--brand-soft); } }

/* ---------- header / nav ---------- */
.site-header {
  background: var(--brand);
  border-bottom: 3px solid var(--brand-strong);
}
.site-header .bar {
  display: flex; align-items: center; gap: 12px;
  flex-wrap: wrap;
  padding: 12px 0;
}
.site-header .logo {
  width: 44px; height: 44px; border-radius: 12px; display: block;
}
.site-header .name {
  font-size: 1.35rem; font-weight: 700; color: #1A1500;
  text-decoration: none;
}
.site-header nav { margin-left: auto; display: flex; gap: 18px; }
.site-header nav a {
  color: #1A1500; text-decoration: none; font-weight: 600; font-size: .95rem;
}
.site-header nav a:hover { text-decoration: underline; }

/* ---------- hero ---------- */
.hero {
  background: linear-gradient(180deg, var(--brand) 0%, var(--brand-soft) 100%);
  color: #1A1500;
  text-align: center;
  padding: 56px 20px 64px;
}
.hero img.hero-logo {
  width: 112px; height: 112px; border-radius: 28px;
  box-shadow: 0 8px 24px rgba(26, 21, 0, .25);
}
.hero h1 { font-size: 2.4rem; margin: 18px 0 6px; }
.hero .tagline { font-size: 1.2rem; margin: 0 0 8px; font-weight: 600; }
.hero .tagline-en { font-size: 1rem; margin: 0 0 28px; color: #3D3520; }
.hero .cta-row { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

.btn {
  display: inline-block; padding: 13px 30px; border-radius: 12px;
  font-weight: 700; font-size: 1rem; text-decoration: none;
  border: 2px solid transparent;
}
.btn-dark { background: #1A1500; color: #FFC700; }
.btn-dark:hover { background: #3D3520; }
.btn-outline { background: transparent; color: #1A1500; border-color: #1A1500; }
.btn-outline:hover { background: rgba(26, 21, 0, .08); }
.btn[aria-disabled="true"] { opacity: .75; cursor: default; }
.badge-soon {
  display: inline-block; background: #1A1500; color: #FFF8DC;
  font-size: .72rem; font-weight: 700; padding: 2px 10px;
  border-radius: 999px; margin-left: 8px; vertical-align: middle;
}

/* ---------- sections ---------- */
section { padding: 56px 0; }
section h2 {
  text-align: center; font-size: 1.7rem; margin: 0 0 8px;
}
section .sub {
  text-align: center; color: var(--text-2); margin: 0 0 36px;
}

.features-grid {
  display: grid; gap: 18px;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}
.feature {
  background: var(--card); border: 1px solid var(--border);
  border-radius: 16px; padding: 22px 20px;
}
.feature .ico {
  width: 46px; height: 46px; border-radius: 12px;
  background: var(--brand-tint); border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.4rem; margin-bottom: 12px;
}
.feature h3 { margin: 0 0 6px; font-size: 1.08rem; }
.feature p { margin: 0; color: var(--text-2); font-size: .95rem; }

.why { background: var(--surface-2); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.why-grid {
  display: grid; gap: 18px;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  text-align: center;
}
.why-grid .item h3 { margin: 10px 0 6px; font-size: 1.1rem; }
.why-grid .item p { margin: 0; color: var(--text-2); font-size: .95rem; }
.why-grid .big { font-size: 2rem; }

.shots-grid {
  display: grid; gap: 18px;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  max-width: 820px; margin: 0 auto;
}
.shot {
  aspect-ratio: 9 / 19; border-radius: 22px;
  background: var(--brand-tint);
  border: 2px dashed var(--brand-strong);
  display: flex; align-items: center; justify-content: center;
  color: var(--brand-deep); font-weight: 600; font-size: .9rem;
  text-align: center; padding: 12px;
}
@media (prefers-color-scheme: dark) { .shot { color: var(--brand-soft); } }

/* ---------- content pages (privacy / delete / reset) ---------- */
.page { padding: 40px 0 72px; }
.page h1 { font-size: 1.6rem; margin: 0 0 4px; }
.page h2 { font-size: 1.15rem; margin-top: 32px; }
.page .meta { color: var(--text-2); font-size: .9rem; margin-bottom: 24px; }
.page ul, .page ol { padding-left: 22px; }
.page li { margin: 5px 0; }
.page hr { border: none; border-top: 1px solid var(--border); margin: 40px 0; }
.page .en { font-size: .95rem; color: var(--text-2); }
.page .en h1 { font-size: 1.3rem; }
.page .en h2 { font-size: 1.05rem; }
.box {
  background: var(--brand-tint); border: 1px solid var(--border);
  border-radius: 12px; padding: 14px 18px; margin: 18px 0;
}

/* ---------- footer ---------- */
.site-footer {
  background: #1A1500; color: #FFF8DC;
  padding: 34px 0; margin-top: 0;
}
.site-footer .cols {
  display: flex; flex-wrap: wrap; gap: 10px 28px;
  align-items: center; justify-content: space-between;
}
.site-footer a { color: #FFD633; text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }
.site-footer .links { display: flex; flex-wrap: wrap; gap: 8px 22px; }
.site-footer .copy { font-size: .9rem; color: #C9BD98; }

/* ---------- reset page ---------- */
.reset-card {
  max-width: 460px; margin: 56px auto; text-align: center;
  background: var(--card); border: 1px solid var(--border);
  border-radius: 20px; padding: 36px 26px;
}
.reset-card img { width: 76px; height: 76px; border-radius: 18px; }
.reset-card h1 { font-size: 1.35rem; margin: 16px 0 8px; }
.reset-card p { color: var(--text-2); margin: 0 0 12px; }
.reset-card .btn-brand {
  display: inline-block; margin: 10px 0 4px;
  background: var(--brand); color: #1A1500;
  padding: 13px 34px; border-radius: 12px;
  font-weight: 700; text-decoration: none; font-size: 1.05rem;
}
.reset-card .btn-brand:hover { background: var(--brand-soft); }
.reset-card .hint { font-size: .88rem; margin-top: 16px; }

@media (max-width: 560px) {
  .hero h1 { font-size: 1.9rem; }
  .site-header .name { font-size: 1.15rem; }
  .site-header nav { gap: 12px; }
  .site-header nav a { font-size: .88rem; }
}
