/* ==========================================================================
   p6k v2 — hand-built stylesheet, SaaS-'20 edition
   White, one accent, rounded-8 buttons, hairline borders, gray bands.
   No framework, no build step — the stylesheet is the design system.
   Brand palette (from p6k_visual_style_guide.pdf):
     Graphite  #111827   Violet  #6C63FF   Muted  #6b7280
     Border    #e5e7eb   Band    #f9fafb
   ========================================================================== */

* { margin:0; padding:0; box-sizing:border-box; }
body { font-family:Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
       font-size:16px; color:#111827; background:#fff; line-height:1.65; }
a { color:#6C63FF; text-decoration:none; }
a:hover { text-decoration:underline; }

.container { max-width:1024px; margin:0 auto; padding:0 24px; }
.narrow { max-width:720px; margin:0 auto; padding:0 24px; }

/* header */
header { border-bottom:1px solid #e5e7eb; }
header .container { display:flex; align-items:center; padding-top:16px; padding-bottom:16px; }
.brand { font-weight:700; font-size:18px; color:#111827; text-decoration:none; }
.brand span { color:#6C63FF; }
.brand:hover { text-decoration:none; }
.navlinks { margin-left:auto; display:flex; gap:28px; }
.navlinks a { color:#6b7280; font-size:15px; font-weight:500; }
.navlinks a.on { color:#111827; }
.navlinks a:hover { color:#111827; text-decoration:none; }

/* home hero */
.hero { padding:80px 0 72px; text-align:center; }
.badge { display:inline-block; background:#efedff; color:#514ad6; font-size:13px; font-weight:600;
         padding:4px 12px; border-radius:9999px; margin-bottom:20px; }
h1 { font-size:44px; font-weight:800; letter-spacing:-0.02em; line-height:1.15; margin-bottom:18px; }
.hero h1 { max-width:20ch; margin-left:auto; margin-right:auto; }
.hero .sub { font-size:19px; color:#6b7280; max-width:640px; margin:0 auto 30px; }

/* inner-page header block */
.pagehead { padding:56px 0 8px; }
.pagehead h1 { font-size:36px; }
.pagehead .lede { font-size:19px; color:#6b7280; margin-bottom:8px; }
.crumb { font-size:14px; color:#9ca3af; margin-bottom:18px; }
.crumb a { color:#9ca3af; }
.crumb a:hover { color:#6C63FF; }

/* buttons */
.btn { display:inline-block; background:#6C63FF; color:#fff; font-weight:600; font-size:16px;
       padding:12px 24px; border-radius:8px; box-shadow:0 1px 2px rgba(0,0,0,0.05); }
.btn:hover { background:#5b52f0; text-decoration:none; }
.btn-ghost { display:inline-block; margin-left:12px; color:#111827; font-weight:600; font-size:16px;
             padding:12px 24px; border-radius:8px; border:1px solid #d1d5db; }
.btn-ghost:hover { background:#f9fafb; text-decoration:none; }
.btn-white { display:inline-block; background:#fff; color:#514ad6; font-weight:600; font-size:16px;
             padding:12px 26px; border-radius:8px; }
.btn-white:hover { background:#f3f2ff; text-decoration:none; }

/* sections */
section { padding:56px 0; }
section.gray { background:#f9fafb; border-top:1px solid #e5e7eb; border-bottom:1px solid #e5e7eb; }
h2 svg.icon { width:24px; height:24px; stroke:#6C63FF; stroke-width:2; fill:none;
              stroke-linecap:round; stroke-linejoin:round;
              margin-right:12px; vertical-align:-3px; }
h2 { font-size:26px; font-weight:700; letter-spacing:-0.01em; margin-bottom:14px; }
section p, .pagehead p { font-size:16.5px; color:#4b5563; margin-bottom:16px; }
section p:last-child { margin-bottom:0; }
p b { color:#111827; }

/* numbered steps (design-time loop) */
ol.steps { list-style:none; margin:8px 0 0; counter-reset:step; }
ol.steps li { position:relative; padding-left:52px; margin-bottom:18px; color:#4b5563; counter-increment:step; }
ol.steps li::before { content:counter(step); position:absolute; left:0; top:0;
                      width:32px; height:32px; border-radius:9999px; background:#efedff; color:#514ad6;
                      font-weight:700; font-size:14px; display:flex; align-items:center; justify-content:center; }

/* plain list (the desk) */
ul.plain { list-style:none; margin:8px 0 0; }
ul.plain li { position:relative; padding-left:26px; margin-bottom:14px; color:#4b5563; }
ul.plain li::before { content:""; position:absolute; left:0; top:9px; width:10px; height:10px;
                      border-radius:3px; background:#6C63FF; }

/* callout card */
.callout { background:#f9fafb; border:1px solid #e5e7eb; border-radius:8px; padding:20px 24px; margin:20px 0 0; }
.callout .hd { font-size:14px; font-weight:700; color:#514ad6; margin-bottom:6px; }
.callout p { margin:0; }

/* link cards (platform → the two loops) */
.cards { display:grid; grid-template-columns:1fr 1fr; gap:20px; margin-top:24px; }
@media (max-width:720px){ .cards { grid-template-columns:1fr; } }
a.card { display:block; border:1px solid #e5e7eb; border-radius:8px; padding:22px 24px; color:inherit; }
a.card:hover { border-color:#6C63FF; text-decoration:none; }
a.card h3 { font-size:17px; font-weight:700; color:#111827; margin-bottom:6px; }
a.card p { font-size:15px; color:#6b7280; margin-bottom:10px; }
a.card .go { font-size:14px; font-weight:600; color:#6C63FF; }

/* violet CTA band */
.cta { background:#6C63FF; }
.cta .narrow { padding-top:64px; padding-bottom:64px; text-align:center; }
.cta p { font-size:24px; font-weight:700; letter-spacing:-0.01em; color:#fff; max-width:34ch; margin:0 auto 28px; }

/* diagrams (illustrated tour) */
img.diagram { display:block; width:100%; max-width:720px; height:auto;
              border:1px solid #e5e7eb; border-radius:8px; margin:22px 0 10px; }
.figcap { font-size:14px; color:#6b7280; max-width:720px; margin:0 0 28px; }
.figcap b { color:#111827; }
h2.section { font-size:28px; margin:56px 0 8px; padding-top:40px; border-top:1px solid #e5e7eb; }
.grid2 { display:grid; grid-template-columns:1fr 1fr; gap:0 32px; }
@media (max-width:720px){ .grid2 { grid-template-columns:1fr; } }
.grid2 img.diagram { margin-top:16px; }
.grid2 .figcap { margin-bottom:14px; }

/* contact */
.btn-mail { font-size:20px; padding:16px 30px; }
.aside { font-size:14.5px; color:#9ca3af; font-style:italic; }

/* footer */
footer { border-top:1px solid #e5e7eb; margin-top:56px; }
footer .container { padding-top:24px; padding-bottom:40px; display:flex; justify-content:space-between;
                    flex-wrap:wrap; gap:12px; font-size:14px; color:#9ca3af; }
footer a { color:#6b7280; margin-right:20px; }

/* clippy — the door into the p6k95 easter egg */
.clippy { position:fixed; bottom:16px; right:16px; z-index:50; transition:transform 0.2s; }
.clippy:hover { transform:translateY(-4px) scale(1.1); }
.clippy img { display:block; width:53px; height:50px;
              filter:drop-shadow(0 4px 3px rgba(0,0,0,0.07)) drop-shadow(0 2px 2px rgba(0,0,0,0.06)); }
