/* ══════════════ Product page hero ══════════════
   Built on the site design system: BrittiSans headings
   (--font-family--font-primary), Inter body, brand green/teal
   ribbon (matching the pricing sections), and the site's
   .button-primary buttons. The phone is the exact homepage
   .sol-phone device, reframed here as a bare standalone device. */

.ph-hero {
  position: relative;
  background: transparent;
  padding: 92px 0 132px;
}

/* On the product page, the hero + pillars are the only children of
   .page-wrapper, so it hosts the shared white backdrop + the diagonal
   strip and clips it horizontally — letting the strip cross both sections. */
.page-wrapper { position: relative; overflow: hidden; background: var(--colors--white); }

/* Faint dashed vertical guide lines behind the hero */
.ph-guides { position: absolute; inset: 0; z-index: 0; pointer-events: none; }
.ph-guides span { position: absolute; top: 0; bottom: 0; border-left: 1px dashed rgba(14, 19, 32, 0.08); }
.ph-guides span:nth-child(1) { left: 25%; }
.ph-guides span:nth-child(2) { left: 50%; }
.ph-guides span:nth-child(3) { left: 75%; }

/* Diagonal green/teal gradient strip cutting across the bottom
   of the hero — same ribbon language as the pricing sections. */
.ph-ribbon {
  position: absolute;
  left: -12%;
  right: -12%;
  bottom: -40px;
  height: 210px;
  transform: rotate(-7deg);
  filter: blur(9px);
  opacity: 0.5;
  z-index: 0;
  pointer-events: none;
  background: linear-gradient(100deg,
    rgba(111, 194, 141, 0) 0%,
    #6FC28D 18%,
    #45BE8A 40%,
    #16A88B 58%,
    #57C6F0 80%,
    rgba(87, 198, 240, 0) 100%);
}

.ph-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.04fr 0.96fr;
  gap: 56px;
  align-items: center;
}

.ph-copy { min-width: 0; }

.ph-eyebrow {
  font-family: var(--font-family--font-primary);
  font-weight: 600;
  font-size: 15px;
  letter-spacing: 0.01em;
  color: #16A88B;
  margin: 0 0 20px;
}

.ph-title {
  font-family: var(--font-family--font-primary);
  font-weight: 600;
  /* Match the home hero headline scale exactly (home is the master). */
  font-size: clamp(2.5rem, 5vw, 3rem);
  line-height: 1.06;
  letter-spacing: -0.025em;
  color: var(--colors--text-color);
  max-width: 15ch;
  margin: 0 0 24px;
  text-wrap: balance;
}

.ph-sub {
  font-family: var(--_font-family-2---font-family-2);
  font-size: 18px;
  line-height: 1.6;
  color: #5B6670;
  max-width: 46ch;
  margin: 0;
}

.ph-cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 34px;
}
.ph-cta { white-space: nowrap; }

/* ── Standalone phone: reuse the exact homepage .sol-phone device,
   overriding its absolute positioning so it floats freely, slightly
   angled, with the frame's existing soft shadow. ── */
.ph-phone-wrap {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  min-width: 0;
}
.ph-phone-wrap .sol-phone {
  position: relative;
  left: auto;
  top: auto;
  z-index: 1;
  width: 204px;
  transform: scale(1.32);
  transform-origin: center;
}

/* Ambient "selection" of the happy face — it periodically highlights as if
   tapped: green fill, white icon, a small press-in scale, then releases. */
.ph-phone-wrap #solHappyFc {
  animation: phFaceSelect 5.5s ease-in-out infinite;
}
.ph-phone-wrap #solHappyFc svg {
  animation: phFaceSelectIcon 5.5s ease-in-out infinite;
}
@keyframes phFaceSelect {
  0%, 58% { background: #F2F2F7; transform: scale(1); }
  66% { background: #475467; transform: scale(1.13); }
  74%, 90% { background: #475467; transform: scale(1.06); box-shadow: 0 4px 12px rgba(71, 84, 103, 0.4); }
  100% { background: #F2F2F7; transform: scale(1); box-shadow: none; }
}
@keyframes phFaceSelectIcon {
  0%, 58% { stroke: #1C1C1E; }
  66%, 90% { stroke: #ffffff; }
  100% { stroke: #1C1C1E; }
}

@media (max-width: 991px) {
  .ph-inner { grid-template-columns: 1fr; gap: 72px; }
  .ph-title, .ph-sub { max-width: none; }
  .ph-phone-wrap .sol-phone { transform: scale(1.18); }
  .ph-guides span:nth-child(1) { left: 50%; }
  .ph-guides span:nth-child(2), .ph-guides span:nth-child(3) { display: none; }
}
@media (max-width: 560px) {
  .ph-hero { padding: 64px 0 96px; }
  .ph-guides { display: none; }
  .ph-cta-row .ph-cta { flex: 1 1 auto; justify-content: center; }
}

@media (prefers-reduced-motion: reduce) {
  .ph-phone-wrap #solHappyFc,
  .ph-phone-wrap #solHappyFc svg { animation: none; }
}

/* ══════════════ Value pillars + logo wall ══════════════
   BrittiSans titles, Inter body, brand-green duotone icons
   (recoloured from --pl-* tokens), dashed guides matching the
   other sections. */
.pl-section {
  --pl-soft: #DCEFE7;
  --pl-mid: #6FC28D;
  --pl-strong: #16A88B;
  position: relative;
  overflow: visible;
  background: transparent;
  padding: 108px 0 0;
}
.pl-inner { position: relative; z-index: 1; }
.pl-guides { position: absolute; inset: 0; z-index: 0; pointer-events: none; }
/* Continuous dividers spanning the whole section (pillars + logo band).
   Uses the same container width as the content so the lines align with the
   pillar/logo columns, and sits above the tinted band but behind content. */
.pl-guides--full { top: 0; bottom: 0; left: 0; right: 0; margin: 0 auto; }
.pl-guides span { position: absolute; top: 0; bottom: 0; border-left: 1px dashed rgba(14, 19, 32, 0.08); }
.pl-guides span:nth-child(1) { left: 0; }
.pl-guides span:nth-child(2) { left: 25%; }
.pl-guides span:nth-child(3) { left: 50%; }
.pl-guides span:nth-child(4) { left: 75%; }
.pl-guides span:nth-child(5) { left: 100%; }
.pl-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 40px 36px; }
.pl-icon { width: 46px; height: 46px; margin-bottom: 20px; }
.pl-icon svg { width: 100%; height: 100%; display: block; }
.pl-title {
  font-family: var(--font-family--font-primary);
  font-weight: 600;
  font-size: 18px;
  letter-spacing: -0.01em;
  line-height: 1.25;
  color: var(--colors--text-color);
  padding-left: 13px;
  border-left: 3px solid #16A88B;
  margin: 0 0 12px;
}
.pl-text {
  font-family: var(--_font-family-2---font-family-2);
  font-size: 15px;
  line-height: 1.6;
  color: #5B6670;
  margin: 0;
}

/* Logo wall — light tinted band, static grid (two rows, evenly spaced). */
.pl-logowall { background: #F3F6F9; border-top: 1px solid #E7EAEE; padding: 56px 0; margin-top: 80px; }
.pl-logos {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 44px 48px;
  align-items: center;
  justify-items: center;
}
.pl-logowall-inner { position: relative; }
.pl-logo { display: flex; align-items: center; justify-content: center; }
.pl-logos img {
  max-height: 34px;
  width: auto;
}
@media (max-width: 920px) {
  .pl-logos { grid-template-columns: repeat(2, 1fr); gap: 34px 32px; }
}

@media (max-width: 920px) {
  .pl-grid { grid-template-columns: repeat(2, 1fr); gap: 40px 32px; }
  .pl-guides span:nth-child(2), .pl-guides span:nth-child(4) { display: none; }
}
@media (max-width: 560px) {
  .pl-section { padding: 60px 0 56px; }
  .pl-grid { grid-template-columns: 1fr; }
  .pl-guides { display: none; }
}


/* ══════════════ How it works — liquid-glass visuals + stacked steps ══════════════
   BrittiSans headings, Inter body, brand-green tokens. Left column: one continuous
   far-left connector line, stacked number-over-title steps, and an active accent
   that sits on the line parallel to the title. Right column: two frosted liquid-glass
   cards over a green/teal mesh backdrop + a plain white platform report card.
   Visual-swap JS + the on-select micro-animations (face select, typing answer). */
.hiw { position: relative; overflow: hidden; background: var(--colors--white); padding: 96px 0; }
.hiw-head { margin: 0 0 44px; }
.hiw-eyebrow { font-family: var(--font-family--font-primary); font-weight: 600; font-size: 15px; letter-spacing: 0.01em; color: #0F6E56; margin: 0 0 18px; }
.hiw-title { font-family: var(--font-family--font-primary); font-weight: 600; font-size: clamp(30px, 3.6vw, 48px); letter-spacing: -0.02em; line-height: 1.07; color: var(--colors--text-color); max-width: 16ch; margin: 0; }
.hiw-grid { display: grid; grid-template-columns: 1fr 1.05fr; gap: 72px; align-items: center; }

/* left column — one continuous line + stacked (number over title) steps */
.hiw-steps { position: relative; }
/* Start the grey connector at the first step's TITLE, not the top of
   the steps container. Offset = .hiw-step padding-top (22px) + .hiw-num
   height (34px) + .hiw-num margin-bottom (14px) = 70px — that's the
   vertical distance from the container top to the top of the first
   .hiw-step-h, which is where the active green accent originates. This
   removes the ~70px of grey that used to run past the number toward
   the top of the section. bottom stays at -1000px so the line still
   trails past the last step unchanged. */
.hiw-steps::before { content: ""; position: absolute; left: 1px; top: 70px; bottom: -1000px; width: 2px; background: #E7EAEE; z-index: 0; }
.hiw-step { position: relative; padding: 22px 0 22px 40px; cursor: pointer; z-index: 1; }
.hiw-num { width: 34px; height: 34px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-family: var(--font-family--font-primary); font-weight: 700; font-size: 15px; background: #EDF0EE; color: #93A09A; margin-bottom: 14px; transition: background 0.4s ease, color 0.4s ease; }
.hiw-step-h { font-family: var(--font-family--font-primary); font-weight: 600; font-size: 22px; line-height: 1.25; letter-spacing: -0.01em; color: #4A554F; margin: 0 0 5px; position: relative; transition: color 0.3s ease; }
.hiw-step-h::before { content: ""; position: absolute; left: -38px; top: 0; bottom: 0; width: 2px; border-radius: 2px; background: #16A88B; transform: scaleY(0); transform-origin: center; opacity: 0; transition: transform 0.4s cubic-bezier(0.4,0,0.2,1), opacity 0.3s ease; }
.hiw-step-p { font-family: var(--_font-family-2---font-family-2); font-size: 16px; line-height: 1.55; color: #5B6670; max-width: 38ch; margin: 0; }
.hiw-step.is-active .hiw-num { background: #DCEEE4; color: #2C7E5E; }
.hiw-step.is-active .hiw-step-h { color: var(--colors--text-color); }
.hiw-step.is-active .hiw-step-h::before { transform: scaleY(1); opacity: 1; }

/* stage + green/teal mesh backdrop (so the frosted glass reads as glass) */
.hiw-stage-wrap { display: flex; align-items: center; justify-content: center; position: relative; }
.hiw-stage { position: relative; width: 100%; max-width: 400px; aspect-ratio: 1 / 1.04; }
.hiw-mesh { position: absolute; inset: -14% -10%; z-index: 0; border-radius: 40px; filter: blur(10px); opacity: 0.9; background:
  radial-gradient(38% 42% at 22% 20%, rgba(127,224,196,0.85), transparent 70%),
  radial-gradient(40% 40% at 82% 26%, rgba(87,198,240,0.72), transparent 72%),
  radial-gradient(46% 44% at 70% 82%, rgba(111,194,141,0.72), transparent 72%),
  radial-gradient(40% 40% at 24% 84%, rgba(120,196,224,0.6), transparent 72%); }
.hiw-visual { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; z-index: 1; opacity: 0; transform: translateY(16px) scale(0.985); transition: opacity 0.5s ease, transform 0.55s cubic-bezier(0.2,0.7,0.25,1); pointer-events: none; }
.hiw-visual.is-show { opacity: 1; transform: none; }

/* liquid-glass card */
.hiw-glass { position: relative; width: 100%; max-width: 384px; border-radius: 30px; overflow: hidden;
  background: linear-gradient(180deg, rgba(255,255,255,0.55), rgba(255,255,255,0.34));
  -webkit-backdrop-filter: blur(30px) saturate(1.8); backdrop-filter: blur(30px) saturate(1.8);
  box-shadow: 0 44px 90px -34px rgba(16,40,33,0.34), 0 8px 24px -12px rgba(16,40,33,0.18), inset 0 1px 0 rgba(255,255,255,0.9), inset 0 0 0 1px rgba(255,255,255,0.35), inset 0 -14px 30px -20px rgba(16,40,33,0.12); }
.hiw-glass::before { content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; z-index: 2; background: linear-gradient(180deg, rgba(255,255,255,0.55) 0%, rgba(255,255,255,0) 26%); }
.hiw-glass::after { content: ""; position: absolute; top: -40%; left: -30%; width: 80%; height: 120%; transform: rotate(18deg); pointer-events: none; z-index: 2; background: linear-gradient(90deg, rgba(255,255,255,0.25), rgba(255,255,255,0) 60%); filter: blur(8px); }
.hiw-gbody { position: relative; z-index: 3; padding: 26px 22px 24px; }
.hiw-cat { font-family: var(--_font-family-2---font-family-2); font-weight: 700; font-size: 11px; letter-spacing: 0.09em; text-transform: uppercase; color: #0F6E56; margin: 0 0 12px; display: flex; align-items: center; justify-content: space-between; }
.hiw-cat .hiw-count { color: #8B978F; font-weight: 600; }
.hiw-q { font-family: var(--font-family--font-primary); font-weight: 700; font-size: 19px; line-height: 1.3; color: var(--colors--text-color); margin: 0 0 20px; }
.hiw-facerow { display: flex; gap: 11px; margin-bottom: 20px; }
.hiw-face { flex: 1; aspect-ratio: 1; border-radius: 18px; display: flex; align-items: center; justify-content: center;
  background: rgba(255,255,255,0.32); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.8), inset 0 0 0 1px rgba(255,255,255,0.4), 0 6px 14px -10px rgba(16,40,33,0.25); transition: box-shadow 0.25s ease; }
.hiw-face svg { width: 40px; height: 40px; stroke: #3A4742; }
.hiw-face.is-on { box-shadow: inset 0 1px 0 rgba(255,255,255,0.8), inset 0 0 0 1.5px rgba(22,168,139,0.55), 0 10px 20px -12px rgba(22,168,139,0.4); }
.hiw-face.is-on svg { stroke: #16A88B; }
.hiw-prog { height: 3px; border-radius: 3px; background: rgba(22,32,29,0.12); margin-bottom: 16px; overflow: hidden; }
.hiw-prog i { display: block; height: 100%; width: 40%; background: #16A88B; border-radius: 3px; }
.hiw-msg { border-radius: 16px; padding: 15px 16px; margin-bottom: 18px; min-height: 56px; display: flex; align-items: center; color: #8B978F; font-size: 14px;
  background: rgba(255,255,255,0.28); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.7), inset 0 0 0 1px rgba(255,255,255,0.4); }
.hiw-msg.typing { align-items: flex-start; color: var(--colors--text-color); }
.hiw-msg.typing .hiw-ph { display: none; }
.hiw-msg .hiw-typed { color: var(--colors--text-color); font-size: 14px; font-family: var(--_font-family-2---font-family-2); line-height: 1.5; }
.hiw-share { width: 100%; text-align: center; border-radius: 16px; padding: 15px; font-family: var(--font-family--font-primary); font-weight: 700; font-size: 15px; color: #fff;
  background: linear-gradient(180deg, #1FB897, #14907A); box-shadow: inset 0 1px 0 rgba(255,255,255,0.5), 0 14px 26px -14px rgba(22,168,139,0.75); transition: background 0.3s ease, color 0.3s ease, box-shadow 0.3s ease; }
.hiw-share.ghost { color: #5B6670; background: rgba(255,255,255,0.32); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); box-shadow: inset 0 1px 0 rgba(255,255,255,0.7), inset 0 0 0 1px rgba(255,255,255,0.45); }
.hiw-share.answered { color: #fff; background: linear-gradient(180deg, #1FB897, #14907A); -webkit-backdrop-filter: none; backdrop-filter: none; box-shadow: inset 0 1px 0 rgba(255,255,255,0.5), 0 14px 26px -14px rgba(22,168,139,0.75); }

/* plain white platform report card (non-glassy) */
.hiw-report-card { width: 100%; max-width: 392px; background: #fff; border: 1px solid #EEF1EF; border-radius: 20px; box-shadow: 0 26px 56px -32px rgba(16,40,33,0.24); padding: 26px 26px 24px; }
.hiw-rc-label { font-family: var(--_font-family-2---font-family-2); font-size: 13px; color: #8B978F; margin: 0 0 8px; }
.hiw-rc-row { display: flex; align-items: baseline; gap: 11px; margin-bottom: 16px; }
.hiw-rc-pct { font-family: var(--font-family--font-primary); font-weight: 800; font-size: 40px; letter-spacing: -0.02em; color: var(--colors--text-color); line-height: 1; }
.hiw-rc-delta { font-family: var(--font-family--font-primary); font-size: 14px; font-weight: 700; color: #16A88B; }
.hiw-rc-chart { margin-bottom: 8px; }
.hiw-rc-date { font-family: var(--_font-family-2---font-family-2); font-size: 12px; color: #8B978F; margin: 0 0 22px; }
.hiw-rc-div { height: 1px; background: #EEF1EF; margin-bottom: 18px; }
.hiw-rc-ai { display: flex; align-items: center; gap: 8px; font-family: var(--_font-family-2---font-family-2); font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; color: #8B978F; font-weight: 600; margin-bottom: 16px; }
.hiw-rc-ai svg { width: 15px; height: 15px; color: #AAB3AE; }
.hiw-rc-fb { margin-bottom: 16px; }
.hiw-rc-fb:last-child { margin-bottom: 0; }
.hiw-rc-pill { display: inline-block; font-family: var(--font-family--font-primary); font-weight: 700; font-size: 11px; letter-spacing: 0.03em; text-transform: uppercase; padding: 5px 11px; border-radius: 8px; margin-bottom: 10px; }
.hiw-rc-pill.keep { background: #E3F3EA; color: #2C7E5E; }
.hiw-rc-pill.improve { background: #FBE7E6; color: #C0564E; }
.hiw-rc-fb p { font-family: var(--_font-family-2---font-family-2); font-size: 14.5px; color: #3A4742; line-height: 1.5; margin: 0; }

@media (max-width: 860px) {
  .hiw-grid { grid-template-columns: 1fr; gap: 40px; }
  .hiw-stage-wrap { order: -1; }
  .hiw-stage { aspect-ratio: auto; min-height: 430px; }
  .hiw { padding: 72px 0; }
}
@media (prefers-reduced-motion: reduce) {
  .hiw-visual, .hiw-num, .hiw-step-h::before { transition: none; }
}

/* ══════════════ Contextual questions (dark-green, self-playing app loop) ══════════════
   Dark green derived from the brand green (#16A88B); aqua/bright-green accents.
   BrittiSans headings, Inter body, site .button-primary CTA, ribbon-style strip.
   The .ctx-app panel animation + its JS timing are carried over from the mockup. */
.ctx { --ctx-ink: #0B221D; --ctx-green: #16A88B; --ctx-green-br: #4FC79E; --ctx-aqua: #7FE0C4; --ctx-soft: rgba(255,255,255,0.72); --ctx-line: rgba(255,255,255,0.10); --ctx-ic-soft: rgba(127,224,196,0.16); position: relative; overflow: visible; background: #FBFCFB; color: #fff; padding: 92px 0 168px; }
/* Dark body with a diagonal bottom edge; the revealed triangle below the slant
   is the section's own #FBFCFB (matching the white section below) so it blends. */
.ctx-bg { position: absolute; inset: 0; z-index: 0; background: var(--ctx-ink); -webkit-clip-path: polygon(0 0, 100% 0, 100% calc(100% - 96px), 0 100%); clip-path: polygon(0 0, 100% 0, 100% calc(100% - 96px), 0 100%); }
/* Diagonal multi-colour bar running along the slanted bottom edge (solid, on-angle). */
.ctx-strip { position: absolute; left: -6%; right: -6%; bottom: 40px; height: 62px; z-index: 1; pointer-events: none; transform: rotate(-3deg); opacity: 0.95; background: linear-gradient(100deg, #0F6E56, #16A88B 40%, #45BE8A 66%, #57C6F0); }
.ctx-inner { position: relative; z-index: 1; }
.ctx-top { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; margin-bottom: 68px; }
.ctx-eyebrow { font-family: var(--font-family--font-primary); font-weight: 600; font-size: 15px; letter-spacing: 0.02em; color: var(--ctx-aqua); margin: 0 0 22px; }
.ctx-title { font-family: var(--font-family--font-primary); font-weight: 600; font-size: clamp(2.5rem, 5vw, 3rem); line-height: 1.08; letter-spacing: -0.02em; color: #fff; max-width: 15ch; margin: 0 0 22px; text-wrap: balance; }
.ctx-lead { font-family: var(--_font-family-2---font-family-2); font-size: 17px; line-height: 1.6; color: var(--ctx-soft); max-width: 44ch; margin: 0 0 32px; }
/* Size the primary CTA to match the master (home) button scale, kept green on dark. */
.ctx .button-primary { font-size: 14px; line-height: 20px; padding: 13px 28px; }

.ctx-appwrap { display: flex; justify-content: center; }
.ctx-app { width: 100%; max-width: 430px; min-height: 452px; background: #071A16; border: 1px solid var(--ctx-line); border-radius: 20px; box-shadow: 0 40px 90px -34px rgba(0,0,0,0.6); overflow: hidden; position: relative; }
/* app top bar removed — panel content now starts from the top */

.ctx-screen { position: absolute; left: 0; right: 0; top: 0; bottom: 0; padding: 26px 24px 26px; opacity: 0; transform: translateY(10px); transition: opacity 0.45s ease, transform 0.5s cubic-bezier(0.2,0.7,0.25,1); pointer-events: none; }
.ctx-screen.show { opacity: 1; transform: none; }
.ctx-prog { display: flex; align-items: center; gap: 12px; margin-bottom: 20px; }
.ctx-prog .ctx-back { color: rgba(255,255,255,0.45); display: flex; }
.ctx-prog .ctx-back svg { width: 16px; height: 16px; }
.ctx-prog .ctx-track { flex: 1; height: 4px; border-radius: 3px; background: rgba(255,255,255,0.12); overflow: hidden; }
.ctx-prog .ctx-fill { display: block; height: 100%; border-radius: 3px; background: var(--ctx-green-br); transition: width 0.5s ease; }
.ctx-app h3 { font-family: var(--font-family--font-primary); font-weight: 600; font-size: 22px; line-height: 1.24; color: #fff; margin: 0 0 18px; }
.ctx-opt { border: 1px solid var(--ctx-line); border-radius: 14px; padding: 16px 18px; margin-bottom: 11px; font-family: var(--font-family--font-primary); font-weight: 600; font-size: 15px; color: #fff; background: rgba(255,255,255,0.02); display: flex; align-items: center; gap: 10px; transition: border-color 0.25s ease, background 0.25s ease; }
.ctx-opt .ctx-tag { margin-left: auto; font-family: var(--_font-family-2---font-family-2); font-weight: 600; font-size: 10px; letter-spacing: 0.04em; text-transform: uppercase; color: rgba(255,255,255,0.35); }
.ctx-opt.ai .ctx-tag { color: var(--ctx-ink); background: var(--ctx-aqua); padding: 3px 8px; border-radius: 999px; }
.ctx-opt.picked { border-color: var(--ctx-green-br); background: rgba(127,224,196,0.10); }
.ctx-cont { margin-top: 14px; width: 100%; text-align: center; border-radius: 12px; padding: 13px; background: rgba(255,255,255,0.06); color: rgba(255,255,255,0.5); font-family: var(--font-family--font-primary); font-weight: 600; font-size: 14px; transition: background 0.25s ease, color 0.25s ease; }
.ctx-cont.on { background: var(--ctx-aqua); color: var(--ctx-ink); }
.ctx-topicline { font-family: var(--_font-family-2---font-family-2); font-size: 13.5px; color: rgba(255,255,255,0.55); margin: 0 0 8px; }
.ctx-topicline b { color: var(--ctx-green-br); font-weight: 700; }
.ctx-csub { font-family: var(--_font-family-2---font-family-2); font-size: 13.5px; color: rgba(255,255,255,0.5); margin: 0 0 16px; line-height: 1.45; }
.ctx-ta { border: 1px solid var(--ctx-line); border-radius: 13px; min-height: 118px; padding: 14px 15px; font-family: var(--_font-family-2---font-family-2); font-size: 13.5px; color: #fff; background: rgba(255,255,255,0.02); position: relative; line-height: 1.5; }
.ctx-cur { display: inline-block; width: 2px; height: 15px; background: var(--ctx-green-br); vertical-align: -2px; animation: ctxBlink 1.1s steps(1) infinite; }
@keyframes ctxBlink { 50% { opacity: 0; } }
.ctx-count { position: absolute; right: 12px; bottom: 10px; font-size: 11px; color: rgba(255,255,255,0.35); }
.ctx-done { display: flex; flex-direction: column; align-items: center; justify-content: center; height: 100%; text-align: center; padding-bottom: 20px; }
.ctx-tickbig { width: 56px; height: 56px; margin-bottom: 20px; }
.ctx-tickbig svg { width: 100%; height: 100%; color: var(--ctx-aqua); }
.ctx-done h3 { font-size: 24px; margin-bottom: 12px; }
.ctx-done p { font-family: var(--_font-family-2---font-family-2); font-size: 14.5px; color: rgba(255,255,255,0.6); max-width: 30ch; line-height: 1.5; }
.ctx-done p b { color: var(--ctx-green-br); font-weight: 700; }

.ctx-sources { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; border-top: 1px solid var(--ctx-line); padding-top: 44px; }
.ctx-src .ctx-sic { width: 44px; height: 44px; margin-bottom: 18px; }
.ctx-src .ctx-sic svg { width: 100%; height: 100%; display: block; }
.ctx-src h4 { font-family: var(--font-family--font-primary); font-weight: 600; font-size: 17px; color: #fff; padding-left: 13px; border-left: 3px solid var(--ctx-green-br); margin: 0 0 12px; }
.ctx-src p { font-family: var(--_font-family-2---font-family-2); font-size: 15px; line-height: 1.6; color: var(--ctx-soft); max-width: 42ch; margin: 0; }

@media (max-width: 900px) {
  .ctx-top { grid-template-columns: 1fr; gap: 40px; }
  .ctx-appwrap { order: -1; }
  .ctx-sources { grid-template-columns: 1fr; gap: 36px; }
  .ctx-title, .ctx-lead { max-width: none; }
  .ctx { padding: 72px 0 120px; }
}
@media (prefers-reduced-motion: reduce) {
  .ctx-screen, .ctx-opt, .ctx-cont, .ctx-prog .ctx-fill { transition: none; }
  .ctx-cur { animation: none; }
}

/* ══════════════ The apps (device stage over mesh) ══════════════
   Reuses the how-it-works glass desktop card + a straight phone lock-screen
   with a real Croissant push notification. BrittiSans headings, brand tokens. */
.apps { --ap-green: #16A88B; --ap-deep: #0F6E56; --ap-soft: #DCEFE7; --ap-strong: #16A88B; position: relative; overflow: hidden; background: var(--colors--white); padding: 92px 0 100px; }
.apps-inner { position: relative; z-index: 1; }
.apps-head { max-width: 640px; margin: 0 auto 44px; text-align: center; }
.apps-eyebrow { font-family: var(--font-family--font-primary); font-weight: 600; font-size: 15px; letter-spacing: 0.02em; color: var(--ap-deep); margin: 0 0 18px; }
.apps-title { font-family: var(--font-family--font-primary); font-weight: 600; font-size: clamp(30px, 3.4vw, 44px); line-height: 1.08; letter-spacing: -0.02em; color: var(--colors--text-color); margin: 0 0 18px; }
.apps-lead { font-family: var(--_font-family-2---font-family-2); font-size: 17px; line-height: 1.6; color: #5B6670; margin: 0; }
.apps-stage { position: relative; display: flex; align-items: center; justify-content: center; min-height: 452px; margin-bottom: 56px; }
.apps-mesh { position: absolute; inset: 2% 8%; z-index: 0; border-radius: 44px; filter: blur(34px); opacity: 0.72; background:
  radial-gradient(38% 46% at 30% 40%, rgba(127,224,196,0.85), transparent 70%),
  radial-gradient(40% 46% at 74% 60%, rgba(87,198,240,0.72), transparent 72%),
  radial-gradient(42% 44% at 60% 88%, rgba(111,194,141,0.6), transparent 72%); }
/* glass desktop card (same language as .hiw-glass) */
.apps-desktop { position: relative; z-index: 1; width: 420px; max-width: 56%; border-radius: 26px; overflow: hidden;
  background: linear-gradient(180deg, rgba(255,255,255,0.55), rgba(255,255,255,0.34));
  -webkit-backdrop-filter: blur(30px) saturate(1.8); backdrop-filter: blur(30px) saturate(1.8);
  box-shadow: 0 42px 88px -34px rgba(16,40,33,0.4), inset 0 1px 0 rgba(255,255,255,0.9), inset 0 0 0 1px rgba(255,255,255,0.35); }
.apps-desktop::before { content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; z-index: 2; background: linear-gradient(180deg, rgba(255,255,255,0.5) 0%, rgba(255,255,255,0) 26%); }
.apps-dt-body { position: relative; z-index: 3; padding: 26px 24px; }
.apps-dt-tag { display: block; font-family: var(--font-family--font-primary); font-weight: 700; font-size: 11px; letter-spacing: 0.07em; text-transform: uppercase; color: var(--ap-deep); margin: 0 0 12px; }
.apps-dt-body h4 { font-family: var(--font-family--font-primary); font-weight: 700; font-size: 18px; line-height: 1.3; color: var(--colors--text-color); margin: 0 0 18px; }
.apps-faces { display: flex; gap: 10px; }
.apps-faces .apps-f { flex: 1; aspect-ratio: 1; border-radius: 16px; display: flex; align-items: center; justify-content: center;
  background: rgba(255,255,255,0.32); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.8), inset 0 0 0 1px rgba(255,255,255,0.4); }
.apps-faces .apps-f svg { width: 38px; height: 38px; stroke: #3A4742; }
.apps-faces .apps-f.on { box-shadow: inset 0 1px 0 rgba(255,255,255,0.8), inset 0 0 0 1.5px rgba(22,168,139,0.55), 0 10px 20px -12px rgba(22,168,139,0.4); }
.apps-faces .apps-f.on svg { stroke: var(--ap-green); }
/* straight phone lock screen */
.apps-phone { position: relative; z-index: 2; width: 208px; margin-left: -56px; background: #1C1C1E; border-radius: 34px; padding: 7px; box-shadow: 0 30px 55px rgba(14, 19, 32, 0.3), inset 0 1.5px 1px rgba(255, 255, 255, 0.12); }
.apps-scr { position: relative; display: flex; flex-direction: column; min-height: 440px; border-radius: 28px; overflow: hidden; color: #fff; background: linear-gradient(180deg, #0c0f0e, #15191b); }
.apps-notch { position: absolute; top: 9px; left: 50%; transform: translateX(-50%); width: 58px; height: 16px; border-radius: 9px; background: #1C1C1E; z-index: 3; }
.apps-status { display: flex; align-items: center; justify-content: space-between; padding: 14px 16px 0; font-family: var(--_font-family-2---font-family-2); font-size: 10px; font-weight: 600; color: rgba(255,255,255,0.9); }
.apps-status .apps-bars { display: flex; gap: 2px; align-items: flex-end; }
.apps-status .apps-bars i { width: 2px; background: #fff; border-radius: 1px; }
.apps-batt svg { width: 24px; height: 12px; display: block; }
.apps-clock { text-align: center; margin-top: 30px; }
.apps-clock .apps-time { font-family: var(--font-family--font-primary); font-weight: 300; font-size: 58px; line-height: 1; letter-spacing: -0.01em; color: #fff; }
.apps-clock .apps-date { font-family: var(--_font-family-2---font-family-2); font-size: 13px; color: rgba(255,255,255,0.85); margin-top: 4px; font-weight: 500; }
.apps-noti { margin: 26px 12px 0; background: rgba(255,255,255,0.16); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); border-radius: 14px; padding: 10px 12px; }
.apps-noti .apps-noti-row { display: flex; align-items: center; gap: 7px; margin-bottom: 6px; }
.apps-app-ic { width: 18px; height: 18px; display: flex; align-items: center; justify-content: center; }
.apps-app-ic img { width: 100%; height: 100%; object-fit: contain; display: block; }
.apps-app-ic svg { width: 13px; height: 13px; color: #fff; }
.apps-app-name { font-family: var(--font-family--font-primary); font-weight: 600; font-size: 9.5px; letter-spacing: 0.02em; color: rgba(255,255,255,0.85); }
.apps-ago { margin-left: auto; font-family: var(--_font-family-2---font-family-2); font-size: 8.5px; color: rgba(255,255,255,0.55); }
.apps-noti-title { font-family: var(--font-family--font-primary); font-weight: 700; font-size: 11px; color: #fff; margin-bottom: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.apps-noti-msg { font-family: var(--_font-family-2---font-family-2); font-size: 9.5px; color: rgba(255,255,255,0.8); line-height: 1.35; }
.apps-foot { margin-top: auto; text-align: center; padding-bottom: 16px; font-family: var(--_font-family-2---font-family-2); font-size: 12px; font-weight: 600; color: rgba(255,255,255,0.9); }
/* three points */
.apps-points { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; border-top: 1px solid #E7EAEE; padding-top: 44px; }
.apps-pt .apps-pic { width: 44px; height: 44px; margin-bottom: 16px; }
.apps-pt .apps-pic svg { width: 100%; height: 100%; display: block; }
.apps-pt h3 { font-family: var(--font-family--font-primary); font-weight: 600; font-size: 16.5px; color: var(--colors--text-color); margin: 0 0 9px; }
.apps-pt p { font-family: var(--_font-family-2---font-family-2); font-size: 14.5px; line-height: 1.55; color: #5B6670; margin: 0; }
@media (max-width: 820px) {
  .apps-stage { flex-direction: column; min-height: 0; }
  .apps-desktop { max-width: 92%; width: auto; }
  .apps-phone { margin-left: 0; margin-top: -46px; }
  .apps-points { grid-template-columns: 1fr; gap: 30px; }
  .apps { padding: 72px 0 84px; }
}

/* ══════════════ Social proof (switchable testimonial card) ══════════════ */
.sp { position: relative; overflow: hidden; background: var(--colors--white); padding: 96px 0 104px; }
.sp-guides { position: absolute; inset: 0; z-index: 0; pointer-events: none; }
.sp-guides span { position: absolute; top: 0; bottom: 0; border-left: 1px dashed rgba(22,32,29,0.07); }
.sp-guides span:nth-child(1) { left: 33.33%; }
.sp-guides span:nth-child(2) { left: 66.66%; }
.sp-inner { position: relative; z-index: 1; }
.sp-slides { position: relative; border-radius: 22px; box-shadow: 0 34px 74px -34px rgba(16,40,33,0.4); overflow: hidden; }
.sp-slide { position: absolute; inset: 0; display: grid; grid-template-columns: 1fr 1fr; opacity: 0; transform: translateY(10px); transition: opacity 0.55s ease, transform 0.55s ease; pointer-events: none; }
.sp-slide.show { position: relative; opacity: 1; transform: none; pointer-events: auto; }
.sp-quote-side { padding: 56px 54px 68px; }
.sp-quote { font-family: var(--font-family--font-primary); font-weight: 700; font-size: clamp(18px, 1.9vw, 23px); line-height: 1.5; color: #fff; max-width: 32ch; margin: 0 0 28px; letter-spacing: -0.01em; }
.sp-attr { font-family: var(--_font-family-2---font-family-2); font-size: 15px; color: rgba(255,255,255,0.92); margin: 0; }
.sp-attr b { font-weight: 700; }
.sp-attr .sp-role { color: rgba(255,255,255,0.72); }
.sp-brand-side { position: relative; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.sp-brand-side .sp-bg { position: absolute; inset: 0; background-size: cover; background-position: center; }
.sp-brand-side .sp-wm { position: relative; z-index: 2; font-family: var(--font-family--font-primary); font-weight: 800; font-size: clamp(30px, 4vw, 54px); color: #fff; letter-spacing: -0.02em; }
/* Sammies watermark doubles as the outbound link to sammies.studio.
   Kill the default underline so it looks identical to the Trison
   watermark; add a subtle hover underline as the "clickable" cue. */
.sp-brand-side a.sp-wm--link { text-decoration: none; transition: opacity 0.2s ease; }
.sp-brand-side a.sp-wm--link:hover { text-decoration: underline; text-underline-offset: 10px; text-decoration-thickness: 2px; }
.sp-brand-side a.sp-wm--link:focus-visible { outline: 2px solid #fff; outline-offset: 6px; border-radius: 2px; }
.sp-slide.trison { background: #0F6E56; }
.sp-slide.trison .sp-brand-side { background: #0F6E56; }
.sp-slide.trison .sp-brand-side .sp-bg { opacity: 0.42; background-image: url('/static/images/trison-desk-bg.png'); }
.sp-slide.trison .sp-brand-side::after { content: ""; position: absolute; inset: 0; background: linear-gradient(120deg, rgba(15,110,86,0.92) 12%, rgba(15,110,86,0.5) 60%, rgba(15,110,86,0.35)); }
.sp-slide.sammies { background: #B8862B; }
.sp-slide.sammies .sp-brand-side { background: #B8862B; }
.sp-slide.sammies .sp-brand-side .sp-bg { opacity: 0.5; background-image: url('/static/images/sammies-phone-bg.png'); }
.sp-slide.sammies .sp-brand-side::after { content: ""; position: absolute; inset: 0; background: linear-gradient(120deg, rgba(184,134,43,0.92) 12%, rgba(184,134,43,0.5) 60%, rgba(184,134,43,0.35)); }
.sp-dots { position: absolute; bottom: 24px; left: 50%; transform: translateX(-50%); display: flex; gap: 8px; z-index: 4; }
.sp-dots button { width: 26px; height: 4px; border-radius: 3px; border: none; cursor: pointer; background: rgba(255,255,255,0.4); padding: 0; transition: background 0.2s; }
.sp-dots button.on { background: #fff; }
.sp-switcher { display: flex; justify-content: center; align-items: center; gap: 56px; margin-top: 34px; }
.sp-switcher button { background: none; border: none; cursor: pointer; padding: 0; transition: opacity 0.25s, filter 0.25s; }
.sp-switcher button img { height: 26px; width: auto; opacity: 0.45; filter: grayscale(1); transition: opacity 0.25s, filter 0.25s; }
.sp-switcher button.on img { opacity: 1; filter: none; }
@media (max-width: 820px) {
  .sp-slide { grid-template-columns: 1fr; }
  .sp-brand-side { min-height: 150px; order: -1; }
  .sp-quote-side { padding: 38px 30px 54px; }
  .sp-dots { bottom: 16px; }
  .sp-switcher { gap: 32px; }
  .sp { padding: 72px 0 84px; }
}
@media (prefers-reduced-motion: reduce) { .sp-slide { transition: none; } }

/* ══════════════ FAQ (flat accordion) ══════════════ */
.pfaq { position: relative; overflow: hidden; background: var(--colors--white); padding: 80px 0 96px; }
.pfaq-guides { position: absolute; inset: 0; z-index: 0; pointer-events: none; }
.pfaq-guides span { position: absolute; top: 0; bottom: 0; border-left: 1px dashed rgba(22,32,29,0.07); }
.pfaq-guides span:nth-child(1) { left: 25%; }
.pfaq-guides span:nth-child(2) { left: 50%; }
.pfaq-guides span:nth-child(3) { left: 75%; }
.pfaq-inner { position: relative; z-index: 1; }
.pfaq-title { font-family: var(--font-family--font-primary); font-weight: 600; font-size: clamp(34px, 4vw, 52px); letter-spacing: -0.02em; color: var(--colors--text-color); margin: 0 0 56px; }
.pfaq-list { border-top: 1px solid #E7EAEE; }
.pfaq-item { border-bottom: 1px solid #E7EAEE; transition: background 0.2s ease; }
.pfaq-q { width: 100%; background: none; border: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 24px; text-align: left; padding: 26px 16px; font-family: var(--font-family--font-primary); font-weight: 600; font-size: clamp(17px, 1.5vw, 19px); letter-spacing: -0.01em; color: var(--colors--text-color); }
.pfaq-chev { flex-shrink: 0; width: 44px; height: 44px; border-radius: 50%; background: #16A88B; display: inline-flex; align-items: center; justify-content: center; transition: transform 0.25s ease, background 0.2s ease; }
.pfaq-chev svg { width: 17px; height: 17px; color: #fff; display: block; }
.pfaq-item.open .pfaq-chev { transform: rotate(180deg); background: #0F6E56; }
.pfaq-a { max-height: 0; overflow: hidden; transition: max-height 0.3s ease; }
.pfaq-a-inner { padding: 0 16px 28px; max-width: 62ch; font-family: var(--_font-family-2---font-family-2); font-size: 16px; line-height: 1.6; color: #5B6670; }
.pfaq-a-inner a { color: #0F6E56; font-weight: 600; text-decoration: none; border-bottom: 1px solid rgba(15,110,86,0.35); }
.pfaq-a-inner a:hover { border-bottom-color: #0F6E56; }
.pfaq-item.open { background: #F4FBF9; }
.pfaq-item.open .pfaq-a { max-height: 260px; }
@media (max-width: 560px) {
  .pfaq { padding: 60px 0 76px; }
  .pfaq-guides { display: none; }
  .pfaq-q { padding: 22px 8px; }
  .pfaq-a-inner { padding: 0 8px 22px; }
}
@media (prefers-reduced-motion: reduce) { .pfaq-chev, .pfaq-a { transition: none; } }

/* ═════════ iPad-portrait / small-tablet breakpoint (768px) ═════════
   Most grids already collapse to 1 or 2 columns via the earlier
   max-widths (991 for .ph-inner, 920 for .pl-grid + .pl-logos, 860
   for .hiw-grid, 820 for .sp-slide). What was missing was tuned
   vertical rhythm for portrait — the gaps inherited from those wider
   breakpoints were too airy for iPad-portrait. This block tightens
   gaps and flips the .sp-slide order so quote reads above the brand
   image (overriding the 820 rule's `.sp-brand-side { order: -1 }`). */
@media (max-width: 768px) {
  /* Hero: 1-col from 991 rule; tighten vertical gap so headline and phone
     sit closer without feeling airy. */
  .ph-inner { gap: 40px; }

  /* Value pillars: 2-col from 920 rule stays (4 pillars → 2×2 grid). Just
     tighten the gaps for portrait; existing 560 rule collapses to 1-col. */
  .pl-grid { gap: 28px 20px; }

  /* Logo wall: 2-col from 920 rule stays; tighter gaps. */
  .pl-logos { gap: 22px 20px; }

  /* How it works: 1-col from 860 rule; tighter vertical gap between
     the steps column and the frosted-glass demo. */
  .hiw-grid { gap: 32px; }

  /* Social proof: 1-col from 820 rule. Reset the 820 rule's
     `.sp-brand-side { order: -1 }` so the quote reads above the brand
     image at portrait rather than the image being on top. */
  .sp-slide { grid-template-columns: 1fr; }
  .sp-brand-side { order: 0; }
}