/* /newsletters page styles. Shared parts live in site.css. */
@layer page {
/* ---------- Hero ---------- */
.hero { display: flex; flex-wrap: wrap; gap: 56px; align-items: center; padding-top: 48px; padding-bottom: 56px; }
.hero-copy { flex: 999 1 500px; min-width: 0; }
.pill { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; border-radius: 999px; background: var(--green-tint); color: var(--green-text); font-weight: 700; font-size: 14px; }
.pill .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--green); }
.hero h1 { margin-top: 22px; font-weight: 800; font-size: clamp(42px, 6.2vw, 80px); line-height: 1.0; letter-spacing: -0.035em; }
.hero h1 .hl { color: var(--green-text); }
.lede { margin-top: 22px; max-width: 560px; font-size: 20px; line-height: 1.55; color: var(--muted); }
.hero .actions { margin-top: 30px; }
.fine { margin-top: 14px; font-size: 14px; color: var(--faint); }
@media (max-width: 640px) { .hero { padding-top: 24px; gap: 40px; } .lede { font-size: 18px; } .hero .btn { flex: 1 1 100%; } }

/* Inbox mock */
.inbox { flex: 1 1 420px; min-width: 0; margin: 0; border: 1px solid var(--line); border-radius: 18px; box-shadow: var(--shadow); overflow: hidden; background: var(--card); }
.inbox-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 14px 18px; border-bottom: 1px solid var(--line-soft); background: var(--surface); font-size: 14px; }
.inbox-head b { font-weight: 800; }
.inbox-head .mono { font-size: 12px; color: var(--faint); }
.row { display: grid; grid-template-columns: 34px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 14px 18px; border-bottom: 1px solid var(--line-soft); }
.row:last-of-type { border-bottom: 0; }
.avatar { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; font-size: 13px; background: var(--line-soft); color: var(--faint); }
.who b { display: block; font-size: 15px; }
.who span { display: block; font-size: 14px; color: var(--faint); }
.chips { display: grid; justify-items: end; }
.chip { grid-area: 1 / 1; padding: 4px 10px; border-radius: 999px; font-size: 12px; font-weight: 800; white-space: nowrap; }
.chip-quiet { border: 1px solid var(--line); color: var(--faint); font-weight: 700; }
.chip-booked { background: var(--green); color: var(--green-ink); }
.chip-replied { background: var(--green-tint); color: var(--green-text); }
.inbox-foot { padding: 12px 18px; border-top: 1px solid var(--line-soft); font-size: 12px; color: var(--faint); background: var(--surface); }

/* Rows that wake up. Final state is the default; the animation plays from "quiet" to it. */
.row.live { background: var(--green-row); }
.row.live .avatar { background: var(--green); color: var(--green-ink); }
.row.live .who b { color: var(--ink); }
.row.live .who span { color: var(--muted); }
.row.live .chip-quiet { opacity: 0; }
.row.live .chip-new { opacity: 1; }
@media (prefers-reduced-motion: no-preference) {
  .row.live { animation: row-wake .6s ease var(--d, 1s) both; }
  .row.live .avatar { animation: av-wake .6s ease var(--d, 1s) both; }
  .row.live .chip-quiet { animation: chip-out .4s ease var(--d, 1s) both; }
  .row.live .chip-new { animation: chip-in .4s ease var(--d, 1s) both; }
  .row.live .who span { animation: text-wake .6s ease var(--d, 1s) both; }
  .row.r1 { --d: 1.2s; }
  .row.r2 { --d: 2.6s; }
}
@keyframes row-wake { from { background: transparent; } }
@keyframes av-wake { from { background: var(--line-soft); color: var(--faint); } }
@keyframes chip-out { from { opacity: 1; } }
@keyframes chip-in { from { opacity: 0; transform: scale(.85); } }
@keyframes text-wake { from { color: var(--faint); } }

/* ---------- Offer bar (the 5-second answer) ---------- */
.offer { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border: 1px solid var(--line); border-radius: 20px; overflow: hidden; }
.offer-cell { padding: 26px 28px; }
.offer-cell + .offer-cell { border-left: 1px solid var(--line); }
.offer-big { font-size: 40px; font-weight: 800; letter-spacing: -0.03em; line-height: 1; }
.offer-cell:first-child .offer-big { color: var(--green-text); }
.offer-label { margin-top: 8px; font-weight: 700; }
.offer-sub { margin-top: 4px; font-size: 14px; color: var(--faint); }
@media (max-width: 760px) {
  .offer { grid-template-columns: 1fr; }
  .offer-cell + .offer-cell { border-left: 0; border-top: 1px solid var(--line); }
  .offer-cell { padding: 20px; }
  .offer-big { font-size: 34px; }
}

/* Steps */
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; margin-top: 32px; }
.step { padding: 26px; border-radius: 16px; background: var(--surface); }
.step .mono { font-size: 13px; color: var(--green-text); }
.step h3 { margin-top: 10px; font-size: 22px; font-weight: 800; }
.step p.body { margin-top: 8px; color: var(--muted); }
.step-dark { background: var(--dark); color: var(--dark-text); }
.step-dark .mono { color: var(--dark-green); }
.step-dark p.body { color: var(--dark-muted); }

/* Formats */
.formats { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; margin-top: 16px; }
.format { padding: 22px 24px; border: 1px solid var(--line); border-radius: 16px; display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 4px 14px; align-items: start; }
.format .tick { grid-row: span 2; width: 28px; height: 28px; border-radius: 50%; background: var(--green-tint); color: var(--green-text); display: grid; place-items: center; font-weight: 800; font-size: 14px; }
.format h3 { font-size: 18px; font-weight: 800; }
.format p { color: var(--muted); font-size: 15px; }

/* Samples */
.samples { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; margin-top: 32px; }
.sample { display: flex; flex-direction: column; text-decoration: none; color: var(--ink); border: 1px solid var(--line); border-radius: 16px; overflow: hidden; background: var(--card); transition: transform .15s ease, box-shadow .15s ease; }
.sample:hover { color: var(--ink); transform: translateY(-3px); box-shadow: var(--shadow); }
@media (prefers-reduced-motion: reduce) { .sample, .sample:hover { transition: none; transform: none; } }
.sample-top { padding: 22px; min-height: 150px; display: flex; flex-direction: column; justify-content: space-between; gap: 18px; }
.sample-top .mono { font-size: 12px; opacity: .85; }
.sample-title { font-size: 24px; font-weight: 800; letter-spacing: -0.02em; line-height: 1.1; }
.s-build { background: #0B0F0E; color: #FFFFFF; }
.s-buyer { background: #1F3A5F; color: #FFFFFF; }
.s-gulf { background: #E8DCC4; color: #2A2116; }
.s-draft { background: #00B37E; color: #04140E; }
.sample-body { padding: 18px 22px 20px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.sample-body p { color: var(--muted); font-size: 15px; }
.sample-for { margin-top: auto; display: flex; justify-content: space-between; font-size: 14px; font-weight: 700; }
.sample-for span:last-child { color: var(--green-text); }

/* Prices */
.cur-input { position: absolute; opacity: 0; pointer-events: none; }
.cur-switch { display: inline-flex; border: 1px solid var(--line); background: var(--surface); border-radius: 999px; padding: 4px; gap: 2px; margin-top: 24px; }
.cur-switch label { min-height: 40px; min-width: 64px; display: inline-flex; align-items: center; justify-content: center; padding: 0 16px; border-radius: 999px; font-weight: 800; font-size: 15px; cursor: pointer; color: var(--muted); }
#cur-usd:checked ~ .cur-switch label[for="cur-usd"],
#cur-inr:checked ~ .cur-switch label[for="cur-inr"],
#cur-aed:checked ~ .cur-switch label[for="cur-aed"] { background: var(--ink); color: var(--ink-inv); }
#cur-usd:focus-visible ~ .cur-switch label[for="cur-usd"],
#cur-inr:focus-visible ~ .cur-switch label[for="cur-inr"],
#cur-aed:focus-visible ~ .cur-switch label[for="cur-aed"] { outline: 3px solid var(--focus); outline-offset: 2px; }
.p-inr, .p-aed { display: none; }
#cur-inr:checked ~ .plans .p-usd, #cur-aed:checked ~ .plans .p-usd { display: none; }
#cur-inr:checked ~ .plans .p-inr { display: inline; }
#cur-aed:checked ~ .plans .p-aed { display: inline; }

.plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 16px; margin-top: 20px; align-items: stretch; }
.plan { position: relative; display: flex; flex-direction: column; gap: 14px; padding: 28px; border: 1px solid var(--line); border-radius: 18px; background: var(--card); }
.plan h3 { font-size: 20px; font-weight: 800; }
.price { font-size: 42px; font-weight: 800; letter-spacing: -0.03em; line-height: 1; }
.price-note { font-size: 15px; color: var(--muted); }
.plan ul { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 8px; font-size: 15px; color: var(--muted); }
.plan li { position: relative; padding-left: 22px; }
.plan li::before { content: ""; position: absolute; left: 2px; top: 8px; width: 10px; height: 6px; border-left: 2px solid var(--green); border-bottom: 2px solid var(--green); transform: rotate(-45deg); }
.plan .btn { margin-top: auto; }
.plan-main { background: var(--dark); color: var(--dark-text); border-color: var(--dark); }
.plan-main .price-note, .plan-main ul { color: var(--dark-muted); }
.plan-main .tag { position: absolute; top: -12px; left: 28px; padding: 4px 12px; border-radius: 999px; background: var(--green); color: var(--green-ink); font-size: 12px; font-weight: 800; }
.plan-main .founding { margin-top: 2px; padding: 10px 12px; border-radius: 10px; background: rgba(61, 220, 167, 0.12); color: var(--dark-green); font-size: 14px; font-weight: 700; }
.price-fine { margin-top: 16px; font-size: 14px; color: var(--faint); max-width: 820px; }

/* Promises */
.promises { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 0 32px; margin-top: 28px; border-top: 1px solid var(--line); }
.promise { display: grid; grid-template-columns: 26px minmax(0, 1fr); gap: 12px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.promise .x { width: 22px; height: 22px; margin-top: 2px; border-radius: 50%; background: var(--green-tint); color: var(--green-text); display: grid; place-items: center; font-size: 13px; font-weight: 800; }
.promise b { display: block; }
.promise span.d { display: block; color: var(--muted); font-size: 15px; }
.honest { margin-top: 28px; padding: 24px 26px; border-radius: 16px; background: var(--surface); display: flex; flex-wrap: wrap; gap: 12px 40px; align-items: baseline; }
.honest p { flex: 999 1 440px; color: var(--muted); }
.honest p b { color: var(--ink); }

/* Centered hero + story strip */
.hero-center { display: block; text-align: center; padding-top: 56px; padding-bottom: 40px; }
.hero-center h1 { margin: 0 auto; max-width: 980px; }
.hero-center .lede { margin: 20px auto 0; max-width: 720px; font-size: 22px; }
.hero-center .actions { justify-content: center; }
.story-wrap { padding-bottom: 8px; }
.offer-wrap { margin-top: 56px; }
@media (max-width: 640px) { .hero-center { text-align: left; padding-top: 24px; } .hero-center .lede { font-size: 19px; margin-left: 0; } .offer-wrap { margin-top: 40px; } }


/* "Any list size" line under the offer bar */
.any-size { margin-top: 14px; font-size: 15px; line-height: 1.7; color: var(--muted); }
.any-size-tag { display: inline-block; margin-right: 10px; padding: 1px 10px; border-radius: 999px; background: var(--green-tint); color: var(--green-text); font-weight: 800; font-size: 13px; white-space: nowrap; }
}
