/* Winthem pricing page.

   Loaded after base.css and landing.css and only on /pricing. The plan card
   itself is NOT here — it lives in landing.css, because the landing shows the
   same two priced plans and one product must not have two card designs for one
   price. What is here is the page's own furniture: the head, the way the three
   plans are arranged, the calculator, and the billing rules.

   No literal colours: every value is a token from base.css. */

/* ── head ──────────────────────────────────────────────────────────────────

   Type on one side, a facts strip on the other. Everything a reader wants
   settled before looking at a number — what a unit is, how often the bot goes
   in, which currency, what the smallest payment is — labelled and in the data
   face, the way a control panel states its constants. */
.phero{
  display:grid;grid-template-columns:minmax(0,1.12fr) minmax(0,.88fr);
  gap:clamp(28px,6vw,72px);align-items:end;
  padding-top:clamp(2.5rem,5vw,4.5rem);
  padding-bottom:clamp(2.5rem,5vw,4rem);
}
.phero h1{margin-bottom:22px;max-width:15ch}
.phero .prose{max-width:46ch}
@media (max-width:900px){
  .phero{grid-template-columns:1fr;align-items:start}
}

.facts{
  display:grid;gap:1px;background:var(--line-soft);
  border:1px solid var(--line);border-radius:12px;overflow:hidden;
}
@media (min-width:560px){.facts{grid-template-columns:repeat(2,minmax(0,1fr))}}
.fact{display:grid;gap:5px;min-width:0;background:var(--surface);padding:15px 17px}
.fact dt{
  font-family:var(--f-mono);font-size:.6875rem;letter-spacing:.12em;
  text-transform:uppercase;color:var(--ink-2);
}
/* overflow-wrap and not nowrap: "Mindestaufladung" has to be allowed to break
   somewhere, and a cell sized to the longest translation would set the width
   of the whole strip. */
.fact dd{font-family:var(--f-mono);font-size:1rem;color:var(--ink);overflow-wrap:anywhere}

/* ── the grid ──────────────────────────────────────────────────────────────

   Two priced cards share the first row, and the custom tier runs the full
   width beneath them. It carries no number, so a third equal column would
   invite a comparison that cannot be made — and three equal cards in a row is
   the shape DESIGN.md rules out anyway. */
.plans-wrap{padding-top:0}
.plans.all{row-gap:clamp(16px,2.4vw,28px)}

.plan.wide{
  grid-column:1 / -1;
  display:grid;grid-template-columns:minmax(0,.88fr) minmax(0,1.12fr);
  gap:clamp(22px,4vw,54px);align-items:start;
}
.plan.wide .plan-side{display:flex;flex-direction:column;min-width:0}
.plan.wide .feat{margin-top:0}
@media (min-width:861px){
  .plan.wide .feat{grid-template-columns:repeat(2,minmax(0,1fr));column-gap:clamp(18px,2.4vw,34px)}
}
@media (max-width:860px){
  .plan.wide{grid-template-columns:1fr}
}
.talk-note{margin-top:14px;color:var(--ink-2);max-width:46ch}

/* ── calculator ────────────────────────────────────────────────────────────

   Placed explicitly rather than by source order: the control belongs under the
   heading it explains, and the totals stand beside both, full height. Below
   820px everything falls back into one column in source order. */
.calc{
  display:grid;grid-template-columns:minmax(0,.95fr) minmax(0,1.05fr);
  gap:clamp(20px,3vw,30px) clamp(26px,5vw,64px);align-items:start;
  border:1px solid var(--line);border-radius:12px;background:var(--surface);
  padding:clamp(22px,3.4vw,40px);box-shadow:var(--lift);
}
.calc-lead{grid-column:1;grid-row:1}
.calc-ctl{grid-column:1;grid-row:2}
.calc-out{grid-column:2;grid-row:1 / span 2}
.calc-hint{grid-column:1 / -1;grid-row:3;color:var(--ink-2);max-width:64ch}
@media (max-width:820px){
  .calc{grid-template-columns:1fr}
  .calc-lead,.calc-ctl,.calc-out,.calc-hint{grid-column:1;grid-row:auto}
}
.calc-lead h2{margin-bottom:10px}
.calc-lead .sm{max-width:44ch}

.calc-ctl .lbl{display:block;margin-bottom:9px;font-size:.875rem;font-weight:500;color:var(--ink)}
.stepper{display:inline-flex;align-items:center;gap:7px}
.sbtn{
  flex:none;display:inline-grid;place-items:center;width:46px;height:46px;
  border:1px solid var(--line);border-radius:8px;background:var(--raised);
  color:var(--ink-2);cursor:pointer;
  transition:color .18s var(--ease),border-color .18s var(--ease);
}
.sbtn:hover:not([disabled]){color:var(--ink);border-color:var(--faint)}
.sbtn:active:not([disabled]){transform:translateY(1px)}
.sbtn[disabled]{opacity:.45;cursor:not-allowed}
.sbtn svg{width:17px;height:17px}

.qnum{
  width:92px;min-height:46px;padding:0 8px;text-align:center;
  border:1px solid var(--line);border-radius:8px;
  background:var(--raised);color:var(--ink);
  font-family:var(--f-mono);font-size:1.0625rem;
  transition:border-color .18s var(--ease),box-shadow .18s var(--ease);
}
.qnum:focus{outline:none;border-color:var(--ember);box-shadow:0 0 0 3px var(--ember-ring)}
/* The native spinners are a pair of 12px targets glued to a 46px control. The
   two buttons beside the field are the control; these are only in the way. */
.qnum{appearance:textfield;-moz-appearance:textfield}
.qnum::-webkit-outer-spin-button,
.qnum::-webkit-inner-spin-button{-webkit-appearance:none;margin:0}
.qty-say{margin-top:11px;color:var(--ink-2)}

.calc-out{
  list-style:none;display:grid;gap:1px;align-content:start;
  background:var(--line-soft);border:1px solid var(--line);
  border-radius:12px;overflow:hidden;
}
.calc-out li{
  display:grid;grid-template-columns:minmax(0,1fr) auto;
  column-gap:16px;align-items:baseline;
  background:var(--raised);padding:16px 18px;
}
.calc-out .pn{min-width:0;font-weight:600;font-size:.9375rem}
/* A price is a figure read against the figure under it, so it is set in the
   data face and both are aligned on the same edge. */
.calc-out .pv{
  font-family:var(--f-mono);font-size:clamp(1.3rem,2.6vw,1.7rem);
  color:var(--ink);white-space:nowrap;
}
.calc-out .pu{
  grid-column:2;text-align:end;
  font-family:var(--f-mono);font-size:.6875rem;letter-spacing:.08em;color:var(--ink-2);
}

/* ── billing rules ─────────────────────────────────────────────────────────

   Rows under hairlines, the same shape the landing gives its ledger of losses:
   a list of conditions is not a set of cards. */
.bill{display:grid;grid-template-columns:minmax(0,.8fr) minmax(0,1.2fr);gap:clamp(26px,6vw,76px);align-items:start}
.bill-lead h2{max-width:13ch}
@media (max-width:900px){.bill{grid-template-columns:1fr}}

.rules{list-style:none;display:grid}
.rule-row{padding-block:clamp(16px,2.2vw,24px);border-top:1px solid var(--line)}
.rule-row:first-child{border-top:0;padding-top:0}
.rule-row h3{font-family:var(--f-display);font-weight:700;font-size:1.0625rem;letter-spacing:-.018em}
.rule-row p{margin-top:6px;color:var(--ink-2);font-size:.9375rem;max-width:58ch}

/* ── scripts we do not ship fonts for ──────────────────────────────────────

   Same call base.css and landing.css make: tracking drawn for Latin caps and
   small caps closes the columns up on CJK. */
:root[data-script="jp"] .rule-row h3,
:root[data-script="kr"] .rule-row h3,
:root[data-script="zh"] .rule-row h3{letter-spacing:0;line-height:1.4}
:root[data-script="jp"] .fact dt,:root[data-script="kr"] .fact dt,:root[data-script="zh"] .fact dt,
:root[data-script="jp"] .calc-out .pu,:root[data-script="kr"] .calc-out .pu,:root[data-script="zh"] .calc-out .pu{
  letter-spacing:.04em;
}
.trial-row{margin:0 0 16px}
