/* ============================================================
   KAPKON SUBSIDIARY PAGES — shared stylesheet
   Loaded by every /kapride, /kapthink, /kaptok, /kapgad page.
   Reuses the same design tokens as gateway.css.
============================================================ */
:root{
  --bg:#080B16;
  --surface:rgba(255,255,255,.035); --border:rgba(255,255,255,.09);
  --text:#F3F5FA; --muted:rgba(243,245,250,.5);
  --indigo:#3E63D6; --indigo-tint:rgba(62,99,214,.16);
  --forest:#49A62E; --forest-tint:rgba(73,166,46,.16);
  --violet:#8267F0; --violet-tint:rgba(130,103,240,.16);
  --gold:#D6A13E; --gold-tint:rgba(214,161,62,.16);
  --logo-bg:#0D1226;
  --font-display:'Fraunces',serif; --font-body:'Inter',sans-serif; --font-mono:'IBM Plex Mono',monospace;
}
[data-theme="light"]{
  --bg:#EDEFF6;
  --surface:#FFFFFF; --border:rgba(15,20,45,.08);
  --text:#12162B; --muted:rgba(18,22,43,.56);
  --logo-bg:#FFFFFF;
  --shadow-card:0 1px 2px rgba(15,20,45,.04), 0 14px 34px rgba(15,20,45,.09);
}
[data-theme="light"] body{
  background:
    radial-gradient(55% 45% at 12% 0%, rgba(62,99,214,.06) 0%, transparent 60%),
    radial-gradient(50% 45% at 100% 100%, rgba(214,161,62,.08) 0%, transparent 60%),
    var(--bg);
}
[data-theme="light"] .sub-nav .mark img{box-shadow:0 6px 16px rgba(15,20,45,.14)}
[data-theme="light"] .sub-cta{box-shadow:var(--shadow-card)}
[data-theme="light"] .sub-hero .icon-wrap{box-shadow:0 10px 26px rgba(15,20,45,.1)}
*,*::before,*::after{box-sizing:border-box;margin:0;padding:0}
html,body{height:100%}
body{
  font-family:var(--font-body);
  background:var(--bg);
  color:var(--text);
  min-height:100vh;
  display:flex;flex-direction:column;
}
a{color:inherit;text-decoration:none}
svg{display:block}
:focus-visible{outline:2px solid var(--indigo);outline-offset:3px;border-radius:4px}
@media(prefers-reduced-motion:reduce){*{animation:none!important;transition:none!important}}

.theme-toggle{
  position:fixed; top:20px; right:20px; z-index:50;
  width:40px; height:40px; border-radius:11px;
  border:1px solid var(--border); background:var(--surface);
  display:flex; align-items:center; justify-content:center;
  cursor:pointer; transition:border-color .25s, background .25s;
}
.theme-toggle:hover{border-color:rgba(255,255,255,.3)}
.theme-toggle svg{width:17px;height:17px;color:var(--muted)}
.theme-toggle .icon-moon{display:none}
[data-theme="light"] .theme-toggle .icon-sun{display:none}
[data-theme="light"] .theme-toggle .icon-moon{display:block}

/* ---- sub-nav ---- */
.sub-nav{display:flex;align-items:center;justify-content:space-between;padding:22px 32px;max-width:1200px;margin:0 auto;width:100%}
.sub-nav .brand{display:flex;align-items:center;gap:10px;font-family:var(--font-display);font-weight:700}
.sub-nav .brand .mark{width:32px;height:32px;border-radius:9px;background:var(--logo-bg);border:1px solid var(--border);display:flex;align-items:center;justify-content:center;font-size:14px}
.sub-nav .brand .mark img{width:100%;height:100%;object-fit:cover;border-radius:9px}
.sub-nav a.back{font-size:.85rem;color:var(--muted);display:flex;align-items:center;gap:6px}
.sub-nav a.back:hover{color:var(--text)}
.sub-nav a.back svg{width:14px;height:14px;transform:rotate(180deg)}

/* ---- hero ---- */
.sub-hero{max-width:900px;margin:40px auto 0;padding:0 32px;text-align:center}
.sub-hero .num{font-family:var(--font-mono);font-size:11px;letter-spacing:.18em;color:var(--muted);margin-bottom:18px}
.sub-hero .icon-wrap{width:64px;height:64px;border-radius:16px;display:flex;align-items:center;justify-content:center;margin:0 auto 24px}
.sub-hero .icon-wrap svg{width:30px;height:30px}
.sub-hero h1{font-family:var(--font-display);font-weight:600;font-size:clamp(2.2rem,5.5vw,3.4rem);letter-spacing:-.01em;margin-bottom:16px}
.sub-hero p{color:var(--muted);font-size:1.1rem;max-width:600px;margin:0 auto}

.color-blue .icon-wrap{background:var(--indigo-tint);color:var(--indigo)}
.color-green .icon-wrap{background:var(--forest-tint);color:var(--forest)}
.color-purple .icon-wrap{background:var(--violet-tint);color:var(--violet)}
.color-gold .icon-wrap{background:var(--gold-tint);color:var(--gold)}

/* ---- contact CTA ---- */
.sub-cta{max-width:520px;margin:60px auto;padding:40px 32px;border:1px solid var(--border);border-radius:20px;background:var(--surface);text-align:center}
.sub-cta h2{font-family:var(--font-display);font-weight:600;font-size:1.6rem;margin-bottom:10px}
.sub-cta p{color:var(--muted);font-size:.92rem;margin-bottom:22px}
.sub-cta a.email{display:inline-flex;align-items:center;gap:8px;padding:12px 22px;border-radius:11px;background:var(--text);color:var(--bg);font-weight:600;font-size:.9rem}

/* ---- footer ---- */
.sub-footer{padding:40px 24px;text-align:center;margin-top:auto}
.sub-footer .copy{font-size:11.5px;color:var(--muted);font-family:var(--font-mono)}
