/* Round 12 (brand-round-12): D53 a (shorter pages, layout only), D57 a (rails draw once) and D58 a (the "Lesson 1 free"
   bar on phones). Loaded after brand.css on every page. Nothing here changes words; the r12_* words live in lang/*.php.
   The six-block homepage (D54 a) was not picked: Eddie kept the homepage as it was. */

/* ======================= D53 a · shorter pages, layout only ======================= */
/* The phone footer in two columns, social icons in one row: about 1,184 px down to about 650 on every page */
@media (max-width:600px){
  footer.main-footer{padding:36px 18px 16px!important}
  footer.main-footer .footer-content{grid-template-columns:minmax(0,1fr) minmax(0,1fr)!important;gap:26px 18px!important;margin-bottom:16px!important;padding-bottom:22px!important}
  footer.main-footer .footer-about,footer.main-footer .footer-social,footer.main-footer .footer-support{grid-column:1/-1}
  footer.main-footer .footer-logo{margin-bottom:6px}
  footer.main-footer .footer-description{font-size:14px!important;line-height:1.55!important;margin:0}
  footer.main-footer .footer-section{gap:10px}
  footer.main-footer .footer-title{margin:0 0 4px!important;font-size:13px!important}
  footer.main-footer .footer-list{gap:10px}
  footer.main-footer .footer-list a,footer.main-footer .contact-item{font-size:14.5px}
  footer.main-footer .footer-contact{gap:10px}
  footer.main-footer .contact-item a{overflow-wrap:anywhere}
  footer.main-footer .social-links{flex-direction:row;flex-wrap:wrap;gap:6px}
  footer.main-footer .social-link{width:44px;height:44px;justify-content:center;padding:0;border:1px solid #2c3238}
  footer.main-footer .social-link span{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
  footer.main-footer .footer-bottom{padding-top:6px}
}


/* Contact: the six "I'm a…" choices as two columns of chips (the hint lines stay on laptops) */
#ca .tb-strip{grid-template-columns:repeat(2,minmax(0,1fr));padding-left:0;gap:8px}
#ca .tb-rail,#ca .tb-w,#ca .tb-n,#ca .tb-or{display:none!important}
#ca .tb-t{grid-template-columns:22px minmax(0,1fr);gap:10px;min-height:52px;padding:10px 12px}
#ca .tb-t .tb-ok{display:none}
#ca .tb-x b{line-height:1.25}
@media (max-width:600px){#ca .tb-x small{display:none}#ca .tb-t{min-height:48px;padding:8px 10px}}

/* FAQ: questions fold (one open at a time); the six category buttons become one row of chips */
.r12-faq-cats{display:flex!important;flex-wrap:wrap;gap:8px!important;margin-bottom:28px!important}
.r12-faq-cats .faq-category-btn{padding:9px 14px!important;border-radius:0!important;font:600 14px Inter,system-ui,sans-serif!important;min-height:44px}
@media (max-width:600px){.r12-faq-cats{flex-wrap:nowrap;overflow-x:auto;margin:0 -16px 20px!important;padding:0 16px 6px;scrollbar-width:none}.r12-faq-cats .faq-category-btn{flex:0 0 auto}}
#faq-container{gap:0!important;margin-top:0!important;border-top:1px solid #d9dee4}
#faq-container .faq-item.r12-faq{padding:0!important;border:0!important;border-bottom:1px solid #d9dee4!important;border-radius:0!important;box-shadow:none!important;background:transparent!important}
.r12-faq h3{margin:0!important;font-size:inherit!important}
.r12-faq-q{display:flex;align-items:center;justify-content:space-between;gap:16px;width:100%;text-align:left;background:none;border:0;padding:18px 2px;font:600 18px/1.35 "Roboto Slab",Georgia,serif;color:#0a0a0a;cursor:pointer}
.r12-faq-x{position:relative;flex:0 0 18px;height:18px}
.r12-faq-x::before,.r12-faq-x::after{content:"";position:absolute;left:0;right:0;top:8px;height:2px;background:#001a33}
.r12-faq-x::after{transform:rotate(90deg)}
.r12-faq.is-open .r12-faq-x::after{transform:rotate(0)}
@media (prefers-reduced-motion:no-preference){.r12-faq-x::after{transition:transform .2s var(--tx-ease)}}
.r12-faq-a{padding:0 2px 20px}
.r12-faq-a p{margin:0!important;max-width:68ch}
@media (max-width:600px){.r12-faq-q{font-size:16.5px;padding:16px 0}}
html.dark-mode .r12-faq-q,[data-theme="dark"] .r12-faq-q{color:#f0f0f0}
html.dark-mode .r12-faq-x::before,html.dark-mode .r12-faq-x::after,[data-theme="dark"] .r12-faq-x::before,[data-theme="dark"] .r12-faq-x::after{background:#f0f0f0}
html.dark-mode #faq-container,html.dark-mode #faq-container .faq-item.r12-faq,[data-theme="dark"] #faq-container,[data-theme="dark"] #faq-container .faq-item.r12-faq{border-color:#2c3238!important}

/* For Partners: the optional contractor questions behind "Add details" */
.r12-more{display:flex;align-items:center;gap:10px;width:100%;background:transparent;border:1.5px dashed rgba(0,26,51,.35);padding:14px 16px;margin:4px 0 18px;font:600 15px Inter,system-ui,sans-serif;color:#001a33;cursor:pointer;text-align:left}
.r12-more small{font-weight:400;color:#5b6570;font-size:14px}
.r12-more-p{position:relative;width:14px;height:14px;flex:0 0 auto}
.r12-more-p::before,.r12-more-p::after{content:"";position:absolute;left:0;right:0;top:6px;height:2px;background:#c9a227}
.r12-more-p::after{transform:rotate(90deg)}
.r12-more[aria-expanded="true"] .r12-more-p::after{transform:rotate(0)}
.r12-more[hidden]{display:none}
.r12-folded{display:none!important}

/* Plans (opens in January): the $29 card first on phones */
@media (max-width:900px){.pay-page .pay-hero{padding-top:40px!important;padding-bottom:36px!important}} /* Oct 18: Free comes first again on phones (the pass-first order from D53 a is out) */

/* ======================= D58 a · the sticky "Lesson 1 free" bar on phones ======================= */
.r12-bar{display:none}
@media (max-width:760px){
  .r12-bar{display:flex;position:fixed;left:10px;right:10px;bottom:calc(10px + env(safe-area-inset-bottom));z-index:900;align-items:center;justify-content:space-between;gap:10px;background:#001a33;color:#fff;padding:8px 8px 8px 14px;box-shadow:0 0 0 1px rgba(255,255,255,.22),0 6px 24px rgba(0,12,26,.35);border-left:3px solid #c9a227;transform:translateY(140%);opacity:0;pointer-events:none}
  .r12-bar.on{transform:none;opacity:1;pointer-events:auto}
  .r12-bar p{margin:0;display:flex;flex-direction:column;line-height:1.2;min-width:0}
  .r12-bar b{font:700 15px Inter,system-ui,sans-serif;color:#fff}
  .r12-bar span{font:12.5px Inter,system-ui,sans-serif;color:#9fb3c8;margin-top:3px}
  .r12-bar a{display:inline-flex;align-items:center;gap:8px;background:#c9a227;color:#001a33!important;font:700 14.5px Inter,system-ui,sans-serif;text-decoration:none;padding:0 14px;min-height:44px;white-space:nowrap;clip-path:polygon(0 0,calc(100% - 10px) 0,100% 10px,100% 100%,0 100%)}
  .r12-bar a svg{width:10px;height:10px}
  @media (prefers-reduced-motion:no-preference){.r12-bar{transition:transform .28s var(--tx-ease),opacity .2s ease}}
}

/* ======================= D57 a · the rails draw once and stay drawn ======================= */
html.r12-once .tx-sign p::after,html.r12-once .solution-grid::before,html.r12-once .hiw-steps-grid::before{animation:none!important;transform:scaleX(0)}
@media (max-width:768px){html.r12-once .solution-grid::before,html.r12-once .hiw-steps-grid::before{transform:scaleY(0)}}
html.r12-once .r12-in.tx-sign p::after,html.r12-once .r12-in.solution-grid::before,html.r12-once .r12-in.hiw-steps-grid::before{transform:none}
@media (prefers-reduced-motion:no-preference){
  html.r12-once .tx-sign p::after{transition:transform .7s cubic-bezier(.4,.1,.2,1) .1s}
  html.r12-once .solution-grid::before,html.r12-once .hiw-steps-grid::before{transition:transform 1.1s cubic-bezier(.4,.1,.2,1) .1s}
  /* the arrows and the end mark wait for the line: round12.js sets --r12-d to the moment the line reaches each one */
  html.r12-once .solution-grid .tx-jx,html.r12-once .solution-grid .tx-jend,html.r12-once .hiw-steps-grid .tx-jx,html.r12-once .hiw-steps-grid .tx-jend{opacity:0;transition:opacity .22s ease var(--r12-d,.6s)}
  html.r12-once .r12-in .tx-jx,html.r12-once .r12-in .tx-jend{opacity:1}
}
/* How It Works on laptops: the step titles and text lost an old 52px indent left over from the icon layout, so they line up
   with their number boxes the way the homepage steps do */
.hiw-card .hiw-card-title,.hiw-card .hiw-card-desc,.hiw-card .hiw-card-link{padding-left:0!important;margin-left:0!important}
.hiw-card .hiw-card-title{padding-right:0!important}

#ca .tb-x b{hyphens:auto;-webkit-hyphens:auto;overflow-wrap:anywhere}
@media (max-width:420px){#ca .tb-t{grid-template-columns:18px minmax(0,1fr);gap:8px;padding:8px}#ca .tb-x b{font-size:15px}}
.r12-faq-q{text-wrap:pretty}

/* Homepage banners: the old phrase now fades out before the next fades in. They used to cross-fade in the same spot,
   so for most of a second two phrases sat on top of each other. Same words, same timing between phrases. */
.rotating-banner-section .rotating-banner-text{transition:opacity .4s ease,transform .4s ease!important}
.rotating-banner-section .rotating-banner-text.active{transition-delay:.4s!important}

/* "Add details" in dark mode (the For Partners card turns dark) */
html.dark-mode .r12-more,[data-theme="dark"] .r12-more{color:#f0f0f0;border-color:rgba(240,240,240,.45)}
html.dark-mode .r12-more small,[data-theme="dark"] .r12-more small{color:#b8c0c8}
/* the phone bar can't be reached by keyboard or screen reader until it shows (also with no JavaScript) */
.r12-bar[hidden]{display:none!important}
@media (max-width:760px){.r12-bar:not(.on){visibility:hidden}}
@media (max-width:760px) and (prefers-reduced-motion:no-preference){.r12-bar{transition:transform .28s var(--tx-ease),opacity .2s ease,visibility 0s linear .28s}.r12-bar.on{transition-delay:0s}}
