/* AXISLABS site theme: bold, colour-blocked, Vazirmatn. Shared by every page except the home page,
   which carries the same rules inline. Each page picks its hero colour with a class on <body>:
   .hue-blue (default), .hue-cyan, .hue-amber, .hue-violet. */
@font-face { font-family: 'Vazirmatn'; src: url('/assets/fonts/Vazirmatn.woff2') format('woff2-variations'), url('/assets/fonts/Vazirmatn.woff2') format('woff2'); font-weight: 100 900; font-display: swap; }
:root {
  --ink: #0B0F19; --blue: #2563EB; --cyan: #22D3EE; --amber: #FFB547; --paper: #F8FAFC; --cream: #FFF7EA;
  --violet: #6D28D9; --grey: #94A3B8; --r: 36px;
  --hue: var(--blue); --hue-ink: #fff;
}
.hue-cyan { --hue: #22D3EE; --hue-ink: var(--ink); }
.hue-amber { --hue: #FFB547; --hue-ink: var(--ink); }
.hue-violet { --hue: #6D28D9; --hue-ink: #fff; }
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; overflow-x: clip; }
body { font-family: 'Vazirmatn', system-ui, sans-serif; background: var(--ink); color: var(--paper); line-height: 1.8; overflow-x: hidden;
       -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; height: auto; }
.wrap { max-width: 1240px; margin: 0 auto; padding: 0 28px; }

/* buttons */
.btn { display: inline-flex; align-items: center; gap: 10px; font-weight: 900; font-size: 17px; padding: 15px 28px; border-radius: 999px;
       transition: transform .2s cubic-bezier(.3,1.6,.5,1); line-height: 1.4; border: 0; cursor: pointer; font-family: inherit; }
.btn:hover { transform: translateY(-3px) rotate(-1deg); }
.btn svg { width: 20px; height: 20px; flex: none; }
.btn-ink { background: var(--ink); color: #fff; box-shadow: 0 6px 0 rgba(0,0,0,.35); }
.btn-white { background: #fff; color: var(--ink); box-shadow: 0 6px 0 rgba(0,0,0,.25); }
.btn-amber { background: var(--amber); color: var(--ink); box-shadow: 0 6px 0 #B45309; }
.btn-line { border: 2.5px solid currentColor; }
.btn small { display: block; font-size: 12px; font-weight: 700; opacity: .75; line-height: 1.3; }

/* nav: a floating pill */
nav.site { position: fixed; top: 16px; left: 0; right: 0; z-index: 40; }
nav.site .bar { display: flex; align-items: center; justify-content: space-between; gap: 16px; background: rgba(11,15,25,.82); backdrop-filter: blur(14px);
           border: 1px solid rgba(255,255,255,.12); border-radius: 999px; padding: 8px 10px 8px 22px; box-shadow: 0 14px 40px rgba(0,0,0,.3); }
.brand { display: flex; align-items: center; gap: 10px; direction: ltr; font-weight: 900; letter-spacing: 2px; color: #fff; }
.brand img { width: 30px; }
.brand span { color: var(--grey); font-weight: 500; }
nav.site .links { display: flex; gap: 6px; }
nav.site .links a { padding: 8px 16px; border-radius: 999px; font-weight: 700; font-size: 15px; color: #CBD5E1; transition: background .2s, color .2s; }
nav.site .links a:hover, nav.site .links a.on { background: rgba(255,255,255,.1); color: #fff; }
nav.site .btn { padding: 10px 18px; font-size: 14px; box-shadow: none; white-space: nowrap; }
nav.site .nav-end { display: flex; align-items: center; gap: 8px; }
.menu-btn { display: none; flex: none; width: 40px; height: 40px; border-radius: 999px; border: 1px solid rgba(255,255,255,.25); background: transparent; cursor: pointer;
            flex-direction: column; align-items: center; justify-content: center; gap: 4px; padding: 0; }
.menu-social { display: none; }
.menu-btn span { display: block; width: 16px; height: 2px; border-radius: 2px; background: #fff; transition: transform .2s, opacity .2s; }
nav.open .menu-btn span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
nav.open .menu-btn span:nth-child(2) { opacity: 0; }
nav.open .menu-btn span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }
.socials { display: flex; align-items: center; gap: 6px; padding: 4px; border-radius: 999px; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.12); flex: none; }
.socials a { display: block; width: 30px; height: 30px; border-radius: 9px; transition: transform .2s; }
.socials a:hover { transform: translateY(-2px) scale(1.06); }
.socials img { display: block; width: 100%; height: 100%; }

/* hero: a full-bleed colour block */
.phero { position: relative; background: var(--hue); color: var(--hue-ink); overflow: hidden; padding: 150px 0 90px; }
.phero::before { content: ""; position: absolute; inset: 0; opacity: .2;
  background-image: linear-gradient(currentColor 1px, transparent 1px), linear-gradient(90deg, currentColor 1px, transparent 1px);
  background-size: 64px 64px; mask-image: radial-gradient(ellipse at 40% 50%, #000 15%, transparent 72%); }
.phero .wrap { position: relative; z-index: 2; display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: center; }
.kicker { display: inline-block; font-weight: 900; font-size: 15px; background: var(--ink); color: var(--amber); padding: 6px 16px; border-radius: 999px; transform: rotate(-2deg); }
.phero h1 { font-size: clamp(52px, 8.5vw, 120px); font-weight: 900; line-height: 1.02; letter-spacing: -2px; margin: 20px 0 22px; }
.phero h1 .out { color: transparent; -webkit-text-stroke: 3px var(--hue-ink); }
.hue-cyan .phero h1 .out, .hue-amber .phero h1 .out { -webkit-text-stroke-color: var(--ink); }
.phero .lead { font-size: clamp(18px, 1.9vw, 21px); font-weight: 600; max-width: 560px; opacity: .92; }
.phero .cta { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 30px; }
.phero .meta { margin-top: 18px; font-size: 14px; font-weight: 700; opacity: .8; }
.shot { position: relative; }
.shot img { border-radius: 24px; border: 6px solid var(--ink); box-shadow: 0 30px 70px rgba(0,0,0,.35); transform: rotate(-3deg); }
.sticker { position: absolute; font-weight: 900; font-size: 15px; padding: 9px 16px; border-radius: 16px; box-shadow: 0 10px 0 rgba(0,0,0,.18); white-space: nowrap; z-index: 2; }
.sticker.s1 { background: var(--amber); color: var(--ink); top: -14px; right: 8%; transform: rotate(8deg); }
.sticker.s2 { background: var(--ink); color: #fff; bottom: 8%; left: -4%; transform: rotate(-7deg); }
.sticker.s3 { background: #fff; color: var(--blue); bottom: -16px; right: 18%; transform: rotate(4deg); }
@keyframes bob { 50% { translate: 0 -8px; } }
.sticker { animation: bob 5.5s ease-in-out infinite; }

/* sections */
section.blk { padding: 110px 0; }
.tag { display: inline-block; font-weight: 900; font-size: 14px; letter-spacing: 1px; color: var(--cyan); margin-bottom: 14px; }
h2.big { font-size: clamp(36px, 5.6vw, 76px); font-weight: 900; line-height: 1.08; letter-spacing: -1.5px; }
h2.big em { font-style: normal; color: transparent; -webkit-text-stroke: 2px var(--paper); }
.sub { color: var(--grey); font-size: 18px; max-width: 620px; margin-top: 14px; }

/* tilted colour cards */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 44px; }
.c { border-radius: 28px; padding: 28px 26px 30px; min-height: 250px; display: flex; flex-direction: column; position: relative; overflow: hidden;
     transition: transform .35s cubic-bezier(.3,1.5,.5,1); }
.c:nth-child(odd) { transform: rotate(-1.5deg); } .c:nth-child(even) { transform: rotate(1.5deg) translateY(14px); }
.c:hover { transform: rotate(0) translateY(-10px) scale(1.03); z-index: 2; }
.c b.n { font-size: 54px; font-weight: 900; line-height: 1; }
.c h3 { font-size: 26px; font-weight: 900; margin-top: auto; line-height: 1.3; }
.c p { font-size: 16px; font-weight: 600; opacity: .85; line-height: 1.75; margin-top: 6px; }
.k-white { background: #fff; color: var(--ink); } .k-cyan { background: var(--cyan); color: var(--ink); } .k-blue { background: var(--blue); color: #fff; }
.k-amber { background: var(--amber); color: var(--ink); } .k-violet { background: linear-gradient(140deg, #4C1D95, #7C3AED); color: #fff; }
.k-cream { background: var(--cream); color: var(--ink); }

/* a rounded light band */
.band { background: var(--cream); color: var(--ink); border-radius: 48px; margin: 0 16px; padding: 80px 0; }
.band .sub { color: #475569; }
.band h2.big em { -webkit-text-stroke-color: var(--ink); }

/* marquee */
.marquee { background: var(--amber); color: var(--ink); transform: rotate(-2deg); margin: -26px -20px 0; position: relative; z-index: 5;
           border-block: 4px solid var(--ink); overflow: hidden; padding: 12px 0; direction: ltr; }
.marquee .track { display: flex; gap: 40px; width: max-content; animation: run 30s linear infinite; font-weight: 900; font-size: clamp(20px, 2.8vw, 32px); white-space: nowrap; }
.marquee .track span { display: inline-flex; align-items: center; gap: 40px; }
.marquee .track span::after { content: "✦"; font-size: .7em; }
@keyframes run { to { transform: translateX(-50%); } }

/* closing + footer */
.final { padding: 130px 0 110px; text-align: center; }
.final h2 { font-size: clamp(42px, 8vw, 110px); font-weight: 900; line-height: 1.04; letter-spacing: -2px; }
.final h2 span { color: var(--amber); display: inline-block; transform: rotate(-3deg); }
.final p { color: var(--grey); font-size: 19px; max-width: 560px; margin: 20px auto 0; }
.final .cta { display: flex; justify-content: center; gap: 14px; flex-wrap: wrap; margin-top: 34px; }
footer.site { border-top: 1px solid rgba(255,255,255,.1); padding: 30px 0 40px; overflow: hidden; }
.giant { font-size: clamp(70px, 19vw, 290px); font-weight: 900; line-height: .9; direction: ltr; text-align: center; letter-spacing: -4px;
         color: rgba(255,255,255,.07); user-select: none; }
.foot { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; color: var(--grey); font-size: 14px; margin-top: 18px; }
.foot a { color: var(--cyan); }
.foot .social { display: inline-flex; gap: 18px; flex-wrap: wrap; }
.ig { display: inline-flex; align-items: center; gap: 6px; }
.ig svg, .ig img { width: 16px; height: 16px; border-radius: 4px; }

.reveal { opacity: 0; transform: translateY(36px); transition: opacity .8s ease, transform .8s cubic-bezier(.2,.9,.2,1); }
.reveal.in { opacity: 1; transform: none; }
.c.reveal.in:nth-child(odd) { transform: rotate(-1.5deg); } .c.reveal.in:nth-child(even) { transform: rotate(1.5deg) translateY(14px); }
.c.reveal.in:hover { transform: rotate(0) translateY(-10px) scale(1.03); }

@media (max-width: 980px) {
  .phero .wrap { grid-template-columns: 1fr; }
  .shot { max-width: 520px; margin: 20px auto 0; }
  .cards { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .wrap { padding: 0 18px; }
  nav.site { top: 10px; } nav.site .wrap { padding: 0 10px; }
  nav.site .wrap { position: relative; }
  nav.site .links { display: none; position: absolute; top: calc(100% + 8px); left: 10px; right: 10px; flex-direction: column; gap: 2px; padding: 10px;
                    background: #0B0F19; border: 1px solid rgba(255,255,255,.14); border-radius: 26px; box-shadow: 0 14px 40px rgba(0,0,0,.35); }
  nav.site.open .links { display: flex; }
  nav.site .links a { padding: 14px 18px; border-radius: 18px; font-size: 17px; }
  .menu-btn { display: flex; }
  nav.site .nav-end { gap: 6px; }
  nav.site .nav-end .socials a:not([aria-label="Instagram"]) { display: none; }  /* Instagram stays in the bar; all three are in the menu */
  nav.site .nav-end .socials { padding: 0; background: none; border: 0; }  /* one icon needs no frame */
  nav.site .nav-end .socials a { width: 32px; height: 32px; }
  nav.site .menu-social { display: flex; gap: 8px; margin-top: 6px; padding-top: 10px; border-top: 1px solid rgba(255,255,255,.12); }
  nav.site .menu-social a { flex: 1; display: flex; align-items: center; justify-content: center; gap: 6px; padding: 10px 6px; border-radius: 14px;
                            background: rgba(255,255,255,.07); font-size: 13px; font-weight: 700; color: #CBD5E1; }
  nav.site .menu-social img { width: 22px; height: 22px; border-radius: 6px; }
  nav.site .bar { padding-inline-start: 14px; gap: 8px; }
  nav.site .brand { letter-spacing: 1px; gap: 7px; }
  nav.site .btn { padding: 9px 13px; }
  .phero { padding: 120px 0 70px; }
  .phero h1 { letter-spacing: -1px; }
  .phero h1 .out { -webkit-text-stroke-width: 2px; }
  section.blk { padding: 76px 0; }
  .cards { grid-template-columns: 1fr; }
  .c, .c:nth-child(even), .c.reveal.in:nth-child(even) { transform: rotate(1.5deg); min-height: 190px; }
  .band { margin: 0 8px; border-radius: 32px; padding: 60px 0; }
  .sticker { font-size: 13px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
}

/* breadcrumbs */
.phero .crumbs-wrap { display: block; margin-bottom: 18px; }
.crumbs { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; font-size: 14px; font-weight: 800; opacity: .85; }
.crumbs li + li::before { content: "‹"; margin-inline-end: 6px; opacity: .6; }
.crumbs a { text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.final .ft { font-size: clamp(42px, 8vw, 110px); font-weight: 900; line-height: 1.04; letter-spacing: -2px; }
.final .ft span { color: var(--amber); display: inline-block; transform: rotate(-3deg); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
@media (max-width: 350px) { .socials a { width: 26px; height: 26px; } .socials { gap: 4px; padding: 3px; } .menu-btn { width: 36px; height: 36px; } nav.site .menu-social a { font-size: 0; gap: 0; } nav.site .brand { letter-spacing: 0; } }

/* definition and FAQ on tool pages */
.sub.about { max-width: 820px; font-size: 18px; color: inherit; opacity: .85; }
.faq { margin-top: 18px; display: grid; gap: 16px; max-width: 900px; }
.faq details { background: #fff; color: var(--ink); border-radius: 24px; padding: 20px 26px; box-shadow: 0 8px 0 rgba(0,0,0,.35); }
.faq summary { font-weight: 900; font-size: 19px; cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; font-size: 26px; line-height: 1; color: var(--blue); }
.faq details[open] summary::after { content: '−'; }
.faq p { margin-top: 10px; font-size: 16px; line-height: 2; color: #334155; }

/* guides (/learn/) */
.prose { max-width: 820px; }
.prose h2 { font-size: clamp(24px, 3vw, 32px); font-weight: 900; margin: 56px 0 14px; line-height: 1.5; }
.prose p, .prose li { font-size: 18px; line-height: 2.1; color: #CBD5E1; }
.prose p { margin-top: 12px; }
.prose ul, .prose ol { padding-inline-start: 24px; margin-top: 10px; display: grid; gap: 8px; }
.prose a { color: var(--cyan); text-decoration: underline; }
.prose b { color: #fff; }
.prose .tbl { overflow-x: auto; margin: 22px 0; border-radius: 18px; }
.prose table { width: 100%; border-collapse: collapse; background: #fff; color: var(--ink); font-size: 15px; }
.prose th, .prose td { padding: 12px 14px; border-bottom: 1px solid #E2E8F0; text-align: center; }
.prose th { background: #F1F5F9; font-weight: 900; }
.prose td b { color: var(--blue); }
.prose code { direction: ltr; unicode-bidi: isolate; display: inline-block; max-width: 100%; overflow-x: auto; white-space: nowrap; vertical-align: bottom; background: #1E293B; color: var(--amber); padding: 0 8px; border-radius: 8px; font-size: 15px; }
.prose pre { direction: ltr; text-align: left; background: #1E293B; color: var(--amber); padding: 16px 20px; border-radius: 16px; overflow-x: auto; margin: 18px 0; font-size: 16px; }
.prose .note { border-inline-start: 4px solid var(--cyan); padding-inline-start: 16px; font-size: 16px; }
.tldr { background: var(--amber); color: var(--ink); border-radius: 24px; padding: 22px 26px; box-shadow: 0 8px 0 rgba(0,0,0,.35); }
.tldr b { color: var(--ink); font-size: 18px; } .tldr p { color: var(--ink); margin-top: 6px; }
.tldr code { background: var(--ink); display: block; max-width: 100%; overflow-x: auto; white-space: nowrap; margin: 8px 0; padding: 6px 12px; }
@media (max-width: 600px) { .prose th, .prose td { padding: 10px 6px; font-size: 13px; } }
.toolbox { margin-top: 56px; background: var(--blue); color: #fff; border-radius: 28px; padding: 28px; box-shadow: 0 8px 0 rgba(0,0,0,.35); }
.toolbox b { font-size: 22px; } .toolbox p { color: #E0E7FF; margin: 6px 0 18px; }
.prose .faq p { color: #334155; }

.prose .sources li { font-size: 15px; line-height: 1.9; }
