/* DailyDues website. Same colours and typeface as the app. */
@font-face { font-family: "Plus Jakarta Sans"; src: url("pjs-Regular.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Plus Jakarta Sans"; src: url("pjs-SemiBold.woff2") format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Plus Jakarta Sans"; src: url("pjs-Bold.woff2") format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Plus Jakarta Sans"; src: url("pjs-ExtraBold.woff2") format("woff2"); font-weight: 800; font-display: swap; }

:root {
  --ink: #14213d;
  --muted: #5b6475;
  --ground: #f4f6fa;
  --line: #e2e6ee;
  --blue: #2f5bea;
  --blue-deep: #1e3a8a;
  --tick: #12805c;
  --tick-soft: #e7f5ee;
  --miss: #c2410c;
  --miss-soft: #fff0e8;
  --half: #92400e;
  --half-soft: #fef3c7;
  --font: "Plus Jakarta Sans", "Noto Sans Gujarati", "Noto Sans Devanagari", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--font); color: var(--ink); background: #fff; font-size: 17px; line-height: 1.6; }
img { max-width: 100%; display: block; }
a { color: var(--blue); text-underline-offset: 3px; }
a:hover { color: var(--blue-deep); }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; border-radius: 6px; }

.wrap { width: min(1120px, 100% - 40px); margin-inline: auto; }
.narrow { width: min(720px, 100% - 40px); margin-inline: auto; }

/* Header */
.site-head { border-bottom: 1px solid var(--line); background: #fff; }
.site-head .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 68px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 800; font-size: 20px; color: var(--ink); text-decoration: none; letter-spacing: -0.02em; }
.brand img { width: 34px; height: 34px; border-radius: 9px; }
.site-head nav { display: flex; gap: 22px; font-size: 15px; font-weight: 600; }
.site-head nav a { color: var(--muted); text-decoration: none; }
.site-head nav a:hover { color: var(--ink); }

/* Buttons */
.btn { display: inline-flex; align-items: center; gap: 10px; min-height: 52px; padding: 0 22px; border-radius: 14px; font-weight: 700; font-size: 16px; text-decoration: none; background: var(--ink); color: #fff; }
.btn:hover { background: #0d1730; color: #fff; }
.btn svg { width: 22px; height: 22px; }
.btn small { display: block; font-size: 11px; font-weight: 600; opacity: .75; line-height: 1.1; }
.btn span { line-height: 1.2; }

/* Hero */
.hero { background: var(--ground); padding: 64px 0 72px; }
.hero .wrap { display: grid; grid-template-columns: 1.05fr 1fr; gap: 56px; align-items: center; }
.hero h1 { font-size: clamp(38px, 5.4vw, 64px); line-height: 1.04; letter-spacing: -0.035em; font-weight: 800; margin: 0 0 22px; max-width: 13ch; }
.hero .lede { font-size: 19px; color: #3a4459; max-width: 34em; margin: 0 0 28px; }
.hero .also { margin: 26px 0 0; padding: 16px 0 0; border-top: 1px solid var(--line); color: var(--muted); font-size: 15px; line-height: 1.7; }
.hero .also span { display: block; }
.hero .meta { margin: 14px 0 0; font-size: 14px; color: var(--muted); }

/* The register (hero picture) */
.register { margin: 0; background: #fff; border-radius: 26px; padding: 22px 22px 18px; box-shadow: 0 1px 0 var(--line), 0 24px 60px -28px rgba(20, 33, 61, .35); }
.register header { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.register .who { flex: 1; }
.register .who b { display: block; font-size: 17px; }
.register .who em { font-style: normal; color: var(--muted); font-size: 13px; }
.register .month { font-weight: 700; font-size: 14px; color: var(--muted); }
.svc-icon { width: 44px; height: 44px; border-radius: 13px; background: #eaf1ff; display: grid; place-items: center; color: var(--blue); }
.svc-icon svg { width: 24px; height: 24px; }
.grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; }
.grid .wd { font-size: 11px; font-weight: 700; color: var(--muted); text-align: center; padding-bottom: 2px; }
.day { aspect-ratio: 1 / 1; border-radius: 10px; background: var(--ground); display: grid; place-items: center; align-content: center; font-size: 13px; font-weight: 700; color: #6b7280; line-height: 1.05; }
.day i { font-style: normal; font-size: 10px; font-weight: 800; display: block; text-align: center; }
.day.c { background: var(--tick-soft); color: #0b5e43; }
.day.x { background: var(--miss-soft); color: #9a3412; box-shadow: inset 0 0 0 1.5px var(--miss); }
.day.e { background: var(--tick); color: #fff; }
.day.l { background: var(--half-soft); color: var(--half); }
.register footer { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-top: 16px; padding-top: 14px; border-top: 1px dashed var(--line); }
.register .sum { font-size: 14px; color: var(--muted); }
.register .total { font-size: 30px; font-weight: 800; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.register .send { margin-top: 12px; display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; border-radius: 12px; background: #1e8e4e; color: #fff; font-weight: 700; font-size: 14px; }

/* The one moment of motion: ticks fill in, then the total appears. */
@media (prefers-reduced-motion: no-preference) {
  .js .grid .day.c, .js .grid .day.x, .js .grid .day.e, .js .grid .day.l { animation: stamp .28s ease-out both; animation-delay: calc(var(--n) * 38ms + 300ms); }
  .js .register footer, .js .register .send { animation: rise .45s ease-out both; animation-delay: 1.65s; }
}
@keyframes stamp { from { background: var(--ground); color: #6b7280; box-shadow: none; transform: scale(.86); } }
@keyframes rise { from { opacity: 0; transform: translateY(6px); } }

/* Sections */
section { padding: 88px 0; }
section h2 { font-size: clamp(30px, 3.6vw, 42px); line-height: 1.1; letter-spacing: -0.03em; margin: 0 0 14px; font-weight: 800; }
section .intro { color: var(--muted); font-size: 18px; max-width: 38em; margin: 0 0 44px; }

/* Steps: a real sequence, so numbered */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; counter-reset: step; }
.steps li { counter-increment: step; position: relative; padding-top: 58px; }
.steps li::before { content: counter(step); position: absolute; top: 0; left: 0; width: 42px; height: 42px; border-radius: 50%; background: var(--blue); color: #fff; font-weight: 800; display: grid; place-items: center; font-size: 18px; }
.steps h3 { margin: 0 0 8px; font-size: 21px; letter-spacing: -0.01em; }
.steps p { margin: 0; color: #3a4459; }

/* Billing: a ledger, one row per way of paying */
.ledger { border-top: 2px solid var(--ink); }
.ledger .row { display: grid; grid-template-columns: 1.1fr 1.3fr 1fr; gap: 24px; padding: 24px 0; border-bottom: 1px solid var(--line); align-items: baseline; }
.ledger h3 { margin: 0; font-size: 20px; }
.ledger .who { display: block; color: var(--muted); font-size: 15px; font-weight: 600; margin-top: 2px; }
.ledger p { margin: 0; color: #3a4459; }
.ledger .calc { font-weight: 700; font-variant-numeric: tabular-nums; text-align: right; font-size: 18px; }

/* Real-life cases */
.cases { background: var(--ground); }
.case-list { display: grid; grid-template-columns: 1fr 1fr; gap: 18px 56px; margin: 0; }
.case-list div { padding: 22px 0; border-top: 1px solid var(--line); }
.case-list dt { font-weight: 800; font-size: 19px; margin-bottom: 6px; }
.case-list dd { margin: 0; color: #3a4459; }

/* Privacy band */
.private .wrap { display: grid; grid-template-columns: 1fr 1.2fr; gap: 56px; align-items: start; }
.private ul { margin: 0; padding: 0; list-style: none; }
.private li { padding: 14px 0 14px 34px; border-bottom: 1px solid var(--line); position: relative; }
.private li::before { content: ""; position: absolute; left: 0; top: 19px; width: 20px; height: 20px; border-radius: 50%; background: var(--tick) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / 13px no-repeat; }

/* FAQ */
.faq details { border-bottom: 1px solid var(--line); padding: 4px 0; }
.faq summary { cursor: pointer; list-style: none; font-weight: 700; font-size: 18px; padding: 18px 36px 18px 0; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 4px; top: 14px; font-size: 26px; font-weight: 400; color: var(--muted); }
.faq details[open] summary::after { content: "−"; }
.faq details p { margin: 0 0 20px; color: #3a4459; max-width: 42em; }

/* Closing call to action */
.get { background: var(--blue); color: #fff; text-align: left; }
.get .wrap { display: flex; justify-content: space-between; align-items: center; gap: 32px; flex-wrap: wrap; }
.get h2 { color: #fff; margin: 0; max-width: 18ch; }
.get .btn { background: #fff; color: var(--ink); }
.get .btn:hover { background: #eaf1ff; color: var(--ink); }

/* Footer */
.site-foot { background: var(--ink); color: #c9d0dd; padding: 48px 0 40px; font-size: 15px; }
.site-foot .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 28px; }
.site-foot a { color: #fff; text-decoration: none; }
.site-foot a:hover { text-decoration: underline; }
.site-foot .links { display: flex; gap: 22px; flex-wrap: wrap; }
.site-foot p { margin: 6px 0 0; }

/* Policy pages */
.doc { padding: 56px 0 88px; }
.doc h1 { font-size: clamp(34px, 4.5vw, 48px); letter-spacing: -0.03em; line-height: 1.1; margin: 0 0 8px; }
.doc .eff { color: var(--muted); margin: 0 0 32px; }
.doc .summary { background: var(--ground); border-radius: 18px; padding: 20px 24px; margin-bottom: 36px; }
.doc .summary ul { margin: 8px 0 0; padding-left: 20px; }
.doc h2 { font-size: 23px; margin: 40px 0 10px; letter-spacing: -0.01em; }
.doc h3 { font-size: 18px; margin: 24px 0 6px; }
.doc p, .doc li { color: #2b3549; }
.doc li { margin-bottom: 6px; }
.doc table { width: 100%; border-collapse: collapse; margin: 12px 0 8px; font-size: 15px; }
.doc th, .doc td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
.doc th { background: var(--ground); }

@media (max-width: 900px) {
  .hero .wrap, .private .wrap { grid-template-columns: 1fr; gap: 40px; }
  .steps { grid-template-columns: 1fr; gap: 28px; }
  .case-list { grid-template-columns: 1fr; gap: 0; }
  .ledger .row { grid-template-columns: 1fr; gap: 6px; }
  .ledger .calc { text-align: left; }
  section { padding: 64px 0; }
  .site-head nav { display: none; }
}
@media (max-width: 420px) {
  body { font-size: 16px; }
  .register { padding: 16px 14px 14px; border-radius: 20px; }
  .grid { gap: 4px; }
  .day { border-radius: 8px; font-size: 12px; }
  .day i { font-size: 9px; }
}
