/*
Theme Name: Todagiri
Description: The Todagiri product site. Built by hand rather than with a page builder, because the people it sells to are on mid-range Androids over 4G, and a slow page selling shop software is an argument against the product.
Version: 1.2.0
Author: Sassy Secret
*/

/* ---------------------------------------------------------------------------
   Mobile first, and not as a slogan: every rule here is the phone rule, with
   desktop added afterwards. The audience works from a phone all day.

   No framework, no grid library, no icon font, no JavaScript for anything that
   matters. The whole page should paint before someone decides to leave.
   --------------------------------------------------------------------------- */

:root {
  --ink:        #14142b;
  --ink-soft:   #4a4a68;
  --ink-faint:  #7a7a93;
  --line:       #e6e6ef;
  --bg:         #ffffff;
  --bg-soft:    #f7f7fb;
  --brand:      #a8305b;
  --brand-dark: #86204708;
  --deep:       #2c2a4a;
  --good:       #1a7f37;
  --warn:       #b45309;
  --radius:     14px;
  --wrap:       1100px;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "Hind Siliguri", "Noto Sans Bengali", -apple-system, BlinkMacSystemFont,
               "Segoe UI", Roboto, sans-serif;
  /* Bangla needs more line height than Latin or it looks cramped and is
     genuinely harder to read at speed. */
  line-height: 1.75;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--brand); }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }

section { padding: 56px 0; }
@media (min-width: 900px) { section { padding: 84px 0; } }

h1, h2, h3 { line-height: 1.35; margin: 0 0 14px; font-weight: 800; letter-spacing: -0.01em; }
h1 { font-size: 30px; }
h2 { font-size: 25px; }
h3 { font-size: 19px; }
@media (min-width: 900px) {
  h1 { font-size: 46px; }
  h2 { font-size: 34px; }
  h3 { font-size: 21px; }
}
p { margin: 0 0 16px; color: var(--ink-soft); }

.lead { font-size: 18px; color: var(--ink-soft); }
@media (min-width: 900px) { .lead { font-size: 20px; } }

.center { text-align: center; }
.soft { background: var(--bg-soft); }

/* --- buttons ------------------------------------------------------------- */
/* 52px tall. A thumb on a bus is not a mouse on a desk. */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 52px; padding: 14px 26px;
  border-radius: 999px; border: 2px solid transparent;
  font-size: 17px; font-weight: 700; text-decoration: none;
  transition: transform .12s ease, box-shadow .12s ease;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--brand); color: #fff; box-shadow: 0 8px 22px rgba(168,48,91,.28); }
.btn-primary:hover { box-shadow: 0 12px 30px rgba(168,48,91,.36); }
.btn-ghost { background: #fff; color: var(--deep); border-color: var(--line); }
.btn-block { display: flex; width: 100%; }
@media (min-width: 640px) { .btn-block { display: inline-flex; width: auto; } }

.cta-note { font-size: 14.5px; color: var(--ink-faint); margin-top: 10px; }

/* --- header -------------------------------------------------------------- */
.site-head {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.92); backdrop-filter: saturate(140%) blur(8px);
  border-bottom: 1px solid var(--line);
}
.site-head .wrap { display: flex; align-items: center; justify-content: space-between; height: 62px; }
.brand { font-size: 22px; font-weight: 800; color: var(--deep); text-decoration: none; letter-spacing: 0; }
.head-cta { font-size: 15px; padding: 9px 18px; min-height: 42px; }

/* --- hero ---------------------------------------------------------------- */
.hero { padding-top: 40px; padding-bottom: 20px; }
.hero h1 { margin-bottom: 16px; }
.hero .lead { margin-bottom: 26px; }
.hero-actions { display: flex; flex-direction: column; gap: 12px; }
@media (min-width: 640px) { .hero-actions { flex-direction: row; align-items: center; } }

.hero-trust {
  display: flex; flex-wrap: wrap; gap: 8px 18px;
  margin-top: 26px; padding-top: 22px; border-top: 1px solid var(--line);
  font-size: 15px; color: var(--ink-faint);
}
.hero-trust span { display: inline-flex; align-items: center; gap: 7px; }
.tick { color: var(--good); font-weight: 800; }

/* --- phone frame for screenshots ---------------------------------------- */
.shot {
  border: 1px solid var(--line); border-radius: 22px; overflow: hidden;
  background: #0f0f1e; box-shadow: 0 18px 50px rgba(20,20,43,.16);
}
.shot img { width: 100%; }
.shot-placeholder {
  aspect-ratio: 9 / 19.5; display: grid; place-items: center;
  color: #8a8aa8; font-size: 14px; text-align: center; padding: 20px;
  background: repeating-linear-gradient(45deg, #16162c, #16162c 12px, #1b1b34 12px, #1b1b34 24px);
}

/* --- problem list -------------------------------------------------------- */
.pains { display: grid; gap: 12px; margin: 0; padding: 0; list-style: none; }
.pains li {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 16px 18px; display: flex; gap: 12px; align-items: flex-start;
  font-size: 16.5px; color: var(--ink);
}
.pains .x { color: #b91c1c; font-weight: 800; flex: 0 0 auto; }

/* --- benefit cards ------------------------------------------------------- */
.cards { display: grid; gap: 16px; }
@media (min-width: 760px) { .cards { grid-template-columns: 1fr 1fr; } }
.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 22px;
}
.card h3 { margin-bottom: 8px; }
.card p { margin: 0; font-size: 16px; }
.card .k {
  display: inline-block; font-size: 13px; font-weight: 700; color: var(--brand);
  background: rgba(168,48,91,.08); border-radius: 999px; padding: 4px 12px; margin-bottom: 12px;
}

/* --- steps --------------------------------------------------------------- */
.steps { display: grid; gap: 18px; counter-reset: s; }
@media (min-width: 860px) { .steps { grid-template-columns: repeat(3, 1fr); } }
.step { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.step .n {
  width: 38px; height: 38px; border-radius: 50%; background: var(--deep); color: #fff;
  display: grid; place-items: center; font-weight: 800; margin-bottom: 14px;
}
.step p { margin: 0; font-size: 16px; }

/* --- pricing ------------------------------------------------------------- */
.prices { display: grid; gap: 14px; }
@media (min-width: 760px) { .prices { grid-template-columns: repeat(4, 1fr); } }
.price {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 22px 18px; text-align: center; position: relative;
}
.price.best { border-color: var(--brand); border-width: 2px; }
.price .term { font-size: 15px; color: var(--ink-faint); font-weight: 700; }
.price .amt { font-size: 32px; font-weight: 800; margin: 6px 0 2px; color: var(--ink); }
.price .per { font-size: 13.5px; color: var(--ink-faint); min-height: 20px; }
.price .btn { margin-top: 14px; width: 100%; min-height: 46px; font-size: 15.5px; }
.badge {
  position: absolute; top: -12px; left: 50%; transform: translateX(-50%);
  background: var(--brand); color: #fff; font-size: 12.5px; font-weight: 700;
  padding: 4px 14px; border-radius: 999px; white-space: nowrap;
}

/* --- faq ----------------------------------------------------------------- */
.faq { display: grid; gap: 10px; }
.faq details {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 4px 18px;
}
.faq summary {
  cursor: pointer; padding: 14px 0; font-weight: 700; font-size: 16.5px;
  list-style: none; display: flex; justify-content: space-between; gap: 14px; align-items: center;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 22px; color: var(--brand); font-weight: 400; }
.faq details[open] summary::after { content: "\2212"; }
.faq details p { margin: 0 0 16px; font-size: 16px; }

/* --- final cta ----------------------------------------------------------- */
.final { background: var(--deep); color: #fff; }
.final h2 { color: #fff; }
.final p { color: rgba(255,255,255,.78); }
.final .btn-primary { background: #fff; color: var(--deep); box-shadow: none; }

/* --- footer -------------------------------------------------------------- */
.site-foot { border-top: 1px solid var(--line); padding: 30px 0 44px; font-size: 15px; color: var(--ink-faint); }
.site-foot a { color: var(--ink-soft); text-decoration: none; }
.site-foot nav { display: flex; flex-wrap: wrap; gap: 8px 20px; margin-bottom: 12px; }

/* Sticky bottom CTA on phones only. The decision has to be reachable at any
   scroll position without hunting for it. */
.sticky-cta {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
  background: rgba(255,255,255,.96); backdrop-filter: blur(8px);
  border-top: 1px solid var(--line); padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
}
.sticky-cta .btn { width: 100%; }
@media (min-width: 760px) { .sticky-cta { display: none; } }
@media (max-width: 759.98px) { body { padding-bottom: 84px; } }

/* --- language switch ----------------------------------------------------- */
/* A segment control, sized like a real touch target and set apart from the
   CTA so the two never read as one pair of buttons. */
.head-right { display: flex; align-items: center; gap: 16px; }

.lang-switch {
  position: relative; flex: 0 0 auto;
  display: inline-flex; align-items: center;
  background: var(--bg-soft); border: 1px solid var(--line);
  border-radius: 999px; padding: 3px; height: 40px;
}
.lang-knob {
  position: absolute; top: 3px; left: 3px;
  width: calc(50% - 3px); height: calc(100% - 6px);
  background: #fff; border-radius: 999px;
  box-shadow: 0 1px 3px rgba(20,20,43,.18);
  transition: transform .2s cubic-bezier(.4,0,.2,1);
}
.lang-switch.is-en .lang-knob { transform: translateX(100%); }
@media (prefers-reduced-motion: reduce) { .lang-knob { transition: none; } }

.lang-opt {
  position: relative; z-index: 1;
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 52px; padding: 0 10px;
  font-size: 14px; font-weight: 700; line-height: 1;
  text-decoration: none; color: var(--ink-faint);
  transition: color .2s ease;
}
.lang-opt[aria-current] { color: var(--deep); }
.lang-opt:hover:not([aria-current]) { color: var(--brand); }

/* At 360px the header holds a brand, this switch and a CTA. Something has to
   give, and it is the CTA's padding rather than the switch's tap target. */
@media (max-width: 390px) {
  .head-right { gap: 10px; }
  .lang-opt { min-width: 44px; padding: 0 6px; font-size: 13.5px; }
  .head-cta { padding: 9px 14px; font-size: 14.5px; }
  .brand { font-size: 20px; }
}

/* --- legal pages ---------------------------------------------------------- */
.legal h1 { margin-bottom: 6px; }
.legal h2 { font-size: 20px; margin-top: 34px; }
.legal p  { font-size: 16.5px; }
.updated  { font-size: 14.5px; color: var(--ink-faint); margin-bottom: 22px; }

/* --- comparison ----------------------------------------------------------- */
.card.alt .alt-head {
  display: flex; align-items: baseline; justify-content: space-between;
  gap: 12px; margin-bottom: 12px;
}
.card.alt h3 { margin: 0; }
.card.alt .cost {
  flex: 0 0 auto; font-size: 14px; font-weight: 700; color: var(--ink-faint);
  background: var(--bg-soft); border-radius: 999px; padding: 4px 12px; white-space: nowrap;
}
.card.alt p { margin: 0 0 10px; font-size: 15.5px; display: flex; gap: 9px; align-items: flex-start; }
.card.alt p:last-child { margin-bottom: 0; }
.card.alt .good b, .card.alt .stop b { flex: 0 0 auto; }

/* A six-column table cannot fit a 360px screen, so it scrolls inside its own
   box -- the page itself must never scroll sideways. The first column stays
   put, otherwise you scroll right and lose track of which row you are on. */
.table-scroll {
  overflow-x: auto; -webkit-overflow-scrolling: touch;
  border: 1px solid var(--line); border-radius: var(--radius); background: #fff;
}
table.cmp { border-collapse: collapse; width: 100%; min-width: 660px; font-size: 15px; }
table.cmp th, table.cmp td {
  padding: 12px 14px; text-align: left; border-bottom: 1px solid var(--line);
  vertical-align: top;
}
table.cmp th { font-weight: 700; color: var(--deep); background: var(--bg-soft); white-space: nowrap; }
table.cmp th.mine, table.cmp td.mine { background: rgba(168,48,91,.06); }
table.cmp th.mine { color: var(--brand); }
table.cmp td.mine { font-weight: 700; color: var(--ink); }
table.cmp .rowhead {
  position: sticky; left: 0; background: #fff; font-weight: 600; color: var(--ink);
  border-right: 1px solid var(--line); min-width: 190px;
}
table.cmp tbody tr:last-child td { border-bottom: 0; }
