/* /invoice-simple-alternative/ (content/invoice-simple-alternative.mjs), v2 (D-1171).
   Built on the live home page (D-1079): the page is a main.rx and takes its type scale, buttons, bands,
   white ledger sheet, slider, chips and questions from assets/home3.css. This file adds only this page's
   pieces, every class prefixed isx-, so styles.css, home3.css and every other page are untouched.

   Surfaces follow the home page: paper, and two tinted bands. White sheets stand only on a band (Invoice
   Simple's price list, the month's bill); everything on the paper stands straight on it. */

body.isalt{background:var(--page)}
.isx a:not([class]){color:inherit;text-decoration:underline;text-decoration-thickness:1.5px;text-underline-offset:4px;text-decoration-color:color-mix(in srgb,currentColor 40%,transparent)}
.isx a:not([class]):hover{text-decoration-color:currentColor}

.isx-nb{white-space:nowrap}

/* ── first screen: the claim across the page, then the words at the left and the app at the right,
   standing on the band below, which cuts both screens off ── */
.isx-hero{padding-top:clamp(32px,3.4vw,56px)}
.isx-hero__h1{font-size:clamp(2.375rem,1.15rem + 3.55vw,4.25rem);line-height:1.03}
.isx-hero__grid{display:grid;grid-template-columns:minmax(0,7fr) minmax(0,5fr);gap:0 clamp(28px,4vw,64px);align-items:stretch}
.isx-hero__text{padding-bottom:var(--rx-gap)}
.isx-hero__sub{max-width:40rem;margin-top:clamp(16px,1.8vw,24px);text-wrap:pretty}
.isx-hero__sub strong{color:var(--ink);font-weight:600}
.rx-hero .isx-cta{justify-content:flex-start;margin-top:clamp(20px,2.2vw,28px)}
.rx-hero .isx-cta .rx-btn--quiet{margin-left:-8px}
.isx-hero__date{margin-top:14px;color:var(--rx-faint)}
.isx-hero__pics{display:flex;justify-content:flex-end;align-items:flex-end;gap:clamp(14px,1.6vw,22px)}
.isx-shot{display:block;flex:none;width:calc(50% - clamp(7px,.8vw,11px));max-width:290px;overflow:hidden;border-radius:clamp(26px,2.8vw,38px) clamp(26px,2.8vw,38px) 0 0;background:var(--rx-obj);
  box-shadow:0 1px 2px rgba(29,29,29,.07),0 30px 70px -34px rgba(29,29,29,.38)} /* taste-skill-ignore: the first screen's two product pictures, as on the home page */
.isx-shot img{display:block;width:100%;height:100%;object-fit:cover;object-position:top}
.isx-shot--a{aspect-ratio:600/1304}
.isx-shot--b{aspect-ratio:600/1140}

/* ── is it free: the question on the band, the price list on one white sheet ── */
.isx-plansec{padding-bottom:var(--rx-gap)}
.isx-split{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:28px var(--rx-col);align-items:start}
.isx-split__text{padding-right:clamp(0px,2.4vw,36px)}
.isx-split__text > p{max-width:33rem;margin-top:16px;text-wrap:pretty}
.isx-split__text > .rx-lead{margin-top:clamp(12px,1.4vw,18px);color:var(--ink)}
.isx-sheet{padding:var(--rx-pad);border-radius:var(--rx-r);background:var(--rx-obj)}
.isx-plans{width:100%;border-collapse:collapse;font-variant-numeric:tabular-nums}
.isx-plans caption{caption-side:top;text-align:left;text-wrap:balance;padding-bottom:10px;font-size:var(--t-small);font-weight:600;color:var(--rx-faint)}
.isx-plans th,.isx-plans td{padding:16px 0;text-align:left;vertical-align:baseline;border-bottom:1px solid var(--rx-line);font-weight:400}
.isx-plans tr > * + *{padding-left:16px}
.isx-plans thead th{padding:6px 0 12px;font-size:var(--t-small);font-weight:500;color:var(--rx-faint)}
.isx-plans thead th + th{padding-left:16px}
.isx-plans tbody th{font-weight:600}
.isx-plans .num{text-align:right;white-space:nowrap}
.isx-plans th small{display:none}
.isx-plans tfoot th,.isx-plans tfoot td{padding-top:22px;border-bottom:0;font-size:var(--t-lead);font-weight:700}
.isx-plans tfoot .num{font-family:var(--rx-display);letter-spacing:calc(var(--rx-track) * .5)}
.isx-plans tfoot .rx-key{display:inline-block;margin:0 10px 0 0;vertical-align:.12em}

.isx-why{margin-top:var(--rx-gap);margin-bottom:0}

/* ── side by side: one table on the paper, rows in words, Rivit's column named with its mark; the groups are
   headed in the page's own type, not small capitals ── */
.isx-cmpsec{padding-bottom:var(--rx-gap)}
.isx-cmpsec__h{margin-bottom:clamp(22px,3vw,40px)}
.isx-cmp{width:100%;border-collapse:separate;border-spacing:0;table-layout:fixed}
.isx-cmp th,.isx-cmp td{padding:17px 28px 17px 0;text-align:left;vertical-align:top;line-height:1.5;border-bottom:1px solid var(--rx-line);font-weight:400}
.isx-cmp tr > :first-child{width:26%}
.isx-cmp td,.isx-cmp thead th{padding-left:28px}
.isx-cmp thead td{padding-left:0}
.isx-cmp tbody th{font-weight:600}
.isx-cmp td strong{font-weight:700}
.isx-cmp td{text-wrap:pretty}
.isx-cmp tbody td:not(.isx-us){color:var(--rx-soft)}
.isx-cmp thead th,.isx-cmp thead td{position:sticky;top:58px;z-index:2;background:var(--page);padding-top:24px;padding-bottom:18px;
  font-family:var(--rx-display);font-size:var(--t-lead);font-weight:var(--rx-w);letter-spacing:-.015em;line-height:1.25;border-bottom-color:color-mix(in srgb,var(--ink) 55%,transparent)}
.isx-cmp .isx-cmp__grp > *{padding-top:clamp(28px,3vw,40px);padding-bottom:12px;border-bottom-color:color-mix(in srgb,var(--ink) 55%,transparent)}
.isx-cmp .isx-cmp__grp th{font-family:var(--rx-display);font-size:var(--t-lead);font-weight:var(--rx-w);letter-spacing:-.015em;line-height:1.25;white-space:nowrap}
.isx-cmp tbody:first-of-type .isx-cmp__grp > *{padding-top:22px}
.isx-mark{display:inline-grid;place-items:center;width:1.25em;height:1.25em;margin-right:.45em;border-radius:.32em;background:var(--ink);color:var(--page);font-size:.82em;font-weight:800;letter-spacing:0;vertical-align:.06em}
.isx-src{max-width:60rem;margin-top:18px;font-size:var(--t-small);line-height:1.6;color:var(--rx-soft);text-wrap:pretty}

/* ── the cost: the second band, laid out as the home page's sum. The controls are the home page's own slider
   and chips; the bill is one white sheet, a line for each choice, its total on the right ── */
.isx-costsec{padding-bottom:var(--rx-gap);scroll-margin-top:58px}
.isx-calc .rx-lead{color:var(--ink)}
.isx-ctl{padding-top:clamp(26px,3.2vw,40px)}
.isx-ctl[hidden]{display:none}
.isx-ctl__note{color:var(--rx-soft)}
.isx-ctl__q{display:flex;justify-content:space-between;align-items:baseline;gap:12px;margin-top:clamp(14px,1.8vw,22px)}
.isx-ctl__q label{font-size:var(--t-lead);color:var(--rx-soft)}
.isx-ctl__q output{font-variant-numeric:tabular-nums;font-family:var(--rx-display);font-size:var(--t-h2);font-weight:var(--rx-w);line-height:1.1;letter-spacing:calc(var(--rx-track) * .7)}
.isx-ctl .rx-range{margin-top:4px}
.isx-ex{grid-template-columns:repeat(2,minmax(0,1fr))}
.isx-bill .rx-ledger__head{margin-bottom:4px}
.isx-line{padding:18px 0;border-bottom:1px solid var(--rx-line)}
.isx-line__top{display:flex;align-items:baseline;gap:10px}
.isx-line__name{font-weight:600}
.isx-line__top > i{flex:1;min-width:14px;transform:translateY(-4px);border-bottom:2px dotted color-mix(in srgb,var(--ink) 24%,transparent)}
.isx-line__sum{font-variant-numeric:tabular-nums;font-family:var(--rx-display);font-size:var(--t-h2);font-weight:var(--rx-w);line-height:1.05;letter-spacing:calc(var(--rx-track) * .7)}
.isx-line__parts{max-width:30rem;margin-top:6px;font-size:var(--t-small);line-height:1.5;color:var(--rx-soft);text-wrap:pretty}
.isx-bill__note{margin-top:clamp(18px,2vw,24px);text-wrap:pretty}
.isx-bill .rx-fine{color:var(--rx-soft)}
.isx-bill .rx-fine a{color:inherit}
.isx-ctl .rx-range__ends{color:var(--rx-soft)}

/* ── where Invoice Simple does more: the heading and its sentence on the two columns, then the list across
   the page, two to a row, a line under each ── */
.isx-more__head{align-items:start}
.isx-more__head .rx-lead{color:var(--ink)}
.isx-list{list-style:none;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));column-gap:var(--rx-col);margin:0;padding:0}
.isx-list li{padding:15px 0;border-bottom:1px solid var(--rx-line);line-height:1.45;text-wrap:pretty}
.isx-more__rivit{margin-top:clamp(20px,2.4vw,30px);font-weight:600}

/* ── which one to pick: two equal answers on the paper, a line over each ── */
.isx-pick__grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:var(--rx-col);margin-top:clamp(24px,3vw,40px);align-items:start}
.isx-pick__col{padding-top:20px;border-top:1px solid var(--rx-line)}
.isx-pick__col h3{font-family:var(--rx-display);font-size:var(--t-lead);font-weight:var(--rx-w);line-height:1.2;letter-spacing:-.02em;text-wrap:balance}
.isx-pick__col p{max-width:34rem;margin-top:10px;text-wrap:pretty}

/* ── questions: the home page's block; the related pages sit quietly under the heading ── */
.isx-also{grid-area:more;max-width:26rem;margin-top:clamp(14px,2vw,26px)}
.isx-also h3{font-size:var(--t-body);font-weight:700}
.isx-also ul{list-style:none;margin:0;padding:0}
.isx-also li{margin-top:12px}
.isx-also a{font-weight:500}
.isx-also span{display:block;margin-top:2px;font-size:var(--t-small);line-height:1.45;color:var(--rx-soft)}

/* ── closing ── */
.rx .isx-closer{align-items:start}
.isx-closer__p{max-width:34rem;color:var(--ink);text-wrap:pretty}
.rx .isx-closer .rx-cta{margin-top:clamp(18px,2.2vw,26px)}
.rx .rx-closersec.isx-end{padding-bottom:clamp(32px,4vw,56px)}
.isx-tm{margin-top:clamp(44px,5vw,72px);font-size:var(--t-small);color:var(--rx-soft)}
.rx .faq summary{text-wrap:pretty}

/* ── narrower screens ── */
@media (max-width:1060px){
  /* the site header stops being sticky here, so the table's names stick to the very top */
  .isx-cmp thead th,.isx-cmp thead td{top:0}
}
@media (max-width:959px){
  .isx-hero__grid,.isx-split,.isx-pick__grid{grid-template-columns:minmax(0,1fr)}
  .isx-hero__text{padding-bottom:clamp(28px,5vw,44px)}
  .isx-hero__pics{justify-content:center}
  .isx-split__text{padding-right:0}
  .isx-hero__grid{grid-template-columns:minmax(0,1fr)}
  .isx-cmp th,.isx-cmp td{padding-right:18px}
  .isx-cmp td,.isx-cmp thead th{padding-left:18px}

}
@media (max-width:719px){
  .rx-hero.isx-hero{padding-bottom:0}
  .isx-hero__h1{font-size:2.5rem;line-height:1.04;text-wrap:pretty}
  .isx-hero__sub{font-size:1.0625rem}
  .isx-list{grid-template-columns:minmax(0,1fr)}
  .isx-shot--b{display:none}
  .isx-shot--a{width:min(78%,300px);aspect-ratio:600/1000}
  .rx-hero .isx-cta{align-items:flex-start}
  .rx-hero .isx-cta .rx-btn--quiet{margin-left:0;padding:0}
  /* the price list: each plan's limit under its name, so the two prices keep their own columns */
  .isx-plans .isx-plans__lim{display:none}
  .isx-plans th small{display:block;margin-top:2px;font-size:var(--t-small);font-weight:400;color:var(--rx-faint)}
  .isx-plans tfoot th small{color:var(--rx-soft)}
  .isx-plans tfoot th,.isx-plans tfoot td{font-size:var(--t-body)}
  /* the table: each row's name, then Rivit's answer, then Invoice Simple's, each named in its line */
  .isx-cmp,.isx-cmp tbody,.isx-cmp tr,.isx-cmp th,.isx-cmp td{display:block;width:auto}
  .isx-cmp tr > :first-child{width:auto}
  .isx-cmp thead{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
  .isx-cmp tbody tr{padding:16px 0;border-bottom:1px solid var(--rx-line)}
  .isx-cmp tbody tr.isx-cmp__grp{padding:0;border-bottom:0}
  .isx-cmp tbody th{padding:0 0 6px;border-bottom:0}
  .isx-cmp tbody td{padding:0;border-bottom:0;font-size:var(--t-body);line-height:1.5}
  .isx-cmp tbody td + td{margin-top:6px}
  .isx-cmp tbody td::before{content:attr(data-col) ": ";font-weight:600;color:var(--ink)}
  .isx-cmp .isx-cmp__grp > td{display:none}
  .isx-cmp .isx-cmp__grp th{padding:30px 0 10px;border-bottom:1px solid color-mix(in srgb,var(--ink) 55%,transparent);white-space:normal}
  .isx-cmp tbody:first-of-type .isx-cmp__grp th{padding-top:0}
  .rx .isx-closer .rx-cta{flex-direction:column;align-items:flex-start;gap:2px}
  .rx .isx-closer .rx-btn--quiet{padding:0;min-height:44px}
  .isx-ctl__q label{font-size:var(--t-body)}
  .isx-line__top{flex-wrap:wrap}
  .isx-line__top > i{display:none}
  .isx-line__name{flex:1 1 auto}
  .isx-line__sum{margin-left:auto}
}

@media (prefers-reduced-motion:reduce){
  .isx *,.isx *::before,.isx *::after{transition-duration:.01ms!important;animation-duration:.01ms!important}
}

/* the closing headline never outgrows the first one */
.rx .isx-closer h2{font-size:min(clamp(2.375rem,1.15rem + 3.55vw,4.25rem),6.3cqw)}
@media (max-width:959px){ .rx .isx-closer h2{font-size:min(clamp(2.375rem,1.15rem + 3.55vw,4.25rem),9.4cqw)} }
@media (max-width:719px){ .rx .isx-closer h2{font-size:var(--t-peak)} }
