/* Tawakkul Growth landing page: editorial layout. (styles.css is the previous layout, still used by thank-you.html and v1.html.) */
:root {
  --bg: #0b1f1a;
  --bg-2: #10291f;
  --bg-3: #07150f;
  --text: #eef3ef;
  --muted: #a9bdb2;
  --gold: #d4af37;
  --gold-2: #e8c75a;
  --paper: #f4ecdc;
  --ink: #1d2a24;
  --ink-muted: #56645c;
  --line: rgba(212, 175, 55, 0.22);
  --serif: 'Fraunces', Georgia, serif;
  --sans: 'Inter', system-ui, sans-serif;
  --mono: 'IBM Plex Mono', ui-monospace, monospace;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font-family: var(--sans); font-size: 17px; line-height: 1.65;
  -webkit-font-smoothing: antialiased; padding-bottom: 84px;
}
img { max-width: 100%; }
a { color: var(--gold); }
p { margin: 0 0 1em; }
h1, h2, h3 { font-family: var(--serif); font-weight: 600; line-height: 1.08; margin: 0; letter-spacing: -0.01em; }

.wrap { width: 100%; max-width: 1240px; margin: 0 auto; padding: 0 20px; }
.rule { border: 0; border-top: 1px solid var(--line); margin: 0; }
.mono { font-family: var(--mono); text-transform: uppercase; letter-spacing: 0.08em; font-size: 0.8rem; }
.label { font-family: var(--mono); text-transform: uppercase; letter-spacing: 0.08em; font-size: 0.82rem; color: var(--gold); }

.btn {
  display: inline-block; padding: 15px 26px; background: var(--gold); color: #1a1405;
  font-family: var(--mono); text-transform: uppercase; letter-spacing: 0.08em; font-size: 0.85rem; font-weight: 600;
  text-decoration: none; border: 0; cursor: pointer; transition: background .15s ease, transform .15s ease;
}
.btn:hover { background: var(--gold-2); transform: translateY(-1px); }
.btn.ghost { background: transparent; color: var(--gold); border: 1px solid var(--gold); }
.btn.ghost:hover { background: rgba(212, 175, 55, .12); }
.link-arrow { font-family: var(--mono); text-transform: uppercase; letter-spacing: 0.08em; font-size: 0.82rem; color: var(--text); text-decoration: none; }
.link-arrow:hover { color: var(--gold); }

/* Hand-drawn annotations */
/* The marks sit behind the words (z-index -1 inside the isolated .mark), so a stroke never covers a letter. */
.mark { position: relative; display: inline-block; white-space: nowrap; isolation: isolate; }
.mark svg { position: absolute; z-index: -1; pointer-events: none; overflow: visible; }
.mark path { fill: none; stroke: var(--gold); stroke-width: 2; stroke-linecap: round; }
.mark.circle svg { left: -8%; top: -22%; width: 116%; height: 146%; }
.mark.under svg { left: -2%; bottom: -0.18em; width: 104%; height: 0.35em; }
.js .mark path { stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset 1.1s ease .35s; }
.js .is-in .mark path, .js .mark.is-in path { stroke-dashoffset: 0; }

/* Polaroids */
.polaroid {
  position: relative; background: #fbf7ef; padding: 10px 10px 34px; box-shadow: 0 18px 40px rgba(0, 0, 0, .45);
  transform: rotate(var(--r, 0deg)); transition: transform .5s cubic-bezier(.2, .7, .2, 1), box-shadow .5s;
}
/* Hover (or tap) lifts a photo, straightens it and brings it to the front. */
.polaroid:hover { transform: translateY(-10px) rotate(0deg) scale(1.04); box-shadow: 0 30px 60px rgba(0, 0, 0, .55); z-index: 10; }
.polaroid img { display: block; width: 100%; height: 100%; object-fit: cover; }
.polaroid::before {
  content: ''; position: absolute; top: -12px; left: 50%; width: 42%; height: 24px; transform: translateX(-50%) rotate(-2deg);
  background: rgba(244, 236, 220, .55); box-shadow: 0 1px 2px rgba(0, 0, 0, .15);
}
.polaroid figcaption { position: absolute; left: 12px; right: 12px; bottom: 8px; font-family: var(--mono); font-size: 0.68rem; color: var(--ink-muted); text-transform: uppercase; letter-spacing: .06em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* Scroll reveal (only when JS runs) */
.js .rv { opacity: 0; transform: translateY(18px); transition: opacity .8s ease, transform .8s ease; }
.js .rv.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .polaroid, .js .collage .polaroid { transition: none; animation: none; }
  .js .rv { opacity: 1; transform: none; transition: none; }
  .js .mark path { stroke-dashoffset: 0; transition: none; }
  html { scroll-behavior: auto; }
}

/* Header */
.head { position: sticky; top: 0; z-index: 10; background: rgba(11, 31, 26, .92); backdrop-filter: blur(10px); }
.head-inner { display: flex; align-items: center; justify-content: space-between; height: 64px; border-bottom: 1px solid var(--line); }
.logo { display: inline-flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; font-family: var(--serif); font-weight: 700; font-size: 1.05rem; letter-spacing: .04em; text-transform: uppercase; }
.logo img { width: 34px; height: auto; }
.head .btn { padding: 10px 16px; font-size: 0.75rem; }
.logo, .head .btn { white-space: nowrap; }
@media (max-width: 420px) { .logo { font-size: .9rem; letter-spacing: .02em; } .logo img { width: 28px; } }

/* 1. Hero */
.hero { padding-block: 56px 72px; display: grid; gap: 48px; align-items: center; }
.hero .label { margin-bottom: 22px; display: block; }
.hero h1 { font-size: clamp(2.4rem, 6vw, 4.4rem); line-height: 1.02; }
.hero h1 .soft { color: var(--muted); }
.hero .lead { color: var(--muted); font-size: 1.15rem; max-width: 520px; margin: 28px 0 32px; }
.hero .micro { color: var(--muted); font-size: 0.88rem; margin-top: 14px; }
.collage { position: relative; height: 420px; max-width: 520px; width: 100%; margin: 0 auto; }
.collage .polaroid { position: absolute; }
.collage .p1 { width: 48%; height: 62%; left: 0; top: 6%; --r: -4deg; }
.collage .p2 { width: 56%; height: 74%; right: 0; top: 0; --r: 3deg; z-index: 2; }
.collage .p3 { width: 44%; height: 44%; left: 22%; bottom: 0; --r: -1.5deg; z-index: 3; }
.collage .polaroid:hover { z-index: 10; }
/* Photos drop onto the table one after another when the page loads. */
@keyframes drop { from { opacity: 0; transform: translateY(-30px) rotate(-6deg) scale(1.05); } }
.js .collage .polaroid { animation: drop 1s cubic-bezier(.2, .8, .2, 1.05) backwards; }
.js .collage .p2 { animation-delay: .2s; }
.js .collage .p3 { animation-delay: .4s; }
@media (min-width: 900px) {
  .hero { grid-template-columns: 1.2fr 1fr; padding-block: 96px 120px; }
  .collage { height: 560px; }
}

/* 2. Important terms */
.terms { padding-block: 48px 64px; display: grid; gap: 28px; }
.terms h2 { font-size: 2rem; color: var(--gold); font-weight: 500; }
.term { border-top: 1px solid var(--line); padding-top: 18px; }
.term .mono { color: var(--text); display: block; margin-bottom: 10px; }
.term p { font-family: var(--mono); font-size: 0.86rem; color: var(--muted); margin: 0; line-height: 1.7; }
@media (min-width: 900px) { .terms { grid-template-columns: 1fr 1.25fr 1.25fr 1.25fr; gap: 36px; } }

/* Split layout: big sticky heading left, content right */
.split { padding-block: 88px; display: grid; gap: 40px; }
.split > .side h2 { font-size: clamp(2.6rem, 6vw, 4.6rem); }
@media (min-width: 900px) {
  .split { grid-template-columns: 5fr 7fr; gap: 64px; padding-block: 120px; }
  .split > .side { position: sticky; top: 110px; align-self: start; }
}

/* 3. Fit */
.rows { display: grid; gap: 40px; }
.row { display: grid; gap: 14px; }
.row .label { padding-top: 3px; }
.row ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; color: var(--muted); }
.row li { padding-left: 18px; position: relative; }
.row li::before { content: '◇'; position: absolute; left: 0; top: 0; color: var(--gold); font-size: .8rem; }
@media (min-width: 640px) { .row { grid-template-columns: 180px 1fr; gap: 28px; } }
.aside-line { font-family: var(--serif); font-size: clamp(1.35rem, 2.6vw, 1.75rem); line-height: 1.35; margin: 56px 0 0; }

.disclaimer { margin: 0 0 120px; background: var(--bg-2); border: 1px solid var(--line); padding: 36px 24px; display: grid; gap: 36px; align-items: center; }
.disclaimer h3 { font-size: 1.7rem; color: var(--gold); font-weight: 500; margin-bottom: 26px; }
.disclaimer .big { font-family: var(--serif); font-size: clamp(1.3rem, 2.4vw, 1.6rem); line-height: 1.4; }
.disclaimer ul { list-style: none; padding: 0; margin: 22px 0 0; display: grid; gap: 10px; color: var(--muted); }
.disclaimer li::before { content: '✕  '; color: #e8907f; }
.disclaimer .polaroid { width: 240px; height: 260px; margin: 0 auto; --r: 3deg; }
@media (min-width: 900px) { .disclaimer { grid-template-columns: 1.5fr 1fr; padding: 56px; } }

/* 4. Problem */
.problem { padding-block: 0 120px; display: grid; gap: 48px; }
.problem .polaroid { width: 250px; height: 310px; --r: -3deg; margin: 0 auto; }
.problem h2 { font-size: clamp(2.2rem, 5vw, 3.6rem); margin-bottom: 26px; }
.problem .prose { max-width: 620px; color: var(--muted); }
.problem .prose strong { color: var(--text); font-weight: 600; }
.nod { list-style: none; padding: 0; margin: 0 0 32px; display: grid; gap: 10px; }
.nod li { border-left: 2px solid var(--gold); padding: 4px 0 4px 16px; color: var(--text); }
.os { display: grid; grid-template-columns: 1fr 1fr; border: 1px solid var(--line); margin: 30px 0; }
.os div { padding: 18px; }
.os div + div { border-left: 1px solid var(--line); }
.os .mono { color: var(--muted); display: block; font-size: .72rem; }
.os strong { font-family: var(--serif); font-size: 1.5rem; color: var(--gold); font-weight: 600; }
.ayah { margin: 34px 0 0; padding: 0 0 0 20px; border-left: 2px solid var(--gold); }
.ayah p { font-family: var(--serif); font-size: 1.35rem; color: var(--text); margin-bottom: 8px; }
.ayah cite { font-family: var(--mono); font-size: .75rem; font-style: normal; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; }
@media (min-width: 900px) { .problem { grid-template-columns: 5fr 7fr; gap: 64px; } .problem .polaroid { margin: 40px 0 0 15%; } }

/* 5. Method phases */
.method-intro { padding-block: 0 64px; display: grid; }
.method-intro p { font-family: var(--serif); font-size: clamp(1.3rem, 2.4vw, 1.65rem); line-height: 1.4; max-width: 760px; }
@media (min-width: 900px) { .method-intro { grid-template-columns: 5fr 7fr; gap: 64px; } .method-intro p { grid-column: 2; } }
.phase { padding-block: 64px; display: grid; gap: 24px; }
.phase .num { font-family: var(--mono); color: var(--gold); font-size: 1.3rem; display: block; margin-bottom: 10px; }
.phase h3 { font-size: clamp(3rem, 7vw, 5.2rem); }
.phase .pull { font-family: var(--serif); font-size: clamp(1.35rem, 2.6vw, 1.85rem); line-height: 1.35; margin-bottom: 24px; }
.phase .body { color: var(--muted); max-width: 620px; }
.phase .body ul { padding-left: 0; list-style: none; display: grid; gap: 10px; }
.phase .body li strong { color: var(--text); }
@media (min-width: 900px) { .phase { grid-template-columns: 5fr 7fr; gap: 64px; } }

/* 6. Ledger: gain vs reduce */
.ledger { padding-block: 100px; display: grid; gap: 40px; }
.ledger h2 { font-size: clamp(2.2rem, 5vw, 3.4rem); }
.ledger table { width: 100%; border-collapse: collapse; }
.ledger th { text-align: left; font-family: var(--mono); font-weight: 500; text-transform: uppercase; letter-spacing: .08em; font-size: .78rem; color: var(--gold); padding: 0 12px 14px 0; border-bottom: 1px solid var(--gold); }
.ledger td { padding: 14px 12px 14px 0; border-bottom: 1px solid var(--line); vertical-align: top; width: 50%; }
.ledger td:last-child { color: var(--muted); }
@media (min-width: 900px) { .ledger { grid-template-columns: 5fr 7fr; gap: 64px; } }

/* 7. Case study (dark band) */
.case { background: var(--bg-3); padding: 100px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.case .label { display: block; margin-bottom: 18px; }
.case h2 { font-size: clamp(2.6rem, 7vw, 5rem); }
.case .intro { color: var(--muted); max-width: 760px; margin: 26px 0 0; font-size: 1.08rem; }
.stats { list-style: none; padding: 0; margin: 64px 0; display: grid; grid-template-columns: 1fr; }
.stats li { padding: 22px 0; border-top: 1px solid var(--line); }
.stats strong { display: block; font-family: var(--mono); font-weight: 500; font-size: clamp(3.4rem, 9vw, 5.6rem); line-height: 1; color: var(--gold); letter-spacing: -0.03em; }
.stats span { display: block; margin-top: 14px; color: var(--muted); max-width: 260px; }
@media (min-width: 760px) {
  .stats { grid-template-columns: repeat(4, 1fr); }
  .stats li { border-top: 0; padding: 0 24px; border-left: 1px solid var(--line); }
  .stats li:first-child { border-left: 0; padding-left: 0; }
}
.case-cols { display: grid; gap: 48px; }
.case-cols h3 { font-size: 1.8rem; margin-bottom: 16px; }
.case-cols p { color: var(--muted); }
.built { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; color: var(--muted); }
.built strong { color: var(--text); }
.built li { padding-left: 18px; position: relative; }
.built li::before { content: '◇'; position: absolute; left: 0; color: var(--gold); font-size: .8rem; top: 2px; }
@media (min-width: 900px) { .case-cols { grid-template-columns: 1fr 1fr; gap: 64px; } }
.strip { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; margin: 64px 0 48px; }
.strip .polaroid { aspect-ratio: 4 / 5; }
.strip .polaroid:nth-child(odd) { --r: -1.5deg; }
.strip .polaroid:nth-child(even) { --r: 1.5deg; }
@media (min-width: 900px) { .strip { grid-template-columns: repeat(4, 1fr); } }
.case-cta { display: flex; flex-wrap: wrap; gap: 18px 32px; align-items: center; }

/* 8. About */
.about { padding-block: 120px; display: grid; gap: 48px; }
.about .polaroid { width: 270px; height: 320px; --r: -3deg; margin: 0 auto; }
.about .pull { font-family: var(--serif); font-size: clamp(1.5rem, 3vw, 2.1rem); line-height: 1.35; margin-bottom: 30px; }
.about .body { color: var(--muted); max-width: 620px; }
.about .close { font-family: var(--serif); font-size: clamp(1.5rem, 3vw, 2.1rem); line-height: 1.35; color: var(--gold); margin: 34px 0 12px; }
.about .sig { color: var(--muted); }
.proof { list-style: none; padding: 0; margin: 40px 0 0; display: grid; grid-template-columns: 1fr 1fr; border-top: 1px solid var(--line); }
.proof li { padding: 18px 12px 18px 0; border-bottom: 1px solid var(--line); }
.proof strong { display: block; font-family: var(--mono); font-weight: 500; font-size: 1.7rem; color: var(--gold); }
.proof span { color: var(--muted); font-size: .9rem; }
.follow { margin-top: 28px; display: flex; flex-wrap: wrap; gap: 8px 22px; align-items: center; }
.follow a { color: var(--gold); text-decoration: none; display: inline-flex; gap: 6px; align-items: center; }
.follow svg { width: 18px; height: 18px; }
@media (min-width: 900px) { .about { grid-template-columns: 5fr 7fr; gap: 64px; } .about .polaroid { margin: 10px 0 0 15%; position: sticky; top: 120px; } }

/* 9. FAQ */
.faq details { border-top: 1px solid var(--line); padding: 20px 0; }
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; list-style: none; font-family: var(--serif); font-size: 1.3rem; position: relative; padding-right: 32px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; position: absolute; right: 0; top: -2px; font-family: var(--mono); color: var(--gold); font-size: 1.4rem; }
.faq details[open] summary::after { content: '–'; }
.faq details p { color: var(--muted); margin: 14px 0 0; }

/* 10. Envelope letter + booking.
   --B is the pocket height, --F the open flap's height. JS starts the envelope
   .sealed (height capped, so only the top of the letter peeks out of the pocket)
   and animates the height open when it scrolls into view, which slides the
   bottom-anchored pocket down off the letter. */
.envelope-sec { padding: 40px 0 120px; }
.envelope {
  --B: clamp(200px, 30vw, 360px); --F: clamp(150px, 22vw, 300px);
  position: relative; max-width: 1040px; margin: 0 auto; overflow: hidden;
  padding-top: calc(var(--F) * .35); transition: height 1.6s cubic-bezier(.65, 0, .25, 1);
}
.env-back { position: absolute; left: 0; right: 0; bottom: 0; height: var(--B); background: #0d241b; }
.flap {
  position: absolute; left: 0; right: 0; bottom: calc(var(--B) - 1px); height: var(--F); background: #10291f;
  clip-path: polygon(0 100%, 47% 3%, 50% 0, 53% 3%, 100% 100%);
  transform-origin: bottom; transform: scaleY(var(--flap, 1)); transition: transform .5s cubic-bezier(.2, .7, .2, 1);
}
.envelope.sealed .flap { --flap: .92; }
.letter {
  position: relative; z-index: 2; background: var(--paper); color: var(--ink); max-width: 860px; margin: 0 auto;
  padding: 44px 22px calc(var(--B) * .9); box-shadow: 0 -4px 30px rgba(0, 0, 0, .35);
  width: calc(100% - 28px);
}
.letter h2 { font-size: clamp(1.75rem, 7vw, 3.2rem); color: var(--bg); }
.letter .mark path { stroke: #9b7a1c; }
.letter .big { font-family: var(--serif); font-size: clamp(1.3rem, 2.6vw, 1.7rem); line-height: 1.4; margin: 30px 0 22px; }
.letter p, .letter li { color: var(--ink-muted); }
.letter ul { list-style: none; padding: 0; margin: 0 0 24px; display: grid; gap: 10px; }
.letter li { padding-left: 22px; position: relative; }
.letter li::before { content: '◇'; position: absolute; left: 0; color: #9b7a1c; }
.calendar { margin-top: 28px; background: #fff; border: 1px solid #e3d8c3; overflow: hidden; min-height: 620px; }
.calendar iframe { display: block; width: 100%; min-height: 620px; border: 0; }
.letter .micro { font-size: .85rem; text-align: center; margin: 14px 0 0; }
.letter .micro a { color: #7d6215; }
.letter .partners { color: var(--ink); font-weight: 600; }
.letter .signoff { font-family: var(--serif); font-size: 1.6rem; color: var(--bg); margin: 30px 0 0; text-align: center; }
.pocket-wrap { position: absolute; z-index: 3; left: 0; right: 0; bottom: 0; height: var(--B); filter: drop-shadow(0 -6px 10px rgba(0, 0, 0, .35)); pointer-events: none; }
.pocket { position: absolute; inset: 0; background: #10291f; clip-path: polygon(0 0, 50% 46%, 100% 0, 100% 100%, 0 100%); }
.pocket svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.seal {
  position: absolute; z-index: 4; left: 50%; top: 46%; width: clamp(76px, 9vw, 104px); aspect-ratio: 1;
  transform: translate(-50%, -50%) rotate(var(--seal-r, 0deg)); transition: transform .6s cubic-bezier(.2, .7, .2, 1);
  border-radius: 50%; background: radial-gradient(circle at 35% 30%, #e8c75a, #b38f22 60%, #8a6b12);
  box-shadow: 0 6px 16px rgba(0, 0, 0, .45), inset 0 0 0 5px rgba(0, 0, 0, .12); display: grid; place-items: center;
}
.envelope.sealed .seal { --seal-r: -8deg; }
.seal img { width: 58%; filter: brightness(0) saturate(100%) opacity(.55); }
.open-hint {
  position: absolute; z-index: 5; left: 50%; bottom: calc(var(--B) * .1); transform: translateX(-50%);
  font-family: var(--mono); font-size: .75rem; letter-spacing: .12em; text-transform: uppercase; color: var(--paper);
  background: none; border: 1px solid rgba(244, 236, 220, .5); padding: 10px 18px; cursor: pointer; transition: opacity .4s, background .2s;
}
.open-hint:hover { background: rgba(244, 236, 220, .12); }
.envelope:not(.sealed) .open-hint { opacity: 0; pointer-events: none; }
@media (min-width: 760px) { .letter { padding: 64px 72px calc(var(--B) * .9); } }
@media (prefers-reduced-motion: reduce) { .envelope, .flap, .seal { transition: none; } }

/* Footer */
.foot { border-top: 1px solid var(--line); padding: 32px 0; text-align: center; color: var(--muted); font-size: .88rem; }
.foot .socials { display: flex; justify-content: center; gap: 16px; margin-bottom: 14px; }
.foot .socials a { width: 40px; height: 40px; display: inline-grid; place-items: center; border: 1px solid var(--line); border-radius: 50%; color: var(--gold); }
.foot .socials svg { width: 19px; height: 19px; }
.foot p { margin: 0; }
.foot .slogan { font-family: var(--serif); color: var(--gold); font-size: 1.05rem; margin-bottom: 8px; }

/* Sticky mobile CTA */
.sticky-cta {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 20; padding: 12px 16px calc(12px + env(safe-area-inset-bottom));
  background: rgba(11, 31, 26, .95); border-top: 1px solid var(--line); backdrop-filter: blur(10px); transition: transform .2s ease;
}
.sticky-cta .btn { display: block; text-align: center; }
.sticky-cta.is-hidden { transform: translateY(110%); }
@media (min-width: 760px) { .sticky-cta { display: none; } body { padding-bottom: 0; } }

