/* ===========================================================================
   Be Online — web service offering (Be Digital Service template):
   website packages, monthly care plans and the skills grid on
   /customised-website/. Loaded after chrome.css, tokens only, dark-mode safe.
   =========================================================================== */

/* ---------------------------------------------------------------------------
   Compact service hero: headline + lede + actions on the left, starting
   prices in a panel on the right, the three reasons as a strip underneath.
   No width caps on the text — it runs the full container.
   --------------------------------------------------------------------------- */
.bo-svch-inner{display:grid;grid-template-columns:minmax(0,1fr);gap:22px 56px;padding-top:clamp(26px,2.6vw,42px);padding-bottom:clamp(22px,2.2vw,32px)}
.bo-svch-main{min-width:0}
.bo-svch .bo-cap{margin-bottom:10px}
.bo-svch .bo-sec-intro{max-width:none;margin-top:12px;font-size:var(--be-lede);line-height:1.55}
.bo-svch .bo-sec-cta{margin-top:20px}
.bo-svch .bo-sec-note{margin-top:12px;font-size:var(--be-small)}

/* price panel */
.bo-svch-panel{display:flex;flex-direction:column;gap:6px;padding:14px;border:1px solid var(--hair);border-radius:20px;background:var(--surface);box-shadow:var(--sh-md)}
.bo-svch-panel-h{margin:2px 6px 4px;font:600 12px/1 "JetBrains Mono",ui-monospace,monospace;letter-spacing:.14em;text-transform:uppercase;color:var(--muted)}
.bo-svch-price{display:grid;grid-template-columns:42px minmax(0,1fr) auto;align-items:center;gap:12px;min-height:64px;padding:10px 12px;border-radius:14px;color:var(--ink);text-decoration:none;transition:background-color .15s}
.bo-svch-price:hover{background:var(--surface-2)}
.bo-svch-ic{display:grid;place-items:center;width:42px;height:42px;border-radius:12px;background:var(--surface-2);color:var(--accent)}
.bo-svch-tx{display:flex;flex-direction:column;min-width:0}
.bo-svch-tx small{font-size:13.5px;line-height:1.3;color:var(--muted)}
.bo-svch-tx b{font:800 26px/1.1 "Bricolage Grotesque",system-ui,sans-serif;letter-spacing:-.02em;color:var(--ink)}
.bo-svch-tx b::before{content:"from ";font:500 13.5px "Hanken Grotesk",system-ui,sans-serif;letter-spacing:0;color:var(--muted)}
.bo-svch-tx i{font:500 14px "Hanken Grotesk",system-ui,sans-serif;font-style:normal;letter-spacing:0;color:var(--muted)}
.bo-svch-go{color:var(--accent);transition:transform .15s}
.bo-svch-price:hover .bo-svch-go{transform:translateX(3px)}
.bo-svch-fine{margin:6px 6px 2px;padding-top:10px;border-top:1px solid var(--hair);font-size:13px;line-height:1.5;color:var(--muted)}

/* the three reasons, as one slim strip across the bottom of the hero */
.bo-svch-points{grid-column:1/-1;list-style:none;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px 32px;margin:0;padding:18px 0 0;border-top:1px solid var(--hair)}
.bo-svch-points li{display:flex;gap:11px;align-items:flex-start;font-size:15px;line-height:1.5;color:var(--ink-soft)}
.bo-svch-points b{display:block;margin-bottom:1px;font-weight:600;color:var(--ink)}
.bo-svch-tick{flex:none;display:grid;place-items:center;width:22px;height:22px;margin-top:1px;border-radius:999px;background:color-mix(in srgb,var(--accent) 14%,transparent);color:var(--accent)}

@media (min-width:1000px){
  .bo-svch.has-panel .bo-svch-inner{grid-template-columns:minmax(0,1fr) minmax(320px,400px);align-items:center}
}
@media (max-width:999px){
  .bo-svch-panel{display:grid;grid-template-columns:1fr 1fr;gap:6px}
  .bo-svch-panel-h,.bo-svch-fine{grid-column:1/-1}
  /* tablets and phones: the three reasons as titles only (bodies stay in the
     DOM for screen readers), one row on a tablet */
  .bo-svch-points{gap:10px 20px;padding-top:16px}
  .bo-svch-points li{align-items:center;font-size:0}
  .bo-svch-points b{margin:0;font-size:15px;line-height:1.35}
}
@media (max-width:640px){
  .bo-svch-inner{gap:18px;padding-top:22px;padding-bottom:20px}
  .bo-svch .bo-sec-cta{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin-top:18px}
  .bo-svch .bo-sec-cta .bo-btn{width:auto;padding-inline:10px;font-size:15px}
  .bo-svch-panel{padding:10px;border-radius:18px}
  .bo-svch-panel-h{display:none}
  .bo-svch-price{grid-template-columns:minmax(0,1fr);min-height:0;padding:10px;gap:0;background:var(--surface-2)}
  .bo-svch-ic,.bo-svch-go{display:none}
  .bo-svch-tx small{font-size:12.5px}
  .bo-svch-tx b{font-size:22px}
  .bo-svch-fine{margin:4px 2px 0;padding-top:8px;font-size:12.5px}
  /* phones: the three titles stacked, one line each */
  .bo-svch-points{grid-template-columns:1fr;gap:8px;padding-top:14px}
}

/* plan sections */
.bo-offer{background:var(--ground);border-top:1px solid var(--hair);border-bottom:1px solid var(--hair)}
.bo-offer-care{background:var(--surface)}
.bo-offer-inner{max-width:var(--maxw);margin:0 auto;padding:var(--be-sec-y) var(--be-gutter)}
/* section heads run the full container: no width cap on the heading or the lede */
.bo-offer-head{max-width:none;margin:0 0 30px}
.bo-offer-head .bo-cap{font-family:"JetBrains Mono",ui-monospace,monospace;font-size:var(--be-eyebrow);letter-spacing:.14em;text-transform:uppercase;color:var(--accent);margin:0 0 12px}
.bo-offer-head h2{font-family:"Bricolage Grotesque",Georgia,serif;font-size:var(--be-h2);line-height:var(--be-h2-lh);letter-spacing:-.015em;margin:0;color:var(--ink)}
.bo-offer-lede{font-size:var(--be-lede);line-height:var(--be-lede-lh);color:var(--ink-soft);margin:14px 0 0}

/* plan cards */
.bo-ocards{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px;align-items:stretch;padding-top:14px}
.bo-ocard{position:relative;display:flex;flex-direction:column;padding:26px 22px 22px;border:1px solid var(--hair);border-radius:22px;background:var(--surface);box-shadow:var(--sh-md)}
.bo-ocard.is-rec{border-color:var(--accent);box-shadow:0 22px 48px -30px rgba(15,123,60,.55)}
.bo-ocard-tag{position:absolute;top:-13px;left:22px;padding:5px 11px;border-radius:999px;background:var(--grad);color:#fff;font:700 12px/1.3 "Bricolage Grotesque",system-ui,sans-serif;letter-spacing:.05em;text-transform:uppercase}
.bo-ocard h3{font-family:"Bricolage Grotesque",Georgia,serif;font-size:var(--be-h3);line-height:var(--be-h3-lh);letter-spacing:-.01em;margin:0;color:var(--ink)}
.bo-ocard-for{font-size:var(--be-small);line-height:1.5;color:var(--muted);margin:6px 0 0}
.bo-ocard-price{display:flex;align-items:baseline;gap:6px;margin:16px 0 0;padding-top:16px;border-top:1px solid var(--hair);color:var(--ink)}
.bo-ocard-price b{font-family:"Bricolage Grotesque",system-ui,sans-serif;font-weight:800;font-size:2.1rem;letter-spacing:-.02em;line-height:1}
.bo-ocard-price small{font-size:var(--be-small);color:var(--muted)}
.bo-ocard-list{list-style:none;margin:16px 0 20px;padding:0;display:flex;flex-direction:column;gap:9px;flex:1}
.bo-ocard-list li{display:flex;gap:9px;align-items:flex-start;font-size:15px;line-height:1.45;color:var(--ink-soft)}
.bo-ocard-tick{flex:none;display:grid;place-items:center;width:20px;height:20px;margin-top:1px;border-radius:999px;background:color-mix(in srgb,var(--accent) 14%,transparent);color:var(--accent)}
.bo-ocard .bo-btn{margin-top:auto;width:100%;justify-content:center}
.bo-ocards-hint{display:none}

/* comparison table: first column stays put while the plans scroll sideways */
.bo-otable-wrap{margin-top:36px}
.bo-otable-h{font-family:"Bricolage Grotesque",Georgia,serif;font-size:var(--be-h3);letter-spacing:-.01em;margin:0 0 14px;color:var(--ink)}
/* position:relative matters: the visually-hidden "Included" labels in the
   cells are absolutely positioned, and without a positioned scroll box they
   anchor to the page and stretch the document 400px past the phone's edge */
.bo-otable-scroll{position:relative;overflow-x:auto;-webkit-overflow-scrolling:touch;border:1px solid var(--hair);border-radius:18px;background:var(--surface)}
.bo-otable-details>summary{list-style:none;cursor:pointer;display:flex;align-items:center;justify-content:space-between;gap:10px;min-height:44px;margin-bottom:6px}
.bo-otable-details>summary::-webkit-details-marker{display:none}
.bo-otable-details>summary svg{display:none;flex:none;transition:transform .2s}
.bo-otable-details[open]>summary svg{transform:rotate(90deg)}
.bo-otable-details>summary:focus-visible{outline:2px solid var(--accent);outline-offset:4px;border-radius:8px}
.bo-otable{width:100%;min-width:760px;border-collapse:separate;border-spacing:0;font-size:15px}
.bo-otable th,.bo-otable td{padding:12px 14px;border-bottom:1px solid var(--hair);text-align:center;vertical-align:middle;color:var(--ink-soft)}
.bo-otable thead th{background:var(--surface-2);color:var(--ink);vertical-align:bottom;padding-top:14px;padding-bottom:14px}
.bo-otable thead th:first-child,.bo-otable tbody th,.bo-otable tfoot th{text-align:left;position:sticky;left:0;z-index:1;background:var(--surface);box-shadow:1px 0 0 var(--hair)}
.bo-otable thead th:first-child{background:var(--surface-2)}
.bo-otable tbody th{font-weight:500;color:var(--ink);min-width:220px}
.bo-otable tbody th small{display:block;font-size:12.5px;line-height:1.4;font-weight:400;color:var(--muted);margin-top:3px;max-width:34ch}
.bo-otable-name{display:block;font-family:"Bricolage Grotesque",system-ui,sans-serif;font-weight:700;font-size:16px}
.bo-otable-price{display:block;margin-top:3px;font-size:13px;font-weight:400;color:var(--muted)}
.bo-otable thead th.is-rec .bo-otable-name{color:var(--accent)}
.bo-otable td.is-yes{color:var(--accent)}
.bo-otable-tick{display:inline-grid;place-items:center;width:22px;height:22px;border-radius:999px;background:color-mix(in srgb,var(--accent) 14%,transparent);color:var(--accent);vertical-align:middle}
.bo-otable td.is-no{color:var(--hair-strong);font-size:18px;line-height:1}
.bo-otable tbody tr:last-child th,.bo-otable tbody tr:last-child td{border-bottom:0}
.bo-otable tfoot th,.bo-otable tfoot td{border-bottom:0;border-top:1px solid var(--hair);padding:14px}
.bo-otable tfoot .bo-btn{min-height:40px;padding:0 16px;font-size:14px;white-space:nowrap}
.bo-offer-note{font-size:var(--be-small);line-height:1.5;color:var(--muted);margin:14px 0 0}

/* skills grid */
.bo-skills{background:var(--surface)}
.bo-skills-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(250px,1fr));gap:14px}
.bo-skill{padding:20px 18px;border:1px solid var(--hair);border-radius:18px;background:var(--ground)}
.bo-skill-ic{display:grid;place-items:center;width:40px;height:40px;border-radius:12px;background:var(--surface-2);color:var(--accent);margin:0 0 12px}
.bo-skill h3{font-family:"Bricolage Grotesque",Georgia,serif;font-size:var(--be-h3-card);line-height:var(--be-h3-lh);margin:0 0 6px;color:var(--ink)}
.bo-skill p{font-size:15px;line-height:1.5;color:var(--ink-soft);margin:0}

/* tablets: two cards a row */
@media (max-width:1180px){
  .bo-ocards{grid-template-columns:repeat(2,minmax(0,1fr))}
}

/* phones: the cards become a swipe row that bleeds to the screen edge; the
   table keeps its sticky first column and scrolls */
@media (max-width:640px){
  .bo-offer-head{margin-bottom:18px}
  .bo-ocards{display:flex;overflow-x:auto;scroll-snap-type:x mandatory;gap:12px;margin:0 calc(-1 * var(--be-gutter));padding:14px var(--be-gutter) 8px;scrollbar-width:none;overscroll-behavior-x:contain}
  .bo-ocards::-webkit-scrollbar{display:none}
  .bo-ocard{flex:0 0 min(calc(100% - 40px),320px);scroll-snap-align:start;padding:24px 18px 18px}
  /* the long comparison tables start collapsed behind their heading on phones */
  .bo-otable-details>summary{min-height:52px;margin:0;padding:0 14px 0 16px;border:1px solid var(--hair-strong);border-radius:14px;background:var(--surface);font-size:16px}
  .bo-otable-details>summary svg{display:block;color:var(--accent)}
  .bo-otable-details[open]>summary{margin-bottom:12px}
  .bo-ocards-hint{display:flex;align-items:center;gap:6px;margin:4px 0 0;font-size:13px;color:var(--muted)}
  .bo-otable{min-width:660px;font-size:14px}
  .bo-otable th,.bo-otable td{padding:10px 12px}
  .bo-otable tbody th{min-width:150px;font-size:13.5px}
  .bo-otable tbody th small{display:none}
  .bo-otable-wrap{margin-top:26px}
  .bo-skills-grid{grid-template-columns:1fr;gap:10px}
  .bo-skill{padding:16px}
  .bo-skill-ic{width:36px;height:36px;margin-bottom:10px}
}

@media (prefers-reduced-motion:reduce){
  .bo-ocards{scroll-behavior:auto}
}
