/* TakshilaSoft site. System fonts only: nothing to download on a slow connection. */
:root {
  --teal: #0f6b5e;
  --teal-dark: #0a4f46;
  --teal-soft: #e7f3f0;
  --amber: #f2b441;
  --ink: #17231f;
  --muted: #55655f;
  --line: #dbe5e1;
  --bg: #ffffff;
  --bg-alt: #f5f9f7;
  --bad: #a3271f;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(16, 40, 34, .06), 0 8px 24px rgba(16, 40, 34, .08);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 17px/1.6 system-ui, -apple-system, "Segoe UI", Roboto, "Noto Sans", Arial, sans-serif;
}
img { max-width: 100%; display: block; }
a { color: var(--teal); }
h1, h2, h3 { line-height: 1.2; margin: 0 0 .5em; letter-spacing: -.01em; }
h1 { font-size: clamp(2rem, 5.2vw, 3.1rem); }
h2 { font-size: clamp(1.5rem, 3.4vw, 2.1rem); }
h3 { font-size: 1.1rem; }
p { margin: 0 0 1em; }

.wrap { width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 760px; }
.skip { position: absolute; left: -999px; top: 0; background: var(--ink); color: #fff; padding: 10px 14px; z-index: 50; }
.skip:focus { left: 8px; top: 8px; }
:focus-visible { outline: 3px solid var(--amber); outline-offset: 2px; }

/* Buttons */
.btn {
  display: inline-block; background: var(--teal); color: #fff; text-decoration: none;
  font: inherit; font-weight: 600; padding: 13px 22px; border-radius: 10px;
  border: 2px solid var(--teal); cursor: pointer; text-align: center;
}
.btn:hover { background: var(--teal-dark); border-color: var(--teal-dark); }
.btn.ghost { background: transparent; color: var(--teal); }
.btn.ghost:hover { background: var(--teal-soft); }
.btn.small { padding: 8px 16px; }

/* Header */
.top { position: sticky; top: 0; z-index: 20; background: rgba(255, 255, 255, .96); border-bottom: 1px solid var(--line); }
.top-in { display: flex; align-items: center; justify-content: space-between; min-height: 64px; gap: 16px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); font-weight: 700; font-size: 1.2rem; }
.brand b { color: var(--teal); }
.nav { display: flex; align-items: center; gap: 22px; }
.nav a:not(.btn) { color: var(--ink); text-decoration: none; font-size: .96rem; }
.nav a:not(.btn):hover { color: var(--teal); }
.menu-btn { display: none; font: inherit; font-weight: 600; background: none; border: 1px solid var(--line); border-radius: 8px; padding: 8px 14px; color: var(--ink); cursor: pointer; }

/* Hero */
.hero { background: linear-gradient(180deg, var(--teal-soft), #fff 85%); padding: 56px 0 40px; }
.hero-in { display: grid; grid-template-columns: 1.15fr .85fr; gap: 48px; align-items: center; }
.eyebrow { display: inline-block; background: #fff; border: 1px solid var(--line); color: var(--teal-dark); font-size: .88rem; font-weight: 600; padding: 5px 12px; border-radius: 999px; margin-bottom: 18px; }
.lead { font-size: 1.15rem; color: var(--muted); max-width: 34em; }
.acts { display: flex; flex-wrap: wrap; gap: 12px; margin: 26px 0 22px; }
.ticks { list-style: none; padding: 0; margin: 0; color: var(--muted); font-size: .98rem; }
.ticks li { padding-left: 28px; position: relative; margin-bottom: 6px; }
.ticks li::before { content: "\2713"; position: absolute; left: 0; top: 0; color: var(--teal); font-weight: 700; }

/* Hero illustration */
.hero-shot { max-width: 380px; width: 100%; margin: 0 auto; }
.shot { background: #fff; border: 1px solid var(--line); border-radius: 18px; box-shadow: var(--shadow); overflow: hidden; }
.shot-bar { display: flex; align-items: center; gap: 6px; background: var(--teal); padding: 10px 14px; }
.shot-bar span { width: 9px; height: 9px; border-radius: 50%; background: rgba(255, 255, 255, .45); }
.shot-bar em { margin-left: auto; color: #fff; font-style: normal; font-weight: 600; font-size: .9rem; }
.shot-body { padding: 18px; }
.stu { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.stu strong { display: block; }
.stu small { color: var(--muted); }
.avatar { width: 44px; height: 44px; border-radius: 50%; background: var(--teal-soft); color: var(--teal-dark); display: grid; place-items: center; font-weight: 700; flex: none; }
.pill { margin-left: auto; font-size: .78rem; font-weight: 700; padding: 3px 10px; border-radius: 999px; }
.pill.due { background: #fdf0d3; color: #7a5200; }
.mini { width: 100%; border-collapse: collapse; font-size: .95rem; }
.mini td { padding: 7px 0; border-bottom: 1px solid var(--line); }
.mini td:last-child { text-align: right; font-variant-numeric: tabular-nums; }
.mini .neg { color: var(--teal); }
.mini .tot td { font-weight: 700; border-bottom: 0; padding-top: 10px; }
.shot-btn { background: var(--teal); color: #fff; text-align: center; font-weight: 600; border-radius: 10px; padding: 11px; margin: 10px 0 12px; }
.receipt { display: flex; align-items: center; gap: 12px; background: var(--bg-alt); border: 1px dashed var(--line); border-radius: 10px; padding: 10px 12px; }
.receipt strong { display: block; font-size: .95rem; }
.receipt small { color: var(--muted); }
.ok { width: 28px; height: 28px; border-radius: 50%; background: var(--teal); color: #fff; display: grid; place-items: center; font-size: .9rem; flex: none; }
.shot-note { text-align: center; color: var(--muted); font-size: .8rem; margin: 10px 0 0; }

/* Trust strip */
.strip { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: #fff; }
.strip-in { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; padding-top: 26px; padding-bottom: 26px; }
.strip strong { display: block; color: var(--teal-dark); }
.strip span { color: var(--muted); font-size: .95rem; }

/* Sections */
.sec { padding: 68px 0; }
.sec.alt { background: var(--bg-alt); }
.sub { color: var(--muted); max-width: 42em; margin-bottom: 30px; font-size: 1.05rem; }
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.grid.four { grid-template-columns: repeat(4, 1fr); }
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; border-top: 4px solid var(--teal); }
.card.plain { border-top-width: 1px; background: var(--bg-alt); }
.card p { margin: 0; color: var(--muted); font-size: .98rem; }
.extra { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; margin-top: 44px; padding-top: 36px; border-top: 1px solid var(--line); }
.extra p { color: var(--muted); margin: 0; font-size: .98rem; }

.two { display: grid; grid-template-columns: 1fr 1.1fr; gap: 48px; align-items: start; }
.rules { list-style: none; margin: 0; padding: 0; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); }
.rules li { padding: 16px 20px 16px 52px; border-bottom: 1px solid var(--line); position: relative; }
.rules li:last-child { border-bottom: 0; }
.rules li::before { content: "\20B9"; position: absolute; left: 16px; top: 16px; width: 24px; height: 24px; border-radius: 50%; background: var(--teal-soft); color: var(--teal-dark); font-weight: 700; font-size: .85rem; display: grid; place-items: center; }
.rules strong { display: block; }
.rules span { color: var(--muted); font-size: .96rem; }

.steps { list-style: none; counter-reset: s; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.steps li { counter-increment: s; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.steps li::before { content: counter(s); display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--teal); color: #fff; font-weight: 700; margin-bottom: 12px; }
.steps strong { display: block; margin-bottom: 4px; }
.steps span { color: var(--muted); font-size: .96rem; }

/* FAQ */
details { border: 1px solid var(--line); border-radius: 12px; padding: 0 18px; margin-bottom: 10px; background: #fff; }
summary { cursor: pointer; font-weight: 600; padding: 15px 0; list-style-position: outside; }
details[open] summary { color: var(--teal-dark); }
details p { color: var(--muted); margin: 0 0 16px; }

/* Demo form */
.demo { background: var(--teal-dark); color: #fff; }
.demo h2 { color: #fff; }
.demo .sub { color: #cfe5df; }
.contact { list-style: none; padding: 0; margin: 0; }
.contact li { margin-bottom: 10px; }
.contact span { display: inline-block; min-width: 92px; color: #cfe5df; }
.contact a { color: #fff; font-weight: 600; }
.formbox { background: #fff; color: var(--ink); border-radius: 16px; padding: 26px; box-shadow: var(--shadow); }
label { display: block; font-weight: 600; font-size: .95rem; margin: 14px 0 5px; }
label small { font-weight: 400; color: var(--muted); }
form > label:first-of-type { margin-top: 0; }
input[type=text], input[type=tel], input[type=email], textarea {
  width: 100%; font: inherit; color: var(--ink); background: #fff;
  border: 1px solid #b9c8c2; border-radius: 9px; padding: 11px 12px;
}
input:focus, textarea:focus { border-color: var(--teal); outline: 3px solid rgba(15, 107, 94, .2); outline-offset: 0; }
textarea { resize: vertical; }
.row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
form .btn { width: 100%; margin-top: 20px; }
.fine { color: var(--muted); font-size: .85rem; margin: 12px 0 0; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.note { border-radius: 10px; padding: 14px 16px; margin-bottom: 8px; }
.note p { margin: 4px 0 0; }
.note.good { background: var(--teal-soft); color: var(--teal-dark); }
.note.bad { background: #fbe9e7; color: var(--bad); font-weight: 600; margin-bottom: 16px; }

/* Footer */
.foot { background: #0c2520; color: #b9cdc7; padding: 36px 0 20px; font-size: .95rem; }
.foot .brand { color: #fff; font-size: 1.1rem; }
.foot .brand b { color: #7fd1c1; }
.foot p { margin: 10px 0 0; }
.foot-in { display: flex; justify-content: space-between; gap: 28px; flex-wrap: wrap; }
.foot nav { display: flex; flex-wrap: wrap; gap: 8px 22px; align-items: flex-start; }
.foot nav a { color: #b9cdc7; text-decoration: none; }
.foot nav a:hover { color: #fff; }
.copy { margin-top: 26px; padding-top: 16px; border-top: 1px solid rgba(255, 255, 255, .12); font-size: .85rem; }

/* Privacy page */
.prose h1 { font-size: 2rem; }
.prose h2 { font-size: 1.2rem; margin-top: 1.6em; }
.prose p { color: var(--muted); }

/* Tablet */
@media (max-width: 960px) {
  .hero-in, .two { grid-template-columns: 1fr; gap: 36px; }
  .grid, .extra { grid-template-columns: repeat(2, 1fr); }
  .grid.four, .steps { grid-template-columns: repeat(2, 1fr); }
  .menu-btn { display: block; }
  .nav { display: none; position: absolute; left: 0; right: 0; top: 100%; background: #fff; border-bottom: 1px solid var(--line); flex-direction: column; align-items: stretch; gap: 0; padding: 8px 20px 18px; box-shadow: var(--shadow); }
  .nav.open, .nav.open-always { display: flex; }
  .nav.open-always { position: static; border: 0; box-shadow: none; padding: 0; }
  .nav a:not(.btn) { padding: 12px 0; border-bottom: 1px solid var(--line); font-size: 1rem; }
  .nav .btn { margin-top: 14px; }
  .nav.open-always .btn { margin-top: 0; }
}

/* Phone */
@media (max-width: 620px) {
  body { font-size: 16px; }
  .hero { padding: 36px 0 28px; }
  .sec { padding: 48px 0; }
  .grid, .grid.four, .extra, .steps, .strip-in, .row { grid-template-columns: 1fr; }
  .strip-in { gap: 16px; }
  .acts .btn { width: 100%; }
  .formbox { padding: 20px; }
}

@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
