/* About page — full-width marketing-style layout, same brand as the app. */

body.about-page { padding: 0 !important; background: #fff; }
.ab-pad { padding-inline: clamp(18px, 5vw, 80px); }

/* ---------------------------------------------------------------- top bar */
.ab-bar {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; gap: 20px;
  padding: 12px clamp(18px, 5vw, 80px);
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: saturate(1.4) blur(14px); -webkit-backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid rgba(225, 232, 240, 0.9);
}
.ab-brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--text); }
.ab-brand svg { width: 40px; height: 40px; filter: drop-shadow(0 6px 12px rgba(15, 91, 120, 0.25)); }
.ab-brand strong { display: block; font-size: 1.15rem; font-weight: 800; color: var(--primary-dark); line-height: 1.1; }
.ab-brand small { font-size: 0.72rem; color: var(--text-muted); }
.ab-links { display: flex; gap: 4px; margin-inline-start: auto; }
.ab-links a { padding: 8px 14px; border-radius: 10px; text-decoration: none; color: var(--text-muted); font-weight: 600; font-size: 0.92rem; }
.ab-links a:hover { background: var(--tk-surface-2, #f7f9fc); color: var(--primary-dark); }
.ab-links a:focus-visible { outline: none; box-shadow: var(--focus-ring); }
.ab-cta { white-space: nowrap; }

/* ---------------------------------------------------------------- hero (hosts the 3D scene) */
.ab-hero {
  position: relative; overflow: hidden; color: #fff;
  min-height: clamp(460px, 74vh, 720px);
  display: flex; align-items: center;
  padding: 60px clamp(18px, 5vw, 80px) 120px;
  background:
    radial-gradient(700px 420px at 20% 25%, rgba(43, 179, 163, 0.45), transparent 60%),
    radial-gradient(600px 400px at 85% 90%, rgba(242, 169, 59, 0.28), transparent 60%),
    linear-gradient(150deg, #07263a 0%, #0b3d52 45%, #0f5b78 100%);
}
.ab-hero::before {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0.35;
  background-image: linear-gradient(rgba(255,255,255,0.06) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,0.06) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse at 30% 45%, #000 20%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse at 30% 45%, #000 20%, transparent 75%);
}
.ab-hero #authScene { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.ab-hero .auth-visual__fallback { position: absolute; inset: 0; pointer-events: none; transition: opacity 0.8s ease; }
.ab-hero .auth-visual__fallback span { position: absolute; border-radius: 50%; animation: ab-float 9s ease-in-out infinite; }
.ab-hero .auth-visual__fallback span:nth-child(1) { width: 240px; height: 240px; top: 22%; left: 12%; background: radial-gradient(circle at 30% 30%, #6fe0d2, #1b8e86 60%, #0b4d5c); }
.ab-hero .auth-visual__fallback span:nth-child(2) { width: 130px; height: 130px; top: 58%; left: 30%; background: radial-gradient(circle at 30% 30%, #ffe0a3, #f2a93b 60%, #a8650c); animation-delay: -3s; }
.ab-hero .auth-visual__fallback span:nth-child(3) { width: 70px; height: 70px; top: 26%; left: 36%; background: radial-gradient(circle at 30% 30%, #fff, #a9c8d8 60%, #4a7d96); animation-delay: -6s; }
.ab-hero.is-3d .auth-visual__fallback { opacity: 0; }
@keyframes ab-float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-18px); } }

.ab-hero__copy { position: relative; z-index: 2; max-width: 620px; }
.ab-eyebrow {
  display: inline-flex; align-items: center; gap: 8px; font-size: 0.82rem; font-weight: 700;
  background: rgba(255, 255, 255, 0.12); border: 1px solid rgba(255, 255, 255, 0.2); border-radius: 999px; padding: 6px 14px; margin-bottom: 18px;
}
.ab-eyebrow i { width: 7px; height: 7px; border-radius: 50%; background: #8ff0e2; box-shadow: 0 0 0 4px rgba(143, 240, 226, 0.2); }
.ab-hero h1 { font-size: clamp(2rem, 4.2vw, 3.3rem); font-weight: 800; line-height: 1.25; text-shadow: 0 6px 30px rgba(0,0,0,0.25); }
.ab-hero p { margin-top: 16px; font-size: clamp(1rem, 1.3vw, 1.15rem); line-height: 1.9; opacity: 0.9; }
.ab-hero__actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 28px; }
.ab-hero__actions .btn { padding: 13px 22px; font-size: 1rem; }
.ab-btn-glass { background: rgba(255,255,255,0.12); color: #fff; border: 1px solid rgba(255,255,255,0.28); backdrop-filter: blur(8px); }
.ab-btn-glass:hover { background: rgba(255,255,255,0.2); color: #fff; }

/* ---------------------------------------------------------------- pillars (overlap the hero) */
.ab-pillars {
  position: relative; z-index: 3; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px;
  margin: -72px clamp(18px, 5vw, 80px) 0;
}
.ab-pillar {
  display: flex; gap: 14px; align-items: flex-start; background: #fff; border-radius: 20px; padding: 22px;
  border: 1px solid var(--border); box-shadow: 0 20px 50px rgba(11, 61, 82, 0.12);
}
.ab-pillar__icon { flex-shrink: 0; width: 50px; height: 50px; border-radius: 14px; display: grid; place-items: center; color: #fff; background: var(--c); box-shadow: 0 10px 20px color-mix(in srgb, var(--c) 35%, transparent); }
.ab-pillar__icon svg { width: 26px; height: 26px; }
.ab-pillar h3 { font-size: 1.1rem; font-weight: 800; color: var(--primary-dark); }
.ab-pillar p { color: var(--text-muted); font-size: 0.92rem; margin-top: 2px; }

/* ---------------------------------------------------------------- bands */
.ab-band { padding: clamp(56px, 8vw, 96px) clamp(18px, 5vw, 80px); scroll-margin-top: 64px; }
.ab-band--tint { background: linear-gradient(180deg, #f4f8fb, #eef4f8); }
.ab-head { max-width: 760px; margin-bottom: 34px; }
.ab-kicker { display: inline-block; font-size: 0.82rem; font-weight: 800; color: #0b6a5f; background: var(--tk-teal-soft, #e5f6f3); border-radius: 999px; padding: 4px 12px; margin-bottom: 12px; }
.ab-band h2 { font-size: clamp(1.5rem, 2.6vw, 2.2rem); font-weight: 800; color: var(--primary-dark); line-height: 1.3; }
.ab-lead { font-size: 1.05rem; line-height: 2; color: #334155; margin-top: 14px; }

.ab-split { display: grid; grid-template-columns: 1.2fr 1fr; gap: clamp(24px, 4vw, 64px); align-items: center; }
.ab-why { background: linear-gradient(160deg, #0b3d52, #0f5b78); color: #fff; border-radius: 24px; padding: 28px 30px; box-shadow: 0 24px 50px rgba(11, 61, 82, 0.22); }
.ab-why h3 { font-size: 1.25rem; font-weight: 800; margin-bottom: 14px; }
.ab-why ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.ab-why li { position: relative; padding-inline-start: 28px; line-height: 1.7; opacity: 0.95; }
.ab-why li::before { content: ""; position: absolute; inset-inline-start: 0; top: 7px; width: 16px; height: 16px; border-radius: 50%; background: radial-gradient(circle, #8ff0e2 35%, rgba(143,240,226,0.25) 40%); }
.ab-why b { color: #ffd38a; }

.ab-features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.ab-feature { background: #fff; border: 1px solid var(--border); border-radius: 20px; padding: 24px; transition: transform 0.18s, box-shadow 0.18s; }
.ab-feature:hover { transform: translateY(-3px); box-shadow: 0 18px 40px rgba(11, 61, 82, 0.1); }
.ab-feature__icon { width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; color: var(--primary); background: var(--tk-primary-soft, #e7f1f6); margin-bottom: 14px; }
.ab-feature__icon svg { width: 24px; height: 24px; }
.ab-feature h3 { font-size: 1.05rem; font-weight: 800; color: var(--primary-dark); margin-bottom: 6px; }
.ab-feature p { color: var(--text-muted); font-size: 0.93rem; line-height: 1.8; }

.ab-flow { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; counter-reset: none; position: relative; }
.ab-flow::before { content: ""; position: absolute; top: 27px; inset-inline: 12%; height: 2px; background: repeating-linear-gradient(90deg, #b9d3df 0 8px, transparent 8px 14px); }
.ab-flow li { position: relative; text-align: center; padding: 0 8px; }
.ab-flow span {
  position: relative; display: inline-grid; place-items: center; width: 56px; height: 56px; border-radius: 50%;
  font-weight: 800; font-size: 1.3rem; color: #fff; background: linear-gradient(135deg, var(--teal, #2bb3a3), var(--primary));
  box-shadow: 0 0 0 8px #fff, 0 12px 24px rgba(15, 91, 120, 0.3); margin-bottom: 16px;
}
.ab-flow h3 { font-size: 1.05rem; font-weight: 800; color: var(--primary-dark); }
.ab-flow p { color: var(--text-muted); font-size: 0.92rem; line-height: 1.8; margin-top: 4px; }

.ab-goals { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.ab-goal { display: flex; gap: 14px; align-items: flex-start; background: #fff; border-radius: 18px; padding: 20px; border: 1px solid var(--border); }
.ab-goal__n { flex-shrink: 0; width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; font-weight: 800; color: #8a5a00; background: #fff3d6; font-size: 1.05rem; }
.ab-goal p { line-height: 1.8; font-size: 0.95rem; color: #334155; }

.ab-values { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.ab-values article { border-radius: 20px; padding: 24px; background: color-mix(in srgb, var(--c) 7%, #fff); border: 1px solid color-mix(in srgb, var(--c) 20%, #fff); }
.ab-values svg { width: 30px; height: 30px; color: var(--c); margin-bottom: 12px; }
.ab-values h3 { font-size: 1.08rem; font-weight: 800; color: var(--primary-dark); }
.ab-values p { color: var(--text-muted); font-size: 0.92rem; margin-top: 4px; line-height: 1.7; }

/* ---------------------------------------------------------------- final */
.ab-final {
  display: grid; grid-template-columns: 1fr 1.4fr; gap: 20px; align-items: stretch;
  padding: 0 clamp(18px, 5vw, 80px) clamp(56px, 8vw, 96px);
}
.ab-credit { border-radius: 24px; padding: 28px; background: #fff; border: 1px solid var(--border); text-align: center; display: flex; flex-direction: column; justify-content: center; }
.ab-credit__badge { align-self: center; font-size: 0.8rem; font-weight: 700; color: #6b56c9; background: #efecfb; border-radius: 999px; padding: 4px 12px; }
.ab-credit__name { font-size: 1.6rem; font-weight: 800; color: var(--primary-dark); margin-top: 10px; }
.ab-credit__note { color: var(--text-muted); font-size: 0.88rem; margin-top: 4px; }
.ab-final__cta {
  border-radius: 24px; padding: 32px; color: #fff;
  background: radial-gradient(400px 200px at 0% 100%, rgba(242,169,59,0.35), transparent 60%), linear-gradient(135deg, #0b3d52, #0f5b78 60%, #13708f);
  display: flex; flex-direction: column; justify-content: center; align-items: flex-start; gap: 8px;
}
.ab-final__cta h2 { font-size: 1.7rem; font-weight: 800; }
.ab-final__cta p { opacity: 0.9; margin-bottom: 10px; }
.ab-final__cta .btn { padding: 12px 22px; }

.ab-foot {
  display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap;
  padding: 18px clamp(18px, 5vw, 80px); font-size: 0.82rem; color: var(--text-muted); border-top: 1px solid var(--border);
}

/* ---------------------------------------------------------------- responsive */
@media (max-width: 1080px) {
  .ab-features, .ab-goals { grid-template-columns: repeat(2, 1fr); }
  .ab-values { grid-template-columns: repeat(2, 1fr); }
  .ab-flow { grid-template-columns: repeat(2, 1fr); row-gap: 32px; }
  .ab-flow::before { display: none; }
}
@media (max-width: 760px) {
  .ab-links { display: none; }
  .ab-cta { margin-inline-start: auto; padding: 9px 14px; font-size: 0.85rem; }
  .ab-brand small { display: none; }
  .ab-hero { min-height: 0; padding: 40px 18px 110px; align-items: flex-end; }
  .ab-hero #authScene { opacity: 0.55; }
  .ab-pillars, .ab-split, .ab-features, .ab-goals, .ab-values, .ab-flow, .ab-final { grid-template-columns: 1fr; }
  .ab-pillars { margin-top: -80px; }
}
@media (prefers-reduced-motion: reduce) {
  .ab-hero .auth-visual__fallback span { animation: none; }
  .ab-feature:hover { transform: none; }
}
