/* Kordelis — palette taken from the logo (navy, cyan, sky, blue).
   Fonts are loaded from <link> in index.html; local fallbacks keep the layout stable. */
:root{
  --navy:#04204f;
  --navy-hover:#0b3a86;
  --ink:#04204f;
  --muted:#46587a;        /* 7:1 on white */
  --link:#005fa8;         /* 6.9:1 on white */
  --cyan:#2af5fc;
  --sky:#00cefb;
  --blue:#00aafc;
  --tint:#e8f4fc;
  --tint-2:#f3f8fc;
  --paper:#f7fafd;
  --line:#d3e2ef;
  --white:#fff;
  --display:Manrope,"Segoe UI",system-ui,sans-serif;
  --body:"DM Sans","Segoe UI",system-ui,sans-serif;
}
*{box-sizing:border-box}
html{scroll-padding-top:96px}
@media (prefers-reduced-motion:no-preference){html{scroll-behavior:smooth}}
body{margin:0;color:var(--ink);background:var(--paper);font-family:var(--body);font-size:16px;line-height:1.6}
a{color:inherit;text-decoration:none}
a:focus-visible{outline:3px solid var(--link);outline-offset:4px;border-radius:2px}
img{max-width:100%;height:auto}
.skip{position:absolute;left:-9999px}
.skip:focus{left:12px;top:12px;z-index:99;background:#fff;padding:10px}
.wrap{width:min(1180px,calc(100% - 80px));margin:auto}
h1,h2,h3,p{margin-top:0}
h1,h2,h3{font-family:var(--display);letter-spacing:-.045em;line-height:1.1;font-weight:800}
em{font-style:normal}

/* Header */
.header{background:rgba(255,255,255,.96);border-bottom:1px solid var(--line);position:sticky;top:0;z-index:20}
.nav{min-height:84px;display:flex;align-items:center;gap:60px}
.brand{display:inline-flex;align-items:center;gap:9px;font:800 25px var(--display);letter-spacing:-.06em}
.brand img{width:36px;height:36px;object-fit:contain}
.brand-dot{color:var(--blue)}
.nav nav{display:flex;gap:34px;margin:auto;font-size:14px;font-weight:700}
.nav nav a:hover,.nav-link:hover{color:var(--link)}
.nav-link{font-size:14px;font-weight:700}
.nav-link span{margin-left:9px;color:var(--link)}

/* Shared small text */
.eyebrow{font-size:14px;font-weight:700;color:var(--link);margin:0 0 22px}

/* Hero */
.hero{background:var(--tint)}
.hero-grid{display:grid;grid-template-columns:1.08fr .92fr;gap:80px;align-items:center;padding-top:96px;padding-bottom:96px}
h1{font-size:clamp(42px,5vw,68px);max-width:640px;margin-bottom:25px}
.lead{max-width:520px;font-size:18px;line-height:1.75;color:var(--muted)}
.actions{display:flex;align-items:center;gap:24px;flex-wrap:wrap;margin-top:31px}
.button{font-weight:700;font-size:15px;display:inline-flex;align-items:center;gap:20px;padding:16px 22px}
.primary{background:var(--navy);color:#fff;border-radius:4px}
.primary:hover{background:var(--navy-hover)}
.text{padding-left:0;color:var(--link)}
.text:hover{text-decoration:underline;text-underline-offset:5px}

/* Hero lesson card: three steps that climb like the logo */
.lesson{background:#fff;border:1px solid var(--line);border-radius:8px;padding:28px 28px 26px;box-shadow:0 24px 60px rgba(4,32,79,.10)}
.lesson-head{font-size:14px;font-weight:700;color:var(--muted);margin-bottom:20px}
.steps{list-style:none;margin:0 0 24px;padding:0;display:grid;gap:12px}
.step{display:flex;flex-direction:column;gap:2px;padding:14px 16px;background:var(--tint-2);border-radius:6px;border-left:6px solid var(--cyan)}
.step-label{font-size:13px;font-weight:700;color:var(--muted)}
.step-text{font:700 17px/1.35 var(--display);letter-spacing:-.02em}
.s1{margin-right:56px}
.s2{margin-left:28px;margin-right:28px;border-left-color:var(--sky)}
.s3{margin-left:56px;border-left-color:var(--blue)}

/* Sections */
.section{padding:110px 0}
.intro-grid,.about-grid{display:grid;grid-template-columns:1fr 2fr;gap:60px}
.intro h2,.section h2,.closing h2{font-size:clamp(34px,4vw,54px);margin-bottom:25px}
.intro-copy{max-width:650px;font-size:20px;line-height:1.7;color:var(--muted)}
.work{background:#fff}
.section-heading{display:flex;justify-content:space-between;align-items:end;gap:40px;margin-bottom:42px}
.section-heading h2{margin-bottom:0}
.section-heading>p{max-width:300px;color:var(--muted);font-size:15px;margin:0}

.inline-link{font-size:15px;font-weight:700;color:var(--link);border-bottom:1px solid #8cbde3;padding-bottom:5px}
.inline-link:hover{border-bottom-color:var(--link)}
.inline-link span{margin-left:12px}

/* Product */
.product{display:grid;grid-template-columns:1.3fr 1fr;background:var(--tint);border:1px solid var(--line);border-radius:6px;overflow:hidden}
.product-main{padding:48px}
.product-label{display:flex;gap:8px;margin-bottom:34px}
.pill{font-size:12px;font-weight:700;letter-spacing:.04em;padding:6px 11px;background:#cfe9f9;color:#00467d;border-radius:3px}
.pill.light{background:#fff;color:var(--muted)}
.product h3{font-size:32px;margin-bottom:18px}
.product-main p{max-width:430px;color:var(--muted);margin-bottom:30px}
.product-side{border-left:1px solid var(--line);padding:53px 42px}
.small-label{font-size:13px;font-weight:700;color:var(--muted)}
.scope-row{border-bottom:1px solid var(--line);padding:17px 0;display:flex;justify-content:space-between;font-weight:700;font-size:15px}
.scope-row span:last-child{color:var(--link)}
.product-side p{font-size:14px;color:var(--muted);line-height:1.7;margin:25px 0 0}
.under-product{display:flex;justify-content:space-between;margin-top:20px;font-size:14px;font-weight:700;color:var(--muted)}
.under-product a{color:var(--link)}
.under-product a:hover{text-decoration:underline;text-underline-offset:4px}

/* Articles */
.notes{background:var(--paper)}
.article-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:16px}
.article-card{background:#fff;border:1px solid var(--line);border-radius:6px;padding:25px;min-height:270px;display:flex;flex-direction:column;align-items:flex-start}
.article-topic{font-size:13px;font-weight:700;color:var(--link)}
.article-card h3{font-size:21px;line-height:1.2;margin:22px 0 12px}
.article-card p{font-size:15px;color:var(--muted);line-height:1.65}
.article-meta{font-size:13px;color:var(--muted);margin-top:auto;padding-top:8px}
.article-card a{font-size:14px;font-weight:700;color:var(--link);border-bottom:1px solid #8cbde3;margin-top:12px;padding-bottom:5px}
.article-card a:hover{border-bottom-color:var(--link)}
.notes-more{display:flex;flex-wrap:wrap;gap:24px 35px;margin-top:34px}

/* Shorts */
.shorts{margin-top:64px}
.shorts-head{display:flex;justify-content:space-between;align-items:baseline;gap:24px;flex-wrap:wrap;margin-bottom:20px}
.shorts-head h3{font-size:26px;margin:0}
.shorts-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:16px}
.short-card{background:var(--tint);border:1px solid var(--line);border-left:6px solid var(--sky);border-radius:6px;padding:22px 24px}
.short-meta{font-size:13px;font-weight:700;color:var(--muted)}
.short-card h4{font:800 19px/1.25 var(--display);letter-spacing:-.03em;margin:10px 0 10px}
.short-card h4 a:hover{color:var(--link);text-decoration:underline;text-underline-offset:4px}
.short-card p{font-size:15px;color:var(--muted);line-height:1.65;margin:0}

/* About */
.about{background:#fff}
.about h2{font-size:clamp(32px,3.5vw,46px)}
.about-copy{max-width:640px;font-size:18px;color:var(--muted)}
.about-copy p{margin-bottom:22px}
.about-copy .company{font-size:14px;color:var(--muted);margin:36px 0 23px}

/* Closing */
.closing{background:var(--tint);padding:90px 0;overflow:hidden}
.closing-grid{display:flex;justify-content:space-between;align-items:center;gap:40px}
.closing h2{margin:0 0 20px}
.closing p:not(.eyebrow){color:var(--muted)}
.closing-mark{width:220px;height:220px;flex:none}
.closing-link{color:var(--link)}
.closing-link:hover{text-decoration:underline;text-underline-offset:5px}

/* Footer */
footer{background:#fff;border-top:1px solid var(--line);color:var(--muted)}
.footer{display:flex;align-items:center;gap:25px;padding-top:37px;padding-bottom:37px}
.footer-brand{color:var(--ink)}
.footer p{font-size:14px;color:var(--muted);margin:0}
.footer div{display:flex;flex-wrap:wrap;gap:10px 24px;margin-left:auto;font-size:14px;font-weight:700;color:var(--link)}
.footer div a:hover{text-decoration:underline;text-underline-offset:4px}
.footer small{color:var(--muted);font-size:13px;margin-left:30px}

/* Layout breakpoints */
@media(max-width:1099px){.article-grid{grid-template-columns:repeat(2,1fr)}.shorts-grid{grid-template-columns:1fr}}
@media(max-width:800px){
  .wrap{width:min(100% - 40px,600px)}
  .header{position:static}
  html{scroll-padding-top:16px}
  .nav{flex-wrap:wrap;min-height:0;padding:16px 0 12px;gap:10px 14px}
  .nav nav{order:3;width:100%;margin:0;gap:24px;font-size:14px}
  .nav-link{display:none}
  .brand{font-size:22px}
  .brand img{width:30px;height:30px}
  .hero-grid{grid-template-columns:1fr;gap:44px;padding:60px 0}
  .lesson{max-width:480px}
  .section{padding:75px 0}
  .intro-grid,.about-grid{grid-template-columns:1fr;gap:0}
  .section-heading{display:block}
  .section-heading>p{margin-top:20px}
  .product{grid-template-columns:1fr}
  .product-main,.product-side{padding:30px}
  .product-side{border-left:0;border-top:1px solid var(--line)}
  .closing{padding:70px 0}
  .closing-mark{width:120px;height:120px}
  .footer{align-items:flex-start;flex-wrap:wrap}
  .footer div{margin-left:0;width:100%}
  .footer small{margin-left:0}
  .footer p{width:100%}
}
@media(max-width:640px){.article-grid{grid-template-columns:1fr}.article-card{min-height:0}}
@media(max-width:420px){.closing-mark{display:none}.s1{margin-right:24px}.s2{margin-left:12px;margin-right:12px}.s3{margin-left:24px}}
