/* Payment page. Same visual world as the theme, but standalone so it renders
   identically whatever theme is active. The palette is duplicated here on
   purpose — these pages must not depend on a theme being present. Keep the two
   :root blocks in step. */

:root{
  --cream:#f6f7fd; --sand:#e6ebfa; --sage:#b9c2e8; --pale:#eceffb; --tan:#b9a3f0;
  --ink:#1a2a6b; --ink-70:#46548f; --tan-deep:#5b2fb8;
  /* Second surface tint, matching theme.css. */
  --lilac:#ece7fa;
  /* Warnings stay out of the brand family — see theme.css. */
  --warn:#b3261e;
  --display:"Bricolage Grotesque","Trebuchet MS",system-ui,sans-serif;
  --body:"Instrument Sans",-apple-system,BlinkMacSystemFont,"Segoe UI",Helvetica,Arial,sans-serif;
  --mono:"JetBrains Mono",ui-monospace,SFMono-Regular,Menlo,monospace;
  color-scheme: light;
}

*,*::before,*::after{ box-sizing:border-box; }

/* A <button> takes the browser's own text colour unless told otherwise, which
   is not reliably dark. Inheriting makes the choice deliberate. */
button{ color:inherit; }

body{
  margin:0; background:var(--cream); color:var(--ink);
  font-family:var(--body); font-size:1rem; line-height:1.6;
  -webkit-font-smoothing:antialiased;
}

h1{
  font-family:var(--display); font-weight:800;
  font-size:clamp(1.9rem,5.5vw,3rem); line-height:1;
  letter-spacing:-0.035em; margin:0 0 1rem; text-wrap:balance;
}

p{ margin:0; }

.wrap{ width:100%; max-width:720px; margin-inline:auto; padding-inline:clamp(1rem,5vw,2rem); }

:focus-visible{ outline:3px solid var(--tan-deep); outline-offset:3px; }

/* Header */
.bar{ background:var(--cream); border-bottom:2px solid var(--ink); }
.bar__inner{ display:flex; align-items:center; gap:.7rem; min-height:64px; }
.mark{
  inline-size:36px; block-size:36px; flex:none;
  border:2px solid var(--ink); border-radius:50%; background:var(--tan);
  display:grid; place-items:center;
  font-family:var(--display); font-weight:800; font-size:.9rem; letter-spacing:-0.04em;
}
.bar__name{ font-family:var(--display); font-weight:800; letter-spacing:-0.03em; }

/* The masthead is a link home, and there are ways out on the right. These
   pages sit outside the site's own navigation, so without this a client who
   has read their answer has nowhere to go but the back button. */
.bar__home{
  display:flex; align-items:center; gap:.7rem;
  text-decoration:none; color:inherit;
}
.bar__home:hover .bar__name{ color:var(--tan-deep); }

.bar__links{
  display:flex; align-items:center; gap:1.1rem;
  margin-left:auto;
}
.bar__links a{
  font-family:var(--mono); font-size:.72rem;
  letter-spacing:.08em; text-transform:uppercase;
  color:var(--ink-70); text-decoration:none;
  border-bottom:1px solid transparent;
  padding-bottom:1px;
}
.bar__links a:hover{ color:var(--tan-deep); border-bottom-color:var(--tan-deep); }

@media (max-width:520px){
  .bar__links{ gap:.8rem; }
  .bar__links a{ font-size:.66rem; letter-spacing:.05em; }
  .bar__home .bar__name{ font-size:.95rem; }
}

.page{ padding-block:clamp(2.5rem,7vw,4.5rem) 4rem; }

/* The way back to the hub. Above the content rather than in the masthead:
   somebody who has finished reading their answer is at the top of the page
   looking for the exit, and a small uppercase link up in the bar is easy to
   miss. It is only rendered for a signed-in client — see back-to-account.php. */
.backlink{
  display:inline-flex; align-items:center; gap:.4rem;
  margin-bottom:1.75rem;
  padding:.55rem 1.1rem .55rem .85rem;
  border:2px solid var(--ink); border-radius:999px;
  background:var(--cream); color:var(--ink);
  font-size:.92rem; font-weight:700; text-decoration:none;
  box-shadow:2px 2px 0 var(--ink);
  transition:transform .14s ease, box-shadow .14s ease, background .14s ease;
}
.backlink:hover{
  background:var(--sand);
  transform:translate(-1px,-1px);
  box-shadow:3px 3px 0 var(--ink);
}
.backlink:active{ transform:translate(1px,1px); box-shadow:1px 1px 0 var(--ink); }
.backlink__arrow{ inline-size:17px; block-size:17px; flex:none; }

@media (prefers-reduced-motion:reduce){
  .backlink, .backlink:hover, .backlink:active{ transition:none; transform:none; }
}

/* Not on a printed copy of the advice. */
@media print{ .backlink{ display:none; } }

.eyebrow{
  font-family:var(--mono); font-size:.72rem; letter-spacing:.14em;
  text-transform:uppercase; color:var(--ink-70); margin-bottom:1rem;
}

.lede{ color:var(--ink-70); font-size:1.05rem; max-width:52ch; }

.error{
  margin:1.5rem 0 0; padding:.9rem 1.1rem;
  border:2px solid var(--warn); border-radius:4px;
  background:#fdecea; color:var(--warn); font-weight:600;
}

/* Fee card */
.card{
  margin-top:2rem;
  border:2px solid var(--ink); border-radius:4px;
  background:var(--sand); box-shadow:6px 6px 0 var(--ink);
  overflow:hidden;
}
.card__head{
  display:flex; align-items:center; justify-content:space-between; gap:1rem;
  background:var(--ink); color:var(--cream); padding:.85rem 1.2rem;
  font-family:var(--mono); font-size:.72rem; letter-spacing:.1em; text-transform:uppercase;
}
.card__head .fee{
  font-family:var(--display); font-size:1.5rem; font-weight:800;
  letter-spacing:-0.03em; text-transform:none; color:var(--tan);
}
.card__body{ padding:1.4rem 1.3rem 1.5rem; }
.sub{ font-family:var(--display); font-weight:700; font-size:1.2rem; letter-spacing:-0.025em; line-height:1.15; margin-bottom:1rem; }
.scope p{ margin-bottom:.4rem; font-size:.95rem; }
.vat{
  margin-top:1.2rem; padding-top:1rem;
  border-top:1px solid rgba(26,42,107,.2);
  font-size:.85rem; color:var(--ink-70);
}

.rows{ margin:0; display:grid; gap:0; }
.rows > div{ display:flex; gap:1rem; padding:.85rem 1.2rem; border-bottom:1px solid rgba(26,42,107,.18); }
.rows > div:last-child{ border-bottom:none; }
.rows dt{ font-family:var(--mono); font-size:.68rem; letter-spacing:.1em; text-transform:uppercase; color:var(--ink-70); inline-size:7rem; flex:none; }
.rows dd{ margin:0; font-weight:600; }

/* Consent + pay */
.pay{ margin-top:2rem; }
.consent{
  border:2px solid var(--ink); border-radius:4px;
  background:var(--pale); padding:1.2rem;
}
.consent__note{ font-size:.88rem; color:var(--ink-70); margin-bottom:1rem; }
.consent__check{ display:flex; gap:.8rem; align-items:flex-start; font-size:.95rem; font-weight:600; cursor:pointer; }
.consent__check input{ inline-size:22px; block-size:22px; flex:none; margin:0; accent-color:var(--tan-deep); }

.btn{
  margin-top:1.5rem;
  display:inline-flex; align-items:center; justify-content:center;
  inline-size:100%;
  padding:1.1rem 2rem;
  border:2px solid var(--ink); border-radius:999px;
  background:var(--tan); color:var(--ink);
  font-family:var(--body); font-size:1.1rem; font-weight:700; letter-spacing:-0.01em;
  text-decoration:none;
  cursor:pointer; box-shadow:3px 3px 0 var(--ink);
  transition:transform .14s ease, box-shadow .14s ease;
}
.btn:hover{ transform:translate(-2px,-2px); box-shadow:5px 5px 0 var(--ink); }
.btn:active{ transform:translate(1px,1px); box-shadow:1px 1px 0 var(--ink); }
@media (prefers-reduced-motion:reduce){ .btn,.btn:hover,.btn:active{ transition:none; transform:none; } }

.secure{ margin-top:1rem; font-family:var(--mono); font-size:.72rem; color:var(--ink-70); text-align:center; line-height:1.6; }
.opt-out{ margin-top:2rem; font-size:.9rem; color:var(--ink-70); }

/* The site's footer, rebuilt here so a private page does not end in a thin
   copyright strip while the rest of the site has a proper one. Same content,
   same shape; the markup is the plugin's so the theme cannot break it. */
.foot{
  border-top:2px solid var(--ink); background:var(--ink); color:var(--sage);
  padding-block:clamp(2.5rem,6vw,4rem) 2rem;
  padding-bottom:calc(2rem + env(safe-area-inset-bottom,0px));
  font-size:1rem;
}
/* The pages are a reading column; the footer is not. */
.foot .wrap{ max-width:1180px; }
.foot a{ color:var(--cream); text-decoration:none; border-bottom:1px solid rgba(246,247,253,.3); }
.foot a:hover{ border-bottom-color:var(--tan); }

.foot__grid{
  display:grid; gap:2rem;
  grid-template-columns:repeat(auto-fit, minmax(210px, 1fr));
  padding-bottom:2rem;
  border-bottom:1px solid rgba(185,194,232,.28);
}
.foot__grid h4{
  color:var(--cream); font-family:var(--display); font-weight:800;
  font-size:1rem; letter-spacing:-0.03em; margin:0 0 .9rem;
}
.foot__grid ul{ list-style:none; margin:0; padding:0; display:grid; gap:.5rem; font-size:.92rem; }
.foot__grid li{ margin:0; }
.foot__brand p{ font-size:.92rem; margin-top:.8rem; max-width:32ch; line-height:1.6; }

.foot__cta{
  display:inline-block; margin-top:.35rem;
  border:2px solid var(--ink) !important;
  border-radius:999px;
  background:var(--tan); color:var(--ink) !important;
  padding:.6rem 1.15rem;
  font-size:.9rem; font-weight:700;
}
.foot__cta:hover{ background:var(--sand); }

.foot__disclaimer{
  margin-top:1.5rem; font-size:.8rem; line-height:1.5;
  color:rgba(185,194,232,.75); max-width:70ch;
}

.foot__bottom{
  display:flex; flex-wrap:wrap; gap:1rem; justify-content:space-between;
  padding-top:1.5rem;
  font-family:var(--mono); font-size:.7rem;
  letter-spacing:.06em; text-transform:uppercase;
}

.foot__legal{ display:flex; flex-wrap:wrap; align-items:center; gap:.5rem; }
.foot__legal span{ opacity:.5; }

/* A footer this size has no business on a printed conversation. */
@media print{ .foot{ display:none; } }
