/* PlainPages Pay Portal, product interface, not a brochure.
   Personality: crisp whites, deep blue, tabular numbers, confident forms. */

:root {
  --bg: #f5f6f9;
  --card: #ffffff;
  --ink: #19233a;
  --soft: #5d6880;
  --blue: #2247c2;
  --blue-deep: #182f80;
  --green: #178a5c;
  --green-bg: #e4f4ec;
  --amber: #9a6b15;
  --amber-bg: #fdf2dc;
  --line: #e2e6ee;
  --sans: "Inter", system-ui, sans-serif;
  --mono: "IBM Plex Mono", monospace;
}

body {
  font-family: var(--sans);
  background: var(--bg);
  color: var(--ink);
  line-height: 1.6;
  font-size: 1rem;
}

.wrap { max-width: 1020px; margin-inline: auto; padding-inline: clamp(1.1rem, 4vw, 2rem); }

h1, h2, h3 { margin: 0; line-height: 1.2; letter-spacing: -0.01em; }
p { margin: 0; }
.lede { color: var(--soft); max-width: 38rem; }

/* ---------- Intro ---------- */
.intro {
  padding-block: clamp(3.2rem, 7vw, 5.5rem) clamp(2rem, 4vw, 3rem);
  background:
    radial-gradient(circle at 78% 20%, rgba(34,71,194,0.16), transparent 20rem),
    linear-gradient(180deg, #fff, var(--bg));
}
.org-tag {
  font-family: var(--mono);
  font-size: 0.74rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 1rem;
}
.intro h1 { font-size: clamp(2.3rem, 5.5vw, 4.7rem); line-height: 1.02; font-weight: 800; max-width: 15em; }
.intro .lede { margin-top: 0.9rem; }
.badges {
  list-style: none; padding: 0; margin: 1.5rem 0 0;
  display: flex; flex-wrap: wrap; gap: 0.5rem;
}
.badges li {
  font-size: 0.8rem; font-weight: 600;
  padding: 0.35rem 0.85rem;
  background: var(--green-bg);
  color: var(--green);
  border-radius: 99px;
}
.badge-demo { background: var(--amber-bg) !important; color: var(--amber) !important; }
.portal-cta {
  display: inline-flex;
  margin-top: 1.2rem;
  padding: 0.75rem 1rem;
  border-radius: 9px;
  background: var(--blue);
  color: #fff;
  font-weight: 700;
  text-decoration: none;
}
.portal-cta:hover { background: var(--blue-deep); }

/* ---------- Portal ---------- */
.portal { padding-block: clamp(1rem, 2vw, 1.6rem) clamp(2.6rem, 5vw, 4rem); }
.portal-grid {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: 1.4rem;
  align-items: start;
  padding: clamp(0.8rem, 2vw, 1.4rem);
  border: 1px solid #d9e0ef;
  border-radius: 22px;
  background: linear-gradient(145deg, #eef2fb, #f8f9fc);
  box-shadow: 0 24px 58px rgba(25,35,58,0.1);
}

/* Steps */
.flow { display: grid; gap: 1.2rem; margin: 0; }
.step {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 1.4rem 1.4rem 1.5rem;
  margin: 0;
}
.step legend {
  display: flex; align-items: center; gap: 0.6rem;
  font-weight: 800; font-size: 1.02rem;
  padding: 0;
  float: left;          /* keeps legend inside the box flow */
  width: 100%;
  margin-bottom: 1.1rem;
}
.step legend + * { clear: both; }
.st-num {
  display: inline-grid; place-items: center;
  width: 1.7rem; height: 1.7rem;
  background: var(--blue);
  color: #fff;
  font-size: 0.85rem;
  border-radius: 8px;
}
.f-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0.9rem; margin-bottom: 0.9rem; }
.step > label, .f-row label {
  display: grid; gap: 0.3rem;
  font-size: 0.74rem; font-weight: 600;
  letter-spacing: 0.05em; text-transform: uppercase;
  color: var(--soft);
}
.step input[type="text"], .step input[type="email"], .step input[type="tel"], .step textarea {
  padding: 0.68rem 0.8rem;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: var(--bg);
  color: var(--ink);
  font-size: 0.95rem;
  width: 100%;
}
.step textarea { resize: vertical; }
.step input:focus, .step textarea:focus { outline: 2px solid var(--blue); outline-offset: 0; border-color: var(--blue); }

/* Plans */
.plan-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0.8rem; clear: both; }
.plan input { position: absolute; opacity: 0; pointer-events: none; }
.plan-body {
  display: grid; gap: 0.15rem;
  padding: 1rem 1.05rem;
  border: 1.5px solid var(--line);
  border-radius: 12px;
  cursor: pointer;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
  height: 100%;
}
.plan:hover .plan-body { border-color: #b9c4e6; }
.plan input:checked + .plan-body {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(34, 71, 194, 0.14);
}
.plan input:focus-visible + .plan-body { outline: 2px solid var(--blue); outline-offset: 2px; }
.plan-body b { font-size: 0.95rem; }
.plan-body i { font-style: normal; font-size: 0.8rem; color: var(--soft); }
.plan-body em {
  font-style: normal;
  font-family: var(--mono);
  font-weight: 600;
  margin-top: 0.45rem;
}
.plan-body em small { color: var(--soft); font-weight: 400; }

/* Methods */
.method-row { display: flex; flex-wrap: wrap; gap: 0.7rem; clear: both; }
.method input { position: absolute; opacity: 0; pointer-events: none; }
.method span {
  display: inline-flex; align-items: center; gap: 0.4rem;
  padding: 0.6rem 1.1rem;
  border: 1.5px solid var(--line);
  border-radius: 99px;
  font-weight: 600; font-size: 0.9rem;
  cursor: pointer;
  transition: border-color 0.15s ease, background-color 0.15s ease;
}
.method:hover span { border-color: #b9c4e6; }
.method input:checked + span { border-color: var(--blue); background: #eef2fd; color: var(--blue-deep); }
.method input:focus-visible + span { outline: 2px solid var(--blue); outline-offset: 2px; }

/* QR mockup */
.qr {
  margin-top: 1rem;
  display: flex; align-items: center; gap: 1rem;
  padding: 0.9rem 1rem;
  background: var(--bg);
  border: 1px dashed var(--line);
  border-radius: 10px;
  font-size: 0.88rem;
}
.qr small { color: var(--soft); }
.qr-art {
  flex: 0 0 auto;
  width: 4.6rem; height: 4.6rem;
  border-radius: 6px;
  background:
    conic-gradient(var(--ink) 90deg, transparent 0 180deg, var(--ink) 0 270deg, transparent 0) 0 0 / 1.5rem 1.5rem repeat,
    #fff;
  border: 4px solid #fff;
  outline: 1.5px solid var(--ink);
}

/* ---------- Summary ---------- */
.summary { position: sticky; top: 4.2rem; }
.sum-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-top: 4px solid var(--blue);
  border-radius: 14px;
  padding: 1.4rem 1.4rem 1.5rem;
  box-shadow: 0 14px 34px rgba(25, 35, 58, 0.08);
}
.sum-card h2 { font-size: 1.05rem; font-weight: 800; margin-bottom: 1rem; }
.sum-card dl { margin: 0; display: grid; gap: 0; }
.sum-card dl > div {
  display: flex; justify-content: space-between; align-items: baseline; gap: 1rem;
  padding-block: 0.6rem;
  border-bottom: 1px dashed var(--line);
}
.sum-card dt { font-size: 0.76rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--soft); }
.sum-card dd { margin: 0; font-weight: 600; font-size: 0.92rem; text-align: right; }
.s-amt { font-family: var(--mono); }
.s-amt small { color: var(--soft); font-weight: 400; }
.pill {
  display: inline-block;
  font-size: 0.72rem; font-weight: 700;
  padding: 0.2rem 0.6rem;
  border-radius: 99px;
}
.pill-wait { background: var(--amber-bg); color: var(--amber); }
.btn-confirm {
  width: 100%;
  margin-top: 1.2rem;
  padding: 0.9rem;
  background: var(--blue);
  color: #fff;
  font-weight: 700;
  border: none;
  border-radius: 10px;
  transition: background-color 0.15s ease, transform 0.15s ease;
}
.btn-confirm:hover { background: var(--blue-deep); transform: translateY(-1px); }
.sum-note { margin-top: 0.8rem; font-size: 0.76rem; color: var(--soft); text-align: center; }
.portal-final { padding: 2.8rem 0 3.4rem; background: var(--card); border-top: 1px solid var(--line); text-align: center; }
.portal-final p { margin: 0; font-size: clamp(1.25rem, 3vw, 1.8rem); font-weight: 800; }

/* Confirmation state */
.sum-card--done { border-top-color: var(--green); text-align: center; }
.done-ic {
  display: inline-grid; place-items: center;
  width: 3rem; height: 3rem;
  margin-bottom: 0.8rem;
  background: var(--green-bg);
  color: var(--green);
  font-size: 1.4rem; font-weight: 800;
  border-radius: 50%;
}
.conf-no { font-family: var(--mono); font-size: 0.9rem; margin: 0.6rem 0 1rem; }
.conf-no b { color: var(--blue-deep); }
.sum-card--done ul {
  list-style: none; padding: 0; margin: 0 0 1.2rem;
  display: grid; gap: 0.45rem;
  font-size: 0.88rem;
  text-align: left;
}
.btn-again {
  width: 100%;
  padding: 0.8rem;
  background: transparent;
  border: 1.5px solid var(--line);
  border-radius: 10px;
  font-weight: 600;
  color: var(--soft);
}
.btn-again:hover { border-color: var(--blue); color: var(--blue); }

/* ---------- FAQ ---------- */
.faq { padding-block: clamp(2rem, 4vw, 3.2rem); }
.faq h2 { font-size: 1.3rem; font-weight: 800; margin-bottom: 1.2rem; }
.faq details {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 0.95rem 1.2rem;
  margin-bottom: 0.6rem;
}
.faq summary { font-weight: 700; font-size: 0.95rem; cursor: pointer; }
.faq details p { margin-top: 0.6rem; color: var(--soft); font-size: 0.92rem; }

/* ---------- Business footer ---------- */
.biz-foot {
  padding-block: 2.2rem;
  border-top: 1px solid var(--line);
  background: var(--card);
  text-align: center;
  color: var(--soft);
  font-size: 0.88rem;
}
.biz-name { font-weight: 800; color: var(--ink); margin-bottom: 0.2rem; }

/* ---------- Responsive ---------- */
@media (max-width: 880px) {
  .portal-grid { grid-template-columns: minmax(0, 1fr); }
  .summary { position: static; }
}
@media (max-width: 560px) {
  .f-row, .plan-grid { grid-template-columns: minmax(0, 1fr); }
}
