/* section-specific styles for the WordPress Rescue site */

/* =============== RESCUE LOG (hero animation) =============== */
.rlog-card {
  background: linear-gradient(180deg, #FFFFFF 0%, #F8FBFF 100%);
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  box-shadow: var(--sh-3);
  overflow: hidden;
  position: relative;
}
.rlog-card::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(60% 50% at 50% 0%, rgba(47,111,224,0.05), transparent);
}

.rlog-head {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 22px 26px 18px;
  border-bottom: 1px solid var(--line);
}
.rlog-head .avatar {
  width: 44px; height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--blue) 0%, var(--blue-deep) 100%);
  color: #fff;
  display: grid; place-items: center;
  font-weight: 600;
  font-size: 17px;
  letter-spacing: -0.01em;
  flex-shrink: 0;
  box-shadow: 0 4px 10px rgba(31,79,176,0.25);
}
.rlog-head .who {
  flex: 1;
  min-width: 0;
}
.rlog-head .who-name {
  font-weight: 500;
  font-size: 15px;
  color: var(--ink);
  display: flex;
  align-items: center;
  gap: 8px;
}
.rlog-head .who-name .verified {
  color: var(--blue);
  display: inline-flex;
}
.rlog-head .who-sub {
  font-size: 13px;
  color: var(--ink-3);
}
.rlog-head .status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 11px;
  background: #DFF5E9;
  color: #117a4a;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 500;
}
.rlog-head .status .pulse {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 4px rgba(43,182,115,0.2);
  animation: pulse-soft 1.6s ease-in-out infinite;
}

.rlog-site {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 26px;
  background: #F4F8FD;
  font-family: var(--font-mono);
  font-size: 12.5px;
  color: var(--ink-2);
  border-bottom: 1px solid var(--line);
}
.rlog-site .lock {
  color: var(--green);
}
.rlog-site .site {
  color: var(--ink);
}
.rlog-site .when {
  margin-left: auto;
  color: var(--ink-3);
  font-size: 11.5px;
}

.rlog-feed {
  padding: 18px 26px 8px;
  min-height: 350px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.rlog-entry {
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 14px;
  align-items: flex-start;
  opacity: 0;
  transform: translateY(8px);
  animation: rlog-in .55s ease forwards;
}
.rlog-entry .ts {
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: var(--ink-3);
  padding-top: 4px;
  text-align: right;
  letter-spacing: 0.02em;
}
.rlog-entry .row {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}
.rlog-entry .dot {
  width: 10px; height: 10px;
  border-radius: 50%;
  margin-top: 6px;
  flex-shrink: 0;
  box-shadow: 0 0 0 4px rgba(47,111,224,0.08);
}
.rlog-entry.t-info  .dot { background: var(--blue); box-shadow: 0 0 0 4px rgba(47,111,224,0.12); }
.rlog-entry.t-work  .dot { background: var(--coral); box-shadow: 0 0 0 4px rgba(255,122,92,0.12); }
.rlog-entry.t-done  .dot { background: var(--green); box-shadow: 0 0 0 4px rgba(43,182,115,0.15); }

.rlog-entry .msg {
  flex: 1;
  font-size: 14.5px;
  color: var(--ink);
  line-height: 1.5;
}
.rlog-entry .tag {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 3px 8px;
  margin-right: 8px;
  border-radius: 4px;
  vertical-align: 2px;
}
.rlog-entry.t-info .tag { background: var(--blue-soft); color: var(--blue-deep); }
.rlog-entry.t-work .tag { background: var(--coral-soft); color: #c4452a; }
.rlog-entry.t-done .tag { background: #DFF5E9; color: #117a4a; }

.rlog-entry .note {
  margin-top: 4px;
  font-size: 13px;
  color: var(--ink-3);
}

@keyframes rlog-in {
  0%   { opacity: 0; transform: translateY(10px); }
  100% { opacity: 1; transform: translateY(0); }
}

.rlog-cursor {
  display: inline-block;
  width: 7px;
  height: 1.05em;
  background: var(--ink);
  vertical-align: -2px;
  margin-left: 3px;
  animation: blink 1s steps(1) infinite;
}
@keyframes blink {
  0%, 49% { opacity: 1; }
  50%, 100% { opacity: 0; }
}

.rlog-foot {
  border-top: 1px solid var(--line);
  padding: 16px 26px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #FBFCFE;
}
.rlog-foot .sig {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13.5px;
  color: var(--ink-2);
}
.rlog-foot .sig .ax {
  font-weight: 500;
  color: var(--ink);
}

/* =============== HERO =============== */
.hero {
  padding: 80px 0 110px;
  position: relative;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 60px;
  align-items: center;
}
@media (max-width: 980px) {
  .hero-grid { grid-template-columns: 1fr; gap: 48px; }
}
.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 14px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 13px;
  color: var(--ink-2);
  box-shadow: var(--sh-1);
  margin-bottom: 28px;
}
.hero-tag .dot {
  width: 8px; height: 8px;
  background: var(--green);
  border-radius: 50%;
  box-shadow: 0 0 0 3px rgba(43,182,115,0.18);
}

.hero h1 .swash {
  color: var(--blue);
}

.hero-sub {
  font-size: 18px;
  color: var(--ink-2);
  margin: 26px 0 32px;
  max-width: 460px;
}

.hero-cta {
  display: flex;
  gap: 12px;
  margin-bottom: 32px;
  flex-wrap: wrap;
}

.hero-trust {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
  color: var(--ink-3);
  font-size: 13.5px;
}
.hero-trust .stack {
  display: flex;
}
.hero-trust .stack > div {
  width: 30px; height: 30px;
  border-radius: 50%;
  background: linear-gradient(135deg, #B6CDFB, #C9D6E6);
  border: 2px solid #fff;
  margin-left: -8px;
  font-weight: 500;
  display: grid; place-items: center;
  color: var(--ink);
  font-size: 12px;
}
.hero-trust .stack > div:first-child { margin-left: 0; }

/* floating asides next to rescue log */
.hero-aside {
  position: absolute;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  box-shadow: var(--sh-2);
  padding: 12px 14px;
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 13px;
  color: var(--ink);
  animation: float-y 4s ease-in-out infinite;
  max-width: 240px;
}
.hero-aside.left  { left: -32px; top: 50px; animation-delay: 0s; }
.hero-aside.right { right: -36px; bottom: 90px; animation-delay: 1.2s; }
.hero-aside .icon {
  width: 32px; height: 32px;
  border-radius: 8px;
  display: grid; place-items: center;
  flex-shrink: 0;
}
.hero-aside .icon.green { background: #DFF5E9; color: #117a4a; }
.hero-aside .icon.coral { background: var(--coral-soft); color: #c4452a; }
.hero-aside .meta { color: var(--ink-3); font-size: 11.5px; font-family: var(--font-mono); }
@media (max-width: 980px) {
  .hero-aside { display: none; }
}

/* logo strip */
.logo-strip {
  margin-top: 70px;
  padding-top: 32px;
  border-top: 1px solid var(--line);
  text-align: center;
}
.logo-strip .label {
  font-family: var(--font-mono);
  font-size: 11.5px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--ink-3);
  margin-bottom: 22px;
}
.logo-strip .logos {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  opacity: 0.7;
  flex-wrap: wrap;
}
.logo-strip .logos > div {
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: 17px;
  letter-spacing: -0.01em;
  color: var(--ink-2);
}

/* =============== SECTION HEADER =============== */
.sec-head {
  max-width: 720px;
  margin: 0 auto 56px;
  text-align: center;
}
.sec-head .eyebrow { justify-content: center; }
.sec-head h2 { margin-top: 16px; }
.sec-head p { margin-top: 16px; font-size: 17px; }

/* =============== PROBLEMS GRID =============== */
.problems {
  background: linear-gradient(180deg, var(--bg), #fff 100%);
}
.problem-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
@media (max-width: 880px) {
  .problem-grid { grid-template-columns: 1fr; }
}
.problem-card {
  padding: 28px;
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  box-shadow: var(--sh-1);
  transition: transform .25s, box-shadow .25s;
}
.problem-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--sh-2);
}
.problem-card .pc-icon {
  width: 44px; height: 44px;
  border-radius: 12px;
  display: grid; place-items: center;
  background: var(--blue-soft);
  color: var(--blue-deep);
  margin-bottom: 18px;
}
.problem-card.coral .pc-icon { background: var(--coral-soft); color: #c4452a; }
.problem-card.green .pc-icon { background: #DFF5E9; color: #117a4a; }
.problem-card h3 { margin-bottom: 10px; }
.problem-card p { font-size: 14.5px; }

/* =============== SERVICES =============== */
.services {
  background:
    radial-gradient(70% 50% at 50% 0%, #E8F0FB 0%, transparent 60%),
    var(--bg);
}
.tier-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
@media (max-width: 980px) { .tier-grid { grid-template-columns: 1fr; } }

.tier {
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  padding: 34px 30px;
  position: relative;
  display: flex;
  flex-direction: column;
  box-shadow: var(--sh-1);
}
.tier.featured {
  background: linear-gradient(180deg, #102B49 0%, #0E2236 100%);
  color: #fff;
  border-color: transparent;
  box-shadow: var(--sh-3);
  transform: scale(1.02);
}
.tier.featured h3, .tier.featured .tier-price { color: #fff; }
.tier.featured .tier-desc, .tier.featured .tier-list li { color: #B6CDFB; }
.tier.featured .tier-list svg { color: #6EC79A; }
.tier.featured .tier-foot { color: #8AA2BD; }

.tier-badge {
  position: absolute;
  top: 22px; right: 22px;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 5px 10px;
  border-radius: 999px;
  background: var(--coral);
  color: #fff;
  font-weight: 500;
}

.tier-eyebrow {
  font-family: var(--font-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--blue);
}
.tier.featured .tier-eyebrow { color: #B6CDFB; }
.tier h3 { margin: 10px 0 10px; font-size: 24px; }
.tier-desc { font-size: 14.5px; min-height: 42px; margin-bottom: 18px; }

.tier-price {
  font-family: var(--font-sans);
  font-size: 48px;
  font-weight: 500;
  line-height: 1;
  color: var(--ink);
  letter-spacing: -0.035em;
}
.tier-price .sm {
  font-size: 15px;
  color: var(--ink-3);
  font-weight: 400;
  margin-left: 6px;
  letter-spacing: -0.01em;
}
.tier.featured .tier-price .sm { color: #8AA2BD; }
.tier-price-note {
  font-size: 12.5px;
  color: var(--ink-3);
  margin-top: 6px;
}
.tier.featured .tier-price-note { color: #8AA2BD; }

.tier-list {
  margin: 24px 0 24px;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 11px;
}
.tier-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 14px;
  color: var(--ink-2);
}
.tier-list svg { color: var(--green); flex-shrink: 0; margin-top: 2px; }

.tier-access {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12.5px;
  color: var(--ink-3);
  background: var(--ink-bg, rgba(0,0,0,0.03));
  border: 1px dashed var(--line-2);
  border-radius: 8px;
  padding: 9px 11px;
  margin: -4px 0 18px;
}
.tier-access svg { color: var(--ink-2); flex-shrink: 0; }
.tier.featured .tier-access {
  background: rgba(255,255,255,0.06);
  border-color: rgba(255,255,255,0.15);
  color: #B6CDFB;
}
.tier.featured .tier-access svg { color: #B6CDFB; }

.tier .btn { width: 100%; justify-content: center; margin-top: auto; }
.tier-foot {
  margin-top: 12px;
  font-size: 12px;
  color: var(--ink-3);
  text-align: center;
}

/* =============== PROCESS =============== */
.process {
  background: var(--bg-2);
}
.process-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  position: relative;
}
@media (max-width: 980px) { .process-steps { grid-template-columns: 1fr; } }
.process-steps::before {
  content: "";
  position: absolute;
  top: 28px;
  left: 12%;
  right: 12%;
  height: 1px;
  border-top: 1px dashed var(--line-2);
}
@media (max-width: 980px) { .process-steps::before { display: none; } }
.process-step {
  text-align: center;
  padding: 0 20px;
  position: relative;
}
.process-step .num {
  width: 56px; height: 56px;
  border-radius: 50%;
  background: #fff;
  border: 1px solid var(--line);
  color: var(--blue);
  font-family: var(--font-sans);
  font-size: 20px;
  font-weight: 500;
  letter-spacing: -0.02em;
  display: grid; place-items: center;
  margin: 0 auto 16px;
  position: relative;
  z-index: 1;
  box-shadow: var(--sh-1);
}
.process-step h3 { font-size: 18px; margin-bottom: 6px; }
.process-step p { font-size: 14px; }

/* =============== GUIDES =============== */
.guides {
  background: linear-gradient(180deg, var(--bg), #fff 100%);
}
.guide-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 22px;
}
@media (max-width: 980px) { .guide-grid { grid-template-columns: 1fr; } }

.guide-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 24px;
  box-shadow: var(--sh-1);
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: transform .25s, box-shadow .25s;
  position: relative;
  overflow: hidden;
}
.guide-card:hover { transform: translateY(-3px); box-shadow: var(--sh-2); }

.guide-card.feature {
  background: linear-gradient(160deg, #E8F0FB 0%, #FFFFFF 80%);
  grid-row: span 2;
}

.guide-cover {
  height: 160px;
  border-radius: var(--r-md);
  background: linear-gradient(160deg, var(--blue-soft), #fff);
  border: 1px solid var(--line);
  position: relative;
  overflow: hidden;
  display: grid; place-items: center;
}
.guide-card.feature .guide-cover { height: 240px; }
.guide-cover .gc-mock {
  width: 70%; height: 80%;
  background: #fff;
  border-radius: 8px;
  box-shadow: var(--sh-2);
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 7px;
  transform: rotate(-3deg);
}
.guide-cover .gc-mock .line {
  height: 6px;
  background: var(--line);
  border-radius: 3px;
}
.guide-cover .gc-mock .line.short { width: 50%; }
.guide-cover .gc-mock .line.title { background: var(--ink); height: 10px; width: 80%; }
.guide-cover .gc-mock .line.accent { background: var(--coral); width: 30%; }

.guide-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12.5px;
  color: var(--ink-3);
}
.guide-title {
  font-family: var(--font-sans);
  font-size: 19px;
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.2;
  color: var(--ink);
}
.guide-card.feature .guide-title { font-size: 26px; }
.guide-desc { font-size: 14px; color: var(--ink-2); }

.guide-foot {
  margin-top: auto;
  padding-top: 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid var(--line);
}
.guide-price {
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: 20px;
  color: var(--ink);
  letter-spacing: -0.015em;
}
.guide-price.free {
  color: var(--green);
  font-weight: 500;
}
.guide-card .arrow {
  width: 34px; height: 34px;
  border-radius: 50%;
  background: var(--ink);
  color: #fff;
  display: grid; place-items: center;
  transition: transform .2s;
}
.guide-card:hover .arrow { transform: translate(2px, -2px); }

/* =============== FAQ =============== */
.faq {
  background: var(--bg);
}
.faq-grid {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 60px;
  align-items: flex-start;
}
@media (max-width: 880px) { .faq-grid { grid-template-columns: 1fr; gap: 32px; } }

.faq-item {
  border-bottom: 1px solid var(--line);
  padding: 20px 0;
  cursor: pointer;
}
.faq-item:first-child { border-top: 1px solid var(--line); }
.faq-q {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
  font-family: var(--font-sans);
  font-size: 18px;
  font-weight: 500;
  letter-spacing: -0.015em;
  color: var(--ink);
  line-height: 1.3;
}
.faq-a {
  font-size: 15px;
  color: var(--ink-2);
  margin-top: 12px;
  max-width: 60ch;
}
.faq-toggle {
  width: 28px; height: 28px;
  border-radius: 50%;
  background: var(--bg-3);
  display: grid; place-items: center;
  color: var(--ink-2);
  flex-shrink: 0;
  transition: background .15s, transform .25s;
}
.faq-item.open .faq-toggle {
  background: var(--blue);
  color: #fff;
  transform: rotate(45deg);
}

/* =============== CONTACT =============== */
.contact {
  background: linear-gradient(180deg, var(--bg-2) 0%, var(--bg) 100%);
}
.contact-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  box-shadow: var(--sh-2);
  overflow: hidden;
  display: grid;
  grid-template-columns: 0.9fr 1.2fr;
}
@media (max-width: 980px) { .contact-card { grid-template-columns: 1fr; } }

.contact-side {
  background: linear-gradient(160deg, #1F4FB0 0%, #102B49 100%);
  color: #fff;
  padding: 44px;
  position: relative;
  overflow: hidden;
}
.contact-side::before {
  content: "";
  position: absolute;
  width: 240px; height: 240px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255,255,255,0.12), transparent 60%);
  bottom: -80px; right: -80px;
}
.contact-side h2 { color: #fff; }
.contact-side p { color: #B6CDFB; font-size: 15px; margin-top: 14px; }
.contact-side .eyebrow { color: #B6CDFB; }
.contact-side .channels {
  margin-top: 32px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  position: relative;
}
.contact-side .ch {
  display: flex;
  gap: 14px;
  align-items: flex-start;
}
.contact-side .ch .ic {
  width: 38px; height: 38px;
  border-radius: 10px;
  background: rgba(255,255,255,0.1);
  display: grid; place-items: center;
  flex-shrink: 0;
}
.contact-side .ch .lbl { font-size: 11.5px; color: #8AA2BD; letter-spacing: 0.06em; text-transform: uppercase; }
.contact-side .ch .val { font-size: 15px; font-weight: 500; color: #fff; margin-top: 2px; }

.contact-form {
  padding: 44px;
}
.contact-form .row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
@media (max-width: 600px) { .contact-form .row { grid-template-columns: 1fr; } }
.contact-form > * + * { margin-top: 16px; }

.urgency-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.urgency-row label {
  flex: 1;
  min-width: 110px;
  border: 1px solid var(--line);
  background: var(--bg);
  border-radius: var(--r-md);
  padding: 12px 14px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13.5px;
  transition: border-color .15s, background .15s;
}
.urgency-row label:hover { border-color: var(--blue); }
.urgency-row input { display: none; }
.urgency-row label:has(input:checked) {
  background: var(--blue-soft);
  border-color: var(--blue);
}
.urg-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}

.success-msg {
  background: #DFF5E9;
  border: 1px solid #B8E6CF;
  border-radius: var(--r-md);
  padding: 18px;
  display: flex;
  align-items: center;
  gap: 14px;
  color: #117a4a;
}
.success-msg .ic {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: var(--green);
  color: #fff;
  display: grid; place-items: center;
  flex-shrink: 0;
}

/* =============== FOOTER =============== */
.footer {
  background: var(--ink);
  color: #B6CDFB;
  padding: 56px 0 28px;
}
.footer h4 {
  color: #fff;
  font-family: var(--font-sans);
  font-size: 12.5px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-bottom: 14px;
  font-weight: 500;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 36px;
  border-bottom: 1px solid #1F3651;
}
@media (max-width: 880px) { .footer-grid { grid-template-columns: 1fr 1fr; gap: 28px; } }
.footer-grid a { color: #B6CDFB; display: block; padding: 6px 0; font-size: 14.5px; }
.footer-grid a:hover { color: #fff; }
.footer-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-sans);
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -0.015em;
  color: #fff;
  margin-bottom: 14px;
}
.footer-bottom {
  display: flex;
  justify-content: space-between;
  padding-top: 22px;
  font-size: 12.5px;
  color: #6F8299;
  flex-wrap: wrap;
  gap: 12px;
}

/* =============== FAQ ACCORDION — show/hide answers ===============
   The prototype used React conditional rendering ({open === i && ...}).
   In plain HTML the .faq-a divs are always in the DOM, so we hide
   them with CSS and reveal on .open parent.                         */
.faq-item .faq-a { display: none; }
.faq-item.open .faq-a { display: block; }

/* =============== HERO .swash — italic serif accent =============== */
.hero h1 .swash {
  font-family: 'Newsreader', Georgia, serif;
  font-style: italic;
  font-weight: 500;
  color: var(--blue);
}
