/* Hallmark · shape: checkout as a short landing page · genre: modern-minimal · theme: Dusk (by request) · redesign: full
 * nav: the wordmark and Sign in only · footer: the landing page's, unchanged · job: pay
 * the price and Pay on a bone well on the first screen, then the reasons, then the price and Pay once more
 * one filled action a screen: Pay */

/* The checkout (cart.html). One product is sold, so it reads as an offer and
   not as a basket. On top of tokens.css and site.css, which give it the nav,
   the footer, .btn, .icon, .perks and .faq; this file names no
   colour and no face of its own. The order well and the closing Pay are drawn
   by assets/js/pages/checkout.js. */

/* ---- the first screen: what it is on the left, the price and Pay on the right ---- */
.co-top{padding:var(--space-xl) 0 var(--space-3xl);}
.co-top-grid{display:grid;grid-template-columns:minmax(0, 7fr) minmax(0, 5fr);
  grid-template-areas:"head order" "facts order";grid-template-rows:auto 1fr;
  column-gap:var(--space-2xl);row-gap:var(--space-xl);align-items:start;}
.co-head{grid-area:head;display:flex;flex-direction:column;gap:var(--space-md);padding-top:var(--space-lg);}
.co-head h1{font-size:var(--text-section);line-height:1.08;max-width:18ch;}
.co-order{grid-area:order;min-width:0;}
.co-facts{grid-area:facts;list-style:none;margin:0;padding:0;display:flex;flex-direction:column;
  border-bottom:1px solid var(--surface-3);max-width:40rem;}
.co-facts li{display:flex;align-items:flex-start;gap:var(--space-sm);padding:var(--space-md) 0;border-top:1px solid var(--surface-3);color:var(--dim-2);}
.co-facts .icon{margin-top:var(--space-3xs);color:var(--brand);}
.co-facts b{color:var(--paper);font-weight:600;}
.co-facts a{color:var(--paper);font-weight:500;text-decoration:underline;text-decoration-color:var(--dim);text-underline-offset:0.16em;white-space:nowrap;}
.co-facts a:hover{text-decoration-color:var(--brand);}

/* ---- the wells: anything that is read sits on bone ---- */
.co-well{background:var(--paper);color:var(--ink);border-radius:var(--radius-card);padding:var(--space-xl);color-scheme:light;}
.co-well h2{color:var(--ink);}
.co-well a{color:var(--brand-deep);}
.co-well a:hover{color:var(--ink);}
.co-well :focus-visible{outline-color:var(--brand-deep);}
/* the one filled action, deepened for the light ground as on the price card */
.co-well .btn{background:var(--brand-deep);border-color:var(--brand-deep);color:var(--paper-3);}
.co-well .btn:hover{background:var(--ink);border-color:var(--ink);color:var(--paper-3);}
/* a phone keeps :hover after a tap, so Pay turned black once pressed */
@media (hover:none){ .co-well .btn:hover{background:var(--brand-deep);border-color:var(--brand-deep);} }
.co-loading p{color:var(--ink-soft);}
.co-fine{margin-top:var(--space-md);font-size:var(--text-sm);color:var(--ink-soft);max-width:44ch;}

/* quiet controls: outlined on a well, never filled */
.co-quiet{display:inline-flex;align-items:center;justify-content:center;min-height:44px;padding:0 var(--space-md);
  border-radius:var(--radius-pill);border:1px solid var(--rule);background:var(--paper-3);color:var(--ink);
  font-size:var(--text-sm);font-weight:600;white-space:nowrap;}
.co-quiet:hover{border-color:var(--ink-soft);}
.co-link{padding:var(--space-xs) 0;border:0;background:none;color:var(--brand-deep);font-size:var(--text-sm);font-weight:600;
  text-decoration:underline;text-underline-offset:0.16em;}
.co-link:hover{color:var(--ink);}

/* ---- the offer: the plan, the price, Pay, and what makes Pay safe to press ---- */
.co-plan{display:flex;flex-direction:column;gap:var(--space-3xs);}
.co-plan b{font-family:var(--font-display);font-size:var(--text-xl);font-weight:500;line-height:1.2;color:var(--ink);}
.co-plan span{font-size:var(--text-sm);color:var(--ink-soft);}
.co-rows{margin-top:var(--space-md);}
.co-sum-row{display:flex;justify-content:space-between;gap:var(--space-md);padding:var(--space-xs) 0;color:var(--ink-soft);}
.co-sum-row .v{color:var(--ink);font-variant-numeric:tabular-nums;white-space:nowrap;}
.co-figure{display:flex;flex-wrap:wrap;align-items:baseline;gap:var(--space-md);margin-top:var(--space-md);}
.co-total-value{font-family:var(--font-display);font-weight:500;font-size:clamp(3.5rem, 6vw, 5rem);line-height:.95;
  letter-spacing:var(--tracking-display);color:var(--ink);font-variant-numeric:tabular-nums;}
/* the two plans, a switch above the order: the year first */
.co-choose{display:grid;grid-template-columns:1fr 1fr;gap:var(--space-2xs);padding:var(--space-2xs);margin-bottom:var(--space-md);
  border-radius:var(--radius-inner);background:var(--paper-2);margin-top:var(--space-sm);}
.co-opt{position:relative;display:flex;flex-direction:column;align-items:center;gap:var(--space-3xs);min-height:56px;padding:var(--space-xs);
  border:0;border-radius:var(--radius-inner);background:transparent;color:var(--ink-soft);font:inherit;cursor:pointer;}
.co-best{position:absolute;top:0;left:50%;transform:translate(-50%, -60%);padding:var(--space-3xs) var(--space-xs);border-radius:var(--radius-pill);
  background:var(--brand-deep);color:var(--paper-3);font-size:var(--text-xs);font-style:normal;font-weight:600;line-height:1.3;white-space:nowrap;}
.co-opt b{font-weight:600;color:var(--ink);}
.co-opt span{font-size:var(--text-sm);font-variant-numeric:tabular-nums;}
.co-opt:hover b{color:var(--brand-deep);}
.co-opt.is-on{background:var(--paper-3);box-shadow:0 0 0 2px var(--brand-deep);}
.co-opt:focus-visible{outline:2px solid var(--brand-deep);outline-offset:2px;}
.co-permonth{font-size:var(--text-sm);color:var(--ink-soft);font-variant-numeric:tabular-nums;}
.co-was{font-size:var(--text-xl);color:var(--ink-soft);font-variant-numeric:tabular-nums;}

.co-code{margin-top:var(--space-sm);}
.co-code-open.is-open{display:none;}
.co-code-form{display:none;gap:var(--space-xs);}
.co-code-form.on{display:flex;}
.co-code-form input{flex:1;min-width:0;min-height:44px;padding:0 var(--space-md);border-radius:var(--radius-pill);
  border:1px solid var(--rule);background:var(--paper-3);color:var(--ink);}
.co-code-form input:focus-visible{outline:2px solid var(--brand-deep);outline-offset:1px;}
.co-code-msg{display:none;margin-top:var(--space-xs);font-size:var(--text-sm);}
.co-code-msg.on{display:block;}
.co-code-msg.bad{color:var(--magenta);}
.co-code-live{display:flex;align-items:center;gap:var(--space-xs);padding:var(--space-sm) var(--space-md);
  border-radius:var(--radius-inner);background:var(--paper-2);font-size:var(--text-sm);color:var(--ink);}
.co-code-live .icon{width:20px;height:20px;color:var(--green);}
.co-code-live > span:not(.icon){flex:1;min-width:0;}
.co-code-live .co-link{flex:0 0 auto;}

.co-pay{width:100%;margin-top:var(--space-md);}
.co-assure{list-style:none;margin:var(--space-md) 0 0;padding:0;display:flex;flex-direction:column;gap:var(--space-xs);
  font-size:var(--text-sm);color:var(--ink-soft);}
.co-assure li{display:flex;align-items:flex-start;gap:var(--space-xs);}
.co-assure .icon{width:18px;height:18px;margin-top:var(--space-3xs);color:var(--green);}
.co-assure b{color:var(--ink);font-weight:600;}
.co-note{margin-top:var(--space-md);padding-top:var(--space-md);border-top:1px solid var(--rule);font-size:var(--text-sm);color:var(--ink-soft);}
.co-note b{color:var(--ink);overflow-wrap:anywhere;}
.co-note a{white-space:nowrap;}

/* ---- notes: a change we made, the answer from a Pay button ---- */
.co-msg{display:none;gap:var(--space-sm);align-items:flex-start;padding:var(--space-md);border-radius:var(--radius-inner);
  background:var(--surface-2);color:var(--dim-2);}
.co-msg.on{display:flex;}
.co-msg > .icon{width:20px;height:20px;margin-top:var(--space-3xs);color:var(--brand);}
.co-msg strong{display:block;color:var(--paper);}
.co-msg p{font-size:var(--text-sm);}
.co-msg + .co-well{margin-top:var(--space-md);}
/* inside a well it is read on bone */
.co-well .co-msg{margin-top:var(--space-md);background:var(--paper-2);color:var(--ink-soft);}
.co-well .co-msg strong{color:var(--ink);}
.co-well .co-msg > .icon{color:var(--brand-deep);}

/* everything is already on the account */
.co-owned{display:flex;flex-direction:column;align-items:flex-start;gap:var(--space-md);}
.co-owned h2{font-size:var(--text-xl);line-height:1.2;}
.co-owned p{color:var(--ink-soft);}

/* ---- below the fold: the reasons ---- */
.co-section{padding-top:var(--space-3xl);}
#coMore > .co-section:first-child{padding-top:0;}
.co-h2{margin-bottom:var(--space-xl);}
.co-inside{display:grid;grid-template-columns:minmax(0, 5fr) minmax(0, 7fr);gap:var(--space-2xl);align-items:start;padding:var(--space-2xl);}
.co-inside ul{list-style:none;margin:0;padding:0;}
.co-inside li{padding:var(--space-sm) 0;border-top:1px solid var(--rule);}
.co-inside li:first-child{border-top:0;padding-top:0;}

/* the price and Pay once more, at the end */
.co-end{display:grid;grid-template-columns:minmax(0, 7fr) minmax(0, 5fr);gap:var(--space-2xl);align-items:end;}
.co-end h2{max-width:16ch;}
.co-end-pay{display:flex;flex-direction:column;align-items:flex-start;gap:var(--space-sm);}
.co-end-price{font-family:var(--font-display);font-weight:500;font-size:var(--text-section);line-height:1;
  letter-spacing:var(--tracking-display);color:var(--paper);font-variant-numeric:tabular-nums;}
.co-end-pay p{color:var(--dim-2);}
.co-end-pay .btn{width:100%;}
.co-last .price-free{margin-top:var(--space-2xl);}

@media (max-width:60rem){
  /* one column: headline, then the price and Pay, then the two facts */
  .co-top-grid{grid-template-columns:minmax(0, 1fr);grid-template-areas:"head" "order" "facts";grid-template-rows:auto;
    row-gap:var(--space-lg);}
  .co-head{padding-top:0;}
  .co-inside, .co-end{grid-template-columns:minmax(0, 1fr);gap:var(--space-lg);}
}
@media (max-width:40rem){
  .co-top{padding-top:var(--space-md);}
  .co-head{gap:var(--space-sm);}
  .co-head .lead{font-size:var(--text-md);}
  .co-well, .co-inside{padding:var(--space-lg);}
  .co-section{padding-top:var(--space-2xl);}
  .co-top{padding-bottom:var(--space-2xl);}
}
.co-facts[hidden]{display:none;}

/* ---- phones (2026-11-20 mobile pass) ---- */
/* Sign in / My course is the only menu here: a 44px target, centred in the bar */
.nav-side a{display:inline-flex;align-items:center;min-height:44px;}
/* the quiet links in the order well (discount code, remove code) are pressed
   with a thumb: 44px tall on a touch screen */
@media (pointer:coarse){
  .co-link{display:inline-flex;align-items:center;min-height:44px;padding:0;}
  .co-code{margin-top:var(--space-xs);}
}
/* 320 to 360 wide, signed in: the logo and "My course" did not fit side by
   side and the link ran off the right edge */
@media (max-width:22.5rem){
  .site-nav .wrap{gap:var(--space-sm);}
  .site-nav .wordmark img, .site-nav .wordmark svg{height:26px;}
}
/* a phone on its side: two columns again, so Pay is on the first screen and
   not under a 390px fold */
@media (orientation:landscape) and (max-height:30rem) and (min-width:40rem){
  .co-top{padding-top:var(--space-md);}
  .co-top-grid{grid-template-columns:minmax(0, 7fr) minmax(0, 5fr);grid-template-areas:"head order" "facts order";
    grid-template-rows:auto 1fr;column-gap:var(--space-xl);}
  .co-head .lead{font-size:var(--text-md);}
  .co-well{padding:var(--space-lg);}
  .co-total-value{font-size:var(--text-3xl);}
  .co-figure{margin-top:var(--space-xs);}
}
