/* ==========================================================================
   Content sections: Solutions, About, Built, How I work, Help me get better
   and the footer. Builds on the tokens and section shells in site.css.
   Everything sits on the deep blues: cards are blue glass with a sky
   hairline and layered blue-tinted shadows.
   Rules: animate only transform and opacity (hover shadows are a pseudo
   element fading in, never a transitioned box-shadow); every clickable has
   hover, focus-visible and active states; reduced motion is respected.
   ========================================================================== */

/* ---------- shared ---------- */
/* no lone last word under a heading ("for / you." on a phone) */
#solutions .sec-head h2, #about .sec-head h2, #built .sec-head h2,
#walkthrough .sec-head h2, #better .sec-head h2, .better-soon { text-wrap: balance; }
.ic { width: 24px; height: 24px; flex: none; stroke: var(--sky-300); fill: none; }
.ic .ac { stroke: var(--accent); }

/* ==========================================================================
   SOLUTIONS, a tabbed catalogue
   Default (no JS, or solutions.js failed): the tabs stay hidden and all
   five groups show stacked, each under its own heading.
   .sol-cat.is-tabbed (set by solutions.js): one group at a time.
     phone and tablet: a row of pill tabs that scrolls sideways
     900px and up: a rail of tabs on the left, the cards on the right
   ========================================================================== */
.sol-tabs { display: none; }
.sol-panels { display: grid; gap: clamp(44px, 5.5vw, 68px); }
.sol-cat.is-tabbed .sol-panels { display: block; }
.sol-cat.is-tabbed .sol-panel[hidden] { display: none; }
.sol-panel { position: relative; }
.sol-panel:focus { outline: none; }
.sol-panel:focus-visible { outline: 2px solid var(--blue-300); outline-offset: 10px; border-radius: 12px; }
.sol-panel.is-entering { animation: solIn .34s var(--ease-out) both; }
@keyframes solIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

.sol-panel-head { margin: 0 0 22px; }
.sol-panel-title {
  display: flex; align-items: center; gap: 14px;
  font-family: var(--f-body); font-weight: 500; font-size: 12.5px; line-height: 1.4;
  letter-spacing: .16em; text-transform: uppercase; color: var(--blue-300);
}
.sol-panel-title::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.sol-panel-desc { margin-top: 8px; font-size: 15.5px; line-height: 1.6; color: var(--text-dim); }

/* ---------- tabs: phone first, pills that scroll sideways ---------- */
.sol-cat.is-tabbed .sol-tabs {
  position: relative; display: flex; gap: 8px;
  /* the scroller clips whatever leaves its box, so the padding is deep
     enough to hold the selected pill's whole glow (it reaches 25px below
     and 8px above the pill); the margins give that space back */
  margin: -6px calc(-1 * var(--gutter)) 8px;
  padding: 12px var(--gutter) 30px;
  overflow-x: auto; overflow-y: hidden; overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory; scroll-padding-inline: var(--gutter);
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
  /* soft edges say "there is more this way"; they sit over the gutter
     padding, so a pill scrolled fully into view is never faded */
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 var(--gutter), #000 calc(100% - var(--gutter)), transparent 100%);
          mask-image: linear-gradient(90deg, transparent 0, #000 var(--gutter), #000 calc(100% - var(--gutter)), transparent 100%);
}
.sol-cat.is-tabbed .sol-tabs::-webkit-scrollbar { display: none; }

.sol-tab {
  position: relative; flex: none; scroll-snap-align: start;
  display: inline-flex; align-items: center; gap: 10px;
  min-height: 48px; padding: 5px 8px 5px 5px;
  border-radius: 999px; border: 1px solid var(--line-hi);
  background: var(--glass);
  color: var(--text);
  font-family: var(--f-body); font-weight: 500; font-size: 15px; line-height: 1.2; text-align: left; white-space: nowrap;
  cursor: pointer;
  transition: transform .18s var(--ease-out);
}
.sol-tab-icon {
  flex: none; display: grid; place-items: center;
  width: 36px; height: 36px; border-radius: 50%;
  background: rgba(140, 196, 255, .10); border: 1px solid var(--line);
}
.sol-tab-icon .ic { width: 20px; height: 20px; }
.sol-tab-text { display: flex; align-items: center; gap: 8px; min-width: 0; }
.sol-tab-desc, .sol-tab-rec { display: none; }
.sol-tab-count {
  flex: none; display: inline-grid; place-items: center;
  min-width: 26px; height: 24px; padding: 0 7px; border-radius: 999px;
  font-family: var(--f-mono); font-weight: 500; font-size: 12.5px; line-height: 1;
  color: var(--blue-200); background: rgba(140, 196, 255, .12);
}
/* the recommended first step keeps an accent ring even when not selected */
.sol-tab--start { border-color: rgba(140, 196, 255, .6); }

.sol-tab:hover { border-color: var(--blue-300); color: #fff; background: rgba(120, 175, 240, .12); }
.sol-tab:active { transform: scale(.97); }
.sol-tab:focus-visible { outline: 2px solid var(--blue-300); outline-offset: 3px; }

.sol-tab[aria-selected="true"] {
  background: var(--accent-metal) border-box; border-color: transparent; color: var(--on-accent);
  box-shadow: var(--glow-accent);
}
.sol-tab[aria-selected="true"] .sol-tab-icon { background: rgba(4, 20, 48, .12); border-color: rgba(4, 20, 48, .22); }
.sol-tab[aria-selected="true"] .ic, .sol-tab[aria-selected="true"] .ic .ac { stroke: var(--on-accent); }
.sol-tab[aria-selected="true"] .sol-tab-count { background: rgba(234, 244, 255, .5); color: var(--on-accent); }

/* ---------- desktop rail ---------- */
@media (min-width: 900px) {
  .sol-cat.is-tabbed {
    /* the rail narrows on smaller desktops so the two card columns keep room */
    display: grid; grid-template-columns: clamp(272px, calc(24vw + 56px), 340px) minmax(0, 1fr);
    gap: clamp(28px, 3.2vw, 48px); align-items: start;
  }
  .sol-cat.is-tabbed .sol-tabs {
    position: sticky; top: calc(var(--nav-h) + 24px);
    flex-direction: column; gap: 4px;
    margin: 0; padding: 10px;
    overflow: visible; scroll-snap-type: none;
    -webkit-mask-image: none; mask-image: none;
    border-radius: 22px;
    background: rgba(3, 11, 29, .38);
    border: 1px solid var(--line);
    box-shadow: var(--shadow-card);
  }
  .sol-tab {
    display: flex; align-items: flex-start; gap: 14px;
    width: 100%; min-height: 0; padding: 14px 12px 14px 12px;
    border-radius: 16px; border-color: transparent; background: transparent;
    white-space: normal;
  }
  .sol-tab-icon { width: 42px; height: 42px; border-radius: 12px; }
  .sol-tab-icon .ic { width: 22px; height: 22px; }
  .sol-tab-text { flex: 1; flex-wrap: wrap; gap: 5px 8px; padding-top: 1px; }
  .sol-tab-name { font-size: 16px; color: #fff; }
  .sol-tab-rec {
    display: inline-flex; align-items: center; min-height: 20px; padding: 1px 8px;
    border-radius: 999px; border: 1px solid rgba(140, 196, 255, .40);
    background: rgba(90, 168, 255, .16); color: var(--blue-200);
    font-size: 11px; font-weight: 500; letter-spacing: .08em; text-transform: uppercase; line-height: 1.3;
  }
  .sol-tab-desc { display: block; flex-basis: 100%; font-size: 13.5px; font-weight: 300; line-height: 1.5; color: var(--text-dim); text-wrap: pretty; }
  .sol-tab-count { margin-top: 1px; }

  .sol-tab:hover { background: rgba(120, 175, 240, .08); border-color: var(--line); }
  .sol-tab[aria-selected="true"] {
    background: linear-gradient(135deg, rgba(90, 168, 255, .22), rgba(90, 168, 255, .07)) border-box;
    border-color: rgba(140, 196, 255, .45); color: var(--text);
    box-shadow: var(--shadow-card);
  }
  .sol-tab[aria-selected="true"]::before {
    content: ""; position: absolute; left: -11px; top: 16px; bottom: 16px; width: 3px; border-radius: 3px;
    background: var(--accent-metal); box-shadow: 0 0 12px rgba(90, 168, 255, .85);
  }
  .sol-tab[aria-selected="true"] .sol-tab-icon { background: var(--accent-metal) border-box; border-color: transparent; box-shadow: var(--glow-accent); }
  .sol-tab[aria-selected="true"] .sol-tab-count { background: var(--accent-metal); color: var(--on-accent); }
  .sol-tab[aria-selected="true"] .sol-tab-desc { color: var(--text); }

  /* the rail already says what each group is */
  .sol-cat.is-tabbed .sol-panel-desc { display: none; }
}
/* small laptops and tablets in landscape: a slimmer rail and tighter cards */
@media (min-width: 900px) and (max-width: 1199.98px) {
  .sol-cat.is-tabbed .sol-tabs { padding: 8px; }
  .sol-tab { gap: 12px; padding: 12px 10px; }
  .sol-tab[aria-selected="true"]::before { left: -9px; }
  .sol-tab-icon { width: 36px; height: 36px; border-radius: 10px; }
  .sol-tab-icon .ic { width: 20px; height: 20px; }
  .sol-tab-name { font-size: 15.5px; }
  .sol-tab-desc { font-size: 13px; }
  .sol-cat.is-tabbed .sol-grid { gap: 14px; }
  .sol-cat.is-tabbed .sol-grid:not(.sol-grid--solo) > .offer:not(:last-child:nth-child(odd)) { padding-left: 20px; padding-right: 20px; padding-bottom: 20px; }
  .sol-cat.is-tabbed .sol-grid:not(.sol-grid--solo) > .offer:not(:last-child:nth-child(odd)) h4 { font-size: 20px; }
}

/* ---------- cards ---------- */
.sol-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; container-type: inline-size; }

.offer {
  position: relative; display: flex; flex-direction: column;
  padding: 24px 22px 22px;
  background: var(--glass);
  border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow-card);
  transition: transform .28s var(--ease-out);
}
.offer::after {
  content: ""; position: absolute; inset: -1px; border-radius: inherit; pointer-events: none;
  box-shadow: var(--shadow-lift), 0 0 0 1px rgba(140, 196, 255, .30);
  opacity: 0; transition: opacity .28s var(--ease-out);
}
.offer:hover, .offer:focus-within { transform: translateY(-4px); }
.offer:hover::after, .offer:focus-within::after { opacity: 1; }

.offer-main, .offer-side { position: relative; z-index: 1; }
.offer-side { display: flex; flex-direction: column; flex: 1; }
.offer-icon {
  display: inline-grid; place-items: center; width: 48px; height: 48px; margin-bottom: 18px;
  border-radius: 14px;
  background: linear-gradient(155deg, rgba(140, 196, 255, .20) 0%, rgba(61, 143, 230, .06) 100%);
  border: 1px solid rgba(140, 196, 255, .28);
  box-shadow: 0 1px 0 rgba(212, 233, 255, .12) inset, 0 8px 18px -10px rgba(61, 143, 230, .7);
}
.offer h4 { font-size: 22px; line-height: 1.2; letter-spacing: -.012em; color: var(--heading); }
.offer-what { margin-top: 10px; font-size: 15.5px; line-height: 1.7; color: var(--text-dim); }
.offer-get-label {
  margin: 20px 0 8px;
  font-size: 11.5px; font-weight: 500; letter-spacing: .16em; text-transform: uppercase; color: var(--blue-300);
}
.offer-list { list-style: none; margin: 0 0 22px; padding: 0; display: grid; gap: 6px; }
.offer-list li { position: relative; padding-left: 24px; font-size: 15px; line-height: 1.55; color: var(--text); font-weight: 400; }
.offer-list li::before {
  content: ""; position: absolute; left: 3px; top: .42em;
  width: 10px; height: 5.5px;
  border-left: 1.75px solid var(--accent); border-bottom: 1.75px solid var(--accent);
  transform: rotate(-45deg);
}

/* "Get this", a sky outline pill with an arrow. form.js owns the click. */
.btn-get {
  position: relative;
  margin-top: auto; align-self: flex-start;
  display: inline-flex; align-items: center; gap: 8px;
  min-height: 44px; padding: 10px 16px 10px 20px;
  border-radius: 999px; border: 1px solid rgba(140, 196, 255, .55);
  background: rgba(90, 168, 255, .06); color: var(--blue-200);
  font-family: var(--f-body); font-weight: 500; font-size: 14.5px; line-height: 1; letter-spacing: .01em;
  cursor: pointer;
  transition: transform .18s var(--ease-out);
}
.btn-get::after {
  content: ""; width: 16px; height: 16px; flex: none; background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%23000' stroke-width='1.75' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 8h10M9 4l4 4-4 4'/%3E%3C/svg%3E") center / contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%23000' stroke-width='1.75' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 8h10M9 4l4 4-4 4'/%3E%3C/svg%3E") center / contain no-repeat;
  transition: transform .18s var(--ease-out);
}
.btn-get:hover { background: rgba(90, 168, 255, .16); border-color: var(--blue-300); color: #fff; }
.btn-get:hover::after { transform: translateX(3px); }
.btn-get:active { transform: scale(.97); }
.btn-get:focus-visible { outline: 2px solid var(--blue-300); outline-offset: 3px; }
/* form.js marks an offer that is already ticked on the form with data-picked.
   "border-box" matters: with a transparent 1px border the gradient otherwise
   repeats into the border and draws a dark line along the top of the pill */
.btn-get[data-picked="true"] { background: var(--accent-metal) border-box; border-color: transparent; color: var(--on-accent); box-shadow: var(--glow-accent); }
.btn-get[data-picked="true"]:hover { color: var(--on-accent); box-shadow: var(--glow-accent-hi); }
.btn-get[data-picked="true"]::after { -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3.5 8.5l3 3 6-7'/%3E%3C/svg%3E") center / contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3.5 8.5l3 3 6-7'/%3E%3C/svg%3E") center / contain no-repeat; }
.btn-get[data-picked="true"]:hover::after { transform: none; }

/* Start here, the recommended first step */
.offer--start {
  border-color: rgba(140, 196, 255, .45);
  background:
    radial-gradient(120% 140% at 100% 0%, rgba(90, 168, 255, .20), transparent 55%),
    var(--glass-hi);
  padding-top: 34px;
}
.offer-tag {
  position: absolute; top: -13px; left: 22px; z-index: 2;
  display: inline-flex; align-items: center; min-height: 26px; padding: 4px 12px;
  border-radius: 999px; background: var(--accent-metal); color: var(--on-accent);
  font-size: 11.5px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; line-height: 1.2;
  box-shadow: var(--glow-accent);
}
.offer--start .btn-get { background: var(--accent-metal) border-box; border-color: transparent; color: var(--on-accent); box-shadow: var(--glow-accent); }
.offer--start .btn-get:hover { color: var(--on-accent); box-shadow: var(--glow-accent-hi); }

.sol-foot {
  margin-top: clamp(36px, 5vw, 56px);
  display: flex; flex-wrap: wrap; align-items: center; gap: 0 10px;
  font-size: 17px; color: var(--text-dim);
}
.sol-foot a {
  display: inline-flex; align-items: center; gap: 8px; min-height: 44px;
  color: var(--blue-300); font-weight: 500;
  text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 5px;
  text-decoration-color: rgba(140, 196, 255, .5);
  transition: transform .18s var(--ease-out);
}
.sol-foot a::after {
  content: ""; width: 16px; height: 16px; background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%23000' stroke-width='1.75' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 8h10M9 4l4 4-4 4'/%3E%3C/svg%3E") center / contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%23000' stroke-width='1.75' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 8h10M9 4l4 4-4 4'/%3E%3C/svg%3E") center / contain no-repeat;
  transition: transform .18s var(--ease-out);
}
.sol-foot a:hover { color: #fff; text-decoration-color: currentColor; }
.sol-foot a:hover::after { transform: translateX(3px); }
.sol-foot a:active { transform: translateY(1px); }
.sol-foot a:focus-visible { outline: 2px solid var(--blue-300); outline-offset: 4px; border-radius: 6px; }

@media (min-width: 700px) {
  .sol-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
  .sol-grid--solo { grid-template-columns: minmax(0, 1fr); }
  .offer { padding: 26px 24px 24px; }
  .offer--start { padding-top: 36px; }
  /* an odd card out at the end of a group takes the whole row */
  .sol-grid > .offer:last-child:nth-child(odd) { grid-column: 1 / -1; }
}
/* cards in one row share their two inner rows, so every "You get" lines up */
@supports (grid-template-rows: subgrid) {
  @media (min-width: 700px) {
    .sol-grid:not(.sol-grid--solo) > .offer:not(:last-child:nth-child(odd)) { display: grid; grid-template-rows: subgrid; grid-row: span 2; row-gap: 0; }
  }
}
/* a card that spans a wide row lays out side by side: what it is | what you get */
@container (min-width: 620px) {
  .sol-grid--solo > .offer,
  .sol-grid > .offer:last-child:nth-child(odd) {
    display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
    column-gap: clamp(32px, 4vw, 56px); align-items: start;
    padding: 34px 34px 30px;
  }
  .sol-grid--solo > .offer--start { padding-top: 40px; }
  .sol-grid--solo > .offer .offer-side,
  .sol-grid > .offer:last-child:nth-child(odd) .offer-side {
    padding-left: clamp(24px, 3vw, 40px); border-left: 1px solid var(--line); height: 100%;
  }
  .sol-grid--solo > .offer .offer-get-label,
  .sol-grid > .offer:last-child:nth-child(odd) .offer-get-label { margin-top: 4px; }
  .offer--start h4 { font-size: 28px; }
  .offer--start .offer-what { font-size: 16.5px; max-width: 54ch; }
  .offer--start .offer-tag { left: 34px; }
}

/* ==========================================================================
   ABOUT
   ========================================================================== */
.about-grid { display: grid; gap: 40px; }
.about-portrait {
  margin: 0; width: 100%; max-width: 360px;
  aspect-ratio: 3 / 4; overflow: hidden; border-radius: 20px;
  background: #000;
  border: 1px solid rgba(168, 203, 230, .30);
  box-shadow: 0 2px 8px rgba(2, 8, 22, .5), 0 30px 70px -28px rgba(2, 8, 22, .95), 0 40px 90px -48px rgba(90, 168, 255, .45);
}
.about-portrait img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 18%; }
.about-copy .sec-head { margin-bottom: 32px; }
.about-copy .sec-head h2 { font-size: clamp(34px, 3.7vw, 50px); }
.about-label {
  display: block; margin-bottom: 12px;
  font-size: 12px; font-weight: 500; letter-spacing: .16em; text-transform: uppercase; color: var(--blue-300);
}
.roles { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.roles li {
  padding: 18px 20px 20px;
  border-radius: var(--radius-sm);
  background: var(--glass); border: 1px solid var(--line);
  box-shadow: var(--shadow-card);
}
.roles h3 { font-size: 19px; line-height: 1.25; letter-spacing: -.01em; color: var(--heading); }
.roles p { margin-top: 8px; font-size: 15px; line-height: 1.65; color: var(--text-dim); }
.about-bio { margin-top: 32px; font-size: 17px; line-height: 1.75; color: var(--text); max-width: 62ch; }

/* metal business cards call-out */
.cards-cta {
  position: relative; overflow: hidden;
  margin-top: 36px; max-width: 640px;
  display: grid; grid-template-columns: minmax(0, 1fr); gap: 18px;
  padding: 24px 22px;
  border-radius: var(--radius);
  background:
    radial-gradient(120% 150% at 100% 0%, rgba(90, 168, 255, .22), transparent 58%),
    var(--glass-hi);
  border: 1px solid rgba(140, 196, 255, .42);
  box-shadow: var(--shadow-card);
}
.cards-cta-art { width: 104px; transform: rotate(-7deg); filter: drop-shadow(0 10px 14px rgba(2, 8, 22, .7)) drop-shadow(0 0 18px rgba(90, 168, 255, .25)); }
.cards-cta-art svg { width: 100%; height: auto; }
.cards-cta-art .cc-shine { transform-origin: 60px 38px; transform: rotate(18deg); transition: transform .7s var(--ease-out); }
.cards-cta:hover .cc-shine { transform: rotate(18deg) translateX(112px); }
.cards-cta h3 { font-size: clamp(24px, 2.3vw, 30px); line-height: 1.15; color: var(--heading); }
.cards-cta p { margin-top: 8px; font-size: 16px; line-height: 1.65; color: var(--text-dim); max-width: 46ch; }
.cards-cta-btn { margin-top: 18px; }
@media (max-width: 520px) {
  .cards-cta-btn { width: 100%; }
}
@media (min-width: 521px) {
  .cards-cta { grid-template-columns: auto minmax(0, 1fr); align-items: start; gap: 24px; padding: 28px 28px 28px 24px; }
  .cards-cta-art { margin-top: 6px; }
}

@media (min-width: 600px) {
  .roles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 960px) {
  .about-grid { grid-template-columns: minmax(0, 400px) minmax(0, 1fr); gap: clamp(48px, 6vw, 88px); align-items: start; }
  .about-portrait { max-width: none; position: sticky; top: calc(var(--nav-h) + 32px); }
}
.about-grid.no-portrait { grid-template-columns: minmax(0, 1fr); }

/* ==========================================================================
   BUILT: three live projects. Phone one column, tablet one column with the
   picture beside the text, desktop a row of three.
   ========================================================================== */
.built-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: minmax(0, 1fr); gap: 18px; }
.bcard {
  position: relative; display: flex; flex-direction: column; overflow: hidden;
  background: var(--glass);
  border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow-card);
}
.bcard-media { aspect-ratio: 16 / 10; overflow: hidden; background: var(--blue-950); border-bottom: 1px solid var(--line); }
.bcard-media img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 0; transition: transform .6s var(--ease-out); }
.bcard-body { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; flex: 1; padding: 18px 22px 22px; }
.bcard h3 { font-family: var(--f-display); font-weight: 500; font-size: 22px; line-height: 1.2; letter-spacing: -.012em; color: var(--heading); margin: 2px 0 0; }
.bcard h3 a { color: inherit; text-decoration: none; }
.bcard-text { font-size: 15px; line-height: 1.65; color: var(--text-dim); }
.bcard-open {
  margin-top: auto; padding-top: 6px;
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 13.5px; font-weight: 500; color: var(--blue-300); word-break: break-all;
}
.bcard-open .ext { flex: none; transition: transform .18s var(--ease-out); }

.badge {
  display: inline-flex; align-items: center; gap: 7px; min-height: 24px; padding: 3px 10px;
  border-radius: 999px; border: 1px solid transparent;
  font-size: 11.5px; font-weight: 500; line-height: 1.3; letter-spacing: .1em; text-transform: uppercase;
}
.badge--live { background: rgba(90, 168, 255, .14); color: var(--blue-200); border-color: rgba(140, 196, 255, .35); }
.badge--live::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 3px rgba(90, 168, 255, .22), 0 0 8px rgba(90, 168, 255, .8); }

/* whole card is the link (stretched) */
.bcard--link { transition: transform .28s var(--ease-out); }
.bcard--link::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  box-shadow: var(--shadow-lift), 0 0 0 1px rgba(140, 196, 255, .32) inset;
  opacity: 0; transition: opacity .28s var(--ease-out);
}
.bcard--link h3 a::before { content: ""; position: absolute; inset: 0; z-index: 1; border-radius: var(--radius); }
.bcard--link:hover { transform: translateY(-4px); }
.bcard--link:hover::after { opacity: 1; }
.bcard--link:hover .bcard-media img { transform: scale(1.03); }
.bcard--link:hover .bcard-open .ext { transform: translate(2px, -2px); }
.bcard--link:hover h3 a { color: var(--blue-200); }
.bcard--link:active { transform: translateY(-1px) scale(.992); }
/* focus ring: the card clips its overflow, so the ring goes on the card
   itself where :has() exists, and just inside the edge where it does not */
.bcard--link h3 a:focus-visible { outline: none; }
.bcard--link h3 a:focus-visible::before { outline: 2px solid var(--blue-300); outline-offset: -4px; }
@supports selector(:has(a)) {
  .bcard--link h3 a:focus-visible::before { outline: none; }
  .bcard--link:has(h3 a:focus-visible) { outline: 2px solid var(--blue-300); outline-offset: 4px; }
}

@media (min-width: 700px) and (max-width: 959.98px) {
  .bcard { flex-direction: row; }
  .bcard-media { flex: 0 0 44%; aspect-ratio: auto; min-height: 220px; border-bottom: 0; border-right: 1px solid var(--line); }
  .bcard-body { padding: 22px 24px; justify-content: center; }
}
@media (min-width: 960px) {
  .built-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
}

/* ==========================================================================
   HOW I WORK (#walkthrough). Phone: each step carries its own picture.
   Desktop: a sticky picture panel on the left, steps scrolling on the right.
   ========================================================================== */
.story-note { font-size: 15px; color: var(--sky-300); }
.story-stage { display: none; }
.story-steps { list-style: none; margin: 0; padding: 0 0 0 26px; position: relative; display: grid; gap: 48px; }
/* phone progress rail, one dot per step */
.story-steps::before {
  content: ""; position: absolute; left: 5px; top: 10px; bottom: 10px; width: 1px;
  background: linear-gradient(180deg, rgba(140, 196, 255, .55), rgba(168, 203, 230, .12));
}
.story-step { position: relative; }
.story-num { position: relative; }
.story-num::before {
  content: ""; position: absolute; left: -26px; top: 8px; width: 11px; height: 11px; border-radius: 50%;
  background: var(--bg); border: 1.5px solid var(--sky-500);
}
.story-step.is-active .story-num::before { background: var(--accent); border-color: var(--accent); box-shadow: 0 0 10px rgba(90, 168, 255, .8); }

.story-step-media, .story-media {
  position: relative; aspect-ratio: 4 / 3; overflow: hidden;
  border-radius: var(--radius); border: 1px solid var(--line);
  background: var(--blue-900);
  box-shadow: var(--shadow-card);
}
.story-step-media { margin-bottom: 20px; }

/* blue placeholder that shows until (and unless) the real still loads */
.story-ph {
  position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: space-between;
  padding: clamp(18px, 3vw, 34px);
  background:
    linear-gradient(rgba(168, 203, 230, .05) 1px, transparent 1px) 0 0 / 26px 26px,
    linear-gradient(90deg, rgba(168, 203, 230, .05) 1px, transparent 1px) 0 0 / 26px 26px,
    radial-gradient(110% 80% at 85% 0%, rgba(90, 168, 255, .30), transparent 60%),
    radial-gradient(70% 55% at 0% 100%, rgba(46, 95, 138, .35), transparent 70%),
    linear-gradient(160deg, var(--blue-800), var(--blue-900) 55%, var(--blue-950));
}
.story-ph-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; }
.story-ph-num {
  font-family: var(--f-display); font-style: italic; font-weight: 500; line-height: .9;
  font-size: clamp(60px, 9vw, 128px); letter-spacing: -.03em;
  color: transparent; background: var(--ice-gradient); -webkit-background-clip: text; background-clip: text;
  padding-right: .08em;
}
.story-ph .ic--lg { width: clamp(40px, 5vw, 60px); height: auto; aspect-ratio: 1; stroke: var(--sky-300); }
.story-ph .ic--lg .ac { stroke: var(--accent); }
.story-ph .ic--lg * { vector-effect: non-scaling-stroke; }
.story-ph-title { font-family: var(--f-display); font-weight: 500; font-size: clamp(24px, 2.6vw, 38px); line-height: 1.1; color: #fff; letter-spacing: -.015em; }
.story-img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  opacity: 0; transition: opacity .5s var(--ease-out);
}
.story-img.is-loaded { opacity: 1; }

.story-num {
  margin-bottom: 6px;
  font-family: var(--f-display); font-style: italic; font-weight: 500; font-size: 22px; line-height: 1.2;
  color: var(--blue-300);
}
.story-step h3 { font-size: clamp(26px, 2.5vw, 36px); line-height: 1.12; color: #fff; }
.story-copy { margin-top: 12px; font-size: 17px; line-height: 1.7; color: var(--text-dim); max-width: 46ch; }

@media (min-width: 1024px) {
  .story { display: grid; grid-template-columns: minmax(0, 55fr) minmax(0, 45fr); gap: clamp(48px, 5.5vw, 88px); align-items: start; }
  .story-stage { display: block; position: sticky; top: max(calc(var(--nav-h) + 24px), calc(50vh - 250px)); }
  .story-frame { position: absolute; inset: 0; opacity: 0; transition: opacity .6s var(--ease-out); }
  .story-frame.is-active { opacity: 1; }
  .story-step-media { display: none; }
  .story-steps { padding: 0; gap: 0; }
  .story-steps::before, .story-num::before { display: none; }
  .story-step { min-height: 62vh; display: flex; align-items: center; padding: 24px 0; }
  .story-step:first-child { min-height: 50vh; align-items: flex-start; padding-top: 40px; }
  .story-step:last-child { min-height: 58vh; }
  .story-step h3 { font-size: clamp(30px, 2.8vw, 42px); }
  .story-copy { font-size: 18px; }
  .story.is-live .story-step { opacity: .64; transition: opacity .45s var(--ease-out); } /* dimmed, still 4.5:1 */
  .story.is-live .story-step.is-active { opacity: 1; }
}

/* desktop progress line, 5 dots under the picture */
.story-progress {
  position: relative; display: flex; justify-content: space-between; align-items: center;
  height: 24px; margin: 22px 6px 0;
}
.story-track { position: absolute; left: 6px; right: 6px; top: 50%; height: 1px; background: rgba(168, 203, 230, .22); }
.story-fill {
  position: absolute; inset: 0; background: var(--accent); box-shadow: 0 0 8px rgba(90, 168, 255, .7);
  transform-origin: 0 50%; transform: scaleX(0); transition: transform .5s var(--ease-out);
}
.story-dot {
  position: relative; width: 12px; height: 12px; border-radius: 50%;
  background: var(--bg); border: 1.5px solid var(--sky-500);
  transition: transform .3s var(--ease-out);
}
.story-dot.is-on { background: var(--accent); border-color: var(--accent); }
.story-dot.is-current { transform: scale(1.35); box-shadow: 0 0 10px rgba(90, 168, 255, .8); }

/* ==========================================================================
   HELP ME GET BETTER
   ========================================================================== */
.better-grid { display: grid; gap: 32px; }
.better-grid .sec-head { margin-bottom: 0; }
.better-grid .sec-sub + .sec-sub { margin-top: 10px; }
.better-panel {
  display: flex; flex-direction: column; justify-content: center; gap: 16px;
  min-height: 200px; padding: clamp(28px, 4vw, 48px);
  border: 1.5px dashed rgba(140, 196, 255, .45); border-radius: var(--radius);
  background:
    radial-gradient(90% 120% at 100% 0%, rgba(90, 168, 255, .12), transparent 60%),
    var(--glass);
}
.better-panel .ic { width: 36px; height: 36px; }
.better-panel .ic * { vector-effect: non-scaling-stroke; }
.better-soon { font-family: var(--f-display); font-weight: 500; font-size: clamp(22px, 2.2vw, 28px); line-height: 1.25; color: #fff; }
#feedback-form-slot:empty { display: none; }
@media (min-width: 900px) {
  .better-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(48px, 6vw, 88px); align-items: center; }
  .better-panel { min-height: 260px; }
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
.site-foot {
  background: var(--bg-deep); color: var(--text-dim);
  border-top: 1px solid var(--line);
  /* the fixed motion toggle sits bottom right, keep the last line clear of it */
  padding: 44px 0 calc(92px + env(safe-area-inset-bottom));
}
.foot-grid { display: grid; gap: 20px; }
.foot-id .brand { padding: 5px 0; transform-origin: 0 50%; transition: transform .18s var(--ease-out); }
.foot-id .brand:hover .ao { color: #fff; }
.foot-id .brand:hover .word { color: #fff; }
.foot-id .brand:active { transform: scale(.97); }
.foot-who { margin-top: 8px; font-size: 14.5px; color: var(--text-dim); }
.foot-links { list-style: none; margin: 0 0 0 -12px; padding: 0; display: flex; flex-wrap: wrap; gap: 0 4px; }
.foot-links a {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 12px; border-radius: 999px;
  color: var(--sky-100); text-decoration: none; font-size: 14.5px; font-weight: 400;
  transition: transform .18s var(--ease-out);
}
.foot-links a:hover { color: #fff; background: rgba(90, 168, 255, .12); }
.foot-links a:active { transform: scale(.97); }
.foot-links a:focus-visible { outline: 2px solid var(--blue-300); outline-offset: 2px; }
.foot-copy { font-size: 13px; color: var(--sky-300); }
@media (min-width: 1024px) {
  .site-foot { padding-bottom: calc(48px + env(safe-area-inset-bottom)); }
  .foot-grid { grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 32px; }
  .foot-links { justify-content: center; margin: 0; }
}

/* ==========================================================================
   Reduced motion: no lifts, no crossfade timing, no sliding arrows.
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
  .offer, .offer::after, .bcard--link, .bcard--link::after, .bcard-media img,
  .btn-get, .btn-get::after, .sol-foot a, .sol-foot a::after, .foot-links a, .foot-id .brand,
  .story-frame, .story-img, .story-fill, .story-dot, .story.is-live .story-step, .bcard-open .ext,
  .sol-tab, .cards-cta-art .cc-shine {
    transition: none !important;
  }
  .sol-panel.is-entering { animation: none; }
  .offer:hover, .offer:focus-within, .bcard--link:hover, .bcard--link:active, .sol-tab:active { transform: none; }
  .bcard--link:hover .bcard-media img, .btn-get:hover::after, .sol-foot a:hover::after,
  .bcard--link:hover .bcard-open .ext { transform: none; }
  .cards-cta:hover .cc-shine { transform: rotate(18deg); }
}
