/* =========================================================
   ABOUT PAGE
   Concept: the udhaar diary. Ruled ledger paper, a red
   margin line, handwriting only where a person would write.
   Everything else stays quiet and readable.
========================================================= */

.ab {
  --ink: #0b1b4d;
  --blue: #0440d4;
  --green: #20ad39;
  --green-deep: #167a29;
  --paper: #fbfcff;
  --rule: #d3deff;
  --margin: #e5484d;
  --pen: #1f3fbf;
  --muted: #4a5578;
  --soft: #f3f6ff;
  font-family: 'Poppins', sans-serif;
  color: var(--ink);
  background: var(--paper);
  overflow-x: hidden;
}

.ab h1, .ab h2, .ab h3, .ab p { margin: 0; }
.ab h1, .ab h2, .ab h3 { text-wrap: balance; }
.ab p { color: var(--muted); font-size: 1.02rem; line-height: 1.85; }
.ab img { display: block; max-width: 100%; height: auto; }
.ab a { text-decoration: none; }
.ab p a { color: var(--blue); text-decoration: underline; text-underline-offset: 3px; }
.ab p a:hover { color: #032a8c; }

.hand {
  font-family: 'Kalam', 'Segoe Print', 'Bradley Hand', cursive;
  font-weight: 400;
  color: var(--pen);
}

.ab-wrap { max-width: 1120px; margin: 0 auto; }
.ab-section { padding: clamp(64px, 9vw, 110px) 6%; }

.ab h2 {
  font-size: clamp(1.75rem, 3.6vw, 2.6rem);
  font-weight: 800;
  line-height: 1.18;
  letter-spacing: -0.02em;
  color: var(--ink);
}

/* ---------- buttons ---------- */
.ab-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 15px 26px; border-radius: 12px;
  font-family: inherit; font-weight: 600; font-size: .98rem;
  border: 2px solid transparent; cursor: pointer;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
}
.ab-btn:hover { transform: translateY(-2px); }
.ab-btn:focus-visible { outline: 3px solid #86a6ff; outline-offset: 3px; }
.ab-btn.primary { background: var(--blue); color: #fff; box-shadow: 0 8px 24px rgba(4, 64, 212, .28); }
.ab-btn.primary:hover { box-shadow: 0 12px 30px rgba(4, 64, 212, .36); }
.ab-btn.ghost { background: transparent; color: var(--ink); border-color: var(--ink); }
.ab-btn.ghost:hover { background: var(--ink); color: #fff; }
.ab-btn.whatsapp { background: var(--green); color: #fff; box-shadow: 0 8px 24px rgba(32, 173, 57, .28); }

/* =========================================================
   HERO — a ledger page
========================================================= */
.ab-hero {
  position: relative;
  padding: 150px 6% clamp(64px, 9vw, 100px);
  background-color: var(--paper);
  background-image: repeating-linear-gradient(
    to bottom, transparent 0, transparent 43px, var(--rule) 43px, var(--rule) 44px);
  background-position: 0 6px;
  border-bottom: 1px solid var(--rule);
}
.ab-hero::before {                 /* red margin line, like real ledger paper */
  content: ""; position: absolute; top: 0; bottom: 0; left: max(3.4vw, 20px);
  width: 2px; background: var(--margin); opacity: .55;
}
.ab-hero-grid {
  display: grid; grid-template-columns: 1.08fr .92fr; gap: clamp(36px, 6vw, 84px); align-items: center;
}
.ab-hero h1 {
  font-size: clamp(2.3rem, 5.2vw, 4rem);
  font-weight: 800; line-height: 1.1; letter-spacing: -0.03em; color: var(--ink);
}
.ab-hero .lead { margin-top: 22px; max-width: 34em; font-size: 1.12rem; color: #33406a; }
.ab-hero .actions { margin-top: 32px; display: flex; flex-wrap: wrap; gap: 14px; }

/* the diary page */
.ab-diary-wrap { position: relative; filter: drop-shadow(0 22px 34px rgba(11, 27, 77, .18)); transform: rotate(2.2deg); }
.ab-diary {
  position: relative;
  background: #fff;
  padding: 44px 30px 64px 46px;
  background-image:
    linear-gradient(to right, transparent 34px, var(--margin) 34px, var(--margin) 36px, transparent 36px),
    repeating-linear-gradient(to bottom, transparent 0, transparent 47px, #dbe4ff 47px, #dbe4ff 48px);
  background-position: 0 0, 0 40px;
  clip-path: polygon(0 0, 100% 0, 100% 95%, 96% 98%, 92% 95%, 88% 99%, 83% 96%, 78% 99%, 72% 95%, 66% 98%,
                     60% 95%, 54% 99%, 48% 96%, 42% 99%, 36% 95%, 30% 98%, 24% 95%, 18% 99%, 12% 96%, 6% 99%, 0 96%);
}
.ab-diary::before {                /* binding holes */
  content: ""; position: absolute; top: 12px; left: 46px; right: 30px; height: 10px;
  background: radial-gradient(circle, #cfd8f5 3px, transparent 3.5px) 0 0 / 34px 10px repeat-x;
}
.ab-diary-title { font-size: 1.5rem; line-height: 48px; color: var(--ink); font-weight: 700; margin-bottom: -2px; }
.ab-entry {
  display: flex; align-items: baseline; justify-content: space-between; gap: 14px;
  height: 48px; line-height: 48px; font-size: 1.32rem; white-space: nowrap;
}
.ab-entry .name { overflow: hidden; text-overflow: ellipsis; }
.ab-entry .amt { font-weight: 700; flex-shrink: 0; }
.ab-entry.struck .name, .ab-entry.struck .amt { text-decoration: line-through; text-decoration-color: var(--margin); text-decoration-thickness: 2px; color: #7c89b8; }
.ab-entry.struck .paid { color: var(--green-deep); font-weight: 700; margin-left: 6px; text-decoration: none; display: inline-block; }
.ab-entry .unsure { color: var(--margin); font-weight: 700; margin-left: 6px; }
.ab-entry.gap { color: #9aa7d3; font-style: italic; justify-content: flex-start; }

.ab-stamp {
  position: absolute; right: 8px; bottom: 34px;
  padding: 8px 18px 6px; border: 3px double var(--green-deep); border-radius: 8px;
  color: var(--green-deep); font-weight: 800; font-size: 1.15rem; letter-spacing: .06em; text-transform: uppercase;
  transform: rotate(-9deg); opacity: .92; background: rgba(255, 255, 255, .55);
  font-family: 'Poppins', sans-serif; line-height: 1.2; text-align: center;
}
.ab-stamp small { display: block; font-size: .62rem; letter-spacing: .14em; font-weight: 600; }

/* the one orchestrated moment: entries are written, then the stamp lands */
@media (prefers-reduced-motion: no-preference) {
  .ab-diary-title, .ab-entry { animation: abWrite .8s cubic-bezier(.3, .6, .3, 1) both; }
  .ab-diary-title { animation-delay: .25s; }
  .ab-entry { animation-delay: var(--d, .75s); }
  .ab-stamp { animation: abStamp .55s cubic-bezier(.2, 1.4, .4, 1) 3.1s both; }
}
@keyframes abWrite { from { clip-path: inset(0 100% 0 0); opacity: .2; } to { clip-path: inset(0 0 0 0); opacity: 1; } }
@keyframes abStamp {
  0%   { opacity: 0; transform: rotate(-24deg) scale(2.4); }
  70%  { opacity: .95; transform: rotate(-7deg) scale(.96); }
  100% { opacity: .92; transform: rotate(-9deg) scale(1); }
}

/* =========================================================
   STORY
========================================================= */
.ab-story-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(36px, 6vw, 80px); align-items: start; }
.ab-photo { position: relative; margin: 0; align-self: start; position: sticky; top: 110px; }
.ab-photo img {
  border-radius: 6px; width: 100%;
  box-shadow: 0 18px 40px rgba(11, 27, 77, .18);
  border: 10px solid #fff; outline: 1px solid var(--rule);
}
.ab-photo::before {               /* tape */
  content: ""; position: absolute; top: -14px; left: 50%; width: 110px; height: 30px; transform: translateX(-50%) rotate(-3deg);
  background: rgba(255, 224, 130, .75); box-shadow: 0 2px 6px rgba(0, 0, 0, .12); z-index: 2;
}
.ab-photo figcaption { margin-top: 16px; font-size: 1.3rem; line-height: 1.3; padding-left: 4px; }
.ab-story-text h2 { margin-bottom: 26px; }
.ab-story-text p + p { margin-top: 18px; }
.ab-story-text p strong { color: var(--ink); font-weight: 600; }
.ab .ab-quote {
  margin: 34px 0 0; padding: 4px 0 4px 24px; border-left: 3px solid var(--margin);
  font-size: clamp(1.45rem, 2.6vw, 1.9rem); line-height: 1.4; color: var(--pen);
}

/* =========================================================
   BELIEFS — laid out like an accounts ledger
========================================================= */
.ab-beliefs { background: var(--soft); border-block: 1px solid var(--rule); }
.ab-beliefs .intro { max-width: 40em; margin: 18px 0 44px; }
.ab-ledger { background: #fff; border: 1px solid var(--rule); border-radius: 4px; box-shadow: 0 14px 34px rgba(11, 27, 77, .08); }
.ab-ledger-head, .ab-ledger-row { display: grid; grid-template-columns: 1fr 1.15fr; }
.ab-ledger-head { border-bottom: 4px double var(--ink); }
.ab-ledger-head div { padding: 16px 28px; font-weight: 700; font-size: 1.05rem; }
.ab-ledger-head div:first-child, .ab-ledger-row > :first-child { border-right: 2px solid var(--margin); }
.ab-ledger-row { border-bottom: 1px solid var(--rule); }
.ab-ledger-row:last-child { border-bottom: 0; }
.ab-ledger-row h3 { padding: 26px 28px; font-size: 1.14rem; font-weight: 700; line-height: 1.45; color: var(--ink); }
.ab-ledger-row p { padding: 26px 28px; font-size: .98rem; line-height: 1.75; }

/* =========================================================
   A DAY WITH HISAABSAHI — a real sequence
========================================================= */
.ab-day-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(36px, 6vw, 84px); align-items: start; }
.ab-day h2 { margin-bottom: 14px; }
.ab-day .sub { margin-bottom: 40px; }
.ab-timeline { list-style: none; margin: 0; padding: 0; position: relative; }
.ab-timeline::before { content: ""; position: absolute; left: 11px; top: 10px; bottom: 10px; width: 2px; background: var(--rule); }
.ab-timeline li { position: relative; padding: 0 0 34px 46px; }
.ab-timeline li:last-child { padding-bottom: 0; }
.ab-timeline li::before {
  content: ""; position: absolute; left: 2px; top: 8px; width: 20px; height: 20px; border-radius: 50%;
  background: #fff; border: 4px solid var(--blue);
}
.ab-timeline li:last-child::before { border-color: var(--green); }
.ab-timeline .when { font-size: 1.55rem; line-height: 1.2; display: block; margin-bottom: 4px; }
.ab-timeline p { font-size: 1rem; }
.ab-day-photo { position: sticky; top: 110px; }
.ab-day-photo img { border-radius: 16px; box-shadow: 0 22px 48px rgba(11, 27, 77, .2); width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: 55% 50%; }
.ab-day-photo figcaption { margin-top: 12px; font-size: 1.2rem; }

/* =========================================================
   WHO IT'S FOR
========================================================= */
.ab-for { background: var(--ink); color: #fff; padding-bottom: 0; }
.ab-for h2 { color: #fff; max-width: 17em; }
.ab-for .shops { display: flex; flex-wrap: wrap; gap: 14px 34px; margin: 36px 0 30px; padding: 0; list-style: none; }
.ab-for .shops li { display: flex; align-items: center; gap: 12px; font-size: 1.18rem; font-weight: 600; }
.ab-for .shops i {
  width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center;
  background: rgba(255, 255, 255, .1); color: #8fb0ff; font-size: 1.1rem;
}
.ab-for p { color: #c2cdf2; max-width: 36em; }
.ab-for .strip { margin: 52px -6% 0; }
.ab-for .strip img { width: 100%; height: clamp(140px, 22vw, 260px); object-fit: cover; object-position: center 62%; }

/* =========================================================
   PEOPLE
========================================================= */
.ab-people-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(36px, 6vw, 80px); align-items: center; }
.ab-people h2 { margin-bottom: 22px; }
.ab-people p + p { margin-top: 16px; }
.ab-people p strong { color: var(--ink); font-weight: 600; }
.ab-honest {
  margin-top: 30px; padding: 22px 24px 22px 26px; background: #fff;
  border: 1px solid var(--rule); border-left: 4px solid var(--green); border-radius: 4px 14px 14px 4px;
}
.ab-honest h3 { font-size: 1.05rem; font-weight: 700; margin-bottom: 8px; }
.ab-honest p { font-size: .96rem; line-height: 1.75; }
.ab-people figure { margin: 0; }
.ab-people figure img { border-radius: 16px; box-shadow: 0 22px 48px rgba(11, 27, 77, .18); width: 100%; }
.ab-people figcaption { margin-top: 12px; font-size: 1.2rem; }

/* =========================================================
   CLOSING
========================================================= */
.ab-close {
  background: linear-gradient(135deg, #0a2fa0 0%, var(--blue) 60%, #0d55f0 100%);
  color: #fff; text-align: center; padding: clamp(64px, 9vw, 104px) 6%;
}
.ab-close img { margin: 0 auto 22px; }
.ab-close h2 { color: #fff; margin-bottom: 14px; }
.ab-close p { color: #dbe4ff; max-width: 32em; margin: 0 auto; }
.ab-close .actions { margin-top: 32px; display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; }
.ab-close .ab-btn.primary { background: #fff; color: var(--blue); box-shadow: 0 10px 28px rgba(0, 0, 0, .25); }
.ab-close .ab-btn:focus-visible { outline-color: #fff; }
.ab-close .contact-line { margin-top: 26px; font-size: .92rem; color: #b9c8f5; }
.ab-close .contact-line a { color: #fff; text-decoration: underline; text-underline-offset: 3px; }

/* =========================================================
   RESPONSIVE
========================================================= */
@media (max-width: 900px) {
  .ab-hero { padding-top: 120px; }
  .ab-hero-grid, .ab-story-grid, .ab-day-grid, .ab-people-grid { grid-template-columns: 1fr; }
  .ab-diary-wrap { max-width: 460px; margin: 10px auto 0; }
  .ab-photo { max-width: 520px; position: relative; top: 0; }
  .ab-day-photo { position: static; max-width: 520px; }
  .ab-day-photo img { aspect-ratio: 3 / 2; }
  .ab-ledger-head { display: none; }
  .ab-ledger-row { grid-template-columns: 1fr; }
  .ab-ledger-row > :first-child { border-right: 0; border-left: 4px solid var(--margin); padding-bottom: 6px; }
  .ab-ledger-row h3 { padding: 22px 22px 4px; }
  .ab-ledger-row p { padding: 0 22px 24px 26px; }
}
@media (max-width: 480px) {
  .ab-hero::before { left: 12px; }
  .ab-entry { font-size: 1.12rem; }
  .ab-diary { padding: 44px 18px 62px 40px; }
  .ab-stamp { font-size: .95rem; right: 0; }
  .ab-btn { width: 100%; }
}
